@import url("system/tokens.css");
@import url("system/headings.css");
/* Landing (landing5, 2026-11-17): "scene over sheet" (plan/design-2026-11-17/direction.md). Every part is the game's
   painted room with the real hero on top, fading into the graphite sheet that carries the words and ONE blue action.
   Colours, radii, spacing and shadows come from the game's token registry (system/tokens.css): no glass, no bezels,
   no recordings. Inter for everything readable, Fondamento for names in the world, the Cinzel wordmark as artwork. */
/* Latin subsets built by tools/brand/subset-font.mjs (95 kB and 26 kB; the full faces in tokens.css are 458 kB and
   87 kB and are never requested by this page). Any other character falls back to the system face. */
@font-face { font-family: "Home Inter"; src: url("/assets/fonts/inter-latin.woff2?v=58b4997c6ffecf5e") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+00B7, U+00D7, U+2013-2014, U+2018-2019, U+201C-201D, U+2022, U+2026; }
@font-face { font-family: "Home Saga"; src: url("/assets/fonts/fondamento-latin.woff2?v=1a451b9a95996b02") format("woff2"); font-display: swap;
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+00B7, U+00D7, U+2013-2014, U+2018-2019, U+201C-201D, U+2022, U+2026; }
:root {
  --home-font: "Home Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --home-world-font: "Home Saga", Georgia, serif;
  --home-gutter: max(var(--ui-space-4), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --home-lip: color-mix(in srgb, var(--brand-accent) 58%, var(--ui-on-accent));
  --home-accent-hover: color-mix(in srgb, var(--brand-accent) 78%, white);
  --home-band: var(--ui-space-12);
  --rarity-edge: var(--paint-effect-e6e9ef);
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --home-gutter: var(--ui-space-6); --home-band: 72px; } }
@media (min-width: 1100px) { :root { --home-gutter: var(--ui-space-8); --home-band: 96px; } }
[data-rarity="common"] { --rarity-edge: var(--paint-effect-e6e9ef); } [data-rarity="rare"] { --rarity-edge: var(--paint-effect-7f97ff); }
[data-rarity="very-rare"] { --rarity-edge: var(--paint-effect-a880ff); } [data-rarity="exalted"] { --rarity-edge: var(--paint-effect-e44fcf); }
[data-rarity="mythic"] { --rarity-edge: var(--paint-effect-eb4b4b); } [data-rarity="legendary"] { --rarity-edge: var(--paint-effect-e4ae39); }
/* Names are small text: the rarity paint is lifted towards cream until it reads at AA on graphite (mythic red alone is 4.0:1). */
[data-rarity] { --rarity-name: color-mix(in srgb, var(--rarity-edge) 78%, var(--ui-label)); }

* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
body { min-height: 100%; background: var(--ui-bg); color: var(--ui-label); font: 400 15px/1.45 var(--home-font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ui-focus); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: var(--ui-space-2); z-index: 30; padding: var(--ui-space-2) var(--ui-space-4); background: var(--ui-label); color: var(--ui-bg); border-radius: var(--ui-radius-md); font-weight: 700; }
.skip:focus { left: var(--ui-space-2); }
.wrap { width: 100%; max-width: calc(var(--ui-width-page) + 2 * var(--home-gutter)); margin-inline: auto; padding-inline: var(--home-gutter); }
.utility-icon { flex: none; width: 20px; height: 20px; }

/* ---- Buttons (direction.md §7): one blue primary with the 3 px lip, graphite secondary, quiet text ---- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--ui-space-2); min-height: 48px; padding: 0 var(--ui-space-6);
  border: 0; border-radius: var(--ui-radius-lg); font: 700 16px/1.2 var(--home-font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--ui-dur-tap) var(--ui-ease), box-shadow var(--ui-dur-tap) var(--ui-ease), background-color 160ms var(--ui-ease); }
.btn-primary { background: var(--brand-accent); color: var(--ui-on-accent); box-shadow: 0 3px 0 var(--home-lip); }
.btn-primary:hover { background: var(--home-accent-hover); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 0 0 var(--home-lip); }
.btn-56 { min-height: 56px; font-size: 18px; padding-inline: var(--ui-space-8); }
/* The single page-level call to action is gold (direction.md §7, owner 2026-11-18): the game's reward gold with dark
   ink and the 3 px lip, larger than every other control, with a soft pulse and a light band every few seconds.
   Blue stays for ADDICTIVE, links, focus and ordinary primaries. */
.btn-cta { min-height: 60px; padding-inline: var(--ui-space-10); font-size: 19px; overflow: hidden; background: var(--ui-primary); color: var(--ui-on-accent);
  --cta-lip: color-mix(in srgb, var(--ui-primary) 58%, var(--ui-on-accent)); --cta-ring: color-mix(in srgb, var(--ui-primary) 55%, transparent);
  box-shadow: 0 3px 0 var(--cta-lip), 0 0 0 0 var(--cta-ring); animation: cta-pulse 4.8s ease-out 2.6s infinite; }
.btn-cta::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 40%, color-mix(in srgb, white 55%, transparent) 50%, transparent 60%) no-repeat 180% 0 / 240% 100%; animation: cta-shine 4.8s ease-in-out 2.6s infinite; }
.btn-cta:hover { background: color-mix(in srgb, var(--ui-primary) 82%, white); }
.btn-cta:active { transform: translateY(3px); box-shadow: 0 0 0 var(--cta-lip); animation: none; }
.btn-cta.btn-compact { min-height: 40px; padding-inline: var(--ui-space-4); font-size: 15px; animation: none; box-shadow: 0 3px 0 var(--cta-lip); }
.btn-cta.btn-compact::after { display: none; }
.btn-cta--bar { min-height: 52px; font-size: 18px; }
@keyframes cta-pulse { 0%, 62%, 100% { box-shadow: 0 3px 0 var(--cta-lip), 0 0 0 0 var(--cta-ring); } 78% { box-shadow: 0 3px 0 var(--cta-lip), 0 0 0 10px transparent; } }
@keyframes cta-shine { 0%, 60% { background-position: 180% 0; } 82%, 100% { background-position: -80% 0; } }
.btn-secondary { background: var(--ui-surface-3); color: var(--ui-label); box-shadow: inset 0 0 0 1px var(--ui-edge); }
.btn-secondary:hover { background: color-mix(in srgb, var(--ui-surface-3) 86%, var(--ui-label)); }
.btn-secondary:active { transform: translateY(1px); }
.btn-compact { min-height: 36px; padding-inline: var(--ui-space-4); border-radius: var(--ui-radius-md); font-size: 14px; }
.btn-quiet { min-height: 44px; padding: 0 var(--ui-space-3); border: 0; background: none; color: var(--ui-label-2); font: 600 15px/1 var(--home-font); cursor: pointer; border-radius: var(--ui-radius-md); }
.btn-quiet:hover { color: var(--ui-label); }
.chip { padding: 2px var(--ui-space-2); border-radius: var(--ui-radius-pill); background: var(--ui-surface); color: var(--ui-label-2); font: 600 12px/1.35 var(--home-font); }

/* ---- 1. Hero: scene on top, sheet below (phones and tablets) ---- */
.hero { position: relative; display: flex; flex-direction: column; min-height: 100svh; }
.scene { position: relative; overflow: hidden; background: var(--ui-bg); }
.hero .scene { flex: 1 1 auto; min-height: 236px; }
.scene-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 100%; }
/* The fade: the painting runs into the ground colour over its lower half. No hard edge, no frame. */
.scene::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ui-bg) 38%, transparent) 0, transparent 22%, transparent 56%, color-mix(in srgb, var(--ui-bg) 72%, transparent) 84%, var(--ui-bg) 100%); }
/* The painted still: the same hero and monster as real images, a fallback only (owner 2026-11-21: they showed as stale
   remnants while the live fight loaded). Hidden by default; shown when the scene window cannot be live (demo-host.js
   data-still: Save-Data or a failed load). */
.scene-still { position: absolute; inset: 0; opacity: 0; transition: opacity 240ms var(--ui-ease); }
.scene:has(.demo[data-still]) .scene-still { opacity: 1; }
.scene-still img { position: absolute; width: auto; max-width: none; filter: brightness(.86) saturate(.92) drop-shadow(0 6px 5px rgb(0 0 0 / .45)); } /* the same dusk tone as the live actors */
.still-hero { left: 30%; bottom: 22%; height: 68%; transform: translate(-50%, 9%); }
.still-mob { left: 70%; bottom: 22%; height: 33%; transform: translateX(-50%) scaleX(-1); }
.scene:has(.demo[data-live]) .scene-still { opacity: 0; }
.demo { position: absolute; inset: 0; pointer-events: none; }
.demo[data-playable] { pointer-events: auto; } /* the fight a visitor can answer in */
.demo--scene { z-index: 1; } /* above the fade, so the card in the scene keeps its own colours */
.demo-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 240ms var(--ui-ease); color-scheme: dark; background: transparent; }
.demo[data-live] .demo-frame { opacity: 1; }
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: var(--ui-space-4);
  padding: max(var(--ui-space-3), env(safe-area-inset-top, 0px)) var(--home-gutter) 0; }
.brand { display: inline-flex; align-items: center; min-height: 44px; border-radius: var(--ui-radius-md); }
.logo { display: block; width: auto; height: 34px; }
.top-actions { display: flex; align-items: center; gap: var(--ui-space-1); }
.motion-toggle { min-height: 36px; font-size: 13px; color: var(--ui-label); }
/* After a few answers of their own: a quiet offer beside the fight. */
.nudge { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ui-space-2) var(--ui-space-3); margin-top: var(--ui-space-3); padding: var(--ui-space-2) var(--ui-space-2) var(--ui-space-2) var(--ui-space-3);
  border-radius: var(--ui-radius-lg); background: var(--ui-surface-2); box-shadow: inset 0 0 0 1px var(--ui-edge-strong); font-size: 13px; font-weight: 600; }
.nudge[hidden] { display: none; }
.nudge span { flex: 1 1 auto; }
.nudge--scene { position: absolute; z-index: 2; left: calc(var(--home-pair-x, .5) * 100%); right: auto; bottom: var(--ui-space-4); transform: translateX(-50%); width: max-content; max-width: calc(100% - 2 * var(--ui-space-4)); margin: 0; box-shadow: inset 0 0 0 1px var(--ui-edge-strong), var(--ui-shadow-raised); }
/* The nudge sits under the fighting pair, on the same centre line as the live demo (demo-window.css --demo-pair-x). */
/* Phones: the page's text covers the lower part of the scene, so the nudge hangs just under the fighters' feet
   (demo-window.css phones: --demo-feet .78 of the same first screen). */
@media (max-width: 899px) { .nudge--scene { top: calc(78% + var(--ui-space-3)); bottom: auto; } }
@media (min-width: 900px) { .hero { --home-pair-x: .7; } }
@media (min-width: 1200px) { .hero { --home-pair-x: .63; } }
.sheet { position: relative; z-index: 1; flex: none; display: flex; flex-direction: column; justify-content: flex-end; margin-top: calc(-1 * var(--ui-space-8));
  padding: 0 var(--home-gutter) max(var(--ui-space-6), env(safe-area-inset-bottom, 0px)); }
h1 { font: 900 min(37px, 8.7vw)/1.04 var(--home-font); letter-spacing: .005em; text-wrap: balance; }
/* ADDICTIVE: the brand blue, on its own box so the glow and the pop never move the line. */
h1 em { display: inline-block; position: relative; font-style: normal; color: var(--brand-accent); }
.lede { margin-top: var(--ui-space-3); max-width: 46ch; font-size: 15px; color: var(--ui-label); }
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: var(--ui-space-4); }
.actions .btn { width: 100%; }
.drop { cursor: pointer; }
.drop label { cursor: pointer; }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border-radius: inherit; }
.drop:focus-within { outline: 2px solid var(--ui-focus); outline-offset: 3px; }
.drop.is-over { box-shadow: inset 0 0 0 2px var(--brand-accent); }
.drop .ico, .btn .ico { display: inline-flex; }
.drop-status { margin-top: var(--ui-space-2); font-size: 13px; font-weight: 600; color: var(--brand-accent); }
.drop-status:empty { display: none; }
.ticks { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--ui-space-1) var(--ui-space-4); margin-top: var(--ui-space-3); font-size: 13px; line-height: 1.35; color: var(--ui-label-2); }
.ticks li { display: inline-flex; align-items: center; gap: 6px; }
.ticks .utility-icon { width: 16px; height: 16px; color: var(--game-chest-text); }

/* Desktop: the painting fills the window, a graphite gradient covers the left half, the sheet docks left in a
   440 to 520 px column and the fight happens in the open scene. */
@media (min-width: 900px) {
  .hero { display: block; height: 100svh; min-height: 620px; max-height: 1080px; }
  .hero .scene { position: absolute; inset: 0; height: auto; }
  .hero .scene-art { object-position: 50% 100%; }
  .hero .scene::after { background:
    linear-gradient(180deg, transparent 72%, var(--ui-bg) 100%),
    linear-gradient(90deg, var(--ui-bg) 0, color-mix(in srgb, var(--ui-bg) 94%, transparent) 26%, color-mix(in srgb, var(--ui-bg) 62%, transparent) 42%, transparent 58%); }
  .still-hero { left: 62%; bottom: 20%; height: 53%; }
  .still-mob { left: 80%; bottom: 20%; height: 26%; }
  .top { padding: var(--ui-space-6) max(var(--home-gutter), calc((100vw - var(--ui-width-page)) / 2)) 0; }
  .logo { height: 44px; }
  .sheet { position: absolute; z-index: 1; top: 0; bottom: 0; left: max(var(--home-gutter), calc((100vw - var(--ui-width-page)) / 2)); width: min(440px, 44vw);
    margin: 0; padding: var(--ui-space-12) 0; justify-content: center; }
  h1 { font-size: clamp(44px, 4.5vw, 64px); }
  .lede { margin-top: var(--ui-space-4); font-size: 17px; }
  .actions { flex-direction: row; gap: var(--ui-space-3); margin-top: var(--ui-space-6); }
  .actions .btn { width: auto; }
  /* The download is the page's one gold action (owner 2026-11-21): a full row of its own, never squeezed; Play in
     browser and Import your deck share the row under it. */
  .actions { flex-wrap: wrap; }
  .actions .btn-cta { flex: 1 0 100%; white-space: nowrap; }
  .actions .btn-secondary { flex: 1 1 0; white-space: nowrap; }
  .ticks { justify-content: flex-start; margin-top: var(--ui-space-4); }
}
@media (min-width: 1200px) {
  .sheet { width: 480px; }
  .still-hero { left: 48.5%; height: 49%; }
  .still-mob { left: 59.5%; height: 26%; }
}
@media (min-width: 1400px) { .sheet { width: 520px; } }

/* ---- Bands below the first screen: 1100 px column, text blocks at most 680 px ---- */
.band { padding-block: var(--home-band); }
.band-raised { background: var(--ui-surface); border-block: 1px solid var(--ui-edge); }
h2 { font: 700 clamp(24px, 2.6vw, 28px)/1.15 var(--home-font); }
h3 { font: 700 17px/1.25 var(--home-font); }
.band-lede { margin-top: var(--ui-space-2); max-width: var(--ui-width-read); font-size: 17px; color: var(--ui-label-2); }
.live { display: inline-flex; align-items: center; gap: var(--ui-space-2); font-size: 13px; line-height: 1.35; font-weight: 600; color: var(--ui-label-2); }
.live .dot { flex: none; width: 8px; height: 8px; border-radius: var(--ui-radius-pill); background: var(--game-chest-text); }

/* 2. Three live windows. Scene art is never boxed in a bezel: a 20 px graphite window with one hairline. */
.windows { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 320px); gap: var(--ui-space-4); margin: var(--ui-space-8) calc(-1 * var(--home-gutter)) 0; padding: 0 var(--home-gutter) var(--ui-space-2);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--home-gutter); scrollbar-width: none; }
.windows::-webkit-scrollbar { display: none; }
.windows > li { scroll-snap-align: start; min-width: 0; }
.window { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 20px; background: var(--ui-surface); box-shadow: inset 0 0 0 1px var(--ui-edge), var(--ui-shadow-raised); }
.window::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--ui-edge); pointer-events: none; }
/* The still: one real frame of that window (a capture of the live window), shown until the live one has loaded. */
.window-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.window--card { aspect-ratio: 4 / 5; }
.windows .live { margin-top: var(--ui-space-3); }
.windows h3 { margin-top: var(--ui-space-2); }
.windows h3 + p { margin-top: var(--ui-space-1); color: var(--ui-label-2); max-width: 34ch; }
@media (min-width: 900px) {
  .windows { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 320px)); justify-content: space-between; gap: var(--ui-space-8); margin-inline: 0; padding: 0; overflow: visible; }
}

/* 3. Academic proof: three plain statements with checks, and the live card beside them. */
.split { display: grid; gap: var(--ui-space-8); align-items: center; }
.facts { display: grid; gap: var(--ui-space-4); margin-top: var(--ui-space-6); max-width: var(--ui-width-read); }
.facts li { display: grid; grid-template-columns: 24px 1fr; gap: var(--ui-space-3); color: var(--ui-label-2); }
.facts li > span { min-width: 0; }
.facts strong { display: block; color: var(--ui-label); font-weight: 700; }
.facts .utility-icon { width: 24px; height: 24px; color: var(--game-chest-text); }
.honest { margin-top: var(--ui-space-6); padding-top: var(--ui-space-4); border-top: 1px solid var(--ui-edge); max-width: var(--ui-width-read); font-size: 17px; font-weight: 600; }
.split-demo { width: min(100%, 360px); justify-self: center; }
.split-demo .window { background: var(--ui-bg); }
.split-demo .live { margin-top: var(--ui-space-3); }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--ui-space-12); } }

/* 4. Gear wall: released catalog pieces drifting past in their rarity; one at a time flashes like a drop.
   Rarity colours are the only saturated colours here; names are set in the world's own face. */
.gear { overflow: hidden; }
.loot { display: grid; gap: var(--ui-space-3); margin-top: var(--ui-space-8); padding-block: var(--ui-space-3);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.loot-row { display: flex; gap: var(--ui-space-3); width: max-content; padding-right: var(--ui-space-3); }
.loot.moving .loot-row { animation: loot-drift 90s linear infinite; }
.loot.moving .loot-row[data-dir="right"] { animation-direction: reverse; animation-duration: 110s; }
.loot.moving .loot-row:nth-child(3) { animation-duration: 100s; }
.loot:hover .loot-row { animation-play-state: paused; }
@keyframes loot-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.loot li { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; width: 132px; height: 152px; padding: var(--ui-space-2) var(--ui-space-2) var(--ui-space-3);
  border-radius: var(--ui-radius-lg); text-align: center; background: var(--ui-surface); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rarity-edge) 46%, transparent), inset 0 -3px 0 var(--rarity-edge); }
.loot img { width: 88px; height: 88px; object-fit: contain; filter: drop-shadow(0 6px 6px rgb(0 0 0 / .5)); }
.loot span { max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font: 400 14px/1.2 var(--home-world-font); color: var(--rarity-name); }
.loot li.drop { animation: loot-flash 1.1s cubic-bezier(.16, 1, .3, 1); z-index: 1; }
.loot li.drop::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none; border: 2px solid var(--rarity-edge); animation: loot-ring 1.1s ease-out both; }
@keyframes loot-flash { 0% { transform: none; } 22% { transform: translateY(-8px) scale(1.12); filter: brightness(1.4); box-shadow: inset 0 0 0 1px var(--rarity-edge), inset 0 -3px 0 var(--rarity-edge), 0 18px 36px -10px var(--rarity-edge); } 100% { transform: none; filter: none; } }
@keyframes loot-ring { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }

/* 5. Other students: the town painting with real characters, then three plain columns with a hairline between. */
.town-scene { position: relative; height: clamp(220px, 34vw, 420px); overflow: hidden; }
.town-scene .scene-art { object-position: 50% 78%; }
.town-scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, var(--ui-bg) 0, transparent 22%, transparent 56%, var(--ui-bg) 100%); }
.town-cast { position: absolute; left: 50%; bottom: 14%; display: flex; align-items: flex-end; gap: clamp(8px, 4vw, 56px); transform: translateX(-50%); }
.town-cast img { width: auto; max-width: none; height: clamp(104px, 17vw, 210px); filter: drop-shadow(0 6px 5px rgb(0 0 0 / .45)); }
.town-cast img:nth-child(2n) { transform: scaleX(-1); }
.town-sheet { position: relative; margin-top: calc(-1 * var(--ui-space-6)); padding-bottom: var(--home-band); }
.columns { display: grid; gap: var(--ui-space-4); margin-top: var(--ui-space-6); }
.columns li { padding-top: var(--ui-space-4); border-top: 1px solid var(--ui-edge); }
.columns p { margin-top: var(--ui-space-1); color: var(--ui-label-2); max-width: 38ch; }
@media (min-width: 768px) {
  .columns { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .columns li { padding: 0 var(--ui-space-6); border-top: 0; border-left: 1px solid var(--ui-edge); }
  .columns li:first-child { padding-left: 0; border-left: 0; }
}

/* 6. Proof: only what the server measured. Hidden until then. */
.proof { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ui-space-3) var(--ui-space-8); padding-block: 0 var(--home-band); }
.proof[hidden] { display: none; }
.proof-players { font-size: 17px; color: var(--ui-label-2); }
.proof-players strong { display: block; font: 900 clamp(40px, 5vw, 64px)/1 var(--home-font); color: var(--ui-label); font-variant-numeric: tabular-nums; }
.proof-rating { display: inline-flex; align-items: center; gap: var(--ui-space-2); padding: var(--ui-space-3) var(--ui-space-4); border-radius: var(--ui-radius-lg); background: var(--ui-surface); box-shadow: inset 0 0 0 1px var(--ui-edge); font-weight: 600; font-variant-numeric: tabular-nums; }
.proof-rating[hidden] { display: none; }
.proof-rating .utility-icon { color: var(--game-gold-text); fill: currentColor; }

/* 7. Take it with you. Official store artwork, never recoloured, dimmed, cropped or overlaid: 48 px high, Apple
   first, 12 px between, in its own row on plain graphite. The state is said in words under each badge. */
.get { display: grid; gap: var(--ui-space-8); margin-top: var(--ui-space-8); }
.get-label { font-size: 13px; line-height: 1.35; font-weight: 600; color: var(--ui-label-2); }
.badges { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--ui-space-3); margin-top: var(--ui-space-3); }
.store-badge { display: grid; justify-items: center; gap: var(--ui-space-2); padding: 0; border: 0; background: none; color: var(--ui-label-2); font: inherit; cursor: pointer; text-decoration: none; border-radius: var(--ui-radius-md); }
.store-badge img { display: block; height: 48px; width: auto; max-width: none; }
/* Google's file carries its own clear space (a quarter of the badge height on every side): show the badge itself at 48 px. */
.store-badge img.android { height: 71px; margin: -11.5px -12px; }
.store-badge small { font-size: 13px; line-height: 1.35; font-weight: 600; }
.desktop { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--ui-space-3); }
.desktop .btn { padding-inline: var(--ui-space-4); }
.desktop .btn[data-ready] .chip { display: none; }
.soon-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ui-space-3) var(--ui-space-4); margin-top: var(--ui-space-6); padding: var(--ui-space-4); max-width: var(--ui-width-read);
  border-radius: var(--ui-radius-lg); background: var(--ui-surface-2); box-shadow: inset 0 0 0 1px var(--ui-edge-strong); }
.soon-note[hidden] { display: none; }
.soon-note p { flex: 1 1 240px; color: var(--ui-label-2); }
.soon-note strong { display: block; color: var(--ui-label); }
@media (max-width: 599px) { .desktop .btn { width: 100%; justify-content: flex-start; } .desktop .chip { margin-left: auto; } }
@media (min-width: 900px) { .get { grid-template-columns: auto 1fr; gap: var(--ui-space-12); } }

/* 8. Final call: the painting again, smaller, with a hero in the best gear. */
.final .scene { height: clamp(200px, 30vw, 380px); }
.final .scene-art { object-position: 50% 100%; }
.final .scene::after { background: linear-gradient(180deg, var(--ui-bg) 0, transparent 26%, transparent 58%, var(--ui-bg) 100%); }
.final-hero { position: absolute; left: 50%; bottom: 16%; width: auto; max-width: none; height: 66%; transform: translateX(-50%); filter: drop-shadow(0 6px 5px rgb(0 0 0 / .45)); }
.final-sheet { position: relative; display: grid; justify-items: center; gap: var(--ui-space-4); margin-top: calc(-1 * var(--ui-space-6)); padding-bottom: var(--home-band); text-align: center; }
.final-sheet .btn { min-width: min(100%, 300px); }
.final-sheet p { color: var(--ui-label-2); font-size: 13px; }

/* 9. Footer. */
.site-foot { padding: var(--ui-space-8) 0 calc(var(--ui-space-12) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--ui-edge); background: var(--ui-surface); color: var(--ui-label-2); font-size: 13px; line-height: 1.5; }
.site-foot .wrap { display: grid; gap: var(--ui-space-3); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ui-space-4); padding-bottom: var(--ui-space-3); }
.site-foot .logo { height: 30px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0 var(--ui-space-6); }
.site-foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ui-label); font-weight: 600; text-decoration: none; }
.site-foot nav a:hover, .footer-company a:hover { color: var(--brand-accent); }
.medgn { display: inline-flex; align-items: center; gap: var(--ui-space-2); width: fit-content; min-height: 44px; text-decoration: none; }
.medgn img { height: 14px; width: auto; }
.footer-company { display: block; max-width: 86ch; font-size: 13px; }
.footer-company a { color: var(--ui-label); }

/* Phones: a Play free bar once the hero's own button has scrolled away; it leaves at the final call. */
.sticky-play { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: var(--ui-space-3);
  padding: var(--ui-space-2) var(--home-gutter) max(var(--ui-space-3), env(safe-area-inset-bottom, 0px)); background: var(--ui-surface); border-top: 1px solid var(--ui-edge); box-shadow: var(--ui-shadow-sheet); }
.sticky-play[hidden] { display: none; }
.sticky-play .btn { flex: 1; animation: none; }
.sticky-play span { font-size: 13px; color: var(--ui-label-2); }
@media (min-width: 900px) { .sticky-play { display: none; } }

.drop-overlay { position: fixed; inset: 0; z-index: 30; display: grid; place-content: center; justify-items: center; gap: var(--ui-space-2); text-align: center;
  background: color-mix(in srgb, var(--ui-bg) 92%, transparent); box-shadow: inset 0 0 0 3px var(--brand-accent); }
.drop-overlay[hidden] { display: none; }
.drop-overlay span { color: var(--brand-accent); }
.drop-overlay .utility-icon { width: 48px; height: 48px; }
.drop-overlay p { font: 700 28px/1.15 var(--home-font); }
.drop-overlay small { color: var(--ui-label-2); font-size: 13px; }

/* ---- ADDICTIVE answers right (owner 2026-11-17: keep). The game's correct-answer pop (src/fx/fx.css
   saga-right-pop: 1, .93, 1.06, 1) on the headline word, with a blue glow that breathes between pops and a light
   band on the re-pop. The letters stay crisp: the glow is a text-shadow on a transparent copy of the word
   (::before), the shine a text-clipped band on a second copy (::after); only transform and opacity move. ---- */
:root { --juice-easy: var(--brand-accent); --juice-bloom: color-mix(in srgb, var(--brand-accent) 55%, transparent); --juice-blink: color-mix(in srgb, var(--ui-label) 95%, transparent); }
h1 em { isolation: isolate; cursor: default; -webkit-tap-highlight-color: transparent; }
h1 em::before, h1 em::after { content: attr(data-word); content: attr(data-word) / ""; /* decoration: never read twice */ position: absolute; inset: 0; white-space: nowrap; pointer-events: none; color: transparent; }
h1 em::before { z-index: -1; opacity: .45; will-change: opacity, transform; text-shadow: 0 0 10px var(--juice-easy), 0 0 26px var(--juice-bloom), 0 0 54px var(--juice-bloom); }
.landed h1 em::before { animation: breathe 3.4s ease-in-out 1.2s infinite alternate; }
h1 em::after { background: linear-gradient(105deg, transparent 38%, var(--juice-blink) 50%, transparent 62%) no-repeat 160% 0 / 260% 100%; -webkit-background-clip: text; background-clip: text; opacity: 0; }
h1 em.is-popping { animation: saga-right-pop .46s cubic-bezier(.3, .7, .4, 1); }
h1 em.is-shining::after { animation: word-shine .62s ease-in-out; }
@keyframes saga-right-pop { 0% { transform: scale(1); } 30% { transform: scale(.93) translateY(2px); } 70% { transform: scale(1.06); filter: brightness(1.35); } 100% { transform: scale(1); } }
@keyframes breathe { from { opacity: .4; transform: scale(1); } to { opacity: .82; transform: scale(1.035); } }
@keyframes word-shine { 0% { opacity: 1; background-position: 160% 0; } 85% { opacity: 1; } 100% { opacity: 0; background-position: -60% 0; } }
h1 em .spark { position: absolute; width: 18px; height: 18px; pointer-events: none; opacity: 0; transform: scale(0);
  background: radial-gradient(circle, var(--juice-blink) 0 14%, transparent 16%), linear-gradient(var(--juice-blink), var(--juice-blink)) center / 2px 100% no-repeat, linear-gradient(var(--juice-blink), var(--juice-blink)) center / 100% 2px no-repeat;
  filter: drop-shadow(0 0 4px var(--juice-easy)); }
h1 em .spark:nth-of-type(1) { right: -14px; top: -6px; }
h1 em .spark:nth-of-type(2) { left: 18%; bottom: -8px; width: 12px; height: 12px; }
h1 em.is-shining .spark { animation: spark .7s cubic-bezier(.3, 1.7, .5, 1) .08s; }
h1 em.is-shining .spark:nth-of-type(2) { animation-delay: .22s; }
@keyframes spark { 0% { opacity: 0; transform: scale(0) rotate(-25deg); } 40% { opacity: 1; transform: scale(1) rotate(0); } 100% { opacity: 0; transform: scale(.6) rotate(20deg); } }
/* Play free takes the same pop once, after the headline has landed. */
.landed .sheet .btn-cta { animation: saga-right-pop .46s cubic-bezier(.3, .7, .4, 1) 1.5s 1 backwards, cta-pulse 4.8s ease-out 2.6s infinite; }

/* The game's own rainbow (the seven pastel lights of chests and level-ups, src/fx/highlight-moment.html RAINBOW) as a
   faint glow drifting behind the word, under the blue glow and the pop. A blurred band behind the letters: the
   letters themselves are untouched and stay crisp. */
:root { --rainbow-1: #f0a6b8; --rainbow-2: #f3d08e; --rainbow-3: #f4e7a4; --rainbow-4: #b2e0b0; --rainbow-5: #a6d6e6; --rainbow-6: #b7aee6; --rainbow-7: #e2b0dc; }
h1 em .aura { position: absolute; z-index: -2; inset: 8% -5% -4%; border-radius: var(--ui-radius-pill); pointer-events: none; opacity: .34; filter: blur(18px);
  background: linear-gradient(90deg, var(--rainbow-1), var(--rainbow-2), var(--rainbow-3), var(--rainbow-4), var(--rainbow-5), var(--rainbow-6), var(--rainbow-7), var(--rainbow-1)) 0 0 / 200% 100%;
  animation: aura-drift 9s linear infinite; }
@keyframes aura-drift { to { background-position: -200% 0; } }
.paused h1 em .aura, .paused .landed h1 em::before, .paused .loot-row, .paused .btn-cta, .paused .btn-cta::after { animation-play-state: paused; }

/* Reduced motion: the final frame. No pop, no loop, no drift; the glow stays as a still light. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .scene-still, .demo-frame { transition: none; }
  .landed h1 em::before { animation: none; opacity: .7; }
  h1 em.is-popping, .landed .sheet .btn-cta, .btn-cta, .btn-cta::after, h1 em .aura { animation: none; }
  h1 em::after, h1 em .spark { display: none; }
  .loot.moving .loot-row, .loot li.drop, .loot li.drop::after { animation: none; }
  .loot { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  .loot-row { padding-inline: var(--home-gutter); }
}
