/* FOMO Sports. Direction: "stadium at night". Turf-black pitch, chalk lines,
   floodlight haze; lime is a live point, amber is the scoreboard, foil marks
   rarity. Big Shoulders for the loud stuff, Manrope to read, JetBrains Mono
   for every number you'd see on a scoreboard. */

:root {
  --turf: #07120d;
  --turf-2: #0c1d15;
  --turf-3: #12291e;
  --line: rgb(232 255 240 / 0.1);
  --line-2: rgb(232 255 240 / 0.2);
  --chalk: #eef6ef;
  --chalk-2: #b6c6ba;
  --chalk-3: #7f9486;
  --lime: #c8ff3a;
  --lime-ink: #0b1a06;
  --amber: #ffb21e;
  --ember: #ff5a36;
  --rookie: #a3b0b8;
  --pro: #4fd8ff;
  --allstar: #c77dff;
  --hof: #ffcf4a;
  --display: 'Big Shoulders Display', Impact, 'Arial Narrow', sans-serif;
  --body: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --r: 12px;
  --r-lg: 20px;
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
  --spring: cubic-bezier(0.3, 1.45, 0.5, 1);
  --wrap: 1200px;
  --gut: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
  --top-h: 66px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  scroll-padding-top: calc(var(--top-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  min-height: 100vh;
  background: var(--turf);
  color: var(--chalk);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
  padding: 0;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2.5px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  left: 1rem;
  top: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease);
}
.skip:focus-visible {
  transform: none;
}
.wrap {
  width: min(100% - 2 * var(--gut), var(--wrap));
  margin-inline: auto;
}
.mono {
  font-family: var(--mono);
}

/* Type */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}
.eyebrow-amber {
  color: var(--amber);
}
.h1,
.h2,
.hero-title {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0.005em;
  line-height: 0.9;
  text-transform: uppercase;
}
.h1 {
  font-size: clamp(2.8rem, 1.6rem + 5vw, 5.4rem);
}
.h2 {
  font-size: clamp(2.4rem, 1.4rem + 4vw, 4.4rem);
}
.h3 {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.lead {
  max-width: 36em;
  color: var(--chalk-2);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgb(200 255 58 / 0.18);
}
@media (prefers-reduced-motion: no-preference) {
  .live-dot {
    animation: blink 1.4s ease-in-out infinite;
  }
}
@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.1rem;
  padding: 0 1.35rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 140ms var(--ease), background-color 140ms var(--ease), border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
.btn svg {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn:active {
  transform: translateY(1px) scale(0.98);
}
.btn-lime {
  background: var(--lime);
  color: var(--lime-ink);
  box-shadow: 0 10px 30px -12px rgb(200 255 58 / 0.7);
}
.btn-lime:hover {
  background: #d8ff6e;
}
.btn-ghost {
  border-color: var(--line-2);
  color: var(--chalk);
}
.btn-ghost:hover {
  border-color: var(--chalk);
  background: rgb(255 255 255 / 0.04);
}
.btn-sm {
  min-height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.92rem;
}
.btn-block {
  width: 100%;
}
.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.45;
  pointer-events: none;
}

/* Header */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease);
  border-bottom: 1px solid transparent;
}
.top.is-solid {
  position: sticky;
  background: rgb(7 18 13 / 0.86);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.top-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--top-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.mark {
  width: 34px;
  height: 34px;
  color: var(--chalk);
}
.brand-word {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand-word b {
  margin-left: 0.18em;
  color: var(--lime);
}
.nav {
  margin-left: auto;
}
.nav ul {
  display: flex;
  gap: 0.25rem;
}
.nav a {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: var(--chalk-2);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 140ms var(--ease), background-color 140ms var(--ease);
}
.nav a:hover {
  color: var(--chalk);
  background: rgb(255 255 255 / 0.05);
}
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  place-content: center;
  gap: 6px;
}
.menu-btn i {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 200ms var(--ease);
}
.menu-btn[aria-expanded='true'] i:first-of-type {
  transform: translateY(4px) rotate(45deg);
}
.menu-btn[aria-expanded='true'] i:last-of-type {
  transform: translateY(-4px) rotate(-45deg);
}
.mobile-menu {
  display: grid;
  gap: 1rem;
  padding: 1rem var(--gut) 1.5rem;
  background: var(--turf);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:not(.btn) {
  display: block;
  padding: 0.7rem 0;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.net-pill {
  margin-left: auto;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgb(255 178 30 / 0.45);
  border-radius: 999px;
  color: var(--amber);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: calc(var(--top-h) + clamp(2rem, 1rem + 4vw, 4.5rem)) 0 clamp(3rem, 2rem + 4vw, 6rem);
  background: radial-gradient(70% 60% at 75% 0%, rgb(46 110 70 / 0.35), transparent 70%), var(--turf);
}
.field {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.field-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgb(232 255 240 / 0.07) 20%, rgb(232 255 240 / 0.07) 80%, transparent);
}
.l1 {
  top: 28%;
}
.l2 {
  top: 58%;
}
.l3 {
  top: 88%;
}
.field-circle {
  position: absolute;
  left: 62%;
  top: 58%;
  width: 420px;
  height: 420px;
  border: 2px solid rgb(232 255 240 / 0.06);
  border-radius: 50%;
  translate: -50% -50%;
}
.beam {
  position: absolute;
  top: -20%;
  width: 34%;
  height: 120%;
  background: linear-gradient(180deg, rgb(225 255 220 / 0.09), transparent 70%);
  filter: blur(20px);
  transform-origin: top center;
}
.b1 {
  left: 48%;
  transform: rotate(18deg);
}
.b2 {
  left: 72%;
  transform: rotate(-14deg);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.hero-title {
  font-size: clamp(3.4rem, 1.8rem + 6.2vw, 7.2rem);
}
.ht-line {
  display: block;
}
.ht-lime {
  color: var(--lime);
}
@media (prefers-reduced-motion: no-preference) {
  .js .ht-line {
    animation: rise 760ms var(--ease) both;
  }
  .js .ht-line + .ht-line {
    animation-delay: 120ms;
  }
  .js .hero-lead,
  .js .hero-actions,
  .js .hero-facts {
    animation: rise 760ms var(--ease) 240ms both;
  }
  .js .pack-stage {
    animation: rise 900ms var(--ease) 180ms both;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}
.hero-lead {
  max-width: 32em;
  margin-top: 1.5rem;
  color: var(--chalk-2);
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 2.25rem;
  margin-top: 2.5rem;
}
.hero-facts dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chalk-3);
}
.hero-facts dd {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
}

/* Pack stage (signature) */
.pack-stage {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1rem;
  min-height: 560px;
  padding: 2.5rem 1rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: radial-gradient(60% 50% at 50% 40%, rgb(200 255 58 / 0.08), transparent 70%), rgb(12 29 21 / 0.6);
}
.demo-tag {
  position: absolute;
  top: 1rem;
  left: 1.1rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}
.pack {
  position: relative;
  width: 220px;
  height: 320px;
  margin-top: 1.5rem;
  border-radius: 16px;
  background:
    linear-gradient(115deg, transparent 30%, rgb(255 255 255 / 0.28) 45%, transparent 60%) 0 0 / 250% 100%,
    linear-gradient(160deg, #1d4b32, #0c2016 55%, #163a28);
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.8), inset 0 0 0 2px rgb(200 255 58 / 0.35);
  transition: transform 300ms var(--spring);
}
.pack:hover {
  transform: translateY(-6px) rotate(-1.5deg);
}
@media (prefers-reduced-motion: no-preference) {
  .pack {
    animation: sheen 3.5s ease-in-out infinite;
  }
}
@keyframes sheen {
  0%,
  100% {
    background-position: 120% 0, 0 0;
  }
  50% {
    background-position: -20% 0, 0 0;
  }
}
.pack-tear {
  position: absolute;
  inset: 0 0 auto;
  height: 38px;
  border-radius: 16px 16px 0 0;
  background: repeating-linear-gradient(90deg, rgb(200 255 58 / 0.55) 0 6px, transparent 6px 12px) bottom / 100% 3px no-repeat, rgb(255 255 255 / 0.06);
}
.pack-face {
  position: absolute;
  inset: 54px 18px 18px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.15rem;
  text-align: center;
}
.pack-brand {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
}
.pack-brand b {
  color: var(--lime);
  margin-left: 0.15em;
}
.pack-series {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chalk-2);
}
.pack-count {
  margin-top: 0.75rem;
  font-family: var(--display);
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 0.85;
  color: var(--lime);
}
.pack-cards {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
}
.pack-odds {
  margin-top: 1rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--hof);
}
.pack-hint {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--chalk-3);
}
.pack-stage[data-state='ripping'] .pack {
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .pack-stage[data-state='ripping'] .pack-tear {
    animation: tear 420ms var(--ease) forwards;
  }
  .pack-stage[data-state='ripping'] .pack {
    animation: shake 420ms ease-in-out, drop 520ms 380ms var(--ease) forwards;
  }
}
@keyframes tear {
  to {
    transform: translate(40px, -60px) rotate(18deg);
    opacity: 0;
  }
}
@keyframes shake {
  25% {
    transform: rotate(-3deg);
  }
  75% {
    transform: rotate(3deg);
  }
}
@keyframes drop {
  to {
    transform: translateY(160px) scale(0.9);
    opacity: 0;
  }
}
.pack-stage[data-state='open'] .pack,
.pack-stage[data-state='open'] .pack-hint {
  display: none;
}

/* Cards */
.hand {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  width: 100%;
}
.pack-stage[data-state='sealed'] .hand,
.pack-stage[data-state='ripping'] .hand {
  display: none;
}
.card {
  --rc: var(--rookie);
  position: relative;
  width: 132px;
  aspect-ratio: 5 / 7;
  perspective: 900px;
}
.card[data-rarity='pro'] {
  --rc: var(--pro);
}
.card[data-rarity='allstar'] {
  --rc: var(--allstar);
}
.card[data-rarity='hof'] {
  --rc: var(--hof);
}
.card-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 640ms var(--ease);
}
.card.is-flipped .card-inner {
  transform: rotateY(180deg);
}
.card-back,
.card-front {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
  overflow: hidden;
}
.card-back {
  background: repeating-linear-gradient(45deg, #11301f 0 8px, #0d2418 8px 16px);
  box-shadow: inset 0 0 0 2px rgb(200 255 58 / 0.3);
}
.card-front {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0.55rem;
  transform: rotateY(180deg);
  background: linear-gradient(160deg, var(--team, #1d4b32), #0b1a12 70%);
  box-shadow: inset 0 0 0 2px var(--rc), 0 18px 34px -16px var(--rc);
}
.card[data-rarity='allstar'] .card-front::after,
.card[data-rarity='hof'] .card-front::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgb(255 255 255 / 0.35) 45%, transparent 60%) 0 0 / 250% 100%;
  mix-blend-mode: overlay;
}
@media (prefers-reduced-motion: no-preference) {
  .card[data-rarity='allstar'].is-flipped .card-front::after,
  .card[data-rarity='hof'].is-flipped .card-front::after {
    animation: sheen 2.4s ease-in-out infinite;
  }
}
.card-rar {
  justify-self: start;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: var(--rc);
  color: #081009;
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card-num {
  align-self: center;
  justify-self: center;
  font-family: var(--display);
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1;
  color: rgb(255 255 255 / 0.92);
  text-shadow: 0 4px 20px rgb(0 0 0 / 0.5);
}
.card-name {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.card-meta {
  font-family: var(--mono);
  font-size: 0.56rem;
  color: var(--chalk-2);
}
.stage-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

/* Sections */
section:not(.hero) {
  padding-block: clamp(4rem, 2.5rem + 6vw, 8rem);
}
.gameday {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--turf-2), var(--turf));
}
.gd-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 3rem;
  margin-bottom: 2rem;
}
.gd-note {
  max-width: 30em;
  color: var(--chalk-2);
}
.board {
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: #050d09;
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.9);
  overflow: hidden;
}
.board-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #0b1b13, #06100b);
}
.board-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: var(--amber);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.board-total {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  color: var(--chalk-3);
  font-size: 0.75rem;
  text-transform: uppercase;
}
.board-total b {
  min-width: 4ch;
  font-family: var(--mono);
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  font-weight: 700;
  color: var(--amber);
  text-align: right;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgb(255 178 30 / 0.45);
}
.board-ctrl {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
}
.ctl {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.4rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}
.ctl svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ctl[data-gd='play'] svg {
  fill: currentColor;
}
.ctl:hover {
  border-color: var(--chalk);
}
.board-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
.lineup {
  padding: 0.5rem;
  border-right: 1px solid var(--line);
}
.lineup li {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  transition: background-color 300ms var(--ease);
}
.lineup li.is-hit {
  background: rgb(200 255 58 / 0.09);
}
.lu-num {
  display: grid;
  place-items: center;
  height: 2.6rem;
  border-radius: 8px;
  background: var(--team, var(--turf-3));
  box-shadow: inset 0 0 0 2px var(--rc, var(--rookie));
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 900;
}
.lu-name {
  display: block;
  font-weight: 700;
  line-height: 1.2;
}
.lu-meta {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--chalk-3);
}
.lu-pts {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--lime);
}
.feed-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 22rem;
}
.feed-title {
  padding: 0.85rem 1.1rem 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chalk-3);
}
.feed {
  flex: 1;
  overflow: hidden;
  padding: 0 1.1rem 1rem;
}
.feed li {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.feed time {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--chalk-3);
}
.feed b {
  font-family: var(--mono);
  color: var(--lime);
}
.feed .neg {
  color: var(--ember);
}
@media (prefers-reduced-motion: no-preference) {
  .feed li:first-child {
    animation: slide-in 360ms var(--ease);
  }
}
@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
.feed-empty {
  color: var(--chalk-3);
  font-size: 0.9rem;
}
.board-clock {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--chalk-3);
}
.clock-bar {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--turf-3);
  overflow: hidden;
}
.clock-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--amber);
  transition: width 400ms linear;
}

/* How */
.how .h2 {
  max-width: 12em;
  margin-bottom: 3rem;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: s;
}
.step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--turf-2);
  overflow: hidden;
}
.step-n {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--lime);
}
.step h3 {
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}
.step p {
  color: var(--chalk-2);
}
.step-art {
  display: flex;
  gap: 6px;
  height: 88px;
  margin-top: 1rem;
  align-items: flex-end;
}
.art-pack span {
  width: 52px;
  height: 74px;
  border-radius: 8px;
  background: linear-gradient(160deg, #1d4b32, #0c2016);
  box-shadow: inset 0 0 0 2px var(--rookie);
}
.art-pack span:nth-child(2) {
  box-shadow: inset 0 0 0 2px var(--pro);
  transform: translateY(-8px) rotate(4deg);
}
.art-pack span:nth-child(3) {
  box-shadow: inset 0 0 0 2px var(--hof);
  transform: translateY(-14px) rotate(9deg);
}
.art-lineup span {
  flex: 1;
  height: 60px;
  border-radius: 8px;
  border: 1.5px dashed var(--line-2);
}
.art-lineup span:nth-child(-n + 3) {
  border-style: solid;
  border-color: var(--lime);
  background: rgb(200 255 58 / 0.08);
}
.art-score b {
  font-family: var(--mono);
  font-size: 3rem;
  color: var(--lime);
  text-shadow: 0 0 22px rgb(200 255 58 / 0.4);
}

/* Scoring */
.scoring {
  border-block: 1px solid var(--line);
  background: var(--turf-2);
}
.scoring-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
}
.scoring .lead {
  margin-top: 1.25rem;
}
.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--turf);
}
.tablist button {
  flex: 1;
  min-height: 2.6rem;
  padding: 0 1rem;
  border-radius: 999px;
  color: var(--chalk-2);
  font-weight: 700;
  font-size: 0.92rem;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.tablist button[aria-selected='true'] {
  background: var(--chalk);
  color: var(--turf);
}
.tabpanel {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--turf);
}
@media (prefers-reduced-motion: no-preference) {
  .tabpanel:not([hidden]) {
    animation: rise 360ms var(--ease);
  }
}
.pts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.pts li:last-child {
  border-bottom: 0;
}
.pts b {
  font-family: var(--mono);
  color: var(--lime);
}
.pts .neg {
  color: var(--ember);
}
.tab-note {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  color: var(--chalk-3);
}

/* Rarity */
.rarity-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 3rem;
  margin-bottom: 2.5rem;
}
.tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.tier {
  --rc: var(--rookie);
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.4rem;
  min-height: 15rem;
  padding: 1.5rem;
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, rgb(255 255 255 / 0.04), transparent 60%), var(--turf-2);
  box-shadow: inset 0 0 0 1.5px var(--rc);
  overflow: hidden;
  transition: transform 260ms var(--spring);
}
.tier:hover {
  transform: translateY(-4px);
}
.t-pro {
  --rc: var(--pro);
}
.t-allstar {
  --rc: var(--allstar);
}
.t-hof {
  --rc: var(--hof);
  background: radial-gradient(80% 60% at 80% 0%, rgb(255 207 74 / 0.18), transparent 70%), var(--turf-2);
}
.tier-x {
  font-family: var(--display);
  font-size: 4rem;
  font-weight: 900;
  line-height: 0.9;
  color: var(--rc);
}
.tier h3 {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 800;
  text-transform: uppercase;
}
.tier p {
  color: var(--chalk-2);
  font-size: 0.95rem;
}
.tier-odds {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.75rem;
  color: var(--chalk-3);
}
.stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--chalk-2);
}
.stack i {
  font-style: normal;
  color: var(--lime);
}
.stack .sep {
  color: var(--chalk-3);
  margin-inline: 0.5rem;
}

/* Contests */
.contests .h2 {
  margin-bottom: 2.5rem;
}
.contest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.contest {
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--turf-2);
}
.contest header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.contest h3 {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
}
.chip {
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.7rem;
  color: var(--chalk-2);
}
.contest p {
  color: var(--chalk-2);
}
.countdown {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 1.25rem;
  border-radius: var(--r);
  background: #050d09;
  border: 1px solid var(--line);
}
.countdown span {
  font-size: 0.72rem;
  color: var(--chalk-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.countdown b {
  font-size: 1.8rem;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 16px rgb(255 178 30 / 0.4);
}
.flow {
  display: grid;
  grid-template-columns: auto minmax(60px, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
}
.flow-in {
  display: grid;
  gap: 0.6rem;
}
.flow-in span {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.8rem;
}
.flow-lines {
  width: 100%;
  height: 60px;
}
.flow-lines path {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2;
  stroke-dasharray: 6 8;
  vector-effect: non-scaling-stroke;
}
@media (prefers-reduced-motion: no-preference) {
  .flow-lines path {
    animation: dash 1.2s linear infinite;
  }
}
@keyframes dash {
  to {
    stroke-dashoffset: -28;
  }
}
.flow-pool {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r);
  background: rgb(200 255 58 / 0.1);
  border: 1px solid rgb(200 255 58 / 0.4);
}
.flow-pool b {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--lime);
}
.flow-pool span {
  font-size: 0.72rem;
  color: var(--chalk-2);
}

/* FAQ */
.faq {
  border-top: 1px solid var(--line);
}
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 3rem;
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  font-family: var(--mono);
  color: var(--lime);
  transition: transform 260ms var(--ease);
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
}
.faq-list details > div {
  overflow: hidden;
}
.faq-list details p {
  padding-bottom: 1.25rem;
  color: var(--chalk-2);
  max-width: 40em;
}

/* Join */
.join {
  position: relative;
  border-top: 1px solid var(--line);
  background: radial-gradient(60% 80% at 50% 100%, rgb(200 255 58 / 0.12), transparent 70%), var(--turf);
  text-align: center;
}
.join-inner {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
}
.join-title {
  max-width: 12em;
}
.join-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  width: min(32rem, 100%);
  margin-top: 0.75rem;
}
.join-form input {
  flex: 1 1 16rem;
  min-height: 3.1rem;
  padding: 0 1.2rem;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  background: var(--turf-2);
}
.join-form input:focus {
  outline: none;
  border-color: var(--lime);
}
.join-form input[aria-invalid='true'] {
  border-color: var(--ember);
}
.join-msg {
  width: 100%;
  color: var(--chalk-2);
  font-size: 0.95rem;
}

/* Footer */
.foot {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--line);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 3rem;
}
.foot-line {
  margin-top: 0.4rem;
  color: var(--chalk-3);
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.foot-links a {
  color: var(--chalk-2);
  font-weight: 600;
}
.foot-links a:hover {
  color: var(--chalk);
}
.foot-legal {
  grid-column: 1 / -1;
  max-width: 60em;
  color: var(--chalk-3);
  font-size: 0.8rem;
}

/* ---------- App pages (create, challenge) ---------- */
.app-main {
  padding-block: 2.5rem 5rem;
}
.chal-head {
  padding: 0 0 2rem;
}
.chal-head .lead {
  margin-top: 1rem;
}
.panel {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--turf-2);
}
.panel .h3 {
  margin-bottom: 1rem;
}
.stack {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.app-page .stack {
  margin-top: 0;
}
.chal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.players,
.entries,
.standings,
.howto {
  display: grid;
  gap: 0.5rem;
}
.pl {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem;
  border-radius: 10px;
  background: var(--turf);
}
.pl-num {
  display: grid;
  place-items: center;
  height: 2.8rem;
  border-radius: 8px;
  background: var(--turf-3);
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--lime);
}
.pl-name {
  display: block;
  font-weight: 700;
}
.stat {
  display: block;
  font-size: 0.75rem;
  color: var(--chalk-3);
}
.pl b {
  color: var(--lime);
}
.howto {
  counter-reset: h;
  margin-bottom: 1.25rem;
}
.howto li {
  position: relative;
  padding-left: 2.2rem;
  color: var(--chalk-2);
}
.howto li::before {
  counter-increment: h;
  content: counter(h);
  position: absolute;
  left: 0;
  top: 0.05rem;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
}
.howto b {
  color: var(--chalk);
}
.row-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.fine {
  margin-top: 0.9rem;
  color: var(--chalk-3);
  font-size: 0.85rem;
}
.count {
  margin-left: 0.4rem;
  color: var(--chalk-3);
  font-size: 1rem;
}
.entries li,
.standings li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: var(--turf);
  font-size: 0.92rem;
}
.entries .tx {
  font-size: 0.75rem;
  color: var(--lime);
}
.standings .rank {
  color: var(--chalk-3);
}
.standings b {
  color: var(--amber);
}
.standings .win {
  background: rgb(255 178 30 / 0.12);
  box-shadow: inset 0 0 0 1px rgb(255 178 30 / 0.5);
}
.tagx {
  margin-left: 0.3rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--turf-3);
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--chalk-2);
}
.settle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.settle .fine {
  margin: 0;
}
.builder {
  display: grid;
  gap: 1.25rem;
}
.builder-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.form-field {
  display: grid;
  gap: 0.4rem;
  flex: 1 1 16rem;
}
.form-field span {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chalk-3);
}
.form-field input {
  min-height: 3rem;
  padding: 0 1rem;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r);
  background: var(--turf);
}
.form-field input:focus {
  outline: none;
  border-color: var(--lime);
}
.form-field input[aria-invalid='true'] {
  border-color: var(--ember);
}
.picked {
  font-size: 0.9rem;
  color: var(--chalk-2);
}
.picked b {
  font-size: 1.6rem;
  color: var(--lime);
}
.roster {
  border: 0;
  padding: 0;
}
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.6rem;
}
.pick {
  position: relative;
  cursor: pointer;
}
.pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pick-card {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) 1.4rem;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  align-items: center;
  padding: 0.7rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: var(--turf);
  transition: border-color 140ms var(--ease), background-color 140ms var(--ease), transform 140ms var(--ease);
}
.pick:hover .pick-card {
  border-color: var(--line-2);
}
.pick-num {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  height: 2.6rem;
  border-radius: 8px;
  background: var(--turf-3);
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 900;
}
.pick-name {
  font-weight: 700;
  line-height: 1.2;
}
.pick-meta {
  font-size: 0.68rem;
  color: var(--chalk-3);
}
.pick-check {
  grid-row: 1 / 3;
  grid-column: 3;
  width: 1.4rem;
  height: 1.4rem;
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
}
.pick input:checked + .pick-card {
  border-color: var(--lime);
  background: rgb(200 255 58 / 0.07);
}
.pick input:checked + .pick-card .pick-num {
  background: var(--lime);
  color: var(--lime-ink);
}
.pick input:checked + .pick-card .pick-check {
  border-color: var(--lime);
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%230b1a06' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.pick input:disabled + .pick-card {
  opacity: 0.4;
  cursor: not-allowed;
}
.pick input:focus-visible + .pick-card {
  outline: 2.5px solid var(--lime);
  outline-offset: 2px;
}
.form-msg {
  padding: 0.75rem 1rem;
  border-radius: var(--r);
  background: rgb(255 90 54 / 0.12);
  color: #ffb4a2;
}
.done {
  display: grid;
  gap: 1rem;
  outline: none;
}
.linkbox {
  display: flex;
  gap: 0.5rem;
}
.linkbox input {
  flex: 1;
  min-width: 0;
  min-height: 2.8rem;
  padding: 0 1rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--turf);
  font-family: var(--mono);
  font-size: 0.85rem;
}

/* Reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms var(--ease), transform 700ms var(--ease);
  }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .hero-grid,
  .scoring-grid,
  .faq-grid,
  .chal-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .board-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .lineup {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 860px) {
  .nav,
  .top-cta {
    display: none;
  }
  .menu-btn {
    display: grid;
  }
  .top:not(.is-solid) {
    background: rgb(7 18 13 / 0.7);
    backdrop-filter: blur(10px);
  }
  .app-page .top-cta {
    display: inline-flex;
  }
}
@media (max-width: 720px) {
  .steps,
  .contest-grid,
  .tiers {
    grid-template-columns: minmax(0, 1fr);
  }
  .tier {
    min-height: 0;
  }
  .card {
    width: calc((100% - 1.2rem) / 3);
    max-width: 120px;
  }
  .pack-stage {
    min-height: 500px;
  }
  .board-top {
    grid-template-columns: 1fr auto;
  }
  .board-ctrl {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .flow {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
  .flow-lines {
    width: 60px;
    height: 60px;
    transform: rotate(90deg);
  }
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .app-page .net-pill {
    display: none;
  }
}
