/* Dogfight: Buzz the Tower — landing site styles
   One stylesheet for every page (index, privacy, 404, tv).

   Palette: the in-game dusk airfield, pushed a little further.
     #1E183A night navy  ->  #894890 dusk purple  ->  #FCAC60 horizon orange
   Type: Barlow Semi Condensed (the app's own face, OFL), self-hosted from
   assets/fonts/ as Latin-subset WOFF2. No requests to any font service.

   Contrast: body text is cream (#fbf3e6) or muted lilac (#cfc6df) on the
   navy panels (>= 9:1), or ink (#1e183a / #4a4166) on cream (>= 7:1).
   Orange is only used for text on navy/ink (>= 9:1), never on purple. */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/assets/fonts/barlow-semi-condensed-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/assets/fonts/barlow-semi-condensed-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/assets/fonts/barlow-semi-condensed-extrabold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --night: #120e24;
  --navy: #1e183a;
  --panel: #231c42;
  --panel-2: #2c2452;
  --line: rgba(255, 255, 255, 0.13);
  --purple: #894890;
  --lilac: #cdb4f5;
  --orange: #fcac60;
  --orange-2: #ffc98f;
  --rust: #8a3f1c;
  --cream: #fbf3e6;
  --paper: #f6ecdc;
  --ink: #1e183a;
  --ink-soft: #4a4166;
  --muted: #cfc6df;

  --font: "Barlow Semi Condensed", "Avenir Next Condensed", "Arial Narrow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: 16px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(6, 4, 16, 0.45);
}

@media (min-width: 720px) {
  :root {
    --gutter: 28px;
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--orange);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--orange-2);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0;
}

p {
  margin: 0 0 1em;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--orange);
  color: var(--ink);
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: var(--ink);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 12px;
  background: var(--orange);
  color: var(--ink);
  font: 800 1.1rem/1 var(--font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--orange-2);
  color: var(--ink);
}

.btn:active {
  transform: translateY(1px);
}

.btn--ghost {
  background: transparent;
  color: var(--cream);
  box-shadow: inset 0 0 0 2px var(--line);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 14, 36, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  line-height: 1;
}

.brand:hover {
  color: var(--cream);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: none;
}

.brand small {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--lilac);
  margin-bottom: 3px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
  padding: 8px 10px;
  border-radius: 8px;
}

.topnav a:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
}

.topnav .btn {
  min-height: 40px;
  padding: 8px 16px;
  margin-left: 6px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}

.topnav .btn:hover {
  color: var(--ink);
  background: var(--orange-2);
}

.topnav .nav-extra {
  display: none;
}

@media (min-width: 760px) {
  .topnav .nav-extra {
    display: inline-block;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 20px 0 128px;
  background:
    radial-gradient(1.5px 1.5px at 12% 14%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 28% 8%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1px 1px at 46% 18%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 63% 6%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 78% 16%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 91% 9%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 6% 30%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(1px 1px at 54% 28%, rgba(255, 255, 255, 0.35), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--navy) 24%, #3b2560 46%, var(--purple) 64%, #c8607a 80%, #f08a5a 91%, var(--orange) 100%);
}

.hero-sun {
  position: absolute;
  z-index: -2;
  left: 50%;
  bottom: -70px;
  width: min(90vw, 440px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #ffe7b4 0%, #ffd08a 40%, rgba(252, 172, 96, 0.85) 56%, rgba(252, 172, 96, 0) 71%);
}

.hero-hills {
  position: absolute;
  z-index: -1;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 170px;
}

.hero-runway {
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30px;
  background:
    repeating-linear-gradient(90deg, rgba(251, 243, 230, 0.5) 0 38px, transparent 38px 88px) 0 13px / 100% 4px no-repeat,
    #17112a;
  border-top: 3px solid #2b2145;
}

.hero-tower {
  position: absolute;
  z-index: -1;
  right: max(3vw, 10px);
  bottom: 28px;
  width: auto;
  height: 160px;
}

.hero-jet {
  position: absolute;
  z-index: 0;
  width: auto;
  pointer-events: none;
  filter: drop-shadow(0 10px 14px rgba(10, 6, 24, 0.35));
}

.hero-jet--red {
  height: 46px;
  top: 10px;
  right: 5%;
  animation: bob 5s ease-in-out infinite alternate;
}

.hero-jet--blue {
  height: 28px;
  top: 40px;
  right: 34%;
  opacity: 0.92;
  animation: bob 6s ease-in-out -2s infinite alternate;
}

.hero-jet--yellow {
  display: none;
}

@keyframes bob {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(-10px, -8px, 0) rotate(-2deg);
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 30px;
  align-items: center;
}

.hero-copy {
  padding-top: 44px;
}

.hero h1 {
  margin: 0 0 18px;
}

.hero h1 .eyebrow {
  display: block;
  font-size: clamp(1.15rem, 4.2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--lilac);
  margin-bottom: 8px;
}

.hero h1 .title {
  display: block;
  font-size: clamp(3.7rem, 16vw, 7.4rem);
  line-height: 0.86;
  color: var(--cream);
  text-shadow: 0 6px 30px rgba(18, 14, 36, 0.45);
}

.hero-lede {
  font-size: clamp(1.3rem, 3.6vw, 1.65rem);
  font-weight: 600;
  line-height: 1.22;
  max-width: 28ch;
  margin: 0 0 22px;
}

.hero-lede span {
  color: var(--cream);
  font-weight: 400;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-facts li {
  background: rgba(18, 14, 36, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-facts strong {
  color: var(--orange);
  font-weight: 800;
}

.hero-screen {
  margin: 0;
}

@media (min-width: 760px) {
  .hero {
    padding: 48px 0 190px;
  }

  .hero-facts {
    gap: 8px;
  }

  .hero-facts li {
    padding: 6px 14px;
    font-size: 0.98rem;
  }

  .hero-hills {
    height: 220px;
  }

  .hero-tower {
    height: 250px;
  }

  .hero-jet--red {
    height: 62px;
    top: 30px;
    right: 8%;
  }

  .hero-jet--blue {
    height: 36px;
    top: 110px;
    right: 30%;
  }

  .hero-jet--yellow {
    display: block;
    height: 40px;
    top: 170px;
    right: 14%;
    animation: bob 7s ease-in-out -1s infinite alternate;
  }
}

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 48px;
  }

  .hero-copy {
    padding-top: 40px;
  }

  .hero-jet--red {
    top: 26px;
    right: auto;
    left: 34%;
    height: 66px;
  }

  .hero-jet--blue {
    top: 22px;
    right: auto;
    left: 12%;
  }

  .hero-jet--yellow {
    top: auto;
    bottom: 200px;
    right: auto;
    left: 3%;
  }

  .hero-sun {
    left: 58%;
    bottom: -90px;
    width: 520px;
    transform: none;
  }

  .hero-tower {
    height: 300px;
  }
}

/* ---------- Device frames ---------- */

.device {
  position: relative;
  background: #0b0916;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.device-screen {
  position: relative;
  overflow: hidden;
  background: #000;
}

/* Landscape phone (hero, seasonal) */
.device--landscape {
  border-radius: 28px;
  padding: 10px 14px;
}

.device--landscape .device-screen {
  border-radius: 17px;
  aspect-ratio: 2 / 1;
}

.device--landscape::before {
  /* the camera island, on the short side */
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 6px;
  height: 40px;
  transform: translateY(-50%);
  border-radius: 6px;
  background: #1f1a35;
}

@media (min-width: 760px) {
  .device--landscape {
    border-radius: 40px;
    padding: 16px 22px;
  }

  .device--landscape .device-screen {
    border-radius: 24px;
  }

  .device--landscape::before {
    left: 8px;
    height: 64px;
  }
}

/* Portrait phone, cut off at the bottom and faded */
.device--phone {
  width: min(100%, 260px);
  margin: 0 auto;
  border-radius: 40px 40px 0 0;
  padding: 10px 10px 0;
  box-shadow: none;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}

.device--phone .device-screen {
  border-radius: 30px 30px 0 0;
  aspect-ratio: 600 / 605;
}

/* Browser window */
.device--browser {
  border-radius: 14px;
  padding: 0 0 8px;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
}

.browser-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3b3456;
  flex: none;
}

.browser-bar span {
  flex: 1;
  min-width: 0;
  margin-left: 6px;
  background: #1f1a35;
  color: var(--muted);
  border-radius: 7px;
  padding: 3px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device--browser .device-screen {
  margin: 0 8px;
  border-radius: 6px;
  aspect-ratio: 2 / 1;
}

/* Telly */
.device--tv {
  border-radius: 10px;
  padding: 9px;
  margin-bottom: 24px;
}

.device--tv .device-screen {
  border-radius: 3px;
  aspect-ratio: 16 / 9;
}

.device--tv::after {
  /* the stand */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -22px;
  width: 34%;
  height: 22px;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, transparent 44%, #0b0916 44% 56%, transparent 56%) 0 0 / 100% 16px no-repeat,
    linear-gradient(#0b0916, #0b0916) 0 16px / 100% 6px no-repeat;
  border-radius: 0 0 4px 4px;
}

.device-screen > img,
.device-screen > video,
.clip > img,
.clip > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Video clips ---------- */

.clip {
  position: relative;
  overflow: hidden;
  background: #000;
}

.clip > video {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.clip.is-playing > video {
  opacity: 1;
}

.clip-toggle {
  display: none;
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 12px 6px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 14, 36, 0.8);
  color: var(--cream);
  font: 600 0.85rem/1 var(--font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.js .clip-toggle {
  display: inline-flex;
}

.clip-toggle:hover {
  background: rgba(18, 14, 36, 0.96);
}

.clip-toggle svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.clip-toggle .icon-pause,
.clip-toggle .label-pause {
  display: none;
}

.clip.is-playing .clip-toggle .icon-pause,
.clip.is-playing .clip-toggle .label-pause {
  display: inline;
}

.clip.is-playing .clip-toggle .icon-play,
.clip.is-playing .clip-toggle .label-play {
  display: none;
}

/* ---------- Join box: first thing under the hero ---------- */

.join {
  position: relative;
  z-index: 5;
  margin: -88px auto 0;
  max-width: 760px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 26px 18px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--orange);
}

.join-kicker {
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--rust);
  margin: 0 0 6px;
}

.join-title {
  font-size: clamp(1.9rem, 6vw, 2.7rem);
  color: var(--ink);
  margin: 0 0 8px;
}

.join-sub {
  margin: 0 auto 18px;
  max-width: 38ch;
  color: var(--ink-soft);
}

.join-form {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}

.join-form input {
  width: 8.4ch;
  min-height: 60px;
  padding: 8px 0 8px 0.32em;
  border-radius: 12px;
  border: 3px solid var(--ink);
  background: var(--navy);
  color: var(--cream);
  font: 800 2.1rem/1 var(--font);
  letter-spacing: 0.32em;
  text-align: center;
  text-transform: uppercase;
}

.join-form input::placeholder {
  color: rgba(251, 243, 230, 0.32);
}

.join-form input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.join-btn {
  min-height: 60px;
  padding: 12px 26px;
  font-size: 1.25rem;
  background: var(--ink);
  color: var(--cream);
}

.join-btn:hover {
  background: #352b60;
  color: var(--cream);
}

.join-note {
  margin: 16px auto 0;
  max-width: 50ch;
  color: var(--ink-soft);
  font-size: 1rem;
}

.join-note strong {
  color: var(--ink);
}

/* ---------- Sections ---------- */

.section {
  padding: 72px 0;
}

@media (min-width: 760px) {
  .section {
    padding: 104px 0;
  }
}

.kicker {
  display: inline-block;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 12px;
}

.section-title {
  font-size: clamp(2.4rem, 8.5vw, 4.4rem);
  margin: 0 0 16px;
}

.section-lede {
  font-size: clamp(1.15rem, 2.6vw, 1.35rem);
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 40px;
}

/* ---------- How it works / play on anything ---------- */

.how {
  padding-top: 64px;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(137, 72, 144, 0.26), transparent 70%),
    var(--night);
}

.steps {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0 0 64px;
  padding: 0;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 18px 18px 74px;
  min-height: 88px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 14px;
  font-weight: 800;
  font-size: 3.2rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--orange);
}

.step h3 {
  font-size: 1.4rem;
  margin: 0 0 6px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.step strong {
  color: var(--cream);
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.devices {
  display: grid;
  gap: 48px;
  align-items: end;
}

.device-card {
  margin: 0;
}

.device-card figcaption {
  margin-top: 22px;
}

.device-card h3 {
  font-size: 1.7rem;
  margin: 0 0 8px;
}

.device-card p {
  color: var(--muted);
  margin: 0;
}

.device-card .url {
  color: var(--orange);
  font-weight: 600;
  white-space: nowrap;
}

.device-card--phone figcaption {
  margin-top: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .devices {
    grid-template-columns: 0.72fr 1.28fr 1fr;
    gap: 36px;
  }
}

.big-number {
  display: grid;
  gap: 6px 26px;
  align-items: center;
  margin: 64px 0 0;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, #2e1d4f 0%, #5a2f72 100%);
  border: 1px solid var(--line);
}

.big-number b {
  font-size: clamp(4.5rem, 16vw, 7rem);
  font-weight: 800;
  line-height: 0.85;
  color: var(--orange);
}

.big-number p {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--cream);
}

.big-number small {
  display: block;
  margin-top: 8px;
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: none;
  line-height: 1.4;
  color: var(--muted);
}

@media (min-width: 640px) {
  .big-number {
    grid-template-columns: auto 1fr;
    padding: 30px 40px;
  }
}

.no-start {
  margin: 20px 0 0;
  padding: 14px 18px;
  border-left: 4px solid var(--orange);
  background: var(--panel);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
}

.no-start strong {
  color: var(--cream);
}

/* ---------- Six ways to play ---------- */

.games {
  background: linear-gradient(180deg, var(--night) 0%, var(--navy) 100%);
}

.modes {
  display: grid;
  gap: 18px;
}

.mode {
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.mode-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.mode-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mode-media.clip {
  aspect-ratio: 2 / 1;
}

.mode-body {
  padding: 20px 22px 24px;
}

.mode h3 {
  font-size: clamp(1.9rem, 5vw, 2.3rem);
  margin: 0 0 10px;
}

.mode p {
  margin: 0;
  color: var(--muted);
}

.tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(252, 172, 96, 0.14);
  color: var(--orange);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tag--new {
  background: var(--orange);
  color: var(--ink);
}

.inset-shot {
  position: absolute;
  z-index: 2;
  left: 10px;
  top: 10px;
  width: 40%;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(251, 243, 230, 0.85);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  background: #000;
}

.inset-shot img {
  width: 100%;
}

.inset-shot figcaption {
  padding: 3px 7px 4px;
  background: #120e24;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Grounded: the new one, full width */
.mode--feature {
  background:
    linear-gradient(135deg, rgba(252, 172, 96, 0.14), transparent 55%),
    #2a2540;
  border-color: rgba(252, 172, 96, 0.5);
}

@media (min-width: 640px) {
  .modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mode--wide,
  .mode--feature {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1000px) {
  .modes {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px;
  }

  .mode {
    grid-column: span 2;
  }

  .mode--wide {
    grid-column: span 4;
  }

  .mode--feature {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    align-items: stretch;
  }

  .mode--feature .mode-media {
    aspect-ratio: auto;
    min-height: 360px;
  }

  .mode--feature .mode-body {
    align-self: center;
    padding: 36px 40px;
  }

  .mode--feature h3 {
    font-size: 3.4rem;
  }

  .mode--feature p {
    font-size: 1.25rem;
  }
}

/* ---------- Seasonal ---------- */

.season {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 50% at 80% 100%, rgba(232, 116, 62, 0.32), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, #2a1440 55%, #1a0d2a 100%);
}

.season-grid {
  display: grid;
  gap: 56px;
  align-items: center;
}

.season .kicker {
  color: #ffb37a;
}

.season-copy p {
  color: var(--muted);
  font-size: 1.2rem;
  max-width: 40ch;
}

.season-copy p strong {
  color: var(--cream);
}

.season-note {
  font-size: 1rem !important;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.season-art {
  position: relative;
  margin: 0;
}

.season-prop {
  position: absolute;
  z-index: 2;
  width: auto;
  pointer-events: none;
}

.season-prop--cauldron {
  height: 86px;
  left: -6px;
  bottom: -34px;
}

.season-prop--pumpkin {
  height: 38px;
  left: 74px;
  bottom: -24px;
}

.season-prop--bat1 {
  height: 26px;
  right: 30%;
  top: -36px;
  animation: flap 3.2s ease-in-out infinite alternate;
}

.season-prop--bat2 {
  height: 20px;
  right: 44%;
  top: -20px;
  animation: flap 2.6s ease-in-out -1s infinite alternate;
}

.season-prop--witch {
  height: 58px;
  right: 2%;
  top: -46px;
}

@keyframes flap {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-8px);
  }
}

@media (min-width: 1000px) {
  .season-grid {
    grid-template-columns: 1fr 1.3fr;
    gap: 64px;
  }
}

/* ---------- Flight School + Practice ---------- */

.school {
  background: var(--night);
}

.school-grid {
  display: grid;
  gap: 18px;
}

.school-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 28px 22px 210px;
  border: 1px solid var(--line);
}

.school-card h2 {
  font-size: clamp(2.3rem, 7vw, 3.3rem);
  margin: 0 0 12px;
}

.school-card p {
  color: var(--cream);
  max-width: 34ch;
  margin: 0;
}

.school-card--flight {
  background:
    linear-gradient(180deg, rgba(18, 14, 36, 0) 45%, rgba(252, 172, 96, 0.26) 100%),
    linear-gradient(180deg, #232056 0%, #343078 100%);
}

.school-card--practice {
  background:
    linear-gradient(180deg, rgba(18, 14, 36, 0) 45%, rgba(80, 200, 140, 0.18) 100%),
    var(--panel-2);
}

.school-art {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 200px;
  pointer-events: none;
}

.school-art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.school-art img {
  position: absolute;
  width: auto;
}

.school-art .jet-flight {
  height: 52px;
  right: 8%;
  top: 18px;
}

.school-art .tower-flight {
  height: 150px;
  left: 9%;
  bottom: 0;
}

.practice-pill {
  position: absolute;
  left: 22px;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  padding: 12px 30px;
  border-radius: 14px;
  border: 2px solid #5fd39a;
  color: #9af3c6;
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 1.15rem;
  background: rgba(10, 30, 22, 0.55);
}

.practice-jets img:nth-child(1) {
  height: 46px;
  right: 8%;
  top: 18px;
}

.practice-jets img:nth-child(2) {
  height: 34px;
  right: 34%;
  top: 46px;
}

.practice-jets img:nth-child(3) {
  height: 40px;
  right: 14%;
  top: 96px;
}

@media (min-width: 900px) {
  .school-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .school-card {
    padding: 40px 40px 220px;
  }

  .school-art {
    height: 210px;
  }

  .practice-pill {
    left: 40px;
  }
}

/* ---------- Arenas ---------- */

.arenas {
  background: linear-gradient(180deg, var(--night) 0%, var(--navy) 100%);
  padding-top: 0;
}

.arena-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 12px;
  scroll-padding: 0 var(--gutter);
  list-style: none;
}

.arena-strip figure {
  margin: 0;
  scroll-snap-align: start;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
}

.arena-strip img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.arena-strip figcaption {
  padding: 10px 14px 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@media (min-width: 900px) {
  .arena-strip {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    margin: 0;
    padding: 0;
  }
}

/* ---------- Stores ---------- */

.stores {
  background: var(--navy);
  text-align: center;
}

.stores .section-lede {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
}

.stores-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 22px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.store-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 22px;
}

.store-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 220px;
  padding: 13px 24px;
  border-radius: 14px;
  background: #0b0916;
  border: 2px solid var(--line);
  color: var(--cream);
  text-decoration: none;
  text-align: left;
  line-height: 1.05;
}

.store-badge small {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.store-badge b {
  font-size: 1.6rem;
  font-weight: 800;
}

a.store-badge[href]:hover {
  border-color: var(--orange);
  color: var(--cream);
}

.store-badge.is-soon {
  border-style: dashed;
}

.store-badge.is-soon small {
  color: var(--orange);
}

.stores-note {
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto;
}

/* ---------- Parents ---------- */

.parents {
  background: var(--paper);
  color: var(--ink);
}

.parents .kicker {
  color: var(--rust);
}

.parents .section-title {
  color: var(--ink);
}

.parents .section-lede {
  color: var(--ink-soft);
}

.facts {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
}

.facts li {
  position: relative;
  background: #fffaf2;
  border: 1px solid rgba(30, 24, 58, 0.12);
  border-radius: var(--radius-sm);
  padding: 18px 20px 18px 58px;
  color: var(--ink-soft);
}

.facts li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 19px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fcac60' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.facts strong {
  display: block;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 4px;
}

@media (min-width: 760px) {
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

.parents-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.parents-links .btn {
  background: var(--ink);
  color: var(--cream);
}

.parents-links .btn:hover {
  background: #352b60;
  color: var(--cream);
}

.parents-links .btn.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px rgba(30, 24, 58, 0.3);
}

.parents-links .btn.btn--ghost:hover {
  background: rgba(30, 24, 58, 0.06);
}

.parents :focus-visible {
  outline-color: var(--ink);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--night);
  border-top: 1px solid var(--line);
  padding: 44px 0 52px;
  color: var(--muted);
  font-size: 1rem;
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.site-footer .brand {
  margin-bottom: 14px;
}

.site-footer p {
  margin: 0 0 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--orange);
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

/* ---------- Long-form pages (privacy) ---------- */

.page-head {
  background: linear-gradient(180deg, var(--night) 0%, var(--navy) 55%, #3b2560 100%);
  padding: 52px 0 100px;
}

.page-head p {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  text-transform: uppercase;
  line-height: 1;
}

.page-head .kicker {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.prose {
  position: relative;
  max-width: 46rem;
  margin: -64px auto 72px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 20px 36px;
  line-height: 1.6;
}

.prose-wrap {
  padding: 0 var(--gutter);
}

@media (min-width: 760px) {
  .prose {
    padding: 48px 56px 52px;
  }
}

.prose h1 {
  font-size: clamp(2.6rem, 9vw, 4rem);
  margin: 0 0 20px;
  color: var(--ink);
}

.prose h2 {
  font-size: 1.6rem;
  line-height: 1.05;
  margin: 2.2rem 0 0.6rem;
  color: var(--ink);
}

.prose p,
.prose li {
  color: #2f2850;
}

.prose b {
  color: var(--ink);
}

.prose ul {
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose a {
  color: var(--rust);
  font-weight: 600;
}

.prose a:hover {
  color: var(--ink);
}

.prose small {
  color: var(--ink-soft);
}

.prose :focus-visible {
  outline-color: var(--ink);
}

/* ---------- Simple pages: 404 / tv redirect ---------- */

.center-page {
  min-height: calc(100vh - 61px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px var(--gutter);
  background: linear-gradient(180deg, var(--night) 0%, var(--navy) 40%, #3b2560 75%, var(--purple) 100%);
}

.center-page--bare {
  min-height: 100vh;
}

.center-page img {
  height: 64px;
  width: auto;
  margin-bottom: 26px;
}

.center-page h1 {
  font-size: clamp(2.4rem, 9vw, 4rem);
  margin: 0 0 14px;
}

.center-page p {
  color: var(--cream);
  max-width: 36ch;
  font-size: 1.2rem;
}

.center-page .btn {
  margin-top: 12px;
}

/* ---------- Reduced motion ---------- */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
