/* public/styles.css · Konfeti studio site */
/* Self-hosted variable fonts (SIL OFL 1.1, see /fonts/OFL.txt): no third-party request, Turkish glyphs in latin-ext. */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/fonts/bricolage-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/fonts/bricolage-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/jakarta-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/jakarta-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Brand: warm ink, one signature coral, confetti accents used small. */
:root {
  --ink: #0E0D14;
  --ink-2: #16151E;
  --surface: #1F1E29;
  --line: rgba(255, 255, 255, 0.09);
  --text: #F6F3EC;
  --muted: #ABA7B5;
  --on: #16121A;
  --coral: #FF5B4A;
  --coral-2: #FF7A6B;
  --sun: #FFC233;
  --mint: #1FD3A0;
  --sky: #4B9BFF;
  --lilac: #A08BFF;
  --radius: 24px;
  --display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 500 16px/1.6 var(--body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html, body { overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 12px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
[hidden] { display: none !important; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sun); color: var(--ink); padding: 10px 16px; border-radius: 12px; font-weight: 800; }
.skip:focus { top: 12px; }

/* ---------- Background ---------- */
/* One warm light from the top and a fine film grain; no animated blobs. */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(70vmax 46vmax at 78% -12%, rgba(255, 91, 74, .17), transparent 62%), radial-gradient(50vmax 40vmax at -10% 8%, rgba(255, 194, 51, .07), transparent 60%), var(--ink); }
.grain { position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; transition: background .25s, box-shadow .25s; padding-top: env(safe-area-inset-top); }
.top.is-scrolled { background: rgba(14, 13, 20, .8); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.top__in { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; }
.brand__mark { border-radius: 10px; }
.wordmark { font: 800 27px/1 var(--display); letter-spacing: -.02em; }
/* Wordmark: dotless ı whose dot is a tilted confetti strip (the same piece as in the mark). */
.wm-i { position: relative; display: inline-block; }
.wm-i::before { content: ''; position: absolute; left: 56%; top: .06em; width: .25em; height: .12em; border-radius: .035em; background: var(--sun); transform: translateX(-50%) rotate(-34deg); }
.wordmark--lg { font-size: 44px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 10px 14px; border-radius: 999px; font-weight: 700; color: var(--muted); transition: color .2s, background .2s; }
@media (hover: hover) { .nav a:hover { color: var(--text); background: rgba(255,255,255,.07); } }
.lang { display: inline-grid; place-items: center; min-width: 48px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.06); font-weight: 800; letter-spacing: .04em; }
@media (hover: hover) { .lang:hover { background: rgba(255,255,255,.12); } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; font-weight: 800; font-size: 16px; letter-spacing: -.005em; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--coral); color: var(--on); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 28px -8px rgba(255, 91, 74, .55); }
.btn--ghost { background: transparent; border: 1.5px solid rgba(246, 243, 236, .22); color: var(--text); }
.btn--light { background: var(--text); color: var(--on); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn--primary:hover { background: var(--coral-2); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 16px 36px -10px rgba(255, 91, 74, .7); }
  .btn--ghost:hover { border-color: rgba(246, 243, 236, .5); background: rgba(255,255,255,.04); }
}

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 32px; padding-top: clamp(24px, 6vw, 72px); padding-bottom: clamp(32px, 6vw, 64px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 8px 16px 8px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(46,230,168,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(46,230,168,0); } 100% { box-shadow: 0 0 0 0 rgba(46,230,168,0); } }
.hero__title { font: 800 clamp(52px, 9vw, 124px)/.98 var(--display); letter-spacing: -.015em; margin: 0 0 28px; text-wrap: balance; }
/* Accent word: solid coral with a confetti strip as its full stop. */
.grad { color: var(--coral); position: relative; }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 32px; }
.stats li { display: flex; flex-direction: column; }
.stats b { font: 800 clamp(22px, 2.4vw, 30px)/1.1 var(--display); }
.stats span { color: var(--muted); font-size: 14px; font-weight: 600; }

.hero__stage { position: relative; height: clamp(440px, 46vw, 600px); }
.phone { position: relative; border-radius: 34px; padding: 7px; background: linear-gradient(160deg, #2E2C36, #121117); box-shadow: 0 30px 60px -12px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.1), inset 0 0 0 1px rgba(255,255,255,.05); }
.phone img { border-radius: 28px; width: 100%; height: auto; aspect-ratio: 508 / 1100; object-fit: cover; object-position: top; background: #111; }
.phone::after { content: ''; position: absolute; top: 15px; left: 50%; width: 30%; height: 16px; transform: translateX(-50%); background: #0B0B0F; border-radius: 99px; }
.hero__stage .phone { position: absolute; width: clamp(180px, 19vw, 250px); }
.p1 { left: 50%; top: 2%; transform: translateX(-50%) ; z-index: 3; animation: float1 7s ease-in-out infinite; }
.p2 { left: 6%; top: 14%; z-index: 2; animation: float2 8s ease-in-out infinite; }
.p3 { right: 4%; top: 16%; z-index: 1; animation: float3 9s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-14px); } }
@keyframes float2 { 0%,100% { transform: rotate(-9deg) translateY(0); } 50% { transform: rotate(-7deg) translateY(-10px); } }
@keyframes float3 { 0%,100% { transform: rotate(9deg) translateY(0); } 50% { transform: rotate(7deg) translateY(-12px); } }
/* Confetti pieces around the phones: flat shapes, slow sway, no glow. */
.spark { position: absolute; z-index: 4; border-radius: 3px; animation: sway 6s ease-in-out infinite; }
.s1 { width: 30px; height: 12px; background: var(--sun); top: 5%; left: 16%; --r: -28deg; }
.s2 { width: 16px; height: 16px; border-radius: 50%; background: var(--mint); bottom: 12%; right: 10%; --r: 0deg; animation-delay: -2s; }
.s3 { width: 22px; height: 10px; background: var(--sky); bottom: 5%; left: 28%; --r: 24deg; animation-delay: -4s; }
@keyframes sway { 0%, 100% { transform: rotate(var(--r)) translateY(0); } 50% { transform: rotate(calc(var(--r) + 14deg)) translateY(-8px); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255,255,255,.025); padding: 16px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 44px; width: max-content; animation: scroll 40s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 12px; font: 700 19px/1 var(--display); letter-spacing: -.01em; color: rgba(246,243,236,.72); white-space: nowrap; }
.marquee__track img { border-radius: 8px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Section heads ---------- */
.sec-kicker { display: inline-flex; align-items: center; gap: 10px; font: 800 13px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--sun); margin: 0 0 20px; }
.sec-head { margin-bottom: 24px; }
.sec-title { font: 800 clamp(36px, 5.4vw, 64px)/1.05 var(--display); letter-spacing: -.02em; margin: 0 0 12px; text-wrap: balance; }
.sec-sub { color: var(--muted); font-size: 18px; margin: 0; }

/* ---------- Most played ---------- */
.pop-sec { padding-top: clamp(40px, 6vw, 72px); }
.pop-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 18px; }
.pop-head .sec-kicker { margin: 0; display: inline-flex; align-items: center; gap: 10px; }
.pop-sec.is-live .sec-kicker::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); animation: live 2s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(46, 230, 168, .6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(46, 230, 168, 0); } }
.pop-note { margin: 0; color: var(--muted); font-size: 14px; }
.pop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.pop__item { position: relative; display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 14px 16px 14px 12px; border-radius: 20px; overflow: hidden;
  background: radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--c1) 36%, transparent), transparent 62%), var(--ink-2);
  box-shadow: 0 0 0 1px rgba(255,255,255,.09); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.pop__rank { flex: none; width: 34px; text-align: center; font: 800 30px/1 var(--display); letter-spacing: -.02em; color: rgba(255,255,255,.62); }
.pop li:nth-child(1) .pop__rank { color: var(--sun); }
.pop li:nth-child(2) .pop__rank { color: #DCE3F2; }
.pop li:nth-child(3) .pop__rank { color: #F3AE78; }
.pop__icon { flex: none; border-radius: 14px; box-shadow: 0 8px 18px rgba(0,0,0,.4); }
.pop__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pop__txt b { font: 800 18px/1.2 var(--display); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop__txt small { margin-top: 4px; color: var(--muted); font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop__go { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background .25s, color .25s; }
.pop__item:focus-visible .pop__go { background: #fff; color: var(--on); }
@media (min-width: 760px) { .pop { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) {
  .pop { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pop__item { gap: 12px; padding-right: 14px; }
  .pop__rank { width: 28px; font-size: 28px; }
  .pop__icon { width: 48px; height: 48px; }
  .pop__go { display: none; } /* the whole tile lifts on hover; four narrow columns need the room for names */
}
@media (max-width: 360px) { .pop__icon { width: 48px; height: 48px; } .pop__go { display: none; } }
@media (prefers-reduced-motion: reduce) { .pop-sec.is-live .sec-kicker::before { animation: none; } }

/* ---------- Spotlight ---------- */
.spot-sec { padding-top: clamp(48px, 7vw, 88px); }
.spots { display: grid; grid-template-columns: 1fr; gap: 20px; }
.spot { position: relative; display: grid; grid-template-columns: .9fr 1.3fr; gap: 24px; align-items: center; padding: clamp(24px, 3.5vw, 44px); border-radius: 32px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 140% at 0% 0%, var(--c1) 0%, transparent 55%), linear-gradient(135deg, var(--c2), #0E0D14 80%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 60px rgba(0,0,0,.35); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.spot__icon { border-radius: 16px; margin-bottom: 16px; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.spot h3 { font: 800 clamp(38px, 4.8vw, 64px)/1 var(--display); letter-spacing: -.02em; margin: 0 0 12px; }
.spot__slogan { font: 700 clamp(17px, 1.6vw, 20px)/1.35 var(--body); margin: 0 0 10px; }
.spot__desc { color: rgba(255,255,255,.8); margin: 0 0 24px; max-width: 30em; }
.browser { position: relative; border-radius: 16px; padding-top: 30px; background: #22212B; box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.12); transform: perspective(1400px) rotateY(-9deg) rotateX(3deg); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.browser i { position: absolute; top: 11px; width: 9px; height: 9px; border-radius: 50%; background: #FF5F57; left: 14px; }
.browser i:nth-child(2) { background: #FEBC2E; left: 30px; } .browser i:nth-child(3) { background: #28C840; left: 46px; }
.browser img { border-radius: 0 0 16px 16px; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- Games ---------- */
.games { padding-top: clamp(64px, 9vw, 120px); scroll-margin-top: 64px; }
.chips { display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 14px; margin: 0 calc(var(--gutter) * -1) 12px; padding-inline: var(--gutter); scrollbar-width: none; scroll-snap-type: x proximity; position: sticky; top: 68px; z-index: 20; background: linear-gradient(rgba(14,13,20,.94) 75%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(22,21,30,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-weight: 700; white-space: nowrap; scroll-snap-align: start; transition: background .2s, border-color .2s, transform .2s; }
.chip small { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.1); color: var(--muted); }
.chip[aria-pressed="true"] { background: #fff; color: var(--on); border-color: #fff; }
.chip[aria-pressed="true"] small { background: var(--on); color: #fff; }

.cat { padding-top: 32px; scroll-margin-top: 140px; }
.cat__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 20px; }
.cat__head h3 { font: 800 clamp(24px, 2.8vw, 32px)/1.2 var(--display); margin: 0; letter-spacing: -.015em; }
.cat__head p { margin: 0; color: var(--muted); flex: 1 1 260px; }
.cat__n { font-size: 13px; font-weight: 800; color: var(--muted); padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }

.card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); box-shadow: 0 0 0 1px rgba(255,255,255,.08); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; scroll-margin-top: 140px; }
.card__art { position: relative; height: 250px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; padding-top: 28px;
  background: radial-gradient(90% 90% at 20% 10%, var(--c1), transparent 60%), radial-gradient(80% 80% at 90% 90%, var(--c2), transparent 65%), linear-gradient(160deg, color-mix(in srgb, var(--c1) 45%, var(--on)), var(--on)); }
.card__art::after { content: ''; position: absolute; inset: auto 0 0; height: 60px; background: linear-gradient(transparent, var(--ink-2)); pointer-events: none; }
.phone--card { width: 168px; transform: rotate(-4deg) translateY(6px); transition: transform .5s cubic-bezier(.2,.8,.2,1); border-radius: 28px; padding: 6px; }
.phone--card img { border-radius: 23px; }
.phone--card::after { top: 12px; height: 12px; }
.tablet { width: 86%; margin-top: 16px; border-radius: 18px; padding: 7px; background: linear-gradient(160deg, #2E2C36, #121117); box-shadow: 0 24px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.12); transform: rotate(-3deg); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.tablet img { border-radius: 12px; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 12px; padding: 4px 22px 22px; flex: 1; }
.card__head { display: flex; align-items: center; gap: 12px; margin-top: -30px; position: relative; z-index: 1; }
.card__icon { border-radius: 14px; box-shadow: 0 8px 20px rgba(0,0,0,.45), 0 0 0 3px var(--ink-2); background: var(--ink-2); }
.card h4 { font: 800 24px/1.15 var(--display); margin: 22px 0 0; letter-spacing: -.015em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); color: #DEDAD2; }
.card__cta { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; font-weight: 800; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); transition: background .25s, color .25s, gap .25s; }
.card:focus-visible .card__cta { background: #fff; color: var(--on); gap: 12px; }
.card.is-picked { animation: picked 1.6s cubic-bezier(.2,.8,.2,1); }
@keyframes picked { 0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,.08); } 20%, 60% { box-shadow: 0 0 0 4px var(--sun), 0 0 60px var(--sun); transform: translateY(-6px) scale(1.02); } }

/* Category layout: on wide screens a category spans one column per game (max 4); app.js rowSpans widens the last one in a row so no row has a hole. */
#cats { display: grid; grid-template-columns: 1fr; column-gap: 20px; }
.cat--solo .card { flex-direction: row; min-height: 280px; }
.cat--solo .card__art { height: auto; width: 46%; flex: none; align-items: center; padding-top: 24px; }
.cat--solo .card__art::after { inset: 0 0 0 auto; width: 50px; height: auto; background: linear-gradient(90deg, transparent, var(--ink-2)); }
.cat--solo .card__body { padding: 24px 22px 22px 8px; justify-content: center; }
.cat--solo .card__head { margin-top: 0; }
.cat--solo .card h4 { margin-top: 0; }
.cat--solo .phone--card { width: 150px; }
@media (min-width: 1100px) {
  #cats { grid-template-columns: repeat(4, 1fr); }
  .cat { grid-column: span var(--span, var(--n, 2)); }
  .cat .grid { grid-template-columns: repeat(var(--n, 2), 1fr); }
  .cat__head { min-height: 64px; }
  /* Paired categories share a row; let a shorter neighbour's cards fill the row height. */
  .cat:not([hidden]) { display: flex; flex-direction: column; }
  .cat .grid { flex: 1; }
}
/* Narrow phones and the one-column desktop slot: the solo card stacks like the others. */
@media (max-width: 520px), (min-width: 1100px) {
  .cat--solo .card { flex-direction: column; }
  .cat--solo .card__art { width: auto; height: 250px; align-items: flex-start; padding-top: 28px; }
  .cat--solo .card__art::after { inset: auto 0 0; height: 60px; width: auto; background: linear-gradient(transparent, var(--ink-2)); }
  .cat--solo .card__body { padding: 4px 22px 22px; }
  .cat--solo .card__head { margin-top: -30px; }
  .cat--solo .card h4 { margin-top: 22px; }
  .cat--solo .phone--card { width: 168px; }
}

/* ---------- Studio ---------- */
.studio { padding-top: clamp(80px, 10vw, 140px); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; scroll-margin-top: 64px; }
.quote { font: 700 clamp(30px, 3.8vw, 50px)/1.15 var(--display); letter-spacing: -.02em; margin: 0 0 22px; text-wrap: balance; }
.studio__lead { color: var(--muted); font-size: 18px; margin: 0; }
.beliefs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.belief { padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid var(--line); transition: transform .3s, background .3s; }
.belief h3 { font: 800 19px/1.25 var(--display); margin: 16px 0 8px; }
.belief p { margin: 0; color: var(--muted); font-size: 15px; }
.belief__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; }
.belief__ic svg { width: 26px; height: 26px; fill: none; stroke: var(--on); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.ic-a { background: var(--sun); } .ic-a svg { fill: var(--on); stroke: none; }
.ic-b { background: var(--mint); } .ic-c { background: var(--coral); } .ic-d { background: var(--lilac); }

/* ---------- Final CTA ---------- */
.final { padding-block: clamp(80px, 10vw, 140px); }
.final__card { text-align: center; padding: clamp(40px, 6vw, 72px) 24px; border-radius: 36px; background: radial-gradient(70% 110% at 50% 0%, rgba(255,91,74,.28), transparent 70%), linear-gradient(180deg, #1D1B24, #121118); border: 1px solid rgba(255,255,255,.12); }
.final__mark { margin: 0 auto 20px; border-radius: 20px; box-shadow: 0 18px 40px -12px rgba(255,91,74,.6); animation: float2 6s ease-in-out infinite; }
.final h2 { font: 800 clamp(32px, 5vw, 60px)/1.08 var(--display); letter-spacing: -.02em; margin: 0 0 14px; text-wrap: balance; }
.final p { color: var(--muted); font-size: 18px; margin: 0 0 28px; }

/* ---------- Game page ---------- */
.gpage { padding-block: clamp(28px, 5vw, 64px) clamp(64px, 8vw, 120px); max-width: 760px; }
.crumbs { color: var(--muted); font-weight: 700; margin: 0 0 24px; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.gpage h1 { font: 800 clamp(40px, 7vw, 72px)/1 var(--display); letter-spacing: -.02em; margin: 0 0 16px; }
.gpage__lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); margin: 0 0 28px; }
.gpage__note { margin: -12px 0 28px; color: var(--sun); font-weight: 700; }
.gpage__shot { width: min(280px, 70%); height: auto; border-radius: 28px; margin: 0 0 28px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.7); }
.gpage__facts { display: grid; gap: 12px; margin: 0 0 28px; }
.gpage__facts div { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.gpage__facts dt { font-weight: 800; color: var(--sun); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.gpage__facts dd { margin: 6px 0 0; }
.gpage h2 { font: 800 clamp(24px, 3vw, 32px)/1.15 var(--display); letter-spacing: -.015em; margin: 40px 0 12px; }
.gpage__more { padding-left: 20px; display: grid; gap: 8px; }
.gpage__more a { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 48px 0 calc(32px + env(safe-area-inset-bottom)); background: rgba(0,0,0,.2); }
.foot__in { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
.foot__brand p { color: var(--muted); margin: 10px 0 0; }
.foot__links { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 4px 16px; align-content: start; }
.foot__links a { color: var(--muted); padding: 8px 0; font-weight: 600; }
.foot__copy { grid-column: 1 / -1; color: #918D9B; font-size: 14px; margin: 8px 0 0; }

.nojs { columns: 2; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; z-index: 80; padding: 14px 22px; border-radius: 999px; background: #fff; color: var(--on); font-weight: 800; box-shadow: 0 16px 40px rgba(0,0,0,.4); transition: opacity .25s, transform .25s; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Hover (mouse and trackpad only) ---------- */
@media (hover: hover) {
  .pop__item:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 18px 36px rgba(0,0,0,.4), 0 0 40px -12px var(--c1); }
  .pop__item:hover .pop__go { background: #fff; color: var(--on); }
  .spot:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 40px 80px rgba(0,0,0,.45); }
  .spot:hover .browser { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg) scale(1.02); }
  .chip:hover { border-color: rgba(255,255,255,.3); }
  .card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 28px 50px rgba(0,0,0,.45), 0 0 60px -10px var(--c1); }
  .card:hover .phone--card { transform: rotate(0deg) translateY(-10px) scale(1.04); }
  .card:hover .tablet { transform: rotate(0) translateY(-6px) scale(1.03); }
  .card:hover .card__cta { background: #fff; color: var(--on); gap: 12px; }
  .belief:hover { transform: translateY(-4px); background: rgba(255,255,255,.07); }
  .foot__links a:hover { color: var(--text); }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero__stage { height: 420px; max-width: 560px; width: 100%; margin-inline: auto; }
  .hero__stage .phone { width: 190px; }
  .spot { grid-template-columns: 1fr; }
  .spot__art { order: -1; }
  .browser, .spot:hover .browser { transform: none; }
  .studio { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .wordmark { font-size: 22px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero__stage { height: 360px; }
  .hero__stage .phone { width: 150px; }
  .p2 { left: 0; } .p3 { right: 0; }
  .beliefs { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr; }
  .card__art { height: 230px; }
}
@media (hover: none) {
  .card:hover, .spot:hover, .belief:hover, .btn:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- account (account.js) ---------- */
.acct { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--text); font-weight: 800; font-size: 15px; white-space: nowrap; }
@media (hover: hover) { .acct:hover { background: rgba(255,255,255,.12); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kf-dlg { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); color: var(--text); overflow: auto; }
.kf-dlg::backdrop { background: rgba(8,7,12,.74); }
.kf-dlg__in { position: relative; padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.kf-dlg h2 { font-family: var(--display); font-size: 24px; line-height: 1.2; padding-right: 44px; }
.kf-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(255,255,255,.08); color: var(--text); font-size: 24px; line-height: 1; }
.kf-lead, .kf-hint { color: var(--muted); }
.kf-hint { font-size: 14px; }
.kf-form { display: flex; flex-direction: column; gap: 12px; }
.kf-f { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.kf-f input { min-height: 48px; padding: 0 14px; font-size: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.kf-f input:focus-visible { outline: 2px solid var(--sun); outline-offset: 1px; }
.kf-f input[aria-invalid="true"] { border-color: var(--coral); }
.kf-err, .kf-form-err { color: var(--coral); font-size: 14px; font-weight: 700; }
.kf-err:empty, .kf-form-err:empty { display: none; }
.kf-avs, .kf-grid { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kf-avs legend, .kf-grid legend { font-weight: 700; margin-bottom: 6px; width: 100%; }
.kf-grid .kf-f { flex: 1 1 200px; }
.kf-av { position: relative; }
.kf-av input { position: absolute; opacity: 0; inset: 0; }
.kf-av span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 22px; }
.kf-av input:checked + span { border-color: var(--sun); box-shadow: 0 0 0 2px var(--sun); }
.kf-av input:focus-visible + span { outline: 2px solid var(--sun); outline-offset: 2px; }
.kf-wide { width: 100%; }
.kf-link { min-height: 44px; border: 0; background: none; color: var(--muted); font-weight: 700; text-decoration: underline; font-size: 15px; }
.kf-row { display: flex; flex-wrap: wrap; gap: 10px; }
.kf-row .btn { flex: 1 1 160px; }
.kf-code code { display: block; padding: 14px; border-radius: 14px; background: var(--surface); font-size: 20px; letter-spacing: .08em; text-align: center; word-break: break-all; user-select: all; }
.kf-notice { padding-right: 44px; }
.kf-panel { margin-block: 32px; }
.kf-panel[hidden] { display: none; }
.kf-panel > h2, .kf-join h2 { font-family: var(--display); font-size: clamp(24px, 4vw, 34px); line-height: 1.15; }
.kf-join { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(90% 140% at 100% 0%, rgba(255,91,74,.2), transparent 60%), radial-gradient(70% 120% at 0% 100%, rgba(255,194,51,.09), transparent 60%), var(--ink-2); }
.kf-join > div:first-child { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.kf-join p { color: var(--muted); }
.kf-join ul { display: grid; gap: 6px; padding-left: 20px; }
.kf-from { color: var(--sun) !important; font-weight: 800; }
.kf-join__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.kf-lib { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.kf-lib a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.kf-lib img { border-radius: 12px; flex: none; }
.kf-lib span { display: flex; flex-direction: column; min-width: 0; }
.kf-lib small { color: var(--muted); }
.kf-bundle { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,200,61,.08); }
.kf-badge { align-self: flex-start; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; background: rgba(46,230,168,.14); color: var(--mint); }
.kf-badge.is-owned { background: rgba(255,200,61,.16); color: var(--sun); }
@media (max-width: 420px) { .acct { padding: 0 12px; font-size: 14px; } }
