/* Schwapps. Shape rule: cards 28px, screenshots 20px, buttons and chips are pills. One accent: tomato. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --paper: #f1f2ec;
  --paper-2: #e6e8df;
  --card: #fbfbf7;
  --ink: #17201b;
  --muted: #56615a;
  --line: rgb(23 32 27 / .12);
  --accent: #cf3f25;
  --accent-hi: #e2492d;
  --accent-ink: #fff7f2;
  --hl: rgb(231 88 58 / .26);
  --shadow-1: 0 1px 2px rgb(32 44 30 / .08), 0 8px 24px -12px rgb(32 44 30 / .28);
  --shadow-2: 0 2px 4px rgb(32 44 30 / .06), 0 28px 60px -24px rgb(32 44 30 / .42);
  --r-card: 28px;
  --r-shot: 20px;
  --f-display: "Bricolage Grotesque", ui-rounded, system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 68px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111512;
    --paper-2: #1a1f1b;
    --card: #1c221e;
    --ink: #edf0e8;
    --muted: #a3ada6;
    --line: rgb(237 240 232 / .12);
    --accent: #ff6b4b;
    --accent-hi: #ff8166;
    --accent-ink: #1d0c06;
    --hl: rgb(255 107 75 / .3);
    --shadow-1: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .6);
    --shadow-2: 0 2px 4px rgb(0 0 0 / .3), 0 28px 60px -24px rgb(0 0 0 / .75);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.ic { width: 1.1em; height: 1.1em; flex: none; }
.rot-up { rotate: -90deg; }

/* ---------- type ---------- */
.display { font-family: var(--f-display); font-weight: 750; letter-spacing: -.035em; line-height: 1.02; font-optical-sizing: auto; text-wrap: balance; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.lede { font-size: clamp(1.06rem, 1.4vw, 1.22rem); color: var(--muted); max-width: 52ch; text-wrap: pretty; }
.kicker { font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- buttons ---------- */
.btn { --bg: var(--card); display: inline-flex; align-items: center; gap: .55em; padding: .9em 1.4em; border-radius: 999px; border: 0; background: var(--bg); color: var(--ink); font-weight: 650; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s, box-shadow .3s var(--out), scale .25s var(--spring), transform .35s var(--out); position: relative; overflow: hidden; }
.btn:active { scale: .95; }
.btn-primary { --bg: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -10px var(--accent), inset 0 -3px 0 rgb(0 0 0 / .14); }
.btn-primary:hover { --bg: var(--accent-hi); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .35) 50%, transparent 70%); translate: -120% 0; transition: translate .7s var(--out); }
.btn-primary:hover::after { translate: 120% 0; }
.btn-primary .ic { transition: translate .3s var(--spring); }
.btn-primary:hover .ic { translate: 4px 0; }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ink { --bg: var(--ink); color: var(--paper); }
.btn-ink:hover { --bg: color-mix(in oklab, var(--ink) 85%, var(--accent)); }
.btn-small { padding: .7em 1.1em; font-size: .92rem; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 0; background: var(--paper-2); cursor: pointer; transition: scale .25s var(--spring), background-color .2s; }
.icon-btn:hover { background: color-mix(in oklab, var(--paper-2) 80%, var(--ink)); }
.icon-btn:active { scale: .88; }
.icon-btn .ic { width: 20px; height: 20px; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 650; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.link-arrow .ic { transition: translate .3s var(--spring); }
.link-arrow:hover .ic { translate: 5px 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 30px; }

.store-row { display: flex; flex-wrap: wrap; gap: 10px; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; line-height: 1.1; font-weight: 700; font-size: 1.02rem; transition: scale .25s var(--spring), box-shadow .3s; }
.store-btn small { display: block; font-size: .7rem; font-weight: 500; opacity: .8; letter-spacing: .02em; }
.store-btn .store-ic { width: 24px; height: 24px; }
a.store-btn:hover { scale: 1.04; box-shadow: var(--shadow-2); }
a.store-btn:active { scale: .96; }
.store-soon { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px color-mix(in oklab, currentColor 22%, transparent); opacity: .75; }

/* ---------- nav ---------- */
.nav-sentinel { position: absolute; top: 0; height: 8px; width: 1px; }
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: color-mix(in oklab, var(--paper) 82%, transparent); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); transition: box-shadow .3s; }
.scrolled .nav { box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgb(0 0 0 / .3); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 20px; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .96rem; transition: background-color .2s; }
.nav-links a:hover, .nav-links a[aria-current] { background: var(--paper-2); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 32px; height: 32px; transition: rotate .5s var(--spring); }
.mark rect { fill: var(--accent); }
.mark path { stroke: var(--accent-ink); }
.mark circle { fill: var(--accent-ink); }
.brand:hover .mark { rotate: -12deg; }
.wordmark { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.04em; display: inline-flex; }
.wordmark span { display: inline-block; }
.brand:hover .wordmark span { animation: hop .5s var(--spring) calc(var(--i) * 35ms); }
@keyframes hop { 40% { translate: 0 -5px; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(28px, 5vw, 64px) clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.hero-h { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.04; }
.swipe { background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 92% / 0% 36%; animation: swipe 1s var(--out) .5s forwards; padding-inline: .04em; }
@keyframes swipe { to { background-size: 100% 36%; } }
.hero .lede { margin-top: 22px; }
.hero-copy > * { animation: rise .9s var(--out) both; }
.hero-copy > :nth-child(2) { animation-delay: .1s; }
.hero-copy > :nth-child(3) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; translate: 0 26px; } }
.hero-play { position: relative; display: grid; place-items: center; padding: 40px 0; animation: rise 1s var(--out) .15s both; }
.orbit { position: absolute; inset: 0; pointer-events: none; }
.float { position: absolute; width: clamp(48px, 7vw, 74px); height: auto; border-radius: 24%; box-shadow: var(--shadow-2); animation: bob calc(3s + var(--d) * .7s) ease-in-out infinite alternate; transform: translate(calc(var(--px, 0) * var(--d) * 10px), calc(var(--py, 0) * var(--d) * 10px)); transition: transform .6s var(--out); }
@keyframes bob { from { translate: 0 -6px; rotate: -4deg; } to { translate: 0 8px; rotate: 4deg; } }
.f1 { left: 2%; top: 4%; } .f2 { right: 4%; top: 0; } .f3 { right: -2%; top: 40%; } .f4 { right: 8%; bottom: 0; }
.f5 { left: 6%; bottom: 2%; } .f6 { left: -3%; top: 44%; } .f7 { left: 38%; top: -4%; } .f8 { left: 44%; bottom: -5%; }

/* ---------- mini puzzle ---------- */
.board-card { position: relative; z-index: 1; width: min(100%, 390px); background: var(--card); border-radius: var(--r-card); padding: 18px; box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); }
.board-head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.board-title { font-family: var(--f-display); font-weight: 750; font-size: 1.2rem; letter-spacing: -.02em; }
.board-hint { font-size: .9rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.board { position: relative; touch-action: none; user-select: none; -webkit-user-select: none; border-radius: 18px; }
.cells { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.cell { aspect-ratio: 1; border-radius: 12px; background: var(--paper-2); display: grid; place-items: center; transition: background-color .25s; }
.cell.on { background: color-mix(in oklab, var(--accent) 16%, var(--paper-2)); animation: pop .35s var(--spring); }
@keyframes pop { 40% { scale: 1.12; } }
.knot { position: relative; z-index: 2; width: 62%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: var(--f-display); font-weight: 800; font-size: clamp(1rem, 4.6vw, 1.3rem); transition: background-color .25s, scale .3s var(--spring); }
.cell.on .knot { background: var(--accent); color: var(--accent-ink); }
.knot.next { animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { scale: 1.14; box-shadow: 0 0 0 6px var(--hl); } }
.board-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.board-line polyline { fill: none; stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; }
.board-line .glow { stroke: var(--accent); opacity: .18; }
.board.solved .board-line polyline:first-child { animation: shimmer 1.2s linear infinite; stroke-dasharray: 8 14; }
@keyframes shimmer { to { stroke-dashoffset: -44; } }
.board.shake { animation: shake .35s; }
@keyframes shake { 25% { translate: -5px 0; } 75% { translate: 5px 0; } }
.board-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.board-status { white-space: nowrap; font-size: .9rem; color: var(--muted); font-weight: 600; }
.board-actions { display: flex; gap: 8px; align-items: center; }
.board-win { position: absolute; inset: 0; z-index: 3; border-radius: inherit; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; background: color-mix(in oklab, var(--card) 72%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: winIn .6s var(--spring); }
.board-win[hidden] { display: none; }
.win-big { font-family: var(--f-display); font-weight: 800; font-size: 3.4rem; letter-spacing: -.04em; line-height: 1; color: var(--accent); }
.win-time { color: var(--muted); font-weight: 600; margin-bottom: 6px; }
@keyframes winIn { from { opacity: 0; scale: .85; } }
[data-sound] .off, [data-sound][aria-pressed="false"] .on { display: none; }
[data-sound][aria-pressed="false"] .off { display: block; }

/* ---------- dock ---------- */
.dock-sec { padding-block: 8px 24px; }
.dock { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; padding: 18px 12px 8px; }
.dock a { position: relative; display: grid; justify-items: center; gap: 8px; text-decoration: none; width: 92px; }
.dock-ic { width: 68px; height: 68px; border-radius: 24%; box-shadow: var(--shadow-1); transform-origin: 50% 100%; scale: var(--s, 1); translate: 0 calc((var(--s, 1) - 1) * -18px); transition: scale .25s var(--out), translate .25s var(--out), rotate .3s var(--spring); }
.dock a:hover .dock-ic { rotate: -6deg; }
.dock a:active .dock-ic { scale: .9; }
.dock-name { font-size: .86rem; font-weight: 650; text-align: center; line-height: 1.2; }
.dock-soon { position: absolute; top: -6px; right: 4px; font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 3px 7px; border-radius: 999px; }

/* ---------- TressDNA feature ---------- */
.ft { padding-block: clamp(32px, 5vw, 56px); }
.ft-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; background: var(--t-bg); color: var(--t-ink); border-radius: 40px; padding: clamp(28px, 5vw, 64px); overflow: hidden; }
.ft .lede { color: color-mix(in oklab, var(--t-ink) 72%, transparent); margin-top: 16px; }
.ft-id { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ft-ic { width: 52px; height: 52px; border-radius: 24%; box-shadow: var(--shadow-1); }
.ticks { display: grid; gap: 10px; margin-top: 24px; font-weight: 600; }
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks .ic { color: var(--t-deep); width: 22px; height: 22px; }
.ft .store-btn { background: var(--t-deep); color: #fff; }
.fan { position: relative; height: clamp(380px, 52vw, 560px); }
.fan img { position: absolute; left: 50%; top: 50%; width: min(44%, 250px); border-radius: var(--r-shot); box-shadow: var(--shadow-2); translate: -50% -50%; transition: transform .7s var(--spring); }
.fan-1 { transform: translateX(-62%) rotate(-11deg) scale(.88); }
.fan-2 { transform: translateY(-2%); z-index: 2; }
.fan-3 { transform: translateX(62%) rotate(11deg) scale(.88); }
.fan:hover .fan-1 { transform: translateX(-84%) rotate(-15deg) scale(.9); }
.fan:hover .fan-2 { transform: translateY(-6%) scale(1.04); }
.fan:hover .fan-3 { transform: translateX(84%) rotate(15deg) scale(.9); }

/* ---------- sections ---------- */
.sec { padding-block: clamp(56px, 8vw, 110px); }
.sec-head { margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head .lede { margin-top: 14px; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: 1fr; gap: 18px; }
.tile { --mx: 50%; --my: 50%; position: relative; display: flex; flex-direction: column; min-height: 460px; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-card); background: var(--t-bg); color: var(--t-ink); text-decoration: none; overflow: hidden; isolation: isolate; transition: scale .4s var(--spring), box-shadow .4s; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx) var(--my), rgb(255 255 255 / .45), transparent 60%); opacity: 0; transition: opacity .3s; }
.tile:hover { box-shadow: var(--shadow-2); }
.tile:hover::before { opacity: 1; }
.tile:active { scale: .985; }
.tile-top { display: flex; gap: 14px; align-items: center; }
.tile-ic { width: 60px; height: 60px; border-radius: 24%; box-shadow: var(--shadow-1); transition: rotate .4s var(--spring), scale .4s var(--spring); }
.tile:hover .tile-ic { rotate: -8deg; scale: 1.08; }
.tile-name { font-family: var(--f-display); font-weight: 780; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.03em; line-height: 1.05; }
.tile-genre { font-weight: 600; opacity: .75; font-size: .95rem; }
.tile-rule { margin-top: 18px; max-width: 36ch; font-size: 1.02rem; line-height: 1.5; position: relative; z-index: 2; }
.tile-more { margin-top: 16px; display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--t-deep); position: relative; z-index: 2; }
.tile-more .ic { transition: translate .3s var(--spring); }
.tile:hover .tile-more .ic { translate: 5px 0; }
.tile-shots { position: absolute; right: -10px; bottom: -40px; width: 300px; height: 300px; pointer-events: none; }
.ts { position: absolute; width: 150px; border-radius: 16px; box-shadow: var(--shadow-2); transition: transform .6s var(--spring); }
.ts-a { right: 36px; bottom: 0; transform: rotate(-8deg); z-index: 1; }
.ts-b { right: -36px; bottom: -30px; transform: rotate(7deg); }
.tile:hover .ts-a { transform: rotate(-3deg) translateY(-26px); }
.tile:hover .ts-b { transform: rotate(3deg) translateY(-14px); }

/* ---------- stats ---------- */
.stats { padding-block: clamp(20px, 4vw, 40px); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
.stat { display: grid; gap: 8px; align-content: start; }
.stat-n { font-family: var(--f-display); font-weight: 800; font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.stat:nth-child(1) .stat-n { color: #2c5a45; }
.stat:nth-child(2) .stat-n { color: #43397a; }
.stat:nth-child(3) .stat-n { color: #b13d2c; }
.stat:nth-child(4) .stat-n { color: var(--accent); }
@media (prefers-color-scheme: dark) {
  .stat:nth-child(1) .stat-n { color: #8fd1ad; }
  .stat:nth-child(2) .stat-n { color: #b8adf5; }
  .stat:nth-child(3) .stat-n { color: #ffb19f; }
}
.stat-l { color: var(--muted); font-weight: 600; max-width: 22ch; }

/* ---------- arcade ---------- */
.arcade { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.arcade-list .lede { margin-top: 14px; }
.arcade-tabs { display: grid; gap: 10px; margin-top: 28px; }
.arcade-tab { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; border: 0; border-radius: 22px; background: transparent; text-align: left; cursor: pointer; overflow: hidden; transition: background-color .3s, scale .25s var(--spring); }
.arcade-tab:hover { background: var(--paper-2); }
.arcade-tab:active { scale: .98; }
.arcade-tab[aria-selected="true"] { background: var(--t-bg); color: var(--t-ink); }
.arcade-ic { width: 56px; height: 56px; border-radius: 24%; box-shadow: var(--shadow-1); transition: rotate .4s var(--spring); }
.arcade-tab[aria-selected="true"] .arcade-ic { rotate: -6deg; }
.arcade-txt { display: grid; }
.arcade-name { font-family: var(--f-display); font-weight: 760; font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.15; }
.arcade-tag { opacity: .75; font-weight: 600; font-size: .95rem; }
.arcade-bar { position: absolute; left: 18px; right: 18px; bottom: 6px; height: 3px; border-radius: 3px; background: var(--t-deep); scale: 0 1; transform-origin: left; opacity: 0; }
.arcade-tab[aria-selected="true"] .arcade-bar { opacity: .5; }
.arcade.auto .arcade-tab[aria-selected="true"] .arcade-bar { animation: fill 6s linear forwards; }
@keyframes fill { to { scale: 1 1; } }
.arcade-stage { position: relative; display: grid; min-height: 520px; }
.arcade-panel { grid-area: 1 / 1; position: relative; display: grid; align-content: center; justify-items: center; gap: 22px; }
.arcade-panel[hidden] { display: none; }
.arcade-blob { position: absolute; inset: 6% 8% 22%; border-radius: 48% 52% 44% 56% / 52% 46% 54% 48%; background: var(--t-bg); animation: morph 12s ease-in-out infinite alternate; }
@keyframes morph { 50% { border-radius: 56% 44% 52% 48% / 44% 56% 46% 54%; rotate: 8deg; } }
.arcade-phones { position: relative; width: min(100%, 440px); height: 420px; transition: transform .5s var(--out); }
.ap { position: absolute; top: 50%; width: 48%; border-radius: var(--r-shot); box-shadow: var(--shadow-2); }
.ap-a { left: 10%; translate: 0 -50%; rotate: -7deg; z-index: 1; animation: phoneIn .8s var(--spring) both; }
.ap-b { right: 8%; translate: 0 -46%; rotate: 6deg; animation: phoneIn .8s var(--spring) .08s both; }
@keyframes phoneIn { from { opacity: 0; scale: .8; rotate: 0deg; } }
.arcade-cap { position: relative; text-align: center; max-width: 44ch; display: grid; gap: 12px; justify-items: center; color: var(--muted); }

/* ---------- marquee ---------- */
.marquee { padding-block: 24px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: slide 80s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-row { display: flex; gap: 16px; padding-right: 16px; }
.marquee-row a { display: block; flex: none; width: 150px; border-radius: 18px; overflow: hidden; background: var(--t-bg); box-shadow: var(--shadow-1); transition: scale .35s var(--spring), rotate .35s var(--spring); }
.marquee-row a:nth-child(odd) { rotate: -2deg; }
.marquee-row a:nth-child(even) { rotate: 2deg; translate: 0 10px; }
.marquee-row a:hover { scale: 1.08; rotate: 0deg; z-index: 1; }
@keyframes slide { to { translate: -50% 0; } }

/* ---------- how ---------- */
.how { display: grid; grid-template-columns: 1fr; gap: 36px; }
.how-head .lede { margin-top: 14px; }
.how-list { display: grid; grid-template-columns: 1fr; gap: 30px 40px; }
.how-list h3, .features h3 { font-family: var(--f-display); font-weight: 720; font-size: 1.3rem; letter-spacing: -.02em; margin-block: 14px 6px; }
.how-list p, .features p { color: var(--muted); }
.how-ic, .feat-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 18px; background: var(--paper-2); color: var(--accent); transition: rotate .4s var(--spring), scale .4s var(--spring); }
.how-ic .ic, .feat-ic .ic { width: 26px; height: 26px; }
.how-list li:hover .how-ic, .features li:hover .feat-ic { rotate: -10deg; scale: 1.1; }

/* ---------- contact ---------- */
.contact { padding-block: clamp(56px, 8vw, 110px); }
.contact-in { display: grid; justify-items: center; text-align: center; gap: 20px; }
.contact-h { font-size: clamp(3.4rem, 11vw, 8rem); letter-spacing: -.055em; }
.contact .lede { margin-inline: auto; }
.mail { display: inline-flex; align-items: center; gap: 12px; margin-top: 10px; padding: 18px 28px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: clamp(1rem, 2.6vw, 1.4rem); text-decoration: none; transition: background-color .25s, color .25s, scale .25s var(--spring), transform .35s var(--out); }
.mail:hover { background: var(--accent); color: var(--accent-ink); }
.mail:active { scale: .96; }
.mail .ic { width: 1.3em; height: 1.3em; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 48px 28px; font-size: .96rem; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.foot-brand p { margin-top: 12px; max-width: 36ch; }
.foot-h { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.foot-h:not(:first-child) { margin-top: 22px; }
.footer ul { display: grid; gap: 6px; }
.footer ul a { text-decoration: none; }
.footer ul a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; color: var(--muted); font-size: .9rem; }
.to-top { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }

/* ---------- app page ---------- */
.app-hero { background: var(--t-bg); color: var(--t-ink); border-radius: 0 0 40px 40px; padding-block: 16px clamp(48px, 7vw, 88px); overflow: hidden; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; font-weight: 600; opacity: .75; padding-block: 8px 24px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.app-hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.app-hero-copy { animation: rise .9s var(--out) both; }
.app-hero-ic { width: clamp(84px, 10vw, 112px); height: auto; border-radius: 24%; box-shadow: var(--shadow-2); margin-bottom: 22px; transition: rotate .5s var(--spring), scale .5s var(--spring); cursor: pointer; }
.app-hero-ic:hover { rotate: -8deg; scale: 1.06; }
.app-hero-ic.boing { animation: boing .7s var(--spring); }
@keyframes boing { 30% { scale: 1.2 .82; } 55% { scale: .9 1.12; } 75% { scale: 1.04 .97; } }
.app-h { font-size: clamp(2.3rem, 5vw, 4rem); }
.app-lede { color: color-mix(in oklab, var(--t-ink) 74%, transparent); margin-block: 18px 28px; }
.app-hero .store-play, .app-hero .store-ios { background: var(--t-deep); color: #fff; }
.soon-note { display: flex; gap: 8px; align-items: center; margin-top: 16px; font-weight: 600; font-size: .95rem; opacity: .8; }
.app-hero-shots { position: relative; height: clamp(420px, 56vw, 620px); transition: transform .5s var(--out); animation: rise 1s var(--out) .1s both; }
.hs { position: absolute; top: 50%; width: min(52%, 300px); border-radius: var(--r-shot); box-shadow: var(--shadow-2); }
.hs-a { left: 6%; translate: 0 -50%; rotate: -5deg; z-index: 1; }
.hs-b { right: 4%; translate: 0 -44%; rotate: 6deg; }

.about { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: start; }
.about-text { display: grid; gap: 16px; max-width: 64ch; }
.about-text > p { font-size: 1.1rem; }
.rule { margin-top: 10px; padding: 22px 24px; border-radius: 22px; background: var(--t-bg); color: var(--t-ink); }
.rule h3 { font-family: var(--f-display); font-weight: 750; font-size: 1.2rem; margin-bottom: 6px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts div { padding: 16px 18px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.facts div:last-child:nth-child(odd) { grid-column: span 2; }
.facts dt { font-size: .82rem; font-weight: 700; color: var(--muted); }
.facts dd { font-weight: 650; margin-top: 2px; line-height: 1.35; }

.try { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; justify-items: start; }
.try .lede { margin-top: 12px; }

.gallery-sec .h3 { margin-bottom: 24px; }
.gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px max(16px, calc((100vw - 1240px) / 2 + 40px)) 30px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.gallery li { flex: none; scroll-snap-align: center; }
.shot { display: block; width: clamp(200px, 22vw, 250px); padding: 0; border: 0; border-radius: var(--r-shot); background: var(--t-bg); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow-1); transition: translate .4s var(--spring), rotate .4s var(--spring), box-shadow .4s; }
.gallery li:nth-child(odd) .shot:hover { translate: 0 -10px; rotate: -2deg; box-shadow: var(--shadow-2); }
.gallery li:nth-child(even) .shot:hover { translate: 0 -10px; rotate: 2deg; box-shadow: var(--shadow-2); }
.shot:active { scale: .97; }

.features { display: grid; grid-template-columns: 1fr; gap: 28px 40px; margin-top: 30px; }
.features .feat-ic { background: var(--t-bg); color: var(--t-deep); }
@media (prefers-color-scheme: dark) { .features .feat-ic { color: var(--t-pop); background: color-mix(in oklab, var(--t-deep) 50%, var(--paper-2)); } }

.faq { max-width: 860px; display: grid; gap: 10px; margin-block: 26px 18px; }
.faq details { border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s; interpolate-size: allow-keywords; }
.faq details[open] { background: color-mix(in oklab, var(--t-bg) 55%, var(--card)); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 22px; cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { padding: 0 22px 20px; color: var(--muted); max-width: 66ch; }
.faq details::details-content { height: 0; overflow: clip; transition: height .4s var(--out), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq-plus { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--paper-2); transition: rotate .4s var(--spring), background-color .3s; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: currentColor; translate: -50% -50%; }
.faq-plus::after { rotate: 90deg; }
details[open] .faq-plus { rotate: 135deg; background: var(--t-bg); }

.more { padding-top: 0; }
.dock-more { justify-content: flex-start; padding-inline: 0; }

.lost { min-height: 70dvh; display: grid; align-items: center; }
.lost-in { display: grid; gap: 18px; justify-items: center; text-align: center; }
.lost-n { font-size: clamp(6rem, 22vw, 12rem); color: var(--accent); line-height: .9; }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; overflow: hidden; }
.lightbox::backdrop { background: rgb(10 14 11 / .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-height: 88dvh; max-width: 92vw; width: auto; border-radius: 24px; box-shadow: 0 30px 80px rgb(0 0 0 / .5); animation: lbIn .45s var(--spring); }
@keyframes lbIn { from { opacity: 0; scale: .9; } }
.lb-btn { position: fixed; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 999px; border: 0; background: rgb(255 255 255 / .14); color: #fff; cursor: pointer; transition: background-color .2s, scale .2s var(--spring); }
.lb-btn:hover { background: rgb(255 255 255 / .26); }
.lb-btn:active { scale: .9; }
.lb-btn .ic { width: 24px; height: 24px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; translate: 0 -50%; }
.lb-next { right: 18px; top: 50%; translate: 0 -50%; }

.confetti { position: fixed; inset: 0; width: 100vw; height: 100dvh; pointer-events: none; z-index: 90; }

/* ---------- scroll reveal ---------- */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  [data-reveal] { transition: opacity .8s var(--out), translate .9s var(--out); transition-delay: calc(var(--i, 0) * 90ms); }
  [data-reveal]:not(.in) { opacity: 0; translate: 0 28px; }
}

/* ---------- breakpoints ---------- */
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .how-list, .features { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; min-height: min(calc(100dvh - var(--nav-h) - 120px), 760px); }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1.25fr 1fr 1fr; grid-auto-rows: minmax(330px, auto); }
  .tile { min-height: 0; }
  .tile-1 { grid-column: span 2; }
  .tile-1 .tile-shots { width: 380px; height: 100%; right: 10px; bottom: -60px; }
  .tile-1 .ts { width: 170px; }
  .tile-1 .tile-rule { max-width: 30ch; }
  .tile-2 { grid-row: span 2; }
  .tile-2 .tile-shots { left: 50%; right: auto; translate: -50% 0; width: 340px; height: 360px; bottom: -50px; }
  .tile-2 .ts { width: 180px; }
  .tile-3, .tile-4 { min-height: 400px; }
  .tile-3 .tile-rule, .tile-4 .tile-rule { max-width: 100%; }
  .tile-3 .tile-shots, .tile-4 .tile-shots { width: 230px; height: 200px; bottom: -96px; right: -14px; }
  .tile-3 .ts, .tile-4 .ts { width: 112px; }
  .arcade { grid-template-columns: .9fr 1.1fr; gap: 56px; }
  .how { grid-template-columns: .8fr 2fr; gap: 56px; }
  .how-head { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
  .app-hero-grid { grid-template-columns: 1.1fr .9fr; }
  .about { grid-template-columns: 1.5fr 1fr; gap: 64px; }
  .try { grid-template-columns: 1fr auto; justify-items: stretch; }
  .features { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 899px) {
  .hero-play { padding: 28px 0 44px; }
  .f7, .f8 { display: none; }
  .arcade-stage { min-height: 0; }
  .arcade-phones { height: 380px; }
}
@media (max-width: 639px) {
  .hide-sm { display: none !important; }
  .nav-links a { padding: 8px 9px; font-size: .92rem; }
  .wordmark { font-size: 1.2rem; }
  .nav-in { gap: 10px; }
  .dock { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .dock li { scroll-snap-align: start; }
  .dock a { width: 78px; }
  .dock-ic { width: 60px; height: 60px; }
  .fan { height: auto; aspect-ratio: 1 / 1.02; }
  .fan img { width: 50%; }
  .float { width: 46px; }
  .f1 { left: 0; top: 0; } .f2 { right: 0; top: 0; } .f3 { right: -8px; } .f6 { left: -8px; } .f4 { right: 2%; bottom: 4px; } .f5 { left: 2%; bottom: 4px; }
  .tile-shots { width: 260px; height: 260px; }
  .ts { width: 130px; }
  .marquee-row a { width: 118px; }
  .lightbox img { max-height: 78dvh; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; translate: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .foot-base { flex-direction: column; }
}
@media (max-width: 480px) {
  .board-foot .lbl { display: none; }
  .hide-xs { display: none !important; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 7px 8px; font-size: .9rem; }
  .brand { gap: 8px; }
  .nav .mark { width: 28px; height: 28px; }
  .nav .wordmark { font-size: 1.12rem; }
}

/* ---------- dark tweaks for themed blocks ---------- */
@media (prefers-color-scheme: dark) {
  .ft-grid, .tile, .app-hero, .rule, .arcade-tab[aria-selected="true"], .gallery-sec .shot { background: color-mix(in oklab, var(--t-deep) 42%, #0e120f); color: #f2f3ee; }
  .arcade-blob { background: color-mix(in oklab, var(--t-deep) 50%, #0e120f); }
  .tile::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgb(255 255 255 / .1), transparent 60%); }
  .ft .lede, .app-lede { color: rgb(242 243 238 / .78); }
  .tile-more, .ticks .ic { color: var(--t-pop); }
  .ft .store-btn, .app-hero .store-play, .app-hero .store-ios { background: #f2f3ee; color: #111512; }
  .arcade-bar { background: var(--t-pop); }
  .faq details[open] { background: color-mix(in oklab, var(--t-deep) 28%, var(--card)); }
  details[open] .faq-plus { background: color-mix(in oklab, var(--t-deep) 60%, var(--card)); }
  .dock-soon { background: var(--accent); color: var(--accent-ink); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .swipe { background-size: 100% 36%; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}
