/* Sideline's site. The tokens are the app's own, from
   Packages/LeagueKit/Sources/LeagueKit/Design/Palette.swift, LeagueHue.swift
   and PositionColor.swift, so the page, the widgets drawn on it and the
   screenshots beside them agree. System fonts only and nothing loaded from
   another host: a site for an app with no tracking does not phone a font CDN. */

:root {
  color-scheme: light;
  --bg: #f2f2f4;
  --surface: #ffffff;
  --card: #ffffff;
  --raised: #f7f7f9;
  --ink: #0b0c0e;
  --ink70: rgba(11, 12, 14, 0.7);
  --ink55: rgba(11, 12, 14, 0.55);
  --ink45: rgba(11, 12, 14, 0.45);
  --ink30: rgba(11, 12, 14, 0.3);
  --muted: #585c63;
  --faint: #666a72;
  --hairline: rgba(0, 0, 0, 0.07);
  --hairline-strong: rgba(0, 0, 0, 0.1);
  --accent: #00a159;
  --accent-text: #007840;
  --accent-soft: rgba(0, 161, 89, 0.12);
  --on-accent: #ffffff;
  --danger: #e03a1e;
  --track: rgba(0, 0, 0, 0.08);
  /* League hues, on light. */
  --blue: #2f5fd9;
  --amber: #b0620c;
  --violet: #7442d6;
  --pink: #c93a73;
  --teal: #14847c;
  --lime: #5b8226;
  /* Position colours, which only ever land on a slot label. */
  --qb: #6b5730;
  --rb: #3f5c80;
  --wash-a: rgba(47, 95, 217, 0.1);
  --wash-b: rgba(0, 161, 89, 0.1);
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.02), 0 24px 48px -24px rgba(11, 12, 14, 0.28);
  --phone: 0 30px 60px -24px rgba(11, 12, 14, 0.38), 0 12px 24px -12px rgba(11, 12, 14, 0.18);
  --max: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b0c0e;
    --surface: #111316;
    --card: #16181c;
    --raised: #1f2228;
    --ink: #f5f6f7;
    --ink70: rgba(245, 246, 247, 0.7);
    --ink55: rgba(245, 246, 247, 0.55);
    --ink45: rgba(245, 246, 247, 0.45);
    --ink30: rgba(245, 246, 247, 0.3);
    --muted: rgba(245, 246, 247, 0.7);
    --faint: rgba(245, 246, 247, 0.52);
    --hairline: rgba(255, 255, 255, 0.06);
    --hairline-strong: rgba(255, 255, 255, 0.1);
    --accent: #00e28a;
    --accent-text: #00e28a;
    --accent-soft: rgba(0, 226, 138, 0.1);
    --on-accent: #0b0c0e;
    --danger: #ff5238;
    --track: rgba(255, 255, 255, 0.1);
    --blue: #5b8cff;
    --amber: #ff9f45;
    --violet: #b07bff;
    --pink: #ff6fa5;
    --teal: #4ecdc4;
    --lime: #9ccb5a;
    --qb: #d4b584;
    --rb: #8fb0d8;
    --wash-a: rgba(91, 140, 255, 0.16);
    --wash-b: rgba(0, 226, 138, 0.1);
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 24px 48px -24px rgba(0, 0, 0, 0.8);
    --phone: 0 30px 60px -24px rgba(0, 0, 0, 0.85), 0 12px 24px -12px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* The footer sits at the bottom of the window even when a page is short. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body > main { flex: 1 0 auto; width: 100%; }

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

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

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

h1, h2 { font-family: var(--display); }

h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 2.5rem;
  font-weight: 780;
  text-wrap: balance;
}

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--hairline);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 3.75rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.02rem; letter-spacing: -0.015em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 0 0 1px var(--hairline-strong); }
.nav-links { display: flex; align-items: center; gap: 0.25rem; font-size: 0.92rem; font-weight: 500; }
.nav-links a { color: var(--muted); text-decoration: none; padding: 0.4rem 0.75rem; border-radius: 999px; }
.nav-links a:hover { color: var(--ink); background: var(--hairline); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--hairline); }

/* Hero */

.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.hero .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 27rem), 1fr));
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
  padding: 0.3rem 0.75rem 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-soft); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

h1 {
  font-size: clamp(2.75rem, 6.4vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 0 0 1.4rem;
  font-weight: 800;
  text-wrap: balance;
}
h1 .accent { color: var(--accent-text); }

.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.5; color: var(--muted); max-width: 30rem; margin: 0 0 2.25rem; text-wrap: pretty; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.store {
  display: inline-flex;
  flex-direction: column;
  padding: 0.62rem 1.35rem 0.68rem;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1.2;
}
.store small { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.01em; opacity: 0.72; }
.price { display: flex; flex-direction: column; gap: 0.1rem; line-height: 1.3; }
.price strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.price span { font-size: 0.88rem; color: var(--faint); }

.works {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 2.25rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.88rem;
  color: var(--faint);
}
.works ul { display: flex; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.works li { padding: 0.2rem 0.65rem; border-radius: 999px; border: 1px solid var(--hairline-strong); color: var(--ink); font-weight: 600; }

/* The stage the hero's two widgets stand on: a Home Screen, abstracted. */
.stage {
  position: relative;
  border-radius: 32px;
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  background:
    radial-gradient(120% 80% at 10% 0%, var(--wash-a), transparent 60%),
    radial-gradient(90% 70% at 100% 100%, var(--wash-b), transparent 60%),
    var(--surface);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.slot { width: 100%; max-width: 28rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.slot-label { font-size: 0.74rem; font-weight: 550; color: var(--faint); }

/* Widgets, drawn the way the app draws them. Each part below names the
   SwiftUI view it stands for, so a change to one is findable from the other. */

.widget {
  position: relative;
  width: 100%;
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--hairline);
  font-variant-numeric: tabular-nums;
}

/* LeagueHue.edge: a 3pt edge across the top, the hue fading to its own wash. */
.widget .edge {
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hue), color-mix(in srgb, var(--hue) 12%, transparent));
}

.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--hue); }

.live-badge { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--accent-text); }
.live-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.up { color: var(--accent-text); }
.down { color: var(--danger); }

/* OddsBar: one fill on an inert track, coloured by the odds rather than the
   score (ADR 0015), with a 1pt reference tick at 50% on a widget. */
.odds { display: block; position: relative; height: 7px; border-radius: 4px; background: var(--track); overflow: hidden; }
/* The fill is drawn over the tick, as the ZStack orders them. */
.odds i { position: relative; z-index: 1; display: block; height: 100%; border-radius: inherit; background: currentColor; }
.odds.midline::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--ink30); }

/* MatchupWidgetBoard, the medium face. */
.matchup { padding: 1rem 1.15rem 1.05rem; }
.m-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.45rem; }
.m-league { display: flex; align-items: center; gap: 0.45rem; min-width: 0; font-weight: 650; font-size: 1rem; letter-spacing: -0.01em; }
.m-league span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-badge { display: flex; align-items: center; gap: 0.45rem; font-size: 0.74rem; font-weight: 650; letter-spacing: 0.08em; white-space: nowrap; }
.m-badge .week { color: var(--ink45); }
.m-teams, .m-scores, .m-leaders, .m-notes { display: flex; justify-content: space-between; gap: 0.5rem; }
.m-teams { font-size: 0.9rem; font-weight: 550; color: var(--ink55); }
.m-teams small { font-size: inherit; font-weight: 500; color: var(--ink45); }
.m-scores { align-items: baseline; margin: 0.05rem 0 0.15rem; }
.m-scores > span { display: flex; align-items: baseline; gap: 0.45rem; min-width: 0; }
.score { font-size: clamp(2.1rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.score.theirs { color: var(--ink55); }
.proj { font-size: 0.85rem; font-weight: 550; color: var(--ink45); }
.m-leaders { font-size: 0.86rem; color: var(--ink70); }
.m-leaders > span { display: flex; align-items: baseline; gap: 0.35rem; white-space: nowrap; }
.m-leaders b { color: var(--ink); }
.pos { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; }
.pos.rb { color: var(--rb); }
.pos.qb { color: var(--qb); }
.matchup .odds { margin: 0.7rem 0 0.5rem; }
.m-notes { font-size: 0.88rem; font-weight: 650; }

/* AllLeaguesWidgetView, the medium card: the week in a gutter, then a row
   per league with its hue running to the card's edge. */
.leagues { display: grid; grid-template-columns: 3.4rem 1fr; }
.gutter {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid var(--hairline);
  padding: 0.75rem 0 0.8rem;
  line-height: 1.15;
  text-align: center;
}
.gutter .wk { font-size: 0.66rem; font-weight: 650; letter-spacing: 0.1em; color: var(--ink45); }
.gutter .n { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.gutter .record { font-size: 0.8rem; font-weight: 700; margin-top: 0.3rem; }
.gutter .trailing { margin-top: auto; padding-top: 0.5rem; display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.72rem; color: var(--ink45); }

.rows { display: flex; flex-direction: column; }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.2rem 0.75rem;
  padding: 0.55rem 0.85rem 0.55rem 0.7rem;
  border-left: 3px solid var(--hue);
  background: linear-gradient(90deg, color-mix(in srgb, var(--hue) 12%, transparent), transparent 60%);
}
.row + .row { border-top: 1px solid var(--hairline); }
.row-name { display: flex; align-items: center; gap: 0.4rem; min-width: 0; font-size: 0.86rem; font-weight: 600; }
.row-name .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.urgency { flex: none; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.row-scores { display: flex; justify-content: flex-end; gap: 0.6rem; font-size: 0.86rem; font-weight: 700; }
.row-scores .theirs { color: var(--ink45); font-weight: 550; min-width: 2.6rem; text-align: right; }
.row .odds { height: 4px; margin-left: calc(5px + 0.4rem); }
.row-notes { display: flex; justify-content: flex-end; gap: 0.6rem; font-size: 0.74rem; }
.row-notes .left { color: var(--ink45); }
.row-notes .win { font-weight: 650; }

/* Gallery */

.tour { padding: clamp(3.5rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--hairline); }
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(10.5rem, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem var(--gutter) 1.5rem;
  margin: 0 calc(-1 * var(--gutter));
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; scroll-snap-align: center; display: flex; flex-direction: column; gap: 1rem; }
.gallery figcaption { text-align: center; font-weight: 600; font-size: 0.95rem; }

.phone {
  aspect-ratio: 1320 / 2868;
  border-radius: 13% / 6%;
  overflow: hidden;
  background: #000;
  box-shadow: var(--phone), 0 0 0 1px var(--hairline-strong);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }

/* Feature cards */

.features { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.cards { display: flex; flex-direction: column; gap: 1rem; }
.cards-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.card {
  flex: 1 1 16rem;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: clamp(1.4rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.card.lead { flex: 1.35 1 22rem; }
.card.half { flex: 1 1 18rem; }
.card h3 { font-size: 1.15rem; letter-spacing: -0.015em; margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; text-wrap: pretty; }
.demo { flex: 1; display: flex; flex-direction: column; justify-content: center; margin-bottom: 1.25rem; font-variant-numeric: tabular-nums; }

/* Today's board: the provider's own number, named. */
.board { padding: 1.25rem 1.35rem; border-radius: 16px; background: var(--raised); border: 1px solid var(--hairline); }
.board .m-teams { font-size: 0.82rem; }
.board .score { font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.1; }
.board .odds { margin: 0.75rem 0 0.5rem; }
.board .m-notes { font-size: 0.85rem; }
.board .m-notes .note { color: var(--ink45); font-weight: 500; }

/* The small All leagues card: a line per league, one word at its edge. */
.mini { padding: 0.35rem 0; border-radius: 20px; background: var(--raised); border: 1px solid var(--hairline); overflow: hidden; }
.mini-head { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.35rem 0.85rem 0.45rem; font-size: 0.78rem; font-weight: 650; }
.mini-head .wk { color: var(--ink45); letter-spacing: 0.04em; }
.mini-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem 0.55rem 0.7rem;
  border-left: 3px solid var(--hue);
  border-top: 1px solid var(--hairline);
  background: linear-gradient(90deg, color-mix(in srgb, var(--hue) 12%, transparent), transparent 60%);
  font-size: 0.88rem;
  font-weight: 600;
}
.mini-row .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-row b { margin-left: auto; font-weight: 650; white-space: nowrap; }

.chips { flex-direction: row; flex-wrap: wrap; align-content: center; gap: 0.45rem; list-style: none; padding: 0; }
.chips li { font-size: 0.84rem; font-weight: 600; padding: 0.4rem 0.8rem; border-radius: 999px; background: var(--raised); border: 1px solid var(--hairline); }

/* Two small Matchup widgets, each pinned to its own league. */
.pins { flex-direction: row; align-items: center; gap: 0.6rem; }
.pin {
  position: relative;
  flex: 1;
  max-width: 8.5rem;
  aspect-ratio: 1;
  border-radius: 20px;
  background: var(--raised);
  border: 1px solid var(--hairline);
  overflow: hidden;
  padding: 0.7rem 0.75rem 0.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pin .edge { position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--hue), color-mix(in srgb, var(--hue) 12%, transparent)); }
.pin-head { display: flex; align-items: center; justify-content: space-between; gap: 0.3rem; font-size: 0.6rem; font-weight: 650; letter-spacing: 0.06em; }
.pin-head .wk { display: flex; align-items: center; gap: 0.3rem; color: var(--ink45); }
.pin-head .dot { width: 6px; height: 6px; }
.pin-head .live-badge::before { width: 5px; height: 5px; }
.pin-scores { display: flex; align-items: baseline; justify-content: space-between; gap: 0.3rem; }
.pin-scores .score { font-size: 1.35rem; letter-spacing: -0.03em; }
.pin-scores .theirs { font-size: 1.05rem; }
.pin-body { display: block; }
.pin .odds { height: 5px; }
.pin-notes { display: flex; justify-content: space-between; font-size: 0.66rem; font-weight: 650; margin-top: 0.3rem; }

.swatches { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.swatches i { width: 30px; height: 30px; border-radius: 50%; background: var(--hue); }
.swatches i:first-child { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--hue); }

/* Privacy band */

.privacy-band { padding: 0 0 clamp(3.5rem, 7vw, 5.5rem); }
.band {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 2rem 3rem;
  align-items: center;
}
.band h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); margin: 0 0 1rem; }
.band a { font-weight: 600; font-size: 0.98rem; }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; align-items: center; gap: 0.9rem; padding: 1rem 0; font-size: 1.08rem; font-weight: 600; }
.facts li + li { border-top: 1px solid var(--hairline); }
.facts li::before {
  content: "";
  flex: none;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a159' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 0.9rem no-repeat;
}

/* Footer */

footer.site { border-top: 1px solid var(--hairline); padding: 2rem 0 2.75rem; color: var(--faint); font-size: 0.86rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
footer.site .note { display: flex; align-items: center; gap: 0.6rem; }
footer.site .note img { width: 20px; height: 20px; border-radius: 5px; }
footer.site nav { display: flex; gap: 1.25rem; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--ink); }

/* Document pages: support and privacy */

.doc { max-width: 46rem; margin: 0 auto; padding: clamp(3rem, 7vw, 4.5rem) var(--gutter) 4.5rem; }
.doc h1 { font-size: clamp(2.4rem, 5vw, 3.25rem); line-height: 1; margin: 0 0 2rem; }
.doc h2 { font-size: 1.3rem; letter-spacing: -0.02em; margin: 2rem 0 0.6rem; font-weight: 700; font-family: inherit; }
.doc p { margin: 0; text-wrap: pretty; }
.doc .updated { margin: -1rem 0 2rem; font-size: 0.85rem; color: var(--faint); }

.callout { background: var(--accent-soft); border-radius: 24px; padding: 1.5rem 1.6rem; margin: 0 0 1rem; }
.callout h2 { margin: 0 0 0.6rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--accent-text); }
.callout p { font-size: 1.12rem; line-height: 1.55; font-weight: 500; }

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 1.5rem 1.6rem;
  margin: 0 0 3rem;
  box-shadow: var(--shadow);
}
.contact div { display: flex; flex-direction: column; gap: 0.3rem; }
.contact h2 { margin: 0; font-size: 1.2rem; letter-spacing: -0.015em; }
.contact p { color: var(--muted); font-size: 0.95rem; }
.button {
  display: inline-block;
  padding: 0.75rem 1.2rem;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover { filter: brightness(1.06); }

.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  font-weight: 620;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--raised);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -0.35rem 3rem 1.3rem 0; color: var(--muted); }

/* Narrow screens */

@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav-links a { padding: 0.4rem 0.55rem; }
  .gallery { grid-auto-columns: 12.5rem; }
  .stage { padding: 1rem 0.75rem; border-radius: 28px; }
  .matchup { padding: 0.9rem 0.95rem 0.95rem; }
  .leagues { grid-template-columns: 2.6rem 1fr; }
  .row { padding: 0.5rem 0.65rem 0.5rem 0.55rem; column-gap: 0.5rem; }
  .row-scores { gap: 0.45rem; }
  .m-leaders { font-size: 0.8rem; }
}

@media (max-width: 340px) {
  /* The opponent's top player goes before anything else would truncate. */
  .m-leaders > span:last-child { display: none; }
  .m-leaders { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eyebrow::before { animation: none; }
  .faq summary::after { transition: none; }
}
