/* Shared styles for individual game pages (nuclear-warfare.html, oh-my-potions.html, times-up.html, …).
   Witchell has its own themed page and does not use this file. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100%;
  font-family: 'Rajdhani', sans-serif;
  color: #fff;
  background: linear-gradient(160deg, #0a0a1e 0%, #140828 50%, #280a14 100%) fixed;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 20%, rgba(255,90,20,.09), transparent),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(255,140,50,.05), transparent);
  z-index: 0;
  pointer-events: none;
}

a { color: inherit; }
img { max-width: 100%; }

:focus-visible {
  outline: 2px solid #ffb347;
  outline-offset: 3px;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* ── Header / Nav ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(10,10,30,.96);
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.logo-icon {
  width: 44px; height: 44px;
  filter: drop-shadow(0 0 8px rgba(255,100,30,.7));
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ff6a2f, #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav { display: flex; gap: 36px; }

nav a {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,.55);
  transition: color .3s, text-shadow .3s;
  position: relative;
}

nav a:hover { color: #fff; text-shadow: 0 0 8px rgba(255,120,40,.6); }

nav a.active { color: #ff8c42; text-shadow: 0 0 10px rgba(255,120,40,.5); }

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff6a2f, #ffb347);
  border-radius: 2px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%; height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Shared layout ── */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; }

.section { padding: clamp(48px, 7vw, 88px) 24px; }

.section--alt {
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01));
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(28px, 4vw, 44px); }

.kicker {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ff8c42;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 10px;
}

.section-title::after {
  content: '';
  display: block;
  width: 64px; height: 3px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff6a2f, #ffb347);
}

/* ── Hero ── */
.hero { padding: clamp(32px, 5vw, 72px) 24px clamp(48px, 7vw, 88px); }

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero--wide .hero-inner { grid-template-columns: 1fr 1fr; }

.hero-copy { min-width: 0; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,.55);
  transition: color .25s, transform .25s;
}

.back-link:hover { color: #ffb347; transform: translateX(-3px); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.genre-tag {
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffb347;
  background: rgba(255,140,60,.1);
  border: 1px solid rgba(255,140,60,.25);
  padding: 3px 12px;
  border-radius: 6px;
}

.status {
  padding: 3px 12px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: .6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 20px;
  line-height: 1.8;
}

.status.out { background: linear-gradient(135deg, #34a853, #0f9d58); }
.status.soon { background: linear-gradient(135deg, #ff5e1a, #ff8c42); }

.game-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 18px 0 12px;
  background: linear-gradient(135deg, #ffffff 0%, #ff8c42 45%, #ff5e1a 70%, #ffb347 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.tagline {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: clamp(.82rem, 1.4vw, 1rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffd0a8;
}

.lede {
  max-width: 54ch;
  margin-top: 18px;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255,255,255,.7);
}

.hero .store-row { margin-top: 30px; }

.hero-visual {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: min(440px, 95%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,94,26,.25), rgba(255,140,66,.08) 45%, transparent 68%);
  pointer-events: none;
}

/* Device frames */
.phone, .screen {
  position: relative;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.15);
  background: linear-gradient(160deg, #241a40, #0b0818 60%);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 50px rgba(255,90,20,.15);
}

.phone { width: min(280px, 100%); border-radius: 32px; }
.screen { width: 100%; border-radius: 20px; }

.phone img, .screen img { display: block; width: 100%; height: auto; }
.phone img { border-radius: 25px; }
.screen img { border-radius: 13px; }

.hero-visual .phone { transform: rotate(2deg); }

/* ── Store buttons ── */
.store-row { display: flex; flex-wrap: wrap; gap: 14px; }

.store-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  border-radius: 50px;
  transition: transform .3s, box-shadow .3s;
  white-space: nowrap;
}

.store-btn svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

.store-btn.android { background: linear-gradient(135deg, #34a853, #0f9d58); box-shadow: 0 4px 20px rgba(52,168,83,.3); }
.store-btn.ios { background: linear-gradient(135deg, #555, #333); box-shadow: 0 4px 20px rgba(0,0,0,.3); }
.store-btn.windows { background: linear-gradient(135deg, #00a4ef, #0078d4); box-shadow: 0 4px 20px rgba(0,120,212,.3); }

a.store-btn:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 8px 30px rgba(255,90,20,.25); }

.store-btn.disabled { cursor: default; opacity: .45; box-shadow: none; }

.soon-label {
  position: absolute;
  top: -10px; right: -8px;
  padding: 2px 10px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: .55rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ff5e1a, #ff8c42);
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(255,90,20,.4);
  line-height: 1.6;
}

/* ── Screenshots ── */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.4vw, 28px);
  align-items: start;
}

.shots .phone { width: 100%; max-width: 300px; margin: 0 auto; }

/* ── CTA ── */
.cta { text-align: center; }
.cta .store-row { justify-content: center; }

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: #ff8c42;
  transition: color .25s, text-shadow .25s;
}

.more-link:hover { color: #fff; text-shadow: 0 0 12px rgba(255,140,60,.8); }

/* ── Footer accent line ── */
.footer-line {
  height: 3px;
  background: linear-gradient(90deg, transparent, #ff5e1a, #ffb347, #ff5e1a, transparent);
  opacity: .4;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .hero-inner, .hero--wide .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .eyebrow, .hero .store-row { justify-content: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-visual { order: -1; }
  .hero-visual .phone { width: min(230px, 64vw); }
  .hero--wide .hero-visual .screen { max-width: 560px; }
  .shots--wide { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
}

@media (max-width: 768px) {
  header { padding: 14px 20px; }
  .logo-icon { width: 38px; height: 38px; }
  .logo-text { font-size: 1.1rem; }
  .hamburger { display: flex; }

  nav {
    position: fixed;
    inset: 0;
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    background: rgba(10,10,30,.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
  }

  nav.open { opacity: 1; pointer-events: auto; }
  nav a { font-size: 1.4rem; letter-spacing: 3px; }
}

@media (max-width: 640px) {
  .hero { padding-left: 16px; padding-right: 16px; }
  .section { padding-left: 16px; padding-right: 16px; }

  /* Portrait screenshots become a swipeable row */
  .shots:not(.shots--wide) {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 68%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    scrollbar-width: none;
  }

  .shots:not(.shots--wide)::-webkit-scrollbar { display: none; }
  .shots:not(.shots--wide) > * { scroll-snap-align: center; }

  .store-row { gap: 12px; }
  .store-btn { padding: 10px 18px; font-size: .82rem; gap: 7px; }
  .store-btn svg { width: 17px; height: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   Nuclear Warfare theme (nuclear-warfare.html only, via <body class="nw">)
   Colours match the game. Every rule is scoped to .nw or prefixed nw-, so
   the other game pages are unaffected.
   ══════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'ArcadeFont';
  src: url('fonts/ka1.ttf') format('truetype');
  font-display: swap;
}

body.nw {
  --nw-sky-top: #020111;
  --nw-sky-bottom: #191621;
  --nw-panel: #0b0a16;
  --nw-panel-2: #12101f;
  --nw-line: #2a2738;
  --nw-accent: #ffd23f;
  --nw-ink: #1a1430;
  --nw-warm: #ffb74d;
  --nw-text: #cfcfe0;
  --nw-muted: #b8b8cc;
  --nw-danger: #ff5252;
  --nw-ice: #80d8ff;
  --nw-life: #69f0ae;
  --nw-shield: #4fc3f7;
  --nw-arcade: 'ArcadeFont', 'Orbitron', monospace;

  background: linear-gradient(to bottom, var(--nw-sky-top) 0%, #0a0819 50%, var(--nw-sky-bottom) 100%) fixed;
  color: var(--nw-text);
  font-size: 1.05rem;
}
body.nw::before {
  background: radial-gradient(ellipse 60% 40% at 50% 15%, rgba(255, 210, 63, .06), transparent);
}

.nw :focus-visible { outline: 3px solid var(--nw-accent); outline-offset: 3px; border-radius: 6px; }
.nw .pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
.nw [hidden] { display: none !important; }

/* Section headings in the game's style */
.nw .kicker { color: var(--nw-warm); }
.nw .section-title {
  font-family: var(--nw-arcade);
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--nw-accent);
  text-shadow: 3px 3px 0 #000;
}
.nw .section-title::after { background: var(--nw-accent); }
.nw-lede { margin-top: 14px; color: var(--nw-muted); font-size: 1.1rem; line-height: 1.6; }
.nw .section--alt {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.008));
}

/* ── Hero ── */
.nw-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: min(88vh, 820px);
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 78% 12%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 35% 42%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1px 1px at 88% 52%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1px 1px at 58% 28%, rgba(255,255,255,.3), transparent 60%),
    radial-gradient(1px 1px at 22% 66%, rgba(255,255,255,.3), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 38%, rgba(255,210,63,.07), transparent 70%);
}
.nw-hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(28px, 5vw, 56px) 16px clamp(40px, 6vw, 64px);
}
.nw-hero .back-link { margin-bottom: 18px; }
.nw-hero .eyebrow { justify-content: center; margin-bottom: 18px; }

.nw-hero__icon {
  width: 88px;
  height: 88px;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 18px rgba(255,210,63,.45));
  animation: nw-bob 2.4s ease-in-out infinite;
}
.nw-title {
  font-family: var(--nw-arcade);
  font-weight: 400;
  color: #fff;
  font-size: clamp(2rem, 10.5vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: 1px;
  text-shadow: -3px -3px 0 #000, 3px -3px 0 #000, -3px 3px 0 #000, 3px 3px 0 #000, 0 7px 0 #000;
}
.nw-title span { display: block; color: var(--nw-accent); }
.nw-tagline {
  margin-top: 22px;
  font-family: var(--nw-arcade);
  color: var(--nw-warm);
  font-size: clamp(.85rem, 3.4vw, 1.2rem);
  line-height: 1.5;
  letter-spacing: 1px;
}
.nw-hero .lede { margin: 12px auto 0; color: var(--nw-text); }

@keyframes nw-bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(8px) rotate(4deg); }
}

/* Falling-bomb background (pure CSS, decorative) */
.nw-sky { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.nw-sky img {
  position: absolute;
  top: -64px;
  left: var(--x, 50%);
  width: var(--s, 36px);
  height: var(--s, 36px);
  max-width: none;
  opacity: .55;
  will-change: transform;
  animation: nw-fall var(--dur, 9s) linear var(--delay, 0s) infinite;
}
@keyframes nw-fall {
  from { transform: translate3d(0, 0, 0) rotate(var(--rot-a, -12deg)); }
  to { transform: translate3d(var(--drift, 0px), 1100px, 0) rotate(var(--rot-b, 12deg)); }
}

/* Grass divider: the game's floor */
.nw-grass {
  height: 32px;
  background: url('images/nuclear-warfare/sprites/grass.png') repeat-x left top / auto 32px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* ── Store buttons (same look as the Witchell page) ── */
.nw .store-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.nw-hero .store-row { margin-top: 30px; }
.nw .store-btn {
  gap: 9px;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  user-select: none;
}
.nw .store-btn svg { width: 19px; height: 19px; }
.nw .store-btn.android { box-shadow: 0 4px 20px rgba(52,168,83,.22); }
.nw .store-btn.windows { box-shadow: 0 4px 20px rgba(0,120,212,.22); }
@media (max-width: 600px) {
  .nw .store-row { width: 100%; }
  .nw .store-btn { flex: 1 1 100%; justify-content: center; padding: 12px 14px; font-size: .88rem; }
}

/* ── How it works ── */
.nw-steps { list-style: none; display: grid; gap: 16px; }
@media (min-width: 760px) { .nw-steps { grid-template-columns: repeat(3, 1fr); } }
.nw-step {
  position: relative;
  padding: 24px 20px 22px;
  background: linear-gradient(to bottom, var(--nw-panel-2), var(--nw-panel));
  border: 1px solid var(--nw-line);
  border-radius: 14px;
}
.nw-step__num {
  position: absolute;
  top: 14px; right: 16px;
  font-family: var(--nw-arcade);
  color: rgba(255,210,63,.18);
  font-size: 2.6rem;
  line-height: 1;
}
.nw-step__icon { height: 56px; display: flex; align-items: center; margin-bottom: 12px; }
.nw-step__icon img { width: 48px; height: 48px; }
.nw-step__x5 { font-family: var(--nw-arcade); color: var(--nw-accent); font-size: 1.8rem; text-shadow: 3px 3px 0 #000; }
.nw-card-title {
  margin-bottom: 6px;
  font-family: var(--nw-arcade);
  font-weight: 400;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 1px;
}
.nw-step p { color: var(--nw-muted); line-height: 1.55; }

/* ── Bomb guide ── */
.nw-bombs { list-style: none; display: grid; gap: 14px; }
@media (min-width: 560px) { .nw-bombs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .nw-bombs { grid-template-columns: repeat(4, 1fr); } }
.nw-bomb {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  background: var(--nw-panel);
  border: 1px solid var(--nw-line);
  border-radius: 14px;
}
@media (min-width: 960px) { .nw-bomb { flex-direction: column; } }
.nw-bomb__art {
  flex: 0 0 auto;
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(255,255,255,.06), transparent 70%);
  border-radius: 12px;
}
.nw-bomb__art img { width: 56px; height: 56px; }
.nw-bomb p { margin-bottom: 10px; color: var(--nw-muted); font-size: 1rem; line-height: 1.5; }
.nw-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--nw-accent);
  background: rgba(255,210,63,.1);
  border: 1px solid rgba(255,210,63,.3);
}
.nw-tint-gold { filter: sepia(1) saturate(5) hue-rotate(-15deg) brightness(1.1) drop-shadow(0 0 8px rgba(255,210,63,.75)); }
.nw-tint-shield { filter: saturate(2.5) hue-rotate(160deg) brightness(1.15) drop-shadow(0 0 6px rgba(79,195,247,.6)); }
.nw-bomb--golden { border-color: rgba(255,210,63,.45); }
.nw-bomb--frozen .nw-tag { color: var(--nw-ice); background: rgba(128,216,255,.1); border-color: rgba(128,216,255,.35); }
.nw-bomb--life .nw-tag { color: var(--nw-life); background: rgba(105,240,174,.1); border-color: rgba(105,240,174,.35); }
.nw-bomb--nuke .nw-tag { color: var(--nw-warm); background: rgba(255,183,77,.1); border-color: rgba(255,183,77,.35); }
.nw-bomb--shield .nw-tag { color: var(--nw-shield); background: rgba(79,195,247,.1); border-color: rgba(79,195,247,.35); }

/* The cursed one: the one you must NOT tap */
.nw-bomb--cursed {
  border: 2px solid var(--nw-danger);
  background: repeating-linear-gradient(-45deg, rgba(255,82,82,.07) 0 10px, transparent 10px 20px), #1a0b10;
  box-shadow: 0 0 0 4px rgba(255,82,82,.12), 0 0 28px rgba(255,82,82,.25);
  animation: nw-warn 1.6s ease-in-out infinite;
}
.nw-bomb--cursed .nw-card-title { color: var(--nw-danger); }
.nw-bomb--cursed p { color: #ecc6cc; }
.nw-bomb--cursed strong { color: #fff; }
.nw-bomb--cursed .nw-tag { color: #ffd0d0; background: rgba(255,82,82,.18); border-color: rgba(255,82,82,.6); }
.nw-stamp {
  position: absolute;
  top: -12px; right: 12px;
  padding: 4px 10px;
  background: var(--nw-danger);
  color: #1a0306;
  font-family: var(--nw-arcade);
  font-size: .75rem;
  letter-spacing: 1px;
  border-radius: 4px;
  transform: rotate(4deg);
  box-shadow: 2px 2px 0 #000;
}
@keyframes nw-warn {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255,82,82,.12), 0 0 18px rgba(255,82,82,.18); }
  50% { box-shadow: 0 0 0 4px rgba(255,82,82,.22), 0 0 34px rgba(255,82,82,.4); }
}

/* Frenzy teaser */
.nw-frenzy {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 20px;
  text-align: center;
  border-radius: 14px;
  border: 1px dashed rgba(255,183,77,.55);
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(255,183,77,.14), transparent 70%), var(--nw-panel);
}
.nw-frenzy img {
  width: 56px; height: 56px;
  filter: brightness(0) drop-shadow(0 0 1px var(--nw-warm)) drop-shadow(0 0 10px rgba(255,183,77,.8));
  animation: nw-flicker 3.2s steps(1) infinite;
}
.nw-frenzy .nw-card-title { color: var(--nw-warm); font-size: clamp(1rem, 4.4vw, 1.4rem); }
.nw-frenzy p { max-width: 34rem; color: var(--nw-muted); line-height: 1.6; }
@keyframes nw-flicker {
  0%, 46%, 48%, 51%, 100% { opacity: 1; }
  47% { opacity: .3; }
  50% { opacity: .4; }
}

/* ── Screenshots ── */
.nw-shots {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 16px 20px;
  margin: 0 -16px;
  scrollbar-width: thin;
  scrollbar-color: var(--nw-accent) rgba(255,255,255,.08);
}
@media (min-width: 1000px) { .nw-shots { justify-content: center; overflow: visible; margin: 0; padding: 8px 0 20px; } }
.nw-phone { flex: 0 0 auto; width: 220px; scroll-snap-align: center; }
.nw-phone__frame {
  aspect-ratio: 390 / 844;
  padding: 10px;
  border-radius: 34px;
  background: linear-gradient(145deg, #2c2a38, #121019);
  box-shadow: inset 0 0 0 2px #3a3747, 0 18px 36px rgba(0,0,0,.5);
}
.nw-phone__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* older 9:16 captures letterbox into the game's own sky colour */
  background: var(--nw-sky-top);
  border-radius: 25px;
}
.nw-phone figcaption { margin-top: 12px; text-align: center; font-weight: 600; color: var(--nw-muted); }

/* ── Final CTA ── */
.nw-cta { text-align: center; }
.nw .section--alt.nw-cta {
  background:
    radial-gradient(ellipse 60% 60% at 50% 100%, rgba(255,210,63,.08), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
}
.nw-cta__icon { width: 64px; height: 64px; margin: 0 auto 18px; display: block; }
.nw-cta .more-link { color: var(--nw-accent); }

@media (prefers-reduced-motion: reduce) {
  .nw-sky { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   Oh My Potions! theme (oh-my-potions.html only, via <body class="omp">)
   Colours match the game's UI. Every rule is scoped to .omp or prefixed
   omp-. Sprites are only ever scaled by whole numbers.
   ══════════════════════════════════════════════════════════════════════ */

body.omp {
  --omp-navy: #090e1e;
  --omp-panel: rgba(0, 0, 0, .85);
  --omp-line: rgba(255, 255, 255, .12);
  --omp-gold: #ffd24a;
  --omp-pink: #ff66cc;
  --omp-red: #ff5555;
  --omp-blue: #6cb6ff;
  --omp-heal: #ff8a8a;
  --omp-muted: #c6cbdc;
  --omp-shadow: 2px 2px 4px rgba(0, 0, 0, .6);
  --omp-arcade: 'ArcadeFont', 'Orbitron', monospace;
  /* Hero scales: background art and witch sprite (whole numbers only) */
  --omp-bg: 1;
  --omp-ws: 2;

  background: linear-gradient(to bottom, var(--omp-navy) 0%, #0d1328 50%, var(--omp-navy) 100%) fixed;
  color: #fff;
  font-size: 1.05rem;
}
@media (min-width: 900px) { body.omp { --omp-bg: 2; --omp-ws: 3; } }

body.omp::before {
  background:
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(255, 102, 204, .05), transparent),
    radial-gradient(ellipse 50% 40% at 15% 70%, rgba(255, 210, 74, .05), transparent);
}

.omp :focus-visible { outline: 3px solid var(--omp-gold); outline-offset: 3px; border-radius: 6px; }
.omp .pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
.omp [hidden] { display: none !important; }

/* Section headings in the game's style */
.omp .kicker { color: var(--omp-gold); }
.omp .section-title {
  font-family: var(--omp-arcade);
  font-weight: 400;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 3px 3px 0 #000;
}
.omp .section-title::after { background: var(--omp-gold); }
.omp-lede { margin-top: 14px; color: var(--omp-muted); font-size: 1.1rem; line-height: 1.6; }
.omp .section--alt { background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01)); }
.omp strong { color: #fff; }

.omp-card-title {
  margin-bottom: 8px;
  font-family: var(--omp-arcade);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: var(--omp-shadow);
}

.omp-panel {
  padding: 22px 20px;
  background: var(--omp-panel);
  border: 1px solid var(--omp-line);
  border-radius: 14px;
}

/* ── Hero ── */
.omp-hero {
  --omp-ground-y: calc(58px * var(--omp-bg)); /* grass line in background.png */
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: min(92vh, 860px);
  background-color: #7e92b0; /* the art's sky colour, so a hero taller than the art has no seam */
  background-image:
    linear-gradient(to bottom, rgba(9,14,30,.94) 0%, rgba(9,14,30,.6) 45%, rgba(9,14,30,0) 78%),
    url('images/oh-my-potions/sprites/background.png');
  background-repeat: no-repeat, repeat-x;
  background-position: 0 0, center bottom;
  background-size: 100% 100%, calc(928px * var(--omp-bg)) calc(793px * var(--omp-bg));
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.omp-hero__content {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Leave room above the ground for the witch on small screens */
  padding: clamp(28px, 5vw, 56px) 16px calc(var(--omp-ground-y) + 120px);
}
@media (min-width: 900px) {
  .omp-hero__content { padding-bottom: calc(var(--omp-ground-y) + 40px); }
}
.omp-hero .back-link { margin-bottom: 18px; }
.omp-hero .eyebrow { justify-content: center; margin-bottom: 18px; }

.omp-title {
  font-family: var(--omp-arcade);
  font-weight: 400;
  color: #fff;
  font-size: clamp(2rem, 10.5vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: 1px;
  text-shadow: -3px -3px 0 #000, 3px -3px 0 #000, -3px 3px 0 #000, 3px 3px 0 #000, 0 7px 0 #000, 0 12px 24px rgba(0,0,0,.6);
}
.omp-title span { display: block; }
.omp-tagline {
  margin-top: 22px;
  font-family: var(--omp-arcade);
  color: var(--omp-gold);
  font-size: clamp(.85rem, 3.4vw, 1.2rem);
  line-height: 1.5;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 #000;
}
.omp-hero .lede { margin: 12px auto 0; color: #eef0f7; text-shadow: var(--omp-shadow); }

.omp-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.omp-chips li {
  padding: 4px 12px;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .5px;
  color: #eef0f7;
  background: rgba(0,0,0,.55);
  border: 1px solid var(--omp-line);
  border-radius: 999px;
}

/* The witch: 6-frame idle strip (32×64 per frame), animated with steps() */
.omp-witch {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: calc(var(--omp-ground-y) - 15px * var(--omp-ws)); /* feet sit 15px above the frame bottom */
  width: calc(32px * var(--omp-ws));
  height: calc(64px * var(--omp-ws));
  transform: translateX(-50%);
  background: url('images/oh-my-potions/sprites/R_witch_idle.png') 0 0 / calc(32px * var(--omp-ws)) calc(384px * var(--omp-ws)) no-repeat;
  animation: omp-idle .9s steps(6) infinite;
}
@media (min-width: 900px) { .omp-witch { left: max(64px, calc(50% - 500px)); transform: none; } }
@keyframes omp-idle { to { background-position: 0 calc(-384px * var(--omp-ws)); } }

/* Falling potions (pure CSS, decorative). They vanish at the grass line. */
.omp-sky {
  position: absolute;
  inset: 0 0 var(--omp-ground-y) 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.omp-sky img {
  position: absolute;
  top: -72px;
  left: var(--x, 50%);
  width: 64px;
  height: 64px;
  max-width: none;
  opacity: .75;
  will-change: transform;
  animation: omp-fall var(--dur, 9s) linear var(--delay, 0s) infinite;
}
@keyframes omp-fall {
  from { transform: translate3d(0, 0, 0) rotate(var(--rot-a, -12deg)); }
  to { transform: translate3d(var(--drift, 0px), 1000px, 0) rotate(var(--rot-b, 12deg)); }
}

/* ── Store buttons (same look as the Nuclear Warfare and Witchell pages) ── */
.omp .store-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.omp-hero .store-row { margin-top: 30px; }
.omp .store-btn {
  gap: 9px;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  user-select: none;
}
.omp .store-btn svg { width: 19px; height: 19px; }
.omp .store-btn.android { box-shadow: 0 4px 20px rgba(52,168,83,.22); }
.omp .store-btn.windows { box-shadow: 0 4px 20px rgba(0,120,212,.22); }
.omp a.store-btn:hover { box-shadow: 0 8px 30px rgba(255,210,74,.3); }
@media (max-width: 600px) {
  .omp .store-row { width: 100%; }
  .omp .store-btn { flex: 1 1 100%; justify-content: center; padding: 12px 14px; font-size: .88rem; }
}

/* ── How to play ── */
.omp-steps { list-style: none; display: grid; gap: 16px; }
@media (min-width: 760px) { .omp-steps { grid-template-columns: repeat(3, 1fr); } }
.omp-step {
  position: relative;
  padding: 24px 20px 22px;
  background: var(--omp-panel);
  border: 1px solid var(--omp-line);
  border-radius: 14px;
}
.omp-step__num {
  position: absolute;
  top: 14px; right: 16px;
  font-family: var(--omp-arcade);
  color: rgba(255,210,74,.2);
  font-size: 2.6rem;
  line-height: 1;
}
.omp-step__icon { height: 72px; display: flex; align-items: flex-end; margin-bottom: 12px; }
.omp-step p { color: var(--omp-muted); line-height: 1.55; }

/* Running witch: 8-frame strip, 48×64 per frame, shown at 1× */
.omp-runner {
  display: block;
  width: 48px;
  height: 64px;
  background: url('images/oh-my-potions/sprites/R_witch_run.png') 0 0 / 48px 512px no-repeat;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  animation: omp-run .8s steps(8) infinite;
}
@keyframes omp-run { to { background-position: 0 -512px; } }

.omp-controls { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 700px) { .omp-controls { grid-template-columns: 1fr 1fr; } }
.omp-control-list { list-style: none; display: grid; gap: 14px; margin-top: 6px; }
.omp-control-list li { display: flex; align-items: center; gap: 14px; color: var(--omp-muted); line-height: 1.45; }
.omp-control-icon {
  flex: 0 0 auto;
  min-width: 76px;
  display: flex;
  justify-content: center;
  gap: 6px;
  color: var(--omp-gold);
}
.omp-control-icon svg { width: 34px; height: 34px; }
.omp kbd {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  font-family: var(--omp-arcade);
  font-size: .95rem;
  color: var(--omp-navy);
  background: var(--omp-gold);
  border-radius: 6px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.3), 2px 2px 0 #000;
}

.omp-facts {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
@media (min-width: 760px) { .omp-facts { grid-template-columns: repeat(3, 1fr); } }
.omp-facts li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px dashed var(--omp-line);
  border-radius: 12px;
  color: var(--omp-muted);
  line-height: 1.45;
}
.omp-facts__big {
  flex: 0 0 auto;
  min-width: 64px;
  display: flex;
  justify-content: center;
  gap: 3px;
  font-family: var(--omp-arcade);
  font-size: 1.3rem;
  color: var(--omp-gold);
  text-shadow: 2px 2px 0 #000;
}
.omp-facts__big img { width: 16px; height: 16px; }

/* ── Potion guide ── */
.omp-potions { list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (min-width: 960px) { .omp-potions { grid-template-columns: repeat(4, 1fr); } }
.omp-potion {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 14px 20px;
  background: var(--omp-panel);
  border: 1px solid var(--omp-line);
  border-radius: 14px;
}
.omp-potion__art {
  width: 112px; height: 112px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  background: radial-gradient(circle, rgba(255,210,74,.12), transparent 68%);
  border-radius: 50%;
}
.omp-potion__art img { width: 96px; height: 96px; }
.omp-potion .omp-card-title { font-size: .92rem; }
.omp-potion p { margin-top: 10px; color: var(--omp-muted); font-size: 1rem; line-height: 1.45; }
.omp-points {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 28px;
  padding: 0 12px;
  /* ArcadeFont has no + or − glyphs, so points use the body font */
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--omp-gold);
  background: rgba(255,210,74,.1);
  border: 1px solid rgba(255,210,74,.35);
  border-radius: 999px;
}
.omp-potion--speed .omp-potion__art { background: radial-gradient(circle, rgba(108,182,255,.16), transparent 68%); }
.omp-potion--speed .omp-points { color: var(--omp-blue); background: rgba(108,182,255,.1); border-color: rgba(108,182,255,.35); }
.omp-potion--heal .omp-potion__art { background: radial-gradient(circle, rgba(255,85,85,.16), transparent 68%); }
.omp-potion--heal .omp-points { color: var(--omp-heal); background: rgba(255,138,138,.1); border-color: rgba(255,138,138,.35); }
.omp-potion--rare { border-color: rgba(255,102,204,.55); box-shadow: 0 0 24px rgba(255,102,204,.18); }
.omp-potion--rare .omp-potion__art { background: radial-gradient(circle, rgba(255,102,204,.25), transparent 68%); }
.omp-potion--rare .omp-points { color: var(--omp-pink); background: rgba(255,102,204,.12); border-color: rgba(255,102,204,.5); }
.omp-potion--empty .omp-potion__art { background: radial-gradient(circle, rgba(255,255,255,.06), transparent 68%); }
.omp-potion--empty .omp-points { color: var(--omp-muted); background: rgba(255,255,255,.05); border-color: var(--omp-line); }

/* Poison: the one you must NOT catch */
.omp-potion--poison {
  border: 2px solid var(--omp-red);
  background: repeating-linear-gradient(-45deg, rgba(255,85,85,.08) 0 10px, transparent 10px 20px), #1a0b10;
  box-shadow: 0 0 0 4px rgba(255,85,85,.12), 0 0 28px rgba(255,85,85,.25);
  animation: omp-warn 1.6s ease-in-out infinite;
}
.omp-potion--poison .omp-potion__art { background: radial-gradient(circle, rgba(255,85,85,.22), transparent 68%); }
.omp-potion--poison .omp-card-title { color: var(--omp-red); }
.omp-potion--poison p { color: #ecc6cc; }
.omp-potion--poison .omp-points { color: #ffd0d0; background: rgba(255,85,85,.18); border-color: rgba(255,85,85,.6); }
.omp-stamp {
  position: absolute;
  top: -12px; right: 10px;
  padding: 4px 10px;
  background: var(--omp-red);
  color: #1a0306;
  font-family: var(--omp-arcade);
  font-size: .72rem;
  letter-spacing: 1px;
  border-radius: 4px;
  transform: rotate(4deg);
  box-shadow: 2px 2px 0 #000;
}
@keyframes omp-warn {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255,85,85,.12), 0 0 18px rgba(255,85,85,.18); }
  50% { box-shadow: 0 0 0 4px rgba(255,85,85,.22), 0 0 34px rgba(255,85,85,.4); }
}

/* ── Combos & Frenzy ── */
.omp-hook-section {
  background:
    radial-gradient(ellipse 50% 60% at 78% 50%, rgba(255,102,204,.1), transparent 70%),
    radial-gradient(ellipse 45% 55% at 22% 50%, rgba(255,210,74,.07), transparent 70%);
}
.omp-hook { display: grid; gap: 18px; }
@media (min-width: 860px) { .omp-hook { grid-template-columns: 1fr 1fr; } }

.omp-combo { border-color: rgba(255,210,74,.4); }
.omp-combo > p { color: var(--omp-muted); line-height: 1.6; }
.omp-ladder { list-style: none; display: grid; gap: 10px; margin: 20px 0; }
.omp-ladder li { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; }
.omp-ladder__x {
  font-family: var(--omp-arcade);
  color: var(--omp-gold);
  font-size: calc(.9rem + var(--lv) * .15rem);
  text-shadow: 2px 2px 0 #000;
}
.omp-ladder__bar {
  height: 14px;
  width: calc(var(--lv) * 25%);
  border-radius: 3px;
  background: linear-gradient(90deg, #b8860b, var(--omp-gold));
  box-shadow: 2px 2px 0 #000;
}
.omp-ladder li:last-child .omp-ladder__bar { animation: omp-glow 1.8s ease-in-out infinite; }
.omp-ladder__n { color: var(--omp-muted); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.omp-example {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,210,74,.08);
  border: 1px solid rgba(255,210,74,.25);
}
.omp-example strong { color: var(--omp-gold); font-family: var(--omp-arcade); font-weight: 400; }
@keyframes omp-glow {
  0%, 100% { box-shadow: 2px 2px 0 #000, 0 0 0 rgba(255,210,74,0); }
  50% { box-shadow: 2px 2px 0 #000, 0 0 16px rgba(255,210,74,.7); }
}

.omp-frenzy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 20px;
  border-radius: 14px;
  border: 2px solid var(--omp-pink);
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255,102,204,.28), transparent 70%),
    var(--omp-panel);
  box-shadow: 0 0 0 4px rgba(255,102,204,.12), 0 0 40px rgba(255,102,204,.22);
}
.omp-frenzy__potion {
  width: 128px; height: 128px;
  filter: drop-shadow(0 0 14px rgba(255,102,204,.85));
  animation: omp-bob 2.4s ease-in-out infinite;
}
.omp-frenzy__title {
  margin: 8px 0 10px;
  font-family: var(--omp-arcade);
  font-weight: 400;
  font-size: clamp(1.4rem, 6vw, 2.1rem);
  letter-spacing: 1px;
  color: var(--omp-pink);
  text-shadow: 3px 3px 0 #000, 0 0 18px rgba(255,102,204,.6);
}
.omp-frenzy > p { max-width: 34rem; color: #f3dcea; line-height: 1.6; }
.omp-frenzy__facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: 20px;
}
.omp-frenzy__facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 6px;
  border-radius: 10px;
  background: rgba(255,102,204,.1);
  border: 1px solid rgba(255,102,204,.35);
  color: #f3dcea;
  font-weight: 600;
  font-size: .95rem;
}
.omp-frenzy__facts strong {
  font-family: var(--omp-arcade);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--omp-gold);
  text-shadow: 2px 2px 0 #000;
}
@keyframes omp-bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(8px) rotate(6deg); }
}

/* ── Screenshots ── */
.omp-shots { display: grid; gap: clamp(16px, 2.4vw, 28px); }
@media (min-width: 760px) { .omp-shots { grid-template-columns: 1fr 1fr; } }
.omp-shots figure { min-width: 0; }
.omp-shots .screen { box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 40px rgba(255,210,74,.08); }
.omp-shots figcaption { margin-top: 12px; text-align: center; font-weight: 600; color: var(--omp-muted); }

/* ── Download CTA ── */
.omp-cta { text-align: center; }
.omp .omp-cta {
  background:
    radial-gradient(ellipse 60% 60% at 50% 100%, rgba(255,210,74,.08), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
}
.omp-cta__icon {
  display: block;
  width: 128px; height: 128px;
  margin: 0 auto 20px;
  border-radius: 24px;
  border: 2px solid rgba(255,255,255,.15);
  box-shadow: 0 16px 40px rgba(0,0,0,.5), 0 0 30px rgba(255,210,74,.15);
}
.omp-cta .more-link { color: var(--omp-gold); }
.omp-pulse { animation: omp-pulse 2.6s ease-in-out infinite; }
.omp-pulse:hover, .omp-pulse:focus-visible { animation: none; }
@keyframes omp-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .omp-sky { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   Animals Nom Nom theme (animals-nom-nom.html only, via <body class="ann">)
   Colours match the game: dark base #111827, gold #FFD24A and one tile
   colour per animal/food pair. Every rule is scoped to .ann or prefixed
   ann-. Body copy uses Nunito; ArcadeFont is for headings and buttons only.
   ══════════════════════════════════════════════════════════════════════ */

body.ann {
  --ann-base: #111827;
  --ann-panel: rgba(0, 0, 0, .55);
  --ann-line: rgba(255, 255, 255, .12);
  --ann-gold: #ffd24a;
  --ann-ink: #111827;
  --ann-text: #e8ecf4;
  --ann-muted: #c3cad8;
  --ann-shadow: 2px 2px 4px rgba(0, 0, 0, .5);
  --ann-arcade: 'ArcadeFont', 'Orbitron', monospace;
  --ann-body: 'Nunito', 'Rajdhani', system-ui, sans-serif;
  /* The six pairs */
  --ann-rabbit: #ff8c42;
  --ann-panda: #6fa8dc;
  --ann-monkey: #f6c744;
  --ann-cat: #9ad29a;
  --ann-dog: #c98ad9;
  --ann-mouse: #f0a050;

  background: linear-gradient(to bottom, var(--ann-base) 0%, #142019 55%, var(--ann-base) 100%) fixed;
  color: var(--ann-text);
}
body.ann::before {
  background:
    radial-gradient(ellipse 55% 40% at 80% 30%, rgba(154, 210, 154, .07), transparent),
    radial-gradient(ellipse 50% 40% at 15% 75%, rgba(255, 210, 74, .05), transparent);
}

.ann main { font-family: var(--ann-body); font-size: 1.05rem; }
.ann :focus-visible { outline: 3px solid var(--ann-gold); outline-offset: 3px; border-radius: 8px; }
.ann [hidden] { display: none !important; }
.ann strong { color: #fff; }
.ann .emoji { font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; line-height: 1; }

/* Section headings in the game's style */
.ann .kicker { color: var(--ann-gold); font-family: var(--ann-body); font-weight: 800; font-size: .78rem; }
.ann .section-title {
  font-family: var(--ann-arcade);
  font-weight: 400;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 3px 3px 0 #000;
}
.ann .section-title::after { background: var(--ann-gold); }
.ann-lede { margin-top: 14px; color: var(--ann-muted); font-size: 1.1rem; line-height: 1.6; }
.ann .section--alt { background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.012)); }

.ann-card-title {
  margin-bottom: 8px;
  font-family: var(--ann-arcade);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: var(--ann-shadow);
}

.ann-panel {
  padding: 22px 20px;
  background: var(--ann-panel);
  border: 1px solid var(--ann-line);
  border-radius: 18px;
}

/* A block from the well: an emoji on its pair colour */
.ann-tile {
  --c: var(--ann-rabbit);
  --s: 48px;
  display: inline-grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  font-size: calc(var(--s) * .56);
  background: var(--c);
  border-radius: 24%;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.18), inset 0 2px 0 rgba(255,255,255,.35), 0 4px 10px rgba(0,0,0,.3);
}

/* ── Hero ── */
.ann-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(92vh, 860px);
  padding: clamp(28px, 5vw, 56px) 16px clamp(64px, 9vw, 104px);
  text-align: center;
  background: #24331f; /* close to the darkened art, shown while it loads */
}
/* The meadow, blurred and darkened like the in-game title screen */
.ann-hero::before {
  content: '';
  position: absolute;
  inset: -32px; /* hides the soft edges the blur creates */
  z-index: -2;
  background: url('images/animals-nom-nom/meadow.webp') center 40% / cover no-repeat;
  filter: blur(8px) brightness(.55);
}
.ann-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--ann-base));
}
.ann-hero__content { position: relative; z-index: 2; max-width: 760px; }
.ann-hero .back-link { margin-bottom: 18px; }
.ann-hero .eyebrow { justify-content: center; margin-bottom: 18px; }

.ann-hero__logo {
  display: block;
  width: clamp(112px, 26vw, 152px);
  height: auto;
  margin: 0 auto 18px;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.5));
  animation: ann-bob 3.2s ease-in-out infinite;
}

.ann-title {
  font-family: var(--ann-arcade);
  font-weight: 400;
  color: #fff;
  font-size: clamp(2rem, 10vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: 1px;
  text-shadow: -3px -3px 0 #000, 3px -3px 0 #000, -3px 3px 0 #000, 3px 3px 0 #000, 0 7px 0 #000, 0 12px 24px rgba(0,0,0,.55);
}
.ann-title span { display: block; }
.ann-tagline {
  margin-top: 22px;
  font-family: var(--ann-arcade);
  color: var(--ann-gold);
  font-size: clamp(.82rem, 3.2vw, 1.15rem);
  line-height: 1.6;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 #000;
}
.ann-hero .lede { margin: 14px auto 0; color: #f1f4f9; text-shadow: var(--ann-shadow); font-family: var(--ann-body); font-weight: 600; }

.ann-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.ann-chips li {
  padding: 5px 13px;
  font-weight: 700;
  font-size: .9rem;
  color: #f1f4f9;
  background: rgba(0,0,0,.55);
  border: 1px solid var(--ann-line);
  border-radius: 999px;
}

/* Falling pairs behind the hero copy (decorative) */
.ann-sky {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.ann-drop {
  position: absolute;
  top: -110px;
  left: var(--x, 50%);
  display: flex;
  gap: 3px;
  opacity: .5;
  will-change: transform;
  animation: ann-fall var(--dur, 10s) linear var(--delay, 0s) infinite;
}
.ann-drop--v { flex-direction: column; }
.ann-drop .ann-tile { --s: 40px; }
@keyframes ann-fall {
  from { transform: translate3d(0, 0, 0) rotate(var(--rot, 0deg)); }
  to { transform: translate3d(0, 1060px, 0) rotate(var(--rot, 0deg)); }
}
@keyframes ann-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

/* ── Store buttons (same look as the other game pages) ── */
.ann .store-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ann-hero .store-row { margin-top: 30px; }
.ann .store-btn {
  gap: 9px;
  padding: 12px 20px;
  border-radius: 14px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  user-select: none;
}
.ann .store-btn svg { width: 19px; height: 19px; }
.ann .store-btn.android { box-shadow: 0 4px 20px rgba(52,168,83,.25); }
.ann .store-btn.windows { box-shadow: 0 4px 20px rgba(0,120,212,.25); }
.ann .store-btn.exe { background: linear-gradient(135deg, #3b4558, #1f2737); border-color: rgba(255,255,255,.18); }
.ann a.store-btn:hover { box-shadow: 0 8px 30px rgba(255,210,74,.3); }
@media (max-width: 600px) {
  .ann .store-row { width: 100%; }
  .ann .store-btn { flex: 1 1 100%; justify-content: center; padding: 12px 14px; font-size: .88rem; }
}

/* ── How it plays ── */
.ann-steps { list-style: none; display: grid; gap: 16px; }
@media (min-width: 760px) { .ann-steps { grid-template-columns: repeat(3, 1fr); } }
.ann-step { position: relative; padding: 24px 20px 22px; }
.ann-step__num {
  position: absolute;
  top: 14px; right: 16px;
  font-family: var(--ann-arcade);
  color: rgba(255,210,74,.22);
  font-size: 2.6rem;
  line-height: 1;
}
.ann-step__icon { height: 96px; display: flex; align-items: center; gap: 4px; margin-bottom: 14px; }
.ann-step__icon--stack { flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; }
.ann-step__icon .ann-tile { --s: 44px; }
.ann-step__x {
  font-family: var(--ann-arcade);
  font-size: 2.6rem;
  color: var(--ann-gold);
  text-shadow: 3px 3px 0 #000, 0 0 18px rgba(255,210,74,.45);
}
.ann-step p { color: var(--ann-muted); line-height: 1.6; }

/* ── Meet the pairs ── */
.ann-pairs { list-style: none; display: grid; gap: 14px; }
@media (min-width: 440px) { .ann-pairs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .ann-pairs { grid-template-columns: repeat(3, 1fr); } }
.ann-pair {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  padding: 22px 14px 18px;
  color: var(--ann-ink);
  background: var(--c);
  border-radius: 22px;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.16), inset 0 3px 0 rgba(255,255,255,.35), 0 10px 24px rgba(0,0,0,.35);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s;
}
.ann-pair:hover { transform: translateY(-3px); }
.ann-pair__side { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ann-pair__emoji {
  display: grid;
  place-items: center;
  width: clamp(58px, 16vw, 72px);
  aspect-ratio: 1;
  font-size: clamp(2rem, 9vw, 2.6rem);
  background: rgba(255,255,255,.42);
  border-radius: 24%;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.1);
}
.ann-pair__name { font-weight: 900; font-size: 1.05rem; line-height: 1.1; }
.ann-pair__eats {
  align-self: start;
  margin-top: clamp(20px, 6vw, 26px);
  font-weight: 900;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ann-nom {
  position: absolute;
  top: -14px; left: 50%;
  padding: 4px 12px;
  font-weight: 900;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ann-ink);
  background: var(--ann-gold);
  border-radius: 999px;
  box-shadow: 2px 2px 0 #000;
  opacity: 0;
  transform: translate(-50%, 8px) scale(.6);
  pointer-events: none;
}
/* The "nom": the animal leans in, the food gets eaten, then comes back */
.ann-pair.is-nom .ann-pair__side:first-child .ann-pair__emoji { animation: ann-chomp .9s ease-in-out; }
.ann-pair.is-nom .ann-pair__food .ann-pair__emoji { animation: ann-eaten .9s ease-in-out; }
.ann-pair.is-nom .ann-nom { animation: ann-pop .9s ease-out; }
@keyframes ann-chomp {
  0%, 100% { transform: none; }
  25% { transform: translateX(10px) rotate(-8deg) scale(1.08); }
  40% { transform: translateX(4px) rotate(4deg) scale(1.02); }
  55% { transform: translateX(10px) rotate(-6deg) scale(1.08); }
}
@keyframes ann-eaten {
  0%, 15% { transform: none; }
  45% { transform: scale(.55) rotate(10deg); }
  60% { transform: scale(0); }
  80% { transform: scale(1.12); }
  100% { transform: none; }
}
@keyframes ann-pop {
  0% { opacity: 0; transform: translate(-50%, 8px) scale(.6); }
  25% { opacity: 1; transform: translate(-50%, -6px) scale(1.1); }
  75% { opacity: 1; transform: translate(-50%, -10px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -18px) scale(.95); }
}
.ann-pairs-note { margin-top: 18px; text-align: center; color: var(--ann-muted); }

/* ── Combos and speed ── */
.ann-hook { display: grid; gap: 18px; }
@media (min-width: 860px) { .ann-hook { grid-template-columns: 1fr 1fr; } }
.ann-combo { border-color: rgba(255,210,74,.4); }
.ann-hook .ann-panel > p { color: var(--ann-muted); line-height: 1.6; }
.ann-ladder { list-style: none; display: grid; gap: 10px; margin: 20px 0; }
.ann-ladder li { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 12px; }
.ann-ladder__x {
  font-family: var(--ann-arcade);
  color: var(--ann-gold);
  font-size: calc(.85rem + var(--lv) * .14rem);
  text-shadow: 2px 2px 0 #000;
}
.ann-ladder__bar {
  height: 14px;
  width: calc(var(--lv) * 20%);
  border-radius: 4px;
  background: linear-gradient(90deg, #c99a1a, var(--ann-gold));
  box-shadow: 2px 2px 0 #000;
}
.ann-ladder li:last-child .ann-ladder__bar { animation: ann-glow 1.8s ease-in-out infinite; }
.ann-ladder__n { color: var(--ann-muted); font-weight: 700; font-size: .95rem; white-space: nowrap; }
.ann-example {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,210,74,.08);
  border: 1px solid rgba(255,210,74,.25);
}
.ann-example strong { color: var(--ann-gold); }
@keyframes ann-glow {
  0%, 100% { box-shadow: 2px 2px 0 #000, 0 0 0 rgba(255,210,74,0); }
  50% { box-shadow: 2px 2px 0 #000, 0 0 16px rgba(255,210,74,.7); }
}

.ann-speed { margin: 22px 0 6px; }
.ann-speed__track {
  position: relative;
  height: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--ann-line);
  overflow: hidden;
}
.ann-speed__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ann-cat), var(--ann-monkey) 55%, var(--ann-rabbit));
  transform-origin: left;
  animation: ann-ramp 4s ease-in infinite;
}
.ann-speed__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-weight: 800;
  font-size: .95rem;
  color: var(--ann-muted);
}
.ann-speed__labels strong { color: var(--ann-gold); }
@keyframes ann-ramp {
  0% { transform: scaleX(.12); }
  85%, 100% { transform: scaleX(1); }
}
.ann-facts { list-style: none; display: grid; gap: 10px; margin-top: 20px; }
.ann-facts li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px dashed var(--ann-line);
  border-radius: 12px;
  color: var(--ann-muted);
  line-height: 1.45;
}
.ann-facts__big {
  flex: 0 0 auto;
  min-width: 70px;
  text-align: center;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--ann-gold);
}

/* ── Features ── */
.ann-features { list-style: none; display: grid; gap: 14px; }
@media (min-width: 640px) { .ann-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .ann-features { grid-template-columns: repeat(3, 1fr); } }
.ann-feature { display: flex; gap: 16px; align-items: flex-start; padding: 20px 18px; }
.ann-feature .ann-tile { flex: 0 0 auto; --s: 52px; }
.ann-feature h3 { margin-bottom: 6px; font-weight: 900; font-size: 1.12rem; color: #fff; }
.ann-feature p { color: var(--ann-muted); line-height: 1.55; }

/* Controls */
.ann-controls { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 700px) { .ann-controls { grid-template-columns: 1fr 1fr; } }
.ann-control-list { list-style: none; display: grid; gap: 14px; margin-top: 6px; }
.ann-control-list li { display: flex; align-items: center; gap: 14px; color: var(--ann-muted); line-height: 1.45; }
.ann-control-icon { flex: 0 0 auto; min-width: 104px; display: flex; justify-content: center; gap: 6px; }
.ann kbd {
  display: inline-grid;
  place-items: center;
  min-width: 36px; height: 36px;
  padding: 0 8px;
  font-family: var(--ann-body);
  font-weight: 900;
  font-size: 1rem;
  color: var(--ann-ink);
  background: var(--ann-gold);
  border-radius: 8px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 2px 2px 0 #000;
}
.ann-gesture {
  display: inline-grid;
  place-items: center;
  height: 36px;
  padding: 0 12px;
  font-weight: 900;
  color: var(--ann-ink);
  background: var(--ann-cat);
  border-radius: 999px;
  box-shadow: 2px 2px 0 #000;
  white-space: nowrap;
}

/* ── Screenshots ── */
.ann-shots {
  list-style: none;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 16px 20px;
  margin: 0 -16px;
  scrollbar-width: thin;
  scrollbar-color: var(--ann-gold) rgba(255,255,255,.08);
}
@media (min-width: 820px) { .ann-shots { justify-content: center; overflow: visible; margin: 0; padding: 8px 0 20px; } }
.ann-phone { flex: 0 0 auto; width: min(230px, 66vw); scroll-snap-align: center; }
.ann-phone__frame {
  aspect-ratio: 417 / 755;
  padding: 9px;
  border-radius: 32px;
  background: linear-gradient(145deg, #2b3446, #111827);
  box-shadow: inset 0 0 0 2px #3a4458, 0 18px 36px rgba(0,0,0,.5);
}
.ann-phone__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  background: var(--ann-base);
}
.ann-phone figcaption { margin-top: 12px; text-align: center; font-weight: 700; color: var(--ann-muted); }

/* ── Download CTA ── */
.ann-cta { text-align: center; }
.ann .ann-cta {
  background:
    radial-gradient(ellipse 60% 60% at 50% 100%, rgba(255,210,74,.09), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
}
.ann-cta__icon {
  display: block;
  width: 128px; height: 128px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.5));
}
.ann-cta .more-link { color: var(--ann-gold); }

@media (prefers-reduced-motion: reduce) {
  .ann-sky { display: none; }
  .ann-speed__fill { transform: none; }
}
.ann .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; }
.ann-tagline span { display: inline-block; }

/* ══════════════════════════════════════════════════════════════════════
   ═══ 3-2-1 Liftoff ═══ (liftoff.html only, via <body class="lf">)
   Space / launchpad / arcade cabinet. Gold countdown, blue rocket, orange
   exhaust and one accent per hazard→tool pair (from the game's constants).
   Every rule is scoped to .lf or prefixed lf-. Headings use Orbitron, body
   Rajdhani, ArcadeFont only for the wordmark and small labels (it has no
   "+", "," or ":" glyphs, so numbers with those use the body font).
   ══════════════════════════════════════════════════════════════════════ */

body.lf {
  --lf-bg: #050817;
  --lf-panel: rgba(10, 18, 48, .72);
  --lf-line: rgba(255, 255, 255, .12);
  --lf-text: #eef3ff;
  --lf-muted: #aab6d3;
  --lf-gold: #ffd23f;
  --lf-orange: #ff7a1a;
  --lf-red: #ff3b30;
  --lf-cyan: #80d8ff;
  --lf-green: #69f0ae;
  --lf-arcade: 'ArcadeFont', 'Orbitron', monospace;

  background: linear-gradient(to bottom, var(--lf-bg) 0%, #08102a 50%, var(--lf-bg) 100%) fixed;
  color: var(--lf-text);
  font-size: 1.05rem;
}
body.lf::before {
  background:
    radial-gradient(ellipse 55% 40% at 85% 25%, rgba(128, 216, 255, .06), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(255, 122, 26, .05), transparent);
}

.lf :focus-visible { outline: 3px solid var(--lf-gold); outline-offset: 3px; border-radius: 8px; }
.lf [hidden] { display: none !important; }
.lf strong { color: #fff; }
.lf .emoji { font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; line-height: 1; }
.lf .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; }

/* Section headings: Orbitron, gold-to-exhaust underline */
.lf .kicker { color: var(--lf-cyan); }
.lf .section-title { color: #fff; text-shadow: 0 0 24px rgba(128, 216, 255, .18); }
.lf .section-title::after { background: linear-gradient(90deg, var(--lf-gold), var(--lf-orange)); }
.lf-lede { margin-top: 14px; color: var(--lf-muted); font-size: 1.12rem; line-height: 1.6; }
.lf .section--alt {
  background: linear-gradient(180deg, rgba(128, 216, 255, .035), rgba(255, 255, 255, .01));
  border-color: rgba(128, 216, 255, .08);
}

.lf-card-title {
  margin-bottom: 8px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}

.lf-panel {
  padding: 22px 20px;
  background: var(--lf-panel);
  border: 1px solid var(--lf-line);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

/* A hazard on the rocket: an emoji in a glowing bubble, as in the game */
/* --c comes from the element itself or its card, so it is not defaulted here */
.lf-hazard {
  --s: 52px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: var(--s);
  height: var(--s);
  font-size: calc(var(--s) * .5);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 45%, transparent), color-mix(in srgb, var(--c) 18%, transparent) 70%);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 55%, transparent), 0 0 18px color-mix(in srgb, var(--c) 55%, transparent);
}
/* A tool chip from the workbench: a dark rounded square with a coloured rim */
.lf-tool {
  --s: 56px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: var(--s);
  height: var(--s);
  font-size: calc(var(--s) * .5);
  border-radius: 14px;
  background: #121a33;
  border: 2px solid var(--c);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .35), 0 0 14px color-mix(in srgb, var(--c) 30%, transparent);
}

/* ── Hero ── */
.lf-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: min(94vh, 900px);
  background:
    radial-gradient(ellipse 45% 40% at 78% 38%, rgba(64, 140, 255, .22), transparent 70%),
    radial-gradient(ellipse 40% 35% at 12% 20%, rgba(130, 80, 220, .16), transparent 70%),
    radial-gradient(ellipse 60% 30% at 70% 100%, rgba(255, 122, 26, .2), transparent 70%),
    var(--lf-bg);
}

/* Starfield: two tiled layers, the second one twinkles */
.lf-stars, .lf-stars::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 18px 24px, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1px 1px at 92px 140px, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 160px 60px, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 210px 190px, rgba(200,225,255,.6), transparent 60%),
    radial-gradient(1px 1px at 40px 210px, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 128px 96px, rgba(255,240,200,.5), transparent 60%);
  background-size: 240px 240px;
}
.lf-stars { z-index: 0; }
.lf-stars::after {
  content: '';
  background-image:
    radial-gradient(1.5px 1.5px at 60px 50px, #fff, transparent 60%),
    radial-gradient(2px 2px at 300px 170px, rgba(200,230,255,.95), transparent 60%),
    radial-gradient(1.5px 1.5px at 190px 290px, #fff, transparent 60%),
    radial-gradient(1.5px 1.5px at 340px 20px, rgba(255,236,180,.9), transparent 60%);
  background-size: 380px 340px;
  animation: lf-twinkle 3.6s ease-in-out infinite alternate;
}
@keyframes lf-twinkle {
  0% { opacity: .25; }
  100% { opacity: 1; }
}

.lf-hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  align-items: center;
  gap: clamp(8px, 3vw, 48px);
  padding: clamp(24px, 5vw, 56px) 16px clamp(28px, 4vw, 40px);
  text-align: center;
}
@media (min-width: 960px) {
  .lf-hero__inner { grid-template-columns: 1.15fr .85fr; text-align: left; padding-left: 24px; padding-right: 24px; }
}
.lf-hero__copy { min-width: 0; }
.lf-hero .back-link { margin-bottom: 18px; }
.lf-hero .eyebrow { justify-content: center; }
@media (min-width: 960px) { .lf-hero .eyebrow { justify-content: flex-start; } }

/* Wordmark: three gold countdown tiles above LIFTOFF! */
.lf-title { margin: 22px 0 0; font-weight: 400; }
.lf-wordmark { display: inline-flex; flex-direction: column; align-items: center; gap: clamp(10px, 2vw, 16px); }
@media (min-width: 960px) { .lf-wordmark { align-items: flex-start; } }
.lf-tiles { display: flex; gap: clamp(8px, 2vw, 12px); }
.lf-tiles span {
  display: grid;
  place-items: center;
  width: clamp(44px, 11vw, 60px);
  aspect-ratio: 1;
  font-family: var(--lf-arcade);
  font-size: clamp(1.2rem, 4.6vw, 1.7rem);
  color: var(--lf-gold);
  background: rgba(255, 210, 63, .1);
  border: 2px solid rgba(255, 210, 63, .55);
  border-radius: 12px;
  text-shadow: 2px 2px 0 #000;
  animation: lf-count 4s ease-in-out infinite;
}
.lf-tiles span:nth-child(2) { animation-delay: .8s; }
.lf-tiles span:nth-child(3) { animation-delay: 1.6s; }
@keyframes lf-count {
  0%, 26%, 100% { transform: none; background: rgba(255,210,63,.1); box-shadow: none; }
  6% { transform: scale(1.1); background: rgba(255,210,63,.3); box-shadow: 0 0 22px rgba(255,210,63,.6); }
}
.lf-word {
  font-family: var(--lf-arcade);
  font-size: clamp(2.1rem, 11vw, 4.6rem);
  line-height: 1;
  letter-spacing: 2px;
  background: linear-gradient(180deg, #fff7d1 0%, var(--lf-gold) 45%, #e8920c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(3px 3px 0 #000) drop-shadow(0 0 16px rgba(255, 210, 63, .35));
  animation: lf-ignite 4s ease-in-out infinite;
}
@keyframes lf-ignite {
  0%, 56%, 100% { filter: drop-shadow(3px 3px 0 #000) drop-shadow(0 0 16px rgba(255,210,63,.35)); }
  64% { filter: drop-shadow(3px 3px 0 #000) drop-shadow(0 0 30px rgba(255,170,40,.85)); }
}

.lf-tagline {
  margin-top: 22px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(.95rem, 2.6vw, 1.25rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--lf-cyan);
  text-shadow: 0 0 14px rgba(128, 216, 255, .35);
}
.lf-hero .lede { margin: 12px auto 0; color: #dfe6f8; }
@media (min-width: 960px) { .lf-hero .lede { margin-left: 0; } }

.lf-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
@media (min-width: 960px) { .lf-chips { justify-content: flex-start; } }
.lf-chips li {
  padding: 4px 13px;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .5px;
  color: var(--lf-text);
  background: rgba(10, 18, 48, .7);
  border: 1px solid rgba(128, 216, 255, .22);
  border-radius: 999px;
}

/* The launch bay: rocket icon, flickering exhaust glow and floating hazards */
.lf-bay {
  position: relative;
  order: -1;
  width: clamp(200px, 56vw, 400px);
  aspect-ratio: 1;
  margin: 0 auto;
}
@media (min-width: 960px) { .lf-bay { order: 0; width: min(100%, 420px); } }
.lf-bay__rocket {
  position: absolute;
  inset: 14%;
  width: 72%;
  height: 72%;
  border-radius: 22%;
  border: 2px solid rgba(128, 216, 255, .35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 60px rgba(64, 140, 255, .35);
  animation: lf-hover 3.4s ease-in-out infinite;
}
.lf-bay__flame {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 60%;
  height: 40%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 210, 63, .7), rgba(255, 122, 26, .45) 40%, rgba(255, 59, 48, .15) 65%, transparent 72%);
  filter: blur(8px);
  animation: lf-flicker .18s steps(2) infinite alternate;
}
@keyframes lf-hover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes lf-flicker {
  from { opacity: .75; transform: translateX(-50%) scale(.96, .92); }
  to { opacity: 1; transform: translateX(-50%) scale(1.04, 1.06); }
}
.lf-float {
  --c: var(--lf-orange);
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: clamp(36px, 10vw, 54px);
  aspect-ratio: 1;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 50%, transparent), color-mix(in srgb, var(--c) 18%, transparent) 70%);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 60%, transparent), 0 0 20px color-mix(in srgb, var(--c) 60%, transparent);
  animation: lf-bob 3.2s ease-in-out var(--d, 0s) infinite;
}
@keyframes lf-bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-10px) rotate(6deg); }
}

/* Launchpad strip and the workbench rail */
.lf-pad {
  position: relative;
  z-index: 2;
  padding: 0 12px 14px;
  background: #0b1022;
  border-top: 3px solid #c99a1a;
  box-shadow: 0 -10px 30px rgba(255, 122, 26, .12);
}
.lf-pad::before {
  content: '';
  display: block;
  height: 22px;
  margin: 0 -12px 14px;
  background: repeating-linear-gradient(-45deg, #2d3a44 0 14px, #26323c 14px 28px);
}
.lf-bench {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: clamp(6px, 2vw, 14px);
}
.lf-bench li {
  --c: var(--lf-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: clamp(54px, 16vw, 78px);
}
.lf-bench .emoji {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  font-size: clamp(1.3rem, 5vw, 1.9rem);
  background: #121a33;
  border: 2px solid var(--c);
  border-radius: 14px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .35), 0 0 14px color-mix(in srgb, var(--c) 30%, transparent);
}
.lf-bench li span:last-child {
  max-width: 100%;
  font-family: var(--lf-arcade);
  font-size: clamp(.4rem, 1.4vw, .55rem);
  letter-spacing: .5px;
  color: #e9eefc;
  text-shadow: 1px 1px 0 #000;
  white-space: nowrap;
  overflow: hidden;
}

/* ── Store buttons (same look as the other game pages) ── */
.lf .store-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.lf-hero .store-row { margin-top: 30px; }
@media (min-width: 960px) { .lf-hero .store-row { justify-content: flex-start; } }
.lf .store-btn {
  gap: 9px;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  user-select: none;
}
.lf .store-btn svg { width: 19px; height: 19px; }
.lf .store-btn.android { box-shadow: 0 4px 20px rgba(52,168,83,.25); }
.lf .store-btn.windows { box-shadow: 0 4px 20px rgba(0,120,212,.25); }
.lf a.store-btn:hover { box-shadow: 0 8px 30px rgba(255,210,63,.3); }
@media (max-width: 600px) {
  .lf .store-row { width: 100%; }
  .lf .store-btn { flex: 1 1 100%; justify-content: center; padding: 12px 14px; font-size: .88rem; }
}

/* ── How it plays ── */
.lf-steps { list-style: none; display: grid; gap: 16px; }
@media (min-width: 760px) { .lf-steps { grid-template-columns: repeat(3, 1fr); } }
.lf-step { position: relative; padding: 24px 20px 22px; transition: transform .25s, border-color .25s; }
.lf-step:hover { transform: translateY(-3px); border-color: rgba(255, 210, 63, .35); }
.lf-step__num {
  position: absolute;
  top: 14px; right: 16px;
  font-family: var(--lf-arcade);
  color: rgba(255, 210, 63, .22);
  font-size: 2.6rem;
  line-height: 1;
}
.lf-step__icon { height: 72px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.lf-step__arrow { font-size: 1.6rem; font-weight: 700; color: var(--lf-gold); }
.lf-step__launch {
  font-size: 2.6rem;
  filter: drop-shadow(0 6px 10px rgba(255, 122, 26, .55));
  animation: lf-hover 2.4s ease-in-out infinite;
}
.lf-step p { color: var(--lf-muted); line-height: 1.6; }

/* ── Field guide ── */
.lf-fixes { list-style: none; display: grid; gap: 18px; }
@media (min-width: 600px) { .lf-fixes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .lf-fixes { grid-template-columns: repeat(3, 1fr); } }
.lf-fix {
  --c: var(--lf-gold);
  position: relative;
  padding: 22px 20px 18px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%),
    var(--lf-panel);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  border-top: 4px solid var(--c);
  border-radius: 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s, box-shadow .25s;
}
.lf-fix:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.35), 0 0 24px color-mix(in srgb, var(--c) 22%, transparent); }
.lf-fix__art {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.lf-fix__link {
  flex: 1;
  height: 0;
  border-top: 2px dashed color-mix(in srgb, var(--c) 55%, transparent);
}
.lf-fix__name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c);
  text-shadow: 0 0 14px color-mix(in srgb, var(--c) 35%, transparent);
}
.lf-fix__tool { margin-top: 6px; color: var(--lf-muted); line-height: 1.5; }
.lf-where {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--lf-muted);
}
.lf-where span {
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
}
.lf-pop {
  position: absolute;
  left: 4px;
  top: -12px;
  padding: 2px 10px;
  font-weight: 700;
  font-size: 1rem;
  color: #0b1022;
  background: var(--lf-gold);
  border-radius: 999px;
  box-shadow: 2px 2px 0 #000;
  opacity: 0;
  pointer-events: none;
}

/* The fix: the tool slides onto the hazard, the hazard pops, "+50" floats up */
.lf-fix.is-fix .lf-tool { animation: lf-drag .9s ease-in-out; }
.lf-fix.is-fix .lf-hazard { animation: lf-cured .9s ease-in-out; }
.lf-fix.is-fix .lf-pop { animation: lf-pop .9s ease-out; }
@keyframes lf-drag {
  0%, 100% { transform: none; }
  40%, 55% { transform: translateX(var(--reach, -80px)) scale(.9) rotate(-10deg); }
}
@keyframes lf-cured {
  0%, 38% { transform: none; opacity: 1; }
  55% { transform: scale(0); opacity: 0; }
  80% { transform: scale(1.12); opacity: 1; }
  100% { transform: none; }
}
@keyframes lf-pop {
  0%, 35% { opacity: 0; transform: translateY(6px) scale(.6); }
  55% { opacity: 1; transform: translateY(-6px) scale(1.1); }
  85% { opacity: 1; transform: translateY(-12px) scale(1); }
  100% { opacity: 0; transform: translateY(-18px); }
}

/* The wrong tool: bounces off, nothing fixed */
.lf-fix--wrong {
  border: 2px dashed rgba(255, 59, 48, .6);
  border-top: 4px solid var(--lf-red);
  background:
    repeating-linear-gradient(-45deg, rgba(255,59,48,.06) 0 10px, transparent 10px 20px),
    var(--lf-panel);
}
.lf-fix--wrong .lf-fix__tool { color: #f1d0d3; }
.lf-fix--wrong .lf-fix__link { border-top-color: rgba(255, 59, 48, .5); }
.lf-fix--wrong .lf-pop { color: #fff; background: var(--lf-red); }
.lf-fix--wrong.is-fix .lf-tool { animation: lf-bounce .9s ease-in-out; }
.lf-fix--wrong.is-fix .lf-hazard { animation: lf-shake .9s ease-in-out; }
@keyframes lf-bounce {
  0%, 100% { transform: none; }
  40% { transform: translateX(calc(var(--reach, -80px) * .8)) rotate(-12deg); }
  55% { transform: translateX(calc(var(--reach, -80px) * .45)) rotate(14deg); }
  75% { transform: translateX(calc(var(--reach, -80px) * .1)) rotate(-4deg); }
}
@keyframes lf-shake {
  0%, 38%, 70%, 100% { transform: none; }
  45% { transform: translateX(-4px); }
  52% { transform: translateX(4px); }
  60% { transform: translateX(-2px); }
}
.lf-stamp {
  position: absolute;
  top: -14px; right: 12px;
  padding: 4px 10px;
  background: var(--lf-red);
  color: #1a0306;
  font-family: var(--lf-arcade);
  font-size: .72rem;
  letter-spacing: 1px;
  border-radius: 4px;
  transform: rotate(4deg);
  box-shadow: 2px 2px 0 #000;
}
.lf-fixes-note { margin-top: 18px; text-align: center; color: var(--lf-muted); }

/* ── The clock ── */
.lf-clock-section {
  background:
    radial-gradient(ellipse 45% 55% at 20% 50%, rgba(255, 59, 48, .07), transparent 70%),
    radial-gradient(ellipse 45% 55% at 80% 50%, rgba(255, 210, 63, .06), transparent 70%);
}
.lf-hook { display: grid; gap: 18px; }
@media (min-width: 860px) { .lf-hook { grid-template-columns: 1fr 1fr; } }
.lf-clock { border-color: rgba(255, 210, 63, .35); }

.lf-timer {
  display: grid;
  place-items: center;
  height: 96px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #070b1a;
  border: 1px solid var(--lf-line);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .6);
  font-family: var(--lf-arcade);
  font-size: 3.2rem;
  color: #fff;
  text-shadow: 3px 3px 0 #000, 0 0 18px rgba(255, 255, 255, .35);
}
.lf-timer.is-alarm { color: var(--lf-red); text-shadow: 3px 3px 0 #000, 0 0 24px rgba(255, 59, 48, .8); animation: lf-alarm-bg 1s ease-out infinite; }
.lf-timer.is-alarm span { display: inline-block; animation: lf-alarm 1s ease-out infinite; }
.lf-timer.is-launch { font-size: clamp(1.4rem, 6vw, 2.2rem); color: var(--lf-gold); text-shadow: 3px 3px 0 #000, 0 0 24px rgba(255, 210, 63, .7); }
@keyframes lf-alarm {
  0% { transform: scale(1.15); }
  100% { transform: none; }
}
@keyframes lf-alarm-bg {
  0% { background-color: rgba(255, 59, 48, .32); }
  100% { background-color: #070b1a; }
}

.lf-ladder { list-style: none; display: grid; gap: 10px; margin: 16px 0 18px; }
.lf-ladder li { display: grid; grid-template-columns: 76px 1fr 58px; align-items: center; gap: 12px; }
.lf-ladder__lv { font-weight: 700; color: var(--lf-muted); white-space: nowrap; }
.lf-ladder__bar {
  height: 14px;
  width: calc(var(--t) * 10%);
  border-radius: 4px;
  background: linear-gradient(90deg, #c99a1a, var(--lf-gold));
  box-shadow: 2px 2px 0 #000;
}
.lf-ladder li:last-child .lf-ladder__bar { background: linear-gradient(90deg, #c2410c, var(--lf-red)); animation: lf-pulse-bar 1s ease-in-out infinite; }
.lf-ladder__s { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: .95rem; color: var(--lf-gold); text-align: right; font-variant-numeric: tabular-nums; }
.lf-ladder li:last-child .lf-ladder__s { color: #ff6b61; }
@keyframes lf-pulse-bar {
  0%, 100% { box-shadow: 2px 2px 0 #000; }
  50% { box-shadow: 2px 2px 0 #000, 0 0 14px rgba(255, 59, 48, .7); }
}
.lf-alarm {
  padding: 10px 14px;
  border-radius: 12px;
  color: #f1d0d3;
  line-height: 1.55;
  background: rgba(255, 59, 48, .08);
  border: 1px solid rgba(255, 59, 48, .3);
}

.lf-facts { list-style: none; display: grid; gap: 10px; margin: 16px 0 18px; }
.lf-facts li {
  display: grid;
  grid-template-columns: 136px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px dashed var(--lf-line);
  border-radius: 12px;
  color: var(--lf-muted);
  line-height: 1.45;
}
.lf-facts__big {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: var(--lf-gold);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.lf-example {
  padding: 10px 14px;
  border-radius: 12px;
  line-height: 1.55;
  background: rgba(255, 210, 63, .08);
  border: 1px solid rgba(255, 210, 63, .28);
}
.lf-example strong { color: var(--lf-gold); font-family: 'Orbitron', sans-serif; font-weight: 900; }
@media (max-width: 420px) {
  .lf-facts li { grid-template-columns: 1fr; gap: 4px; }
  .lf-ladder li { grid-template-columns: 66px 1fr 52px; gap: 8px; }
}

/* ── Features ── */
.lf-features { list-style: none; display: grid; gap: 14px; }
@media (min-width: 600px) { .lf-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .lf-features { grid-template-columns: repeat(4, 1fr); } }
.lf-feature {
  --c: var(--lf-gold);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 18px;
  transition: transform .25s, border-color .25s;
}
@media (min-width: 1000px) { .lf-feature { flex-direction: column; gap: 12px; } }
.lf-feature:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.lf-feature__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-size: 1.6rem;
  background: #121a33;
  border: 2px solid var(--c);
  border-radius: 14px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .35), 0 0 14px color-mix(in srgb, var(--c) 28%, transparent);
}
.lf-feature h3 { margin-bottom: 6px; font-weight: 700; font-size: 1.15rem; letter-spacing: .3px; color: #fff; }
.lf-feature p { color: var(--lf-muted); line-height: 1.5; }

/* ── Screenshots ── */
.lf-shots {
  list-style: none;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 16px 20px;
  margin: 0 -16px;
  scrollbar-width: thin;
  scrollbar-color: var(--lf-gold) rgba(255,255,255,.08);
}
@media (min-width: 820px) { .lf-shots { justify-content: center; overflow: visible; margin: 0; padding: 8px 0 20px; gap: 28px; } }
.lf-shots li { flex: 0 0 auto; width: min(240px, 66vw); scroll-snap-align: center; }
.lf-shots .phone {
  width: 100%;
  background: linear-gradient(160deg, #1d2a4d, #0a0f22 60%);
  border-color: rgba(128, 216, 255, .2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 40px rgba(64, 140, 255, .14);
}
/* The three captures differ slightly in size: give them one frame shape */
.lf-shots .phone img { aspect-ratio: 420 / 750; object-fit: cover; object-position: top; background: var(--lf-bg); }
.lf-shots figcaption {
  margin-top: 14px;
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lf-gold);
}

/* ── Download CTA ── */
.lf-cta { text-align: center; }
.lf .lf-cta {
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(255, 122, 26, .14), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
}
.lf-cta__icon {
  display: block;
  width: 128px; height: 128px;
  margin: 0 auto 20px;
  border-radius: 28px;
  border: 2px solid rgba(128, 216, 255, .3);
  box-shadow: 0 16px 40px rgba(0,0,0,.5), 0 0 40px rgba(64, 140, 255, .25);
  animation: lf-hover 3.4s ease-in-out infinite;
}
.lf-cta .more-link { color: var(--lf-gold); }

@media (prefers-reduced-motion: reduce) {
  .lf-stars::after { opacity: .7; }
  .lf-step:hover, .lf-fix:hover, .lf-feature:hover { transform: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   Time's Up! theme (times-up*.html only, via <body class="tu">)
   "Cosmic clockwork": tokens copied from the game's src/app.scss :root.
   Rare has no token in the game, so it uses #5aa8ff (between cyan and
   violet). Every rule is scoped to .tu or prefixed tu-. Dark only.
   ══════════════════════════════════════════════════════════════════════ */

body.tu {
  --tu-void: #030713;
  --tu-navy: #081329;
  --tu-panel: rgba(9, 18, 42, .82);
  --tu-line: rgba(135, 186, 255, .2);
  --tu-cyan: #52d6ff;
  --tu-gold: #ffdc76;
  --tu-violet: #8b6dff;
  --tu-ember: #ff7a2f;
  --tu-ember-light: #ffc062;
  --tu-text: #f5f8ff;
  --tu-soft: #d7e2f4;
  --tu-muted: #9daccc;
  --tu-common: #b4c3d5;
  --tu-uncommon: #62e6a7;
  --tu-rare: #5aa8ff;
  --tu-epic: #bd77ff;
  --tu-legendary: #ffb44c;
  --tu-ease: cubic-bezier(.16, 1, .3, 1);
  --tu-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --tu-display: 'Roboto Condensed', 'Arial Narrow', Impact, sans-serif;

  color-scheme: dark;
  background: var(--tu-void);
  color: var(--tu-text);
}
body.tu::before {
  background:
    radial-gradient(ellipse 60% 45% at 85% 15%, rgba(139, 109, 255, .1), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(82, 214, 255, .06), transparent);
}

.tu main { font-family: var(--tu-body); font-size: 1rem; line-height: 1.6; }
.tu header { background: rgba(3, 7, 19, .94); border-bottom-color: var(--tu-line); }
.tu :focus-visible { outline: 3px solid var(--tu-cyan); outline-offset: 3px; border-radius: 6px; }
.tu [hidden] { display: none !important; }
.tu strong { color: var(--tu-text); }
.tu main a { color: var(--tu-cyan); }
.tu main .back-link, .tu main .store-btn { color: #fff; }
.tu main .back-link { color: rgba(255, 255, 255, .6); }
.tu main .back-link:hover { color: var(--tu-gold); }

.tu-skip {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 1100;
  padding: 10px 16px;
  font-family: var(--tu-body);
  font-weight: 700;
  color: var(--tu-void);
  background: var(--tu-cyan);
  border-radius: 10px;
  text-decoration: none;
}
.tu-skip:focus { top: 12px; }

/* Section headings in the game's style */
.tu .kicker { color: var(--tu-cyan); font-family: var(--tu-body); font-weight: 700; font-size: .78rem; letter-spacing: 3px; }
.tu .section-title {
  font-family: var(--tu-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4.4vw, 2.7rem);
  letter-spacing: 1px;
  line-height: 1.1;
  color: var(--tu-text);
}
.tu .section-title::after { width: 72px; background: linear-gradient(90deg, var(--tu-cyan), var(--tu-gold)); }
.tu-lede { margin-top: 14px; color: var(--tu-soft); font-size: 1.08rem; line-height: 1.65; }
.tu .section--alt {
  background: linear-gradient(180deg, rgba(8, 19, 41, .7), rgba(8, 19, 41, .35));
  border-color: var(--tu-line);
}

.tu-panel {
  padding: 22px 20px;
  background: var(--tu-panel);
  border: 1px solid var(--tu-line);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 14px 34px rgba(0, 0, 0, .3);
}
.tu-card-title {
  margin-bottom: 8px;
  font-family: var(--tu-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: .5px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--tu-text);
}
.tu-small { margin-top: 12px; font-size: .92rem; color: var(--tu-muted); }

.tu-badge {
  display: inline-block;
  padding: 4px 11px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--tu-soft);
  border: 1px solid var(--tu-line);
  border-radius: 999px;
  background: rgba(82, 214, 255, .06);
}
.tu-badge--free { color: var(--tu-uncommon); border-color: rgba(98, 230, 167, .45); background: rgba(98, 230, 167, .08); }

/* ── Hero ── */
.tu-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 4vw, 56px) 16px clamp(56px, 8vw, 96px);
  background: var(--tu-void) url('images/times-up/bg-960.webp') center 55% / cover no-repeat;
}
@media (min-width: 961px) { .tu-hero { background-image: url('images/times-up/bg.webp'); } }
.tu-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, transparent 60%, var(--tu-void)),
    linear-gradient(90deg, rgba(3, 7, 19, .82), rgba(3, 7, 19, .5) 60%, rgba(3, 7, 19, .3));
}
.tu-hero__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
@media (min-width: 900px) { .tu-hero__inner { grid-template-columns: 1.2fr .8fr; } }
.tu-hero__copy { min-width: 0; }

.tu-title {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  margin: 18px 0 14px;
  font-family: var(--tu-display);
  font-weight: 800;
  font-size: clamp(3rem, 10vw, 5.4rem);
  line-height: .95;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--tu-text);
  text-shadow: 0 4px 30px rgba(82, 214, 255, .25);
}
.tu-title__icon {
  flex: 0 0 auto;
  width: clamp(64px, 12vw, 100px);
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 220, 118, .45), 0 0 40px rgba(255, 122, 47, .35);
}
.tu-up { color: var(--tu-gold); text-shadow: 0 0 26px rgba(255, 220, 118, .45); }
.tu-tagline {
  font-family: var(--tu-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--tu-cyan);
}
.tu-hook {
  margin-top: 10px;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.3;
  color: var(--tu-text);
}
.tu-hero .lede { margin-top: 14px; color: var(--tu-soft); font-size: 1.08rem; }

.tu-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tu-chips li {
  padding: 5px 13px;
  font-weight: 600;
  font-size: .88rem;
  color: var(--tu-soft);
  background: rgba(3, 7, 19, .6);
  border: 1px solid var(--tu-line);
  border-radius: 999px;
}

@media (max-width: 899px) {
  .tu-hero__copy { text-align: center; }
  .tu-hero .eyebrow, .tu-title, .tu-chips { justify-content: center; }
  .tu-hero .lede { margin-left: auto; margin-right: auto; }
  .tu-hero::before {
    background:
      linear-gradient(to bottom, transparent 60%, var(--tu-void)),
      rgba(3, 7, 19, .62);
  }
}

/* The hero clock: a dial that drains, and a card that rewinds it */
.tu-stage {
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  justify-content: center;
  justify-self: center;
}
.tu-dial {
  position: relative;
  width: clamp(210px, 30vw, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 19, 41, .92) 58%, rgba(8, 19, 41, .55));
  box-shadow: 0 0 0 1px var(--tu-line), 0 0 70px rgba(82, 214, 255, .2), inset 0 0 40px rgba(82, 214, 255, .1);
}
/* Minute ticks, then gold hour ticks: thin rings cut from conic gradients */
.tu-dial::before, .tu-dial::after {
  content: '';
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  pointer-events: none;
}
.tu-dial::before {
  background: repeating-conic-gradient(rgba(215, 226, 244, .3) 0 .7deg, transparent .7deg 6deg);
  -webkit-mask: radial-gradient(circle, transparent 88%, #000 89%);
  mask: radial-gradient(circle, transparent 88%, #000 89%);
}
.tu-dial::after {
  background: repeating-conic-gradient(from -1deg, rgba(255, 220, 118, .75) 0 2deg, transparent 2deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 83%, #000 84%);
  mask: radial-gradient(circle, transparent 83%, #000 84%);
}
.tu-dial__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.tu-dial__track, .tu-dial__fill { fill: none; stroke-width: 6; }
.tu-dial__track { stroke: rgba(135, 186, 255, .14); }
.tu-dial__fill {
  stroke: var(--tu-cyan);
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(82, 214, 255, .7));
  transition: stroke-dashoffset .8s var(--tu-ease), stroke .4s;
}
.tu-dial__face {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
  text-align: center;
}
.tu-dial__label, .tu-dial__note {
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tu-muted);
}
.tu-dial__note { color: var(--tu-gold); }
.tu-dial__time {
  font-family: var(--tu-display);
  font-weight: 800;
  font-size: clamp(3rem, 6.6vw, 4.3rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--tu-text);
  text-shadow: 0 0 22px rgba(82, 214, 255, .45);
  transition: color .4s;
}
.tu-dial.is-low .tu-dial__fill { stroke: var(--tu-ember); filter: drop-shadow(0 0 6px rgba(255, 122, 47, .7)); }
.tu-dial.is-low .tu-dial__time { color: var(--tu-ember-light); text-shadow: 0 0 22px rgba(255, 122, 47, .5); }
.tu-dial.is-out .tu-dial__time { animation: tu-blink 1s steps(2, jump-none) infinite; }
.tu-dial.is-out .tu-dial__note { color: var(--tu-ember-light); }
.tu-dial__float {
  position: absolute;
  top: 16%; right: 4%;
  font-family: var(--tu-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--tu-uncommon);
  text-shadow: 0 0 14px rgba(98, 230, 167, .6);
  opacity: 0;
  pointer-events: none;
}
.tu-dial__float.is-on { animation: tu-float 1.3s var(--tu-ease); }

.tu-rewind {
  position: relative;
  z-index: 2;
  width: clamp(96px, 11vw, 128px);
  margin-left: clamp(-36px, -3vw, -20px);
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  cursor: pointer;
  transform: rotate(7deg);
  transition: transform .35s var(--tu-ease);
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .55)) drop-shadow(0 0 14px rgba(98, 230, 167, .3));
  -webkit-tap-highlight-color: transparent;
}
.tu-rewind img { display: block; width: 100%; height: auto; border-radius: 10px; }
.tu-rewind:hover, .tu-rewind:focus-visible { transform: rotate(2deg) translateY(-8px) scale(1.04); }
.tu-rewind.is-charging { cursor: progress; }
@property --tu-p { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.tu-rewind__charge {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: conic-gradient(rgba(3, 7, 19, .74) var(--tu-p), transparent 0);
  pointer-events: none;
}
.tu-rewind.is-charging .tu-rewind__charge { animation: tu-charge 10s linear forwards; }
.tu-rewind__hint {
  grid-column: 1 / -1;
  max-width: 30ch;
  margin: 18px auto 0;
  text-align: center;
  font-size: .9rem;
  color: var(--tu-muted);
}

@keyframes tu-float {
  0% { opacity: 0; transform: translateY(10px) scale(.8); }
  20% { opacity: 1; transform: translateY(0) scale(1.1); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-26px) scale(1); }
}
@keyframes tu-charge { from { --tu-p: 100%; } to { --tu-p: 0%; } }
@keyframes tu-blink { 50% { opacity: .35; } }

/* ── Store buttons (same look as the other game pages) ── */
.tu .store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.tu-hero .store-row { margin-top: 28px; }
.tu .store-btn {
  gap: 9px;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: var(--tu-body);
  font-weight: 700;
  font-size: .86rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  user-select: none;
}
.tu .store-btn svg { width: 19px; height: 19px; }
.tu .store-btn.exe { background: linear-gradient(135deg, #1b2b52, #0c1733); border-color: var(--tu-line); }
.tu .store-btn.web { background: linear-gradient(135deg, var(--tu-ember-light), var(--tu-ember)); border-color: rgba(255, 192, 98, .45); box-shadow: 0 4px 20px rgba(255, 122, 47, .3); }
.tu .store-btn.disabled { opacity: .55; box-shadow: none; }
.tu a.store-btn:hover { box-shadow: 0 8px 30px rgba(255, 192, 98, .35); }
@media (max-width: 899px) { .tu-hero .store-row { justify-content: center; } }
@media (max-width: 480px) {
  .tu .store-row { width: 100%; }
  .tu .store-btn { flex: 1 1 100%; justify-content: center; }
}

/* ── How it works ── */
.tu-steps { list-style: none; display: grid; gap: 16px; }
@media (min-width: 600px) { .tu-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tu-steps { grid-template-columns: repeat(4, 1fr); } }
.tu-step { position: relative; padding-top: 24px; }
.tu-step__num {
  position: absolute;
  top: 12px; right: 18px;
  font-family: var(--tu-display);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  color: rgba(82, 214, 255, .2);
}
.tu-step__card {
  display: block;
  width: 92px;
  height: auto;
  margin-bottom: 18px;
  border-radius: 7px;
  transform: rotate(-4deg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .45);
}
.tu-step:nth-child(even) .tu-step__card { transform: rotate(4deg); }
.tu-step p { color: var(--tu-soft); }

.tu-rules { display: grid; gap: 18px; margin-top: 28px; }
.tu-facts { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 860px) { .tu-facts { grid-template-columns: repeat(4, 1fr); } }
.tu-facts li {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 14px 16px;
  border: 1px dashed var(--tu-line);
  border-radius: 14px;
  color: var(--tu-muted);
  font-size: .92rem;
  line-height: 1.4;
}
.tu-facts__big {
  font-family: var(--tu-display);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--tu-gold);
}
.tu-win { display: grid; gap: 18px; }
@media (min-width: 760px) { .tu-win { grid-template-columns: 1.2fr 1fr; } }
.tu-win__card { border-color: rgba(255, 220, 118, .35); }
.tu-win__card--secret { border-color: rgba(139, 109, 255, .45); }
.tu-win__card p { color: var(--tu-soft); }
.tu-win__card .tu-small { color: var(--tu-muted); }
.tu-list { list-style: none; display: grid; gap: 8px; color: var(--tu-soft); }
.tu-list li { position: relative; padding-left: 22px; }
.tu-list li::before {
  content: '';
  position: absolute;
  left: 2px; top: .55em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--tu-gold);
  box-shadow: 0 0 10px rgba(255, 220, 118, .6);
}

/* ── Card showcase ── */
.tu-card[data-rarity="Common"], .tu-dialog[data-rarity="Common"] { --rc: var(--tu-common); }
.tu-card[data-rarity="Uncommon"], .tu-dialog[data-rarity="Uncommon"] { --rc: var(--tu-uncommon); }
.tu-card[data-rarity="Rare"], .tu-dialog[data-rarity="Rare"] { --rc: var(--tu-rare); }
.tu-card[data-rarity="Epic"], .tu-dialog[data-rarity="Epic"] { --rc: var(--tu-epic); }
.tu-card[data-rarity="Legendary"], .tu-dialog[data-rarity="Legendary"] { --rc: var(--tu-legendary); }

.tu-filters { display: grid; gap: 12px; justify-items: center; }
.tu-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.tu-filter__label {
  min-width: 56px;
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tu-muted);
}
.tu-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 15px;
  font-family: var(--tu-body);
  font-weight: 600;
  font-size: .9rem;
  color: var(--tu-soft);
  background: rgba(9, 18, 42, .7);
  border: 1px solid var(--tu-line);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.tu-chip:hover { border-color: rgba(82, 214, 255, .6); color: var(--tu-text); }
.tu-chip[style*="--r"]::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--r);
  box-shadow: 0 0 8px var(--r);
}
.tu-chip[aria-pressed="true"] {
  color: var(--tu-text);
  background: rgba(82, 214, 255, .16);
  border-color: var(--tu-cyan);
  box-shadow: inset 0 0 0 1px var(--tu-cyan);
}
.tu-count { margin: 20px 0 22px; text-align: center; color: var(--tu-muted); font-size: .95rem; }

.tu-gallery { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
@media (min-width: 600px) { .tu-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .tu-gallery { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1080px) { .tu-gallery { grid-template-columns: repeat(6, 1fr); } }
.tu-card__btn {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 0;
  font: inherit;
  text-align: left;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
.tu-card__btn img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--rc, var(--tu-line));
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45), 0 0 16px color-mix(in srgb, var(--rc, #000) 30%, transparent);
  transition: transform .35s var(--tu-ease), box-shadow .35s;
}
.tu-card__btn:hover img, .tu-card__btn:focus-visible img {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, .5), 0 0 26px color-mix(in srgb, var(--rc, #000) 60%, transparent);
}
.tu-card__meta { display: grid; gap: 2px; padding: 0 2px; }
.tu-card__name { font-weight: 700; font-size: .95rem; line-height: 1.25; color: var(--tu-text); }
.tu-card__sub { font-size: .8rem; color: var(--tu-muted); }
.tu-rarity { font-weight: 700; color: var(--rc); }
.tu-empty { margin-top: 8px; text-align: center; color: var(--tu-muted); }
.tu-empty .tu-chip { margin-top: 12px; }

/* Card detail dialog */
.tu-dialog {
  width: min(720px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  font-family: var(--tu-body);
  line-height: 1.55;
  color: var(--tu-text);
  background: linear-gradient(160deg, #0d1c3e, #050b1d);
  border: 1px solid var(--tu-line);
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .65), 0 0 40px color-mix(in srgb, var(--rc, #000) 25%, transparent);
}
.tu-dialog::backdrop { background: rgba(2, 5, 14, .8); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.tu-dialog__body { display: grid; gap: 22px; padding: 36px 24px 24px; }
@media (min-width: 620px) { .tu-dialog__body { grid-template-columns: minmax(0, 260px) 1fr; align-items: center; padding: 32px; } }
.tu-dialog__img {
  display: block;
  width: min(260px, 64vw);
  height: auto;
  margin: 0 auto;
  border: 2px solid var(--rc, var(--tu-line));
  border-radius: 14px;
  box-shadow: 0 0 30px color-mix(in srgb, var(--rc, #000) 40%, transparent);
}
.tu-dialog__rarity { font-weight: 700; font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--rc, var(--tu-cyan)); }
.tu-dialog__name {
  margin: 4px 0 16px;
  font-family: var(--tu-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  line-height: 1.1;
  text-transform: uppercase;
}
.tu-dialog__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.tu-dialog__facts div { padding: 10px 12px; border: 1px solid var(--tu-line); border-radius: 12px; }
.tu-dialog__facts dt { font-size: .72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--tu-muted); }
.tu-dialog__facts dd { font-family: var(--tu-display); font-weight: 800; font-size: 1.35rem; color: var(--tu-gold); }
.tu-dialog__desc { font-size: 1.1rem; color: var(--tu-soft); }
.tu-dialog__nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tu-dialog__close {
  position: absolute;
  top: 10px; right: 10px;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--tu-text);
  background: rgba(9, 18, 42, .85);
  border: 1px solid var(--tu-line);
  border-radius: 50%;
  cursor: pointer;
}
.tu-dialog__close:hover { border-color: var(--tu-cyan); }

/* ── Modes ── */
.tu-modes { list-style: none; display: grid; gap: 16px; }
@media (min-width: 600px) { .tu-modes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tu-modes { grid-template-columns: repeat(4, 1fr); } }
.tu-mode { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.tu-mode__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 6px;
  color: var(--tu-cyan);
  border: 1px solid rgba(82, 214, 255, .4);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82, 214, 255, .16), transparent 70%);
}
.tu-mode__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tu-mode h3 { font-family: var(--tu-display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .5px; }
.tu-mode p { color: var(--tu-soft); }
.tu-mode .tu-badge { margin-top: auto; }

/* ── Story ── */
.tu-feature { display: grid; gap: 24px 36px; align-items: center; margin-bottom: clamp(36px, 5vw, 56px); }
@media (min-width: 900px) { .tu-feature { grid-template-columns: 1.3fr 1fr; } }
.tu-video {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--tu-line);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 50px rgba(139, 109, 255, .18);
}
.tu-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.tu-chapter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tu-muted);
}
.tu-diff {
  padding: 2px 9px;
  font-size: .7rem;
  letter-spacing: 1px;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.tu-diff--easy { color: var(--tu-uncommon); }
.tu-diff--medium { color: var(--tu-gold); }
.tu-diff--hard { color: var(--tu-ember-light); }
.tu-feature__summary { margin-top: 12px; font-weight: 600; font-size: 1.2rem; line-height: 1.45; color: var(--tu-text); }
.tu-quote {
  margin: 16px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--tu-gold);
  font-style: italic;
  color: var(--tu-soft);
}

/* The five rivals: a path that scrolls sideways until there is room for all five */
.tu-path {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 74%);
  gap: 18px;
  margin: 0 -16px;
  padding: 26px 16px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--tu-cyan) rgba(255, 255, 255, .08);
}
@media (min-width: 600px) { .tu-path { grid-auto-columns: minmax(240px, 42%); } }
@media (min-width: 1040px) {
  .tu-path { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 26px 0 0; overflow: visible; }
}
.tu-rival {
  position: relative;
  scroll-snap-align: start;
  padding-bottom: 18px;
  background: var(--tu-panel);
  border: 1px solid var(--tu-line);
  border: 1px solid color-mix(in srgb, var(--metal) 40%, transparent);
  border-radius: 14px;
}
/* The path: a node above each rival and a line to the next */
.tu-rival::before {
  content: '';
  position: absolute;
  top: -18px; left: 18px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--metal);
  box-shadow: 0 0 12px var(--metal);
}
.tu-rival::after {
  content: '';
  position: absolute;
  top: -13px; left: 34px; right: -14px;
  height: 2px;
  background: linear-gradient(90deg, var(--metal), rgba(135, 186, 255, .25));
}
.tu-rival:last-child::after { right: 18px; background: linear-gradient(90deg, var(--metal), transparent); }
.tu-rival__art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 13px 13px 0 0;
  border-bottom: 2px solid var(--metal);
}
.tu-rival .tu-chapter { margin: 14px 16px 6px; }
.tu-rival .tu-card-title { margin: 0 16px 6px; font-size: 1.12rem; color: var(--metal); }
.tu-rival p:last-child { margin: 0 16px; font-style: italic; font-size: .95rem; color: var(--tu-soft); }
.tu-rival--boss { box-shadow: 0 0 34px rgba(255, 90, 116, .22); }

/* ── Collect & customise ── */
.tu-collect { display: grid; gap: 18px; }
@media (min-width: 860px) {
  .tu-collect { grid-template-columns: 1fr 1fr; }
  .tu-cosmetics { grid-column: 1 / -1; }
}
.tu-pack, .tu-shards { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.tu-pack p, .tu-shards p { margin-bottom: 12px; color: var(--tu-soft); }
.tu-shards p { margin-bottom: 0; }
.tu-pack__fan { position: relative; width: 132px; height: 140px; }
.tu-pack__fan img {
  position: absolute;
  top: 10px; left: 30px;
  width: 76px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .5);
}
.tu-pack__fan img:nth-child(1) { transform: translateX(-26px) rotate(-14deg); }
.tu-pack__fan img:nth-child(2) { transform: translateX(-10px) rotate(-5deg); }
.tu-pack__fan img:nth-child(3) {
  transform: translateX(16px) rotate(8deg);
  border: 2px solid var(--tu-legendary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .5), 0 0 22px rgba(255, 180, 76, .55);
}
.tu-shards__big {
  min-width: 132px;
  text-align: center;
  font-family: var(--tu-display);
  font-weight: 800;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--tu-gold);
  text-shadow: 0 0 24px rgba(255, 220, 118, .5);
}
@media (max-width: 420px) {
  .tu-pack, .tu-shards { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
.tu-avatars, .tu-backs { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 12px; margin-top: 8px; }
@media (min-width: 760px) { .tu-avatars, .tu-backs { grid-template-columns: repeat(6, 1fr); } }
.tu-avatars li, .tu-backs li { display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center; font-size: .85rem; font-weight: 600; color: var(--tu-soft); line-height: 1.3; }
.tu-avatars img {
  width: 100%;
  max-width: 96px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--tu-line);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .4);
}
.tu-backs img { width: 100%; max-width: 104px; height: auto; border-radius: 8px; box-shadow: 0 10px 20px rgba(0, 0, 0, .45); }

.tu-features { list-style: none; display: grid; gap: 4px 18px; margin-top: 26px; }
@media (min-width: 600px) { .tu-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tu-features { grid-template-columns: repeat(4, 1fr); } }
.tu-features li { display: grid; align-content: start; gap: 2px; padding: 14px 2px; border-top: 2px solid rgba(82, 214, 255, .3); color: var(--tu-muted); font-size: .95rem; }
.tu-features strong { font-family: var(--tu-display); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .5px; }

/* ── Platforms / download ── */
.tu-cta { text-align: center; }
.tu .tu-cta {
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(255, 122, 47, .1), transparent 70%),
    linear-gradient(180deg, rgba(8, 19, 41, .7), rgba(8, 19, 41, .35));
}
.tu-cta__icon {
  display: block;
  width: 112px; height: 112px;
  margin: 0 auto 20px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 220, 118, .4), 0 0 50px rgba(255, 122, 47, .35);
}
.tu-cta .store-row { justify-content: center; }
.tu .tu-cta .more-link { color: var(--tu-cyan); font-family: var(--tu-body); }


@media (prefers-reduced-motion: reduce) {
  .tu-dial__float { display: none; }
}
