/* Tokens follow apps/app/src/lib/theme.ts. Change them there first. */
:root {
  color-scheme: light;
  --ink: #303129;
  --muted: #676458;
  --paper: #fff8e9;
  --card: #fffcf5;
  --border: #ddd4bd;
  --purple: #8844e7;
  --purple-dark: #4e2099;
  --lilac: #e8dffa;
  --sky-top: #229be8;
  --sky-mid: #74cdfa;
  --sky-low: #c7f5dc;
  --pale: #dcf4fb;
  --gold: #ffca36;
  --go: #65bd28;
  --go-dark: #33741e;
  --wood: #cd8744;
  --wood-dark: #704c38;
  --plank: #f2d3a1;
  --hud: #fff0cc;
  --hud-edge: #8f572a;
  --good: #3e7544;
  --mid: #946b17;
  --bad: #af5339;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--font); overflow-x: hidden; }
svg { display: block; flex: none; color: var(--ink); }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
.sprite { position: absolute; }
.nb { white-space: nowrap; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; position: relative; }
.band { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
.paper { background: var(--paper); }
.pale { background: var(--pale); }
.sky { background: linear-gradient(180deg, var(--sky-top), var(--sky-mid) 65%, var(--sky-low)); overflow: hidden; }
.night { background: var(--purple-dark); color: #fff8e9; }
.rays { position: absolute; inset: 0; width: 100%; height: 100%; fill: #fff; opacity: 0.14; pointer-events: none; }

h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(54px, 7.2vw, 92px); font-weight: 900; line-height: 0.98; letter-spacing: -0.045em; }
h2 { font-size: clamp(32px, 4.3vw, 50px); font-weight: 800; line-height: 1.06; letter-spacing: -0.035em; }
h3 { font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.center { text-align: center; }
.eyebrow { font-size: 12px; font-weight: 800; line-height: 1.3; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.sub { font-size: 19px; color: var(--muted); margin-top: 16px; max-width: 56ch; }
.sub.center { margin-inline: auto; }
.note { color: var(--muted); font-size: 15px; margin-top: 24px; }

/* Buttons and cards: flat colour, a shallow bottom edge */
.btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 10px 20px; border-radius: 18px; border: 1.5px solid var(--purple-dark); border-bottom-width: 5px; background: var(--purple); color: #fff; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; overflow: hidden; }
.btn::before { content: ""; position: absolute; top: 1px; left: 7px; right: 7px; height: 1px; background: #ffffff66; }
.btn svg { color: #fff; }
.btn.sm { min-height: 44px; padding: 8px 14px; border-radius: 13px; border-bottom-width: 3px; font-size: 14px; }
.btn.plain { background: var(--card); color: var(--ink); border-color: var(--border); }
.card { background: var(--card); border: 1.5px solid var(--border); border-bottom-width: 3px; border-radius: 22px; padding: 22px; }
.card p { color: var(--muted); margin-top: 8px; font-size: 16px; line-height: 1.5; }
.card > svg { margin-bottom: 10px; }

/* Hero */
.hero { position: relative; }
.nav { display: flex; align-items: center; gap: 10px; padding: 16px 0; z-index: 3; }
.logo { display: block; flex: none; }
.logo img { display: block; height: 60px; width: auto; }
.nav-links { display: flex; gap: 8px; margin-left: auto; }
.nav-links a { display: block; padding: 7px 14px; border-radius: 15px; background: var(--hud); border: 2px solid var(--hud-edge); border-bottom-width: 4px; color: var(--ink); font-size: 15px; font-weight: 800; text-decoration: none; transition: scale 120ms; }
.nav-links a:hover { background: #ffe6a0; }
.nav-links a:active { scale: 0.96; }
.soon { padding: 7px 14px; border-radius: 15px; background: var(--lilac); color: var(--purple-dark); border: 1.5px solid #b5a1d0; border-bottom-width: 4px; font-size: 15px; font-weight: 800; white-space: nowrap; }

.hero-grid { display: grid; grid-template-columns: 1fr 520px; gap: 40px; align-items: center; padding: 12px 0 110px; z-index: 2; }
.hero .eyebrow { color: #0f3556; font-size: 13px; }
.lede { font-size: clamp(19px, 2vw, 22px); line-height: 1.42; margin-top: 20px; max-width: 30em; font-weight: 500; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store { display: grid; grid-template-columns: auto auto; column-gap: 14px; align-items: center; min-width: 196px; padding: 9px 12px 11px 16px; border-radius: 18px; background: var(--hud); border: 2px solid var(--hud-edge); border-bottom-width: 5px; }
.store[aria-disabled="true"] { cursor: not-allowed; color: #6e6657; }
.store small { grid-column: 1; font-size: 12px; font-weight: 600; line-height: 1.2; }
.store b { grid-column: 1; font-size: 20px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.store i { grid-column: 2; grid-row: 1 / span 2; justify-self: end; font-size: 13px; font-style: normal; font-weight: 800; line-height: 1; color: #fff; background: var(--purple); border: 1.5px solid var(--purple-dark); border-bottom-width: 3px; border-radius: 10px; padding: 6px 9px; }
.fine { font-size: 15px; margin-top: 14px; font-weight: 500; }

/* The island screen, without the phone */
.board { position: relative; display: flex; flex-direction: column; gap: 8px; }
.hud { display: flex; gap: 10px; align-items: center; }
.res { flex: 1; display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 8px; background: var(--hud); border: 2px solid var(--hud-edge); border-bottom-width: 4px; border-radius: 15px; }
.res b { flex: 1; font-size: 18px; font-weight: 900; }
.res i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--go); border: 1px solid var(--go-dark); }
.res i svg { color: #fff; }
.gear { display: grid; place-items: center; width: 46px; height: 46px; background: var(--hud); border: 2px solid var(--hud-edge); border-bottom-width: 4px; border-radius: 15px; }
.status { display: flex; align-items: center; gap: 24px; padding: 0 3px; color: #174d79; }
.streak { display: flex; align-items: center; gap: 5px; }
.streak svg { color: #174d79; }
.streak b { font-size: 22px; font-weight: 900; }
.streak small { font-size: 11px; font-weight: 800; }
.goals { flex: 1; display: grid; gap: 4px; }
.goals small { display: flex; justify-content: space-between; font-size: 10px; font-weight: 900; letter-spacing: 0.08em; }
.goals em { font-style: normal; }
.bar { display: block; height: 9px; border-radius: 5px; background: #2f7fb5; overflow: hidden; }
.bar i { display: block; width: 50%; height: 100%; background: linear-gradient(180deg, #d9f78b, #9ddd3d); }

.world { position: relative; }
.isle { display: block; width: 100%; height: auto; overflow: visible; }
.sign-t { font: 700 10.5px var(--font); fill: var(--ink); }
.c0 { fill: var(--c0, #25883d); }
.c1 { fill: var(--c1, #71c834); }
.c2 { fill: var(--c2, #c0ec4b); }
.s2 { stroke: var(--c2, #c0ec4b); }
.crown { transform: translateY(var(--droop, 0)); }
.p1 { --c0: #187957; --c1: #42ba68; --c2: #a9e76b; }
.p2 { --c0: #5c9722; --c1: #9fd02e; --c2: #daec60; }
.thirsty { --c0: #8c8c47; --c1: #b4ba62; --c2: #dadc8d; }
.wilting { --c0: #9b6748; --c1: #ca9866; --c2: #e1bc85; --droop: 6px; }

.rail { position: absolute; top: 4px; z-index: 2; display: grid; gap: 10px; }
.rail.left { left: 0; }
.rail.right { right: 0; }
.wbtn { display: grid; justify-items: center; align-content: center; gap: 2px; width: 60px; height: 64px; border-radius: 17px; background: #ffe6a0; border: 2px solid #a9642b; border-bottom-width: 4px; }
.wbtn b { font-size: 11px; font-weight: 800; }
.wbtn.frost { background: #d8f2f7; border-color: #5f9fb0; color: #2e6474; }
.wbtn.plant { background: var(--purple); border-color: var(--purple-dark); color: #fff; }
.wbtn.plant svg { color: #fff; }

.check-in { display: grid; gap: 9px; }
.prompt { display: flex; align-items: center; gap: 9px; padding: 8px 13px; border-radius: 20px; background: #fff7df; border: 2px solid #c79a55; border-bottom-width: 4px; }
.prompt small { display: block; font-size: 10px; font-weight: 900; letter-spacing: 0.04em; color: var(--purple); }
.prompt b { font-size: 17px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }

.low { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 120px; z-index: 1; pointer-events: none; }

/* Idle motion, same feel as Idle.tsx */
.hover { animation: hover 3.8s ease-in-out infinite alternate; }
.sway { animation: sway 2.2s ease-in-out infinite alternate; transform-origin: 0 0; }
.sw2 { animation-duration: 2.7s; animation-delay: -1s; }
.bob { animation: bob 1.8s ease-in-out infinite alternate; }
.drift { position: absolute; left: 0; opacity: 0.55; animation: cross 46s linear infinite; pointer-events: none; }
.d1 { top: 130px; animation-delay: -12s; }
.d2 { top: 300px; animation-duration: 34s; animation-delay: -24s; }
.d3 { top: 70px; animation-duration: 58s; animation-delay: -40s; }
.fly-path { position: absolute; z-index: 2; animation: drift-fly 5s ease-in-out infinite alternate; pointer-events: none; }
.fly { fill: currentColor; animation: flap 0.34s ease-in-out infinite alternate; }
.y1 { left: 14%; top: 34%; }
.y2 { left: 76%; top: 26%; animation-duration: 6s; animation-delay: -2s; }
.y3 { left: 54%; top: 56%; animation-duration: 7s; animation-delay: -3s; }
.y4 { left: 8%; top: 64%; animation-duration: 8s; animation-delay: -1s; }
@keyframes hover { from { translate: 0 -2px; } to { translate: 0 4px; } }
@keyframes sway { from { rotate: -1.3deg; } to { rotate: 1.3deg; } }
@keyframes bob { to { translate: 0 -1.5px; } }
@keyframes cross { from { translate: -200px 0; } to { translate: 100vw 0; } }
@keyframes drift-fly { from { translate: -24px 8px; } 50% { translate: 2px -16px; } to { translate: 26px 10px; } }
@keyframes flap { to { scale: 0.35 1; } }

.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.turn { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; line-height: 1.25; letter-spacing: -0.025em; text-align: center; max-width: 34em; margin: 48px auto 0; text-wrap: balance; }

/* How it works */
.split { display: grid; grid-template-columns: 1fr 372px; gap: 64px; align-items: center; margin-top: 56px; }
.split.flip { grid-template-columns: 372px 1fr; }
.split.flip .steps { order: 2; }
.steps { display: grid; gap: 32px; }
.step { display: grid; grid-template-columns: 58px 1fr; gap: 16px; }
.num { display: grid; place-items: center; width: 58px; height: 62px; border-radius: 17px; background: #ffe6a0; border: 2px solid #a9642b; border-bottom-width: 4px; font-size: 26px; font-weight: 900; }
.step p { margin-top: 6px; color: var(--muted); }

/* Chat screen */
.phone { width: 100%; max-width: 372px; margin-inline: auto; border: 8px solid #1f2127; border-radius: 44px; background: var(--paper); overflow: hidden; box-shadow: 0 26px 50px -22px rgba(23, 46, 69, 0.5); }
.c-head { display: flex; align-items: center; gap: 6px; padding: 12px 12px 10px 8px; background: #fff9ed; border-bottom: 1px solid var(--border); }
.c-id { flex: 1; min-width: 0; }
.c-id b { display: block; font-size: 19px; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
.c-id span { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; }
.balance { display: flex; align-items: center; gap: 4px; padding: 7px; border-radius: 12px; background: var(--lilac); color: var(--purple-dark); font-size: 15px; }
.c-log { display: grid; gap: 14px; padding: 12px 12px 16px; }
.just { display: flex; align-items: center; gap: 12px; font-size: 9px; font-weight: 700; letter-spacing: 0.14em; color: #8a8576; white-space: nowrap; }
.just::before, .just::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.msg { display: flex; align-items: flex-end; gap: 6px; }
.msg.mine { justify-content: flex-end; }
.it, .me { max-width: 84%; padding: 11px 14px; border-radius: 20px; border: 1.5px solid; border-bottom-width: 3px; font-size: 15px; line-height: 1.45; }
.it { background: var(--card); border-color: #dfd4ba; border-bottom-left-radius: 5px; }
.me { background: var(--purple); border-color: var(--purple-dark); color: #fffdf8; border-bottom-right-radius: 5px; }
.reward { display: flex; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); color: #7a36d6; font-size: 12.5px; font-weight: 700; line-height: 1.4; }
.reward svg { margin-top: 1px; }
.proposal { display: grid; gap: 10px; margin-left: 36px; padding: 14px; background: #f5f0df; border: 1.5px solid #c2c7a3; border-bottom-width: 3px; border-radius: 22px; }
.p-head { display: flex; align-items: center; gap: 10px; }
.p-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #e4ebc8; flex: none; }
.p-head small { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: 0.12em; color: var(--muted); }
.p-head b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.proposal p { font-size: 15px; line-height: 1.4; }
.p-meta { display: flex; gap: 6px; }
.p-meta span { font-size: 11px; font-weight: 700; color: #6a7356; padding: 5px 9px; background: #e7e8ce; border-radius: 9px; }
.p-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.p-row .btn { padding-inline: 6px; font-size: 13px; white-space: nowrap; }
.c-bottom { display: grid; gap: 8px; padding: 10px 12px 10px; background: #fff9ee; border-top: 1px solid var(--border); }
.quick { display: flex; gap: 7px; overflow: hidden; }
.quick span { flex: none; padding: 9px 12px; border-radius: 15px; border: 1.5px solid var(--border); border-bottom-width: 3px; background: var(--card); font-size: 13px; font-weight: 700; white-space: nowrap; }
.composer { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 4px 4px 4px 14px; border: 1.5px solid #c9bda6; border-radius: 21px; background: var(--card); color: #8b857b; font-size: 15px; }
.composer i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 15px; background: #c9aef2; border: 1.5px solid #a98bdc; border-bottom-width: 3px; }
.composer i svg { color: #fff; }
.c-foot { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }

/* Wooden dock */
.dock { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 6vw, 64px); padding: 9px 0 10px; background: var(--wood); border-top: 2px solid var(--wood-dark); box-shadow: inset 0 3px 0 #efcb9d; }
.dock b { display: block; font-size: 12px; font-weight: 800; color: #fff7e6; text-shadow: 0 1px 1px #68452b; text-align: center; }
.dock a { text-decoration: none; }
.dock-side { display: grid; justify-items: center; gap: 4px; width: 110px; }
.tile { display: grid; place-items: center; width: 62px; height: 44px; border-radius: 14px; background: #ddaf7d; border: 1.5px solid #97663f; border-bottom-width: 3px; }
.tile.on { background: #fff0ca; border-color: var(--wood-dark); }
.dock-mid { display: grid; justify-items: center; gap: 3px; margin-top: -25px; }
.round { display: block; width: 80px; height: 80px; padding: 6px; border-radius: 50%; background: var(--plank); border: 2px solid var(--wood-dark); border-bottom-width: 5px; }
.inset { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 2px solid #5b8c8d; background: #bce3df; }
.dock.mini { padding-top: 7px; gap: 8px; justify-content: space-around; }
.dock.mini .dock-side { width: 86px; }
.dock.mini .round { width: 66px; height: 66px; }
.dock.mini .inset svg { width: 34px; height: 34px; }
.dock.mini .dock-mid { margin-top: -20px; }
.dock.mini b { font-size: 11px; }

.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 72px; text-align: center; align-items: end; }
.stages .isle { max-width: 320px; margin: 0 auto 10px; }
.stages b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.stages span { color: var(--muted); font-size: 16px; }

/* Goal signs */
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 36px auto 0; max-width: 860px; }
.tags li { font-size: 17px; font-weight: 700; background: #fff5d8; border: 1.5px solid #695742; border-bottom-width: 3px; border-radius: 10px; padding: 9px 14px; }
.tags li:nth-child(3n + 2) { rotate: -1.2deg; }
.tags li:nth-child(3n) { rotate: 1deg; }

.duo { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.duo.art-left { grid-template-columns: 1fr 1fr; }
.char-face { margin-bottom: 10px; }
.ticks { display: grid; gap: 12px; margin-top: 24px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 21px; height: 21px; border-radius: 7px; background: var(--go) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M9 21l8 8 15-17' fill='none' stroke='%23fff' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; border: 1.5px solid var(--go-dark); }

/* Friends map */
.friends .wrap { z-index: 1; }
.sheet { background: #fff8e9f5; border-radius: 28px; border: 2px solid #c79a55; border-bottom-width: 5px; padding: clamp(24px, 3vw, 36px); }
.map { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; }
.map figure { position: relative; display: grid; justify-items: center; align-content: start; width: 100%; max-width: 250px; }
.map figure.you { grid-column: 1 / -1; max-width: 300px; margin-block: -8% ; }
figcaption { background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; padding: 2px 12px; margin-top: -14px; font-size: 14px; font-weight: 800; position: relative; }
.you figcaption { background: var(--lilac); }
.needs { margin-top: 4px; padding: 1px 8px; font-size: 12px; font-weight: 800; color: #a32b12; background: #fff0e8; border-radius: 8px; }

.water { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.water h2 { font-size: clamp(30px, 3.8vw, 42px); }
.water .isle { max-width: 440px; margin-inline: auto; }
.punch { font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -0.025em; color: var(--purple-dark); margin: 20px 0 10px; }

/* Visibility */
.vis { position: relative; display: grid; grid-template-columns: 0.8fr 1fr; gap: 24px; align-items: stretch; max-width: 860px; margin: 44px auto 0; }
.vis > input { position: absolute; opacity: 0; pointer-events: none; }
.vis-tabs { display: grid; gap: 12px; align-content: start; }
.vis-tabs label { display: block; padding: 15px 18px; background: var(--card); border: 1.5px solid var(--border); border-bottom-width: 4px; border-radius: 18px; cursor: pointer; transition: scale 120ms; }
.vis-tabs label:active { scale: 0.97; }
.vis-tabs b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.vis-tabs span { color: var(--muted); font-size: 15px; }
#v-all:checked ~ .vis-tabs label[for="v-all"],
#v-tree:checked ~ .vis-tabs label[for="v-tree"],
#v-none:checked ~ .vis-tabs label[for="v-none"] { background: var(--purple); border-color: var(--purple-dark); color: #fff; }
#v-all:checked ~ .vis-tabs label[for="v-all"] span,
#v-tree:checked ~ .vis-tabs label[for="v-tree"] span,
#v-none:checked ~ .vis-tabs label[for="v-none"] span { color: #efe8ff; }
#v-all:focus-visible ~ .vis-tabs label[for="v-all"],
#v-tree:focus-visible ~ .vis-tabs label[for="v-tree"],
#v-none:focus-visible ~ .vis-tabs label[for="v-none"] { outline: 3px solid var(--purple-dark); outline-offset: 3px; }
.vis-view { background: var(--card); border: 1.5px solid var(--border); border-bottom-width: 4px; border-radius: 22px; padding: 16px; }
.vis-view .eyebrow { margin-bottom: 10px; }
.vis-panel { display: none; }
#v-all:checked ~ .vis-view .p-all,
#v-tree:checked ~ .vis-view .p-tree,
#v-none:checked ~ .vis-view .p-none { display: block; }
.scene { background: #c5e5eb; border-radius: 16px; padding: 4px 34px; }
.vis-panel p { margin-top: 12px; font-size: 16px; line-height: 1.45; color: var(--muted); min-height: 4.4em; }
.vis-panel p b { color: var(--ink); font-weight: 700; }

/* League */
.chips { display: flex; gap: 6px; overflow: hidden; margin-bottom: 14px; }
.chip { flex: none; padding: 10px 14px; border-radius: 15px; border: 1.5px solid var(--border); border-bottom-width: 3px; background: var(--card); font-size: 13px; font-weight: 700; }
.chip.on { background: var(--purple); border-color: var(--purple-dark); color: #fff; }
.league h3 { font-size: 19px; }
.league > p { font-size: 13px; line-height: 1.45; color: var(--muted); margin: 4px 0 12px; }
.league ol { display: grid; gap: 8px; }
.league li { display: grid; grid-template-columns: 22px 1fr auto 44px; align-items: center; gap: 10px; padding: 12px 14px; background: var(--card); border: 1.5px solid var(--border); border-bottom-width: 3px; border-radius: 18px; }
.league li.you { background: var(--lilac); }
.rank { font-size: 18px; font-weight: 800; }
.who { font-size: 16px; }
.league small { font-size: 13px; color: var(--muted); }
.pace { font-size: 18px; font-weight: 800; color: var(--purple); text-align: right; }
.two-num { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.two-num .note { grid-column: 1 / -1; text-align: center; margin-top: 4px; }

/* Slip */
.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; }
.track li { background: var(--card); border: 1.5px solid var(--border); border-bottom-width: 3px; border-radius: 22px; padding: 14px 16px 16px; text-align: center; }
.state { width: 100%; max-width: 150px; height: auto; margin: 0 auto 6px; overflow: visible; }
.track b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.track span { color: var(--muted); font-size: 15px; line-height: 1.35; display: block; margin-top: 2px; }
.good { color: var(--good); }
.mid { color: var(--mid); }
.bad { color: var(--bad); }

/* Comparison */
.vs { max-width: 920px; margin: 40px auto 0; background: var(--card); border: 1.5px solid var(--border); border-bottom-width: 4px; border-radius: 22px; overflow: hidden; }
.vs-row { display: grid; grid-template-columns: 170px 1fr 1fr; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--border); align-items: start; }
.vs-row:last-child { border-bottom: 0; }
.vs-row > span { font-weight: 800; letter-spacing: -0.015em; }
.vs-row p { color: var(--muted); }
.vs-row p:last-child { color: var(--ink); font-weight: 700; }
.vs-head { background: var(--lilac); }
.vs-head b { font-weight: 800; color: var(--purple-dark); }

/* Never */
.never { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; margin-top: 44px; }
.never h3 { color: var(--gold); }
.never p { margin-top: 6px; color: #e6dcf8; }

/* FAQ */
.faq { max-width: 760px; }
.faq h2 { margin-bottom: 32px; }
details { background: var(--card); border: 1.5px solid var(--border); border-bottom-width: 3px; border-radius: 18px; margin-top: 10px; }
summary { cursor: pointer; font-size: 18px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.3; padding: 15px 46px 15px 18px; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 9px; font-size: 26px; font-weight: 700; color: var(--purple); }
details[open] summary::after { content: "\2212"; }
details p { padding: 0 18px 16px; color: var(--muted); }

/* Finale */
.finale { padding-bottom: 72px; }
.finale-in { display: grid; justify-items: center; text-align: center; }
.finale .isle { width: min(380px, 84vw); margin-bottom: 4px; }
.finale h2 { font-size: clamp(42px, 6vw, 68px); font-weight: 900; }
.finale .sub { color: var(--ink); font-weight: 500; }
.finale .stores { justify-content: center; }

.fine-print { background: var(--wood-dark); color: #fff3df; font-size: 14px; text-align: center; padding: 12px 20px 14px; }

a:focus-visible, summary:focus-visible { outline: 3px solid var(--purple-dark); outline-offset: 3px; border-radius: 12px; }

@media (max-width: 1040px) {
  .nav-links { display: none; }
  .soon { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 96px; }
  .board { width: 100%; max-width: 520px; margin-inline: auto; }
  .split, .split.flip, .duo, .duo.art-left, .water { grid-template-columns: 1fr; gap: 36px; }
  .split.flip .steps { order: 0; }
  .vis { grid-template-columns: 1fr; }
  .vis-tabs { grid-template-columns: repeat(3, 1fr); }
  .three, .never { grid-template-columns: 1fr 1fr; }
  .track { grid-template-columns: 1fr 1fr; }
  .map { max-width: 520px; margin-inline: auto; width: 100%; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .three, .never, .two-num, .stages { grid-template-columns: 1fr; }
  .stages .isle { max-width: 280px; }
  .vis-tabs { grid-template-columns: 1fr; }
  .store { flex: 1 1 100%; }
  .wbtn { width: 52px; height: 56px; }
  .world { padding-top: 34px; }
  .rail { gap: 8px; }
  .vs-head { display: none; }
  .vs-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 16px; }
  .vs-row p:nth-of-type(1)::before { content: "Usually: "; font-weight: 700; }
  .vs-row p:nth-of-type(2)::before { content: "Boosti: "; color: var(--purple); }
  .league li { grid-template-columns: 18px 1fr auto 38px; gap: 8px; padding: 11px 12px; }
  .scene { padding: 4px 12px; }
  .dock-side { width: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fly-path, .drift { display: none; }
}

/* 404 */
.lost { min-height: 100vh; display: grid; align-content: center; }
.lost img { margin-bottom: 24px; }
.back { margin-top: 24px; }
.back .btn { text-decoration: none; }
.lost .sub { color: var(--ink); font-weight: 500; }
