
/* =====================================================
   Design tokens
   ===================================================== */
:root {
  /* Palette — Warm Cream (default) */
  --bg:        #f5eed9;
  --bg-soft:   #efe6cb;
  --bg-card:   #fdf8ea;
  --bg-deep:   #0f1233;   /* dark contrast block */
  --bg-deep-2: #1a1d4a;
  --ink:       #1a1612;
  --ink-2:     #3a342a;
  --ink-mute:  #7b7263;
  --line:      #e4d8b6;
  --line-soft: #ede3c5;

  /* Game accents (warm, not neon) */
  --indigo:    #4f46e5;
  --indigo-2:  #6c63ff;
  --coral:     #ff6b54;
  --coral-2:   #ff8a76;
  --mint:      #2bb98a;
  --mint-2:    #50d8a8;
  --coin:      #f1b53a;
  --coin-2:    #ffd166;
  --pink:      #ff7eb6;
  --pink-2:    #ff5a9d;
  --violet:    #a78bff;
  --sky:       #a8d8ff;

  /* Semantic pair for "strong" surfaces — overridable per theme */
  --strong-bg: var(--ink);
  --strong-fg: var(--bg);
  --strong-shadow: #000;

  /* Type — гротеск для всего, пиксельный только для мелких системных меток */
  --font-pixel: 'Pixelify Sans', 'VT323', ui-monospace, monospace;
  --font-body:  'Space Grotesk', 'Manrope', system-ui, -apple-system, sans-serif;

  /* Geometry */
  --radius:     14px;
  --radius-lg:  22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 0 var(--line), 0 4px 14px rgba(31,27,21,.04);
  --shadow-md: 0 2px 0 var(--line), 0 14px 30px rgba(31,27,21,.07);
  --shadow-lg: 0 3px 0 var(--line), 0 28px 60px rgba(31,27,21,.10);

  --max:        1200px;
  --pad-x:      clamp(20px, 4vw, 56px);
}

/* Midnight Arcade palette (dark) */
[data-theme="midnight"] {
  --bg:        #0d0f24;
  --bg-soft:   #131634;
  --bg-card:   #161937;
  --bg-deep:   #060819;
  --bg-deep-2: #0a0c24;
  --ink:       #f6eed5;
  --ink-2:     #d8cfb1;
  --ink-mute:  #8a8aa8;
  --line:      #262a4e;
  --line-soft: #1d2042;
  --shadow-sm: 0 1px 0 var(--line), 0 4px 14px rgba(0,0,0,.30);
  --shadow-md: 0 2px 0 var(--line), 0 14px 30px rgba(0,0,0,.40);
  --shadow-lg: 0 3px 0 var(--line), 0 28px 60px rgba(0,0,0,.55);
}

/* Arcade — deep blue + gold + pink (game-cabinet) */
[data-theme="arcade"] {
  --bg:        #161853;
  --bg-soft:   #1a1f6a;
  --bg-card:   #1f2680;
  --bg-deep:   #0a0e3f;
  --bg-deep-2: #0d1357;
  --ink:       #faf3d6;
  --ink-2:     #d6cea2;
  --ink-mute:  #9097d4;
  --line:      #2d3796;
  --line-soft: #232b80;
  --coin:      #ffce4d;
  --coin-2:    #ffe082;
  --indigo:    #a78bff;
  --indigo-2:  #c4aaff;
  --strong-bg: #050829;
  --strong-fg: var(--ink);
  --strong-shadow: #000;
  --shadow-sm: 0 1px 0 var(--line), 0 4px 14px rgba(0,0,0,.30);
  --shadow-md: 0 2px 0 var(--line), 0 14px 30px rgba(0,0,0,.40);
  --shadow-lg: 0 3px 0 var(--line), 0 28px 60px rgba(0,0,0,.55);
}

/* Mint Pop palette */
[data-theme="mint"] {
  --bg:        #ecf6ec;
  --bg-soft:   #dcecdc;
  --bg-card:   #f7fbf6;
  --line:      #cce0cb;
  --line-soft: #d9e8d8;
  --coin:      #ffc043;
  --coral:     #ff7062;
}

/* =====================================================
   Reset & base
   ===================================================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Selection */
::selection { background: var(--indigo); color: #fff; }

/* =====================================================
   Layout helpers
   ===================================================== */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.section {
  padding: clamp(64px, 9vw, 128px) 0;
  position: relative;
}
.section + .section { padding-top: clamp(32px, 5vw, 64px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-pixel);
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--coral);
  box-shadow: 4px 0 0 var(--coin), -4px 0 0 var(--mint);
}

h1, h2, h3, h4 { margin: 0; color: var(--ink); }
.h-display {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(40px, 6.2vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  letter-spacing: 0;
  text-wrap: balance;
}
.h-display .pixel {
  font-family: var(--font-pixel);
  font-weight: 400;
  background: linear-gradient(180deg, var(--coral), var(--coin));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0;
}
.h-section {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.07;
  letter-spacing: -0.02em;
  letter-spacing: 0;
  text-wrap: balance;
}
.h-section .pixel {
  font-family: var(--font-pixel);
  font-weight: 400;
  color: var(--indigo);
}
.lede {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-2);
  max-width: 60ch;
  text-wrap: pretty;
}

/* =====================================================
   Nav
   ===================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--bg-card);
  flex: 0 0 36px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  box-shadow: 0 2px 0 var(--line);
}
[data-theme="midnight"] .brand-avatar { border-color: var(--coin); }
.brand-mark {
  width: 32px; height: 32px;
  flex: 0 0 32px;
}
.brand-mark .m-glow { fill: #ffce4d; }
.brand-mark .m-main { fill: #ff6b54; }
.brand-mark .m-dot  { fill: #ffffff; }
[data-theme="arcade"] .brand-mark .m-glow { fill: #ffce4d; }
[data-theme="arcade"] .brand-mark .m-main { fill: #ff7eb6; }
[data-theme="arcade"] .brand-mark .m-dot  { fill: #ffffff; }
.brand-word {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-family: var(--font-pixel);
  font-size: 16px;
  line-height: 1;
}
.brand-word .b-key {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: 0 1.5px 0 var(--line);
  font-weight: 500;
  text-transform: uppercase;
  transform-origin: center bottom;
  animation: brandKeyPress 3.2s cubic-bezier(.4, .0, .2, 1) infinite;
}
.brand-word .b-key.b-v { color: var(--coral); animation-delay: 0s;    }
.brand-word .b-key.b-i { color: var(--ink);   animation-delay: 0.18s; }
.brand-word .b-key.b-b { color: var(--coin);  animation-delay: 0.36s; }
.brand-word .b-key.b-o { color: var(--mint);  animation-delay: 0.54s; }
@keyframes brandKeyPress {
  0%, 18%, 100% {
    transform: translateY(0)    scale(1);
    box-shadow: 0 1.5px 0 var(--line);
  }
  6% {
    transform: translateY(-3px) scale(1.12);
    box-shadow: 0 3px 0 var(--line), 0 6px 12px rgba(31, 27, 21, 0.10);
  }
  12% {
    transform: translateY(1px)  scale(0.98);
    box-shadow: 0 0 0 var(--line);
  }
}
[data-theme="midnight"] .brand-word .b-key {
  background: var(--bg-soft);
  border-color: var(--line);
}
[data-theme="midnight"] .brand-word .b-key.b-i { color: var(--bg); }
.nav-cta {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  transition: transform .15s, background .15s;
}
.nav-cta:hover { transform: translateY(-1px); background: #fff; }
[data-theme="midnight"] .nav-cta:hover { background: var(--bg-soft); }

/* =====================================================
   Buttons
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 24px;
  border-radius: var(--radius);
  border: 0;
  position: relative;
  transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--strong-bg);
  color: var(--strong-fg);
  box-shadow: 0 4px 0 0 var(--strong-shadow), 0 0 0 1px var(--strong-bg);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 0 var(--strong-shadow), 0 0 0 1px var(--strong-bg); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 0 0 0 var(--strong-shadow), 0 0 0 1px var(--strong-bg); }
.btn-primary .arrow { transition: transform .2s; }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-coral {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 4px 0 0 #b53b2a, 0 0 0 1px var(--coral);
}
.btn-coral:hover { transform: translateY(-2px); box-shadow: 0 6px 0 0 #b53b2a, 0 0 0 1px var(--coral); }
.btn-coral:active { transform: translateY(2px); box-shadow: 0 0 0 0 #b53b2a, 0 0 0 1px var(--coral); }

/* Big CTA button (used in main early-access section) */
.cta-big {
  display: inline-flex;
  margin-top: 36px;
  padding: 22px 32px;
  font-size: 18px;
  text-decoration: none;
}

/* Hero CTA row */
.hero-cta-row {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  transition: color .15s, border-color .15s;
}
.btn-ghost:hover { color: var(--ink); border-bottom-color: var(--ink); }
.hero-cta-foot {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-mute);
  max-width: 56ch;
}

/* Footer CTA */
.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--strong-bg);
  color: var(--strong-fg) !important;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .15s;
  text-decoration: none !important;
}
.footer-cta:hover { transform: translateY(-2px); }

/* =====================================================
   Hero
   ===================================================== */
.hero {
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(48px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.early-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 14px 8px 8px;
  font-size: 13.5px;
  margin-bottom: 22px;
  color: var(--ink-2);
}
.early-ribbon b { color: var(--ink); }
.early-ribbon-dot {
  width: 22px; height: 22px;
  background: var(--coral);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 14px;
  line-height: 1;
  position: relative;
}
.early-ribbon-dot::after{
  content: "";
  position: absolute; inset: 0;
  background: inherit;
  border-radius: inherit;
  opacity: .6;
  animation: ping 1.6s ease-out infinite;
  z-index: -1;
}
@keyframes ping {
  0%   { transform: scale(1);   opacity: .55; }
  80%  { transform: scale(1.8); opacity: 0; }
  100% { opacity: 0; }
}

.hero-sub {
  margin-top: 22px;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}
.hero-form-card {
  margin-top: 32px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.hero-form-row {
  display: flex;
  gap: 8px;
}
.hero-form-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  padding: 16px 18px;
  border-radius: var(--radius);
  font: inherit;
  font-size: 16px;
  outline: 0;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.hero-form-row input:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--indigo) 22%, transparent);
  background: var(--bg-card);
}
.hero-form-row input.error {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--coral) 18%, transparent);
}
@media (max-width: 520px) {
  .hero-form-row { flex-direction: column; }
}
.hero-form-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 0 4px;
  font-size: 13px;
  color: var(--ink-mute);
}
.form-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--coral);
  min-height: 18px;
  padding: 0 4px;
}
.form-msg.hidden { display: none; }

/* =====================================================
   Hero — dynamic key/star background
   ===================================================== */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero > .container { position: relative; z-index: 1; }

.bg-key {
  position: absolute;
  font-family: var(--font-pixel);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow:
    0 2px 0 var(--line),
    0 4px 8px rgba(31, 27, 21, 0.04);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  animation: keyPulse 4.8s cubic-bezier(.4,.0,.2,1) infinite;
  user-select: none;
}
.bg-key.k-lg { width: 44px; height: 44px; font-size: 19px; }
.bg-key.k-sm { width: 28px; height: 28px; font-size: 13px; }
.bg-key.k-accent {
  color: var(--coral);
  background: var(--bg-card);
}
.bg-key.k-accent-2 {
  color: var(--indigo);
}
.bg-key.k-accent-3 {
  color: var(--mint);
}
.bg-key.k-dark {
  color: var(--bg);
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 2px 0 #000;
}
@keyframes keyPulse {
  0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  15%      { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
  60%      { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
  75%      { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
}

.bg-star {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  color: var(--coin);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
  animation: starTwinkle 3.2s ease-in-out infinite;
}
.bg-star.s-coral { color: var(--coral); }
.bg-star.s-mint  { color: var(--mint); }
.bg-star.s-indigo { color: var(--indigo); }
@keyframes starTwinkle {
  0%, 100% { opacity: 0;   transform: translate(-50%, -50%) scale(0.4) rotate(0deg); }
  30%      { opacity: 1;   transform: translate(-50%, -50%) scale(1)   rotate(45deg); }
  60%      { opacity: 0.6; transform: translate(-50%, -50%) scale(0.8) rotate(90deg); }
}

@media (max-width: 880px) {
  .bg-key { width: 26px; height: 26px; font-size: 13px; }
  .bg-key.k-lg { width: 32px; height: 32px; font-size: 15px; }
  .bg-key.k-sm { width: 22px; height: 22px; font-size: 11px; }
}

/* =====================================================
   Decorative arcade icons (background layer)
   ===================================================== */
.bg-arcade {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.09;
  filter: saturate(0.9);
  animation: arcadeDrift 8s ease-in-out infinite;
}
.bg-arcade.dark { opacity: 0.16; }
.bg-arcade.bright { opacity: 0.14; }
.bg-arcade svg { display: block; image-rendering: pixelated; image-rendering: crisp-edges; shape-rendering: crispEdges; }
@keyframes arcadeDrift {
  0%, 100% { transform: translateY(0)     rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-10px) rotate(calc(var(--rot, 0deg) + 2deg)); }
}

/* Ensure section content sits above the decorative icons */
.section { isolation: isolate; }
.section > .container { position: relative; z-index: 2; }

/* =====================================================
   Reusable cursor/keytap flashes
   ===================================================== */
.cursor-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--coin);
  border-radius: 1px;
  vertical-align: -1px;
  margin: 0 6px;
  position: relative;
  box-shadow: 0 0 0 0 transparent;
  animation: cursorBlink 1.2s steps(1) infinite;
}
.cursor-dot.cd-coral  { background: var(--coral);  }
.cursor-dot.cd-mint   { background: var(--mint);   }
.cursor-dot.cd-indigo { background: var(--indigo); }
.cursor-dot.cd-ink    { background: var(--ink);    }
.cursor-dot.cd-glow   {
  animation: cursorGlow 1.6s steps(1) infinite;
}
.cursor-dot.cd-glow.cd-coral  { box-shadow: 0 0 12px 3px rgba(255, 107, 84, 0.45); }
.cursor-dot.cd-glow.cd-mint   { box-shadow: 0 0 12px 3px rgba(43, 185, 138, 0.45); }
.cursor-dot.cd-glow.cd-indigo { box-shadow: 0 0 12px 3px rgba(79, 70, 229, 0.45);  }
.cursor-dot.cd-glow            { box-shadow: 0 0 12px 3px rgba(241, 181, 58, 0.45);}
.cursor-dot.cd-lg { width: 10px; height: 10px; }
.cursor-dot.cd-sm { width: 6px;  height: 6px; }
@keyframes cursorBlink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes cursorGlow {
  0%, 49%   { opacity: 1; transform: scale(1); }
  50%, 100% { opacity: 0; transform: scale(0.6); }
}

/* Free-floating cursors (positioned absolute inside a relative container) */
.cursor-float {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

/* =====================================================
   Hero illustration — mascot + prompt sticker
   ===================================================== */
.hero-art {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-self: stretch;
  min-height: 460px;
  max-width: 400px;
  margin-inline: auto;
  width: 100%;
}
@media (max-width: 880px) {
  .hero-art { min-height: 420px; }
}

/* --- Mascot card --- */
.mascot-card {
  position: relative;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  overflow: visible;
  isolation: isolate;
}
[data-theme="midnight"] .mascot-card {
  background: transparent;
  border-color: transparent;
}
.mascot-card::before { content: none; }

/* Круглая рамка — статична. Внутри неё «плавает» маскот. */
.mascot-circle {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: #fef8ea;            /* точный фон картинки → плавание бесшовное */
  box-shadow:
    0 0 0 4px var(--coin),
    0 0 0 9px color-mix(in oklab, var(--coin) 26%, transparent),
    0 22px 50px -18px rgba(0, 0, 0, 0.5);
}
.mascot-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  animation: mascotFloat 3.6s ease-in-out infinite;
}
@keyframes mascotFloat {
  0%, 100% { transform: translateY(6px)  scale(1.04) rotate(-0.6deg); }
  50%      { transform: translateY(-8px) scale(1.04) rotate(0.5deg); }
}

/* Key-tap flashes over keyboard area in image */
.mascot-keytap {
  position: absolute;
  z-index: 2;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--coin);
  box-shadow: 0 0 14px 4px rgba(241, 181, 58, 0.55);
  opacity: 0;
  pointer-events: none;
  animation: keyTap 1.8s steps(1) infinite;
}
.mascot-keytap.kt-1 { right: 18%; top: 62%; animation-delay: 0s;    }
.mascot-keytap.kt-2 { right: 11%; top: 60%; animation-delay: 0.6s; background: var(--coral); box-shadow: 0 0 14px 4px rgba(255, 107, 84, 0.55); }
.mascot-keytap.kt-3 { right: 24%; top: 64%; animation-delay: 1.2s; background: var(--mint);  box-shadow: 0 0 14px 4px rgba(43, 185, 138, 0.55); }
@keyframes keyTap {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  10%      { opacity: 1; transform: scale(1.0); }
  20%      { opacity: 0; transform: scale(0.6); }
}
.mascot-chip {
  position: absolute;
  z-index: 2;
  top: 22px;
  font-family: var(--font-pixel);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 9px;
  white-space: nowrap;
  box-shadow: 0 1px 0 var(--line);
}
.mascot-chip-tl { left: 50%; transform: translateX(-50%); color: var(--coral); }

.age-badge {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 22px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--font-pixel);
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.02em;
  box-shadow: 0 3px 0 var(--line), 0 12px 24px -10px rgba(31, 27, 21, 0.25);
  user-select: none;
}
.age-badge .age-plus {
  font-size: 16px;
  color: var(--coin);
  margin-left: 1px;
  vertical-align: 6px;
}
[data-theme="midnight"] .age-badge {
  background: var(--coin);
  color: var(--bg-deep);
  border-color: var(--coin);
}
[data-theme="midnight"] .age-badge .age-plus { color: var(--coral); }

.mascot-spark {
  position: absolute;
  z-index: 2;
  width: 18px; height: 18px;
  color: var(--coin);
}
.mascot-spark-1 { top: 18%;  right: 6%;  color: var(--coral); animation: sparkPulse 2.4s ease-in-out infinite; }
.mascot-spark-2 { top: 58%;  left: 3%;   color: var(--coin);  animation: sparkPulse 2.4s ease-in-out infinite .8s; }
.mascot-spark-3 { bottom: 12%; right: 12%; color: var(--mint); animation: sparkPulse 2.4s ease-in-out infinite 1.4s; }
@keyframes sparkPulse {
  0%, 100% { transform: scale(0.6) rotate(0deg);   opacity: 0; }
  20%      { transform: scale(1.0) rotate(45deg);  opacity: 1; }
  50%      { transform: scale(0.85) rotate(90deg); opacity: 0.7; }
  80%      { transform: scale(0.4) rotate(135deg); opacity: 0; }
}

[data-theme="midnight"] .mascot-card { background: var(--bg-card); }
[data-theme="midnight"] .mascot-chip { background: var(--bg-soft); color: var(--ink); border-color: var(--line); }
[data-theme="midnight"] .mascot-chip-tl { color: var(--coral-2); }

.tile {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 var(--line);
  display: flex;
  flex-direction: column;
}
.tile-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}
.hud-chip {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 8px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.hud-chip-mute { color: var(--ink-mute); background: transparent; border-color: var(--line-soft); }

/* --- Title screen tile (dark, brand-mark centerpiece) --- */
.tile-screen {
  background: var(--strong-bg);
  color: var(--strong-fg);
  border-color: var(--strong-bg);
  min-height: 250px;
  padding: 20px 22px 18px;
  justify-content: space-between;
}
.tile-screen .hud-chip { background: rgba(255,255,255,.07); color: var(--coin-2); border-color: rgba(255,255,255,.16); }
.tile-screen .hud-chip-mute { color: rgba(255,255,255,.50); background: transparent; }
.tile-screen-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 4px 0;
  gap: 4px;
}
.bigmark {
  font-family: var(--font-pixel);
  font-size: clamp(56px, 12vw, 96px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  position: relative;
  display: inline-flex;
}
.bm-l {
  display: inline-block;
  position: relative;
  text-shadow:
    3px 3px 0 rgba(0,0,0,.55);
}
.bm-v { color: #ff7eb6; }   /* pink */
.bm-i { color: #faf3d6; }   /* cream */
.bm-b { color: #ffce4d; }   /* gold */
.bm-o { color: #2ee8a8; }   /* mint */
[data-theme="cream"] .bm-v,
:root .bm-v { color: #ff6b54; }
[data-theme="cream"] .bm-i,
:root .bm-i { color: #fdf8ea; }
[data-theme="cream"] .bm-b,
:root .bm-b { color: #f1b53a; }
[data-theme="cream"] .bm-o,
:root .bm-o { color: #2bb98a; }
[data-theme="arcade"] .bm-v { color: #ff7eb6; }
[data-theme="arcade"] .bm-i { color: #faf3d6; }
[data-theme="arcade"] .bm-b { color: #ffce4d; }
[data-theme="arcade"] .bm-o { color: #2ee8a8; }
.bigmark-sub {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: rgba(255,255,255,.50);
  letter-spacing: .04em;
  margin-top: 6px;
  white-space: nowrap;
}
.tile-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--coin-2);
  gap: 16px;
}
.tile-foot .footstats {
  display: flex;
  gap: 14px;
  color: rgba(255,255,255,.55);
}
.tile-foot .footstats b { color: var(--coin-2); font-weight: 400; }
.blink-press {
  animation: blinkPress 1.05s steps(1) infinite;
  white-space: nowrap;
}

/* --- Prompt tile (light, shows the input) --- */
.tile-prompt {
  min-height: 200px;
  background: var(--bg-card);
  gap: 14px;
  padding: 18px 22px;
}
.prompt-line {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  flex: 1;
  padding: 6px 0;
  min-height: 56px;
}
.prompt-arrow { color: var(--coral); font-weight: 700; flex: 0 0 auto; }
.prompt-text { display: inline; flex: 1; min-width: 0; }
.caret {
  display: inline-block;
  font-family: var(--font-pixel);
  font-weight: 400;
  color: var(--ink);
  animation: caretBlink 0.9s steps(1) infinite;
  margin-left: 2px;
}
@keyframes caretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.genre-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-mute);
  white-space: nowrap;
}
.chip-on {
  background: var(--strong-bg);
  color: var(--strong-fg);
  border-color: var(--strong-bg);
}
.build-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.build-btn {
  font-family: var(--font-pixel);
  font-size: 14px;
  background: var(--coral);
  color: #fff;
  padding: 5px 11px;
  border-radius: 4px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.meter {
  flex: 1;
  height: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  width: 0%;
  background:
    repeating-linear-gradient(90deg,
      var(--coin) 0 6px,
      var(--coin-2) 6px 12px);
  animation: meterFill 3.2s cubic-bezier(.2,.7,.4,1) infinite;
}
@keyframes meterFill {
  0%   { width: 8%; }
  60%  { width: 84%; }
  85%  { width: 100%; }
  100% { width: 8%; }
}
.meter-pct {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--ink-mute);
  min-width: 36px;
  text-align: right;
}

/* --- Stats strip (kept) --- */
.tile-stats {
  flex-direction: row;
  align-items: center;
  padding: 12px 18px;
  gap: 0;
  min-height: 0;
}
.tile-stats .stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  text-align: center;
  min-width: 0;
}
.tile-stats .stat b {
  font-family: var(--font-pixel);
  font-size: 20px;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: .01em;
  white-space: nowrap;
}
.tile-stats .stat i {
  font-size: 10.5px;
  font-style: normal;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}
.stat-sep {
  width: 1px;
  height: 26px;
  background: var(--line);
  flex: 0 0 auto;
}

/* Scanlines */
.tile-screen .scanlines {
  pointer-events: none;
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,.16) 0 2px,
    transparent 2px 4px
  );
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity .25s;
  border-radius: var(--radius-lg);
}
.hero-art.crt .tile-screen .scanlines { opacity: .35; }

/* Pixel image rendering */
.pixelated, .pixelated svg, .pixelated * { image-rendering: pixelated; image-rendering: crisp-edges; }
svg.sprite { image-rendering: pixelated; image-rendering: crisp-edges; shape-rendering: crispEdges; }

/* =====================================================
   Sections — Problem
   ===================================================== */
.bands {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--ink-mute);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.bands::before, .bands::after {
  content: "";
  flex: 1;
  height: 4px;
  background-image: linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
  background-size: 16px 4px;
}

.problem-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) {
  .problem-grid { grid-template-columns: 1fr; }
}
.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pain-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  text-wrap: balance;
}
.pain-card p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.pain-num {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--ink-mute);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 8px;
  display: inline-block;
  margin-bottom: 14px;
}

/* =====================================================
   How it works — dark band
   ===================================================== */
.steps {
  background: var(--bg-deep);
  color: #f3ead0;
  position: relative;
  overflow: hidden;
}
.steps::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 0%, rgba(255,107,84,.15), transparent 40%),
    radial-gradient(circle at 90% 100%, rgba(79,70,229,.30), transparent 40%);
  pointer-events: none;
}
.steps .h-section, .steps .lede, .steps .eyebrow { color: #f3ead0; }
.steps .lede { color: #d8cea8; }
.steps .eyebrow { color: #b8b08a; }
.steps-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
}
@media (max-width: 880px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.step-num {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--coin);
  margin-bottom: 8px;
  display: block;
}
.step-card h3 {
  color: #fff7e0;
  font-size: 22px;
  font-weight: 700;
  margin: 10px 0 12px;
}
.step-card p { color: #d8cea8; font-size: 15.5px; margin: 0; }
.step-icon {
  width: 64px; height: 64px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
/* Step 1 — cursor + text lines */
.step-icon-words .glyph-cursor {
  width: 4px;
  height: 20px;
  background: var(--coin);
  position: absolute;
  left: 38px;
  top: 14px;
  animation: caretBlink .9s steps(1) infinite;
}
.step-icon-words .glyph-line {
  width: 22px; height: 4px;
  background: rgba(255,255,255,.55);
  position: absolute;
  left: 12px;
  top: 22px;
}
.step-icon-words .glyph-line.short { width: 14px; top: 34px; }
/* Step 2 — pixel sparkles */
.step-icon-build .glyph-spark {
  position: absolute;
  background: var(--coin);
}
.step-icon-build .glyph-spark::before,
.step-icon-build .glyph-spark::after {
  content: "";
  position: absolute;
  background: var(--coin);
}
.step-icon-build .glyph-spark.s1 {
  width: 6px; height: 6px;
  left: 28px; top: 14px;
}
.step-icon-build .glyph-spark.s1::before { width: 14px; height: 2px; top: 2px; left: -4px; }
.step-icon-build .glyph-spark.s1::after  { width: 2px; height: 14px; top: -4px; left: 2px; }
.step-icon-build .glyph-spark.s2 {
  width: 4px; height: 4px;
  background: var(--coral);
  left: 14px; top: 38px;
  box-shadow: -3px 0 0 var(--coral), 3px 0 0 var(--coral), 0 -3px 0 var(--coral), 0 3px 0 var(--coral);
}
.step-icon-build .glyph-spark.s2::before,
.step-icon-build .glyph-spark.s2::after { display: none; }
.step-icon-build .glyph-spark.s3 {
  width: 4px; height: 4px;
  left: 46px; top: 38px;
  box-shadow: -3px 0 0 var(--coin), 3px 0 0 var(--coin), 0 -3px 0 var(--coin), 0 3px 0 var(--coin);
}
.step-icon-build .glyph-spark.s3::before,
.step-icon-build .glyph-spark.s3::after { display: none; }
/* Step 3 — swap blocks */
.step-icon-remix .glyph-swap {
  position: absolute;
  width: 18px; height: 18px;
}
.step-icon-remix .glyph-swap.a {
  background: var(--coral);
  left: 14px; top: 14px;
  box-shadow: 4px 4px 0 rgba(0,0,0,.25);
}
.step-icon-remix .glyph-swap.b {
  background: var(--mint);
  right: 14px; bottom: 14px;
  box-shadow: 4px 4px 0 rgba(0,0,0,.25);
}
.step-icon-remix::before {
  content: "↔";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-pixel);
  font-size: 24px;
  color: rgba(255,255,255,.7);
  z-index: 1;
}

/* =====================================================
   Genres
   ===================================================== */
.genres-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .genres-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .genres-grid { grid-template-columns: 1fr; } }
.genre-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.genre-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.genre-thumb {
  aspect-ratio: 5 / 3.5;
  position: relative;
  overflow: hidden;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.genre-thumb .g-letter {
  position: absolute;
  font-family: var(--font-pixel);
  font-size: 130px;
  line-height: 0.8;
  font-weight: 400;
  letter-spacing: -0.05em;
  right: -8px;
  bottom: -22px;
  opacity: .18;
  pointer-events: none;
  user-select: none;
}
.g-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-pixel);
  font-size: 12px;
  letter-spacing: .04em;
  position: relative;
  z-index: 1;
}
.g-platformer .genre-thumb { background: linear-gradient(160deg, #ffd6cd, #ffe8d4); color: #4a1e16; }
.g-platformer .g-letter { color: #ff6b54; }
.g-platformer .g-stats { color: #6e2a1d; }
.g-maze .genre-thumb { background: linear-gradient(160deg, #d8e1ff, #ecf0ff); color: #1a1f4d; }
.g-maze .g-letter { color: #4f46e5; }
.g-maze .g-stats { color: #2c2f6b; }
.g-arcade .genre-thumb { background: linear-gradient(170deg, #14163c, #1f2456); color: #fff7c2; }
.g-arcade .g-letter { color: #f1b53a; opacity: .35; }
.g-arcade .g-stats { color: #ffd166; }
.g-defense .genre-thumb { background: linear-gradient(160deg, #c9efdc, #e1f5e8); color: #133b29; }
.g-defense .g-letter { color: #2bb98a; }
.g-defense .g-stats { color: #1d5a3f; }

/* Motifs */
.g-motif {
  position: relative;
  flex: 1;
  margin: 14px 0;
  z-index: 1;
}
/* Platformer: stacked platforms + coin */
.motif-platformer { display: block; }
.motif-platformer .plat {
  display: block;
  height: 12px;
  background: #ff6b54;
  box-shadow:
    0 0 0 1px #fff inset,
    4px 4px 0 #4a1e16;
  image-rendering: pixelated;
  position: absolute;
}
.motif-platformer .plat:nth-child(1){ width: 40%; top: 8%;  left: 2%; }
.motif-platformer .plat:nth-child(2){ width: 28%; top: 38%; left: 38%; }
.motif-platformer .plat:nth-child(3){ width: 48%; top: 70%; left: 12%; }
.motif-platformer .dot {
  position: absolute;
  width: 14px; height: 14px;
  background: #f1b53a;
  top: 12%; left: 56%;
  box-shadow: 4px 4px 0 #4a1e16, inset 2px 2px 0 #ffe8a3;
}

/* Maze: dotted grid */
.motif-maze {
  background-image:
    linear-gradient(to right, #4f46e5 1px, transparent 1px),
    linear-gradient(to bottom, #4f46e5 1px, transparent 1px);
  background-size: 12px 12px;
  background-position: -1px -1px;
  opacity: .35;
  border-radius: 4px;
}
.g-maze .g-motif::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  background: #ff6b54;
  bottom: 18%;
  left: 30%;
  box-shadow: 4px 4px 0 #1a1f4d;
}
.g-maze .g-motif::before {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  background: #f1b53a;
  top: 18%;
  right: 18%;
}

/* Arcade: scattered stars/dots */
.motif-arcade {
  background-image:
    radial-gradient(circle, #fff7c2 1px, transparent 1.5px);
  background-size: 18px 18px;
  background-position: 0 0;
  opacity: .9;
}
.g-arcade .g-motif::after {
  content: "▲";
  position: absolute;
  font-size: 28px;
  color: #ffd166;
  left: 12%;
  bottom: 6%;
  text-shadow: 4px 4px 0 #060819;
}
.g-arcade .g-motif::before {
  content: "✦";
  position: absolute;
  font-size: 22px;
  color: #ff6b54;
  right: 18%;
  top: 20%;
}

/* Defense: triangles ascending toward shield */
.motif-defense {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 0 6px;
}
.motif-defense .tri {
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
}
.motif-defense .tri:nth-child(1){ border-bottom: 14px solid #2bb98a; }
.motif-defense .tri:nth-child(2){ border-bottom: 22px solid #2bb98a; }
.motif-defense .tri:nth-child(3){ border-bottom: 18px solid #2bb98a; }
.motif-defense .tri:nth-child(4){ border-bottom: 30px solid #1d5a3f; }
.motif-defense .tri:nth-child(5){ border-bottom: 16px solid #2bb98a; }
.motif-defense .tri:nth-child(6){ border-bottom: 24px solid #2bb98a; }
.motif-defense .shield {
  margin-left: auto;
  width: 22px; height: 26px;
  background: #ff6b54;
  clip-path: polygon(50% 0, 100% 25%, 100% 70%, 50% 100%, 0 70%, 0 25%);
  align-self: center;
  box-shadow: inset 0 0 0 3px #fff;
  filter: drop-shadow(3px 3px 0 #133b29);
}
.genre-body { padding: 18px 20px 22px; position: relative; }
.genre-tag {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--indigo);
  letter-spacing: .04em;
}
[data-theme="midnight"] .genre-tag { color: var(--coin-2); }
.genre-card h3 { font-size: 19px; font-weight: 700; margin: 4px 0 8px; }
.genre-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.genres-foot {
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-mute);
}

/* =====================================================
   Pricing
   ===================================================== */
.pricing-wrap {
  background: var(--bg-soft);
}
.price-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 18px;
}
@media (max-width: 880px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.price-card.feat {
  background: var(--strong-bg);
  color: var(--strong-fg);
  border-color: var(--strong-bg);
  overflow: hidden;
}
.price-card.feat::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 100% 0%, rgba(241,181,58,.22), transparent 40%);
  pointer-events: none;
}
.price-tag {
  font-family: var(--font-pixel);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.price-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 24px;
  line-height: 1;
  z-index: 1;
}
.price-badge.badge-free {
  color: #fff;
  background: var(--mint);
  box-shadow: 0 3px 0 color-mix(in oklab, var(--mint) 60%, #000);
}
.price-badge.badge-fam {
  color: var(--strong-bg, #0a0e3f);
  background: var(--coin);
  box-shadow: 0 3px 0 color-mix(in oklab, var(--coin) 55%, #000);
}
.price-card.feat .price-tag { color: var(--coin-2); }
.price-name { font-size: 26px; font-weight: 700; margin-bottom: 6px; letter-spacing: 0; }
.price-card.feat .price-name { color: #fff; }
.price-headline { font-size: 38px; font-weight: 700; letter-spacing: 0; }
.price-card.feat .price-headline { color: #fff; }
.price-headline small { font-size: 16px; font-weight: 600; color: var(--ink-mute); }
.price-card.feat .price-headline small { color: rgba(255,255,255,.65); }
.price-desc { margin-top: 14px; color: var(--ink-2); }
.price-card.feat .price-desc { color: rgba(255,255,255,.85); }
.price-features {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}
.price-features li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  align-items: center;
}
.price-features li::before {
  content: "";
  width: 12px; height: 12px;
  flex: 0 0 12px;
  background: var(--mint);
  box-shadow:
    inset 0 0 0 2px var(--mint),
    0 0 0 0 transparent;
  image-rendering: pixelated;
  clip-path: polygon(0 50%, 25% 50%, 25% 75%, 50% 75%, 50% 50%, 75% 50%, 75% 25%, 100% 25%, 100% 0%, 75% 0%, 75% 25%, 50% 25%, 50% 50%, 25% 50%, 25% 25%, 0 25%);
}
.price-card.feat .price-features li::before { background: var(--coin); }
.early-bird {
  margin-top: 24px;
  padding: 16px 18px;
  background: var(--coin);
  color: var(--ink);
  border-radius: var(--radius);
  display: flex;
  gap: 14px;
  align-items: center;
  font-weight: 600;
}
.price-card.feat .early-bird { background: var(--coin); color: var(--ink); }
.early-bird b { font-weight: 700; }
.early-bird-icon {
  width: 32px; height: 32px;
  flex: 0 0 32px;
}

/* =====================================================
   Big form
   ===================================================== */
.cta-section {
  background: var(--strong-bg);
  color: var(--strong-fg);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-section::before {
  content:"";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(255,107,84,.25), transparent 35%),
    radial-gradient(circle at 88% 80%, rgba(43,185,138,.22), transparent 35%);
  pointer-events: none;
}
.cta-section .h-section { color: #fff; }
.cta-section .lede { color: rgba(255,255,255,.78); margin-left: auto; margin-right: auto; }
.cta-form {
  margin: 36px auto 0;
  max-width: 560px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: left;
}
.cta-form label {
  font-size: 13px;
  color: rgba(255,255,255,.72);
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
.cta-form .field { margin-bottom: 14px; }
.cta-form input,
.cta-form select {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 16px 18px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.20);
  color: #fff;
  border-radius: var(--radius);
  outline: 0;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.cta-form input::placeholder { color: rgba(255,255,255,.45); }
.cta-form input:focus,
.cta-form select:focus {
  border-color: var(--coin);
  background: rgba(255,255,255,.10);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--coin) 25%, transparent);
}
.cta-form input.error {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--coral) 22%, transparent);
}
.cta-form select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='white' stroke-width='1.5' fill='none' opacity='.7'/></svg>"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 40px; }
.cta-form .btn { width: 100%; padding: 18px 24px; font-size: 17px; margin-top: 4px; }
.cta-foot {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.55);
}

/* Success state */
.success-state {
  display: none;
  text-align: center;
  padding: 12px 12px 8px;
}
.success-state.show {
  display: block;
  animation: pop .35s cubic-bezier(.2,.9,.4,1.2) forwards;
  opacity: 1;
}
@keyframes pop {
  from { transform: scale(.85); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.success-state h3 {
  font-family: var(--font-pixel);
  font-size: 30px;
  margin: 14px 0 8px;
  color: var(--coin);
  letter-spacing: .02em;
}
.success-state p { color: rgba(255,255,255,.85); margin: 0 auto; max-width: 32ch; }
.achievement {
  width: 96px; height: 96px;
  margin: 0 auto;
  position: relative;
  animation: bounce 1.2s ease-in-out infinite;
}
.medal {
  position: relative;
  width: 96px; height: 96px;
  display: grid;
  place-items: center;
}
.medal::before {
  content: "";
  position: absolute;
  inset: 14px 18px 50% 18px;
  background: var(--coral);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 50% 80%, 20% 100%);
}
.medal-inner {
  position: absolute;
  width: 56px; height: 56px;
  bottom: 6px;
  border-radius: 50%;
  background: var(--coin);
  box-shadow:
    inset 0 0 0 5px var(--coin-2),
    inset 0 0 0 10px var(--coin);
}
.medal-star {
  position: absolute;
  width: 22px; height: 22px;
  bottom: 23px;
  background: var(--bg);
  /* pixel-y star with clip-path */
  clip-path: polygon(50% 0, 65% 35%, 100% 35%, 70% 58%, 80% 100%, 50% 75%, 20% 100%, 30% 58%, 0 35%, 35% 35%);
}

/* coin-mini reusable */
.coin-mini {
  width: 28px; height: 28px;
  flex: 0 0 28px;
  background: var(--coin);
  border-radius: 50%;
  position: relative;
  box-shadow: inset 0 0 0 3px var(--coin-2), 2px 2px 0 rgba(0,0,0,.18);
}
.coin-mini::after {
  content: "★";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #8a5a14;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* =====================================================
   FAQ
   ===================================================== */
.faq-list { margin-top: 48px; display: grid; gap: 10px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 22px 24px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-q .chev {
  width: 16px; height: 16px;
  background: var(--ink);
  flex: 0 0 16px;
  transition: transform .25s;
  clip-path: polygon(0 35%, 50% 85%, 100% 35%, 100% 50%, 50% 100%, 0 50%);
}
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-a {
  padding: 0 24px 24px;
  color: var(--ink-2);
  font-size: 16px;
  max-width: 70ch;
}
.faq-item details > summary { list-style: none; cursor: pointer; }
.faq-item details > summary::-webkit-details-marker { display: none; }

/* =====================================================
   Footer
   ===================================================== */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  background: var(--bg-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--ink-mute);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-mini {
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 420px;
}
.footer-mini input {
  flex: 1; min-width: 0;
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  outline: 0;
}
.footer-mini button {
  background: var(--strong-bg);
  color: var(--strong-fg);
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  padding-top: 22px;
  gap: 16px;
  flex-wrap: wrap;
}

/* =====================================================
   Cookie banner
   ===================================================== */
.cookie {
  position: fixed;
  z-index: 60;
  left: 16px; right: 16px; bottom: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  color: var(--ink-2);
  transform: translateY(120%);
  transition: transform .35s cubic-bezier(.2,.9,.4,1.2);
  max-width: 720px;
  margin: 0 auto;
}
.cookie.show { transform: translateY(0); }
.cookie button {
  background: var(--strong-bg);
  color: var(--strong-fg);
  border: 0;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
@media (max-width: 560px) { .cookie { flex-direction: column; align-items: stretch; text-align: left; } }

/* =====================================================
   Tweaks panel
   ===================================================== */
.tweaks {
  position: fixed;
  z-index: 70;
  right: 18px;
  bottom: 18px;
  width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px 18px;
  box-shadow: var(--shadow-lg);
  display: none;
  font-size: 14px;
}
.tweaks.show { display: block; }
.tweaks h5 {
  font-family: var(--font-pixel);
  font-size: 15px;
  margin: 0 0 12px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tweaks-close {
  background: transparent;
  border: 0;
  font-size: 18px;
  color: var(--ink-mute);
  padding: 0;
  width: 22px; height: 22px;
}
.tweak-row { margin-bottom: 14px; }
.tweak-row:last-child { margin-bottom: 0; }
.tweak-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
  display: block;
}
.tweak-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tweak-options button {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  flex: 1;
  min-width: max-content;
}
.tweak-options button.active {
  background: var(--strong-bg);
  color: var(--strong-fg);
  border-color: var(--strong-bg);
}
.tweak-row.row-pal .tweak-options button.active { box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px var(--ink); }

/* =====================================================
   Pixel sprites — common
   ===================================================== */
.sprite-coin .a { fill: #f1b53a; }
.sprite-coin .b { fill: #ffe080; }
.sprite-coin .c { fill: #b27a18; }

/* CRT flicker on hero scene */
@keyframes blinkPress {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.blink { animation: blinkPress 1.1s steps(1) infinite; }

/* small util */
.center { text-align: center; }
.muted { color: var(--ink-mute); }
.spacer-l { height: 24px; }
.spacer-m { height: 16px; }

