/* ==================================================================
   CIKKU.AI : "Sunrise Arcade"
   Tokens per DESIGN-TOKENS.md, values verbatim.
   ================================================================== */
/* Press Start 2P draws the capital C-dot as short as the small one, so "ĊIKKU" in a HUD chip read
   with a small first letter. This one-letter face (Poplu repo scripts/make-pixel-dot.py) has it at
   full height; the browser takes only that letter from it. Licence: fonts/cikku-pixel-dot-OFL.txt. */
@font-face { font-family: "Cikku Pixel Dot"; src: url("fonts/cikku-pixel-dot.woff2") format("woff2"); unicode-range: U+010A; font-display: swap; }
:root {
  /* COLOR : brief section 4, verbatim */
  --color-canvas:        #FFF6E3; /* warm cream daylight, NEVER grey-white */
  --color-canvas-sky-top: #FFF6E3;
  --color-canvas-sky-bottom: #FFD9A8; /* soft sunrise peach : hero sky gradient stop */
  --color-ink:            #2A1A0F; /* deep warm ink : text + dark bands */
  --color-ink-soft:       #4A3626; /* ink at 80% for secondary copy, keeps warm hue (not grey) */
  --color-yolk:            #FFC421; /* brand pair 1 */
  --color-tangerine:       #FF7A1A; /* brand pair 2 */
  --color-flame:           #FF4B2B; /* guarantee / energy moments ONLY */
  --color-teal:            #00B8A9; /* counter-accent : type-chips + CTA hover ONLY, never a base color */
  --color-rose:            #F26B8A; /* governed persona accent (Rozi, roster v2) : roster card chips/trim ONLY, never a base color. Ink text on rose: 5.7:1 */

  /* derived surface tints (flat, no gradients-as-decoration beyond the sky) */
  --color-card-cream:      #FFFCF3; /* card face, barely lifted off canvas */
  --color-ink-band:        var(--color-ink); /* LEVEL 06 guarantee/EU dark band background */
  --color-on-ink:          #FFF6E3; /* text on ink bands = canvas color, inverted pairing */
  --color-on-flame:        #FFF6E3; /* text on flame band */
  --color-teal-chip-bg:    #E4FBF8; /* teal at low-opacity tint for HUD chip backgrounds */
  --color-flame-text:      #C43A21; /* flame darkened for SMALL text only: 4.92:1 on canvas, 5.15:1 on card cream, 4.79:1 on #FFF3D6 (15px/700 is not WCAG large text, needs 4.5:1); --color-flame itself stays for backgrounds, shadows and display-size numbers */

  /* TYPE : families */
  --font-display:  'Baloo 2', ui-rounded, 'Segoe UI Rounded', sans-serif;
  --font-body:     'Nunito Sans', ui-sans-serif, system-ui, sans-serif;
  --font-hud:      'Cikku Pixel Dot', 'Press Start 2P', monospace;
  --font-mono-num: 'Chivo Mono', ui-monospace, monospace;

  /* TYPE : scale (clamp: mobile floor to desktop ceiling) */
  --fs-hero:     clamp(3.2rem, 10.5vw, 9.5rem); /* design-gate FIX-B: architectural wordmark; floor verified no-wrap at 360px, may kiss the column edge on wide desktops */
  --fs-display:  clamp(2.25rem, 1.7rem + 2.4vw, 3.5rem);
  --fs-title:    clamp(1.5rem, 1.25rem + 1.1vw, 2.25rem);
  --fs-lead:     clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
  --fs-body:     1rem;
  --fs-body-sm:  0.9375rem;
  --fs-label:    0.8125rem;
  --fs-caption:  0.75rem;
  --fs-hud:      0.625rem;  /* Press Start 2P HUD labels: never body-size */
  --fs-hud-lg:   0.75rem;   /* the ONE permitted larger HUD use: XP-bar readout */
  --fs-num-stat: clamp(2rem, 1.6rem + 1.6vw, 3.25rem);
  --fs-num-inline: 1rem;

  /* weights */
  --fw-display-regular: 500;
  --fw-display-bold:    700;
  --fw-display-black:   800;
  --fw-body-regular:    400;
  --fw-body-semibold:   600;
  --fw-body-bold:       700;
  --fw-hud:              400;
  --fw-mono:              500;

  /* line-height */
  --lh-hero:    1.05;
  --lh-display: 1.12;
  --lh-title:   1.2;
  --lh-lead:    1.45;
  --lh-body:    1.6;
  --lh-label:   1.3;
  --lh-hud:     1.5;

  /* letter-spacing */
  --ls-hero:    -0.01em;
  --ls-display: -0.005em;
  --ls-body:    0;
  --ls-label:   0.02em;
  --ls-hud:     0.06em;
  --ls-num:     0.01em;

  /* RADIUS : everything traces back to the mascot's round silhouette */
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   28px;
  --radius-pill: 999px;
  --radius-blob: 42% 58% 55% 45% / 48% 42% 58% 52%;

  /* BORDER / OUTLINE : thick warm-ink sticker outlines */
  --outline-hairline: 1.5px solid var(--color-ink);
  --outline-thin:     2px solid var(--color-ink);
  --outline-default:  3px solid var(--color-ink);
  --outline-thick:    4px solid var(--color-ink);
  --outline-heavy:    5px solid var(--color-ink);
  --outline-on-ink:   3px solid var(--color-canvas);
  --outline-teal:     3px solid var(--color-teal);

  /* SHADOW : flat sticker hard shadow, solid offset, NO blur */
  --shadow-hard-sm:  3px 3px 0 0 var(--color-ink);
  --shadow-hard-md:  5px 5px 0 0 var(--color-ink);
  --shadow-hard-lg:  8px 8px 0 0 var(--color-ink);
  --shadow-hard-xl: 12px 12px 0 0 var(--color-ink);
  --shadow-hard-flame: 5px 5px 0 0 var(--color-flame);
  --shadow-hard-teal:  4px 4px 0 0 var(--color-teal);
  --shadow-press:    2px 2px 0 0 var(--color-ink);
  --shadow-none:     0 0 0 0 transparent;

  /* SPACING / SECTION RHYTHM */
  --space-3xs: 4px;
  --space-2xs: 8px;
  --space-xs:  12px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  32px;
  --space-xl:  48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;
  --section-pad-y-mobile:  64px;
  --section-pad-y-desktop: 128px;
  --section-gap-band:      0px;

  /* CONTAINER */
  --container-max:      1200px;
  --container-max-wide: 1440px;
  --container-max-copy: 640px;
  --container-pad-x:    24px;
  --container-pad-x-lg: 40px;

  /* MOTION : springy, physics-y */
  --ease-spring-soft:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring-punchy: cubic-bezier(0.68, -0.6, 0.32, 1.6);
  --ease-out-soft:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-standard: cubic-bezier(0.65, 0, 0.35, 1);

  --dur-micro:   120ms;
  --dur-reveal:  420ms;
  --dur-evolve:  900ms;
  --dur-preloader: 1600ms;
  --dur-parallax-lag: 0ms;

  /* Z-LAYER PLAN */
  --z-base:            0;
  --z-parallax-back:   1;
  --z-parallax-mid:    2;
  --z-content:         10;
  --z-mascot:          15;
  --z-sticker-overlay: 20;
  --z-hud-bar:         90;
  --z-nav:             95;
  --z-modal:           100;
  --z-preloader:       999;
}

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px; /* HUD + nav */
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-body-regular);
  line-height: var(--lh-body);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--color-yolk); color: var(--color-ink); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--fw-display-bold); }
.t-display { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); }
.t-title   { font-size: var(--fs-title); line-height: var(--lh-title); }
.t-lead    { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--color-ink-soft); font-weight: var(--fw-body-semibold); }
.num { font-family: var(--font-mono-num); font-weight: var(--fw-mono); font-variant-numeric: tabular-nums; letter-spacing: var(--ls-num); }

.wrap { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--container-pad-x); }
.wrap--copy { max-width: var(--container-max-copy); }
@media (min-width: 900px) { .wrap { padding-inline: var(--container-pad-x-lg); } }

.band { position: relative; padding-block: var(--section-pad-y-mobile); }
@media (min-width: 900px) { .band { padding-block: var(--section-pad-y-desktop); } }
.band--canvas { background: var(--color-canvas); }
.band--ink    { background: var(--color-ink); color: var(--color-on-ink); border-top: var(--outline-heavy); }
.band--dusk   { background: linear-gradient(180deg, #2A1A0F 0%, #3D2413 100%); color: var(--color-on-ink); border-top: var(--outline-heavy); }
.band--flame  { background: var(--color-flame); color: var(--color-on-flame); border-top: var(--outline-heavy); border-bottom: var(--outline-heavy); }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  background: var(--color-ink); color: var(--color-on-ink);
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-weight: var(--fw-body-bold); text-decoration: none;
  transition: top 160ms ease;
}
.skip-link:focus { top: 8px; }
/* focus rings, SC 1.4.11: the default ink ring covers the cream grounds (15.6:1 canvas / 16.3:1 card
   cream / 15.2:1 contact band) AND the flame band (ink on flame 5.02:1); teal covers only the dark
   grounds: 6.73:1 on ink (footer shares the ink background), 5.77:1 on dusk. Teal is never used on
   cream (2.32:1) or flame (1.34:1), both below the 3:1 floor */
:focus-visible { outline: 3px solid var(--color-ink); outline-offset: 3px; border-radius: 4px; }
.band--ink :focus-visible, .band--dusk :focus-visible, .footer :focus-visible { outline-color: var(--color-teal); }

/* HUD chips (Press Start 2P: tiny, sparing, UPPERCASE only) */
.hud-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-hud); font-size: var(--fs-hud); font-weight: var(--fw-hud);
  line-height: var(--lh-hud); letter-spacing: var(--ls-hud); text-transform: uppercase;
  color: var(--color-ink);
  background: var(--color-card-cream);
  border: var(--outline-thin); border-radius: var(--radius-pill);
  padding: 8px 14px 7px;
  box-shadow: var(--shadow-hard-sm);
}
.hud-chip--teal { background: var(--color-teal-chip-bg); }
.hud-chip--onink { color: var(--color-on-ink); background: transparent; border: 2px solid var(--color-canvas); box-shadow: 3px 3px 0 0 rgba(255,246,227,.35); }

.kicker { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md); }

/* ============ BUTTONS : Duolingo press physics in sticker language ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-size: var(--fs-label); font-weight: var(--fw-body-bold);
  letter-spacing: var(--ls-label); text-transform: uppercase; line-height: var(--lh-label);
  color: var(--color-ink); text-decoration: none;
  background: var(--color-yolk);
  border: var(--outline-default); border-radius: var(--radius-pill);
  padding: 16px 28px;
  box-shadow: var(--shadow-hard-md);
  transition:
    transform var(--dur-micro) var(--ease-spring-punchy),
    box-shadow var(--dur-micro) var(--ease-spring-punchy),
    background var(--dur-micro) linear;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover  { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 0 var(--color-ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: var(--shadow-press); }
.btn--primary { background: var(--color-tangerine); }
.btn--primary:hover { background: var(--color-yolk); }
.btn--ghost { background: var(--color-card-cream); }
.btn--ghost:hover { box-shadow: var(--shadow-hard-teal); border-color: var(--color-ink); }
.btn--onink { background: var(--color-yolk); border-color: var(--color-ink); }
.btn--wa { background: var(--color-card-cream); }
.btn--wa:hover { box-shadow: var(--shadow-hard-teal); }
.btn--big { padding: 20px 36px; font-size: 0.9375rem; }
.btn .btn-ico { width: 18px; height: 18px; flex: none; }

/* ============ CARDS ============ */
.card {
  background: var(--color-card-cream);
  border: var(--outline-default); border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard-md);
}
.card--lg { border: var(--outline-thick); border-radius: var(--radius-lg); box-shadow: var(--shadow-hard-lg); }

/* ============ ART SLOTS : graceful degradation until renders land ============
   Each slot is a .art figure with fixed aspect ratio (zero layout shift).
   If the webp is missing today, window.__art() flags .art-missing and the
   slot renders a tokens-styled sticker plate: cream field + yolk egg-token
   glyph. The moment the files land, the images light up untouched. */
.art { position: relative; overflow: hidden; display: block; }
.art > img { width: 100%; height: 100%; object-fit: contain; }
.art--square { aspect-ratio: 1 / 1; }
.art--wide { aspect-ratio: 16 / 9; }
.art-missing { background: var(--color-card-cream); }
.art-missing::before {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 44%; aspect-ratio: 0.86;
  background: var(--color-yolk);
  border: var(--outline-default); border-radius: var(--radius-blob);
}
.art-missing::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 18%; aspect-ratio: 0.9;
  background: var(--color-card-cream);
  border: var(--outline-thin); border-radius: var(--radius-blob);
}
/* transparent-stage variant: plate floats free (for sprites on band bg) */
.art--free.art-missing { background: transparent; }

/* hero scene plate: a composed CSS sunrise, not a blank box */
.scene-art.art-missing { background: linear-gradient(180deg, var(--color-canvas-sky-top) 0%, var(--color-canvas-sky-bottom) 78%, #F6B26B 100%); }
.scene-art.art-missing::before {
  /* sun disc */
  width: 34%; aspect-ratio: 1; inset: auto; left: 56%; top: 16%;
  background: var(--color-yolk); border: var(--outline-default); border-radius: 50%;
}
.scene-art.art-missing::after {
  /* limestone rooftop line */
  content: ""; position: absolute; inset: auto 0 0 0; margin: 0; width: 100%; height: 18%;
  aspect-ratio: auto; border: 0; border-top: var(--outline-default); border-radius: 0;
  background:
    repeating-linear-gradient(90deg, #F3DCA9 0 12%, #EDD29A 12% 12.6%, #F3DCA9 12.6% 24%),
    #F3DCA9;
}

/* ============ XP-BAR SCROLL HUD (persistent, fixed top) ============ */
.xp-hud {
  /* spec intent (DESIGN-TOKENS HUD block): the bar rides the very top, nav sits
     just below. The nav paints an opaque strip up there, so the HUD needs to win
     that one overlap: z-nav + 1, still far below the preloader. */
  position: fixed; top: 0; left: 0; right: 0; z-index: calc(var(--z-nav) + 1);
  padding: 10px 12px 0;
  pointer-events: none;
}
.xp-track {
  height: 14px; width: 100%;
  background: var(--color-card-cream);
  border: var(--outline-thin); border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}
.xp-fill {
  position: absolute; inset: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--color-yolk), var(--color-tangerine));
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}
.xp-readout {
  position: absolute; top: 20px; left: 12px;
  transform: translateX(0);
  will-change: transform;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-hud); font-size: var(--fs-hud); letter-spacing: var(--ls-hud);
  text-transform: uppercase; white-space: nowrap;
  color: var(--color-ink);
  background: var(--color-yolk);
  border: var(--outline-thin); border-radius: var(--radius-pill);
  padding: 5px 10px 4px;
  box-shadow: var(--shadow-hard-sm);
}
.xp-readout.pop { animation: hudPop 340ms var(--ease-spring-punchy); }
@keyframes hudPop { 0% { scale: 1; } 45% { scale: 1.14; } 100% { scale: 1; } }

/* ============ NAV (sits under the HUD bar) ============ */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: var(--color-canvas);
  border-bottom: var(--outline-default);
  padding-top: 34px; /* room for the fixed XP bar overlay */
}
.nav-in {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  padding-block: 10px;
}
/* ============ WORDMARK : Ċikku, built like Poplu's (2026-10-13) ============
   The same sticker as the Poplu wordmark: yolk and cream letters, a flame layer and an ink
   layer stacked behind under one thick ink outline, and a dotted contrail flying off the end
   into a puff. Ċikku with the Maltese dot, the way the name is written. The two layers repeat
   the word from data-word (the "/ ''" keeps screen readers from reading it three times). */
.wordmark { position: relative; isolation: isolate; display: inline-block; white-space: nowrap;
  font-family: var(--font-display); font-weight: var(--fw-display-black); letter-spacing: 0.005em; line-height: 1.05;
  color: var(--color-yolk); text-decoration: none; padding: 0 1.45em 0.12em 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60'%3E%3Cpath d='M4 50C18 20 44 6 58 16C70 25 60 42 49 35C38 28 52 8 72 8C80 8 86 11 89 15' fill='none' stroke='%232A1A0F' stroke-width='4' stroke-linecap='round' stroke-dasharray='.5 8'/%3E%3Ccircle cx='90' cy='17' r='7' fill='%23FFFCF3' stroke='%232A1A0F' stroke-width='3.5'/%3E%3C/svg%3E") no-repeat right 0 top -0.05em / 1.4em auto; }
.wordmark > span:first-child { color: var(--color-card-cream); }
.wordmark::before, .wordmark::after { content: attr(data-word); content: attr(data-word) / "";
  position: absolute; left: 0; top: 0; z-index: -1; -webkit-text-stroke: 0.16em var(--color-ink); paint-order: stroke fill; }
.wordmark::before { color: var(--color-flame); transform: translate(0.04em, 0.045em); }
.wordmark::after { color: var(--color-ink); z-index: -2; transform: translate(0.09em, 0.1em); }
/* On the ink footer the outline melts into the band, so the contrail flies in cream. */
.wordmark--on-ink { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60'%3E%3Cpath d='M4 50C18 20 44 6 58 16C70 25 60 42 49 35C38 28 52 8 72 8C80 8 86 11 89 15' fill='none' stroke='%23FFFCF3' stroke-width='4' stroke-linecap='round' stroke-dasharray='.5 8'/%3E%3Ccircle cx='90' cy='17' r='7' fill='%23FFC421' stroke='%23FFFCF3' stroke-width='3.5'/%3E%3C/svg%3E"); }
/* The top margin keeps the Ċ's dot clear of the XP bar's LV chip, which hangs over the nav. */
.nav-mark.wordmark { font-size: 1.8rem; margin-top: 12px; }
.nav-links { display: none; align-items: center; gap: var(--space-md); list-style: none; }
.nav-links a {
  text-decoration: none; font-weight: var(--fw-body-bold); font-size: var(--fs-label);
  text-transform: uppercase; letter-spacing: var(--ls-label);
  /* 12px vertical padding: 16.9px line box + 24px padding + 4px border is a
     ~45px hit target, still shorter than the 47px nav CTA, so bar height holds */
  padding: 12px; border-radius: var(--radius-pill); border: 2px solid transparent;
  transition: border-color var(--dur-micro) linear, background var(--dur-micro) linear;
}
.nav-links a:hover { border-color: var(--color-ink); background: var(--color-teal-chip-bg); }
.nav .btn { padding: 12px 20px; box-shadow: var(--shadow-hard-sm); }
.nav .btn:hover { box-shadow: 5px 5px 0 0 var(--color-ink); }
@media (min-width: 980px) { .nav-links { display: flex; } }

/* ============ PRELOADER : EGG HATCH (code-built glyph) ============ */
.preloader {
  position: fixed; inset: 0; z-index: var(--z-preloader);
  background: var(--color-canvas);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-lg);
  transition: transform 300ms var(--ease-in-out-standard);
}
.preloader.exit { transform: translateY(-102%); }
.preloader.gone { display: none; }
.egg-wrap { position: relative; width: 180px; height: 220px; }
.egg-glow {
  position: absolute; inset: -40px; margin: auto; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,196,33,0.85), rgba(255,196,33,0));
  opacity: 0; scale: 0.6;
  transition: opacity 260ms var(--ease-spring-punchy), scale 260ms var(--ease-spring-punchy);
}
.egg { position: relative; width: 100%; height: 100%; animation: eggWobble 900ms var(--ease-in-out-standard) infinite; transform-origin: 50% 88%; }
@keyframes eggWobble { 0%,100% { rotate: 0deg; } 30% { rotate: 3.5deg; } 70% { rotate: -3.5deg; } }
.egg svg { width: 100%; height: 100%; overflow: visible; }
.egg-top, .egg-bottom { transition: transform 300ms var(--ease-spring-punchy); }
.egg .crack { stroke-dasharray: 100; stroke-dashoffset: 100; }
.preloader.crack .crack { transition: stroke-dashoffset 280ms var(--ease-in-out-standard); stroke-dashoffset: 0; }
.preloader.split .egg { animation: none; }
.preloader.split .egg-top { transform: translate(-7px, -20px) rotate(-10deg); }
.preloader.split .egg-bottom { transform: translate(2px, 5px) rotate(2deg); }
.preloader.split .egg-glow { opacity: 1; scale: 1.15; }
.pre-spark { position: absolute; width: 14px; height: 14px; opacity: 0; }
.preloader.split .pre-spark { animation: sparkFly 480ms var(--ease-out-soft) forwards; }
.pre-spark--a { top: 12%; left: 8%; } .pre-spark--b { top: 6%; right: 4%; animation-delay: 60ms !important; }
@keyframes sparkFly { 0% { opacity: 0; transform: translate(0,0) scale(0.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-8px,-26px) scale(1); } }
.pre-label {
  font-family: var(--font-hud); font-size: var(--fs-hud); letter-spacing: var(--ls-hud);
  text-transform: uppercase; color: var(--color-ink-soft);
}
.pre-label .dots::after { content: ""; animation: preDots 900ms steps(4) infinite; }
@keyframes preDots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* ============ LEVEL 01 : HERO ============ */
.hero {
  position: relative; /* anchors the absolute sky layers to the hero itself */
  background: linear-gradient(180deg, var(--color-canvas-sky-top) 0%, var(--color-canvas-sky-bottom) 100%);
  padding-top: calc(var(--space-2xl) + 24px);
  padding-bottom: var(--space-2xl);
  overflow: hidden;
}
@media (min-width: 900px) { .hero { padding-top: var(--space-3xl); padding-bottom: var(--space-3xl); } }
.hero-grid { position: relative; z-index: var(--z-content); display: grid; gap: var(--space-xl); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-2xl); } }

/* parallax sky layers */
/* will-change is set from JS only while the hero is on screen, not held statically */
.sky-layer { position: absolute; inset: 0; pointer-events: none; }
.sky-layer--back { z-index: var(--z-parallax-back); }
.sky-layer--mid { z-index: var(--z-parallax-mid); }
.sun {
  position: absolute; top: 8%; right: 12%;
  width: clamp(120px, 16vw, 210px); aspect-ratio: 1;
  background: var(--color-yolk); border: var(--outline-default); border-radius: 50%;
}
.sun-rays {
  position: absolute; top: 50%; left: 50%; width: 220%; aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,196,33,0.38) 0deg 7deg, rgba(255,196,33,0) 7deg 26deg);
  animation: raysTurn 70s linear infinite;
  z-index: -1;
}
@keyframes raysTurn { to { rotate: 360deg; } }
.cloud {
  position: absolute;
  background: var(--color-card-cream);
  border: var(--outline-thin); border-radius: var(--radius-blob);
}
.cloud--a { width: 150px; height: 64px; top: 16%; left: 4%; }
.cloud--b { width: 100px; height: 46px; top: 84%; right: 5%; }
.cloud--c { width: 190px; height: 78px; top: 10%; left: 40%; }
@media (max-width: 760px) { .cloud { display: none; } } /* mobile sky stays clean: sun + gradient only */

/* kinetic wordmark */
.hero-mark {
  font-size: var(--fs-hero); line-height: var(--lh-hero); letter-spacing: var(--ls-hero);
  font-weight: var(--fw-display-black);
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px;
  margin-bottom: var(--space-sm);
}
.hero-mark .wordmark { transform-origin: 20% 80%; }
/* The hero's contrail draws itself once the word has landed (SMIL inside the image, so no
   script). It only goes on at hero-go, after the egg hatches, so the trail is not already
   drawn behind the preloader; its own begin times make it a separate image from the nav's. */
body.js.hero-go .hero-mark .wordmark { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60'%3E%3Cmask id='m'%3E%3Cpath d='M4 50C18 20 44 6 58 16C70 25 60 42 49 35C38 28 52 8 72 8C80 8 86 11 89 15' fill='none' stroke='%23fff' stroke-width='9' stroke-linecap='round' pathLength='1' stroke-dasharray='1' stroke-dashoffset='1'%3E%3Canimate attributeName='stroke-dashoffset' values='1;0' dur='.7s' begin='0.45s' calcMode='spline' keyTimes='0;1' keySplines='.35 0 .25 1' fill='freeze'/%3E%3C/path%3E%3C/mask%3E%3Cpath d='M4 50C18 20 44 6 58 16C70 25 60 42 49 35C38 28 52 8 72 8C80 8 86 11 89 15' fill='none' stroke='%232A1A0F' stroke-width='4' stroke-linecap='round' stroke-dasharray='.5 8' mask='url(%23m)'/%3E%3Ccircle cx='90' cy='17' r='0' fill='%23FFFCF3' stroke='%232A1A0F' stroke-width='3.5'%3E%3Canimate attributeName='r' values='0;8.5;7' keyTimes='0;.6;1' begin='1.1s' dur='.3s' fill='freeze'/%3E%3C/circle%3E%3C/svg%3E"); }
.hero-mark .ai-chip {
  align-self: center;
  font-family: var(--font-hud); font-size: var(--fs-hud-lg); letter-spacing: var(--ls-hud);
  color: var(--color-ink);
  background: var(--color-teal-chip-bg);
  border: var(--outline-thin); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard-sm);
  padding: 8px 10px 7px; margin-left: 10px;
  rotate: -5deg; display: inline-block;
}
/* design-gate FIX-B: in the two-column layout the mark may kiss or slightly
   overrun its column (hero has overflow:hidden, so it crops, Heatherwick-style);
   nowrap keeps the .AI sticker glued to the U instead of orphan-wrapping.
   Below 980px the single column is always wider than the mark at the 3.2rem
   floor (verified at 360px: ~233px of glyphs vs ~312px of container), so the
   base flex-wrap never actually engages. */
@media (min-width: 980px) { .hero-mark { flex-wrap: nowrap; } }
.hero-promise {
  font-family: var(--font-display); font-weight: var(--fw-display-bold);
  font-size: var(--fs-title); line-height: var(--lh-title);
  margin-bottom: var(--space-sm);
}
/* darkened flame token over the hero sky gradient: 4.92:1 at the top stop
   #FFF6E3, 3.96:1 at the darkest stop #FFD9A8. Clears the 3:1 large-text
   floor everywhere (this line is 24px+/700); plain --color-flame dropped
   to 2.50:1 at the lower stop */
.hero-promise .num { color: var(--color-flame-text); }
.hero-lead { max-width: 54ch; margin-bottom: var(--space-lg); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; margin-bottom: var(--space-md); }
.hero-trust { font-size: var(--fs-caption); color: var(--color-ink-soft); font-weight: var(--fw-body-semibold); }
.hero-trust .num { font-size: inherit; }

/* hero staged entrance (JS adds body.js; reveal on body.hero-go) */
body.js .hero-mark .wordmark, body.js .hero-mark .ai-chip {
  opacity: 0; transform: translateY(0.5em) scale(0.86) rotate(-4deg);
}
body.js.hero-go .hero-mark .wordmark, body.js.hero-go .hero-mark .ai-chip {
  opacity: 1; transform: translateY(0) rotate(0deg);
  transition: opacity 300ms linear, transform 560ms var(--ease-spring-soft);
  transition-delay: calc(var(--i, 0) * 60ms);
}
body.js.hero-go .hero-mark .ai-chip { transform: translateY(0) rotate(-5deg); }
body.js .hero-stage2 { opacity: 0; transform: translateY(18px); }
body.js.hero-go .hero-stage2 {
  opacity: 1; transform: translateY(0);
  transition: opacity 420ms linear, transform 560ms var(--ease-spring-soft);
  transition-delay: 480ms;
}
body.js .hero-scene { opacity: 0; transform: translateY(26px) rotate(1.5deg); }
body.js.hero-go .hero-scene {
  opacity: 1; transform: translateY(0) rotate(0deg);
  transition: opacity 420ms linear, transform 640ms var(--ease-spring-soft);
  transition-delay: 620ms;
}

/* hero right zone: scene frame + overlapping sprite (Discord bleed) */
.hero-scene { position: relative; z-index: var(--z-content); }
.scene-frame {
  border: var(--outline-thick); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard-lg);
  overflow: hidden; background: var(--color-card-cream);
}
/* the moving scene layer: covers the fallback img (z-index 1 beats the static
   img and the art-missing pseudo plates), stays below the .scene-tag sticker
   (z-sticker-overlay in the same .hero-scene stacking context). Transparent
   when poster + sources all fail, so the layers beneath show through. */
.scene-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
.hero-sprite {
  position: absolute; z-index: var(--z-mascot);
  left: -6%; bottom: -8%;
  width: clamp(150px, 22vw, 250px);
  filter: drop-shadow(5px 6px 0 rgba(42,26,15,0.28));
}
.hero-sprite .bouncer { animation: idleBounce 2s var(--ease-spring-punchy) infinite; will-change: transform; }
@keyframes idleBounce {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  12% { transform: translateY(1px) scale(1.03, 0.96); }
  38% { transform: translateY(-6px) scale(0.99, 1.02); }
  62% { transform: translateY(0) scale(1, 1); }
}
.scene-tag {
  position: absolute; z-index: var(--z-sticker-overlay);
  right: 14px; top: 14px;
}

/* ============ SCROLL REVEALS (IntersectionObserver adds .in) ============ */
body.js .rv { opacity: 0; transform: translateY(22px); }
body.js .rv.in {
  opacity: 1; transform: translateY(0);
  transition: opacity var(--dur-reveal) linear, transform 560ms var(--ease-spring-soft);
  transition-delay: calc(var(--d, 0) * 100ms);
}
body.js .rv--firm.in { transition-timing-function: linear, var(--ease-out-soft); }

/* ============ LEVEL 02 : TWO DOORS ============ */
.doors-grid { display: grid; gap: var(--space-lg); margin-top: var(--space-xl); }
@media (min-width: 860px) { .doors-grid { grid-template-columns: 1fr 1fr; } }
.door {
  position: relative;
  background: var(--color-card-cream);
  border: var(--outline-thick); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard-lg);
  padding: var(--space-lg);
  display: flex; flex-direction: column; gap: var(--space-sm);
  transition: transform var(--dur-micro) var(--ease-spring-soft), box-shadow var(--dur-micro) var(--ease-spring-soft);
}
.door:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 0 var(--color-ink); }
@media (min-width: 900px) { .door { padding: var(--space-xl); } }
.door-tag { position: absolute; top: -16px; left: var(--space-lg); }
.door h3 { font-size: var(--fs-title); line-height: var(--lh-title); margin-top: var(--space-2xs); }
.door p { color: var(--color-ink-soft); }
.door ul { list-style: none; display: grid; gap: var(--space-2xs); margin-top: var(--space-3xs); }
.door li { display: flex; gap: 10px; align-items: baseline; font-weight: var(--fw-body-semibold); font-size: var(--fs-body-sm); }
.door li::before {
  content: ""; flex: none; width: 10px; height: 10px; translate: 0 1px;
  background: var(--color-yolk); border: 2px solid var(--color-ink); border-radius: 50%;
}
.door-foot { margin-top: auto; padding-top: var(--space-sm); display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); flex-wrap: wrap; }
.price-chip {
  font-family: var(--font-mono-num); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.05rem;
  background: var(--color-yolk); border: var(--outline-thin); border-radius: var(--radius-pill);
  padding: 8px 14px; box-shadow: var(--shadow-hard-sm);
}
.door--teammate .price-chip { background: var(--color-tangerine); }
.door-corner { position: absolute; right: 18px; top: 18px; width: 54px; opacity: 0.95; }

/* ============ LEVEL 03 : THE EVOLUTION (signature) ============ */
.evo { background: linear-gradient(180deg, var(--color-canvas) 0%, #FFEECB 55%, var(--color-canvas-sky-bottom) 100%); }
body.motion-ok .evo-track { height: 340vh; }
body.motion-ok .evo-pin {
  position: sticky; top: 0;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: var(--space-2xl) var(--space-xl);
  overflow: hidden;
}
.evo-head { text-align: center; margin-bottom: var(--space-lg); }
.evo-head .kicker { justify-content: center; }
.evo-head p { max-width: 46ch; margin-inline: auto; }

/* progress rail: the XP bar zoomed in */
.evo-rail { max-width: 560px; margin: 0 auto var(--space-lg); width: 100%; padding-inline: var(--space-md); }
.evo-rail-track { position: relative; height: 12px; background: var(--color-card-cream); border: var(--outline-thin); border-radius: var(--radius-pill); }
.evo-rail-fill {
  position: absolute; inset: 2px; border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--color-yolk), var(--color-tangerine));
  transform-origin: left center; transform: scaleX(0); will-change: transform;
}
.evo-mark {
  position: absolute; top: 50%; translate: -50% -50%;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--color-card-cream); border: var(--outline-default);
  transition: background var(--dur-micro) linear, scale 300ms var(--ease-spring-punchy);
  z-index: 1;
}
.evo-mark--1 { left: 4%; } .evo-mark--2 { left: 50%; } .evo-mark--3 { left: 96%; }
.evo-mark.done { background: var(--color-yolk); scale: 1.18; }
.evo-rail-labels { display: flex; justify-content: space-between; margin-top: 12px; }
.evo-rail-labels span {
  font-family: var(--font-hud); font-size: var(--fs-hud); letter-spacing: var(--ls-hud);
  text-transform: uppercase; color: var(--color-ink-soft); transition: color var(--dur-micro) linear;
}
.evo-rail-labels span.on { color: var(--color-ink); }

/* stages: motion mode stacks them in one stage area; static mode = 3-panel row */
.evo-stagearea { position: relative; }
body.motion-ok .evo-stages { position: relative; display: grid; }
body.motion-ok .evo-stage { grid-area: 1 / 1; display: grid; justify-items: center; gap: var(--space-md); }
body.motion-ok .evo-stage .evo-sprite,
body.motion-ok .evo-stage .evo-caption {
  opacity: 0; transform: translateY(16px) scale(0.9);
  transition: opacity 380ms linear, transform var(--dur-evolve) var(--ease-spring-punchy);
  will-change: transform, opacity;
}
body.motion-ok .evo-stage.on .evo-sprite,
body.motion-ok .evo-stage.on .evo-caption { opacity: 1; transform: translateY(0) scale(1); }
body.motion-ok .evo-stage { pointer-events: none; }
body.motion-ok .evo-stage.on { pointer-events: auto; }
.evo-sprite { width: clamp(180px, 30vw, 300px); position: relative; filter: drop-shadow(6px 7px 0 rgba(42,26,15,0.25)); }
body.motion-ok .evo-sprite { width: min(clamp(180px, 30vw, 300px), 30vh); }
@media (max-height: 800px) {
  body.motion-ok .evo-pin { padding-block: var(--space-lg) var(--space-md); }
  body.motion-ok .evo-head { margin-bottom: var(--space-sm); }
  body.motion-ok .evo-head .t-lead { font-size: 0.9375rem; }
  body.motion-ok .evo-rail { margin-bottom: var(--space-sm); }
  body.motion-ok .evo-caption p { font-size: 0.875rem; }
}
.evo-caption { max-width: 520px; text-align: center; display: grid; gap: var(--space-2xs); justify-items: center; }
.evo-caption h3 { font-size: var(--fs-title); }
.evo-caption p { color: var(--color-ink-soft); font-size: var(--fs-body-sm); }
.evo-verify {
  display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-2xs);
  margin-top: var(--space-2xs);
}
.evo-stat {
  font-family: var(--font-mono-num); font-variant-numeric: tabular-nums; font-weight: 700;
  font-size: var(--fs-num-stat); line-height: 1; color: var(--color-ink);
}
.evo-stat .unit { font-size: 0.4em; font-weight: 500; }

/* burst at stage boundaries */
.evo-burst { position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; pointer-events: none; z-index: var(--z-sticker-overlay); }
.evo-burst .ring {
  position: absolute; inset: 0; margin: auto; width: 60px; height: 60px;
  border: 5px solid var(--color-yolk); border-radius: 50%;
  opacity: 0; transform: scale(0.2);
}
.evo-burst.go .ring { animation: burstRing 700ms var(--ease-out-soft) forwards; }
.evo-burst .ring--2 { border-color: var(--color-tangerine); }
.evo-burst.go .ring--2 { animation-delay: 90ms; }
@keyframes burstRing {
  0% { opacity: 0; transform: scale(0.2); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: scale(4.4); }
}
.evo-burst .spk {
  position: absolute; inset: 0; margin: auto; width: 12px; height: 12px; opacity: 0;
  --tx: 0px; --ty: -60px;
}
.evo-burst.go .spk { animation: spkFly 620ms var(--ease-out-soft) forwards; }
/* roster v2: the final boundary now reveals a mech, so it earns a bigger
   payoff: a third flame ring + extra sparks that exist only on the .mega
   burst. Fires from setEvoStage, which is motion-gated: reduced motion
   never sees any of it. */
.evo-burst .ring--3 { display: none; width: 88px; height: 88px; border-color: var(--color-flame); }
.evo-burst.mega .ring--3 { display: block; }
.evo-burst.go.mega .ring--3 { animation: burstRing 780ms var(--ease-out-soft) 150ms forwards; }
.evo-burst .spk--mega { display: none; }
.evo-burst.mega .spk--mega { display: block; }
.evo-burst.go.mega .spk--mega { animation: spkFly 720ms var(--ease-out-soft) 80ms forwards; }
@keyframes spkFly {
  0% { opacity: 0; transform: translate(0, 0) scale(0.3) rotate(0deg); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(1.1) rotate(90deg); }
}

/* collectible figurine cards (3D renders) */
.figurine {
  position: absolute; z-index: var(--z-sticker-overlay);
  width: clamp(88px, 11vw, 132px);
  background: var(--color-card-cream);
  border: var(--outline-default); border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard-md);
  padding: 8px; rotate: 6deg;
  display: none;
}
@media (min-width: 900px) { .figurine { display: block; } }
.figurine .art { border-radius: var(--radius-sm); display: block; }
.figurine figcaption {
  font-family: var(--font-hud); font-size: 0.5rem; letter-spacing: var(--ls-hud);
  text-transform: uppercase; text-align: center; padding-top: 6px; line-height: 1.5;
}
.figurine--s1 { left: 4%; top: 8%; rotate: -7deg; }
.figurine--s3 { right: 4%; top: 6%; }
body.motion-ok .figurine { opacity: 0; transform: translateY(14px) scale(0.7); }
body.motion-ok .figurine.pop {
  opacity: 1; transform: translateY(0) scale(1);
  transition: opacity 300ms linear, transform 620ms var(--ease-spring-punchy);
}
body.motion-ok .figurine.pop { animation: figFloat 4s ease-in-out 700ms infinite; }
@keyframes figFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -7px; } }

/* static fallback: 3 panels side by side (no scrub, no burst) */
body:not(.motion-ok) .evo-stages { display: grid; gap: var(--space-lg); }
@media (min-width: 900px) { body:not(.motion-ok) .evo-stages { grid-template-columns: repeat(3, 1fr); align-items: start; } }
body:not(.motion-ok) .evo-stage {
  display: grid; justify-items: center; gap: var(--space-sm);
  background: var(--color-card-cream); border: var(--outline-default); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard-md); padding: var(--space-lg) var(--space-md);
}
body:not(.motion-ok) .evo-sprite { width: min(58vw, 210px); }
body:not(.motion-ok) .evo-burst, body:not(.motion-ok) .evo-rail { display: none; }
.fig-row { display: contents; }
body:not(.motion-ok) .fig-row { display: block; text-align: center; margin-bottom: var(--space-lg); }
body:not(.motion-ok) .figurine { display: inline-block; position: static; rotate: 0deg; width: 120px; margin: 0 10px; }

/* ============ LEVEL 04 : TEAMMATE SELECTOR (v1 composition, rotating) ============
   The v1 two-column composition returns: ONE huge holo stat-card + the
   persona's story beside it, with four personas rotating through a tab
   switcher (plus prev/next arrows on the card). Per-persona accent rides
   on --pa set per panel/tab: chips, move bullets, trim, arrows and the CTA.
   Tabs + arrows ship with the hidden attribute (JS-only controls): with no
   JS all four panels render stacked in source order, fully readable, CTAs
   as plain #contact links. */
.tsel-tabs { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.tsel-tab {
  --pa: var(--color-yolk);
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-label); font-weight: var(--fw-body-bold);
  letter-spacing: var(--ls-label); text-transform: uppercase; line-height: var(--lh-label);
  background: var(--color-card-cream);
  border: var(--outline-thin); border-radius: var(--radius-pill);
  padding: 7px 18px 7px 8px;
  box-shadow: var(--shadow-hard-sm);
  transition: transform var(--dur-micro) var(--ease-spring-punchy), box-shadow var(--dur-micro) var(--ease-spring-punchy), background var(--dur-micro) linear;
}
.tsel-tab:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 0 var(--color-ink); }
/* selected = pressed-in + accent fill + accent ring (ring separated by a
   canvas gap); state also lives in aria-selected + the panel swap itself */
.tsel-tab[aria-selected="true"],
.tsel-tab[aria-selected="true"]:hover {
  background: var(--pa);
  transform: translate(1px, 1px);
  box-shadow: 0 0 0 3px var(--color-canvas), 0 0 0 6px var(--pa);
}
.tsel-thumb {
  width: 38px; height: 38px; flex: none; overflow: hidden; border-radius: 50%;
  border: var(--outline-thin); background: var(--color-canvas);
}
.tsel-thumb img { width: 100%; height: 100%; object-fit: cover; }

.tsel-stage { margin-top: var(--space-lg); }
.tsel-panel { display: grid; gap: var(--space-lg); align-items: center; }
.tsel-panel[hidden] { display: none; }
body:not(.js) .tsel-panel + .tsel-panel { margin-top: var(--space-2xl); }
@media (min-width: 980px) {
  .tsel-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-2xl); }
  .tsel-copy { grid-column: 1; grid-row: 1; }
  .tsel-cardzone { grid-column: 2; grid-row: 1; }
}
body.motion-ok .tsel-panel.tsel-in { animation: tselIn 380ms var(--ease-spring-soft); }
@keyframes tselIn {
  from { opacity: 0; transform: translateX(var(--tsel-dx, 28px)) scale(0.985); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
.tsel-copy .kicker { margin-bottom: var(--space-sm); }
.tsel-copy .p-role { font-size: var(--fs-body); margin: var(--space-2xs) 0 var(--space-sm); max-width: 46ch; }
.tsel-copy .p-moves { margin-bottom: var(--space-md); }
/* persona CTA: ink text on every persona accent clears the 4.5:1 small-text
   floor: yolk 10.5:1, flame 5.0:1, rose 5.8:1, teal 6.7:1 */
.tsel-cta.btn--pa { background: var(--pa); }

.tsel-cardzone.tilt-zone { position: relative; height: auto; max-width: 560px; width: 100%; margin-inline: auto; }
.tsel-arrows { position: absolute; top: -20px; right: 14px; z-index: 5; display: flex; gap: 10px; }
.tsel-arrow {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--color-card-cream); border: var(--outline-thin);
  box-shadow: var(--shadow-hard-sm);
  display: grid; place-items: center;
  transition: transform var(--dur-micro) var(--ease-spring-punchy), box-shadow var(--dur-micro) var(--ease-spring-punchy), background var(--dur-micro) linear;
}
.tsel-arrow:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 0 var(--color-ink); background: var(--pa); }
.tsel-arrow:active { transform: translate(2px, 2px); box-shadow: var(--shadow-press); }
.tsel-arrow svg { width: 20px; height: 20px; }

.tilt-zone { perspective: 1100px; touch-action: pan-y; height: 100%; }
.holo-card {
  position: relative;
  transform-style: preserve-3d;
  overflow: hidden;
  /* will-change is toggled from JS around live tilt interaction only
     (the card stays position:relative, so the sheen's containing block holds) */
}
@media (hover: none) {
  body.motion-ok .holo-card { animation: cardFloat 5s ease-in-out infinite; animation-delay: calc(var(--d, 0) * 400ms); }
}
/* focus-visible show lives in JS (fixed tilt + one sheen sweep): a transform
   animation here would override the inline tilt, so no cardFloat on focus */
@keyframes cardFloat { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-8px) rotate(0.8deg); } }
.holo-card .sheen {
  position: absolute; inset: -40%; pointer-events: none; z-index: 3;
  background: linear-gradient(115deg, rgba(255,255,255,0) 42%, rgba(255,255,255,0.42) 50%, rgba(255,255,255,0) 58%);
  transform: translateX(-70%);
  will-change: transform;
}

.p-card {
  --pa: var(--color-yolk); /* per-persona accent: species chip + move bullets ONLY */
  height: 100%;
  background: var(--color-card-cream);
  border: var(--outline-default); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard-md);
  padding: var(--space-md);
  display: flex; flex-direction: column; gap: var(--space-sm);
}
.p-card--big { background: #FFF9E8; border: var(--outline-thick); border-radius: var(--radius-lg); box-shadow: var(--shadow-hard-lg); gap: var(--space-sm); }
@media (min-width: 640px) { .p-card--big { padding: var(--space-lg); } }
/* card trim: the one structural accent stroke on the card face */
.p-trim { height: 10px; background: var(--pa); border: 2px solid var(--color-ink); border-radius: var(--radius-pill); }
.p-chips { display: inline-flex; align-items: center; gap: var(--space-2xs); flex-wrap: wrap; }
/* "class" tag, game-card style: accent HUD text on ink. Every persona accent
   on ink clears 4.5:1 (yolk 10.5, flame 5.0, rose 5.8, teal 6.7) */
.p-class {
  display: inline-flex; align-items: center;
  font-family: var(--font-hud); font-size: 0.5625rem; font-weight: var(--fw-hud);
  letter-spacing: var(--ls-hud); text-transform: uppercase; line-height: var(--lh-hud);
  color: var(--pa); background: var(--color-ink);
  border: var(--outline-thin); border-radius: var(--radius-pill);
  padding: 6px 10px 5px;
}
.p-art {
  border: var(--outline-thin); border-radius: var(--radius-md);
  background: linear-gradient(180deg, #FFF6E3, #FFE9C4);
}
.p-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2xs); flex-wrap: wrap; }
.p-name { font-family: var(--font-display); font-weight: var(--fw-display-black); font-size: clamp(1.6rem, 1.35rem + 1vw, 2.1rem); line-height: 1; }
.p-species {
  display: inline-flex; align-items: center;
  font-family: var(--font-hud); font-size: 0.5625rem; font-weight: var(--fw-hud);
  letter-spacing: var(--ls-hud); text-transform: uppercase; line-height: var(--lh-hud);
  color: var(--color-ink); background: var(--pa);
  border: var(--outline-thin); border-radius: var(--radius-pill);
  padding: 6px 10px 5px;
}
.p-role { color: var(--color-ink-soft); font-size: var(--fs-body-sm); }
.p-moves { list-style: none; display: grid; gap: var(--space-2xs); }
.p-moves li { display: flex; gap: 9px; align-items: baseline; font-weight: var(--fw-body-semibold); font-size: var(--fs-body-sm); }
.p-moves li::before {
  content: ""; flex: none; width: 10px; height: 10px; translate: 0 1px;
  background: var(--pa); border: 2px solid var(--color-ink); border-radius: 50%;
}

/* ultimate-form teaser strip (mech renders; Cikku's card links to the Evolution instead) */
.p-ult {
  display: flex; align-items: center; gap: var(--space-xs);
  margin-top: auto; padding-top: var(--space-sm);
  border-top: 2px dashed #EADFC8;
}
.p-ult-art {
  width: 52px; flex: none;
  border: var(--outline-thin); border-radius: var(--radius-sm);
  background: var(--color-canvas); overflow: hidden;
}
.p-ult-ico {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: var(--color-yolk); border: var(--outline-thin);
  display: grid; place-items: center;
}
.p-ult-ico svg { width: 20px; height: 20px; }
.p-ult-txt b {
  display: block; font-family: var(--font-hud); font-weight: var(--fw-hud);
  font-size: 0.5rem; letter-spacing: var(--ls-hud); text-transform: uppercase;
  color: var(--color-ink-soft); margin-bottom: 3px; line-height: var(--lh-hud);
}
.p-ult-txt span { display: block; font-size: var(--fs-caption); font-weight: var(--fw-body-bold); line-height: 1.35; }
.p-ult--link { text-decoration: none; color: inherit; }
.p-ult--link:hover .p-ult-txt span { text-decoration: underline; }

/* day-in-the-life: two quest logs (Cikku's example day, kept from v1) */
.day-head { margin-top: var(--space-2xl); }
.day-head p { color: var(--color-ink-soft); margin-top: var(--space-2xs); max-width: 60ch; }
.day-grid { display: grid; gap: var(--space-lg); margin-top: var(--space-lg); }
@media (min-width: 860px) { .day-grid { grid-template-columns: 1fr 1fr; } }
.day-card { padding: var(--space-md) var(--space-lg) var(--space-lg); }
.day-card h3 { font-size: 1.2rem; margin-bottom: var(--space-sm); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.day-card--after { background: #FFF9E8; border-color: var(--color-ink); }
.day-rows { list-style: none; display: grid; gap: 10px; }
.day-rows li { display: grid; grid-template-columns: 58px 1fr; gap: var(--space-sm); align-items: baseline; font-size: var(--fs-body-sm); }
.day-rows .ts {
  font-family: var(--font-mono-num); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.875rem;
  color: var(--color-ink); background: var(--color-yolk);
  border: 2px solid var(--color-ink); border-radius: var(--radius-sm);
  padding: 2px 4px; text-align: center;
}
.day-card--before .ts { background: var(--color-card-cream); }
/* "late" reads by the darker flame text + ink border, not a filled chip:
   flame-text on card cream is 5.15:1 (14px/700 needs 4.5:1; the old
   cream-on-flame fill sat at 3.11:1) */
.day-rows .late .ts { background: var(--color-card-cream); color: var(--color-flame-text); }
.day-rows .win { font-weight: var(--fw-body-bold); }

/* ============ LEVEL 05 : BOSS FIGHT ============ */
.boss { overflow: hidden; }
.boss .kicker .hud-chip { background: transparent; color: var(--color-on-ink); border-color: var(--color-canvas); box-shadow: 3px 3px 0 0 rgba(255,246,227,0.3); }
.boss h2 { color: var(--color-on-ink); }
.boss .t-lead { color: #E8D7BE; }
.boss-scene { display: grid; gap: var(--space-lg); margin-top: var(--space-xl); align-items: end; }
@media (min-width: 900px) { .boss-scene { grid-template-columns: 0.9fr 1fr 1fr 1fr; gap: var(--space-md); } }
.boss-hero { text-align: center; }
.boss-hero .art { width: min(52vw, 220px); margin-inline: auto; }
.boss-hero .art > img { transform: scaleX(-1); } /* charge toward the monsters */
.boss-hero .hud-chip { margin-top: var(--space-sm); }
.enemy {
  position: relative;
  background: rgba(255, 252, 243, 0.07);
  border: 3px solid rgba(255, 246, 227, 0.85); border-radius: var(--radius-md);
  box-shadow: 5px 5px 0 0 rgba(0, 0, 0, 0.45);
  padding: var(--space-md);
  text-align: center;
  transition: transform 600ms var(--ease-spring-soft), opacity 600ms linear;
}
body.js .enemy { opacity: 0; transform: translateY(24px) scale(0.9); }
body.js .enemy.in { opacity: 1; transform: translateY(0) scale(1); transition-delay: calc(var(--d, 0) * 120ms); }
.enemy .art { width: min(44vw, 170px); margin-inline: auto; }
body.motion-ok .enemy.in:not(.defeated) .art { animation: menace 2.6s ease-in-out infinite; }
@keyframes menace { 0%,100% { transform: rotate(0deg) translateY(0); } 25% { transform: rotate(-2deg) translateY(-3px); } 75% { transform: rotate(2deg) translateY(1px); } }
.enemy h3 { color: var(--color-on-ink); font-size: 1.1rem; margin-top: var(--space-sm); }
.enemy p { color: #D9C3A6; font-size: var(--fs-caption); line-height: 1.5; }
.enemy .hpbar {
  height: 12px; margin-top: var(--space-sm);
  background: rgba(255, 246, 227, 0.16);
  border: 2px solid var(--color-canvas); border-radius: var(--radius-pill);
  overflow: hidden; position: relative;
}
.enemy .hpfill {
  position: absolute; inset: 1px; border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--color-flame), var(--color-tangerine));
  transform-origin: left center; transform: scaleX(1);
  transition: transform 800ms var(--ease-out-soft);
  will-change: transform;
}
.enemy.defeated .hpfill { transform: scaleX(0); }
.enemy.defeated .art { transform: rotate(8deg) scale(0.82) translateY(8px); opacity: 0.4; transition: transform 600ms var(--ease-spring-soft), opacity 600ms linear; }
.enemy .down-tag {
  position: absolute; top: 10px; right: 10px; rotate: 8deg;
  font-family: var(--font-hud); font-size: var(--fs-hud); letter-spacing: var(--ls-hud); text-transform: uppercase;
  background: var(--color-yolk); color: var(--color-ink);
  border: var(--outline-thin); border-radius: var(--radius-sm);
  padding: 6px 8px 5px;
  opacity: 0; transform: scale(0.4);
}
.enemy.defeated .down-tag { opacity: 1; transform: scale(1); transition: opacity 200ms linear, transform 420ms var(--ease-spring-punchy); }

/* the hours ledger */
.ledger-wrap { margin-top: var(--space-2xl); }
.ledger-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ledger {
  width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0;
  background: var(--color-card-cream); color: var(--color-ink);
  border: var(--outline-thick); border-radius: var(--radius-md);
  box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 0.45);
  overflow: hidden;
  font-size: var(--fs-body-sm);
}
.ledger caption {
  caption-side: top; text-align: left; color: var(--color-on-ink);
  font-family: var(--font-display); font-weight: var(--fw-display-bold); font-size: 1.3rem;
  padding-bottom: var(--space-sm);
}
.ledger th, .ledger td { padding: 13px 16px; text-align: left; border-bottom: 2px solid #EADFC8; }
.ledger thead th {
  font-family: var(--font-hud); font-size: 0.5625rem; letter-spacing: var(--ls-hud); text-transform: uppercase;
  background: var(--color-yolk); border-bottom: var(--outline-default);
  line-height: var(--lh-hud);
}
.ledger td.n, .ledger th.n { text-align: right; font-family: var(--font-mono-num); font-variant-numeric: tabular-nums; font-weight: 700; }
.ledger td.back { color: var(--color-flame-text); } /* 15px/700 is small text: 4.5:1 floor, see token */
.ledger tfoot td { border-bottom: 0; background: #FFF3D6; border-top: var(--outline-default); font-weight: var(--fw-body-bold); }
.ledger tfoot .total-back { font-size: 1.25rem; }
.ledger-note { color: #D9C3A6; font-size: var(--fs-caption); margin-top: var(--space-sm); max-width: 62ch; }
.ledger-note .num { font-size: inherit; }

/* ============ LEVEL 06 : GUARANTEE + EU ============ */
.guarantee { text-align: center; }
.guarantee .kicker { justify-content: center; }
.guarantee .kicker .hud-chip { background: var(--color-canvas); }
.g-card {
  background: var(--color-card-cream); color: var(--color-ink);
  border: var(--outline-thick); border-radius: var(--radius-lg);
  box-shadow: 8px 8px 0 0 var(--color-ink);
  padding: var(--space-xl) var(--space-lg);
  max-width: 780px; margin-inline: auto;
}
.g-card h2 { font-size: var(--fs-display); line-height: var(--lh-display); }
.g-card h2 .num { color: var(--color-flame); }
.g-terms { margin-top: var(--space-md); color: var(--color-ink-soft); font-size: var(--fs-body-sm); max-width: 56ch; margin-inline: auto; }
.g-site-line {
  margin-top: var(--space-md); font-weight: var(--fw-body-bold); color: var(--color-on-flame);
  /* floor 19.5px: keeps this cream-on-flame line in WCAG large-text territory at every viewport */
  font-size: clamp(1.22rem, 1.1rem + 0.4vw, 1.375rem);
  max-width: 46ch; margin-inline: auto;
}

.eu-grid { display: grid; gap: var(--space-lg); margin-top: var(--space-xl); }
@media (min-width: 860px) { .eu-grid { grid-template-columns: 1fr 1fr; } }
.eu-col {
  border: 3px solid rgba(255, 246, 227, 0.8); border-radius: var(--radius-md);
  padding: var(--space-lg);
}
.eu-col h3 { color: var(--color-on-ink); margin-bottom: var(--space-2xs); font-size: 1.25rem; }
.eu-col p { color: #E8D7BE; font-size: var(--fs-body-sm); }
.eu-chip {
  display: inline-flex; margin-bottom: var(--space-sm);
  font-family: var(--font-hud); font-size: var(--fs-hud); letter-spacing: var(--ls-hud); text-transform: uppercase;
  color: var(--color-ink); background: var(--color-teal-chip-bg);
  border: var(--outline-teal); border-radius: var(--radius-pill);
  padding: 8px 13px 7px; line-height: var(--lh-hud);
}
.eu-data-line { margin-top: var(--space-lg); text-align: center; color: #E8D7BE; font-size: var(--fs-body-sm); }
.eu-data-line strong { color: var(--color-on-ink); }

/* ============ LEVEL 07 : PRICING ============ */
.price-grid { display: grid; gap: var(--space-lg); margin-top: var(--space-xl); align-items: stretch; }
@media (min-width: 860px) { .price-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1180px) { .price-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); } }
.price-num .per { display: block; font-family: var(--font-body); font-size: var(--fs-label); font-weight: var(--fw-body-bold); letter-spacing: var(--ls-label); color: var(--color-ink-soft); margin-top: 2px; }
.tiers { list-style: none; display: grid; gap: 0; margin: 0; }
.price-card .tiers li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 2px dashed rgba(42, 26, 15, .28); font-size: var(--fs-body-sm); font-weight: var(--fw-body-semibold); }
.price-card .tiers li::before { content: none; }
.tiers .tn { font-family: var(--font-hud); font-size: var(--fs-hud); text-transform: uppercase; letter-spacing: var(--ls-hud); line-height: var(--lh-hud); }
.tiers .td { color: var(--color-ink-soft); font-weight: var(--fw-body-regular); }
.tiers .tp { font-family: var(--font-mono-num); font-weight: var(--fw-mono); white-space: nowrap; }
.price-note { font-size: var(--fs-caption); color: var(--color-ink-soft); font-weight: var(--fw-body-semibold); }
.price-card {
  position: relative; display: flex; flex-direction: column; gap: var(--space-sm);
  background: var(--color-card-cream);
  border: var(--outline-thick); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard-lg);
  padding: var(--space-xl) var(--space-lg);
}
.price-card--feature { background: #FFF3D6; }
.price-tag { position: absolute; top: -16px; left: var(--space-lg); }
.price-num {
  font-family: var(--font-mono-num); font-variant-numeric: tabular-nums; font-weight: 700;
  font-size: var(--fs-num-stat); line-height: 1; letter-spacing: var(--ls-num);
  display: flex; align-items: baseline; gap: 10px; margin-top: var(--space-2xs);
}
.price-num .from { font-family: var(--font-body); font-size: var(--fs-label); font-weight: var(--fw-body-bold); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--color-ink-soft); }
.price-card h3 { font-size: var(--fs-title); }
.price-card > p { color: var(--color-ink-soft); }
.price-card ul { list-style: none; display: grid; gap: var(--space-2xs); }
.price-card li { display: flex; gap: 10px; align-items: baseline; font-weight: var(--fw-body-semibold); font-size: var(--fs-body-sm); }
.price-card li::before { content: ""; flex: none; width: 10px; height: 10px; translate: 0 1px; background: var(--color-tangerine); border: 2px solid var(--color-ink); border-radius: 50%; }
.price-card .btn { margin-top: auto; align-self: flex-start; }
.price-line { text-align: center; margin-top: var(--space-lg); color: var(--color-ink-soft); font-weight: var(--fw-body-semibold); }
.price-cheer { position: absolute; right: -10px; bottom: -12px; width: 110px; rotate: 6deg; display: none; }
@media (min-width: 900px) { .price-cheer { display: block; } }

/* ============ FAQ ============ */
.faq-list { display: grid; gap: var(--space-sm); margin-top: var(--space-xl); max-width: 820px; margin-inline: auto; }
.faq-item {
  background: var(--color-card-cream);
  border: var(--outline-thin); border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard-sm);
}
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
  font-family: var(--font-display); font-weight: var(--fw-display-bold); font-size: 1.1rem;
  padding: var(--space-sm) var(--space-md);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .tog {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--color-yolk); border: var(--outline-thin);
  display: grid; place-items: center;
  font-family: var(--font-mono-num); font-weight: 700; font-size: 1rem; line-height: 1;
  transition: rotate 200ms var(--ease-spring-soft), background var(--dur-micro) linear;
}
.faq-item[open] summary .tog { rotate: 45deg; background: var(--color-tangerine); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 220ms var(--ease-out-soft); }
.faq-item[open] .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 var(--space-md) var(--space-md); color: var(--color-ink-soft); font-size: var(--fs-body-sm); max-width: 68ch; }

/* ============ CONTACT ============ */
.contact { background: #FFF3D6; border-top: var(--outline-heavy); }
.contact-grid { display: grid; gap: var(--space-lg); margin-top: var(--space-xl); }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.contact-channels { display: grid; gap: var(--space-sm); align-content: start; }
.channel {
  display: flex; align-items: center; gap: var(--space-sm);
  background: var(--color-card-cream);
  border: var(--outline-default); border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard-md);
  padding: var(--space-sm) var(--space-md);
  text-decoration: none;
  transition: transform var(--dur-micro) var(--ease-spring-punchy), box-shadow var(--dur-micro) var(--ease-spring-punchy);
}
.channel:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 0 var(--color-ink); }
.channel:active { transform: translate(3px, 3px); box-shadow: var(--shadow-press); }
.channel-ico {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  border: var(--outline-thin); display: grid; place-items: center;
  background: var(--color-yolk);
}
.channel--wa .channel-ico { background: var(--color-teal-chip-bg); }
.channel b { display: block; font-family: var(--font-display); font-size: 1.1rem; line-height: 1.2; }
.channel span { font-size: var(--fs-caption); color: var(--color-ink-soft); font-weight: var(--fw-body-semibold); }
.contact-sprite { width: 130px; margin-top: var(--space-sm); align-self: end; justify-self: center; }
.contact-form { padding: var(--space-lg); display: grid; gap: var(--space-sm); }
.contact-form h3 { font-size: var(--fs-title); }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-label); font-weight: var(--fw-body-bold); text-transform: uppercase; letter-spacing: var(--ls-label); }
.field input, .field textarea, .field select {
  font: var(--fw-body-semibold) var(--fs-body)/1.5 var(--font-body);
  color: var(--color-ink); background: var(--color-canvas);
  border: var(--outline-thin); border-radius: var(--radius-sm);
  padding: 12px 14px; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--color-ink); outline-offset: 2px; } /* ink ring: teal is 2.4:1 on the cream card, below the 3:1 focus floor */
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; gap: var(--space-sm); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-msg { font-size: var(--fs-body-sm); font-weight: var(--fw-body-bold); min-height: 1.4em; }
.form-msg.ok { color: #067A6F; }
.form-msg.err { color: var(--color-flame-text); } /* small bold text: 4.5:1 floor, see token */
.form-fine { font-size: var(--fs-caption); color: var(--color-ink-soft); }

/* ============ FOOTER ============ */
.footer { background: var(--color-ink); color: var(--color-on-ink); border-top: var(--outline-heavy); padding-top: var(--space-2xl); }
.footer-grid { display: grid; gap: var(--space-lg); padding-bottom: var(--space-2xl); }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-mark { font-size: 2.4rem; }
.footer-tag { color: #E8D7BE; margin-top: 6px; max-width: 30ch; }
.footer h4 {
  font-family: var(--font-hud); font-size: var(--fs-hud); letter-spacing: var(--ls-hud); text-transform: uppercase;
  color: var(--color-yolk); margin-bottom: var(--space-sm); font-weight: var(--fw-hud); line-height: var(--lh-hud);
}
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { color: var(--color-on-ink); text-decoration: none; font-weight: var(--fw-body-semibold); font-size: var(--fs-body-sm); }
.footer a:hover { color: var(--color-yolk); }
.footer-ground {
  border-top: 3px solid var(--color-canvas);
  padding-block: var(--space-md);
  display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); align-items: center; justify-content: space-between;
  font-size: var(--fs-caption); color: #D9C3A6;
  position: relative;
}
.footer-ground .num { font-size: inherit; }

/* ============ COIN + SPARK MICRO-REWARDS ============ */
.coin {
  position: absolute; z-index: var(--z-sticker-overlay); pointer-events: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--color-yolk); border: 2px solid var(--color-ink);
  box-shadow: inset -3px -3px 0 0 var(--color-tangerine);
  display: grid; place-items: center;
  font-family: var(--font-mono-num); font-size: 0.5rem; font-weight: 700; color: var(--color-ink);
  animation: coinPop 640ms var(--ease-spring-punchy) forwards;
}
@keyframes coinPop {
  0% { opacity: 0; transform: translate(0, 0) scale(0.3) rotate(-14deg); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--cx, 6px), -46px) scale(1) rotate(12deg); }
}
.sparkle { position: absolute; z-index: var(--z-sticker-overlay); pointer-events: none; width: 12px; height: 12px; animation: spkFly 560ms var(--ease-out-soft) forwards; }

/* spark/star glyph used by preloader, bursts, coins */
.star-glyph { width: 100%; height: 100%; }

/* ============ RESPONSIVE POLISH ============ */
@media (max-width: 480px) {
  .hero-sprite { left: -2%; bottom: -6%; width: 128px; }
  .btn { padding: 14px 20px; }
  .btn--big { padding: 16px 24px; }
  .door-corner { width: 42px; }
  .xp-readout { font-size: var(--fs-hud); }
}

/* ============ REDUCED MOTION : dignified static fallback ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  body.js .rv, body.js .enemy, body.js .hero-mark .wordmark, body.js .hero-mark .ai-chip,
  body.js .hero-stage2, body.js .hero-scene { opacity: 1; transform: none; }
  body.js.hero-go .hero-mark .wordmark { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60'%3E%3Cpath d='M4 50C18 20 44 6 58 16C70 25 60 42 49 35C38 28 52 8 72 8C80 8 86 11 89 15' fill='none' stroke='%232A1A0F' stroke-width='4' stroke-linecap='round' stroke-dasharray='.5 8'/%3E%3Ccircle cx='90' cy='17' r='7' fill='%23FFFCF3' stroke='%232A1A0F' stroke-width='3.5'/%3E%3C/svg%3E"); }
  .sun-rays { animation: none; }
  .hero-sprite .bouncer { animation: none; }
  .egg { animation: none; }
}
/* ============ LEVEL 02 : POPLU (primary product, added 2026-10-08) ============ */
.poplu { background: linear-gradient(180deg, var(--color-canvas) 0%, #FFEFD2 100%); overflow: hidden; }
.poplu-head { display: grid; gap: var(--space-lg); align-items: center; }
@media (min-width: 900px) { .poplu-head { grid-template-columns: minmax(0, 1fr) 260px; } }
.poplu-mascot { width: min(220px, 52vw); justify-self: center; }
.poplu-wall { margin-top: var(--space-xl); margin-inline: calc(var(--container-pad-x) * -1); }
.poplu-row { display: flex; gap: var(--space-md); width: max-content; padding: 8px var(--container-pad-x) 22px; animation: poplu-drift 70s linear infinite; }
.poplu-wall:hover .poplu-row { animation-play-state: paused; }
.poplu-poster { flex: none; width: 184px; aspect-ratio: 4 / 5; border: var(--outline-default); border-radius: var(--radius-md); box-shadow: var(--shadow-hard-md); overflow: hidden; background: var(--color-card-cream); }
.poplu-poster:nth-child(odd) { rotate: -1.5deg; }
.poplu-poster:nth-child(even) { rotate: 1.25deg; }
.poplu-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) { .poplu-poster { width: 224px; } }
@keyframes poplu-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.poplu-wall-note { font-size: var(--fs-caption); color: var(--color-ink-soft); font-weight: var(--fw-body-semibold); text-align: center; padding-inline: var(--container-pad-x); }
.poplu-grid { display: grid; gap: var(--space-lg); margin-top: var(--space-xl); }
@media (min-width: 760px) { .poplu-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .poplu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.poplu-card { position: relative; padding: var(--space-lg); padding-top: calc(var(--space-lg) + 6px); display: flex; flex-direction: column; gap: var(--space-2xs); }
.poplu-card .hud-chip { position: absolute; top: -14px; left: var(--space-md); }
.poplu-card h3 { font-size: 1.3rem; line-height: 1.2; }
.poplu-card p { color: var(--color-ink-soft); font-size: var(--fs-body-sm); }
.poplu-steps { list-style: none; display: grid; gap: var(--space-sm); margin-top: var(--space-xl); counter-reset: step; }
@media (min-width: 900px) { .poplu-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.poplu-steps li { counter-increment: step; display: flex; gap: 12px; align-items: baseline; font-weight: var(--fw-body-semibold); font-size: var(--fs-body-sm); }
@media (min-width: 900px) { .poplu-steps li { flex-direction: column; gap: 6px; } }
.poplu-steps li::before { content: counter(step, decimal-leading-zero); flex: none; font-family: var(--font-mono-num); font-weight: 700; font-size: 1.15rem; background: var(--color-yolk); border: var(--outline-thin); border-radius: var(--radius-pill); padding: 4px 12px; box-shadow: var(--shadow-hard-sm); }
.poplu-cta { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); }
.poplu-cta .price-chip { margin-left: 4px; }
.poplu-fine { margin-top: var(--space-sm); font-size: var(--fs-caption); color: var(--color-ink-soft); font-weight: var(--fw-body-semibold); }
/* Poplu leads the price list: full row, the other three below */
.price-card--lead { grid-column: 1 / -1; }
@media (min-width: 1180px) {
  .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
  .price-card--lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: var(--space-xl); row-gap: var(--space-sm); align-items: start; }
  .price-card--lead > :not(.tiers):not(.price-tag) { grid-column: 1; }
  .price-card--lead > .tiers { grid-column: 2; grid-row: 1 / span 5; align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .poplu-row { animation: none; }
  .poplu-wall { overflow-x: auto; }
  .poplu-row [aria-hidden="true"].poplu-poster { display: none; }
}


/* ============ HOMEPAGE POPLU TEASER (short version, full story on /poplu) ============ */
.poplu-points { list-style: none; display: grid; gap: var(--space-sm); margin-top: var(--space-xl); }
@media (min-width: 900px) { .poplu-points { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.poplu-points li { display: flex; gap: 12px; align-items: baseline; font-weight: var(--fw-body-semibold); }
.poplu-points li::before { content: ""; flex: none; width: 12px; height: 12px; translate: 0 1px; background: var(--color-yolk); border: 2px solid var(--color-ink); border-radius: 50%; }
.price-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: auto; }
.price-card .price-actions .btn { margin-top: 0; }

/* ============ POPLU PAGE (/poplu) ============ */
.nav--page { padding-top: 0; }
.nav-links a[aria-current="page"] { border-color: var(--color-ink); background: var(--color-yolk); }
.pp-hero { background: linear-gradient(180deg, var(--color-canvas-sky-top) 0%, var(--color-canvas-sky-bottom) 100%); border-bottom: var(--outline-heavy); overflow: hidden; }
.pp-hero-grid { display: grid; gap: var(--space-xl); align-items: center; }
@media (min-width: 960px) { .pp-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.pp-hero h1 { font-size: clamp(2.5rem, 1.8rem + 3vw, 4.25rem); line-height: 1.05; }
.pp-hero .t-lead { margin-top: var(--space-md); max-width: 54ch; }
.pp-hero .hero-ctas { margin-top: var(--space-lg); }
.pp-trust { margin-top: var(--space-md); font-weight: var(--fw-body-semibold); color: var(--color-ink-soft); font-size: var(--fs-body-sm); }
.pp-fan { position: relative; height: 380px; max-width: 460px; width: 100%; justify-self: center; }
.pp-fan .poplu-poster { position: absolute; top: 20px; width: 200px; }
.pp-fan .poplu-poster:nth-child(1) { left: 0; rotate: -8deg; top: 40px; }
.pp-fan .poplu-poster:nth-child(2) { left: calc(50% - 100px); rotate: 1deg; z-index: 2; top: 0; }
.pp-fan .poplu-poster:nth-child(3) { right: 0; rotate: 8deg; top: 40px; }
@media (max-width: 520px) { .pp-fan { height: 300px; } .pp-fan .poplu-poster { width: 150px; } .pp-fan .poplu-poster:nth-child(2) { left: calc(50% - 75px); } }

.pp-steps { list-style: none; display: grid; gap: var(--space-md); margin-top: var(--space-xl); counter-reset: step; }
@media (min-width: 760px) { .pp-steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .pp-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pp-steps li { counter-increment: step; padding: var(--space-lg) var(--space-md) var(--space-md); position: relative; }
.pp-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; top: -16px; left: var(--space-md); font-family: var(--font-mono-num); font-weight: 700; font-size: 1.1rem; background: var(--color-yolk); border: var(--outline-thin); border-radius: var(--radius-pill); padding: 3px 12px; box-shadow: var(--shadow-hard-sm); }
.pp-steps h3 { font-size: 1.15rem; line-height: 1.25; }
.pp-steps p { margin-top: 6px; color: var(--color-ink-soft); font-size: var(--fs-body-sm); }

.pp-gallery { display: grid; gap: var(--space-lg) var(--space-md); margin-top: var(--space-xl); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .pp-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pp-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pp-gallery figure { margin: 0; }
.pp-gallery .poplu-poster { width: 100%; rotate: 0deg; transition: rotate 200ms var(--ease-spring-soft), translate 200ms var(--ease-spring-soft); }
.can-hover .pp-gallery figure:hover .poplu-poster { rotate: -1.5deg; translate: 0 -4px; }
.pp-gallery figcaption { margin-top: 10px; font-size: var(--fs-body-sm); line-height: 1.4; }
.pp-gallery figcaption b { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.pp-gallery figcaption span { color: var(--color-ink-soft); }

/* Reels in the poster frames (2026-11-07): same frame as a poster, a small Reel tag top left */
.poplu-poster video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--color-ink); }
.poplu-reel { position: relative; overflow: visible; }
.poplu-reel video { border-radius: calc(var(--radius-md) - 3px); }
.poplu-reel::after { content: "Reel"; position: absolute; top: -12px; left: 12px; z-index: 1; padding: 3px 10px; font-family: var(--font-mono-num); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-ink); background: var(--color-yolk); border: var(--outline-thin); border-radius: var(--radius-pill); pointer-events: none; }

.pp-plans .price-grid { align-items: stretch; }
@media (min-width: 1180px) { .pp-plans .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); } }
.pp-plan-note { margin-top: var(--space-lg); text-align: center; color: var(--color-ink-soft); font-weight: var(--fw-body-semibold); font-size: var(--fs-body-sm); }

.pp-name { display: grid; gap: var(--space-lg); align-items: center; }
@media (min-width: 860px) { .pp-name { grid-template-columns: 200px minmax(0, 1fr); } }
.pp-name .art { width: min(200px, 50vw); justify-self: center; }
.pp-name p { color: var(--color-on-ink); font-size: var(--fs-lead); line-height: var(--lh-lead); max-width: 60ch; }
.pp-name p + p { margin-top: var(--space-sm); color: #E8D7BE; font-size: var(--fs-body); }

.pp-end { text-align: center; }
.pp-end .t-lead { max-width: 52ch; margin-inline: auto; margin-top: var(--space-sm); }
.pp-end .hero-ctas { justify-content: center; margin-top: var(--space-lg); }
.faq-a a { color: inherit; font-weight: var(--fw-body-bold); }
@media (min-width: 760px) and (max-width: 1099px) { .pp-steps li:last-child { grid-column: 1 / -1; } }
@media (min-width: 860px) { .pp-plans .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); } }
.nav-links a { white-space: nowrap; }
@media (min-width: 980px) and (max-width: 1119px) { .nav-links { display: none; } }

/* ==================================================================
   QUESTS (assets/quest.js): one question at a time, answered with a tap
   ================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.quest {
  position: relative; background: var(--color-card-cream);
  border: var(--outline-thick); border-radius: var(--radius-lg); box-shadow: var(--shadow-hard-lg);
  padding: var(--space-md); display: grid; gap: var(--space-sm);
}
@media (min-width: 700px) { .quest { padding: var(--space-lg); } }
.quest-fallback { display: grid; gap: var(--space-sm); }
.q-head { display: flex; gap: 12px; align-items: flex-end; position: relative; }
.q-avatar { width: 64px; height: 64px; flex: none; object-fit: contain; transform-origin: 50% 100%; }
@media (min-width: 700px) { .q-avatar { width: 80px; height: 80px; } }
.q-avatar.hop { animation: q-hop 420ms var(--ease-spring-soft); }
.q-avatar.nope { animation: q-nope 420ms ease-in-out; }
.q-avatar.cheer { animation: q-cheer 700ms var(--ease-spring-soft); }
@keyframes q-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14px) scaleY(1.04); } }
@keyframes q-nope { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
@keyframes q-cheer { 0% { transform: scale(1); } 35% { transform: translateY(-18px) scale(1.12) rotate(-6deg); } 100% { transform: scale(1); } }
.q-say {
  position: relative; flex: 1; min-width: 0;
  background: #fff; border: var(--outline-default); border-radius: var(--radius-md);
  padding: 18px 16px 12px; box-shadow: var(--shadow-hard-sm);
}
.q-say::before { content: ""; position: absolute; left: -11px; bottom: 14px; width: 16px; height: 16px; background: #fff; border-left: var(--outline-default); border-bottom: var(--outline-default); transform: rotate(45deg); }
.q-name { position: absolute; top: -13px; left: 12px; }
.q-say-text { font-weight: var(--fw-body-bold); min-height: 1.6em; line-height: 1.45; }
.q-say-text::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 3px; vertical-align: -2px; background: var(--color-tangerine); animation: q-caret 1s steps(1) infinite; }
@keyframes q-caret { 50% { opacity: 0; } }
.q-hud { display: flex; align-items: center; gap: 10px; }
.q-hud[hidden] { display: none; }
.q-lv, .q-stars { font-family: var(--font-hud); font-size: var(--fs-hud); letter-spacing: var(--ls-hud); line-height: 1.5; white-space: nowrap; }
.q-track { flex: 1; height: 14px; border: var(--outline-thin); border-radius: var(--radius-pill); background: #fff; overflow: hidden; }
.q-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--color-yolk), var(--color-tangerine)); transform-origin: 0 50%; transform: scaleX(0); transition: transform 420ms var(--ease-spring-soft); }
.q-stars { background: var(--color-yolk); border: var(--outline-thin); border-radius: var(--radius-pill); padding: 5px 10px 4px; }
.q-stars b { color: var(--color-flame-text); }
.q-stars.bump { animation: q-bump 360ms var(--ease-spring-soft); }
@keyframes q-bump { 50% { transform: scale(1.25); } }
.q-pop { position: absolute; z-index: 5; pointer-events: none; font-family: var(--font-hud); font-size: var(--fs-hud-lg); color: var(--color-ink); background: var(--color-yolk); border: var(--outline-thin); border-radius: var(--radius-pill); padding: 5px 9px 4px; transform: translate(-50%, 0); animation: q-float 900ms ease-out forwards; }
@keyframes q-float { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.7); } 20% { opacity: 1; transform: translate(-50%, -8px) scale(1.05); } 100% { opacity: 0; transform: translate(-50%, -54px) scale(1); } }
.q-confetti { position: absolute; left: 40px; top: 30px; width: 0; height: 0; z-index: 6; pointer-events: none; }
.q-confetti i { position: absolute; width: 10px; height: 14px; background: var(--c); border: 2px solid var(--color-ink); border-radius: 3px; animation: q-conf 1100ms cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes q-conf { from { transform: translate(0, 0) rotate(0); opacity: 1; } to { transform: translate(var(--dx), calc(var(--dy) + 120px)) rotate(var(--r)); opacity: 0; } }

.q-stage { min-height: 240px; }
.q-screen.q-in { animation: q-in 380ms var(--ease-spring-soft); }
@keyframes q-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.q-q { font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); line-height: 1.15; outline: none; }
.q-sub { color: var(--color-ink-soft); font-weight: var(--fw-body-semibold); font-size: var(--fs-body-sm); margin-top: 2px; }
.q-tiles { display: grid; gap: 12px; margin-top: var(--space-sm); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .q-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.q-tiles--gate { grid-template-columns: 1fr; }
@media (min-width: 560px) { .q-tiles--gate { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.q-tile {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; text-align: center;
  font: inherit; color: var(--color-ink); cursor: pointer;
  background: #fff; border: var(--outline-default); border-radius: var(--radius-md); box-shadow: var(--shadow-hard-md);
  padding: 14px 10px; min-height: 96px;
  transition: transform 160ms var(--ease-spring-soft), box-shadow 160ms var(--ease-spring-soft), background 120ms linear;
  -webkit-tap-highlight-color: transparent;
}
.q-tile:hover { transform: translate(-2px, -3px); box-shadow: 7px 8px 0 0 var(--color-ink); background: #FFFDF7; }
.q-tile:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 0 var(--color-ink); }
.q-tile:focus-visible, .q-poster:focus-visible, .q-back:focus-visible { outline: 3px solid var(--color-teal); outline-offset: 3px; }
.q-tile.chosen, .q-tile[aria-pressed="true"] { background: var(--color-yolk); }
.q-tile[aria-pressed="true"]::after { content: "\2713"; position: absolute; top: 6px; right: 10px; font-weight: 800; }
.q-tile:disabled:not(.chosen) { opacity: .45; }
.q-ico { font-size: 2rem; line-height: 1; }
.q-tl { font-weight: var(--fw-body-bold); line-height: 1.25; font-size: var(--fs-body-sm); }
.q-tn { font-size: var(--fs-caption); color: var(--color-ink-soft); font-weight: var(--fw-body-semibold); }
.q-tiles--gate .q-tile { padding: 12px 12px 14px; }
.q-tiles--gate .q-tl { font-size: var(--fs-body); }
@media (max-width: 559px) {
  .q-tiles--gate .q-tile { display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; text-align: left; align-items: center; }
  .q-tiles--gate .q-art { grid-row: 1 / span 2; }
  .q-tiles--gate .q-tl { align-self: end; }
  .q-tiles--gate .q-tn { align-self: start; }
}
.q-art { display: block; width: 100%; aspect-ratio: 4 / 3; position: relative; border-radius: 10px; overflow: hidden; }
.q-art--poster img { position: absolute; width: 46%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border: var(--outline-thin); border-radius: 6px; top: 8%; }
.q-art--poster img:first-child { left: 8%; rotate: -7deg; }
.q-art--poster img:last-child { right: 8%; rotate: 6deg; }
.q-tile:hover .q-art--poster img:first-child { rotate: -12deg; }
.q-tile:hover .q-art--poster img:last-child { rotate: 11deg; }
.q-art--poster img, .q-art--mate img { transition: rotate 200ms var(--ease-spring-soft), transform 200ms var(--ease-spring-soft); }
.q-art--mate img { width: 100%; height: 100%; object-fit: contain; }
.q-tile:hover .q-art--mate img { transform: translateY(-4px) rotate(-4deg); }
.q-foot { margin-top: var(--space-md); font-size: var(--fs-body-sm); font-weight: var(--fw-body-semibold); color: var(--color-ink-soft); }
.q-foot a { color: var(--color-ink); font-weight: var(--fw-body-bold); }

/* mini website mockup */
.mini { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--mbg); border: var(--outline-thin); border-radius: 8px; overflow: hidden; }
.mini-bar { display: flex; gap: 4px; padding: 5px 6px; background: rgba(42, 26, 15, .12); }
.mini-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--mink); opacity: .5; }
.mini-hero { flex: 1; display: flex; flex-direction: column; gap: 5px; padding: 8px 10px; background: linear-gradient(135deg, var(--ma) -60%, transparent 70%); }
.mini-title { font-family: var(--font-display); font-weight: 800; font-size: .78rem; line-height: 1.05; color: var(--mink); text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mini-line { height: 5px; width: 80%; border-radius: 3px; background: var(--mink); opacity: .35; }
.mini-line--s { width: 55%; }
.mini-btn { width: 42%; height: 11px; border-radius: 6px; background: var(--ma); margin-top: 3px; }
.mini-cards { display: flex; gap: 5px; padding: 0 10px 8px; }
.mini-cards i { flex: 1; height: 14px; border-radius: 4px; background: var(--mb); opacity: .8; }

/* poster duel */
.q-duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: var(--space-sm); }
.q-vs { font-family: var(--font-hud); font-size: var(--fs-hud-lg); background: var(--color-flame); color: var(--color-on-flame); border: var(--outline-thin); border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; }
.q-poster { display: block; padding: 0; cursor: pointer; background: var(--color-card-cream); border: var(--outline-default); border-radius: var(--radius-md); box-shadow: var(--shadow-hard-md); overflow: hidden; aspect-ratio: 4 / 5; width: 100%; max-width: 230px; justify-self: center; transition: transform 200ms var(--ease-spring-soft), box-shadow 200ms var(--ease-spring-soft), opacity 300ms linear; }
.q-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.q-poster:hover { transform: translateY(-5px) rotate(-1.5deg); box-shadow: 7px 9px 0 0 var(--color-ink); }
.q-poster.chosen { transform: scale(1.06) rotate(-2deg); box-shadow: 0 0 0 5px var(--color-yolk), 8px 8px 0 4px var(--color-ink); }
.q-poster.lost { opacity: .25; transform: scale(.9) rotate(4deg); }
.q-champ { position: relative; }
.q-champ::after { content: "Winner so far"; position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); white-space: nowrap; font-family: var(--font-hud); font-size: 9px; background: var(--color-yolk); border: var(--outline-thin); border-radius: var(--radius-pill); padding: 4px 8px 3px; }

/* reveals */
.q-win, .q-plan { position: relative; margin-top: var(--space-md); display: grid; gap: var(--space-sm); background: #FFF3D6; border: var(--outline-default); border-radius: var(--radius-md); padding: var(--space-md); padding-top: calc(var(--space-md) + 6px); }
.q-win { justify-items: center; text-align: center; }
.q-clear { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--color-teal-chip-bg); }
.q-poster--big { max-width: 220px; cursor: default; animation: q-flip 700ms var(--ease-spring-soft); }
.q-poster--big:hover { transform: none; box-shadow: var(--shadow-hard-md); }
@keyframes q-flip { from { transform: rotateY(90deg) scale(.8); } to { transform: none; } }
.q-plan-art { position: relative; width: 100%; max-width: 320px; aspect-ratio: 16 / 10; justify-self: center; animation: q-flip 700ms var(--ease-spring-soft); }
.q-plan-art .mini-title { font-size: 1.15rem; }
.q-checks { list-style: none; display: grid; gap: 8px; }
.q-checks li { display: flex; gap: 10px; align-items: baseline; font-weight: var(--fw-body-semibold); }
.q-checks li::before { content: "\2713"; flex: none; width: 22px; height: 22px; display: grid; place-items: center; font-size: .8rem; font-weight: 800; background: var(--color-yolk); border: var(--outline-thin); border-radius: 50%; }
.q-price { font-size: var(--fs-body-sm); color: var(--color-ink-soft); }
.q-price b { color: var(--color-ink); }
.q-mate { display: flex; gap: 14px; align-items: center; }
.q-mate img { width: 88px; height: 88px; object-fit: contain; flex: none; }
.q-mate-name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.1; margin-top: 6px; }
.q-big { font-family: var(--font-mono-num); font-weight: 700; font-size: var(--fs-num-stat); line-height: 1; }
.q-big .q-count { color: var(--color-flame); }
.q-total b { font-family: var(--font-hud); font-size: var(--fs-hud-lg); font-weight: 400; background: var(--color-yolk); border: var(--outline-thin); border-radius: var(--radius-pill); padding: 6px 10px 5px; margin-right: 6px; }

/* forms + buttons */
.q-form { display: grid; gap: 8px; margin-top: var(--space-sm); }
.q-form label { font-weight: var(--fw-body-bold); font-size: var(--fs-body-sm); margin-top: 4px; }
.q-input { font: inherit; font-size: 1.1rem; width: 100%; padding: 14px 16px; background: #fff; border: var(--outline-default); border-radius: var(--radius-md); box-shadow: inset 0 3px 0 rgba(42, 26, 15, .06); color: var(--color-ink); }
.q-input:focus { outline: 3px solid var(--color-teal); outline-offset: 2px; }
.q-fine { font-size: var(--fs-caption); color: var(--color-ink-soft); font-weight: var(--fw-body-semibold); }
.q-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: var(--space-md); }
.q-row--start { justify-content: flex-start; margin-top: var(--space-sm); }
.q-row .q-go { margin-left: auto; }
.q-go:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.q-back { font: inherit; font-weight: var(--fw-body-bold); font-size: var(--fs-body-sm); color: var(--color-ink-soft); background: none; border: 0; padding: 10px 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.q-back:hover { color: var(--color-ink); }

/* slider */
.q-slider { display: grid; gap: 12px; margin-top: var(--space-md); }
.q-hours { font-weight: var(--fw-body-bold); font-size: 1.1rem; }
.q-hours b { font-family: var(--font-mono-num); font-size: 2.6rem; color: var(--color-flame); margin-right: 6px; }
.q-slider input[type="range"] { width: 100%; accent-color: var(--color-tangerine); height: 30px; }

@media (prefers-reduced-motion: reduce) {
  .q-avatar, .q-stars, .q-poster--big, .q-plan-art, .q-screen.q-in { animation: none !important; }
  .q-say-text::after { animation: none; }
}

/* ============ HOMEPAGE HERO WITH THE QUEST ============ */
.hero--quest { padding-top: var(--space-xl); }
@media (min-width: 900px) { .hero--quest { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); } }
.hero--quest .hero-mark { font-size: clamp(2.8rem, 1.8rem + 4.5vw, 5.75rem); margin-bottom: 4px; }
.hero--quest .hero-promise { font-size: var(--fs-lead); line-height: var(--lh-lead); margin-bottom: var(--space-md); max-width: 40ch; }
@media (min-width: 980px) {
  .hero--quest .hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr); gap: var(--space-xl); align-items: start; }
  .hero--quest .hero-scene { margin-top: 150px; }
}
.quest-fallback .btn { justify-content: flex-start; }

/* ============ LAST CALL ============ */
.end-picks { display: grid; gap: var(--space-md); margin-top: var(--space-lg); max-width: 860px; margin-inline: auto; }
@media (min-width: 640px) { .end-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.end-pick {
  display: grid; justify-items: center; gap: 4px; text-decoration: none; color: var(--color-ink);
  background: var(--color-card-cream); border: var(--outline-default); border-radius: var(--radius-md); box-shadow: var(--shadow-hard-md);
  padding: var(--space-md); transition: transform 160ms var(--ease-spring-soft), box-shadow 160ms var(--ease-spring-soft);
}
.end-pick:hover { transform: translate(-2px, -4px) rotate(-1deg); box-shadow: 7px 9px 0 0 var(--color-ink); }
.end-pick span { font-size: 2.4rem; line-height: 1; }
.end-pick b { font-family: var(--font-display); font-size: 1.25rem; }
.end-pick small { color: var(--color-ink-soft); font-weight: var(--fw-body-semibold); }
.end-mail { margin-top: var(--space-lg); font-weight: var(--fw-body-semibold); color: var(--color-ink-soft); }
.end-mail a { color: var(--color-ink); font-weight: var(--fw-body-bold); }

/* ============ POPLU PAGE: game hero, trail, flip cards ============ */
.pp-hero--game .pp-hero-grid { align-items: start; }
@media (min-width: 960px) { .pp-hero--game .pp-hero-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.pp-open { margin-top: var(--space-lg); display: grid; gap: 10px; justify-items: start; }
.pp-open small { font-weight: var(--fw-body-semibold); color: var(--color-ink-soft); }
.pp-trail { list-style: none; display: grid; gap: var(--space-md); margin-top: var(--space-xl); counter-reset: step; }
@media (min-width: 760px) { .pp-trail { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pp-trail li { display: grid; justify-items: center; text-align: center; gap: 8px; font-weight: var(--fw-body-semibold); font-size: var(--fs-body-sm); position: relative; }
.pp-trail li span { font-size: 2.2rem; width: 76px; height: 76px; display: grid; place-items: center; background: var(--color-card-cream); border: var(--outline-default); border-radius: 50%; box-shadow: var(--shadow-hard-sm); }
.pp-trail li b { font-family: var(--font-display); font-size: 1.1rem; }
@media (min-width: 760px) { .pp-trail li:not(:last-child)::after { content: ""; position: absolute; top: 38px; left: calc(50% + 46px); right: calc(-50% + 46px); border-top: 3px dashed var(--color-ink); opacity: .35; } }
.flips { display: grid; gap: var(--space-md); margin-top: var(--space-xl); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .flips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.flip { perspective: 900px; min-height: 210px; font: inherit; color: var(--color-ink); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.flip-in { position: relative; display: block; width: 100%; height: 100%; min-height: inherit; transform-style: preserve-3d; transition: transform 520ms var(--ease-spring-soft); }
.flip[aria-expanded="true"] .flip-in { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--color-card-cream); border: var(--outline-default); border-radius: var(--radius-md); box-shadow: var(--shadow-hard-md); padding: var(--space-md); }
.flip-front { align-items: center; justify-content: center; text-align: center; }
.flip-front span { font-size: 2.6rem; line-height: 1; }
.flip-front b { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.2; }
.flip-front small { font-family: var(--font-hud); font-size: 9px; letter-spacing: var(--ls-hud); color: var(--color-ink-soft); margin-top: auto; }
.flip-back { transform: rotateY(180deg); background: var(--color-yolk); justify-content: center; font-size: var(--fs-body-sm); font-weight: var(--fw-body-semibold); line-height: 1.5; }
.flip-back b { font-family: var(--font-display); font-size: 1.05rem; }
.flip:hover .flip-face { box-shadow: 7px 8px 0 0 var(--color-ink); }
.flip:focus-visible { outline: 3px solid var(--color-teal); outline-offset: 4px; border-radius: var(--radius-md); }
@media (max-width: 520px) { .flips { grid-template-columns: 1fr; } .flip { min-height: 170px; } }
@media (prefers-reduced-motion: reduce) { .flip-in { transition: none; } }
@media (max-width: 759px) { .pp-trail { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pp-trail li:last-child { grid-column: 1 / -1; } }
@media (min-width: 1040px) { .doors-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); } .doors-grid--3 .door h3 { font-size: 1.5rem; } }
@media (min-width: 860px) and (max-width: 1039px) { .doors-grid--3 { grid-template-columns: 1fr; } }
.door--site .price-chip { background: var(--color-teal-chip-bg); }
.kicker--center { justify-content: center; }
/* brand icons (assets/icons, drawn in Higgsfield to match the Poplu set) */
img.q-ico { width: 52px; height: 52px; object-fit: contain; transition: transform 200ms var(--ease-spring-soft); }
.q-tile:hover img.q-ico { transform: translateY(-3px) rotate(-6deg) scale(1.06); }
.q-tile.chosen img.q-ico { transform: scale(1.15) rotate(6deg); }
.end-pick .ico { width: 64px; height: 64px; }
.end-pick:hover .ico { transform: rotate(-6deg) scale(1.06); }
.end-pick .ico { transition: transform 200ms var(--ease-spring-soft); }
.pp-trail li span .ico { width: 46px; height: 46px; }
.flip-front .ico { width: 64px; height: 64px; }
.pp-save { font-size: var(--fs-body-sm); font-weight: var(--fw-body-semibold); color: var(--color-ink-soft); margin-top: -4px; }
.pp-save b { color: var(--color-flame-text); }

/* ==================================================================
   UX PASS 2026-10-10: phone menu, simple teammates, websites page, 404
   ================================================================== */

/* Phone menu: four big taps, always at the bottom of the screen */
.tabbar { display: none; }
@media (max-width: 979px) {
  .tabbar {
    position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); z-index: 60;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--color-card-cream); border: var(--outline-default); border-radius: 22px; box-shadow: var(--shadow-hard-md);
    padding: 6px;
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px 5px;
    text-decoration: none; color: var(--color-ink); font-weight: var(--fw-body-bold); font-size: 0.72rem; line-height: 1.1;
    border-radius: 16px; -webkit-tap-highlight-color: transparent;
  }
  .tabbar a:active { background: var(--color-yolk); }
  .tabbar a[aria-current="page"] { background: var(--color-yolk); }
  .tabbar img { width: 30px; height: 30px; object-fit: contain; }
  body { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}

/* Teammates: one simple row instead of four long panels */
.mates { display: grid; gap: var(--space-md); margin-top: var(--space-xl); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1000px) { .mates { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mate {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  background: var(--color-card-cream); border: var(--outline-default); border-radius: var(--radius-md); box-shadow: var(--shadow-hard-md);
  padding: var(--space-md) var(--space-sm); border-top: 10px solid var(--pa, var(--color-yolk));
}
.mate img { width: 104px; height: 104px; object-fit: contain; transition: transform 200ms var(--ease-spring-soft); }
.mate:hover img { transform: translateY(-4px) rotate(-4deg); }
.mate h3 { font-size: 1.35rem; line-height: 1.1; }
.mate p { color: var(--color-ink-soft); font-size: var(--fs-body-sm); line-height: 1.4; }
.mate .btn { margin-top: auto; padding: 12px 18px; }
@media (max-width: 520px) { .mate img { width: 84px; height: 84px; } .mate .btn { padding: 10px 14px; font-size: 0.72rem; } }

/* Websites page: what you get */
.perks { display: grid; gap: var(--space-md); margin-top: var(--space-xl); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1000px) { .perks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.perk { background: var(--color-card-cream); border: var(--outline-default); border-radius: var(--radius-md); box-shadow: var(--shadow-hard-md); padding: var(--space-md); display: grid; gap: 6px; align-content: start; }
.perk img { width: 56px; height: 56px; object-fit: contain; }
.perk b { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; }
.perk span { color: var(--color-ink-soft); font-size: var(--fs-body-sm); line-height: 1.45; }
@media (max-width: 520px) { .perks { grid-template-columns: 1fr; } }
.site-price { max-width: 560px; margin: var(--space-xl) auto 0; }

/* Not found page */
section.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; }
section.lost img { width: 160px; height: 160px; object-fit: contain; margin: 0 auto var(--space-md); }
section.lost .t-lead { margin: var(--space-sm) auto 0; max-width: 40ch; }
section.lost .hero-ctas { justify-content: center; margin-top: var(--space-lg); }

@media (min-width: 760px) { .pp-trail--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 759px) { .pp-trail--4 li:last-child { grid-column: auto; } }
.hero-mark { font-family: var(--font-display); }
h1.hero-promise { font-weight: var(--fw-display-bold); }
/* every step-trail icon sits inside its circle, whatever the markup */
.pp-trail li span { overflow: hidden; flex: none; }
.pp-trail li span img { width: 46px; height: 46px; object-fit: contain; display: block; }
/* even spacing: every section heading gets air before the line under it */
.t-display + .t-lead { margin-top: var(--space-sm); }
.hero--quest .hero-mark { margin-bottom: var(--space-sm); }
.q-sub { margin-top: 6px; }
/* name tag sits centred on the bubble edge, with clear space before the words */
.q-say { padding: 28px 18px 14px; }
.q-name { top: -17px; }

/* ============ LEGAL PAGES (privacy, terms, cookies) ============ */
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-sm); }
.footer .footer-legal a { font-size: inherit; color: #E8D7BE; text-decoration: underline; text-underline-offset: 3px; }
.footer .footer-legal a:hover { color: var(--color-yolk); }
.legal-head { padding-bottom: 0; }
.legal-head + .band { padding-top: var(--space-lg); }
.legal-head .t-lead { max-width: 60ch; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-md); list-style: none; padding: 0; }
.legal-tabs a {
  display: inline-block; padding: 8px 16px; border: var(--outline-thin); border-radius: 999px;
  background: var(--color-card-cream); color: var(--color-ink); text-decoration: none;
  font-weight: var(--fw-body-bold); font-size: var(--fs-body-sm);
}
.legal-tabs a[aria-current="page"] { background: var(--color-yolk); box-shadow: var(--shadow-hard-sm); }
.legal-tabs a:hover { background: var(--color-yolk); }
.legal {
  max-width: 76ch; margin-inline: auto; background: var(--color-card-cream);
  border: var(--outline-thin); border-radius: var(--radius-lg); box-shadow: var(--shadow-hard-md);
  padding: var(--space-lg) clamp(18px, 4vw, var(--space-xl));
  font-size: var(--fs-body); line-height: var(--lh-body); color: var(--color-ink);
}
.legal-ver { font-size: var(--fs-label); color: var(--color-ink-soft); font-weight: var(--fw-body-semibold); }
.legal h2 {
  font-family: var(--font-display); font-weight: var(--fw-display-bold); font-size: var(--fs-title);
  line-height: var(--lh-title); margin-top: var(--space-xl); margin-bottom: var(--space-xs);
}
.legal h3 { font-family: var(--font-display); font-weight: var(--fw-display-bold); font-size: 1.2rem; margin-top: var(--space-md); margin-bottom: 4px; }
.legal p, .legal ul, .legal ol { margin-top: var(--space-xs); }
.legal ul, .legal ol { padding-left: 1.3em; display: grid; gap: 6px; }
.legal li::marker { color: var(--color-tangerine); }
.legal a { color: var(--color-ink); font-weight: var(--fw-body-bold); text-decoration: underline; text-decoration-color: var(--color-tangerine); text-underline-offset: 3px; }
.legal a:hover { text-decoration-thickness: 3px; }
.legal-short {
  margin-top: var(--space-md); background: #FFF3D6; border: var(--outline-thin); border-radius: var(--radius-md);
  padding: var(--space-md);
}
.legal-short h2 { margin-top: 0; font-size: 1.35rem; }
.legal-table-wrap { overflow-x: auto; margin-top: var(--space-sm); }
.legal table { width: 100%; border-collapse: collapse; font-size: var(--fs-body-sm); min-width: 520px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 2px solid #EAD9BC; }
.legal th { font-weight: var(--fw-body-bold); background: #FFF3D6; }
.legal code { font-family: var(--font-mono-num); font-size: 0.92em; background: #FFF3D6; padding: 1px 6px; border-radius: 6px; }
.legal-foot { margin-top: var(--space-xl); padding-top: var(--space-md); border-top: 2px solid #EAD9BC; font-size: var(--fs-body-sm); color: var(--color-ink-soft); }
.q-fine a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) {
  .legal table { min-width: 0; }
  .legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal tr { display: block; border: 2px solid #EAD9BC; border-radius: var(--radius-md); padding: 10px 14px; margin-top: var(--space-xs); background: var(--color-canvas); }
  .legal td { display: block; border: 0; padding: 4px 0; }
  .legal td[data-label]::before { content: attr(data-label); display: block; font-size: var(--fs-caption); font-weight: var(--fw-body-bold); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--color-ink-soft); }
}


/* ==================================================================
   SIMPLER SITE 2026-11-15: Poplu first. One menu on every page (Sign in beside it),
   the homepage's three steps and its quiet "Also from Ċikku" row, AI help's two prices.
   ================================================================== */
.nav-acts { display: flex; align-items: center; gap: var(--space-md); }
.nav-signin { font-weight: var(--fw-body-bold); color: var(--color-ink); text-underline-offset: 4px; padding: 12px 4px; white-space: nowrap; }
@media (max-width: 979px) { .nav-acts .btn { display: none; } }
.nav--page .nav-mark.wordmark { margin-top: 0; }
.sm-hero { padding-bottom: 0; }
.sm-hero .poplu-wall-note { padding-bottom: var(--space-lg); }
.pp-steps.sm-steps li { background: var(--color-card-cream); border: var(--outline-default); border-radius: var(--radius-md); box-shadow: var(--shadow-hard-md); }
@media (min-width: 760px) { .pp-steps.sm-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sm-more { margin-top: var(--space-md); font-weight: var(--fw-body-semibold); }
.sm-more a { color: var(--color-ink); }
.sm-also { padding-block: var(--space-xl); text-align: center; }
.sm-also .end-picks { grid-template-columns: 1fr; max-width: 640px; }
@media (min-width: 640px) { .sm-also .end-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 860px) { .price-grid.sm-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pp-trust a { color: var(--color-ink); font-weight: var(--fw-body-bold); }

/* PRICES ON A PHONE 2026-11-16: a plan's name and price share a line and what it holds sits
   under them, full width (three columns left the middle one about 170px wide, four lines deep,
   each starting at a different place). Wider screens line the three columns up across rows. */
.price-card h3 { line-height: var(--lh-title); }
@media (max-width: 639px) {
  .price-card { padding: var(--space-lg) var(--space-md); }
  .price-tag { left: var(--space-md); }
  .price-num { flex-wrap: wrap; row-gap: 4px; }
  .price-card .tiers li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tn tp" "td td"; gap: 4px 12px; padding: 12px 0; }
  .tiers .tn { grid-area: tn; }
  .tiers .tp { grid-area: tp; }
  .tiers .td { grid-area: td; }
}
@media (min-width: 640px) {
  @supports (grid-template-columns: subgrid) {
    .price-card .tiers { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; }
    .price-card .tiers li { grid-column: 1 / -1; grid-template-columns: subgrid; }
  }
}
