/*
 * KirKit launch page. One stylesheet, no build step, no JavaScript.
 *
 * The colours are the app's KirKit Clay tokens: Lilac Clay in light, Plum Clay
 * in dark (mobile/src/constants/colors.ts, clay.ts). This page cannot import
 * them, so scripts/__tests__/landing-page.test.js fails if a value here drifts
 * from the app's. Change the token there first, then here.
 *
 * Clay on the web: an opaque fill, a soft violet-tinted outer shadow and an
 * inset top highlight. The app draws no rim (React Native cannot draw one
 * cleanly on a rounded corner); an inset box-shadow follows the radius, so the
 * web gets the lit edge the native app leaves out.
 */

:root {
  color-scheme: light dark;

  --canvas: #F1EEF8;
  --surface: #FBFAFE;
  --raised: #FFFFFF;
  --muted: #ECE8F5;
  --key: #FFFFFF;
  --ink: #1D1830;
  --ink-2: #58516E;
  --line: #DED8EC;
  --accent: #6B4EE0;
  --accent-bright: #7A5FE8;
  --accent-deep: #5236C6;
  --accent-ink: #5A3DC8;
  --on-accent: #FFFFFF;
  --selected: #E7E0FF;
  --tile-lilac: #E6DFFF;
  --tile-lilac-ink: #4A2FB5;
  --tile-mint: #D4F2E1;
  --tile-mint-ink: #14613A;
  --live: #EF4444;
  --live-ink: #B91C1C;
  --live-tint: rgb(239 68 68 / 0.12);
  /* A panel set into a tinted tile: the points table on the mint tile. */
  --inlay: rgb(255 255 255 / 0.6);
  --inlay-line: rgb(20 97 58 / 0.14);

  /* Recent-ball chips: the same bright hues in both themes, dark digits on all. */
  --chip-ink: #12141A;
  --chip-runs: #9096A1;
  --chip-four: #3B82F6;
  --chip-six: #8FD94F;
  --chip-extra: #F59E0B;
  --chip-wicket: #EF4444;

  /* clayShadow #4B3A9A, as channels so each depth can set its own alpha. */
  --shade: 75 58 154;
  --highlight: rgb(255 255 255 / 0.95);
  --glow: rgb(107 78 224 / 0.14);
  --accent-shadow: rgb(107 78 224 / 0.45);

  --clay-shallow: 0 1px 2px rgb(var(--shade) / 0.08), 0 4px 12px rgb(var(--shade) / 0.1);
  --clay-medium: 0 1px 2px rgb(var(--shade) / 0.08), 0 10px 28px rgb(var(--shade) / 0.13);
  --clay-hero: 0 2px 4px rgb(var(--shade) / 0.08), 0 20px 48px rgb(var(--shade) / 0.18);
  --clay-inset: inset 0 1.5px 0 var(--highlight), inset 0 -3px 8px rgb(var(--shade) / 0.06);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;

  --z-float: 1;
  --z-skip: 10;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #15121D;
    --surface: #201C2B;
    --raised: #282336;
    --muted: #1A1724;
    --key: #342D48;
    --ink: #F4F1FB;
    --ink-2: #C7C0D8;
    --line: #342E44;
    --accent: #7357EC;
    --accent-bright: #775CEB;
    --accent-deep: #5B3FD9;
    --accent-ink: #B7A6FF;
    --selected: #2F2852;
    --tile-lilac: #2E2752;
    --tile-lilac-ink: #D1C6FF;
    --tile-mint: #163A2A;
    --tile-mint-ink: #8EE2B3;
    --live-ink: #F87171;
    --live-tint: rgb(239 68 68 / 0.16);
    --inlay: rgb(255 255 255 / 0.06);
    --inlay-line: rgb(255 255 255 / 0.08);

    /* A dark page cannot show a tinted shadow: black, and denser. */
    --shade: 0 0 0;
    --highlight: rgb(255 255 255 / 0.09);
    --glow: rgb(115 87 236 / 0.2);
    --accent-shadow: rgb(0 0 0 / 0.5);

    --clay-shallow: 0 1px 2px rgb(var(--shade) / 0.3), 0 4px 12px rgb(var(--shade) / 0.35);
    --clay-medium: 0 1px 2px rgb(var(--shade) / 0.3), 0 10px 28px rgb(var(--shade) / 0.45);
    --clay-hero: 0 2px 4px rgb(var(--shade) / 0.3), 0 20px 48px rgb(var(--shade) / 0.55);
    --clay-inset: inset 0 1.5px 0 var(--highlight), inset 0 -3px 8px rgb(var(--shade) / 0.25);
  }
}

/* ── Base ─────────────────────────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2.5px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
dd {
  text-wrap: pretty;
}

.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: var(--gutter);
  z-index: var(--z-skip);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--raised);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  box-shadow: var(--clay-medium);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ── Buttons and links ────────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button--primary {
  color: var(--on-accent);
  background: linear-gradient(to bottom, var(--accent-bright), var(--accent));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 8px 18px -6px var(--accent-shadow), 0 2px 4px var(--accent-shadow);
}

.button--on-accent {
  color: var(--accent-deep);
  background: #FFFFFF;
  box-shadow: inset 0 -2px 4px rgb(var(--shade) / 0.08), 0 10px 22px -8px rgb(20 10 60 / 0.5);
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(1px);
}

.button--small {
  padding-inline: 16px;
}

.button--large {
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 18px;
  font-size: 1.0625rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 650;
}

/* ── Header ───────────────────────────────────────────────────────────────── */

.site-header {
  padding-block: 18px;
}

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

/* The brand pushes everything after it to the right edge, with or without a nav. */
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: auto;
  border-radius: 8px;
}

.brand img {
  width: auto;
  height: 30px;
}

.site-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 14px;
  border-radius: var(--radius-md);
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.site-nav a:hover {
  background: var(--muted);
  color: var(--ink);
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding-block: clamp(28px, 6vw, 72px) clamp(64px, 9vw, 112px);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10% -10% 0 45%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--accent-ink);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: currentColor;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 1.4rem + 5.2vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 34em;
  margin: 24px 0 0;
  color: var(--ink-2);
  font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.3125rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 32px;
}

.availability {
  margin: 20px 0 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.hero-art {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
  padding: 30px 0 0;
}

.slab {
  position: absolute;
  inset: 64px -16px -22px 32px;
  border-radius: 36px;
  background: var(--tile-lilac);
  box-shadow: var(--clay-medium), var(--clay-inset);
  transform: rotate(-4deg);
}

.match-card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--raised);
  box-shadow: var(--clay-hero), var(--clay-inset);
  font-variant-numeric: tabular-nums;
}

.mc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: var(--live-tint);
  color: var(--live-ink);
  font-size: 0.8125rem;
  font-weight: 800;
}

.live-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 3px rgb(239 68 68 / 0.18);
}

.mc-meta {
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
}

.mc-team {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-block: 7px;
}

.monogram {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.monogram--mint {
  background: var(--tile-mint);
  color: var(--tile-mint-ink);
}

.monogram--lilac {
  background: var(--tile-lilac);
  color: var(--tile-lilac-ink);
}

.mc-name {
  overflow: hidden;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mc-score {
  font-size: 1.125rem;
  font-weight: 800;
  white-space: nowrap;
}

.mc-score small {
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
}

.mc-score--done {
  color: var(--ink-2);
  font-weight: 700;
}

.mc-team--batting .mc-score {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.mc-need {
  margin: 10px 0 14px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--selected);
  color: var(--accent-ink);
  font-size: 0.9375rem;
  font-weight: 700;
}

.mc-players {
  padding-top: 8px;
  border-top: 1.5px solid var(--line);
}

.mc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 4px;
  font-size: 0.9375rem;
}

.mc-row > span:last-child {
  font-weight: 700;
}

.mc-row--bowler {
  color: var(--ink-2);
}

.striker {
  margin-left: 2px;
  color: var(--accent-ink);
  font-weight: 800;
}

.mc-balls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1.5px solid var(--line);
}

.mc-balls-label {
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
}

.chips {
  display: flex;
  gap: 6px;
}

.chip {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding-inline: 6px;
  border-radius: 999px;
  background: var(--chip-runs);
  color: var(--chip-ink);
  font-size: 0.8125rem;
  font-weight: 800;
}

.chip--four {
  background: var(--chip-four);
}

.chip--six {
  background: var(--chip-six);
}

.chip--extra {
  background: var(--chip-extra);
}

.float-chip {
  position: absolute;
  top: 0;
  right: -8px;
  z-index: var(--z-float);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--raised);
  box-shadow: var(--clay-medium), var(--clay-inset);
  font-size: 0.875rem;
  font-weight: 700;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .slab {
    inset: 60px 4px -16px 16px;
  }

  .float-chip {
    right: 4px;
  }

  .match-card {
    padding: 20px;
  }
}

/* ── Sections ─────────────────────────────────────────────────────────────── */

.section {
  padding-block: clamp(56px, 8vw, 104px) clamp(64px, 9vw, 120px);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(32px, 4vw, 48px);
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.section-intro {
  max-width: 36em;
  margin: 16px 0 0;
  color: var(--ink-2);
  font-size: 1.1875rem;
}

/* ── Features ─────────────────────────────────────────────────────────────── */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

/* A tile is a column: its illustration sits on the bottom edge, so tiles that
   share a row line their pictures up whatever the length of their text. */
.tile {
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--raised);
  box-shadow: var(--clay-medium), var(--clay-inset);
}

.tile > [aria-hidden] {
  margin-top: auto;
}

.tile--wide {
  grid-column: span 4;
}

.tile h3 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.tile p {
  max-width: 38em;
  margin: 12px 0 24px;
  color: var(--ink-2);
}

.tile--mint {
  background: var(--tile-mint);
}

.tile--mint h3 {
  color: var(--tile-mint-ink);
}

.tile--lilac {
  background: var(--tile-lilac);
}

.tile--lilac h3 {
  color: var(--tile-lilac-ink);
}

.tile--mint p,
.tile--lilac p {
  color: var(--ink);
}

/* The scorer's pad: runs on the first row, extras, the wicket and undo on the
   second, with the labels the MiniScorer uses. */
.keys {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  max-width: 480px;
}

.key {
  display: grid;
  place-items: center;
  height: 48px;
  padding-inline: 4px;
  border-radius: var(--radius-md);
  background: var(--key);
  box-shadow: var(--clay-shallow), var(--clay-inset);
  font-size: 1.0625rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.key--word {
  font-size: 0.8125rem;
  font-weight: 750;
}

.key--wicket {
  background: var(--chip-wicket);
  color: var(--chip-ink);
}

.key--undo {
  color: var(--accent-ink);
}

@media (max-width: 420px) {
  .keys {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.bubbles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 380px;
  margin-bottom: 18px;
}

.bubble {
  width: fit-content;
  padding: 9px 14px;
  border-radius: 18px 18px 18px 6px;
  background: var(--muted);
  font-size: 0.9375rem;
}

.bubble--mine {
  align-self: flex-end;
  border-radius: 18px 18px 6px 18px;
  background: var(--accent);
  color: var(--on-accent);
}

.dock {
  display: flex;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  gap: 4px;
  padding: 6px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--clay-shallow), var(--clay-inset);
}

.dock-item {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 650;
}

.dock-item--active {
  background: var(--selected);
  color: var(--accent-ink);
}

.standings {
  padding: 6px 14px;
  border-radius: var(--radius-md);
  background: var(--inlay);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.st-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 6px;
}

.st-row + .st-row {
  border-top: 1.5px solid var(--inlay-line);
}

.st-row > span:last-child {
  font-weight: 700;
}

.st-team b {
  display: inline-block;
  width: 1.4em;
  color: var(--tile-mint-ink);
}

/* Runs, innings by innings: the newest bar is the one in colour. */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 76px;
}

.bars span {
  flex: 1;
  border-radius: 6px 6px 3px 3px;
  background: var(--tile-lilac-ink);
  opacity: 0.32;
}

.bars span:last-child {
  opacity: 1;
}

.bars span:nth-child(1) { height: 30%; }
.bars span:nth-child(2) { height: 56%; }
.bars span:nth-child(3) { height: 18%; }
.bars span:nth-child(4) { height: 72%; }
.bars span:nth-child(5) { height: 41%; }
.bars span:nth-child(6) { height: 88%; }
.bars span:nth-child(7) { height: 35%; }
.bars span:nth-child(8) { height: 63%; }
.bars span:nth-child(9) { height: 47%; }
.bars span:nth-child(10) { height: 100%; }

@media (max-width: 900px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile {
    grid-column: span 1;
  }

  .tile--wide {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .tile,
  .tile--wide {
    grid-column: span 1;
  }
}

/* Five tab names do not fit one row on a phone, and a wrapped tab bar reads as
   broken; the chat above it carries the tile on its own. */
@media (max-width: 420px) {
  .dock {
    display: none;
  }
}

/* ── Streaming ────────────────────────────────────────────────────────────── */

.stream-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  margin: 32px 0 0;
}

.fact {
  padding-top: 16px;
  border-top: 1.5px solid var(--line);
}

.fact dt {
  font-size: 1.0625rem;
  font-weight: 750;
}

.fact dd {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 0.984rem;
}

.stream-figure {
  margin: 0;
}

.stream-figure figcaption {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 0.875rem;
}

/* A cricket ground in CSS: mowing stripes, a pitch in perspective, and the
   scoreboard bar as the phone burns it in (live-stream/scoreboard-overlay.page.ts:
   its colours and its order: batting side, rate and target, batters, bowler). */
.frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 50% 0%, rgb(255 255 255 / 0.12), transparent 60%),
    repeating-linear-gradient(90deg, #3E7B47 0 10%, #448650 10% 20%);
  box-shadow: var(--clay-hero);
  container-type: inline-size;
}

.pitch {
  position: absolute;
  top: 12%;
  bottom: 22%;
  left: 50%;
  width: 15%;
  background: linear-gradient(to bottom, #C9B087, #D6BF96);
  clip-path: polygon(36% 0, 64% 0, 100% 100%, 0 100%);
  transform: translateX(-50%);
}

.pitch::before,
.pitch::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  height: 2px;
  background: rgb(255 255 255 / 0.85);
}

.pitch::before {
  top: 12%;
}

.pitch::after {
  bottom: 12%;
}

.bar {
  position: absolute;
  right: 3%;
  bottom: 5%;
  left: 3%;
  display: flex;
  align-items: stretch;
  height: 3.4em;
  overflow: hidden;
  border-radius: 0.4em;
  font-size: clamp(6px, 1.75cqw, 13px);
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.5);
}

.bar-team,
.bar-players {
  background: linear-gradient(90deg, #281057, #1E0947);
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.45);
}

.bar-team {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding-inline: 1em;
}

.bar-name,
.bar-overs {
  color: #00D2FF;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.bar-total {
  color: #FFFF00;
  font-size: 1.45em;
  font-weight: 900;
}

.bar-meta {
  display: flex;
  align-items: center;
  gap: 1em;
  padding-inline: 0.9em;
  background: #FFFFFF;
  color: #111111;
}

.bar-meta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bar-label {
  color: #333333;
  font-size: 0.6em;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.bar-value {
  font-size: 1.05em;
  font-weight: 900;
}

.bar-players {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 1.4em;
  min-width: 0;
  padding-inline: 1em;
}

.bar-player {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  font-weight: 700;
}

.bar-player b {
  font-size: 1.15em;
  font-weight: 800;
}

.bar-player i {
  color: rgb(255 255 255 / 0.8);
  font-size: 0.75em;
  font-style: normal;
}

.bar-player--bowler {
  margin-left: auto;
}

.bat {
  align-self: center;
  width: 0.4em;
  height: 1em;
  margin-left: 0.2em;
  border-radius: 0.15em;
  background: #FFFF00;
  transform: rotate(-45deg);
}

@container (max-width: 460px) {
  .bar {
    right: auto;
    font-size: 3cqw;
  }

  .bar-players {
    display: none;
  }
}

@media (max-width: 960px) {
  .stream-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Questions ────────────────────────────────────────────────────────────── */

.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 72px);
  margin: 0;
}

.faq-item {
  padding-block: 22px;
  border-top: 1.5px solid var(--line);
}

.faq dt {
  font-size: 1.125rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.faq dd {
  margin: 8px 0 0;
  color: var(--ink-2);
}

/* An address or a link name never breaks at its hyphen. */
.faq dd a {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Closing call to action ───────────────────────────────────────────────── */

.cta {
  padding-block: 0 clamp(64px, 9vw, 120px);
}

.cta-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(36px, 6vw, 72px);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--accent-bright), var(--accent) 55%, var(--accent-deep));
  color: var(--on-accent);
  box-shadow: inset 0 2px 0 rgb(255 255 255 / 0.18), 0 24px 56px -18px var(--accent-shadow);
}

.cta-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -45%;
  right: -12%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 255 255 / 0.16), transparent);
  pointer-events: none;
}

.cta-panel h2 {
  max-width: 18ch;
}

.cta-panel p {
  max-width: 34em;
  margin: 16px 0 28px;
  font-size: 1.1875rem;
}

.cta-panel :focus-visible {
  outline-color: #FFFFFF;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.site-footer {
  padding-block: 36px 56px;
  border-top: 1.5px solid var(--line);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 30rem;
}

.footer-emblem {
  flex: none;
  width: 44px;
  height: 44px;
}

.footer-brand p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 10px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ── Policy and contact pages ─────────────────────────────────────────────── */

.doc.wrap {
  width: min(44rem, 100% - 2 * var(--gutter));
  padding-block: clamp(28px, 5vw, 56px) clamp(56px, 8vw, 96px);
}

.doc h1 {
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.doc-meta {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.doc .lead {
  margin-top: 20px;
}

.doc h2 {
  margin-top: 44px;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.doc h3 {
  margin: 28px 0 0;
  font-size: 1.125rem;
  font-weight: 750;
}

.doc p {
  max-width: 40em;
  margin: 12px 0 0;
}

.doc ul {
  margin: 12px 0 0;
  padding-left: 1.25rem;
}

.doc li {
  margin-top: 8px;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
}

.contact-item {
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--raised);
  box-shadow: var(--clay-medium), var(--clay-inset);
}

.contact-item dt {
  font-weight: 750;
}

.contact-item dd {
  margin: 6px 0 0;
  color: var(--ink-2);
}

/* ── Not found ────────────────────────────────────────────────────────────── */

.notfound {
  padding-block: clamp(56px, 12vw, 160px);
}

.notfound h1 {
  font-size: clamp(2.4rem, 1.5rem + 4vw, 4rem);
}

.notfound .lead {
  max-width: 28em;
}

/* ── Motion ───────────────────────────────────────────────────────────────── */

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

  .button,
  .site-nav a {
    transition: none;
  }

  .button:hover,
  .button:active {
    transform: none;
  }
}
