:root {
  --bg: #0e1d24;
  --bg-soft: #16323d;
  --card: rgba(11, 34, 44, 0.72);
  --line: rgba(129, 201, 210, 0.28);
  --text: #ecf5f6;
  --muted: #a6c8cb;
  --brand: #ff7f3f;
  --brand-2: #ffd166;
  --ok: #7cd992;
  --warn: #ffb703;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 15% 20%, #1e4452 0%, #0c1a20 45%, #081116 100%);
  font-family: "Manrope", sans-serif;
  min-height: 100vh;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, black 25%, transparent 80%);
  pointer-events: none;
}

.global-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  background: rgba(5, 14, 18, 0.75);
}

.hidden {
  display: none !important;
}

.global-scope-bundle {
  width: min(1100px, 94vw);
  margin: 10px auto 0;
  padding: 14px;
}

.global-scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  align-items: end;
}

.global-scope-actions {
  display: flex;
  justify-content: flex-end;
}

.brand {
  color: var(--brand-2);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
  font-size: 2rem;
  text-decoration: none;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
}

.main-nav a.active,
.main-nav a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.session-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}

.session-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.session-mode-btn {
  border: 0;
  border-radius: 999px;
  padding: 4px 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.session-mode-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.session-mode-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
}

.session-mode-badge.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.admin-console .session-mode-badge.active {
  background: rgba(139, 92, 246, 0.28);
  border: 1px solid rgba(168, 139, 250, 0.38);
  color: #c4b5fd;
}

.scoring-config-box {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  background: rgba(255,255,255,0.03);
}
.scoring-config-box h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: #c4b5fd;
}

.header-account {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}

.account-link.solid {
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #0e171c;
  border-color: transparent;
  font-weight: 800;
}

.header-art-wrap {
  width: min(1100px, 94vw);
  margin: 12px auto 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.header-art {
  display: block;
  width: 100%;
  height: auto;
}

.header-art-wrap-compact {
  max-height: 160px;
}

.header-art-wrap-compact .header-art {
  height: 160px;
  object-fit: cover;
}

.context-nav {
  width: min(1100px, 94vw);
  margin: 10px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(6, 22, 28, 0.7);
}

.context-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
}

.context-nav a.active,
.context-nav a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.admin-context-nav {
  margin-top: 8px;
  background: rgba(3, 15, 20, 0.72);
}

.admin-console .admin-context-nav {
  border-color: rgba(168, 139, 250, 0.38);
  background:
    linear-gradient(135deg, rgba(111, 66, 193, 0.22), rgba(6, 22, 28, 0.84) 42%),
    rgba(3, 15, 20, 0.78);
  box-shadow: 0 10px 24px rgba(55, 20, 94, 0.18);
}

.admin-console .admin-context-nav a {
  border-color: rgba(168, 139, 250, 0.08);
}

.admin-console .admin-context-nav a.active,
.admin-console .admin-context-nav a:hover {
  border-color: rgba(196, 181, 253, 0.42);
  background: rgba(139, 92, 246, 0.16);
  box-shadow: inset 0 0 0 1px rgba(221, 214, 254, 0.08);
}

.container {
  width: min(1100px, 94vw);
  margin: 24px auto 48px;
  display: grid;
  gap: 18px;
}

.hero {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(130deg, rgba(255, 127, 63, 0.24), rgba(2, 26, 36, 0.3));
  animation: rise 600ms ease-out;
}

.stats-hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
  gap: 18px;
  align-items: start;
}

.stats-season-filter {
  justify-self: end;
  width: min(18rem, 100%);
  margin-top: 0.25rem;
}

.eyebrow {
  margin: 0;
  color: var(--brand-2);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

h1,
h2 {
  margin-top: 0;
}

h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-col {
  display: grid;
  gap: 18px;
  align-content: start;
}

.schedule-split {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-shell {
  width: min(640px, 100%);
  margin-inline: auto;
  display: grid;
  gap: 16px;
}

.auth-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.auth-tab {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
}

.auth-tab.active {
  border-color: transparent;
  color: #0e171c;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
}

.auth-panel {
  display: grid;
  gap: 10px;
}

.detail-list {
  display: grid;
  gap: 10px;
}

.profile-dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 20px;
  margin: 0;
}

.profile-dl dt {
  color: var(--brand-2);
  font-weight: 700;
  white-space: nowrap;
}

.profile-dl dd {
  margin: 0;
  color: var(--muted);
}

.dashboard-subsection {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.dashboard-subsection h3 {
  margin: 0 0 0.75rem;
}

.dashboard-detail-stack {
  display: grid;
  gap: 0.9rem;
}

.dashboard-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.dashboard-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 127, 63, 0.25);
  border-radius: 999px;
  background: rgba(255, 127, 63, 0.08);
  color: var(--text);
  font-size: 0.85rem;
}

.activity-chart {
  display: grid;
  gap: 10px;
}

/* Onboarding welcome panel */
.onboarding-panel {
  border-left: 4px solid var(--accent);
}

.onboarding-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .5rem;
}

.onboarding-header h2 {
  margin: 0;
}

.onboarding-steps {
  margin: .75rem 0 .5rem 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.onboarding-steps li {
  line-height: 1.55;
}

.onboarding-footer {
  margin-top: .75rem;
  padding-top: .5rem;
  border-top: 1px solid var(--border, #e2e8f0);
}

.onboarding-footer label {
  display: inline;
}

.onboarding-footer input[type="checkbox"] {
  display: inline;
  width: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
}

.activity-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.2fr) 3fr auto;
  gap: 10px;
  align-items: center;
}

.activity-row .name {
  color: var(--text);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-row .bar-track {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  height: 10px;
}

.activity-row .bar-fill {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.activity-row .count {
  font-size: 0.85rem;
  color: var(--brand-2);
  min-width: 28px;
  text-align: right;
}

/* ── Draft Room ─────────────────────────────────────────────── */

.draft-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.draft-players-col,
.draft-castaways-col {
  min-width: 0;
}

.draft-row-form {
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(6, 24, 31, 0.7);
}

.draft-row-header {
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--brand-2);
}

.draft-row-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  align-items: end;
}

.draft-slot-badge {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--fg);
  background: rgba(242, 175, 42, 0.12);
  border: 1px solid rgba(242, 175, 42, 0.35);
  border-radius: 6px;
  padding: 7px 10px;
  margin-bottom: 4px;
}

.draft-row-picks label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}

.draft-row-picks select {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  font-size: 0.85rem;
}

.draft-row-picks .btn {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.sort-btn {
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.sort-btn:hover {
  color: var(--brand-2);
}

.admin-view-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-view-btn.active {
  background: var(--brand-2);
  color: #05141b;
  border-color: var(--brand-2);
}

.leaderboard-torch {
  width: 58px;
  height: 58px;
  object-fit: contain;
  clip-path: inset(20% 28% 18% 28%);
  transform: scale(1.45);
  transform-origin: center;
  display: block;
  margin-inline: auto;
}

.leaderboard-grid .leaderboard-status-col {
  width: 82px;
  text-align: center;
}

.leaderboard-grid th,
.leaderboard-grid td {
  padding-top: 6px;
  padding-bottom: 6px;
}

.leaderboard-timeline-shell {
  display: grid;
  gap: 16px;
}

.leaderboard-track-wrap {
  overflow-x: auto;
}

.leaderboard-track-grid {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
}

.leaderboard-track-grid th,
.leaderboard-track-grid td {
  border-bottom: 1px solid rgba(165, 212, 218, 0.12);
  vertical-align: top;
}

.leaderboard-track-grid thead th {
  position: sticky;
  top: 0;
  background: rgba(6, 24, 31, 0.96);
  z-index: 1;
  text-align: center;
  font-size: 0.85rem;
}

.leaderboard-track-player {
  min-width: 115px;
  text-align: left;
  padding: 12px;
  background: rgba(6, 24, 31, 0.86);
}

.leaderboard-track-player span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.leaderboard-track-cell {
  min-width: 82px;
  padding: 8px 6px;
  text-align: center;
}

.leaderboard-track-cell.future {
  opacity: 0.45;
}

.track-pill {
  display: inline-block;
  margin: 2px;
  padding: 4px 6px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.track-pill.activity {
  background: rgba(46, 196, 182, 0.2);
  color: #9ff3e9;
  border: 1px solid rgba(46, 196, 182, 0.35);
}

.track-pill.prediction {
  background: rgba(255, 209, 102, 0.18);
  color: #ffe29a;
  border: 1px solid rgba(255, 209, 102, 0.32);
}

.track-pill.loss {
  background: rgba(255, 122, 89, 0.18);
  color: #ffb09b;
  border: 1px solid rgba(255, 122, 89, 0.34);
  max-width: 78px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.track-empty {
  color: rgba(165, 212, 218, 0.45);
}

.leaderboard-track-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

@media (max-width: 720px) {
  .leaderboard-track-player {
    min-width: 140px;
  }
}

@media (max-width: 800px) {
  .draft-columns {
    grid-template-columns: 1fr;
  }
}

.detail-row {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(6, 24, 31, 0.7);
}

.detail-row strong {
  color: var(--brand-2);
}

.detail-row span {
  color: var(--muted);
}

.detail-subrow {
  display: grid;
  gap: 2px;
  margin-top: 4px;
  padding: 4px 0 2px;
  border-left: 2px solid rgba(129, 201, 210, 0.35);
  padding-left: 10px;
}

.detail-subrow strong {
  color: rgba(236, 245, 246, 0.92);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.detail-subrow span {
  color: rgba(166, 200, 203, 0.92);
  font-size: 0.85rem;
}

.form-grid {
  display: grid;
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

label:has(input[type="checkbox"]) input[type="checkbox"] {
  width: auto;
  margin: 0;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  color: var(--text);
  border: 1px solid rgba(165, 212, 218, 0.35);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(10, 24, 31, 0.85);
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  color: #0e171c;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
  cursor: pointer;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn.btn-sm {
  padding: 0.2em 0.5em;
  font-size: 0.75rem;
}

.btn.btn-danger {
  color: #e03131;
  border-color: #e03131;
}

#my-weekly-table td:first-child,
#my-weekly-table th:first-child {
  white-space: nowrap;
  padding-right: 1.5em;
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.muted {
  color: var(--muted);
}

.muted a {
  color: var(--muted);
  text-decoration: underline;
}

.muted a:hover {
  color: var(--brand-2);
}

.notice {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.notice-warning {
  background: rgba(255, 127, 63, 0.14);
  border: 1px solid rgba(255, 127, 63, 0.55);
  color: #ffd9c2;
  font-weight: 600;
}

.site-settings-block {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(6, 24, 31, 0.45);
}

.site-settings-block-secondary {
  border-top: 3px solid rgba(255, 127, 63, 0.45);
}

.site-settings-block-head {
  display: grid;
  gap: 0.35rem;
}

.site-settings-block-head h3 {
  margin: 0;
}

.site-settings-block-head p {
  margin: 0;
}

.app-dialog {
  width: min(28rem, calc(100vw - 2rem));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem;
  background: rgba(6, 24, 31, 0.96);
  color: var(--text);
}

.app-dialog::backdrop {
  background: rgba(4, 10, 16, 0.65);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.scope-off-current {
  border-color: rgba(186, 104, 255, 0.9);
  box-shadow: 0 0 0 2px rgba(186, 104, 255, 0.25), 0 0 20px rgba(121, 44, 199, 0.28);
}

.scope-off-current select {
  border-color: rgba(186, 104, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(186, 104, 255, 0.35) inset;
}

.scope-reset-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.scope-reset-row p {
  margin: 0;
}

.table-wrap {
  overflow: visible;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: rgba(6, 24, 31, 0.7);
}

.stat-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.stat-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.25rem;
}

ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  font-size: 0.9rem;
  padding: 8px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

th {
  color: var(--brand-2);
}

td a {
  color: var(--brand-2);
  text-decoration: none;
  font-weight: 500;
}

td a:hover {
  color: var(--accent, #f59e0b);
  text-decoration: underline;
}

.highlight-type {
  font-weight: 600;
  vertical-align: top;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
}

.detail-cell {
  font-size: 0.8rem;
  color: var(--muted, #888);
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Activity detail tooltip (Score Details page) */
.activity-detail {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, 0.28);
  background: rgba(255, 209, 102, 0.08);
  color: var(--text);
  cursor: help;
}

.activity-detail:focus-visible {
  outline: 2px solid rgba(255, 209, 102, 0.55);
  outline-offset: 2px;
}

.activity-detail-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  display: none;
  min-width: 220px;
  max-width: min(320px, 70vw);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 14, 18, 0.96);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.7;
  text-align: left;
  z-index: 5;
}

.activity-detail-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border-width: 7px 6px 0;
  border-style: solid;
  border-color: rgba(5, 14, 18, 0.96) transparent transparent;
}

.activity-detail:hover .activity-detail-tooltip,
.activity-detail:focus-visible .activity-detail-tooltip {
  display: block;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  border: 1px solid transparent;
}

.badge-current {
  color: #0e171c;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
}

.badge-role-manager {
  color: #ffd7b8;
  border-color: rgba(255, 127, 63, 0.45);
  background: rgba(255, 127, 63, 0.18);
}

.badge-role-player {
  color: #caeff2;
  border-color: rgba(129, 201, 210, 0.5);
  background: rgba(19, 60, 71, 0.7);
}

.badge-status-active {
  color: #dcffe8;
  border-color: rgba(124, 217, 146, 0.5);
  background: rgba(32, 87, 48, 0.65);
}

.badge-status-inactive {
  color: #ffe4be;
  border-color: rgba(255, 183, 3, 0.45);
  background: rgba(92, 60, 8, 0.6);
}

.badge-neutral {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-link {
  display: inline-block;
  font-weight: 700;
  color: var(--brand-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dashboard-link:hover {
  color: var(--brand);
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: 300px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(11, 34, 44, 0.95);
  color: var(--text);
  opacity: 0;
  transform: translateY(12px);
  transition: all 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  width: min(1100px, 94vw);
  margin: 18px auto 28px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(6, 24, 31, 0.72);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  border-bottom-color: var(--brand-2);
}

.external-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--border, #444);
  transition: all 0.15s ease;
}

.external-link:hover {
  color: var(--brand-2);
  border-bottom-color: var(--brand-2);
}

.legal-content {
  display: grid;
  gap: 14px;
}

.legal-content h2 {
  margin-bottom: 4px;
}

.legal-content p {
  margin: 0;
  color: var(--muted);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }

  .stats-hero-head {
    grid-template-columns: 1fr;
  }

  .stats-season-filter {
    justify-self: stretch;
    width: 100%;
  }

  .schedule-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-art-wrap {
    width: 94vw;
    border-radius: 10px;
  }

  .header-art-wrap-compact {
    max-height: 120px;
  }

  .header-art-wrap-compact .header-art {
    height: 120px;
  }

  .global-header {
    flex-wrap: wrap;
  }

  .site-footer {
    width: 94vw;
    padding: 12px;
  }
}

@media (max-width: 620px) {
  .schedule-split {
    grid-template-columns: 1fr;
  }
}
