/* ToolCraft Studio — site styles (v2, Nov 2026)
   One stylesheet for every page. Each page sets <body data-theme="..."> to swap palette tokens. */

:root {
  --bg: #f6f4ee;
  --surface: #ffffff;
  --surface-2: #efece4;
  --ink: #12141a;
  --ink-2: #2a2e38;
  --muted: #5f6472;
  --line: #e3dfd4;
  --brand: #14a97f;
  --brand-2: #35c977;
  --brand-ink: #0b7a5b;
  --accent: #ffb703;
  --on-brand: #ffffff;
  --grad: linear-gradient(135deg, #14a97f 0%, #35c977 100%);
  --hero-bg: #0e1013;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(18, 20, 26, .05), 0 8px 30px rgba(18, 20, 26, .07);
  --shadow-lg: 0 30px 80px rgba(18, 20, 26, .18);
  --display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1180px;
}

/* ---------- per-app themes ---------- */
body[data-theme="arrows"] {
  --bg: #0f1311; --surface: #171d1a; --surface-2: #1d2521; --ink: #f1efe6; --ink-2: #d8d6cc;
  --muted: #9aa49e; --line: #27312c; --brand: #7ee0a1; --brand-2: #17b39b; --brand-ink: #7ee0a1;
  --on-brand: #0f1311; --grad: linear-gradient(135deg, #17b39b 0%, #7ee0a1 100%); --hero-bg: #0b0e0c;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
}
body[data-theme="starlace"] {
  --bg: #fbf7ec; --surface: #ffffff; --surface-2: #f3ecda; --ink: #1b2440; --ink-2: #2b3658;
  --muted: #646a7d; --line: #eadfc6; --brand: #1d2a4a; --brand-2: #c9962f; --brand-ink: #a87618;
  --on-brand: #fff; --grad: linear-gradient(135deg, #1d2a4a 0%, #34467a 100%); --hero-bg: #1b2440;
}
body[data-theme="chit"] {
  --bg: #fbf7ec; --surface: #ffffff; --surface-2: #fdf0c4; --ink: #23233a; --ink-2: #2f2f4a;
  --muted: #6b6a78; --line: #e8dfc8; --brand: #1f3c8f; --brand-2: #f2b705; --brand-ink: #1f3c8f;
  --on-brand: #fff; --grad: linear-gradient(135deg, #1f3c8f 0%, #2a4ba6 100%); --hero-bg: #1f3c8f;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body);
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.12rem; color: var(--ink); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav-links a:hover { background: var(--surface-2); text-decoration: none; }
.nav-links a.btn { color: var(--on-brand); margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-links a.btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700;
  font-size: 1rem; padding: 14px 22px; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease; line-height: 1.1; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-primary { background: var(--grad); color: var(--on-brand); box-shadow: 0 10px 26px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 18%, transparent); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: #12141a; }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { border-color: #fff; }

/* Google Play button (text + Play glyph; not the official badge artwork) */
.play-btn {
  display: inline-flex; align-items: center; gap: 12px; background: #0b0b0d; color: #fff; border-radius: 14px;
  padding: 10px 20px 10px 16px; border: 1px solid rgba(255,255,255,.18); transition: transform .15s ease;
}
.play-btn:hover { text-decoration: none; transform: translateY(-2px); }
.play-btn svg { width: 26px; height: 26px; flex: none; }
.play-btn span { display: flex; flex-direction: column; line-height: 1.1; }
.play-btn small { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; opacity: .8; font-weight: 600; }
.play-btn b { font-size: 1.12rem; font-family: var(--display); font-weight: 700; }
.play-btn.soon { background: transparent; color: inherit; border: 2px dashed currentColor; cursor: default; opacity: .9; }
.play-btn.soon:hover { transform: none; }

/* ---------- chips / pills ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-ink); margin-bottom: 18px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 25%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chip { font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.tag-live, .tag-soon { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.tag-live { background: #e3f8ee; color: #0b7a5b; }
.tag-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #15b37d; box-shadow: 0 0 0 3px #bdeed6; }
.tag-soon { background: #fff2c7; color: #8a5a00; }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.kicker { font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink); display: block; margin-bottom: 12px; }
.alt { background: var(--surface-2); }

/* ---------- studio hero (home) ---------- */
.hero-dark {
  position: relative; background: var(--hero-bg); color: #f3f1ea; overflow: hidden; padding: 88px 0 0;
  isolation: isolate;
}
.hero-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(53, 201, 119, .28), transparent 70%),
    radial-gradient(500px 380px at 10% 90%, rgba(255, 183, 3, .16), transparent 70%),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 44px 44px;
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.hero-dark h1 { color: #fff; }
.hero-dark h1 em { font-style: normal; background: linear-gradient(120deg, #7ee0a1, #35c977 40%, #ffd166); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-dark .lede { color: #c5c8cf; font-size: 1.2rem; max-width: 560px; }
.hero-dark .eyebrow { color: #7ee0a1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 72px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-stats div { padding: 26px 20px 30px 0; }
.hero-stats b { display: block; font-family: var(--display); font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 6px; }
.hero-stats span { color: #9da2ad; font-size: .92rem; }

.phone-stack { position: relative; height: 560px; }
.phone {
  position: absolute; width: 230px; aspect-ratio: 9 / 19; border-radius: 34px; background: #000;
  padding: 8px; box-shadow: 0 40px 80px rgba(0,0,0,.55), inset 0 0 0 2px #2a2d33; overflow: hidden;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; background: #1b1e22; }
.phone.p1 { left: 2%; top: 70px; transform: rotate(-8deg); }
.phone.p2 { left: 32%; top: 10px; z-index: 2; width: 250px; }
.phone.p3 { right: 0; top: 90px; transform: rotate(8deg); }
.float-icon { position: absolute; width: 74px; height: 74px; border-radius: 20px; box-shadow: 0 16px 40px rgba(0,0,0,.45); z-index: 3; animation: bob 6s ease-in-out infinite; }
.float-icon.i1 { left: -10px; top: 20px; }
.float-icon.i2 { right: 10px; top: 10px; animation-delay: -2s; }
.float-icon.i3 { left: 46%; bottom: 0; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .float-icon { animation: none; } html { scroll-behavior: auto; } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone-stack { height: 440px; max-width: 520px; margin: 10px auto 0; width: 100%; }
  .phone { width: 180px; } .phone.p2 { width: 196px; left: 31%; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .phone-stack { height: 360px; }
  .phone { width: 140px; border-radius: 24px; padding: 6px; } .phone img { border-radius: 19px; }
  .phone.p2 { width: 156px; left: 28%; }
  .float-icon { width: 56px; height: 56px; border-radius: 15px; }
  section { padding: 72px 0; }
}

/* ---------- game cards (home) ---------- */
.games-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .games-grid { grid-template-columns: 1fr; } }
.game-card {
  position: relative; border-radius: 28px; overflow: hidden; padding: 34px 34px 0; display: flex; flex-direction: column;
  min-height: 620px; box-shadow: var(--shadow); isolation: isolate;
}
.game-card .gc-top { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.game-card .gc-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 8px 24px rgba(0,0,0,.25); flex: none; }
.game-card h3 { font-size: 1.8rem; margin: 0 0 4px; color: inherit; }
.game-card .gc-sub { font-size: .92rem; opacity: .75; font-weight: 600; }
.game-card p { opacity: .88; max-width: 460px; }
.game-card .chips { margin: 4px 0 22px; }
.game-card .gc-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 30px; }
.game-card .gc-shots { margin-top: auto; display: flex; gap: 14px; justify-content: center; transform: translateY(26px); }
.game-card .gc-shots img { width: 46%; max-width: 210px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 22px 22px 0 0; box-shadow: 0 -8px 40px rgba(0,0,0,.3); background: rgba(0,0,0,.15); }
.game-card .gc-shots img:nth-child(2) { transform: translateY(-26px); }
.game-card .more { font-weight: 700; color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.game-card .more svg { width: 18px; height: 18px; transition: transform .15s; }
.game-card .more:hover svg { transform: translateX(4px); }
.gc-arrows { background: radial-gradient(500px 300px at 90% 0%, rgba(126,224,161,.22), transparent 70%), #121815; color: #f1efe6; }
.gc-arrows .chip { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); color: #e6e4da; }
.gc-star { background: radial-gradient(500px 300px at 90% 0%, rgba(201,150,47,.35), transparent 70%), #1d2a4a; color: #fbf7ec; }
.gc-star .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #f3ecda; }

/* coming soon card */
.soon-card {
  position: relative; border-radius: 32px; overflow: hidden; color: #23233a; border: 3px solid #23233a; box-shadow: 0 10px 0 #23233a;
  background: repeating-conic-gradient(from 0deg at 80% 50%, #f6c33a 0deg 10deg, #f2b705 10deg 20deg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; padding: 48px;
}
.soon-card .sc-copy { background: #fbf7ec; border: 3px solid #23233a; border-radius: 24px; padding: 32px; box-shadow: 0 6px 0 #23233a; }
.soon-card h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 6px; color: #23233a; }
.soon-card .hindi { font-family: "Kalam", var(--display); font-size: 1.5rem; color: #ee7d1f; font-weight: 700; margin-bottom: 14px; display: block; }
.soon-card .roles { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; padding: 0; list-style: none; }
.soon-card .roles li { border: 2px solid #23233a; border-radius: 12px; padding: 4px 10px; font-weight: 800; font-size: .9rem; background: #fff; }
.soon-card .roles li b { background: #f2b705; border-radius: 99px; padding: 0 7px; margin-left: 6px; font-size: .78rem; }
.soon-card .sc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-chunky { background: #1f3c8f; color: #fff; border: 3px solid #23233a; box-shadow: 0 4px 0 #23233a; border-radius: 14px; }
.btn-chunky:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #23233a; }
.btn-chunky.orange { background: #ee7d1f; }
.btn-chunky.white { background: #fff; color: #23233a; }
.soon-card .sc-shots { display: flex; gap: 14px; justify-content: center; }
.soon-card .sc-shots img { width: 44%; max-width: 220px; border-radius: 20px; border: 3px solid #23233a; box-shadow: 0 6px 0 #23233a; }
.soon-card .sc-shots img:first-child { transform: rotate(-4deg); }
.soon-card .sc-shots img:last-child { transform: rotate(4deg) translateY(20px); }
@media (max-width: 900px) { .soon-card { grid-template-columns: 1fr; padding: 22px; } .soon-card .sc-copy { padding: 24px; } }

/* principles */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 960px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.pillar .pi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand-ink); margin-bottom: 16px; }
.pillar .pi svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 1.12rem; }
.pillar p { color: var(--muted); font-size: .96rem; margin: 0; }

/* CTA band */
.cta-band { background: var(--ink); color: var(--bg); border-radius: 32px; padding: 56px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: var(--grad); opacity: .35; filter: blur(30px); }
.cta-band h2 { color: inherit; margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-band p { margin: 0; opacity: .75; }
.cta-band > * { position: relative; z-index: 1; }
@media (max-width: 560px) { .cta-band { padding: 32px 24px; } }

/* ---------- game page ---------- */
.game-hero { padding: 72px 0 80px; position: relative; overflow: hidden; }
.game-hero .hero-grid { grid-template-columns: 1.1fr .9fr; }
.game-hero .app-id { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.game-hero .app-id img { width: 84px; height: 84px; border-radius: 22px; box-shadow: var(--shadow); }
.game-hero .app-id .dev { font-size: .95rem; color: var(--muted); font-weight: 600; }
.game-hero .lede { font-size: 1.2rem; color: var(--ink-2); max-width: 560px; }
.game-hero .hero-cta { align-items: center; }
.game-hero .meta-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.game-hero .meta-row span { display: inline-flex; align-items: center; gap: 8px; }
.game-hero .meta-row svg { width: 18px; height: 18px; color: var(--brand-ink); }
.hero-phone { position: relative; display: flex; justify-content: center; }
.hero-phone .phone { position: relative; width: 290px; transform: rotate(3deg); }
.hero-phone::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--grad); filter: blur(60px); opacity: .45; top: 50%; left: 50%; transform: translate(-50%, -50%); }
@media (max-width: 960px) { .game-hero .hero-grid { grid-template-columns: 1fr; } .hero-phone .phone { width: 240px; } }

body[data-theme="starlace"] .game-hero { background: radial-gradient(700px 400px at 90% 10%, rgba(201,150,47,.22), transparent 70%); }
body[data-theme="starlace"] .play-btn.dark-on-light { background: #1b2440; }
body[data-theme="arrows"] .play-btn { border-color: rgba(255,255,255,.25); }
body[data-theme="chit"] .game-hero { background: repeating-conic-gradient(from 0deg at 75% 45%, #f6c33a 0deg 10deg, #f2b705 10deg 20deg); border-bottom: 3px solid #23233a; }
body[data-theme="chit"] .game-hero .hero-copy { background: #fbf7ec; border: 3px solid #23233a; border-radius: 28px; padding: 34px; box-shadow: 0 8px 0 #23233a; }
body[data-theme="chit"] .hero-phone::before { display: none; }
body[data-theme="chit"] .hero-phone .phone { background: #23233a; box-shadow: 0 10px 0 #23233a; }
body[data-theme="chit"] h1, body[data-theme="chit"] h2 { letter-spacing: -0.015em; }
body[data-theme="chit"] .hindi { font-family: "Kalam", var(--display); color: #ee7d1f; font-weight: 700; font-size: 1.6rem; display: block; margin: -4px 0 14px; }
@media (max-width: 560px) { body[data-theme="chit"] .game-hero .hero-copy { padding: 22px; } }

/* screenshot strip */
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 20px 26px; margin: 0 -20px; scrollbar-width: thin; }
.shots figure { margin: 0; flex: none; scroll-snap-align: start; }
.shots img { height: 460px; width: auto; border-radius: 22px; box-shadow: var(--shadow); background: var(--surface-2); }
.shots figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; font-weight: 600; max-width: 240px; }
@media (max-width: 560px) { .shots img { height: 380px; } }
body[data-theme="chit"] .shots img { border: 3px solid #23233a; box-shadow: 0 6px 0 #23233a; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; padding: 0; margin: 0; list-style: none; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; counter-increment: s; position: relative; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 800; font-size: 1.1rem; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--grad); color: var(--on-brand); margin-bottom: 16px; }
.steps li h3 { font-size: 1.15rem; }
.steps li p { color: var(--muted); margin: 0; font-size: .97rem; }
body[data-theme="chit"] .steps li, body[data-theme="chit"] .feature, body[data-theme="chit"] .faq details { border: 2.5px solid #23233a; box-shadow: 0 4px 0 #23233a; }

/* feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .fi { font-size: 1.6rem; line-height: 1; margin-bottom: 14px; display: block; }
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }

/* score table (chit chor) */
.score { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 700px) { .score { grid-template-columns: repeat(2, 1fr); } }
.score li { background: #fff; border: 3px solid #23233a; border-radius: 20px; box-shadow: 0 5px 0 #23233a; padding: 20px; text-align: center; }
.score .emoji { font-size: 2rem; display: block; }
.score b { display: block; font-family: var(--display); font-size: 1.3rem; }
.score .hi { color: #6b6a78; font-size: .9rem; display: block; }
.score .pts { display: inline-block; background: #f2b705; border: 2px solid #23233a; border-radius: 99px; font-weight: 800; padding: 0 12px; margin-top: 8px; }

/* chat bubble demo */
.chat-demo { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.bubble { background: #fff; border: 2.5px solid #23233a; border-radius: 18px 18px 18px 4px; padding: 10px 14px; font-weight: 600; box-shadow: 0 3px 0 #23233a; max-width: 85%; }
.bubble small { display: block; color: #ee7d1f; font-weight: 800; font-size: .75rem; }
.bubble.me { align-self: flex-end; border-radius: 18px 18px 4px 18px; background: #fdf0c4; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 20px 30px 20px 0; position: relative; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 500; color: var(--brand-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 20px; }

/* legal link cards on game pages */
.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 700px) { .link-cards { grid-template-columns: 1fr; } }
.link-cards a { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; color: var(--ink); font-weight: 700; }
.link-cards a:hover { text-decoration: none; border-color: var(--brand-ink); }
.link-cards svg { width: 18px; height: 18px; color: var(--brand-ink); }

/* other games strip */
.other-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.other-games a { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; color: var(--ink); }
.other-games a:hover { text-decoration: none; border-color: var(--brand-ink); }
.other-games img { width: 52px; height: 52px; border-radius: 14px; }
.other-games b { display: block; font-family: var(--display); }
.other-games span { font-size: .88rem; color: var(--muted); }

/* breadcrumbs */
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--muted); }

/* ---------- legal / doc pages ---------- */
.doc-wrap { padding: 56px 0 96px; }
.doc { max-width: 860px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 48px 56px; box-shadow: var(--shadow); }
@media (max-width: 700px) { .doc { padding: 28px 22px; border-radius: 20px; } .doc-wrap { padding: 28px 0 64px; } }
.doc h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.35rem; margin: 2em 0 .6em; font-weight: 700; }
.doc h3 { font-size: 1.1rem; margin: 1.6em 0 .5em; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .4em; }
.doc .updated { color: var(--muted); font-size: .95rem; margin-bottom: 28px; }
.doc .callout { background: var(--surface-2); border-left: 4px solid var(--brand-ink); border-radius: 12px; padding: 16px 20px; margin: 0 0 24px; color: var(--ink-2); }
.doc table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface-2); }
.doc-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; color: var(--muted); margin-bottom: 18px; }
.doc-back svg { width: 18px; height: 18px; }
.doc-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 999px; margin: 0 0 28px; flex-wrap: wrap; }
.doc-tabs a { padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--muted); }
.doc-tabs a:hover { text-decoration: none; color: var(--ink); }
.doc-tabs a.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
body[data-theme="arrows"] .doc-tabs a.active { background: var(--brand); color: var(--on-brand); }
.doc .btn { margin-top: 6px; }
/* hub list */
.applist { display: grid; gap: 12px; margin-top: 8px; }
.approw { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; color: var(--ink); background: var(--surface); }
.approw:hover { text-decoration: none; border-color: var(--brand-ink); transform: translateY(-1px); }
.approw img, .approw .app-ico { width: 52px; height: 52px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--surface-2); color: var(--brand-ink); }
.approw .app-ico svg { width: 26px; height: 26px; }
.approw .meta { flex: 1; display: flex; flex-direction: column; }
.approw .meta b { font-family: var(--display); font-size: 1.08rem; }
.approw .meta span { color: var(--muted); font-size: .92rem; }
.approw .pill { font-size: .82rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
@media (max-width: 520px) { .approw .pill { display: none; } }
/* legacy classes that appear inside preserved legal content */
.doc .btn-primary { color: var(--on-brand); }
.doc .contact-card, .doc .card { background: var(--surface-2); border-radius: 16px; padding: 20px; margin: 16px 0; }
.doc .faq-list details, .doc details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; background: var(--surface); }
.doc details summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.doc .grid, .doc .support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }

/* ---------- footer ---------- */
.site-footer { background: #0e1013; color: #c9ccd3; padding: 72px 0 32px; }
body[data-theme="arrows"] .site-footer { background: #080a09; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.3fr 2fr; gap: 48px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; }
.footer-brand p { color: #9196a1; max-width: 340px; margin-top: 14px; font-size: .95rem; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 700px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
.footer-col h2 { font-family: var(--body); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 14px; font-weight: 800; }
.footer-col a { display: block; color: #a5a9b3; font-size: .93rem; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding-top: 24px; font-size: .88rem; color: #7d828d; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.notfound .big { font-family: var(--display); font-size: clamp(5rem, 18vw, 10rem); font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* support page blocks (preserved content) */
.doc .support-grid { margin: 8px 0 12px; }
.doc .support-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; }
.doc .support-card h3 { margin: 10px 0 6px; font-size: 1.05rem; }
.doc .support-card p { font-size: .94rem; color: var(--muted); flex: 1; }
.doc .si { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--brand-ink); }
.doc .si svg { width: 22px; height: 22px; }
.doc .support-link { font-weight: 700; }
.doc .faq { max-width: none; }
.doc .faq details { margin: 0; padding: 0 20px; }
.doc .faq summary { padding: 16px 30px 16px 0; }
.doc .chev { display: none; }
.doc .contact-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.doc .contact-card h3 { margin: 0 0 4px; }
.doc .contact-card p { margin: 0; color: var(--muted); }
.doc a { overflow-wrap: anywhere; }
