/* ─────────────────────────────────────────────────────────────────────────────────────────────
   LaserTagFun marketing site — design tokens first, then layout.

   The palette is lifted straight from the game's own themes (src/themes.ts): the Space Station's
   cyan/magenta team colours and the volcano's orange, over the near-black of the arena sky. Change
   the look by editing the :root tokens, not by scattering hex values through the rules.
   ───────────────────────────────────────────────────────────────────────────────────────────── */

:root {
  /* Surfaces — deep space, getting lighter as things come forward */
  --bg:        #070a16;
  --bg-alt:    #0b0f22;
  --surface:   #121834;
  --surface-2: #1a2145;
  --line:      #263063;

  /* Ink */
  --ink:       #eef2ff;
  --ink-soft:  #b3bede;
  --ink-dim:   #7f8ab0;

  /* Neon — the two station team colours plus lava orange and a lime accent */
  --cyan:      #22e0ff;
  --magenta:   #ff4bd8;
  --lime:      #a3ff12;
  --orange:    #ff6a2b;

  /* Type */
  --display: 'Fredoka', ui-rounded, 'Trebuchet MS', system-ui, sans-serif;
  --body:    'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Rhythm */
  --wrap: 1180px;
  --pad: clamp(1rem, 4vw, 2rem);
  --r-sm: 10px;
  --r:    18px;
  --r-lg: 28px;

  --glow-cyan: 0 0 0 1px #22e0ff44, 0 8px 40px -8px #22e0ff55;
  --shadow:    0 24px 60px -24px #000c;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Two soft neon washes behind everything, so the page never reads as flat black. */
  background-image:
    radial-gradient(60rem 40rem at 82% -8%, #22e0ff1f, transparent 60%),
    radial-gradient(52rem 36rem at 6% 12%, #ff4bd81a, transparent 62%);
  background-attachment: fixed;
}

h1, h2, h3, .brand-text, .step-n, .btn { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--cyan); }
img { max-width: 100%; height: auto; display: block; }

/* An emoji glyph is much wider than the space that follows it, so a leading emoji reads as if it is
   glued to the next word. Every leading emoji is wrapped in this span to buy back the gap. */
.emo { margin-right: .45em; }

.hl {
  background: linear-gradient(100deg, var(--cyan), var(--magenta) 55%, var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.wrap { width: min(100% - var(--pad) * 2, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--cyan); color: #041018; padding: .7rem 1.1rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

:where(a, button, summary, details):focus-visible {
  outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px;
}

/* ── Buttons ───────────────────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  text-decoration: none; border: 0; cursor: pointer; white-space: nowrap;
  border-radius: 999px; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn-sm { padding: .55rem 1.15rem; font-size: .95rem; }
.btn-lg { padding: .95rem 1.9rem; font-size: 1.15rem; }

.btn-play {
  color: #04121a;
  background: linear-gradient(120deg, var(--cyan), #7ef0d0 45%, var(--lime));
  box-shadow: 0 10px 30px -10px #22e0ffaa, inset 0 -3px 0 #0a6a7d55;
}
.btn-play:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px #22e0ffcc, inset 0 -3px 0 #0a6a7d55; }
.btn-play:active { transform: translateY(0); }

.btn-ghost { color: var(--ink); background: #ffffff10; box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { background: #ffffff1c; }

@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ── Nav ───────────────────────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: #070a16cc;
  transition: box-shadow .2s ease, background .2s ease;
}
.nav.is-stuck { box-shadow: 0 1px 0 var(--line), 0 12px 30px -20px #000; background: #070a16ee; }
.nav-in { display: flex; align-items: center; gap: 1rem; padding: .7rem 0; }

.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-text { font-size: 1.3rem; letter-spacing: .02em; }
.brand-text span { color: var(--cyan); }
.brand-text .fun, .foot-brand .fun { color: var(--magenta); }  /* LASER (white) · TAG (cyan) · FUN (magenta) */

.nav-links { display: flex; gap: 1.35rem; margin-left: auto; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .97rem;
  padding: .2rem 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--cyan); }

.burger { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.burger span { display: block; width: 24px; height: 3px; border-radius: 2px; background: var(--ink); margin: 4px 0; transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .burger { display: block; order: 3; }
  .nav-in > .btn-play { margin-left: auto; }
  .nav-links {
    order: 4; width: 100%; margin: 0; flex-direction: column; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-links.is-open { max-height: 22rem; }
  .nav-links a { padding: .8rem .2rem; border-bottom: 1px solid var(--line); }
}

/* ── Hero ──────────────────────────────────────────────────────────────────────────────────── */

.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero-in { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 940px) { .hero-in { grid-template-columns: 1.02fr 1fr; } }

.eyebrow {
  display: inline-block; margin: 0 0 1rem; padding: .35rem .9rem;
  font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--lime); background: #a3ff1216; border-radius: 999px; box-shadow: inset 0 0 0 1px #a3ff1240;
}
.hero h1 { font-size: clamp(2.6rem, 7.5vw, 4.6rem); }
.lede { color: var(--ink-soft); font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); max-width: 34em; }
.lede strong { color: var(--ink); }

.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.4rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.chips li {
  font-size: .9rem; font-weight: 600; color: var(--ink-soft);
  padding: .35rem .8rem; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}

.hero-shot { margin: 0; }
.hero-shot picture img, .arena picture img {
  width: 100%; border-radius: var(--r-lg);
  box-shadow: var(--shadow), 0 0 0 1px #ffffff14, 0 0 60px -20px #ff6a2b66;
}
.hero-shot figcaption, .arena figcaption { margin-top: .7rem; font-size: .85rem; color: var(--ink-dim); text-align: center; }

/* ── Sections ──────────────────────────────────────────────────────────────────────────────── */

.sec { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.sec-alt { background: linear-gradient(180deg, transparent, var(--bg-alt) 12% 88%, transparent); }
.sec-title { font-size: clamp(1.9rem, 4.4vw, 3rem); text-align: center; }
.sec-lede { color: var(--ink-soft); text-align: center; max-width: 52ch; margin-inline: auto; margin-bottom: clamp(2rem, 5vw, 3.2rem); }

/* ── Arena feature rows ────────────────────────────────────────────────────────────────────── */

.arena {
  display: grid; gap: clamp(1.3rem, 4vw, 2.8rem); align-items: center;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
@media (min-width: 900px) {
  .arena { grid-template-columns: 1.15fr 1fr; }
  /* Alternate which side the screenshot sits on, without reordering the DOM. */
  .arena-flip > picture { order: 2; }
}
.arena-kicker { font-weight: 700; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; color: var(--cyan); margin-bottom: .4rem; }
.arena h3 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.arena-copy p { color: var(--ink-soft); }
.arena-copy strong { color: var(--ink); }
.arena-tip {
  margin-top: 1.1rem; padding: .8rem 1rem; border-radius: var(--r-sm);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font-size: .95rem; color: var(--ink-soft);
}

.more-arenas { text-align: center; padding-top: 1rem; }
.more-arenas h3 { font-size: clamp(1.2rem, 2.6vw, 1.6rem); color: var(--ink-soft); font-weight: 600; }
.arena-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; list-style: none; padding: 0; margin: 1.4rem 0 0; }
.arena-chips li {
  display: flex; flex-direction: column; gap: .1rem; align-items: center;
  font-family: var(--display); font-weight: 600;
  padding: .7rem 1.3rem; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.arena-chips li > span:not(.emo) { font-family: var(--body); font-size: .8rem; font-weight: 600; color: var(--ink-dim); }
/* In the stacked chips the emoji gets its own line above the arena name rather than sitting inline. */
.arena-chips .emo { display: block; margin: 0 0 .15rem; font-size: 1.4rem; }

/* ── Steps ─────────────────────────────────────────────────────────────────────────────────── */

.steps { display: grid; gap: 1.2rem; list-style: none; padding: 0; margin: 0 0 clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { position: relative; padding: 2.4rem 1.5rem 1.5rem; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.step-n {
  position: absolute; top: -1.1rem; left: 1.5rem;
  width: 2.6rem; height: 2.6rem; display: grid; place-items: center;
  border-radius: 50%; font-size: 1.3rem; color: #04121a;
  background: linear-gradient(120deg, var(--cyan), var(--lime));
  box-shadow: 0 8px 24px -8px #22e0ffaa;
}
.steps h3 { font-size: 1.35rem; }
.steps p { color: var(--ink-soft); margin: 0; }

/* ── Controls ──────────────────────────────────────────────────────────────────────────────── */

.controls { padding: clamp(1.4rem, 4vw, 2.2rem); border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.controls h3 { font-size: 1.4rem; text-align: center; }
.controls dl { display: grid; gap: .5rem; margin: 1.2rem 0 0; }
@media (min-width: 660px) { .controls dl { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.controls dl > div { display: flex; align-items: baseline; gap: .8rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.controls dt {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; font-weight: 700;
  color: var(--lime); background: #a3ff120f; padding: .2rem .55rem; border-radius: 6px;
  box-shadow: inset 0 0 0 1px #a3ff1233; white-space: nowrap;
}
.controls dt .or { color: var(--ink-dim); font-weight: 400; }
.controls dd { margin: 0; color: var(--ink-soft); }
.controls-note { margin: 1.3rem 0 0; font-size: .95rem; color: var(--ink-dim); text-align: center; }

/* ── Cards (power-ups, parents) ────────────────────────────────────────────────────────────── */

.cards { display: grid; gap: 1.1rem; }
@media (min-width: 620px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { padding: 1.5rem 1.3rem; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px #22e0ff55, 0 18px 40px -22px #22e0ff88; }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.card-ico { font-size: 2.2rem; line-height: 1; display: block; margin-bottom: .7rem; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--ink-soft); margin: 0; font-size: .97rem; }

.powerup-note { text-align: center; color: var(--ink-dim); margin-top: 2rem; }
.powerup-note strong { color: var(--ink-soft); }

.parent-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .parent-grid { grid-template-columns: 1fr 1fr; } }
.parent-grid h3 { font-size: 1.15rem; }
.parent-grid p { color: var(--ink-soft); font-size: .97rem; margin: 0; }
.parent-foot { text-align: center; color: var(--ink-dim); margin-top: 2rem; }

/* ── FAQ ───────────────────────────────────────────────────────────────────────────────────── */

.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem .3rem;
  font-family: var(--display); font-weight: 600; font-size: 1.1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--cyan); font-size: 1.5rem; line-height: 1; flex: none; }
.faq[open] summary::after { content: '−'; }
.faq p { color: var(--ink-soft); padding: 0 .3rem 1.2rem; margin: 0; }

/* ── Final CTA ─────────────────────────────────────────────────────────────────────────────── */

.final { text-align: center; padding: clamp(3rem, 8vw, 5.5rem) 0; }
.final h2 { font-size: clamp(1.7rem, 4.4vw, 2.8rem); }
.final-note { color: var(--ink-dim); font-size: .95rem; margin-top: 1.2rem; }

/* ── Ad slots ──────────────────────────────────────────────────────────────────────────────── */

/* Reserved, fixed-height boxes so filling them never shifts the page (CLS). Until a publisher ID is
   configured in ads.js they stay as the empty dashed placeholder below. */
.adslot {
  margin: clamp(1.5rem, 4vw, 2.5rem) auto;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r); overflow: hidden;
  background: #ffffff06; box-shadow: inset 0 0 0 1px var(--line);
}
.adslot::before {
  content: 'Advertisement'; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #ffffff26;
}
.adslot.is-filled { background: none; box-shadow: none; }
.adslot.is-filled::before { content: none; }
.adslot-leaderboard { min-height: 100px; max-width: 970px; }
.adslot-rect { min-height: 260px; max-width: 728px; }
@media (max-width: 520px) { .adslot-leaderboard { min-height: 260px; } }

/* ── Footer ────────────────────────────────────────────────────────────────────────────────── */

.foot { border-top: 1px solid var(--line); padding: 2.5rem 0; background: #05070f; }
.foot-in { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.foot-brand { font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin: 0; letter-spacing: .02em; }
.foot-brand span { color: var(--cyan); }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; }
.foot-links a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 600; }
.foot-links a:hover { color: var(--cyan); }
.foot-legal { color: var(--ink-dim); font-size: .88rem; margin: 0; }

/* ── Scroll reveal ─────────────────────────────────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Legal / 404 pages ─────────────────────────────────────────────────────────────────────── */

.doc { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); }
.doc h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 1.2rem; }
.doc .updated { color: var(--ink-dim); font-size: .9rem; }

.oops { text-align: center; padding: clamp(4rem, 12vw, 8rem) 0; }
.oops h1 { font-size: clamp(3rem, 12vw, 7rem); }
