:root {
  --navy: #1A1440;
  --purple: #2E1A57;
  --plum: #5B1F6B;
  --cream: #FFF4E0;
  --pink: #FF3E8A;
  --orange: #FF6B35;
  --yellow: #FFC93C;
  --teal: #2EC4B6;
  --display: 'Bungee', 'Arial Black', sans-serif;
  --body: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--body);
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
button { font: inherit; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.stack { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.two-col { display: grid; gap: 20px; }
@media (min-width: 820px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: max(20px, env(safe-area-inset-top)) 16px 0;
  background: linear-gradient(180deg, var(--navy) 0 38%, var(--purple) 38% 52%, var(--plum) 52% 64%, #9C2A6E 64% 74%, #E0476A 74% 83%, var(--orange) 83% 100%);
}
.topbar { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1100px; margin: 0 auto; }
.logo { font-family: var(--display); font-size: 17px; }
.logo span { color: var(--pink); }
.pill { border: 2px solid var(--cream); border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 700; letter-spacing: 1px; }

.milestone-banner {
  position: relative; z-index: 3;
  margin: 16px auto 0;
  background: var(--yellow); color: var(--navy);
  font-family: var(--display); font-size: 15px;
  padding: 8px 16px; border-radius: 999px;
  box-shadow: 4px 4px 0 var(--pink);
  text-align: center;
}

.hero-body { position: relative; z-index: 3; padding-top: 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.kicker { font-weight: 700; letter-spacing: 5px; font-size: 12px; color: var(--yellow); }
.days { font-family: var(--display); font-size: clamp(110px, 34vw, 190px); line-height: .9; text-shadow: 6px 6px 0 var(--pink); }
.days-label { font-weight: 700; letter-spacing: 4px; font-size: 14px; }
.hms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 300px; }
.hms > div { background: rgba(26, 20, 64, .6); border-radius: 14px; padding: 10px 0; display: flex; flex-direction: column; gap: 2px; }
.hms span { font-family: var(--display); font-size: 30px; font-variant-numeric: tabular-nums; }
.hms small { font-size: 11px; font-weight: 700; letter-spacing: 2px; }
.teal { color: var(--teal); }
.until { font-size: 13px; opacity: .9; }
.unit {
  border: 2px solid var(--yellow); background: rgba(26, 20, 64, .6);
  border-radius: 16px; padding: 10px 16px; max-width: 360px;
  display: flex; flex-direction: column; gap: 4px; font-size: 15px;
}
.unit strong { color: var(--yellow); }
.unit-kicker { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--yellow); }

.zero-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(64px, 20vw, 120px); line-height: .95; text-shadow: 6px 6px 0 var(--pink); }
.zero-sub { margin: 0; font-size: 18px; font-weight: 500; }

.scenery { position: relative; z-index: 1; flex: 1; min-height: 190px; margin: 0 -16px; overflow: hidden; }
.sun {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: 170px; height: 170px; border-radius: 50%;
  background: linear-gradient(180deg, var(--yellow) 0 45%, var(--orange) 45% 52%, var(--yellow) 52% 60%, var(--orange) 60% 67%, var(--yellow) 67% 75%, var(--orange) 75% 100%);
}
@media (min-width: 820px) { .sun { width: 260px; height: 260px; } }
.scenery svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 120px; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--cream); text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: 2px;
  min-height: 44px; justify-content: flex-end;
}
.scroll-hint svg { animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* falling snow */
.snow { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.flake { position: absolute; top: -10px; border-radius: 50%; background: var(--cream); animation: fall linear infinite; }
@keyframes fall { to { transform: translate3d(var(--drift, 20px), 105svh, 0); } }

/* confetti */
.confetti { position: fixed; top: -12px; width: 10px; height: 5px; z-index: 50; pointer-events: none; animation: confetti 3.2s ease-in forwards; }
@keyframes confetti { to { transform: translate3d(var(--dx), 110vh, 0) rotate(720deg); } }

@media (prefers-reduced-motion: reduce) {
  .flake, .confetti, .scroll-hint svg { animation: none; }
  .flake { display: none; }
}

/* ---------- SECTIONS ---------- */
.sec { padding: 32px 0 36px; }
.sec.flush { padding-bottom: 20px; }
.cream { background: var(--cream); color: var(--navy); }
.navy { background: var(--navy); }
.purple { background: var(--purple); }
.teal-bg { background: var(--teal); color: var(--navy); }

.h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.15; }
@media (min-width: 820px) { .h2 { font-size: 40px; } }
.row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; }
.hint { font-size: 13px; font-weight: 700; }
.hint.plum { color: var(--plum); }
.hint.yellow { color: var(--yellow); }
.label { font-weight: 700; letter-spacing: 3px; font-size: 12px; }
.muted { margin: 0; font-size: 15px; opacity: .9; }

.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { border-radius: 999px; padding: 5px 12px; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; }
.navy-tag { background: var(--navy); color: var(--cream); }
.tag.teal { background: var(--teal); color: var(--navy); letter-spacing: .5px; }
.tag.pink { background: var(--pink); color: var(--navy); }

/* ---------- TODAY'S DROP ---------- */
.drop-media {
  position: relative; width: 100%; aspect-ratio: 4 / 5;
  border-radius: 18px; overflow: hidden;
  border: 3px solid var(--navy); box-shadow: 7px 7px 0 var(--pink);
  background: repeating-linear-gradient(135deg, #F6D9C2 0 16px, #F2CDB0 16px 32px);
}
.drop-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 24px; text-align: center; color: var(--plum); font-weight: 700;
}
.placeholder b { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--navy); }
.frost { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; transition: opacity .6s; }
.frost.gone { opacity: 0; pointer-events: none; }
.frost-hint {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--navy); font-family: var(--display); font-size: 24px; text-align: center; pointer-events: none; transition: opacity .3s;
}
.frost-hint span { font-family: var(--body); font-size: 14px; font-weight: 500; }
.frost-hint.hide { opacity: 0; }
.drop-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.15; }
@media (min-width: 820px) { .drop-title { font-size: 40px; } }
.drop-punch { margin: 0; font-size: 18px; }
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; max-width: 360px; min-height: 48px; border: 0; border-radius: 999px;
  background: var(--navy); color: var(--cream); font-weight: 700; font-size: 15px; cursor: pointer;
}

/* ---------- VIDEO ---------- */
.video-box {
  position: relative; width: 100%; max-width: 420px; aspect-ratio: 9 / 16; justify-self: center;
  border-radius: 18px; overflow: hidden; border: 3px solid var(--cream); box-shadow: 7px 7px 0 var(--teal);
  background: repeating-linear-gradient(135deg, var(--purple) 0 16px, #3A2168 16px 32px);
}
.video-box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-box .placeholder { color: var(--yellow); }
.video-box .placeholder b { color: var(--yellow); }
.sound-btn {
  position: absolute; right: 12px; bottom: 12px; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--pink); color: var(--navy); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.next-bar {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: var(--purple); border-radius: 14px; padding: 12px 14px;
  color: var(--yellow); font-weight: 700; font-size: 14px;
}

/* ---------- MILESTONES ---------- */
.track { position: relative; height: 64px; width: calc(100% - 32px); margin: 0 16px; }
.track-bar, .track-fill { position: absolute; left: 0; top: 13px; height: 8px; border-radius: 999px; }
.track-bar { right: 0; background: var(--navy); }
.track-fill { background: var(--orange); width: 0; }
.ms { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ms i { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--cream); background: var(--navy); }
.ms.done i { background: var(--orange); }
.ms b { font-family: var(--display); font-weight: 400; font-size: 12px; white-space: nowrap; }

/* ---------- SCROLLERS (wall + squad) ---------- */
.scroller {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 16px 16px 22px; scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }
@media (min-width: 1132px) { .scroller { padding-left: calc((100vw - 1100px) / 2 + 16px); } }

.polaroid {
  flex: 0 0 170px; scroll-snap-align: start;
  background: #fff; color: var(--navy); padding: 10px 10px 14px; border: 0; text-align: left;
  box-shadow: 0 5px 0 rgba(26, 20, 64, .15);
  display: flex; flex-direction: column; gap: 8px; cursor: pointer;
}
.polaroid .ph {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: repeating-linear-gradient(135deg, #F6D9C2 0 12px, #F2CDB0 12px 24px);
}
.polaroid .ph img, .polaroid .ph video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.polaroid.locked { cursor: default; }
.polaroid.locked .ph { background: var(--navy); color: var(--yellow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-family: var(--display); font-size: 12px; }
.polaroid .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.polaroid .play span { width: 44px; height: 44px; border-radius: 50%; background: var(--pink); display: flex; align-items: center; justify-content: center; }
.polaroid .t { font-family: var(--display); font-size: 13px; color: #C2185B; }
.polaroid .c { font-size: 13px; line-height: 1.35; }

.card {
  flex: 0 0 290px; scroll-snap-align: center;
  background: var(--cream); color: var(--navy);
  border: 4px solid var(--cream); border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column;
}
.card .portrait { position: relative; aspect-ratio: 4 / 3; display: flex; flex-direction: column; justify-content: space-between; padding: 12px 14px; }
.card .portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .portrait .initial { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 90px; color: rgba(26, 20, 64, .25); }
.card .row { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.card .row.bottom { justify-content: flex-end; }
.badge { font-family: var(--display); font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--navy); color: var(--cream); }
.badge.mvp { background: var(--cream); color: var(--navy); border: 2px solid var(--navy); padding: 3px 9px; }
.badge.gear { background: var(--cream); color: var(--navy); border-radius: 6px; }
.card .info { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.card .name { font-family: var(--display); font-size: 28px; line-height: 1; }
.stat { display: grid; grid-template-columns: 76px 1fr 22px; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; }
.stat .bar { height: 10px; border-radius: 999px; background: #E9DCC8; overflow: hidden; }
.stat .bar i { display: block; height: 100%; background: var(--navy); }
.move { border-top: 2px dashed var(--navy); padding-top: 10px; font-size: 14px; }

/* ---------- SNOW REPORT ---------- */
.snow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
.snow-tile { background: var(--cream); border-radius: 16px; border: 3px solid var(--navy); padding: 12px 10px; display: flex; flex-direction: column; gap: 4px; }
.snow-tile b { font-family: var(--display); font-weight: 400; font-size: 20px; }
.snow-tile span { font-size: 11px; font-weight: 700; line-height: 1.25; }
.snow-tile small { font-size: 11px; font-weight: 500; color: var(--plum); }
.snow-tile small:empty { display: none; }
.official {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--navy); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px;
}
@media (min-width: 820px) { .snow-tile b { font-size: 40px; } .snow-tile span { font-size: 14px; } .snow-tile { padding: 20px; } }

.footer { padding: 28px 16px calc(40px + env(safe-area-inset-bottom)); text-align: center; font-size: 13px; opacity: .85; line-height: 1.6; }

/* ---------- LIGHTBOX ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 520px); width: 100%; }
.lightbox::backdrop { background: rgba(26, 20, 64, .92); }
.lightbox img, .lightbox video { width: 100%; border-radius: 16px; border: 3px solid var(--cream); }
.lightbox p { color: var(--cream); font-size: 16px; text-align: center; margin: 12px 0 0; }
.lb-close {
  display: flex; margin: 0 0 10px auto; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--cream); color: var(--navy); align-items: center; justify-content: center; cursor: pointer;
}
