:root {
  color: #241719;
  background: #f7f1e9;
  --wine: #7e1424;
  --wine-deep: #350912;
  --gold: #d7ac5a;
  --ink: #241719;
  --line: #eadcc9;
  --muted: #715f60;
}
body {
  color: var(--ink);
  background: radial-gradient(circle at 85% 0%, #f3dddb 0, transparent 32rem),
    linear-gradient(180deg, #faf5ed, #f5eee5 50%, #fbf8f2);
}
.shell { max-width: 1420px; padding-top: 24px; }
h1, h2, .section-title h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.eyebrow, .overview small { color: #9e2632; }
.hero, .portal-header {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 83% 22%, #9b1a2b 0, transparent 28rem),
    linear-gradient(120deg, #1b0b0e, #480c17 60%, #23090e);
  border: 1px solid #b78642;
  box-shadow: 0 20px 42px rgba(56, 8, 18, .18), inset 0 1px rgba(255, 228, 173, .2);
}
.hero::after, .portal-header::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(237, 192, 108, .24);
  border-radius: inherit;
  pointer-events: none;
}
.hero { padding: 38px 42px; }
.hero .eyebrow, .portal-header .eyebrow { color: #e8c77e; }
.hero h1 { color: #fff8eb; text-shadow: 0 2px 18px rgba(0, 0, 0, .28); }
.hero p:not(.eyebrow), .portal-header p { color: #f1dcd7; }
.league-logo, .portal-header img { filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .35)); }
.tag {
  background: rgba(235, 196, 119, .13);
  border: 1px solid rgba(235, 196, 119, .52);
  color: #f9e9c8;
}
.cta {
  background: linear-gradient(135deg, #f7db9b, #d8a64b);
  border: 1px solid #ffebb8;
  box-shadow: 0 7px 22px rgba(0, 0, 0, .22);
  color: #371114;
}
.cta:hover { background: #ffe8b4; }
.overview div, .panel, .notice {
  background: rgba(255, 252, 247, .96);
  border-color: var(--line);
  box-shadow: 0 8px 26px rgba(76, 39, 25, .055);
}
.overview div { border-top: 3px solid #b68542; }
.notice { border-left: 4px solid var(--wine); color: #654d4e; }
.notice strong { color: #651321; }
.section-title { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.section-title span, .small, .muted, .fixture-card small, .game-control p { color: var(--muted); }
.fixture-card, .roster-card {
  background: #fffcf7;
  border-color: #e9dbc8;
  box-shadow: 0 3px 10px rgba(79, 34, 24, .035);
}
.fixture-card header strong, .roster-card strong { color: #55101b; }
.fixture-games span { background: #faeee7; color: #5f1d27; }
.fixture-games span small, .roster-card span { color: #74565a; }
.table-wrap { scrollbar-color: #bd8e61 #f6eee4; }
table th, table td { border-bottom-color: #eee2d5; }
table thead th { color: #8c303b; }
table tbody tr:nth-child(odd), .player-table tbody tr:nth-child(odd) { background: #fcf7f1; }
table td:last-child, .points, .result-badge { color: #8e1828; }
.private-link a { color: #871b2a; font-weight: 700; }
.portal-header a { color: #f4d992; }
#login p { color: var(--muted); }
select, input { border-color: #d4b9ad; color: var(--ink); background: #fffdfa; }
select:focus, input:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid #dca64d;
  outline-offset: 2px;
}
button:not(.cta) { background: #8a1b2b; color: #fff8ee; }
button:not(.cta):hover { background: #a92132; }
#message:not(:empty) { background: #fff0e8; border-color: #e1b9a3; color: #5e1722; }
.game-control { border-top-color: #eadcc9; }
.hero-actions { display: grid; gap: 12px; min-width: 220px; text-align: center; }
.hero-secondary { color: #f4d992; font-weight: 700; text-underline-offset: 4px; }
.league-at-glance {
  margin: 18px 0;
  padding: 22px 24px;
  background: rgba(255, 252, 247, .96);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 26px rgba(76, 39, 25, .055);
}
.at-glance-heading h2 { margin: 0 0 16px; font-size: 1.55rem; }
.format-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.format-games li { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 12px; background: #fbf2e7; border: 1px solid #eadcc9; border-radius: 12px; }
.format-games strong { font-size: .98rem; line-height: 1.25; }
.format-games .game-summary { display: grid; gap: 3px; min-width: 0; }
.format-games .game-summary small { color: #5e3740; font-size: .78rem; font-weight: 700; line-height: 1.35; }
.game-number { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #8a1b2b; color: white; font-size: .82rem; font-weight: 900; }
.points-brief { display: flex; gap: 10px; align-items: baseline; margin: 15px 0 0; font-size: .91rem; }
.points-brief strong { color: #8a1b2b; }
.format-details { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.format-details summary { width: fit-content; color: #7e1424; font-weight: 800; cursor: pointer; }
.format-details p { max-width: 75ch; margin: 12px 0 0; color: var(--muted); line-height: 1.5; }
.stats-explainer { margin: 14px 0; }
.stats-explainer summary { width: fit-content; color: #7e1424; font-weight: 800; cursor: pointer; }
.stats-explainer .small { max-width: 75ch; margin: 10px 0 0; line-height: 1.5; }
.table-swipe-hint { display: none; }
#fixtures-section { scroll-margin-top: 12px; }
@media (max-width: 700px) {
  .hero { padding: 28px 24px; }
  .hero-brand { display: flex; align-items: center; gap: 18px; }
  .league-logo { width: 118px; margin: 0; }
  .hero h1 { font-size: clamp(2.25rem, 7vw, 3.4rem); }
  .portal-header { padding: 18px 20px; }
  .format-games { grid-template-columns: 1fr; gap: 7px; }
  .table-swipe-hint { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 7px 0; padding: 8px 11px; border-radius: 8px; background: #fff0cf; color: #5a2916; font-size: .83rem; font-weight: 800; }
  .table-swipe-hint span { font-size: 1.35rem; line-height: 1; }
  .player-records .table-wrap { border-right: 4px solid #d7a849; }
  .player-records .table-wrap:focus-visible { outline: 3px solid #dca64d; outline-offset: 2px; }
}
@media (max-width: 470px) {
  .hero { padding: 18px; gap: 14px; }
  .hero-brand { display: flex; align-items: center; gap: 12px; }
  .league-logo { width: 76px; margin: 0; }
  .hero h1 { font-size: clamp(1.65rem, 7vw, 2.15rem); line-height: 1.05; margin-bottom: 5px; }
  .hero p:not(.eyebrow) { font-size: .84rem; margin: 0; }
  .hero .eyebrow { font-size: .58rem; margin-bottom: 5px; }
  .hero-actions { width: 100%; gap: 9px; }
  .cta { display: block; text-align: center; width: 100%; }
  .hero-actions .cta { padding: 10px 14px; }
  .hero-secondary { font-size: .86rem; }
  .league-at-glance { margin: 12px 0; padding: 16px; border-radius: 16px; }
  .at-glance-heading h2 { font-size: 1.35rem; margin-bottom: 12px; }
  .format-games li { padding: 9px 10px; }
  .points-brief { display: block; margin-top: 12px; font-size: .84rem; line-height: 1.35; }
  .points-brief strong { margin-right: 6px; }
  .format-details { margin-top: 10px; padding-top: 10px; font-size: .86rem; }
}
