:root {
  --bg: #0c0a09;
  --bg2: #1a120b;
  --panel: rgba(28, 18, 10, 0.82);
  --amber: #f5a524;
  --amber-hot: #ffb84d;
  --gold: #ffd166;
  --cream: #fff6e8;
  --muted: #c9b8a0;
  --ice: #7dd3fc;
  --red: #ef4444;
  --green: #4ade80;
  --card: #23170f;
  --border: rgba(245, 165, 36, 0.28);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--cream);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(245, 165, 36, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(125, 211, 252, 0.08), transparent 50%),
    linear-gradient(180deg, #120c08 0%, var(--bg) 40%, #0a0807 100%);
  overflow-x: hidden;
}

.bg-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.05;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.puck-trail {
  pointer-events: none;
  position: fixed;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 0 0 3px var(--amber), 0 0 24px rgba(245, 165, 36, 0.5);
  z-index: 1;
  opacity: 0.35;
  animation: skate 18s linear infinite;
}

@keyframes skate {
  0% { top: 12%; left: -5%; }
  25% { top: 40%; left: 30%; }
  50% { top: 18%; left: 70%; }
  75% { top: 70%; left: 50%; }
  100% { top: 12%; left: 105%; }
}

.top-bar,
main,
footer {
  position: relative;
  z-index: 2;
}

.top-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  padding: 1rem 1rem 0;
}

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.45);
  color: var(--muted);
}

.badge.gold {
  color: #1a1005;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  border-color: transparent;
}

/* HERO */
.hero {
  position: relative;
  min-height: min(92vh, 920px);
  display: grid;
  place-items: center;
  padding: 2.5rem 1.25rem 3rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  filter: saturate(1.1) brightness(0.55);
  animation: slowZoom 28s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.14); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 5, 3, 0.35) 0%, rgba(8, 5, 3, 0.72) 55%, rgba(8, 5, 3, 0.95) 100%),
    radial-gradient(circle at 50% 30%, transparent 0%, rgba(0, 0, 0, 0.45) 80%);
}

.hero-content {
  position: relative;
  width: min(920px, 100%);
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--amber-hot);
  text-transform: uppercase;
}

.eyebrow.pulse {
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

h1 {
  margin: 0;
  line-height: 0.92;
}

h1 .line-sm {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  letter-spacing: 0.08em;
  color: var(--ice);
  text-shadow: 0 0 30px rgba(125, 211, 252, 0.35);
}

h1 .line-lg {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 6.5rem);
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #fff 0%, var(--gold) 55%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.35));
}

.subhead {
  margin: 1.1rem auto 1.75rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--muted);
  line-height: 1.5;
}

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

/* COUNTDOWN */
.countdown-card {
  margin: 0 auto;
  padding: 1.35rem 1.25rem 1.15rem;
  width: min(680px, 100%);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(40, 24, 12, 0.92), rgba(16, 10, 6, 0.95));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 209, 102, 0.15);
  backdrop-filter: blur(10px);
}

.countdown-card.live {
  border-color: rgba(74, 222, 128, 0.55);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.25), 0 0 40px rgba(74, 222, 128, 0.18), var(--shadow);
}

.countdown-card.urgent .num {
  color: #ff6b6b;
  text-shadow: 0 0 24px rgba(239, 68, 68, 0.55);
  animation: tickFlash 1s steps(1) infinite;
}

@keyframes tickFlash {
  50% { opacity: 0.75; }
}

.countdown-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.countdown-label .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.35rem, 2vw, 0.85rem);
}

.unit {
  min-width: clamp(4.5rem, 18vw, 7rem);
}

.num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 14vw, 5.6rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.4), 0 0 28px rgba(245, 165, 36, 0.25);
  font-variant-numeric: tabular-nums;
}

.lbl {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.sep {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 10vw, 4rem);
  color: var(--amber);
  margin-bottom: 1.1rem;
  opacity: 0.85;
  animation: colon 1s steps(1) infinite;
}

@keyframes colon {
  50% { opacity: 0.25; }
}

.target-time {
  margin: 1rem 0 0.35rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.status {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--amber-hot);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #1a1005;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  box-shadow: 0 10px 28px rgba(245, 165, 36, 0.35);
}

.btn.ghost {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

/* SQUAD */
.squad {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  width: min(1100px, calc(100% - 2rem));
  margin: 1rem auto 3rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.squad img {
  width: 100%;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  max-height: 360px;
}

.squad-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.06em;
  margin: 0 0 0.6rem;
  color: var(--gold);
}

.squad-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

/* QUOTES */
.quotes,
.gallery,
.rules {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto 3.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.08em;
  margin: 0 0 1.25rem;
  text-align: center;
  color: var(--cream);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 165, 36, 0.55);
}

.card-img {
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55));
}

.card-body {
  padding: 1.1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(245, 165, 36, 0.15);
  color: var(--gold);
  border: 1px solid var(--border);
}

blockquote {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--cream);
  flex: 1;
}

.shuffle {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--ice);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
}

.shuffle:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* GALLERY */
.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.gallery figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: var(--shadow);
}

.gallery img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery figure:hover img {
  transform: scale(1.06);
}

.gallery figcaption {
  padding: 0.7rem 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
  background: rgba(20, 12, 8, 0.95);
}

/* RULES */
.rules {
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(40, 24, 12, 0.75), rgba(12, 10, 9, 0.9));
}

.rules ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}

.rules li {
  margin-bottom: 0.55rem;
}

.rules strong {
  color: var(--gold);
}

/* FINAL */
.final-strip {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto 2.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background:
    linear-gradient(120deg, rgba(245, 165, 36, 0.18), rgba(125, 211, 252, 0.08)),
    var(--card);
  border: 1px solid var(--border);
}

.final-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0.2rem 0;
  letter-spacing: 0.04em;
}

.final-strip p {
  margin: 0.15rem 0;
  color: var(--muted);
}

.mini-clock {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  letter-spacing: 0.06em;
  color: var(--amber-hot);
  text-shadow: 0 0 24px rgba(245, 165, 36, 0.4);
  font-variant-numeric: tabular-nums;
}

footer {
  text-align: center;
  padding: 0 1rem 2.5rem;
  color: #8a7a68;
  font-size: 0.85rem;
}

/* ARRIVED */
.arrived {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.4s ease;
}

.arrived[hidden] {
  display: none;
}

.arrived-inner {
  text-align: center;
  padding: 2rem;
  max-width: 28rem;
  border-radius: 20px;
  border: 2px solid var(--green);
  background: #14100c;
  box-shadow: 0 0 60px rgba(74, 222, 128, 0.25);
}

.arrived h2 {
  font-family: var(--font-display);
  font-size: 4rem;
  margin: 0.3rem 0;
  color: var(--green);
}

.arrived .big {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-top: 1rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* RESPONSIVE */
@media (max-width: 800px) {
  .squad {
    grid-template-columns: 1fr;
  }

  .grid,
  .gallery-row {
    grid-template-columns: 1fr;
  }

  .gallery img {
    height: 220px;
  }
}

@media (min-width: 801px) and (max-width: 980px) {
  .gallery-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
