:root {
  --bg: #050505;
  --panel: #0a0a0a;
  --card: #111;
  --line: #1f1f1f;
  --text: #f4f7f6;
  --muted: #8b9793;
  --cyan: #2ee6c2;
  --ink: #02110d;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, sans-serif;
}
.hidden { display: none !important; }

.fx { pointer-events: none; position: fixed; inset: 0; z-index: 50; }
.scan {
  position: absolute; inset: -20% 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    rgba(46,230,194,.035) 3px 4px
  );
  animation: scan-drift 8s linear infinite;
}
.noise {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) .55px, transparent .65px);
  background-size: 3px 3px;
  opacity: .2;
  animation: noise-shift 1.2s steps(4) infinite;
}
.vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.45) 100%);
}
@keyframes scan-drift { to { transform: translateY(40px); } }
@keyframes noise-shift {
  0% { transform: translate(0,0); }
  25% { transform: translate(-1px, 1px); }
  50% { transform: translate(1px, -1px); }
  75% { transform: translate(-1px, 0); }
}

.auth-screen { min-height: 100%; display: grid; grid-template-columns: 1.15fr .85fr; }
.auth-art {
  position: relative; overflow: hidden;
  background: #050505;
}
.aurora {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 30% at 20% 20%, rgba(46,230,194,.22), transparent 60%),
    radial-gradient(35% 35% at 80% 70%, rgba(20,180,160,.16), transparent 60%);
  filter: blur(8px);
  animation: aurora 12s ease-in-out infinite alternate;
}
@keyframes aurora {
  from { transform: translate(-4%, -2%) scale(1); }
  to { transform: translate(6%, 4%) scale(1.08); }
}

.orbit {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  right: -80px; top: 80px;
  border: 1px solid rgba(46,230,194,.18);
  animation: spin 26s linear infinite;
}
.orbit::before, .orbit::after {
  content: ""; position: absolute; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}
.orbit::before { width: 10px; height: 10px; top: 36px; left: 50%; }
.orbit::after { width: 6px; height: 6px; bottom: 70px; right: 80px; opacity: .7; }
.orbit.delay { width: 360px; height: 360px; right: 40px; top: 160px; animation-duration: 16s; animation-direction: reverse; }
.orbit.slow { width: 640px; height: 640px; right: -160px; top: 20px; animation-duration: 40s; opacity: .5; }
@keyframes spin { to { transform: rotate(360deg); } }

.spark {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px var(--cyan);
  animation: spark 4.5s ease-in-out infinite;
}
.s1 { left: 18%; top: 28%; animation-delay: 0s; }
.s2 { left: 36%; top: 62%; animation-delay: 1.1s; }
.s3 { left: 58%; top: 22%; animation-delay: 2s; }
.s4 { left: 70%; top: 74%; animation-delay: .6s; }
@keyframes spark {
  0%, 100% { opacity: .15; transform: scale(.6); }
  50% { opacity: 1; transform: scale(1.8); }
}

.bolt-art {
  position: absolute; width: 210px; right: 12%; top: 20%;
  filter: drop-shadow(0 0 22px rgba(46,230,194,.55));
  animation: bolt-float 3.4s ease-in-out infinite;
}
.bolt-fill { fill: var(--cyan); }
.bolt-trace {
  fill: none; stroke: #fff; stroke-width: 2;
  stroke-dasharray: 420; stroke-dashoffset: 420;
  animation: bolt-draw 3.4s ease-in-out infinite;
}
@keyframes bolt-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}
@keyframes bolt-draw {
  0% { stroke-dashoffset: 420; opacity: 0; }
  18% { opacity: 1; }
  45% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -420; opacity: 0; }
}

.art-copy { position: relative; z-index: 2; padding: 64px 56px; max-width: 560px; }
.eyebrow {
  color: var(--cyan); letter-spacing: .28em; text-transform: uppercase;
  font-size: 11px; margin: 0 0 16px;
  animation: fade-up .8s ease both;
}
.display {
  font-family: Anton, Impact, sans-serif;
  letter-spacing: .03em;
  line-height: .9;
  margin: 0 0 18px;
}
.art-copy .display {
  font-size: clamp(3.2rem, 7vw, 6rem);
  animation: fade-up .9s .1s ease both;
}
.art-lead { color: var(--muted); max-width: 28rem; animation: fade-up 1s .2s ease both; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 36px; }
.stat-row div {
  border: 1px solid var(--line); background: rgba(0,0,0,.35);
  border-radius: 12px; padding: 12px;
  animation: fade-up .8s ease both;
}
.stat-row div:nth-child(2) { animation-delay: .15s; }
.stat-row div:nth-child(3) { animation-delay: .28s; }
.stat-row b { display: block; color: var(--cyan); font-family: Anton, sans-serif; letter-spacing: .08em; }
.stat-row span { color: var(--muted); font-size: 12px; }

.auth-panel {
  background: var(--panel); border-left: 1px solid var(--line);
  padding: 36px 40px; overflow: auto;
  animation: panel-in .7s ease both;
}
@keyframes panel-in {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}
.wordmark {
  width: min(100%, 280px); height: auto; margin: 0 0 22px;
  filter: drop-shadow(0 0 12px rgba(46,230,194,.25));
  animation: logo-glow 3.6s ease-in-out infinite;
}
@keyframes logo-glow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(46,230,194,.2)); }
  50% { filter: drop-shadow(0 0 22px rgba(46,230,194,.55)); }
}
.panel-kicker { color: var(--muted); margin: 0 0 16px; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab {
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: .2s;
}
.tab.on { background: var(--cyan); color: var(--ink); border-color: transparent; font-weight: 700; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.field input {
  background: #0e0e0e; border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 12px 14px; font: inherit; transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(46,230,194,.15); }
.primary {
  border: 0; border-radius: 12px; padding: 13px; cursor: pointer; font-weight: 700;
  background: var(--cyan); color: var(--ink);
  box-shadow: 0 0 24px rgba(46,230,194,.25);
  transition: transform .15s, box-shadow .15s;
}
.primary:hover { transform: translateY(-1px); box-shadow: 0 0 32px rgba(46,230,194,.4); }
.auth-error { color: #ff8b7b; font-size: 13px; margin: 0; }
.auth-error[hidden] { display: none !important; }
.fine { color: var(--muted); font-size: 12px; line-height: 1.5; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 16px 0; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.providers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.prov {
  background: #0e0e0e; color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px; cursor: pointer; transition: border-color .2s, transform .15s;
}
.prov:hover { border-color: var(--cyan); transform: translateY(-1px); }
.guest { text-align: center; }
.guest button { background: none; border: 0; color: var(--cyan); cursor: pointer; font: inherit; }

.app { display: flex; height: 100%; }
.sidebar {
  width: 280px; background: var(--panel); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 16px;
}
.brand-lockup { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.mark-only { width: 42px; height: 42px; border-radius: 12px; animation: logo-glow 3.6s ease-in-out infinite; }
.brand-name { font-family: Anton, Impact, sans-serif; letter-spacing: .06em; font-size: 1.15rem; }
.brand-sub { color: var(--muted); font-size: 12px; }
.side-logo { width: 100%; height: auto; margin-bottom: 16px; animation: logo-glow 3.6s ease-in-out infinite; }
.new-chat, .ghost {
  background: #0e0e0e; color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px; cursor: pointer; margin-bottom: 12px; transition: .2s;
}
.new-chat { display: flex; align-items: center; gap: 8px; }
.new-chat:hover { border-color: var(--cyan); color: var(--cyan); }
.bolt { color: var(--cyan); animation: zap 1.8s ease-in-out infinite; }
@keyframes zap {
  0%, 100% { transform: scale(1); text-shadow: none; }
  40% { transform: scale(1.15); text-shadow: 0 0 10px var(--cyan); }
}
.list-label { margin: 4px 2px 8px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.chat-list { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.chat-item { padding: 9px 10px; border-radius: 10px; color: var(--muted); cursor: pointer; font-size: 13px; }
.chat-item.active, .chat-item:hover { background: var(--card); color: var(--text); }
.side-card {
  display: flex; gap: 10px; align-items: center;
  border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 10px 0;
}
.core-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan); animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: .45; }
}
.side-card strong { display: block; font-size: 12px; letter-spacing: .1em; color: var(--cyan); }
.side-card p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.user-chip { color: var(--muted); font-size: 13px; margin-bottom: 8px; }

.main {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  background: radial-gradient(900px 320px at 80% -10%, rgba(46,230,194,.08), transparent 45%), #050505;
}
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
}
.menu-btn { display: none; background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 6px 10px; }
.model-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 12px; letter-spacing: .08em;
}
.model-pill i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan); animation: pulse-dot 1.6s ease-in-out infinite;
}
.live { margin-left: auto; color: var(--muted); font-size: 11px; letter-spacing: .16em; }

.transcript { flex: 1; overflow: auto; padding: 28px 22px 12px; }
.empty { max-width: 880px; margin: 6vh auto 0; text-align: center; }
.hero-bolt, .hero-mark { width: 84px; height: 84px; margin: 0 auto 14px; animation: bolt-float 2.8s ease-in-out infinite; }
.hero-mark { border-radius: 22px; filter: drop-shadow(0 0 18px rgba(46,230,194,.45)); }
.hero-bolt svg { width: 100%; fill: var(--cyan); filter: drop-shadow(0 0 16px rgba(46,230,194,.6)); }

.empty .display {
  font-size: clamp(3rem, 8vw, 5.5rem);
  position: relative;
}
.glitch { animation: title-flicker 4s steps(2) infinite; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; left: 0; right: 0; top: 0;
  pointer-events: none;
}
.glitch::before { color: #7fffe3; animation: glitch-a 2.4s infinite; clip-path: inset(0 0 55% 0); }
.glitch::after { color: #1affc7; animation: glitch-b 2.1s infinite; clip-path: inset(55% 0 0 0); }
@keyframes title-flicker {
  0%, 90%, 100% { opacity: 1; }
  92% { opacity: .7; }
}
@keyframes glitch-a {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-3px, -1px); }
  40% { transform: translate(3px, 1px); }
}
@keyframes glitch-b {
  0%, 100% { transform: translate(0); }
  30% { transform: translate(3px, 1px); }
  60% { transform: translate(-2px, -1px); }
}

.empty > p { color: var(--muted); margin: 8px auto 28px; max-width: 32rem; }
.capability-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; }
.capability-grid button {
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  border-radius: 16px; padding: 16px; cursor: pointer; text-align: left;
  animation: fade-up .7s ease both;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.capability-grid button:nth-child(2) { animation-delay: .08s; }
.capability-grid button:nth-child(3) { animation-delay: .16s; }
.capability-grid button:nth-child(4) { animation-delay: .24s; }
.capability-grid button:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(46,230,194,.08);
}
.capability-grid em { color: var(--cyan); font-style: normal; font-size: 11px; letter-spacing: .16em; }
.capability-grid strong { display: block; margin: 6px 0 4px; }
.capability-grid span { color: var(--muted); font-size: 13px; }

.msg { max-width: 820px; margin: 0 auto 20px; animation: msg-in .35s ease both; }
@keyframes msg-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.msg .role { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.msg .bubble { line-height: 1.7; white-space: pre-wrap; }
.msg.user .bubble {
  background: #101010; border: 1px solid var(--line);
  border-radius: 16px 16px 4px 16px; padding: 12px 14px;
}
.msg.assistant .bubble { border-left: 2px solid var(--cyan); padding-left: 12px; }

.composer {
  max-width: 820px; width: calc(100% - 32px); margin: 0 auto 20px;
  display: flex; gap: 8px; align-items: flex-end;
  background: #0d0d0d; border: 1px solid var(--line); border-radius: 18px; padding: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.composer:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(46,230,194,.25), 0 0 40px rgba(46,230,194,.08);
}
.composer textarea {
  flex: 1; resize: none; background: transparent; border: 0; color: var(--text);
  font: inherit; outline: none; max-height: 160px; padding: 8px;
}
.composer button {
  width: 40px; height: 40px; border: 0; border-radius: 12px;
  background: var(--cyan); color: var(--ink); cursor: pointer;
  transition: transform .15s;
}
.composer button:hover { transform: scale(1.06); }

@media (max-width: 960px) {
  .auth-screen { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .capability-grid { grid-template-columns: 1fr; }
  .menu-btn { display: inline-flex; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 30;
    transform: translateX(-105%); transition: transform .25s ease;
  }
  .sidebar.open { transform: none; }
}

.seo-foot {
  max-width: 820px;
  margin: 0 auto 28px;
  padding: 0 20px 32px;
  color: var(--muted);
  font-size: 13px;
}
.seo-foot h2 {
  font-family: Anton, Impact, sans-serif;
  color: var(--text);
  letter-spacing: .04em;
  font-size: 1.2rem;
  margin: 0 0 8px;
}
.seo-foot ul { margin: 8px 0 0; padding-left: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

.composer-bar { display: flex; gap: 8px; align-items: flex-end; }
.attach-btn {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--cyan); cursor: pointer; font-size: 22px; flex-shrink: 0;
}
.attach-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.attach-row:empty { display: none; }
.chip {
  display: flex; align-items: center; gap: 8px;
  background: #161616; border: 1px solid var(--line); border-radius: 10px;
  padding: 4px 8px; font-size: 12px;
}
.chip img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; }
.chip button { background: none; border: 0; color: var(--muted); cursor: pointer; }
.msg .thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.msg .thumbs img { max-width: 180px; max-height: 140px; border-radius: 10px; border: 1px solid var(--line); }

.attach-status { color: var(--muted); font-size: 12px; min-height: 1em; margin: 0 4px 6px; }
.attach-btn.cam { font-size: 16px; }
.composer {
  position: sticky;
  bottom: 0;
  z-index: 5;
}
.composer button[type="submit"] {
  width: auto;
  min-width: 48px;
  height: 44px;
  padding: 0 14px;
  font-weight: 700;
}
@media (max-width: 960px) {
  .composer { width: calc(100% - 16px); margin: 0 8px 10px; }
  .attach-btn, .composer button[type="submit"] { width: 44px; height: 44px; }
  .composer button[type="submit"] { width: auto; }
  .composer textarea { font-size: 16px; }
  .main { padding-bottom: env(safe-area-inset-bottom); }
}

.mode-bar { display: flex; gap: 8px; max-width: 820px; width: calc(100% - 32px); margin: 0 auto 10px; }
.mode {
  background: #111; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.mode.on { background: var(--cyan); color: var(--ink); border-color: transparent; font-weight: 700; }
.msg video { width: 100%; max-width: 420px; border-radius: 12px; background: #000; }

.mode-bar {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: calc(100% - 16px);
  margin: 0 8px 8px;
}
.mode-bar::-webkit-scrollbar { display: none; }
.mode { flex: 1 0 auto; min-height: 44px; font-size: 15px; }
@media (max-width: 960px) {
  .topbar { padding: 10px 12px; }
  .transcript { padding: 16px 12px 8px; }
  .empty h1 { font-size: 2.2rem; }
  .capability-grid { gap: 8px; }
  .capability-grid button { padding: 14px; }
  .composer { width: calc(100% - 12px); margin: 0 6px calc(8px + env(safe-area-inset-bottom)); padding: 8px; }
  .composer-bar { gap: 6px; }
  .attach-btn, .attach-btn.cam {
    width: 48px; height: 48px; font-size: 22px; border-radius: 14px;
  }
  .composer button[type="submit"] {
    min-width: 72px; height: 48px; border-radius: 14px; font-size: 16px;
  }
  .composer textarea { min-height: 48px; padding: 12px 8px; }
  .chip { padding: 6px 10px; }
  .chip img { width: 44px; height: 44px; }
}

.lang-select {
  margin-left: auto;
  background: #111; color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 10px; max-width: 42vw;
}
.voice-toggle, .mic-btn {
  background: #111; color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 10px; cursor: pointer;
}
.voice-toggle.on, .mic-btn.live { background: var(--cyan); color: var(--ink); border-color: transparent; }
.mic-btn { height: 48px; min-width: 52px; border-radius: 14px; }
@media (max-width: 960px) {
  .live { display: none; }
  .lang-select { font-size: 14px; }
}

.scrim { display: none; }
@media (max-width: 960px) {
  .fx, .seo-foot { display: none !important; }
  html, body, .app { height: 100dvh; overflow: hidden; }
  .app { display: flex; }
  .scrim.show {
    display: block; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 25;
  }
  .sidebar {
    width: min(86vw, 320px);
    padding-top: calc(12px + env(safe-area-inset-top));
  }
  .main {
    width: 100%;
    padding-top: env(safe-area-inset-top);
  }
  .topbar {
    position: sticky; top: 0; z-index: 8;
    background: rgba(5,5,5,.92);
    backdrop-filter: blur(10px);
  }
  .menu-btn { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; }
  .transcript { padding-bottom: 8px; }
  .mode-bar {
    position: sticky; bottom: calc(78px + env(safe-area-inset-bottom));
    background: #050505;
    padding: 4px 0;
  }
  .empty p { font-size: 15px; }
  .capability-grid button strong { font-size: 16px; }
}

.home-title {
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(2rem, 8vw, 3.4rem);
  margin: 8px 0 4px;
  letter-spacing: .04em;
}
.home-sub { color: var(--muted); margin: 0 0 18px; }
.quick-row, .trend-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.quick-row button {
  background: #141414; border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 10px 14px; font: inherit; cursor: pointer;
}
.trend-head {
  width: 100%; text-align: left; margin: 28px 0 10px;
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.trend-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; }
.trend-list button {
  background: #101010; border: 1px solid var(--line); color: var(--text);
  border-radius: 16px; padding: 14px; text-align: left; cursor: pointer;
}
.trend-list b { display: block; margin-bottom: 4px; }
.trend-list span { color: var(--muted); font-size: 12px; }

@media (max-width: 960px) {
  .fx, .seo-foot, .glitch::before, .glitch::after { display: none !important; }
  html, body { height: 100dvh; overflow: hidden; background: #000; }
  .app { height: 100dvh; background: #000; }
  .main {
    background: #000;
    display: flex; flex-direction: column;
  }
  .topbar {
    border-bottom: 0;
    padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
  }
  .model-pill { display: none; }
  .lang-select { max-width: 34vw; }
  .empty { margin-top: 4vh; padding: 0 4px; }
  .hero-mark { width: 56px; height: 56px; }
  .trend-list { grid-template-columns: 1fr; }
  .capability-grid { display: none; }
  .mode-bar {
    bottom: calc(70px + env(safe-area-inset-bottom));
    justify-content: space-between;
  }
  .mode { flex: 1; text-align: center; padding: 10px 0; font-size: 13px; }
  .composer {
    border-radius: 24px;
    background: #121212;
    border-color: #2a2a2a;
  }
}

.trust-row { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin:0 0 18px; }
.trust-row span { border:1px solid var(--line); color:var(--cyan); border-radius:999px; padding:6px 10px; font-size:12px; letter-spacing:.06em; }

.bet-ad {
  display: block;
  margin: 0 12px 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, #06221c, #0b3d32);
  border: 1px solid #1e6b58;
  color: #7fffe3;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .08em;
  text-align: center;
}
@media (max-width: 960px) {
  .topbar { justify-content: space-between; }
  .model-pill { display: none; }
  .menu-btn { border-radius: 12px; }
  .bet-ad { margin: 0 10px 6px; font-size: 12px; }
  .quick-row button { min-height: 40px; }
  .home-title { font-size: 2rem; }
  .composer { box-shadow: 0 -8px 30px rgba(0,0,0,.45); }
}
.bet-wrap { display: flex; gap: 8px; padding: 0 12px 8px; }
.bet-ad, .games-btn {
  flex: 1; text-align: center; border-radius: 12px; padding: 12px 8px;
  text-decoration: none; font-size: 13px; letter-spacing: .04em; cursor: pointer;
}
.bet-ad { background: #0b3d32; color: #7fffe3; border: 1px solid #1e6b58; }
.games-btn { background: #151515; color: var(--text); border: 1px solid var(--line); }
.games-panel { margin: 0 12px 10px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #0d0d0d; }
.games-note { color: var(--muted); font-size: 12px; margin: 0 0 8px; }
.games-note a { color: var(--cyan); }
.game-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.game-card { background: #111; border-radius: 12px; padding: 10px; text-align: center; }
.game-card button { margin-top: 8px; width: 100%; border-radius: 8px; border: 0; padding: 8px; background: var(--cyan); color: var(--ink); font-weight: 700; cursor: pointer; }
.game-card div { margin-top: 6px; color: var(--cyan); min-height: 1.2em; }
.games-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.chips { color: var(--cyan); }
.game-card.wide { margin-top: 8px; }
.rps { display:flex; gap:6px; margin:8px 0; }
.rps button { flex:1; }
.ghodi-track { display:grid; grid-template-columns: repeat(13, 1fr); gap:3px; margin:10px 0; }
.ghodi-track .cell {
  aspect-ratio: 1; background:#1a1a1a; border-radius:6px; display:grid; place-items:center; font-size:14px;
  transition: transform .25s ease;
}
.ghodi-track .cell.start { outline:1px solid var(--cyan); }
.pop { animation: pop .35s ease; }
@keyframes pop { from { transform: scale(.7); opacity:.4 } to { transform:none; opacity:1 } }
@media (max-width: 960px) {
  .game-row { grid-template-columns: 1fr 1fr; }
  .ghodi-track { grid-template-columns: repeat(7, 1fr); }
}
.arcade-head { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
.arcade-head p { margin:4px 0 0; color:var(--muted); font-size:12px; }
.chip-pill { background:#10261f; color:var(--cyan); border-radius:999px; padding:6px 10px; font-size:12px; }
.bet-mini { display:block; margin:8px 0 12px; color:var(--cyan); font-size:12px; }
.arcade-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.arcade-tile {
  background:#141414; border:1px solid var(--line); color:var(--text);
  border-radius:16px; padding:14px 12px; text-align:left; cursor:pointer;
}
.arcade-tile em { display:block; color:var(--cyan); font-size:11px; letter-spacing:.12em; font-style:normal; }
.stage-bar { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.stage-bar .back { background:#222; color:#fff; border:0; border-radius:10px; padding:8px 10px; cursor:pointer; }
.play { width:100%; margin-top:8px; background:var(--cyan); color:var(--ink); border:0; border-radius:12px; padding:12px; font-weight:700; cursor:pointer; }
.ludo-board, .snake-board, .ghodi-line { display:grid; gap:4px; }
.ludo-board { grid-template-columns:repeat(7,1fr); }
.snake-board { grid-template-columns:repeat(6,1fr); }
.ghodi-line { grid-template-columns:repeat(11,1fr); }
.sq { background:#1b1b1b; border-radius:8px; min-height:36px; display:grid; place-items:center; font-size:12px; }
.sq.home, .sq.lad { outline:1px solid #2ee6c2; }
.sq.snk { outline:1px solid #c45c26; }
.ttt, .mem { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
.mem { grid-template-columns:repeat(4,1fr); }
.ttt button, .mem button, .rps button {
  min-height:48px; border:0; border-radius:10px; background:#1c1c1c; color:#fff; font-size:18px; cursor:pointer;
}
.slot-row, .big { font-size:28px; text-align:center; padding:12px; }
@media (max-width:960px) {
  .arcade-grid { grid-template-columns:1fr 1fr; }
  .games-panel { max-height:55vh; overflow:auto; }
}
.game-tabs {
  display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 4px 0 10px; scrollbar-width: none;
}
.game-tabs::-webkit-scrollbar { display: none; }
.game-tabs button {
  flex: 0 0 auto; border: 1px solid var(--line); background: #141414; color: #ddd;
  border-radius: 999px; padding: 8px 12px; white-space: nowrap; cursor: pointer;
}
.game-tabs button.on { background: var(--cyan); color: #02110d; font-weight: 700; border-color: transparent; }
.game-stage h3 { margin: 0 0 6px; }
.hint { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.hands { background: #151515; border-radius: 10px; padding: 10px; margin-bottom: 8px; }
.panna-grid, .merge { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.merge { grid-template-columns: repeat(4, 1fr); }
.panna-grid button {
  aspect-ratio: 1; border: 0; border-radius: 10px; background: #1b1b1b; color: #3d6; font-size: 16px; cursor: pointer;
}
.panna-grid button.hit { background: #12352c; }
.panna-grid button.miss { background: #222; color: #555; }
.games-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,.72);
  display: flex; align-items: flex-end; justify-content: center;
}
.games-overlay.hidden { display: none !important; }
.games-sheet {
  width: min(720px, 100%);
  max-height: min(88dvh, 820px);
  overflow: auto;
  background: #0c0c0c;
  border: 1px solid #2a2a2a;
  border-radius: 20px 20px 0 0;
  padding: 12px 12px calc(16px + env(safe-area-inset-bottom));
}
.games-close {
  width: 100%; margin-bottom: 10px; border: 0; border-radius: 12px;
  padding: 12px; background: #1b1b1b; color: #fff; font-weight: 700; cursor: pointer;
}
.gicon { font-size: 22px; display: block; margin-bottom: 4px; }
@media (min-width: 961px) {
  .games-overlay { align-items: center; }
  .games-sheet { border-radius: 20px; max-height: 80vh; }
  .arcade-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.games-dock {
  flex: 1; overflow: auto; padding: 8px 12px 12px;
}
.arcade-tile, .play, .sq, .slot-row, .big {
  animation: rise .35s ease;
}
@keyframes rise { from { transform: translateY(8px); opacity: 0 } to { transform: none; opacity: 1 } }
.slot-row { animation: spinny .6s ease; letter-spacing: .12em; }
@keyframes spinny { from { filter: blur(6px); transform: translateY(8px) } to { filter:none; transform:none } }
.play:active { transform: scale(.98); }
.sq { transition: transform .25s ease, background .25s ease; }
.gicon { animation: pop .4s ease; }
.house-frame {
  width: 100%;
  height: calc(100dvh - 170px);
  border: 0;
  border-radius: 16px;
  background: #000;
}
@media (min-width: 961px) {
  .house-frame { height: calc(100vh - 180px); }
}

@media (max-width: 960px) {
  .fx, .seo-foot { display: none !important; }
  html, body, .app, .main { height: 100dvh; overflow: hidden; }
  .main { position: relative; }
  .transcript {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 12px 170px;
  }
  .chat-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: #050505;
    border-top: 1px solid #222;
    padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
  }
  .mode-bar {
    position: static !important;
    width: 100%;
    margin: 0 0 8px;
    bottom: auto;
  }
  .composer {
    position: static !important;
    width: 100%;
    margin: 0;
    max-width: none;
  }
  .composer-bar { align-items: center; }
  .composer textarea {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    max-height: 88px;
  }
  .composer button[type="submit"] {
    flex: 0 0 72px;
    width: 72px !important;
    min-width: 72px !important;
    height: 48px !important;
    transform: none !important;
    padding: 0;
  }
  .composer button[type="submit"]:hover { transform: none !important; }
  .attach-btn.cam { display: none; }
  .games-dock { padding-bottom: 120px; }
}

.auth-screen.hidden { display: none !important; visibility: hidden !important; }
.auth-screen:not(.hidden) { display: grid !important; position: fixed; inset: 0; z-index: 90; background: #050505; }

@media (max-width: 960px) {
  .games-dock {
    position: relative;
    flex: 1;
    min-height: 0;
    padding: 0 0 0;
    margin: 0;
  }
  .house-frame {
    height: calc(100dvh - 210px) !important;
    min-height: 320px;
    border-radius: 12px 12px 0 0;
  }
  .chat-dock { z-index: 50; }
}
.login-pop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.72);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.login-pop.hidden { display: none !important; }
.login-pop-card {
  width: min(360px, 100%);
  background: #111; border: 1px solid #2a2a2a; border-radius: 18px;
  padding: 22px; text-align: center; color: #fff;
}
.login-pop-card button {
  margin-top: 14px; width: 100%; border: 0; border-radius: 12px;
  padding: 12px; background: #2ee6c2; color: #04221c; font-weight: 800;
}
@supports (height: 100dvh) {
  html, body, .app { height: 100dvh; }
}
@media (max-width: 960px) {
  html, body { overflow: hidden; overscroll-behavior: none; }
  .app, .main { min-height: 100dvh; }
  .chat-dock {
    bottom: 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .composer textarea { font-size: 16px !important; }
  .login-pop { height: 100dvh; align-items: flex-end; }
  .login-pop-card { margin-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 960px) {
  .chat-dock {
    left: 0; right: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    padding: 8px 8px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .composer-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    width: 100%;
  }
  .attach-btn { width: 40px !important; height: 44px !important; flex: 0 0 40px; }
  .mic-btn { width: 44px !important; min-width: 44px !important; height: 44px !important; flex: 0 0 44px; padding: 0; }
  .composer textarea {
    flex: 1 1 auto;
    min-width: 80px;
    width: auto;
  }
  .send-btn, .composer button.send-btn, .composer button[type="submit"] {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 64px !important;
    height: 44px !important;
    padding: 0 14px !important;
    margin: 0;
    visibility: visible !important;
    opacity: 1 !important;
    background: #2ee6c2 !important;
    color: #04221c !important;
    border-radius: 12px !important;
    font-weight: 800;
    z-index: 6;
  }
}
.media-actions { display: flex; gap: 8px; margin-top: 8px; }
.media-actions button {
  border: 0; border-radius: 10px; padding: 8px 12px;
  background: #1b1b1b; color: #fff; font-weight: 700;
}
.media-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.media-actions button {
  min-height: 44px; min-width: 88px;
  border: 0; border-radius: 12px; padding: 10px 14px;
  background: #2ee6c2; color: #04221c; font-weight: 800;
}
.msg img { max-width: 100%; border-radius: 12px; display: block; }

html.bhola-in #authScreen { display: none !important; visibility: hidden !important; }
html.bhola-in #app { display: flex !important; visibility: visible !important; }
html.bhola-in #loginPop { display: none !important; }
.signout-btn {
  width: 100%; margin-top: 8px; border: 1px solid #333; background: #141414;
  color: #eee; border-radius: 10px; padding: 10px; font-weight: 700;
}
