/*
 * Product site. Colours come from libs/shared/brand/brand.css (served as /assets/brand/brand.css);
 * change them there, not here. The look borrows the mascot's: chunky dark outlines, flat fills
 * and hard offset shadows, like stickers on a navy pitch.
 */
:root {
  --bg: var(--brand-navy-950);
  --surface: var(--brand-navy-850);
  --surface-2: var(--brand-navy-800);
  --line: var(--brand-navy-700);
  --ink: #fff;
  --muted: var(--brand-navy-300);
  --primary: var(--brand-orange-400);
  --primary-ink: var(--brand-navy-950);
  --accent: var(--brand-teal-500);
  --outline: var(--brand-navy-950);
  --radius: 22px;
  --shadow-hard: 6px 6px 0 var(--outline);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: dark;
}

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

html {
  /* clip, not hidden: the tilted ticker and the hero chips overhang, and hidden would still
     let scrollIntoView pan the page sideways. */
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

html.is-leaving body {
  visibility: hidden;
}

body {
  margin: 0;
  font-family: var(--brand-font);
  background-color: var(--bg);
  background-image:
    radial-gradient(60rem 40rem at 85% -10%, rgba(var(--brand-orange-400-rgb), 0.16), transparent 60%),
    radial-gradient(50rem 36rem at -10% 30%, rgba(var(--brand-teal-300-rgb), 0.08), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M0 60h120M60 0v120' stroke='%23ffffff' stroke-opacity='.025'/%3E%3Ccircle cx='60' cy='60' r='18' fill='none' stroke='%23ffffff' stroke-opacity='.025'/%3E%3C/svg%3E");
  color: var(--ink);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 900;
}

h3 {
  font-size: 1.3rem;
  font-weight: 800;
}

p {
  margin: 0;
}

.container {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--primary);
  color: var(--primary-ink);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--brand-teal-300);
  outline-offset: 3px;
}

.confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 90;
}

/* ------------------------------------------------------------------ buttons */

.btn {
  --btn-shadow: var(--outline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  border: 3px solid var(--outline);
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.18s var(--ease-spring),
    box-shadow 0.18s var(--ease-out),
    background-color 0.2s;
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--btn-shadow);
}

.btn--primary {
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: 4px 4px 0 var(--btn-shadow);
}

.btn--primary:hover {
  background: var(--brand-orange-300);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--btn-shadow);
}

.btn--outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--brand-navy-600);
  box-shadow: 4px 4px 0 var(--outline);
}

.btn--outline:hover {
  border-color: var(--brand-teal-500);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--outline);
}

.btn--ghost {
  border-color: transparent;
  background: transparent;
  color: var(--ink);
  padding-inline: 14px;
}

.btn--ghost:hover {
  color: var(--primary);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.92rem;
}

.btn--lg {
  padding: 15px 28px;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  cursor: progress;
  opacity: 0.85;
}

/* ------------------------------------------------------------------ nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 14px;
  transition:
    background-color 0.25s,
    backdrop-filter 0.25s,
    box-shadow 0.25s;
}

.nav--scrolled {
  background: rgba(var(--brand-navy-950-rgb), 0.78);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(var(--brand-navy-700-rgb), 0.8);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.brand img {
  width: 44px;
  height: 44px;
  transition: transform 0.3s var(--ease-spring);
}

.brand:hover img {
  transform: rotate(-10deg) scale(1.08);
}

.nav__links {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}

.nav__links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  transition:
    color 0.2s,
    background-color 0.2s;
}

.nav__links a:hover {
  color: var(--ink);
  background: var(--surface);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__auth {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__auth[hidden] {
  display: none;
}

.lang {
  display: inline-flex;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 3px;
  cursor: pointer;
}

.lang span {
  padding: 4px 8px;
  border-radius: 999px;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.lang[data-active='es'] [data-lang='es'],
.lang[data-active='en'] [data-lang='en'] {
  background: var(--accent);
  color: var(--brand-navy-950);
}

/* ------------------------------------------------------------------ hero */

.hero {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: 40px;
  padding-block: 48px 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 2px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  color: var(--brand-orange-200);
  font-size: 0.88rem;
  font-weight: 700;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-success);
  box-shadow: 0 0 0 0 rgba(var(--brand-success-rgb), 0.6);
  animation: pulse 1.8s infinite;
  flex: none;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(var(--brand-success-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--brand-success-rgb), 0);
  }
}

.hero__title {
  margin-top: 22px;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero__title-line {
  display: block;
}

.rotator {
  display: inline-block;
  position: relative;
  color: var(--primary);
  white-space: nowrap;
}

.rotator::after {
  content: '';
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.02em;
  height: 0.18em;
  background: var(--accent);
  border-radius: 999px;
  transform: rotate(-1.5deg);
  z-index: -1;
  opacity: 0.9;
}

.rotator__word {
  display: inline-block;
  transition:
    transform 0.28s var(--ease-out),
    opacity 0.28s,
    filter 0.28s;
}

.rotator__word.is-out {
  transform: translateY(-0.4em) rotate(-4deg);
  opacity: 0;
  filter: blur(4px);
}

.hero__lead {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--muted);
  max-width: 34em;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero__ctas--center {
  justify-content: center;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero__facts strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hero__art {
  position: relative;
  aspect-ratio: 1;
  max-width: 560px;
  width: 100%;
  justify-self: center;
}

.hero__blob {
  position: absolute;
  inset: 8%;
  border-radius: 42% 58% 61% 39% / 45% 41% 59% 55%;
  background: radial-gradient(circle at 35% 30%, var(--brand-orange-400), var(--brand-orange-600) 70%);
  border: 4px solid var(--outline);
  box-shadow: 12px 12px 0 var(--brand-teal-500);
  animation: blob 12s ease-in-out infinite alternate;
}

@keyframes blob {
  50% {
    border-radius: 58% 42% 45% 55% / 55% 59% 41% 45%;
    rotate: 8deg;
  }
}

.mascot {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: translate 0.35s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.mascot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(10px 12px 0 rgba(var(--brand-navy-950-rgb), 0.55));
  animation: float 5s ease-in-out infinite;
}

.mascot.is-bouncing img {
  animation:
    hop 0.6s var(--ease-spring),
    float 5s ease-in-out 0.6s infinite;
}

@keyframes float {
  50% {
    transform: translateY(-14px) rotate(1.5deg);
  }
}

@keyframes hop {
  30% {
    transform: translateY(-40px) scale(1.06, 0.94) rotate(-6deg);
  }
  60% {
    transform: translateY(0) scale(0.96, 1.04);
  }
}

.bubble {
  position: absolute;
  top: 2%;
  left: 50%;
  translate: -50% 0;
  background: #fff;
  color: var(--brand-navy-950);
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 18px;
  border: 3px solid var(--outline);
  box-shadow: 4px 4px 0 var(--outline);
  white-space: nowrap;
  animation: pop 0.35s var(--ease-spring);
  z-index: 3;
}

.bubble::after {
  content: '';
  position: absolute;
  left: 46%;
  bottom: -12px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-right: 3px solid var(--outline);
  border-bottom: 3px solid var(--outline);
  transform: rotate(45deg);
}

@keyframes pop {
  from {
    transform: scale(0.4) translateY(20px);
    opacity: 0;
  }
}

.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 3px solid var(--outline);
  border-radius: 16px;
  box-shadow: var(--shadow-hard);
  font-weight: 700;
  font-size: 0.92rem;
  transition: translate 0.4s var(--ease-out);
  z-index: 2;
  pointer-events: none;
}

.chip--a {
  top: 14%;
  left: -6%;
  rotate: -6deg;
  animation: bob 6s ease-in-out infinite;
}

.chip--b {
  bottom: 18%;
  right: -4%;
  rotate: 5deg;
  animation: bob 7s ease-in-out -2s infinite;
}

.chip--c {
  bottom: 4%;
  left: 8%;
  rotate: -3deg;
  animation: bob 5.5s ease-in-out -1s infinite;
  background: var(--brand-teal-500);
  color: var(--brand-navy-950);
}

@keyframes bob {
  50% {
    transform: translateY(-10px);
  }
}

.chip__league {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.chip__teams {
  font-variant-numeric: tabular-nums;
}

.chip__pts {
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 8px;
  color: var(--brand-navy-950);
}

.chip__pts--win {
  background: var(--brand-success);
}

.chip__pts--ok {
  background: var(--brand-orange-300);
}

.chip__rank {
  font-weight: 900;
  font-size: 1.1rem;
}

/* ------------------------------------------------------------------ ticker */

.ticker {
  overflow: hidden;
  border-block: 3px solid var(--outline);
  background: var(--primary);
  color: var(--primary-ink);
  rotate: -1.2deg;
  margin-inline: -20px;
  box-shadow: 0 8px 0 var(--brand-teal-500);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.ticker__track span {
  padding: 14px 22px;
  font-weight: 900;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ticker__track span::after {
  content: '★';
  margin-left: 44px;
  opacity: 0.55;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ------------------------------------------------------------------ sections */

.section {
  padding-block: 110px 0;
}

.section--narrow {
  width: min(820px, 100% - 32px);
}

.section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.kicker {
  display: inline-block;
  color: var(--brand-teal-300);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.card {
  background: var(--surface);
  border: 3px solid var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}

/* `js` is set by session.js and dropped again if main.js cannot run (index.html), so the page
   never stays hidden waiting for a reveal that will not come. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease-out) var(--reveal-delay, 0ms),
    transform 0.7s var(--ease-out) var(--reveal-delay, 0ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------ steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 18px 26px 30px;
  background: var(--surface);
  border: 3px solid var(--outline);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--brand-orange-400);
}

.step:nth-child(2) {
  box-shadow: 8px 8px 0 var(--brand-teal-500);
}

.step:nth-child(2).is-visible {
  transform: translateY(24px);
}

.step img {
  width: 82%;
  margin: 0 auto 8px;
  transition: transform 0.4s var(--ease-spring);
}

.step:hover img {
  transform: scale(1.06) rotate(-2deg);
}

.step p {
  margin-top: 10px;
  color: var(--muted);
}

.step__num {
  position: absolute;
  top: -22px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-ink);
  border: 3px solid var(--outline);
  font-weight: 900;
  font-size: 1.5rem;
  box-shadow: 3px 3px 0 var(--outline);
}

/* ------------------------------------------------------------------ try-a-pick */

.play {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.play__intro > p:not(.kicker) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.tiers {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.tiers li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: rgba(var(--brand-navy-800-rgb), 0.5);
  font-weight: 500;
  transition:
    transform 0.3s var(--ease-spring),
    border-color 0.2s,
    background-color 0.2s;
}

.tiers b {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 1.2rem;
  font-weight: 900;
}

.tiers li.is-hit {
  transform: scale(1.04);
  border-color: var(--primary);
  background: rgba(var(--brand-orange-400-rgb), 0.14);
}

.tiers li.is-hit b {
  background: var(--primary);
  color: var(--primary-ink);
}

.tiers li[data-tier='miss'].is-hit {
  border-color: var(--brand-danger);
  background: rgba(var(--brand-danger-rgb), 0.12);
}

.tiers li[data-tier='miss'].is-hit b {
  background: var(--brand-danger);
  color: #fff;
}

.match {
  padding: 26px;
  box-shadow: 10px 10px 0 var(--brand-teal-500);
}

.match__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 700;
}

.match__clock {
  font-variant-numeric: tabular-nums;
  background: var(--surface-2);
  padding: 4px 10px;
  border-radius: 8px;
  color: var(--ink);
  min-width: 52px;
  text-align: center;
}

.is-playing .match__clock {
  background: var(--brand-success);
  color: var(--brand-navy-950);
}

.match__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.match__vs {
  font-weight: 900;
  color: var(--muted);
  font-size: 1.1rem;
}

.team {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.team__name {
  font-weight: 800;
  font-size: 1.1rem;
}

.crest {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 22px 22px 34px 34px;
  border: 3px solid var(--outline);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--brand-navy-950);
  box-shadow: 3px 3px 0 var(--outline);
}

.crest--orange {
  background: var(--brand-orange-400);
}

.crest--teal {
  background: var(--brand-teal-300);
}

.stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border-radius: 16px;
  padding: 6px;
  border: 2px solid var(--line);
}

.stepper button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 0;
  background: var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 1.3rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background-color 0.15s,
    transform 0.15s var(--ease-spring);
}

.stepper button:hover {
  background: var(--brand-navy-600);
}

.stepper button:active {
  transform: scale(0.88);
}

.is-playing .stepper button {
  opacity: 0.4;
  cursor: not-allowed;
}

.stepper output {
  min-width: 40px;
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.scoreboard {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding: 14px 20px;
  background: var(--brand-navy-950);
  border-radius: 16px;
  border: 2px solid var(--line);
  overflow: hidden;
}

.scoreboard[hidden] {
  display: none;
}

.scoreboard__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.scoreboard__score {
  font-size: 2.1rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--brand-warning);
  text-shadow: 0 0 18px rgba(var(--brand-warning-rgb), 0.45);
}

.goal-flash {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
}

.goal-flash[hidden] {
  display: none;
}

.goal-flash.is-on {
  animation: goal 0.5s var(--ease-spring);
}

@keyframes goal {
  from {
    transform: scale(0.3) rotate(-8deg);
    opacity: 0;
  }
}

.match__result {
  min-height: 1.6em;
  margin: 16px 0 14px;
  text-align: center;
  font-weight: 800;
  font-size: 1.1rem;
}

[data-tier='exact'] .match__result,
[data-tier='margin'] .match__result {
  color: var(--brand-success);
}

[data-tier='outcome'] .match__result {
  color: var(--brand-orange-300);
}

[data-tier='miss'] .match__result {
  color: var(--brand-navy-300);
}

[data-tier='exact'].match {
  animation: shake 0.5s;
}

@keyframes shake {
  25% {
    transform: rotate(-1.5deg);
  }
  75% {
    transform: rotate(1.5deg);
  }
}

.match__tally {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ------------------------------------------------------------------ features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  padding: 28px;
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    opacity 0.7s var(--ease-out) var(--reveal-delay, 0ms);
  will-change: transform;
}

.feature:hover {
  box-shadow: 10px 10px 0 var(--outline);
}

.feature p {
  margin-top: 10px;
  color: var(--muted);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  border: 3px solid var(--outline);
  margin-bottom: 20px;
  box-shadow: 3px 3px 0 var(--outline);
}

.feature__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--brand-navy-950);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature__icon--orange {
  background: var(--brand-orange-400);
}

.feature__icon--teal {
  background: var(--brand-teal-300);
}

/* ------------------------------------------------------------------ standings */

.standings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.standings__copy > p:not(.kicker) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.board {
  padding: 22px;
  box-shadow: 10px 10px 0 var(--brand-orange-400);
}

.board__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  margin-bottom: 16px;
}

.board__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--brand-success);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.board__rows {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.row {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 2px solid transparent;
  font-weight: 700;
}

.row--you {
  border-color: var(--primary);
  background: rgba(var(--brand-orange-400-rgb), 0.14);
}

.row__pos {
  font-weight: 900;
  color: var(--muted);
  text-align: center;
}

.row__pts {
  font-variant-numeric: tabular-nums;
}

.row__gain {
  position: absolute;
  right: -10px;
  top: -12px;
  background: var(--brand-success);
  color: var(--brand-navy-950);
  font-weight: 900;
  font-size: 0.85rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 2px solid var(--outline);
  animation: gain 1.6s var(--ease-out) forwards;
}

@keyframes gain {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  15% {
    transform: scale(1.15);
    opacity: 1;
  }
  80% {
    transform: translateY(-6px);
    opacity: 1;
  }
  100% {
    transform: translateY(-14px);
    opacity: 0;
  }
}

/* ------------------------------------------------------------------ invitation */

.invite {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
  padding: 44px;
  background:
    radial-gradient(30rem 20rem at 0% 0%, rgba(var(--brand-orange-400-rgb), 0.22), transparent 70%), var(--surface);
  box-shadow: 12px 12px 0 var(--brand-orange-400);
}

.invite__mascot {
  width: 100%;
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(8px 8px 0 rgba(0, 0, 0, 0.35));
}

.invite__body > p:not(.kicker) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

.code-form {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.code-input {
  flex: 1 1 240px;
  min-width: 0;
  font: inherit;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--brand-navy-950);
  border: 3px solid var(--line);
  border-radius: 16px;
  padding: 12px 18px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.code-input::placeholder {
  color: var(--brand-navy-600);
}

.code-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--brand-teal-300-rgb), 0.25);
}

.code-form.is-complete .code-input {
  border-color: var(--brand-success);
}

.code-form.is-invalid .code-input {
  border-color: var(--brand-danger);
  animation: nope 0.4s;
}

@keyframes nope {
  20%,
  60% {
    transform: translateX(-8px);
  }
  40%,
  80% {
    transform: translateX(8px);
  }
}

.code-hint {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--muted);
}

.code-error {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--brand-danger);
}

.code-error[hidden],
.code-hint[hidden] {
  display: none;
}

.invite__login {
  margin-top: 22px;
  color: var(--muted);
}

.invite__login a {
  color: var(--primary);
  font-weight: 800;
}

/* ------------------------------------------------------------------ faq */

.faq {
  display: grid;
  gap: 14px;
}

.faq details {
  background: var(--surface);
  border: 3px solid var(--outline);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--outline);
  transition: box-shadow 0.2s;
}

.faq details[open] {
  box-shadow: 6px 6px 0 var(--brand-teal-500);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 800;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 1.4rem;
  transition:
    transform 0.3s var(--ease-spring),
    background-color 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  background: var(--primary);
  color: var(--primary-ink);
}

.faq details p {
  padding: 0 24px 22px;
  color: var(--muted);
}

/* ------------------------------------------------------------------ final + footer */

.final {
  text-align: center;
  padding-block: 130px 110px;
}

.final h2 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  max-width: 14em;
  margin-inline: auto;
}

.final > p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.15rem;
}

.footer {
  border-top: 2px solid var(--line);
  padding-block: 36px;
  background: var(--brand-navy-900);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer .brand {
  font-size: 1.1rem;
}

.footer .brand img {
  width: 36px;
  height: 36px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.footer__links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.footer__links a:hover {
  color: var(--primary);
}

.footer__note {
  width: 100%;
  color: var(--brand-navy-400);
  font-size: 0.85rem;
}

/* ------------------------------------------------------------------ responsive */

@media (max-width: 980px) {
  .nav__links {
    display: none;
  }

  .nav__actions {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 24px;
    text-align: center;
  }

  .hero__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__ctas,
  .hero__facts {
    justify-content: center;
  }

  .hero__art {
    max-width: 440px;
    order: -1;
  }

  .steps,
  .features {
    grid-template-columns: 1fr 1fr;
  }

  .step:nth-child(2).is-visible {
    transform: none;
  }

  .play,
  .standings {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .invite {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 24px;
  }

  .invite__mascot {
    width: 160px;
    margin-inline: auto;
  }

  .code-form {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .brand span {
    display: none;
  }

  .nav__auth .btn--ghost {
    padding-inline: 8px;
  }

  .hero__art {
    max-width: 290px;
  }

  .chip {
    font-size: 0.8rem;
    padding: 8px 10px;
  }

  .chip--a {
    left: -2%;
  }

  .chip--b {
    right: -2%;
  }

  .steps,
  .features {
    grid-template-columns: 1fr;
  }

  .steps {
    gap: 44px;
  }

  .section {
    padding-top: 80px;
  }

  .match {
    padding: 20px 16px;
  }

  .crest {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  .stepper button {
    width: 34px;
    height: 34px;
  }

  .code-input {
    font-size: 1.2rem;
    letter-spacing: 0.22em;
  }

  .code-form .btn {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
