/* ---------- Colours ----------
   Dark ("arcade at night") is the default.
   Light mode kicks in automatically when the phone/computer is set to light. */
:root {
  --bg: #0d0a0c;
  --bg-glow: rgba(255, 45, 70, .18);
  --surface: #17121a;
  --line: #2c2129;
  --text: #f5eef0;
  --muted: #a8979d;
  --neon: #ff3b52;          /* the logo red */
  --neon-soft: rgba(255, 59, 82, .55);
  --neon-fill: rgba(255, 90, 110, .28);
  --radius: 20px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbf6f2;
    --bg-glow: rgba(230, 40, 60, .10);
    --surface: #ffffff;
    --line: #eadfd9;
    --text: #23171b;
    --muted: #6f5f64;
    --neon: #d81f3a;
    --neon-soft: rgba(216, 31, 58, .35);
    --neon-fill: rgba(230, 60, 80, .18);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background:
    radial-gradient(900px 500px at 50% -120px, var(--bg-glow), transparent 70%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

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

/* ---------- Hero: neon sign ---------- */
.hero { text-align: center; padding: 88px 16px 56px; }

.neon {
  font-family: "Fondamento", Georgia, serif;
  font-weight: 400;
  font-size: clamp(3.2rem, 11vw, 6.5rem);
  line-height: 1.05;
  letter-spacing: .04em;
  color: var(--neon-fill);
  -webkit-text-stroke: 1.5px var(--neon);
  text-shadow:
    0 0 6px var(--neon-soft),
    0 0 18px var(--neon-soft),
    0 0 42px var(--neon-soft);
  animation: flicker 6s infinite;
}
.neon span { display: block; }
.neon span + span { margin-top: .1em; }

@keyframes flicker {
  0%, 91%, 95%, 100% { opacity: 1; }
  92%, 94% { opacity: .55; }
  93% { opacity: .9; }
}
@media (prefers-reduced-motion: reduce) { .neon { animation: none; } }

.lead { color: var(--muted); font-size: 1.15rem; margin: 26px auto 28px; max-width: 30em; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pills a {
  text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color .15s, box-shadow .15s, color .15s;
}
.pills a:hover { border-color: var(--neon); color: var(--neon); box-shadow: 0 0 16px var(--neon-soft); }

/* ---------- Game rows ---------- */
.game {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.game.flip .info { order: 2; }

.title { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.icon {
  width: 72px; height: 72px; border-radius: 18px; flex: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}
h2 { font-size: 1.8rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.tag { color: var(--muted); }

.info ul { list-style: none; display: grid; gap: 8px; margin-bottom: 26px; }
.info li { position: relative; padding-left: 22px; }
.info li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--neon); box-shadow: 0 0 8px var(--neon);
}

.media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px transparent, 0 20px 50px -25px var(--neon-soft);
}
.video { aspect-ratio: 16 / 9; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }

.showcase {
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  background: radial-gradient(circle at center, var(--bg-glow), transparent 65%), var(--surface);
}
.showcase img {
  width: 42%; max-width: 200px; height: auto; border-radius: 22%;
  box-shadow: 0 0 40px var(--neon-soft);
}

/* ---------- Store badges ----------
   Official artwork from assets/badges/. --badge-h sets the visible height of both. */
.stores { --badge-h: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badge {
  display: inline-block;
  line-height: 0;
  overflow: hidden;
  border-radius: calc(var(--badge-h) * .16);
  transition: box-shadow .15s, transform .15s;
}
.badge img { display: block; height: var(--badge-h); width: auto; }
.badge:hover { box-shadow: 0 0 16px var(--neon-soft); transform: translateY(-1px); }

/* Google's official PNG has empty padding built into the image, so it's drawn
   larger and the padding is cropped off to make it match Apple's badge.
   If your PNG is already trimmed (no padding), delete this rule. */
.badge-google img {
  height: calc(var(--badge-h) * 1.49);
  margin: calc(var(--badge-h) * -.245) calc(var(--badge-h) * -.25);
}

/* Placeholder shown instead of a store badge when a game isn't on that store yet */
.coming-soon {
  display: inline-flex;
  align-items: center;
  height: var(--badge-h);
  padding: 0 16px;
  border: 1px dashed var(--muted);
  border-radius: calc(var(--badge-h) * .16);
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
}

/* ---------- About ---------- */
.about {
  border-top: 1px solid var(--line);
  padding: 56px 0 8px;
  text-align: center;
}
.about h2 { margin-bottom: 10px; }
.about p { color: var(--muted); max-width: 34em; margin: 0 auto 14px; }
.email { color: var(--neon); font-weight: 600; text-decoration: none; }
.email:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
footer {
  margin-top: 64px; padding: 28px 16px 36px;
  text-align: center; color: var(--muted); font-size: .9rem;
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .game { grid-template-columns: 1fr; gap: 24px; padding: 44px 0; }
  .game.flip .info { order: 0; }
  .media { order: -1; }       /* video first, then details */
}