/* Cheesecake Run's own pages (/games/cheesecakerun/, /games/cheesecakerun/privacy, /games/cheesecakerun/support), dressed
   as the game itself. Every part is a thing from the game's screens, never a generic section:
     - the opening film: the game's own intro, recorded with its sound (intro.mp4), full window on black. Browsers
       hold sound until a tap, so it opens on the film's black first frame with a blinking PRESS START; a tap plays it,
       SKIP or Esc ends it, and it fades into the title scene (cr.js; once a visit; "Watch the intro" plays it again);
     - the title scene: the road at Algonquin with the giant robot moose over it, the run's HUD across its top (the
       stage pill, the life faces, the drink badge, the pause button), the logo, the game's chunky buttons, him running
       at you with a cheesecake;
     - the numbers as HUD pieces; the trailer as a poster with a big play button (an overlay player, cr.js); how to play
       as the coach cards with their swipe hand and arrow chips;
     - THE ELENATOR as the finisher's fighting-game cards (OUT OF LIVES, SUPLEXED!, K.O., ELENATED: app/finisher_cards.gd);
     - the five countries as the map: land in a night sea, a name plate, the map's own postcards along a dotted road, a
       dashed flight with a little plane to the next country (app/map_screen.gd);
     - the giant robots under the HUD's BOSS ATTACK banner (red strip, black and gold hazard stripes, the pips);
     - the final stage as the terminal's glitch (letterbox bars, SIGNAL LOST, white over a magenta and a cyan copy:
       app/hud.gd) and the unseen last entry: its boss is kept secret on purpose (Carson 2026-11-26), so no name and no
       picture, only a black "?" and ??? plates;
     - the skill trees as the Upgrade Center, and the store badges in the result card (the navy menu, the gold Again
       button, the dark tiles);
     - the text pages: the same cream to mint ground as the game's screens, the slice from the logo by the title, and the
       road along the foot.
   Colours are the game's (app/ui.gd): ink 4a3228, strawberry ff7a9a / e0557a, cream fff6ea into mint cdeedd, the HUD's
   paper and jacket, the menu's navy and gold. The pictures are the game's renders (tools/cheesecakerun-art.py).
   Light is the only look. Bump ?v= in all three pages on every edit. */
@font-face { font-family:"CR Rounded"; src:url(/games/cheesecakerun/fonts/rounded-8c5b5db88b.woff2) format("woff2"); font-weight:900; font-display:swap }
@font-face { font-family:"CR Press"; src:url(/games/cheesecakerun/fonts/press-bf2410a37f.woff2) format("woff2"); font-weight:400; font-display:swap }
.cr {
  color-scheme:light;
  --bg:#fff6ea; --bg2:#cdeedd; --card:#fffbf5; --well:#fbf0e3; --line:#f0e0d2;
  --ink:#4a3228; --muted:#8a6e62; --faint:#c4b0a5;
  --red:#e0557a; --red-deep:#c63d64;
  --berry:#ff7a9a; --berry2:#e0557a; --hard:#f2a93b;
  --paper:rgba(255,246,234,.94); --jacket:#2a2530; --hudred:#ff3b3b; --yellow:#f6d77a; --bannerred:#e8413a; --pip:#ffd23f;
  --navy:#101725; --panel:#1c283d; --tile:#26354e; --edge:#40516d; --mink:#f7ecdc; --msoft:#adbbd0; --gold:#ffd166; --gold2:#d99a1e;
  --g:var(--berry); --gd:var(--berry2); --gb:#fff3e0;
  --round:"CR Rounded","Hiragino Maru Gothic ProN","Arial Rounded MT Bold",-apple-system,sans-serif;
  --hud:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;
  --press:"CR Press","Courier New",monospace;
  position:relative; min-height:100vh; padding-bottom:110px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) calc(100% - 96px), #f3dfac calc(100% - 96px), #f3dfac calc(100% - 84px), #6d6478 calc(100% - 84px)),
    linear-gradient(180deg, #fff6ea 0, #fff6ea 30%, #cdeedd 100%);
  background-color:#fff6ea;
}
/* the road every page ends on, its centre line running */
.cr::after { content:""; position:absolute; left:0; right:0; bottom:38px; height:6px; pointer-events:none;
  background:repeating-linear-gradient(90deg, rgba(255,255,255,.92) 0 46px, rgba(255,255,255,0) 46px 92px); animation:cr-road 1s linear infinite }
@keyframes cr-road { to { background-position:-92px 0 } }
.cr ::selection { background:var(--berry); color:#fff }
.cr a:focus-visible, .cr button:focus-visible { outline:3px solid var(--berry2); outline-offset:3px; border-radius:6px }
.cr .top nav a.on { color:var(--berry2) }
.cr .brand img, .cr footer .made img { border-color:var(--ink) }
.cr section.wrap { padding:84px 22px 0 }
.cr footer.wrap { margin-top:40px }
.cr .kicker { color:var(--berry2) }
.cr h2.big { font-family:var(--round); font-weight:900; letter-spacing:0; text-wrap:balance }
.cr .lede { color:var(--muted); font-size:18px; max-width:62ch; margin:0 0 28px }

/* ---- the HUD's parts, used all over: a cream pill with an ink edge, the game's heavy type */
.hud { display:inline-flex; align-items:center; gap:8px; background:var(--paper); border:2.5px solid var(--ink); border-radius:999px; padding:5px 13px; font:900 15px/1.1 var(--hud); color:var(--ink); letter-spacing:.01em; white-space:nowrap; box-shadow:0 3px 0 rgba(74,50,40,.25) }
.hud.hstage { border-radius:14px; padding:5px 11px; font-size:14px }
.hud img.life { width:26px; height:26px; margin:-2px 0 }
.hud svg { width:20px; height:20px; flex:none }
.hud .n { font-size:1.35em; font-variant-numeric:tabular-nums }
.outline { color:#fff; -webkit-text-stroke:6px var(--ink); paint-order:stroke fill }

/* ---- the game's chunky buttons (app/ui.gd `button`): strawberry, warm white */
.gbtn { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:58px; padding:8px 24px 8px 18px; border:2.5px solid var(--ink); border-radius:24px; font:900 19px/1.05 var(--hud); text-decoration:none; text-align:left; box-shadow:0 6px 0 var(--ink); transition:transform .12s, box-shadow .12s }
.gbtn small { display:block; font-size:12px; font-weight:800; opacity:.85 }
.gbtn svg { width:26px; height:26px; flex:none }
.gbtn.primary { background:var(--berry); color:#fff } .cr .gbtn.primary:hover { color:#fff }
.gbtn.secondary { background:#fffbf5; color:var(--ink) } .cr .gbtn.secondary:hover { color:var(--ink) }
.gbtn:hover { transform:translateY(-3px); box-shadow:0 9px 0 var(--ink) }
.gbtn:active { transform:translateY(4px); box-shadow:0 2px 0 var(--ink) }

/* ---- THE TITLE SCENE */
.cr-hero { padding-top:22px }
.cr-scene { position:relative; overflow:hidden; isolation:isolate; min-height:640px; border:4px solid var(--ink); border-radius:34px; background:#f1c9b8; box-shadow:0 12px 0 var(--line), 0 30px 80px rgba(120,80,60,.22); text-align:left; padding:96px 52px 52px }
.cr-scene .bg { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; object-position:center 35% }
.cr-scene::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg, rgba(255,246,234,.7) 0%, rgba(255,246,234,.35) 38%, rgba(255,246,234,0) 56%), linear-gradient(180deg, rgba(255,246,234,0) 70%, rgba(74,50,40,.16) 100%) }
/* the run's HUD across the top: stage pill, three faces, the drink badge, the pause button */
.cr-hudbar { position:absolute; top:16px; left:16px; right:16px; display:flex; align-items:center; justify-content:space-between; pointer-events:none }
.cr-hudbar .faces { display:flex; gap:4px }
.cr-hudbar .faces img { width:38px; height:38px; filter:drop-shadow(0 2px 0 rgba(74,50,40,.3)) }
.cr-hudbar .right { display:flex; gap:8px; align-items:center }
.cr-hudbar .pause { width:38px; height:38px; border-radius:50%; background:var(--jacket); display:grid; place-items:center; box-shadow:0 3px 0 rgba(0,0,0,.25) }
.cr-hudbar .pause::before { content:""; width:12px; height:14px; background:linear-gradient(90deg,#fff 0 4px,transparent 4px 8px,#fff 8px) }
.cr-logo { margin:0 0 0 -10px; width:min(540px,52%); animation:cr-bob 3s ease-in-out infinite alternate }
.cr-logo img { width:100%; filter:drop-shadow(0 8px 0 rgba(74,50,40,.22)) }
@keyframes cr-bob { from { transform:translateY(0) rotate(-1deg) } to { transform:translateY(-6px) rotate(1deg) } }
.cr-lead { margin:12px 0 10px; max-width:16em; font:900 clamp(30px,4.2vw,48px)/1.08 var(--round); text-wrap:balance }
.cr-lead em { font-style:normal; -webkit-text-stroke-color:var(--berry2) }
.cr-sub { margin:0 0 22px; font:800 17px var(--hud); color:var(--ink); background:var(--paper); display:inline-block; padding:4px 14px; border-radius:999px; border:2px solid var(--ink) }
.cr-cta { position:relative; z-index:2; display:flex; flex-wrap:wrap; justify-content:flex-start; gap:14px }
.cr-promise { display:flex; flex-wrap:wrap; justify-content:flex-start; gap:8px; margin:20px 0 0; padding:0; list-style:none }
.cr-runner { position:absolute; z-index:1; right:4%; bottom:-6px; width:min(210px,20%); transform-origin:50% 100%; animation:cr-hop .46s ease-in-out infinite alternate; filter:drop-shadow(0 10px 8px rgba(74,50,40,.25)) }
@keyframes cr-hop { from { transform:translateY(0) rotate(-2deg) } to { transform:translateY(-10px) rotate(2deg) } }
.cr-gap { display:contents }
/* WATCH THE INTRO: the game's 8-bit opening, never forced; a black pixel card with the film's own frame */
.cr-introcard { position:relative; z-index:2; display:inline-flex; align-items:center; gap:14px; margin:20px 0 0; padding:10px 18px 10px 10px; max-width:100%; background:#000; color:#fff; border:3px solid #fff; border-radius:0; box-shadow:5px 5px 0 var(--ink); cursor:pointer; text-align:left; transition:transform .12s ease, box-shadow .12s ease }
.cr-introcard:hover { transform:translate(-2px,-2px); box-shadow:7px 7px 0 var(--ink) }
.cr-introcard:active { transform:translate(3px,3px); box-shadow:2px 2px 0 var(--ink) }
.cr-introcard:focus-visible { outline:3px solid var(--berry2); outline-offset:3px }
.ic-tv { position:relative; flex:0 0 auto; width:64px; height:64px; border:2px solid #fff; overflow:hidden; background:#000 }
.ic-tv img { width:100%; height:100%; object-fit:cover; object-position:50% 22%; image-rendering:pixelated; display:block }
.ic-play { position:absolute; inset:0; display:grid; place-items:center; background:rgba(0,0,0,.35) }
.ic-play::after { content:""; width:0; height:0; border-style:solid; border-width:11px 0 11px 18px; border-color:transparent transparent transparent #fff; margin-left:4px; filter:drop-shadow(2px 2px 0 #000) }
.ic-words { display:flex; flex-direction:column; gap:8px; min-width:0 }
.ic-top { font:400 clamp(12px,1.25vw,15px)/1.2 var(--press); letter-spacing:.02em }
.moving .ic-play::after { animation:cr-blink 1.06s steps(1) infinite }
.ic-sub { font:700 13px/1.3 var(--hud); color:#cfcfcf; text-wrap:balance }
.cr-promise-below { justify-content:center; margin:18px 0 0 }

/* ---- THE OPENING FILM (cr.js): the game's intro, full window on black; the start screen first (sound needs a tap).
   html.tv is set by the head's script on a visit's first load; if cr.js never runs, the screen stands down by itself. */
.cr-tv { display:none }
html.tv .cr-tv { position:fixed; inset:0; z-index:1000; display:flex; align-items:center; justify-content:center; background:#000; transition:opacity .7s ease }
html.tv:not(.tv-ready) .cr-tv { animation:cr-tvfail 0s 6s forwards }
@keyframes cr-tvfail { to { visibility:hidden } }
.cr-tv.out { opacity:0 }
.tv-screen { position:relative; height:100%; aspect-ratio:720/1558; max-width:100%; background:#000 }
.tv-screen video { display:block; width:100%; height:100%; object-fit:contain; background:#000 }
.tv-start { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; width:100%; border:0; background:#000; color:#fff; cursor:pointer; font:400 clamp(20px,5.6vw,30px)/1.2 var(--press); letter-spacing:.04em }
.tv-start span { animation:cr-blink 1.06s steps(1) infinite }
.tv-start small { font:400 10px/1.8 var(--press); color:#9a9a9a; letter-spacing:.06em }
.tv-start:focus-visible { outline:3px solid #fff; outline-offset:-10px }
.cr-tv.playing .tv-start { display:none }
@keyframes cr-blink { 50% { opacity:0 } }
.tv-skip { position:absolute; top:max(14px, env(safe-area-inset-top)); right:14px; z-index:2; font:400 11px/1 var(--press); color:#fff; background:rgba(0,0,0,.55); border:2px solid #fff; padding:9px 11px; cursor:pointer }
.tv-skip:hover { background:#222 }
@media (min-width:641px) {
  .tv-screen { height:calc(100% - 40px); border:2px solid #2b2b2b; border-radius:30px; overflow:hidden }
}

/* ---- the numbers, as the HUD's pieces */
.cr-nums { display:flex; flex-wrap:wrap; justify-content:center; gap:14px 16px; margin:34px 0 0; padding:0; list-style:none }
.cr-nums .hud { font-size:17px; padding:8px 18px 8px 10px; box-shadow:0 5px 0 rgba(74,50,40,.25) }
.cr-nums .hud.hstage { padding:8px 16px }
.cr-nums .ico { width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:#fff1c9; border:2px solid var(--ink) }
.cr-nums .ico svg { width:22px; height:22px }
.cr-nums .heads { display:flex } .cr-nums .heads img { width:30px; height:30px; border-radius:50%; border:2px solid var(--ink); object-fit:cover; margin-left:-9px; background:#fff } .cr-nums .heads img:first-child { margin-left:0 }
.cr-intro { font-size:19px; color:var(--ink); max-width:62ch; margin:30px auto 0; text-align:center; text-wrap:pretty }

/* ---- the trailer and the coach cards */
.cr-watch { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:34px; align-items:center }
.cr-poster { position:relative; display:block; width:min(330px,100%); margin:0 auto; aspect-ratio:480/1042; border:8px solid var(--ink); border-radius:40px; overflow:hidden; background:#cdeedd; box-shadow:0 12px 0 var(--line), 0 24px 60px rgba(74,50,40,.25) }
.cr-poster img { width:100%; height:100%; object-fit:cover }
.cr-playbtn { position:absolute; left:50%; top:50%; width:104px; height:104px; margin:-52px 0 0 -52px; border-radius:50%; background:var(--berry); border:4px solid var(--ink); box-shadow:0 7px 0 var(--ink); transition:transform .15s }
.cr-playbtn::before { content:""; position:absolute; left:39px; top:29px; border-style:solid; border-width:20px 0 20px 32px; border-color:transparent transparent transparent #fff }
.cr-poster:hover .cr-playbtn { transform:scale(1.08) }
.cr-poster .ptag { position:absolute; left:12px; bottom:14px; right:12px; text-align:center }
.cr-coach { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:0; padding:0; list-style:none }
.cr-coach li { position:relative; background:#fffaf2; border:4px solid var(--ink); border-radius:22px; padding:16px 16px 18px; box-shadow:0 6px 0 var(--line) }
.cr-coach .chips2 { display:flex; gap:8px; margin:0 0 10px }
.chip-arrow { width:46px; height:46px; border-radius:50%; background:#fff; border:3px solid var(--ink); display:grid; place-items:center; box-shadow:0 3px 0 rgba(74,50,40,.3) }
.chip-arrow svg { width:24px; height:24px }
.chip-arrow.hold { background:var(--berry) }
.cr-coach h3 { margin:0 0 4px; font:900 19px/1.2 var(--hud); text-transform:uppercase; letter-spacing:.02em }
.cr-coach p { margin:0; color:var(--muted); font-size:15px }
.cr-coach .hand { position:absolute; right:10px; top:-18px; width:42px; transform:rotate(12deg); animation:cr-swipe 1.4s ease-in-out infinite }
@keyframes cr-swipe { 0%,100% { transform:translateX(0) rotate(12deg) } 50% { transform:translateX(-14px) rotate(4deg) } }
.cr-also { grid-column:1 / -1; margin:0; padding:12px 16px; border:3px dashed var(--ink); border-radius:18px; background:rgba(255,255,255,.55); font-weight:800 }

/* the overlay player (cr.js) */
.cr-theater { width:100vw; height:100vh; max-width:none; max-height:none; margin:0; padding:0; border:0; background:rgba(16,23,37,.94); display:none; place-items:center }
.cr-theater[open] { display:grid }
.cr-theater::backdrop { background:rgba(16,23,37,.6) }
.cr-theater video { height:min(88vh,1042px); max-width:92vw; aspect-ratio:480/1042; border:6px solid #fff; border-radius:28px; background:#000 }
.cr-theater .x { position:absolute; top:16px; right:16px; width:48px; height:48px; border-radius:50%; border:3px solid #fff; background:var(--jacket); cursor:pointer }
.cr-theater .x::before, .cr-theater .x::after { content:""; position:absolute; left:11px; top:20px; width:20px; height:3px; background:#fff; transform:rotate(45deg) } .cr-theater .x::after { transform:rotate(-45deg) }
html.cr-locked { overflow:hidden }

/* ---- THE STORY and THE ELENATOR's fighting-game cards */
.cr-fight { position:relative; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) minmax(0,1fr); align-items:end; gap:10px; padding:30px 26px 0; overflow:hidden; border:4px solid #120d18; border-radius:28px; color:#fff;
  background:radial-gradient(50% 60% at 50% 0, rgba(255,120,120,.25), rgba(255,120,120,0) 70%), radial-gradient(60% 40% at 50% 100%, rgba(255,210,63,.18), rgba(255,210,63,0) 70%), linear-gradient(180deg,#3a2f45 0%,#2a2530 60%,#1c1822 100%); box-shadow:0 12px 0 var(--line) }
.cr-fight::after { content:""; position:absolute; left:0; right:0; bottom:0; height:34px; background:linear-gradient(180deg,#4a3d55,#2a2530); border-top:3px solid #120d18 }
.cr-fight .fside { position:relative; z-index:1; text-align:center }
.cr-fight .fside img { height:300px; width:auto; margin:0 auto -6px }
.cr-fight .fside.him img { height:280px }
.cr-fight .plate { display:inline-block; margin:0 0 12px; padding:6px 14px; border:3px solid; border-radius:10px; font:900 18px/1 var(--hud); letter-spacing:.04em }
.cr-fight .him .plate { background:var(--paper); color:var(--ink); border-color:var(--ink) }
.cr-fight .elen .plate { background:var(--jacket); color:var(--hudred); border-color:var(--hudred) }
.cr-cards { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:10px; padding-bottom:58px }
.fcard { display:inline-block; font:900 22px/1.05 var(--hud); text-align:center; border-style:solid; border-radius:12px; padding:8px 18px; white-space:nowrap }
.fcard.f-out { background:var(--jacket); color:var(--yellow); border:3px solid var(--jacket); box-shadow:0 0 0 2px var(--yellow) }
.fcard.f-title { background:var(--yellow); color:var(--jacket); border-width:4px; border-color:var(--jacket); transform:rotate(-3deg); font-size:34px; padding:8px 20px 10px }
.fcard.f-title small { display:block; font-size:19px; margin-top:3px }
.fcard.f-ko { background:var(--jacket); color:var(--hudred); border-width:5px; border-color:var(--hudred); border-radius:16px; transform:rotate(-7deg); font-size:68px; padding:4px 24px }
.fcard.f-elen { background:var(--jacket); color:var(--hudred); border-width:3px; border-color:var(--hudred); transform:rotate(-4deg); font-size:28px }
.cr-fight-note { margin:22px auto 0; max-width:62ch; text-align:center; color:var(--ink); font-size:18px }
.cr-fight-note b { font-family:var(--hud); font-weight:900 }
/* the cards slam in when the fight comes into view (cr.js adds .seen); landed for everyone else */
.cr-fight.seen .fcard { animation:cr-slam .32s cubic-bezier(.2,.9,.3,1.2) both }
.cr-fight.seen .fcard.f-out { animation-delay:.1s } .cr-fight.seen .fcard.f-title { animation-delay:.5s } .cr-fight.seen .fcard.f-ko { animation-delay:.9s } .cr-fight.seen .fcard.f-elen { animation-delay:1.25s }
html.moving .cr-fight:not(.seen) .fcard { opacity:0 }
@keyframes cr-slam { from { scale:1.5; opacity:0 } 60% { opacity:1 } to { scale:1; opacity:1 } }

/* ---- THE MAP: land in a night sea, a name plate, postcards on a dotted road, a flight to the next country */
.cr-map { position:relative; padding:34px 28px 40px; border:4px solid var(--ink); border-radius:34px; overflow:hidden; box-shadow:0 12px 0 var(--line);
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.35) 50%, transparent 51%) 0 0 / 120px 90px,
    radial-gradient(1.5px 1.5px at 70% 60%, rgba(255,255,255,.25) 50%, transparent 51%) 0 0 / 160px 120px,
    linear-gradient(180deg,#1d3156 0%,#162746 50%,#101d36 100%) }
.cr-land { --land:#e8f1f4; --edge2:#b9cfd8; position:relative; margin:0 auto; padding:22px 20px 26px; background:var(--land); border:4px solid var(--ink); border-radius:46px 30px 52px 34px; box-shadow:0 10px 0 rgba(0,0,0,.3), inset 0 -10px 0 var(--edge2) }
.cr-land.jp { --land:#fde8ee; --edge2:#f2c4d2 } .cr-land.es { --land:#fbe7c4; --edge2:#ebc78b } .cr-land.is { --land:#dfe6ee; --edge2:#b4c1d1 } .cr-land.nz { --land:#dff2d6; --edge2:#b5dca4 }
.cr-land .plate { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 14px; margin:0 0 16px }
.cr-land h3 { margin:0; display:inline-flex; align-items:center; gap:10px; padding:6px 18px; background:#fffaf2; border:3px solid var(--ink); border-radius:999px; font:900 22px/1.1 var(--hud); letter-spacing:.08em; text-transform:uppercase; box-shadow:0 4px 0 rgba(74,50,40,.3) }
.cr-land h3 i { font-style:normal; font-size:13px; color:var(--muted); letter-spacing:.1em }
.cr-land .boss { font:800 15px/1.4 var(--hud); color:var(--ink) }
.cr-land .boss b { display:inline-block; padding:2px 9px; margin-right:6px; border-radius:6px; background:var(--bannerred); color:#fff; border:2px solid var(--ink); font-size:12px; letter-spacing:.08em }
.cr-road { position:relative; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:16px; margin:0; padding:0; list-style:none }
.cr-road::before { content:""; position:absolute; left:4%; right:4%; top:50%; border-top:5px dotted rgba(74,50,40,.45); z-index:0 }
.cr-card { position:relative; z-index:1; margin:0; background:#fff; padding:7px 7px 9px; border:3px solid var(--ink); border-radius:10px; box-shadow:0 5px 0 rgba(74,50,40,.28); transform:rotate(var(--r,0deg)) translateY(var(--y,0)) }
.cr-card:nth-child(odd) { --r:-2.5deg; --y:-8px } .cr-card:nth-child(even) { --r:2deg; --y:10px }
.cr-card img { width:100%; aspect-ratio:3/2; object-fit:cover; border-radius:5px; display:block }
.cr-card .cap { display:block; margin-top:6px; font:900 13px/1.2 var(--hud); color:var(--ink); text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.cr-card .no { position:absolute; left:-10px; top:-12px; width:30px; height:30px; border-radius:50%; background:var(--berry2); color:#fff; border:2.5px solid var(--ink); display:grid; place-items:center; font:900 13px var(--hud) }
.cr-flight { position:relative; height:86px; margin:0 auto; width:min(520px,80%) }
.cr-flight .route { position:absolute; inset:0; width:100%; height:100% }
.cr-flight .route path { fill:none; stroke:rgba(255,255,255,.75); stroke-width:3; stroke-dasharray:9 9; animation:cr-dash 1.6s linear infinite }
@keyframes cr-dash { to { stroke-dashoffset:-36 } }
.cr-flight .plane { position:absolute; left:50%; top:26px; width:34px; height:34px; margin-left:-17px; transform:rotate(100deg) }
.cr-map .last { text-align:center; margin:4px 0 0; color:#fff; font:400 12px/1.8 var(--press) }

/* ---- THE GIANT ROBOTS, each under the HUD's BOSS ATTACK banner */
.cr-bosses { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:16px; margin:0; padding:0; list-style:none }
.cr-boss { position:relative; background:var(--jacket); border:4px solid var(--ink); border-radius:22px; overflow:hidden; box-shadow:0 8px 0 var(--line) }
.cr-boss img { width:100%; aspect-ratio:1; object-fit:cover; display:block }
.bbanner { position:relative; display:flex; flex-direction:column; justify-content:center; align-items:center; min-height:56px; margin:10px 10px 0; padding:6px 24px; background:var(--bannerred); border:2.5px solid var(--ink); border-radius:10px; color:#fff; text-align:center; overflow:hidden }
.bbanner::before, .bbanner::after { content:""; position:absolute; top:0; bottom:0; width:18px; background:repeating-linear-gradient(-45deg,#1f1a22 0 7px,var(--pip) 7px 14px) }
.bbanner::before { left:0; border-right:2.5px solid var(--ink) } .bbanner::after { right:0; border-left:2.5px solid var(--ink) }
.bbanner small { font:900 9px/1 var(--hud); letter-spacing:.16em; color:#ffe1a8 }
.bbanner b { font:900 15px/1.1 var(--hud); letter-spacing:0; text-wrap:balance; overflow-wrap:normal }
.pips { display:flex; justify-content:center; gap:5px; margin:6px 0 0 }
.pips i { width:9px; height:9px; border-radius:50%; background:var(--pip); border:1.5px solid var(--ink) } .pips i:last-child { background:var(--paper) }
.cr-boss .who { position:absolute; left:0; right:0; bottom:0; padding:22px 10px 10px; background:linear-gradient(180deg, rgba(42,37,48,0), rgba(42,37,48,.92) 55%); color:#fff; text-align:center }
.cr-boss .who b { display:block; font:900 15px/1.2 var(--hud); letter-spacing:.04em; text-transform:uppercase }
.cr-boss .who span { font-size:13px; color:#d8cfe0 }

/* ---- THE FINAL STAGE: the terminal's glitch and the unseen last entry (no name, no picture: kept secret) */
.cr-final { position:relative; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.9fr); gap:30px; align-items:center; padding:64px 40px; border:4px solid #000; border-radius:28px; overflow:hidden; color:#fff; background:radial-gradient(70% 80% at 70% 50%, #3b1a5c 0%, #1a0d2b 55%, #07040d 100%); box-shadow:0 12px 0 var(--line) }
.cr-final::before, .cr-final::after { content:""; position:absolute; left:0; right:0; height:30px; background:#000; z-index:2 }
.cr-final::before { top:0 } .cr-final::after { bottom:0 }
.cr-final .scan { position:absolute; inset:0; pointer-events:none; background:repeating-linear-gradient(180deg, rgba(255,255,255,.05) 0 1px, transparent 1px 4px); z-index:1 }
.glitch { position:relative; display:inline-block; font:400 clamp(22px,3.4vw,40px)/1.2 var(--press); color:#fff; text-shadow:-2.5px 0 #ff3ad6, 2.5px 0 #38e8ff }
.cr-final .term { position:relative; z-index:3; font:400 clamp(11px,1.15vw,14px)/2.1 var(--press); color:#e9e1ff; margin:22px 0 0; padding:0; list-style:none }
.cr-final .term li { white-space:nowrap; overflow:hidden; text-shadow:-1.5px 0 #ff3ad6, 1.5px 0 #38e8ff }
.cr-final .term li.lock { color:#ff6bd9 }
.cr-final p.say { position:relative; z-index:3; margin:20px 0 0; color:#d9cdea; font-size:17px; max-width:36em }
.cr-final .words { position:relative; z-index:3 }
.cr-final .dex { position:relative; z-index:3; margin:0; width:100%; max-width:340px; justify-self:center }
.dex .who { display:grid; place-items:center; aspect-ratio:1; overflow:hidden; border:3px solid #ff3ad6; box-shadow:6px 0 0 #38e8ff, -6px 0 0 #ff3ad6;
  background:repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,.22) 0 7deg, rgba(255,255,255,0) 7deg 20deg), radial-gradient(circle at 50% 50%, #f2fdff 0, #9eeaff 26%, #3f7fd0 52%, #22164a 80%) }
.dex .q { font:400 clamp(150px,17vw,210px)/1 var(--press); color:#000; margin:0 0 0 .1em; filter:drop-shadow(0 0 1px #fff) drop-shadow(0 0 14px rgba(255,255,255,.75)) }
.dex figcaption { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:16px 0 0 }
.dex .no { font:400 11px/1 var(--press); color:#b9a9d6; letter-spacing:.08em }
.dex .name { font:400 22px/1 var(--press); color:#fff; background:#000; border:3px solid #fff; padding:10px 18px; letter-spacing:.14em; text-shadow:-2px 0 #ff3ad6, 2px 0 #38e8ff }
.cr-final.seen .term li { animation:cr-type 1.1s steps(28) both }
.cr-final.seen .term li:nth-child(2) { animation-delay:1.1s } .cr-final.seen .term li:nth-child(3) { animation-delay:2.2s } .cr-final.seen .term li:nth-child(4) { animation-delay:3.1s }
html.moving .cr-final:not(.seen) .term li { max-width:0 }
@keyframes cr-type { from { max-width:0 } to { max-width:100% } }
.cr-final .glitch { animation:cr-jit 3.2s steps(1) infinite }
@keyframes cr-jit { 0%,92%,100% { transform:none } 93% { transform:translate(3px,-1px) skewX(-8deg) } 95% { transform:translate(-4px,1px) } 97% { transform:translate(2px,0) skewX(6deg) } }

/* ---- THE UPGRADE CENTER: three trees on the menu's navy */
.cr-upg { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,.7fr); gap:26px; align-items:center; padding:28px; background:var(--navy); border:4px solid var(--ink); border-radius:30px; color:var(--mink); box-shadow:0 12px 0 var(--line) }
.cr-upg .head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 16px }
.cr-upg .head h3 { margin:0; font:900 22px var(--hud); letter-spacing:.06em; color:var(--mink) }
.cr-upg .drinks { display:inline-flex; align-items:center; gap:6px; padding:5px 12px; border-radius:999px; background:var(--tile); border:2px solid var(--edge); font:900 15px var(--hud); color:var(--gold) }
.cr-upg .drinks svg { width:18px; height:18px }
.cr-trees { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px }
.cr-tree { background:var(--panel); border:2px solid var(--edge); border-radius:18px; padding:14px 12px 16px; text-align:center }
.cr-tree h4 { margin:0; font:900 17px var(--hud); letter-spacing:.06em; text-transform:uppercase }
.cr-tree.pw h4 { color:#ff9f6b } .cr-tree.ag h4 { color:var(--gold) } .cr-tree.wi h4 { color:#8fc2ff }
.cr-tree p { margin:4px 0 12px; font-size:13px; color:var(--msoft) }
.cr-tree .t { display:grid; grid-template-columns:1fr 1fr; gap:22px 8px; position:relative }
.cr-tree .t::before { content:""; position:absolute; left:25%; right:25%; top:22px; bottom:40px; border:2.5px solid var(--edge); border-radius:4px; z-index:0 }
.node { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:4px; font:800 12px/1.15 var(--hud); color:var(--mink) }
.node i { width:44px; height:44px; border-radius:14px; background:var(--tile); border:3px solid var(--edge); box-shadow:0 3px 0 rgba(0,0,0,.35) }
.node.on i { background:var(--on,var(--gold)); border-color:var(--on2,var(--gold2)) }
.cr-tree.pw { --on:#c4553a; --on2:#ff9f6b } .cr-tree.ag { --on:#d99a1e; --on2:#ffd166 } .cr-tree.wi { --on:#3f6fb5; --on2:#8fc2ff }
.node.root, .node.cap { grid-column:1 / -1 }
.cr-upg .shot { margin:0; border:3px solid var(--edge); border-radius:24px; overflow:hidden; aspect-ratio:600/1304; max-width:240px; justify-self:center; width:100% }
.cr-upg .shot img { width:100%; height:100%; object-fit:cover }

/* ---- PLAY ANYWHERE: the result card (the navy menu, the gold Again button, the dark tiles) */
.cr-result { position:relative; max-width:560px; margin:0 auto; padding:26px 26px 28px; background:var(--panel); border:3px solid var(--edge); border-radius:28px; color:var(--mink); text-align:center; box-shadow:0 0 0 6px var(--navy), 0 14px 0 6px var(--line) }
.cr-result .where { font:900 12px/1 var(--hud); letter-spacing:.2em; color:var(--msoft); text-transform:uppercase }
.cr-result img.lg { width:min(360px,86%); margin:12px auto 6px }
.cr-result .when { margin:0 0 18px; font:900 20px/1.25 var(--hud); color:var(--mink) }
.mbtn { display:flex; align-items:center; justify-content:center; gap:10px; min-height:56px; margin:0 0 12px; border-radius:24px; font:900 18px/1.1 var(--hud); text-decoration:none; border:2.5px solid }
.mbtn svg { width:24px; height:24px }
.mbtn.gold { background:var(--gold); color:var(--navy); border-color:var(--navy); box-shadow:0 5px 0 var(--gold2) } .cr .mbtn.gold:hover { color:var(--navy); background:#ffdc85 }
.mbtn.dark { background:var(--tile); color:var(--mink); border-color:var(--edge) } .cr .mbtn.dark:hover { color:#fff; background:#2e4060 }
.mbtn small { font-size:12px; font-weight:800; opacity:.8; display:block }
.cr-result .two { display:grid; grid-template-columns:1fr 1fr; gap:12px }
.cr-result .two .mbtn { min-height:46px; font-size:15px; margin:0 }
.cr-result .ask { margin:16px 0 0; font-size:15px; color:var(--msoft) } .cr-result .ask a { color:var(--gold) }
.cr-result .boy { position:absolute; right:-150px; bottom:-10px; width:130px }
.cr-result .elen { position:absolute; left:-160px; bottom:-10px; width:140px }
.cr-any .chips { justify-content:center; margin:0 0 30px }
.cr-any .chips li { background:var(--paper); border:2.5px solid var(--ink); font:900 13px var(--hud); text-transform:uppercase; letter-spacing:.04em }

/* ---- the text pages (privacy, support) */
.cr .page { position:relative }
.cr .page .mark { float:right; width:78px; margin:4px 0 0 12px; animation:cr-bob 3s ease-in-out infinite alternate }
.cr .page h1 { font-family:var(--round); letter-spacing:0 }
.cr .page > h2 { display:inline-block; margin-top:40px; padding:5px 15px; background:var(--paper); border:2.5px solid var(--ink); border-radius:999px; font:900 17px/1.25 var(--hud); text-transform:uppercase; letter-spacing:.03em; box-shadow:0 3px 0 rgba(74,50,40,.25) }
.cr .page .hudrow { display:flex; flex-wrap:wrap; gap:8px; margin:30px 0 22px }
.cr .page .hudrow .hud { font-size:13px; padding:4px 11px }
.cr .page .card { border:4px solid var(--ink); border-radius:22px; background:#fffaf2; box-shadow:0 6px 0 var(--line) }
.cr .page .card h2 { font:900 19px/1.25 var(--hud); text-transform:uppercase; letter-spacing:.02em }
.cr .page footer { border-top-color:var(--line) }
.cr-app { display:flex; align-items:center; gap:10px; margin:0 0 16px; font-weight:800; font-size:14px; color:var(--muted) }
.cr-app img { width:30px; height:30px; border-radius:9px; border:2px solid var(--ink) }

@media (max-width:1180px) { .cr-result .boy, .cr-result .elen { display:none } }
@media (max-width:900px) {
  .cr-watch { grid-template-columns:minmax(0,1fr) }
    .cr-fight { grid-template-columns:1fr 1fr; padding:22px 14px 0 }
  .cr-cards { grid-column:1 / -1; grid-row:1; padding-bottom:6px }
  .cr-fight .fside img { height:200px } .cr-fight .fside.him img { height:190px }
  .cr-road { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; padding:16px 6px 14px; margin:0 -8px; gap:14px }
  .cr-road::before { top:46% }
  .cr-card { flex:0 0 46%; scroll-snap-align:start }
  .cr-bosses { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; padding:4px 2px 18px; gap:14px }
  .cr-boss { flex:0 0 62%; scroll-snap-align:start }
  .cr-final { grid-template-columns:minmax(0,1fr); padding:56px 22px }
  .cr-final .dex { max-width:250px; grid-row:1 }
  .cr-upg { grid-template-columns:minmax(0,1fr) }
  .cr-runner { width:min(150px,26%) }
  .cr-scene { text-align:center; padding:84px 28px 44px }
  .cr-scene::before { background:linear-gradient(180deg, rgba(255,246,234,.62) 0%, rgba(255,246,234,.2) 40%, rgba(255,246,234,0) 62%, rgba(74,50,40,.18) 100%) }
  .cr-logo { margin:0 auto; width:min(520px,86%) }
  .cr-lead { margin:12px auto 8px }
  .cr-cta, .cr-promise { justify-content:center }
  .cr-introcard { margin-left:auto; margin-right:auto }
}
@media (max-width:640px) {
  .cr section.wrap { padding-top:62px }
  .cr-scene { border-radius:26px; padding:66px 14px 26px; min-height:0; background:linear-gradient(180deg,#e7b3b6 0%,#f3cfcc 45%,#fbe6df 100%) }
  .cr-scene::before { display:none }
  /* the phone's own frame: the logo and the line over the sky, then a window on the road with the robot moose over it
     and him running at you, then the buttons under it */
  .cr-gap { display:block; position:relative; height:270px; margin:14px -14px 18px; border-top:3px solid var(--ink); border-bottom:3px solid var(--ink); overflow:hidden }
  .cr-gap picture { position:absolute; inset:0 }
  .cr-scene .bg { z-index:0; object-position:60% 40% }
  .cr-sub { font-size:14px; padding:4px 12px }
  .cr-hudbar { top:12px; left:12px; right:12px }
  .cr-hudbar .faces img { width:30px; height:30px }
  .cr-hudbar .pause { width:32px; height:32px }
  .cr-logo { width:min(400px,94%) }
  .gbtn { width:100%; justify-content:center }
  .cr-runner { right:10px; bottom:-14px; width:112px }
  .cr-introcard { width:100%; justify-content:flex-start }
  .ic-top { font-size:11px; white-space:nowrap }
  .ic-long { display:none }
  .ic-tv { width:56px; height:56px }
  .cr-nums .hud { font-size:15px }
  .cr-intro { font-size:17px; text-align:left }
  .cr-coach { grid-template-columns:minmax(0,1fr) }
  .cr-map { padding:22px 12px 26px; border-radius:26px }
  .cr-land { padding:16px 12px 18px; border-radius:30px 24px 34px 26px }
  .cr-land h3 { font-size:18px } .cr-land h3 i { display:none }
  .cr-card { flex-basis:62% }
  .cr-fight .fside img { height:160px } .cr-fight .fside.him img { height:150px }
  .fcard.f-title { font-size:26px } .fcard.f-title small { font-size:15px } .fcard.f-ko { font-size:52px } .fcard.f-elen { font-size:22px } .fcard.f-out { font-size:18px }
  .cr-trees { grid-template-columns:minmax(0,1fr) }
  .cr-upg { padding:20px 14px } .cr-upg .shot { display:none }
  .cr-result { padding:22px 16px 24px }
  .cr .page .mark { width:56px }
}
@media (max-width:480px) {
  .cr .brand span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0) }
  .cr .top nav { gap:4px 14px }
}
@media (prefers-reduced-motion:reduce) {
  .cr::after, .cr-logo, .cr-runner, .cr-coach .hand, .cr-flight path, .cr-final .glitch, .cr .page .mark { animation:none }
  .tv-start span { animation:none }
  .cr-fight.seen .fcard, .cr-final.seen .term li { animation:none }
}
