/* =========================================================
   Cobremu: styles
   Palette: outback red-orange, Rockies ice blue, gold accents
   on a dark background. See CLAUDE.md for the design rules.
   ========================================================= */

:root {
  color-scheme: dark;

  /* Ground */
  --bg: #0d0f14;
  --bg-2: #121621;
  --surface: #181d2a;
  --surface-2: #1f2534;
  --line: rgba(236, 230, 218, 0.12);

  /* Text */
  --text: #ece6da;
  --muted: #b3b8c4;

  /* Outback red-orange */
  --ember: #e2572b;
  --ember-bright: #ff7a45;
  --ember-btn: #f26b3a;

  /* Rockies ice blue */
  --ice: #8fd3f4;
  --ice-deep: #3e8fbf;

  /* Gold */
  --gold: #f2c14e;
  --gold-deep: #b8862b;

  /* Logo plate colour, sampled from logo.png so the crest blends in */
  --crest-plate: #29292b;

  --font-display: "Cinzel", "Trajan Pro", "Times New Roman", Georgia, serif;
  --font-body: "Alegreya Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --container: 1120px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.01em;
}

p { margin: 0; }

a { color: var(--ice); }
a:hover { color: #fff; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: #140d08;
  font-weight: 800;
  border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 0.75rem); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--btn-bg);
  color: var(--text);
  font: 800 1rem/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-icon { width: 1.25em; height: 1.25em; flex: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--ember-btn), #f0a640);
  color: #170c06;
  border-color: rgba(242, 193, 78, 0.6);
  box-shadow: 0 6px 24px rgba(242, 107, 58, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover {
  color: #170c06;
  box-shadow: 0 10px 34px rgba(242, 107, 58, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-ghost {
  border-color: rgba(143, 211, 244, 0.65);
  color: var(--ice);
  background: rgba(13, 15, 20, 0.45);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(143, 211, 244, 0.14); color: #fff; }

.btn-ice {
  background: linear-gradient(135deg, #b6e4fa, var(--ice));
  color: #0b1620;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 22px rgba(143, 211, 244, 0.25);
}
.btn-ice:hover { color: #0b1620; box-shadow: 0 10px 30px rgba(143, 211, 244, 0.4); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(13, 15, 20, 0.86);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--container);
  min-height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}
.brand img {
  width: 36px; height: 36px;
  border-radius: 50%;
  clip-path: circle(44.5% at 50% 49.6%);
  transform: scale(1.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.6rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}
.nav-links a:hover { color: var(--gold); }
.nav-links .nav-cta {
  padding: 0.4rem 0.85rem;
  border: 1.5px solid var(--gold);
  border-radius: 6px;
  color: var(--gold);
}
.nav-links .nav-cta:hover { background: var(--gold); color: #140d08; text-shadow: none; }

@media (max-width: 600px) {
  .brand-name { display: none; }
  .nav-links { gap: 0.75rem; }
  .nav-links a { font-size: 0.78rem; letter-spacing: 0.04em; }
  .nav-links .nav-cta { padding: 0.3rem 0.55rem; }
}
@media (max-width: 600px) {
  .nav-play { display: none; } /* the promo card in the Bazza section covers mobile */
}
@media (max-width: 420px) {
  .brand { display: none; }
  .nav { justify-content: center; }
  .nav-links { gap: 0.65rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 5.5rem;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  z-index: -3;
  transform: scale(1.04);
  animation: hero-push 22s ease-out both;
}
@keyframes hero-push { from { transform: scale(1.14); } to { transform: scale(1.04); } }

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(226, 87, 43, 0.12), transparent 40%, transparent 60%, rgba(62, 143, 191, 0.14)),
    linear-gradient(180deg, rgba(10, 11, 15, 0.55) 0%, rgba(10, 11, 15, 0.35) 30%, rgba(10, 11, 15, 0.6) 70%, var(--bg) 100%);
}

.hero-particles { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ember, .flake {
  position: absolute;
  width: var(--s, 4px);
  height: var(--s, 4px);
  border-radius: 50%;
  left: var(--x);
  opacity: 0;
}
.ember {
  bottom: -12px;
  background: radial-gradient(circle, #ffd27a 0%, #ff7a45 45%, rgba(226, 87, 43, 0) 75%);
  animation: rise var(--d, 9s) linear var(--delay, 0s) infinite;
}
.flake {
  top: -12px;
  background: radial-gradient(circle, #fff 0%, rgba(214, 238, 252, 0.8) 45%, rgba(143, 211, 244, 0) 75%);
  animation: fall var(--d, 11s) linear var(--delay, 0s) infinite;
}
@keyframes rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: 0.9; }
  85% { opacity: 0.6; }
  100% { transform: translate3d(var(--drift, 20px), -85vh, 0); opacity: 0; }
}
@keyframes fall {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: 0.9; }
  100% { transform: translate3d(var(--drift, -20px), 105vh, 0); opacity: 0; }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
}

.hero-kicker {
  font-weight: 700;
  font-size: clamp(0.8rem, 0.75rem + 0.3vw, 0.95rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ice);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  animation: fade-up 1s 0.2s both;
}

/* The crest has a flat charcoal plate; a matching glow plus a feathered
   mask makes that plate dissolve into the scene instead of showing a square. */
.hero-crest {
  position: relative;
  width: clamp(190px, 24vw, 280px);
  margin-top: 1.1rem;
  animation: crest-in 1.2s 0.35s both cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-crest::before {
  content: "";
  position: absolute;
  inset: -28%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--crest-plate) 62%, rgba(41, 41, 43, 0.75) 78%, rgba(41, 41, 43, 0) 100%);
}
.hero-logo {
  width: 100%;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-composite: intersect;
  filter: drop-shadow(0 0 18px rgba(242, 193, 78, 0.18));
}

.hero-title {
  margin-top: 0.4rem;
  font-weight: 900;
  font-size: clamp(3rem, 2rem + 6vw, 6.5rem);
  letter-spacing: 0.08em;
  line-height: 1;
  background: linear-gradient(180deg, #fff3cf 0%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.85));
  animation: fade-up 1s 0.6s both;
}

.hero-tagline {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 0.9rem + 1.2vw, 1.75rem);
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
  animation: fade-up 1s 0.8s both;
}

.hero-sub {
  margin-top: 0.8rem;
  max-width: 34rem;
  color: #e6e1d6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
  animation: fade-up 1s 0.95s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.6rem;
  animation: fade-up 1s 1.1s both;
}

.scroll-cue {
  position: absolute;
  bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}
.scroll-cue svg { width: 26px; height: 26px; animation: bob 2s ease-in-out infinite; }
.scroll-cue:hover { color: var(--gold); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes crest-in {
  from { opacity: 0; transform: scale(0.82); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

@media (max-height: 640px) and (min-width: 600px) {
  .hero-crest { width: 160px; }
  .hero-title { font-size: 3.4rem; }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 8rem);
}

.section-head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.chapter {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.chapter::before,
.chapter::after {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.chapter::after { transform: scaleX(-1); }

.section-head h2 {
  margin-top: 0.6rem;
  font-weight: 900;
  font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.8rem);
  text-shadow: 0 0 30px rgba(242, 193, 78, 0.15);
}
.section-lede {
  margin: 0.9rem auto 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.1em;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(255, 122, 69, 0.7);
  border-radius: 999px;
  background: rgba(226, 87, 43, 0.14);
  color: var(--ember-bright);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Scroll reveals (only hidden when JS is running) */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.8s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 2. Legend ---------- */
.legend {
  background:
    radial-gradient(60% 40% at 15% 10%, rgba(226, 87, 43, 0.12), transparent 70%),
    radial-gradient(60% 40% at 85% 90%, rgba(62, 143, 191, 0.14), transparent 70%),
    var(--bg);
}
.legend-lines {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}
.legend-line {
  margin-block: clamp(2.6rem, 11vh, 6.5rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 1rem + 1.7vw, 2.3rem);
  line-height: 1.3;
}
.legend-line:first-child { margin-top: 0; }
.legend-line:last-child { margin-bottom: 0; }
.js .legend-line.reveal {
  filter: blur(6px);
  transform: translateY(36px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1), filter 1s ease;
}
.js .legend-line.reveal.is-visible { filter: none; transform: none; }

.legend-line em { font-style: normal; }
/* Text highlight colours. Prefixed so they never collide with the hero's
   .ember particle class (that collision once made these words invisible). */
.hl-ember { color: var(--ember-bright); }
.hl-ice { color: var(--ice); }
.hl-gold { color: var(--gold); }

.legend-line--name {
  font-weight: 900;
  font-size: clamp(2.2rem, 1.4rem + 4vw, 4.2rem);
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, var(--ember-bright), var(--gold) 50%, var(--ice));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.legend-line--tag {
  color: var(--gold);
  font-size: clamp(1.2rem, 0.9rem + 1.3vw, 1.9rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- 3. Bazza ---------- */
.bazza {
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 30%, var(--bg-2) 70%, var(--bg) 100%);
}

.bazza-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .bazza-grid { grid-template-columns: minmax(280px, 340px) 1fr; }
  .bazza-card { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

.bazza-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1.4rem;
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.portrait-wrap { position: relative; }

.bazza-portrait {
  display: block;
  width: clamp(200px, 60vw, 240px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #6aa6c8, #b2452a);
  box-shadow:
    0 0 0 4px var(--gold),
    0 0 0 9px rgba(242, 193, 78, 0.18),
    0 0 50px rgba(242, 107, 58, 0.35);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
@media (min-width: 900px) { .bazza-portrait { width: 240px; } }
.bazza-portrait img {
  width: 100%;
  height: 100%;
  clip-path: circle(44.5% at 50% 49.6%);
  transform: scale(1.13);
}
.bazza-portrait:hover {
  box-shadow:
    0 0 0 4px var(--gold),
    0 0 0 9px rgba(242, 193, 78, 0.3),
    0 0 70px rgba(242, 107, 58, 0.5);
}
.bazza-portrait:active { transform: scale(0.96); }
.bazza-portrait:focus-visible { outline-offset: 12px; border-radius: 50%; }
.bazza-portrait.is-honking { animation: honk-pop 0.28s ease; }
@keyframes honk-pop { 40% { transform: scale(1.07) rotate(-3deg); } }

.honk-bubbles { position: absolute; inset: 0; pointer-events: none; }
.honk-bubble {
  position: absolute;
  left: var(--x, 70%);
  top: 10%;
  padding: 0.2rem 0.6rem;
  background: #fff;
  color: #170c06;
  border-radius: 999px;
  font: 900 1rem/1.2 var(--font-display);
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  animation: bubble-up 0.9s ease-out forwards;
}
@keyframes bubble-up {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(0.6) rotate(var(--r, 0deg)); }
  20% { opacity: 1; transform: translate(-50%, -10px) scale(1.05) rotate(var(--r, 0deg)); }
  100% { opacity: 0; transform: translate(-50%, -60px) scale(1) rotate(var(--r, 0deg)); }
}

.hint { margin-top: 1.1rem; color: var(--muted); font-size: 0.95rem; }

.honk-meter {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.8rem;
}
.honk-count {
  font: 900 2.6rem/1 var(--font-display);
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.honk-label { color: var(--muted); font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; font-size: 0.85rem; }
.honk-count.bump { animation: bump 0.25s ease; }
@keyframes bump { 50% { transform: scale(1.25); } }

.honk-msg {
  min-height: 1.6em;
  margin-top: 0.4rem;
  color: var(--ember-bright);
  font-weight: 700;
}
.honk-msg.flash { animation: fade-up 0.5s both; }

.btn-hiss { margin-top: 1rem; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  width: 100%;
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  text-align: left;
}
.stats div { padding: 0.55rem 0.7rem; border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.stats .stats-wide { grid-column: 1 / -1; }
.stats dt { color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.stats dd { margin: 0.1rem 0 0; font-weight: 800; color: var(--text); }

/* Timeline */
.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 2.4rem;
  list-style: none;
}
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 3px;
  border-radius: 3px;
}
.timeline::before { background: var(--line); }
.timeline::after {
  background: linear-gradient(180deg, var(--ember-bright), var(--gold) 55%, var(--ice));
  transform-origin: top;
  transform: scaleY(var(--progress, 0));
  box-shadow: 0 0 14px rgba(242, 193, 78, 0.45);
}
.no-js .timeline::after { transform: none; }

.tl-item { position: relative; padding-bottom: clamp(2.8rem, 7vh, 4.5rem); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: calc(-2.4rem + 0.7rem + 1.5px);
  top: 0.35rem;
  width: 18px;
  height: 18px;
  translate: -50% 0;
  border-radius: 50%;
  background: var(--bg-2);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 5px var(--bg-2), 0 0 16px rgba(242, 193, 78, 0.5);
  z-index: 1;
}
.tl-when {
  display: inline-block;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.tl-item h3 {
  margin-top: 0.3rem;
  font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem);
}
.tl-item p { margin-top: 0.6rem; color: var(--muted); max-width: 36rem; }
.tl-item:nth-child(1) h3 { color: var(--ember-bright); }
.tl-item:nth-child(3) h3 { color: var(--ice); }

.turnaround {
  margin: clamp(3rem, 7vw, 5rem) 0 0;
  padding: clamp(0.5rem, 1.5vw, 0.9rem);
  background: linear-gradient(135deg, rgba(242, 193, 78, 0.5), rgba(184, 134, 43, 0.15));
  border-radius: calc(var(--radius) + 4px);
}
.turnaround img { width: 100%; border-radius: var(--radius); background: #f8e9cc; }
.turnaround figcaption {
  padding: 0.8rem 0.4rem 0.2rem;
  color: #f2e6cc;
  font-style: italic;
  text-align: center;
}

/* Game promo card */
.game-promo {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(143, 211, 244, 0.35);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(80% 140% at 0% 50%, rgba(62, 143, 191, 0.22), transparent 60%),
    radial-gradient(60% 120% at 100% 50%, rgba(226, 87, 43, 0.18), transparent 60%),
    var(--surface);
}
@media (min-width: 720px) {
  .game-promo { grid-template-columns: 1fr auto; gap: 2rem; }
}
.game-promo h3 { margin-top: 0.4rem; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.2rem); }
.game-promo p:not(.chapter) { margin-top: 0.5rem; color: var(--muted); max-width: 40rem; }
.game-promo .chapter::before { display: none; }

/* Hiss shake */
.is-shaking { animation: shake 0.65s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
@keyframes shake {
  10%, 90% { transform: translate3d(-2px, 0, 0) rotate(-1deg); }
  20%, 80% { transform: translate3d(4px, 1px, 0) rotate(1.5deg); }
  30%, 50%, 70% { transform: translate3d(-7px, -1px, 0) rotate(-2.5deg); }
  40%, 60% { transform: translate3d(7px, 1px, 0) rotate(2.5deg); }
}

.hiss-burst {
  position: fixed;
  z-index: 900;
  pointer-events: none;
  font: 900 clamp(1.6rem, 5vw, 2.8rem)/1 var(--font-display);
  letter-spacing: 0.1em;
  color: var(--ice);
  text-shadow: 0 0 20px rgba(143, 211, 244, 0.7), 0 3px 0 #0b1620;
  animation: hiss-burst 1s ease-out forwards;
}
@keyframes hiss-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5) rotate(-6deg); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(-6deg); }
  100% { opacity: 0; transform: translate(-50%, -110%) scale(1.25) rotate(-3deg); }
}

/* ---------- 4. Realms ---------- */
.realms {
  background:
    radial-gradient(50% 60% at 0% 40%, rgba(226, 87, 43, 0.14), transparent 70%),
    radial-gradient(50% 60% at 100% 40%, rgba(62, 143, 191, 0.16), transparent 70%),
    var(--bg);
}

.clocks {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
@media (min-width: 820px) {
  .clocks { grid-template-columns: 1fr auto 1fr; gap: 1.5rem; }
}

.clock {
  position: relative;
  padding: 1.75rem 1.5rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  text-align: center;
  overflow: hidden;
}
.clock::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
}
.clock--perth {
  background: linear-gradient(165deg, rgba(226, 87, 43, 0.28), rgba(24, 29, 42, 0.95) 60%);
}
.clock--perth::before { background: linear-gradient(90deg, var(--ember), var(--gold)); }
.clock--alberta {
  background: linear-gradient(195deg, rgba(62, 143, 191, 0.32), rgba(24, 29, 42, 0.95) 60%);
}
.clock--alberta::before { background: linear-gradient(90deg, var(--gold), var(--ice)); }

.clock-realm {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.clock--perth .clock-realm { color: var(--ember-bright); }
.clock--alberta .clock-realm { color: var(--ice); }
.clock-name { margin-top: 0.35rem; font-weight: 900; font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem); }
.clock-zone { margin-top: 0.2rem; color: var(--muted); font-size: 0.95rem; }

.clock-time {
  margin-top: 0.9rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(2.8rem, 2rem + 3.5vw, 4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  color: #fff;
}
.clock-sec { font-size: 0.5em; color: var(--muted); }
.clock-ampm { font-size: 0.38em; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; }
.clock-date { margin-top: 0.5rem; font-weight: 700; }
.clock-mood { margin-top: 0.35rem; color: var(--muted); font-style: italic; min-height: 1.6em; }

.gap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.6rem; }
.gap-ring {
  display: grid;
  place-items: center;
  align-content: center;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--surface-2), var(--bg));
  box-shadow:
    0 0 0 3px var(--gold),
    0 0 0 8px rgba(242, 193, 78, 0.15),
    0 0 40px rgba(242, 193, 78, 0.2);
}
.gap-hours { font: 900 2.6rem/1 var(--font-display); color: var(--gold); }
.gap-unit { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.gap-detail { max-width: 13rem; font-size: 0.95rem; color: var(--text); }

.raid {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid rgba(242, 193, 78, 0.35);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(242, 193, 78, 0.12), transparent 70%),
    var(--surface);
  text-align: center;
}
.countdown {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 2vw, 1.1rem);
  margin-top: 1.1rem;
}
.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(64px, 18vw, 104px);
  padding: 0.8rem 0.5rem 0.6rem;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.cd-num {
  font: 800 clamp(2rem, 1.4rem + 2.6vw, 3.2rem)/1 var(--font-body);
  font-variant-numeric: tabular-nums lining-nums;
  color: #fff;
}
.cd-label { margin-top: 0.35rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.raid.is-live .cd-num { color: var(--ember-bright); }

.raid-status { margin-top: 1rem; font-weight: 700; color: var(--gold); min-height: 1.6em; }

.raid-times {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}
.raid-time {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: min(100%, 15rem);
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 4px solid var(--ember);
  text-align: left;
}
.raid-time--alberta { border-left-color: var(--ice); }
.raid-time span { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.raid-time strong { font-size: 1.15rem; }

/* ---------- 5. Armoury ---------- */
.armoury { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }

.jersey {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
}
@media (min-width: 960px) {
  .jersey { grid-template-columns: 1.6fr 1fr; }
}

.jersey-stage {
  position: relative;
  aspect-ratio: 1024 / 572;
  border-radius: var(--radius);
  background: #d4d4d4;
  overflow: hidden;
}
.jersey-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.jersey-stage[data-kit="home"] .jersey-img--away,
.jersey-stage[data-kit="away"] .jersey-img--home { opacity: 0; transform: scale(1.03); }

.jersey-info h3 { margin-top: 0.8rem; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }

.kit-toggle {
  display: inline-flex;
  margin-top: 1.1rem;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.kit-btn {
  min-height: 44px;
  min-width: 96px;
  padding: 0.5rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 800 0.95rem/1 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.kit-btn:hover { color: var(--text); }
.kit-btn[data-kit="home"][aria-pressed="true"] { background: var(--ice); color: #0b1620; }
.kit-btn[data-kit="away"][aria-pressed="true"] { background: var(--ember-btn); color: #170c06; }

.kit-desc { margin-top: 1rem; font-weight: 700; }
.kit-note { margin-top: 0.6rem; color: var(--muted); }

.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
}
.merch-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.merch-card:hover {
  border-color: rgba(242, 193, 78, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.merch-media {
  aspect-ratio: 1024 / 572;
  background: var(--matte, #eee);
  overflow: hidden;
}
.merch-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.merch-media--contain img { object-fit: contain; }
.merch-card:hover .merch-media img { transform: scale(1.04); }
.merch-body { padding: 1.1rem 1.2rem 1.35rem; }
.merch-body h3 { margin-top: 0.7rem; font-size: 1.3rem; }
.merch-body p { margin-top: 0.45rem; color: var(--muted); font-size: 1rem; }

/* ---------- 6. Join ---------- */
.join { padding-bottom: clamp(5rem, 11vw, 9rem); }
.join-panel {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  border-radius: calc(var(--radius) + 10px);
  border: 1px solid rgba(242, 193, 78, 0.4);
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(226, 87, 43, 0.3), transparent 60%),
    radial-gradient(70% 90% at 100% 100%, rgba(62, 143, 191, 0.32), transparent 60%),
    var(--surface);
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.join-panel .section-head { margin-bottom: 1.75rem; }
.join-list {
  display: grid;
  gap: 0.75rem;
  max-width: 36rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: left;
}
.join-list li {
  position: relative;
  padding-left: 2rem;
}
.join-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 1.15rem;
  height: 0.8rem;
  background: radial-gradient(ellipse at 40% 30%, #f4c876, #d98f3a 55%, #9c531c);
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
}
.join-list strong { color: var(--gold); }

.btn-mega {
  margin-top: 2.2rem;
  padding: 1.1rem 2.4rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.4rem, 1rem + 2vw, 2.1rem);
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #ffd27a, var(--gold) 40%, #f0a640);
  color: #1c1004;
  border-color: rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(242, 193, 78, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  animation: glow 3s ease-in-out infinite;
}
.btn-mega:hover { color: #1c1004; transform: translateY(-3px) scale(1.02); }
.btn-roll { width: 2.4rem; height: auto; }
@keyframes glow {
  50% { box-shadow: 0 10px 60px rgba(242, 193, 78, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
}
.join-small { margin-top: 1rem; color: var(--muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: #090b0f;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.footer-inner img { width: 72px; height: 72px; border-radius: 12px; }
.footer-title { color: var(--text); font-family: var(--font-display); font-weight: 700; }
.footer-legal { margin-top: 0.4rem; font-size: 0.82rem; color: #9aa0ad; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(960px, calc(100vw - 2rem));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.lightbox::backdrop {
  background: rgba(5, 6, 9, 0.88);
  backdrop-filter: blur(6px);
}
.lightbox[open] { animation: lightbox-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes lightbox-in { from { opacity: 0; transform: scale(0.94); } }
.lightbox-inner {
  position: relative;
  padding: 3.4rem 0 0;
}
.lightbox video {
  width: 100%;
  max-height: calc(100vh - 6rem);
  max-height: calc(100svh - 6rem);
  border-radius: var(--radius);
  background: #000;
  box-shadow: 0 0 0 1px rgba(242, 193, 78, 0.4), 0 30px 90px rgba(0, 0, 0, 0.7);
}
.lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(24, 29, 42, 0.9);
  color: #fff;
  cursor: pointer;
}
.lightbox-close svg { width: 22px; height: 22px; }
.lightbox-close:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Bread rain ---------- */
.bread-rain {
  position: fixed;
  inset: 0;
  z-index: 950;
  pointer-events: none;
  overflow: hidden;
}
.roll {
  position: absolute;
  top: -70px;
  left: var(--x);
  width: var(--size, 48px);
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
  animation: roll-fall var(--dur, 3.5s) cubic-bezier(0.45, 0.05, 0.75, 0.6) var(--delay, 0s) forwards;
}
@keyframes roll-fall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  100% { transform: translate3d(var(--drift, 0px), calc(100vh + 140px), 0) rotate(var(--rot, 360deg)); }
}
.roll--static { animation: roll-fade 2.4s ease forwards; top: var(--y); }
@keyframes roll-fade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  z-index: 960;
  max-width: calc(100vw - 2rem);
  padding: 0.8rem 1.3rem;
  border: 1px solid rgba(242, 193, 78, 0.5);
  border-radius: 999px;
  background: rgba(24, 29, 42, 0.96);
  color: var(--text);
  font-weight: 700;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast:empty { display: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  .hero-particles { display: none; }
  /* Keep the scroll reveals, but as plain fades with no movement or blur */
  .js .reveal,
  .js .legend-line.reveal { transform: none; filter: none; transition: opacity 0.6s ease !important; }
  .timeline::after { transform: none; }
  .btn-mega { animation: none; }
  /* Hiss feedback without movement */
  .is-shaking { animation: none !important; outline: 3px solid var(--ice); outline-offset: 6px; }
  .roll--static { animation: none !important; }
}
