:root {
  --bg: #04140f;
  --bg-2: #072019;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef7f2;
  --muted: #a3bdb1;
  --gold: #ffd977;
  --gold-2: #f3a83b;
  --pink: #f39bd6;
  --mint: #5ee6a8;
  --radius: 22px;
  --max: 1160px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(243, 155, 214, 0.22), transparent 70%),
    radial-gradient(50% 45% at 0% 30%, rgba(94, 230, 168, 0.16), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 60%);
}

/* Starfield */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff8, transparent),
    radial-gradient(1px 1px at 32% 8%, #fff7, transparent),
    radial-gradient(1.5px 1.5px at 58% 22%, #fff6, transparent),
    radial-gradient(1px 1px at 76% 12%, #fff9, transparent),
    radial-gradient(1px 1px at 90% 34%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 22% 46%, #fff5, transparent),
    radial-gradient(1px 1px at 46% 60%, #fff4, transparent),
    radial-gradient(1px 1px at 68% 74%, #fff5, transparent),
    radial-gradient(1.5px 1.5px at 8% 82%, #fff4, transparent),
    radial-gradient(1px 1px at 94% 88%, #fff5, transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}

@keyframes twinkle { from { opacity: 0.55; } to { opacity: 1; } }

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }

img { max-width: 100%; display: block; }

.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(4, 20, 15, 0.6);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 4px 14px rgba(94, 230, 168, 0.35); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

.nav-toggle {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 760px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 16px;
    background: rgba(4, 20, 15, 0.97);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 12px; }
  .nav-links .btn { justify-content: center; margin-top: 6px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: #1b1405;
  background: linear-gradient(180deg, #ffe596, var(--gold-2));
  box-shadow: 0 10px 30px -8px rgba(243, 168, 59, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.btn-primary:hover { color: #1b1405; box-shadow: 0 14px 36px -8px rgba(243, 168, 59, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.7); }

.nav-links .btn-primary { padding: 9px 18px; color: #1b1405; background: linear-gradient(180deg, #ffe596, var(--gold-2)); }

.btn-ghost { color: var(--text); background: var(--surface-2); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px 10px 16px;
  border-radius: 14px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
}
.play-badge:hover { color: #fff; transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.5); }
.play-badge svg { width: 26px; height: 28px; flex: none; }
.play-badge small { display: block; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; line-height: 1.2; }
.play-badge strong { display: block; font-size: 1.2rem; font-weight: 600; line-height: 1.2; }

/* ---------- Shared hero type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--mint);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 22px 0 18px;
  background: linear-gradient(180deg, #fff6d0 0%, var(--gold) 45%, var(--gold-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 24px rgba(243, 168, 59, 0.35));
}
.display span {
  background: linear-gradient(90deg, var(--pink), #c9a7ff 50%, var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
}

.lead { font-size: 1.18rem; color: var(--muted); max-width: 34ch; margin: 0 0 30px; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.meta-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; color: var(--muted); font-size: 0.9rem; }
.meta-row div { display: flex; align-items: center; gap: 8px; }
.meta-row svg { width: 18px; height: 18px; color: var(--mint); }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head h2, .page-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  line-height: 1.1;
  margin: 14px 0 12px;
}
.section-head p { color: var(--muted); margin: 0; font-size: 1.08rem; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  transition: transform 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.18); }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin: 18px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.icon-chip {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  color: #10241b;
  background: var(--chip, var(--mint));
  box-shadow: 0 8px 22px -6px var(--chip, var(--mint));
}
.icon-chip svg { width: 24px; height: 24px; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s;
}
.gallery figure:hover { transform: scale(1.02); }
.gallery img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 820px) {
  .gallery {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .gallery figure { scroll-snap-align: center; }
}

/* How to play */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { font-family: var(--font-display); font-weight: 600; margin: 14px 0 6px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 56px 32px;
  border-radius: 32px;
  text-align: center;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(243, 155, 214, 0.45), transparent 60%),
    radial-gradient(80% 120% at 0% 100%, rgba(94, 230, 168, 0.4), transparent 60%),
    #0a2a20;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.cta-band h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 0 0 10px; line-height: 1.1; }
.cta-band p { color: #cfe3da; margin: 0 auto 28px; max-width: 46ch; }

/* ---------- Document pages ---------- */
.doc-hero { padding: 64px 0 24px; text-align: center; }
.doc-hero p { color: var(--muted); margin: 0; }
.doc {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px clamp(20px, 5vw, 56px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
}
.doc h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  margin: 40px 0 10px;
  padding-top: 8px;
  scroll-margin-top: 90px;
}
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.doc p, .doc li { color: #cfe0d8; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--mint); }
.doc strong { color: var(--text); }
.doc .toc {
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}
.doc .toc p { margin: 0 0 6px; font-weight: 600; color: var(--text); }
.doc .toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 28px; }
.doc .toc a { color: var(--muted); text-decoration: none; }
.doc .toc a:hover { color: var(--gold); }
@media (max-width: 560px) { .doc .toc ol { columns: 1; } }

.callout {
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(94, 230, 168, 0.08);
  border: 1px solid rgba(94, 230, 168, 0.25);
}
.callout p { margin: 0; }

.table-wrap { overflow-x: auto; margin: 16px 0; border-radius: 14px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: rgba(255, 255, 255, 0.05); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td { color: #cfe0d8; }

/* About */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.about-card { text-align: center; position: sticky; top: 96px; }
.about-card img { width: 140px; height: 140px; margin: 0 auto 18px; border-radius: 32px; box-shadow: 0 20px 50px -14px rgba(94, 230, 168, 0.6); }
.about-card h2 { font-family: var(--font-display); margin: 0; font-size: 1.6rem; }
.about-card p { color: var(--muted); margin: 4px 0 20px; }
.facts { list-style: none; padding: 0; margin: 0 0 20px; text-align: left; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.93rem; }
.facts li span { color: var(--muted); }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-card { position: static; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 80px; border-top: 1px solid var(--border); padding: 48px 0 36px; color: var(--muted); font-size: 0.92rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-grid p { margin: 12px 0 0; max-width: 34ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; align-items: center; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.85rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.about-card.doc { padding: 32px 24px; }
.about-card .btn { white-space: nowrap; }
.facts li span { flex: none; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s;
}
.faq details[open] { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.16); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--gold);
  font-size: 1.2rem;
  transition: transform 0.25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

/* ---------- Web game ---------- */
@property --g1 { syntax: "<color>"; inherits: true; initial-value: #0d4a35; }
@property --g2 { syntax: "<color>"; inherits: true; initial-value: #03140e; }

.play-section { padding: 24px 0 40px; }

.game {
  position: relative;
  height: min(78vh, 760px);
  min-height: 520px;
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(255, 255, 255, 0.10), transparent 70%),
    linear-gradient(180deg, var(--g1), var(--g2));
  transition: --g1 1.6s ease, --g2 1.6s ease;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.game:focus-visible { box-shadow: 0 0 0 3px var(--gold), 0 40px 80px -40px rgba(0, 0, 0, 0.9); }
.game canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.game:fullscreen { height: 100vh; border-radius: 0; border: 0; }

.hud {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.game.is-playing .hud { opacity: 1; }
.hud-score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 9vw, 5rem);
  line-height: 1;
  color: #fff;
  text-shadow: 0 6px 30px rgba(255, 255, 255, 0.35);
}
.hud-score.bump { animation: bump 0.25s ease; }
@keyframes bump { 40% { transform: scale(1.18); } }
.hud-best { margin-top: 6px; color: rgba(255, 255, 255, 0.7); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

.combo-toast, .theme-toast {
  position: absolute;
  left: 50%;
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
}
.combo-toast {
  top: 34%;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  background: linear-gradient(180deg, #fff6d0, var(--gold) 50%, var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 16px rgba(243, 168, 59, 0.6));
  transform: translate(-50%, 0);
}
.combo-toast.show { animation: combo 0.9s ease-out; }
@keyframes combo {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(0.8); }
  20% { opacity: 1; transform: translate(-50%, 0) scale(1.08); }
  70% { opacity: 1; transform: translate(-50%, -8px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -24px) scale(1); }
}
.theme-toast {
  bottom: 28px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transform: translateX(-50%);
}
.theme-toast.show { animation: theme 2.4s ease; }
@keyframes theme {
  0%, 100% { opacity: 0; transform: translate(-50%, 10px); }
  15%, 80% { opacity: 1; transform: translate(-50%, 0); }
}

.game-controls { position: absolute; top: 16px; right: 16px; display: flex; gap: 8px; z-index: 3; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s;
}
.icon-btn:hover { background: rgba(0, 0, 0, 0.45); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .off, .icon-btn.is-muted .on { display: none; }
.icon-btn.is-muted .off { display: block; }
.icon-btn[hidden] { display: none; }

.overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: radial-gradient(60% 55% at 50% 50%, rgba(3, 12, 9, 0.55), rgba(3, 12, 9, 0.15));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.overlay.is-visible { opacity: 1; visibility: visible; }
.overlay .display { margin: 18px 0 12px; }
.overlay-lead { max-width: 36ch; margin: 0 0 26px; color: #d7e8e0; font-size: 1.08rem; }
.overlay-note { margin: 16px 0 0; color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
.overlay-note b { color: #fff; }
kbd {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom-width: 2px;
  background: rgba(255, 255, 255, 0.08);
  font: 600 0.85em var(--font-body);
}
.btn-lg { padding: 16px 32px; font-size: 1.08rem; border: 0; cursor: pointer; font-family: var(--font-body); }

.over-label { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.over-score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 16vw, 8rem);
  line-height: 1;
  margin: 6px 0 4px;
  background: linear-gradient(180deg, #fff6d0 0%, var(--gold) 45%, var(--gold-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 24px rgba(243, 168, 59, 0.4));
}
.over-best { margin: 0 0 24px; color: rgba(255, 255, 255, 0.75); }
.over-best b { color: #fff; }
.new-best {
  display: inline-block;
  margin-right: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--pink);
  color: #2a0a1f;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.new-best[hidden] { display: none; }

.app-promo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 10px 18px 10px 10px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  text-decoration: none;
  text-align: left;
  backdrop-filter: blur(8px);
  transition: transform 0.2s, background 0.2s;
}
.app-promo:hover { color: #fff; transform: translateY(-2px); background: rgba(0, 0, 0, 0.5); }
.app-promo img { width: 44px; height: 44px; border-radius: 12px; }
.app-promo strong { display: block; font-size: 0.95rem; }
.app-promo small { display: block; color: rgba(255, 255, 255, 0.7); font-size: 0.8rem; }

.play-below { text-align: center; padding-top: 32px; }
.play-below .lead { max-width: 60ch; margin: 0 auto 22px; font-size: 1.05rem; }
.play-below .cta-row, .play-below .meta-row { justify-content: center; }
.play-below .meta-row { margin-top: 22px; }

@media (max-width: 640px) {
  .play-section { padding-top: 12px; }
  .play-section .wrap { width: min(100% - 16px, var(--max)); }
  .game { height: calc(100svh - 68px - 28px); min-height: 480px; border-radius: 24px; }
  .hud { top: 22px; }
}
