@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;1,700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --maroon: #8C1D40;
  --gold: #FFC627;
  --maroon-dark: #6b1530;
  --maroon-light: #a82050;
  --gold-dark: #e0a800;
  --bg: #f7f4ef;
  --surface: #ffffff;
  --text: #1a1108;
  --text-muted: #6b5f50;
  --border: #e4ddd4;
  --asu-tint: rgba(140, 29, 64, 0.07);
  --ink-accent: var(--maroon);
  --gold-tint: rgba(255, 198, 39, 0.07);
  --sidebar-width: 260px;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* Dark theme: same maroon/gold brand, warm dark neutrals. color-scheme flips
   UA-rendered controls (scrollbars, date pickers) without per-control rules. */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #15110d;
  --surface: #211b15;
  --text: #f0e9e0;
  --text-muted: #a3968a;
  --border: #3a322a;
  --asu-tint: rgba(255, 198, 39, 0.10);
  --ink-accent: var(--gold);
  --gold-tint: rgba(255, 198, 39, 0.12);
}

/* FullCalendar + Leaflet ship light defaults outside our variables */
[data-theme="dark"] .fc {
  --fc-page-bg-color: var(--surface);
  --fc-border-color: var(--border);
  --fc-neutral-bg-color: var(--bg);
  --fc-today-bg-color: rgba(255, 198, 39, 0.12);
  --fc-list-event-hover-bg-color: var(--bg);
}

[data-theme="dark"] .leaflet-popup-content-wrapper,
[data-theme="dark"] .leaflet-popup-tip {
  background: var(--surface);
  color: var(--text);
}

[data-theme="dark"] .leaflet-tile { filter: brightness(0.78) contrast(1.05); }

/* Dark-colored team logos (TAMU maroon etc.) disappear on dark cards */
[data-theme="dark"] .list-event-logo,
[data-theme="dark"] .live-card-logo,
[data-theme="dark"] .gm-team-logo {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  padding: 2px;
}

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

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
:focus:not(:focus-visible) { outline: none; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
header {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: white;
  /* Inset padding fills behind the notch/Dynamic Island; content sits below it */
  padding-top: env(safe-area-inset-top);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  /* Safety net: if some viewport/font combo still can't fit the controls,
     degrade to a slightly tight header — never a page-wide sideways scroll. */
  overflow-x: clip;
}

/* Fixed-height content zone — always exactly 56px, centered regardless of inset */
.header-inner {
  height: 56px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo-icon { width: 32px; height: 32px; border-radius: 7px; border: 1.5px solid rgba(255,198,39,0.35); background: rgba(255,198,39,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.logo-icon img { width: 26px; height: 26px; object-fit: contain; }
.logo-icon-text { font-family: var(--font-display); font-size: 1rem; font-weight: 800; color: var(--gold); }
.logo-wordmark { display: flex; flex-direction: column; line-height: 1; gap: 1px; }
.logo-asu { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--gold); letter-spacing: 0.04em; }
.logo-text { font-family: var(--font-body); font-size: 0.6rem; font-weight: 500; color: rgba(255,255,255,0.55); letter-spacing: 0.14em; text-transform: uppercase; }

.header-controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.view-toggle {
  display: flex;
  background: rgba(0,0,0,0.22);
  border-radius: 7px;
  overflow: hidden;
  padding: 3px;
  gap: 2px;
}

.view-toggle button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font-body);
  transition: background 0.15s, color 0.15s;
  border-radius: 5px;
}

.view-toggle button.active {
  background: var(--gold);
  color: var(--maroon-dark);
  font-weight: 600;
}

.btn-refresh {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}

.btn-refresh:hover { background: rgba(255,255,255,0.22); color: white; }
.btn-refresh:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-theme {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s;
  line-height: 1;
}

.btn-theme:hover { background: rgba(255,255,255,0.22); }

.btn-filters-toggle {
  display: none;
  background: var(--maroon-dark);
  color: rgba(255,255,255,0.85);
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-filters-toggle.active {
  background: var(--gold);
  color: var(--maroon-dark);
}

/* Filters don't apply to the Live tab — no sidebar there (set in setView) */
body.live-active aside { display: none; }
body.live-active .btn-filters-toggle { display: none; }

/* ── Display font on labels, headers, scores, and action elements ── */
.filter-group label.group-label,
.list-date-header,
.live-section-header,
.live-card-sport,
.live-next-label,
.live-next-title,
.live-next-countdown,
.score-badge,
.badge,
.live-badge-sm,
.live-badge-modal,
.live-badge-pill,
.live-card-score,
.live-card-vs,
.sport-chip,
.bracket-round-label,
.gm-headline,
.gm-score,
.gm-vs,
.gm-tab,
.fc .fc-toolbar-title,
.record-widget-label,
.record-widget-overall,
.record-sport-wl,
.modal-title,
.modal-sport { font-family: var(--font-display); }

.game-type-toggles button,
.btn-clear-filters,
.btn-subscribe,
.notify-btn { font-family: var(--font-body); }

/* ── Layout ── */
.app-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ── Sidebar ── */
aside {
  width: var(--sidebar-width);
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  flex-shrink: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-group label.group-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.filter-group select,
.filter-group input[type="date"] {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.85rem;
  background: var(--bg);
  color: var(--text);
  margin-bottom: 6px;
}

.sport-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 280px;
  overflow-y: auto;
}

.sport-list label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.84rem;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 6px;
  transition: background 0.12s;
  color: var(--text-muted);
}

.sport-list label input[type="checkbox"] { display: none; }
.sport-color-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; transition: transform 0.15s; }
.sport-list label:hover { background: var(--bg); color: var(--text); }
.sport-list label:hover .sport-color-dot { transform: scale(1.2); }
.sport-list label.sport-active { background: var(--asu-tint); color: var(--ink-accent); font-weight: 600; }

.sport-name { flex: 1; }

/* "My Sports" favorite star — quiet until favorited or hovered */
.sport-fav {
  background: none;
  border: none;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
  color: var(--border);
  opacity: 0;
  transition: color 0.15s, opacity 0.15s;
}

.sport-list label:hover .sport-fav { opacity: 1; }
.sport-fav.fav-on { opacity: 1; color: var(--gold-dark); }
.sport-fav:hover { color: var(--gold-dark); }

@media (hover: none) {
  .sport-fav { opacity: 0.6; } /* no hover on touch — keep stars discoverable */
  .sport-fav.fav-on { opacity: 1; }
}

.game-type-toggles {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.game-type-toggles button {
  flex: 1;
  min-width: 60px;
  padding: 5px 8px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  background: var(--bg);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text-muted);
}

.game-type-toggles button.active {
  border-color: var(--maroon);
  background: var(--maroon);
  color: white;
  font-weight: 600;
}

.btn-clear-filters {
  width: 100%;
  padding: 7px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  margin-top: auto;
}

.btn-clear-filters:hover { border-color: var(--maroon); color: var(--ink-accent); }

/* In-sheet Subscribe button — mobile only (the header 📅 hides ≤767px to fit
   the bar; this replaces it inside the filter sheet). */
.btn-subscribe-sheet {
  display: none;
  width: 100%;
  padding: 8px;
  background: var(--gold);
  color: #1a1a1a;
  border: none;
  border-radius: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
}

/* Backdrop behind the mobile filter sheet (only ever shown ≤767px) */
#sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 199;
}

/* ── Main content ── */
main {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Calendar view ── */
#calendar-view {
  flex: 1;
  padding: 16px;
  overflow: hidden;
}

#calendar {
  height: 100%;
}

/* FullCalendar overrides */
.fc .fc-toolbar-title { font-size: 1.1rem; color: var(--ink-accent); font-weight: 700; }
.fc .fc-button-primary { background: var(--maroon) !important; border-color: var(--maroon-dark) !important; }
.fc .fc-button-primary:hover { background: var(--maroon-dark) !important; }
.fc .fc-button-primary:not(:disabled).fc-button-active { background: var(--maroon-dark) !important; }
.fc-event { cursor: pointer; font-size: 0.78rem !important; }
.fc-daygrid-event { border-radius: 3px !important; }
.fc-event-main-frame { padding-left: 3px; }
.fc .fc-col-header-cell { background: var(--maroon); color: white; }
.fc .fc-col-header-cell-cushion { color: white !important; font-size: 0.8rem; }

/* ── List view ── */
#list-view {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: none;
}

.list-date-group { margin-bottom: 24px; }

.list-date-header {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ink-accent);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
  margin-bottom: 10px;
}

.list-event {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  background: var(--surface);
  border-radius: 9px;
  margin-bottom: 7px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}

.list-event:hover {
  box-shadow: 0 2px 8px rgba(140,29,64,0.15);
  border-color: var(--maroon-light);
  transform: translateY(-1px);
}

.list-event-dot { display: none; }

.list-event-bar { width: 4px; min-height: 46px; border-radius: 2px; flex-shrink: 0; align-self: stretch; }

.list-event-logo { width: 38px; height: 38px; border-radius: 7px; object-fit: contain; background: var(--bg); flex-shrink: 0; padding: 3px; }
.list-event-logo-placeholder { width: 38px; height: 38px; border-radius: 7px; background: var(--bg); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.1rem; color: var(--text-muted); font-weight: 700; border: 1.5px solid var(--border); }

.list-event-main { flex: 1; min-width: 0; }
.list-event-title { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-event-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

.list-event-right { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.list-event-time { font-size: 0.8rem; font-weight: 600; color: var(--ink-accent); }
.list-event-type { font-size: 0.72rem; color: var(--text-muted); }

.list-ticket-link {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-accent);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

.list-ticket-link:hover { border-color: var(--ink-accent); }

.badge {
  display: inline-block;
  background: var(--gold);
  color: var(--maroon-dark);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--surface);
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: translateY(10px);
  transition: transform 0.2s;
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal-header {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: white;
  padding: 16px 20px;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.modal-header-text { flex: 1; }
.modal-title { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.modal-sport { font-size: 0.8rem; color: var(--gold); margin-top: 3px; }

.modal-close {
  background: rgba(255,255,255,0.12);
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
}

.modal-close:hover { background: rgba(255,255,255,0.25); color: white; }

.modal-opponent-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: white;
  border-radius: 6px;
  padding: 4px;
  flex-shrink: 0;
}

.modal-body { padding: 20px; }

.modal-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.875rem;
  align-items: flex-start;
}

.modal-row-icon { font-size: 1rem; flex-shrink: 0; width: 20px; text-align: center; }
.modal-row-label { font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); flex-shrink: 0; min-width: 70px; padding-top: 1px; }
.modal-row-value { flex: 1; }

.modal-ticket-btn {
  display: inline-block;
  margin-top: 14px;
  background: var(--maroon);
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.15s;
}

.modal-ticket-btn:hover { background: var(--maroon-dark); }

.modal-event-link {
  display: inline-block;
  margin-top: 8px;
  margin-left: 10px;
  color: var(--ink-accent);
  font-size: 0.82rem;
  text-decoration: underline;
}

/* ── Score badges ── */
.score-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.3px;
  vertical-align: middle;
  white-space: nowrap;
}

.score-w { background: #1a7a3a; color: #fff; }
.score-l { background: #b71c1c; color: #fff; }
.score-t { background: #555;    color: #fff; }

/* Calendar event sport label */
.fc-event-sport {
  font-size: 0.65rem;
  font-weight: 700;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Calendar cell score line */
.fc-score-line {
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 1px;
  padding: 0 2px;
  opacity: 0.95;
  white-space: nowrap;
  overflow: hidden;
}

/* ── Map view ── */
#map-view {
  flex: 1;
  display: none;
  position: relative;
  /* Trap Leaflet's internal z-indexes (tiles 200, markers 600, controls 1000)
     inside the map's own stacking context — without this the map painted over
     the mobile filter drawer, and could do the same to modals/toasts. */
  isolation: isolate;
}

.map-pin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.45);
  cursor: pointer;
  line-height: 1;
}

.map-popup { max-width: 280px; font-family: var(--font-body); }
.map-popup-venue { font-weight: 700; font-size: 0.9rem; color: var(--ink-accent); margin-bottom: 2px; }
.map-popup-addr { font-size: 0.73rem; color: var(--text-muted); margin-bottom: 8px; }
.map-popup-events { max-height: 240px; overflow-y: auto; }
.map-popup-event { padding: 6px 0; border-top: 1px solid var(--border); }
.map-popup-event:first-child { border-top: none; }
.map-popup-event-title a { color: var(--ink-accent); text-decoration: none; font-weight: 600; font-size: 0.85rem; }
.map-popup-event-title a:hover { text-decoration: underline; }
.map-popup-event-meta { font-size: 0.73rem; color: var(--text-muted); margin-top: 3px; }

/* ── Live Now banner ── */
#live-banner {
  background: #b71c1c;
  color: #fff;
  font-size: 0.8rem;
  padding: 6px 16px;
  flex-shrink: 0;
  overflow-x: auto;
  white-space: nowrap;
}

.live-banner-inner { display: flex; align-items: center; gap: 16px; }

.live-banner-label {
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 1px;
  background: #fff;
  color: #b71c1c;
  padding: 2px 7px;
  border-radius: 3px;
  flex-shrink: 0;
}

.live-banner-game { display: inline-flex; align-items: center; gap: 6px; }

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: live-blink 1.1s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.live-score { font-weight: 700; }
.live-situation { opacity: 0.85; font-size: 0.75rem; }

/* ── Live badges (calendar + list + modal) ── */
.live-badge-sm {
  display: inline-block;
  background: #b71c1c;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  vertical-align: middle;
  /* no opacity animation — blinking opacity makes text look gray on pink */
}

.live-badge-modal {
  display: inline-block;
  background: #b71c1c;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  vertical-align: middle;
  animation: live-blink 1.1s ease-in-out infinite;
}

.live-badge-list {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
  color: var(--text);
}

.live-badge-pill {
  background: #CC0000;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.live-score-text {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text);
}


.fc-live-line {
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 1px;
  padding: 0 2px;
  white-space: nowrap;
  overflow: hidden;
}

.fc-live-situation { font-weight: 400; opacity: 0.85; }

.list-event-live { border-color: #b71c1c !important; }

/* ── Map live pulse ring ── */
.map-pin-wrap {
  position: relative;
  width: 28px;
  height: 28px;
}

.map-pin-pulse {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2.5px solid #e53e3e;
  animation: live-ring 1.4s ease-out infinite;
  pointer-events: none;
}

@keyframes live-ring {
  0%   { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state h3 { margin-bottom: 8px; color: var(--text); font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.02em; }
.empty-state .btn-clear-inline { display: inline-block; padding: 7px 16px; border: 1.5px solid var(--maroon); color: var(--ink-accent); border-radius: 6px; font-size: 0.82rem; font-weight: 600; cursor: pointer; background: none; font-family: var(--font-body); transition: background 0.15s, color 0.15s; }
.empty-state .btn-clear-inline:hover { background: var(--maroon); color: white; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Live tab view ── */
#live-view {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: none;
}

/* ── Live section headers ── */
.live-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ink-accent);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
  margin-bottom: 14px;
  margin-top: 20px;
}

.live-section-header:first-child { margin-top: 0; }

.live-section-live { color: #b71c1c; border-bottom-color: #b71c1c; }

/* ── Card grid ── */
.live-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

/* ── Individual game card ── */
.live-card {
  background: var(--surface);
  border-radius: 10px;
  border: 1.5px solid var(--border);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: default;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.live-card:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}

.card-live {
  border-color: #b71c1c;
  box-shadow: 0 0 0 1px rgba(183,28,28,0.15);
  animation: live-card-pulse 2.5s ease-in-out infinite;
}

@keyframes live-card-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(183,28,28,0.15); }
  50%       { box-shadow: 0 0 0 3px rgba(183,28,28,0.25); }
}

.card-upcoming { border-color: var(--border); opacity: 0.9; }
.card-final    { border-color: var(--border); }

/* ── Card header ── */
.live-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.live-card-sport {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  flex: 1;
}

.live-card-tv {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ── Status badges ── */
.live-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.live-status-live {
  background: #b71c1c;
  color: #fff;
}

.live-status-final {
  background: #444;
  color: #fff;
}

.live-status-upcoming {
  background: #e8f0fe;
  color: #1a56db;
}

/* ── Matchup row ── */
.live-card-matchup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-card-team {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.live-card-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
}

.live-card-asu-badge {
  width: 44px;
  height: 44px;
  background: var(--maroon);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  letter-spacing: 1px;
}

.live-card-logo-placeholder {
  width: 44px;
  height: 44px;
  background: #e0e0e0;
  color: #555;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.live-card-team-name {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.live-card-score {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.live-card-score.score-winner { color: var(--ink-accent); }

.live-card-vs {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  text-align: center;
  min-width: 36px;
}

/* ── Sport details ── */
.live-card-sport-details {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.baseball-layout {
  justify-content: flex-start;
}

.sport-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sport-chip {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  color: var(--text);
  white-space: nowrap;
}

/* ── Baseball diamond ── */
.baseball-diamond {
  flex-shrink: 0;
}

.bd-base {
  width: 13px;
  height: 13px;
  background: #ddd;
  border: 1.5px solid #aaa;
  transform: rotate(45deg);
  border-radius: 1px;
}

.bd-on { background: var(--gold); border-color: var(--gold-dark); }

.bd-2b {
  margin: 0 auto 3px auto;
  display: block;
}

.bd-row-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 46px;
  margin-bottom: 3px;
}

.bd-gap { flex: 1; }

.bd-hp {
  margin: 0 auto;
  display: block;
  background: #999;
  border-color: #777;
}

/* ── Card footer ── */
.live-card-footer {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.live-card-situation {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

.live-card-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ── Next game countdown block ── */
.live-next-game {
  max-width: 420px;
  margin: 20px auto;
  background: var(--surface);
  border: 2px solid var(--maroon);
  border-radius: 12px;
  padding: 28px 32px;
  text-align: center;
}

.live-next-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.live-next-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.live-next-sport {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.live-next-countdown {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink-accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.live-next-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Inline countdown (in header) ── */
.live-countdown {
  font-size: 0.75rem;
  font-weight: 700;
  color: #b71c1c;
  font-variant-numeric: tabular-nums;
  margin-left: 6px;
}

/* ── Tournament bracket section ── */
.bracket-section { margin-bottom: 8px; }

.bracket-section .live-section-header { color: #7a6000; border-bottom-color: var(--gold); }

/* ── Live tab dot ── */
.live-tab-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4444;
  margin-right: 4px;
  vertical-align: middle;
  animation: live-blink 1.1s ease-in-out infinite;
}

/* ── Pulsing dots ── */
.live-dot-sm {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: live-blink 1.1s ease-in-out infinite;
  flex-shrink: 0;
}

.live-dot-lg {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b71c1c;
  animation: live-blink 1.1s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── No-games message ── */
.live-no-games-msg {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ── Empty state ── */
.live-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.live-empty-icon { font-size: 3rem; margin-bottom: 14px; }
.live-empty-state h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 8px; }
.live-empty-state p  { font-size: 0.875rem; }

/* ── Mobile layout ── */
@media (max-width: 767px) {
  body {
    height: auto;
    min-height: 100vh;
  }

  /* Header must fit 320–430px phones: Sparky only (no wordmark), the 📅
     Subscribe button moves into the filter sheet, and the view-toggle sizes
     fluidly with clamp() so it compresses continuously instead of fitting
     only specific tested widths. */
  .header-inner {
    padding: 0 10px;
    gap: 8px;
    min-width: 0;
  }

  .logo-wordmark { display: none; }
  .logo-text { display: none; }

  .btn-subscribe { display: none; }

  .header-controls { gap: 4px; }

  .view-toggle button {
    padding: 5px clamp(4px, 1.6vw, 7px);
    font-size: clamp(0.68rem, 3vw, 0.78rem);
  }

  .btn-refresh,
  .btn-theme {
    padding: 5px 7px;
    font-size: 0.78rem;
  }

  .btn-filters-toggle {
    display: block;
    padding: 5px 8px;
    font-size: clamp(0.68rem, 3vw, 0.78rem);
  }

  .app-body {
    flex-direction: column;
    overflow: visible;
  }

  main {
    order: 1;
    flex: none;
    height: calc(100vh - 84px);
    min-height: 300px;
    overflow: hidden;
  }

  /* Filters = top drawer hanging from the menu bar (Robert's preference —
     the earlier bottom placement was unreachable below a 100vh main). The
     drawer and its backdrop both start BELOW the header, so the menu bar
     stays visible and tappable while it's open. */
  aside {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: calc(56px + env(safe-area-inset-top, 0px));
    bottom: auto;
    z-index: 200;
    width: 100%;
    /* leave a strip of content visible below so it reads as an overlay */
    max-height: calc(100vh - 56px - env(safe-area-inset-top, 0px) - 80px);
    max-height: calc(100dvh - 56px - env(safe-area-inset-top, 0px) - 80px);
    overflow-y: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    padding-bottom: 20px;
  }

  aside.open { display: flex; }

  #sidebar-backdrop.open {
    display: block;
    top: calc(56px + env(safe-area-inset-top, 0px));
  }

  .btn-subscribe-sheet { display: block; }

  #calendar-view { padding: 8px; }
  #list-view { padding: 12px 16px; }
  #live-view { padding: 12px 16px; }
  #map-view { min-height: 400px; }

  .live-cards-grid {
    grid-template-columns: 1fr;
  }

  .live-next-game {
    padding: 20px 16px;
  }

  .live-next-countdown {
    font-size: 1.6rem;
  }
}

/* ── Bracket / Pool / Series ─────────────────────────────────────────────── */

.bracket-wrapper {
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.bracket-collapsible-header {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bracket-collapsible-header:hover { opacity: 0.9; }

.bracket-collapse-btn {
  font-size: 1rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.bracket-collapse-btn.rotated { transform: rotate(-90deg); }

.bracket-body { /* visible by default */ }
.bracket-body.collapsed { display: none; }

/* Bracket rounds */

.bracket-rounds {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 16px;
}

.bracket-round {
  display: flex;
  flex-direction: column;
  min-width: 180px;
  flex: 1;
  padding-right: 16px;
}

.bracket-round:last-child { padding-right: 0; }

.bracket-round-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 10px;
}

.bracket-matchup {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  margin-bottom: 10px;
  overflow: hidden;
  position: relative;
}

.bracket-matchup.bm-live {
  border-color: var(--maroon);
  animation: bm-pulse 1.8s ease-in-out infinite;
}

@keyframes bm-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(140, 29, 64, 0.3); }
  50%       { box-shadow: 0 0 0 5px rgba(140, 29, 64, 0); }
}

.bracket-team {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  font-size: 0.82rem;
  border-left: 3px solid transparent;
  min-height: 32px;
}

.bracket-team + .bracket-team { border-top: 1px solid var(--border); }

.bracket-team.bt-winner { font-weight: 700; }
.bracket-team.bt-loser  { opacity: 0.5; }

.bracket-team.bt-asu { border-left-color: var(--maroon); }
.bracket-team.bt-asu.bt-winner {
  border-left-color: var(--gold);
  background: rgba(255, 198, 39, 0.1);
}

.bracket-seed {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 14px;
  text-align: right;
}

.bracket-team-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.bracket-team-abbr {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.bracket-team-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-team-score {
  font-weight: 700;
  min-width: 22px;
  text-align: right;
  flex-shrink: 0;
}

.bracket-live-badge {
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  background: #c00;
  border-radius: 3px;
  padding: 1px 4px;
  flex-shrink: 0;
}

.bracket-situation {
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 2px 8px 4px;
  border-top: 1px solid var(--border);
}

/* Pool standings */

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.standings-table th,
.standings-table td {
  padding: 7px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.standings-table th {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg);
}

.standings-asu-row {
  background: var(--asu-tint);
  font-weight: 600;
}

/* Poll rank badge (#7 next to opponent names) */

.rank-badge {
  display: inline-block;
  font-size: 0.7em;
  font-weight: 700;
  background: var(--maroon);
  color: var(--gold);
  border-radius: 4px;
  padding: 0 4px;
  vertical-align: 8%;
  line-height: 1.5;
}

/* Conference standings widget (Live tab) */

.standings-widget .bracket-body {
  padding: 0 0 12px;
}

.standings-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px 10px;
}

.standings-pill {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 11px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.standings-pill:hover { color: var(--text); }

.standings-pill.active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
}

.standings-season {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0 16px 8px;
}

.standings-note {
  font-size: 0.84rem;
  color: var(--text-muted);
  padding: 8px 16px 12px;
}

.standings-scroll { overflow-x: auto; }

.standings-pos {
  color: var(--text-muted);
  width: 28px;
}

.standings-team {
  white-space: nowrap;
  font-weight: 500;
}

.standings-team img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: -25%;
  margin-right: 7px;
}

.roster-link-row { padding: 10px 16px 4px; }

.roster-btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-accent);
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.roster-btn:hover { border-color: var(--ink-accent); }

/* News widget (Live tab) */

.news-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
}

.news-row:last-child { border-bottom: none; }
a.news-row:hover { background: var(--bg); }

.news-emoji { flex-shrink: 0; font-size: 1rem; line-height: 1.3; }

.news-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }

.news-headline { font-size: 0.84rem; font-weight: 600; line-height: 1.3; }

.news-meta { font-size: 0.72rem; color: var(--text-muted); }

.news-ext { flex-shrink: 0; font-size: 0.78rem; color: var(--text-muted); }

/* Series panel */

.series-panel {
  padding: 12px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.series-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.series-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.series-dot.sd-win  { background: #22c55e; }
.series-dot.sd-loss { background: #ef4444; }
.series-dot.sd-tbd  { background: var(--border); }

.series-score {
  font-size: 0.875rem;
  font-weight: 600;
}

@media (max-width: 600px) {
  .bracket-rounds { overflow-x: auto; }
  .bracket-round  { min-width: 160px; }
}

/* ── Upcoming tournament schedule list ───────────────────────────────────── */

.tourn-note {
  padding: 10px 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.tourn-game-list {
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tourn-game-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}

.tourn-game-row:last-child { border-bottom: none; }

.tourn-game-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text);
}

.tourn-game-right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
  flex-shrink: 0;
  text-align: right;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tourn-opp  { color: var(--text); }
.tourn-date { color: var(--text-muted); }
.tourn-time { color: var(--text-muted); white-space: nowrap; }
.tourn-tv   { color: var(--text-muted); }

.tourn-result-w {
  display: inline-block;
  background: rgba(63, 185, 80, 0.15);
  color: #3fb950;
  border: 1px solid rgba(63, 185, 80, 0.3);
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.tourn-result-l {
  display: inline-block;
  background: rgba(248, 81, 73, 0.12);
  color: #f85149;
  border: 1px solid rgba(248, 81, 73, 0.25);
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Game Detail Modal ──────────────────────────────────────────────────────── */

.game-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.game-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.game-modal {
  background: var(--surface);
  border-radius: 12px;
  width: 100%;
  max-width: 820px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transform: translateY(14px);
  transition: transform 0.2s;
  position: relative;
}

.game-modal-overlay.open .game-modal { transform: translateY(0); }

.game-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.15s;
  line-height: 1;
}

.game-modal-close:hover { background: rgba(255,255,255,0.3); color: white; }

/* Game modal spinner */
.game-modal-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid var(--border);
  border-top-color: var(--maroon);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 60px auto;
}

/* Header */
.gm-header {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: white;
  padding: 22px 20px 18px;
  border-radius: 12px 12px 0 0;
}

.gm-headline {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
  padding-right: 36px;
}

.gm-scores {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.gm-team {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.gm-team-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 4px;
}

.gm-team-logo-placeholder {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.5px;
}

.gm-team-name {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  color: rgba(255,255,255,0.9);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gm-score {
  font-size: 2.6rem;
  font-weight: 800;
  color: rgba(255,255,255,0.7);
  line-height: 1;
}

.gm-score.gm-winner { color: var(--gold); }

.gm-vs {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
  text-align: center;
  min-width: 22px;
}

.gm-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.gm-status-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 5px;
  letter-spacing: 0.4px;
}

.gm-status-final { background: rgba(255,255,255,0.18); color: white; }
.gm-status-live  { background: #cc0000; color: white; animation: live-blink 1.1s ease-in-out infinite; }
.gm-status-pre   { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }

.gm-status-detail {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}

.gm-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gm-meta-row {
  font-size: 0.77rem;
  color: rgba(255,255,255,0.58);
}

/* Linescore */
.gm-linescore {
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
}

.gm-linescore-table {
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.gm-linescore-table th,
.gm-linescore-table td {
  padding: 7px 9px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.gm-linescore-table th {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg);
  text-transform: uppercase;
}

.gm-linescore-table th:first-child,
.gm-linescore-table td:first-child {
  text-align: left;
  padding-left: 16px;
  min-width: 90px;
}

.gm-ls-rhe {
  font-weight: 700;
  background: var(--asu-tint);
}

.gm-linescore-winner { background: var(--gold-tint) !important; }

/* Box score tabs */
.gm-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  padding: 0 16px;
  background: var(--bg);
}

.gm-tab {
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}

.gm-tab.active { color: var(--ink-accent); border-bottom-color: var(--ink-accent); }
.gm-tab-panel { display: none; }
.gm-tab-panel.active { display: block; }

/* Scoring plays tab */

.gm-plays-period {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  background: var(--bg);
  padding: 8px 16px 6px;
  border-bottom: 1px solid var(--border);
}

.gm-play-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.84rem;
}

.gm-play-asu { background: var(--asu-tint); }

.gm-play-type {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gm-play-side {
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}

.gm-play-clock {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.gm-play-score { font-size: 0.78rem; font-weight: 600; }

/* Head-to-head strip (both modals) */

.h2h-strip {
  margin: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.h2h-head {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 7px 12px;
  border-bottom: 1px solid var(--border);
}

.h2h-head strong { color: var(--text); }

.h2h-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.h2h-row:last-child { border-bottom: none; }

.h2h-date { flex: 1; }

.h2h-where {
  color: var(--text-muted);
  font-size: 0.74rem;
  min-width: 52px;
  text-align: right;
}

/* Stats tables */
.gm-stats-section { padding: 0; }

.gm-stats-team-header {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  padding: 7px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.gm-stats-table-wrap { overflow-x: auto; }

.gm-stats-table {
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.79rem;
}

.gm-stats-table th {
  padding: 5px 8px;
  text-align: right;
  font-size: 0.63rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.gm-stats-table th:first-child { text-align: left; padding-left: 16px; min-width: 110px; }

.gm-stats-table td {
  padding: 5px 8px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.gm-stats-table td:first-child { text-align: left; padding-left: 16px; }
.gm-stats-table tr:last-child td { border-bottom: none; }
.gm-stats-table .st-starter { font-weight: 700; }

.gm-stats-table .st-asu-row { border-left: 3px solid var(--maroon); }
.gm-stats-table .st-asu-row td:first-child { padding-left: 13px; }

/* Fallback no-stats panel */
.gm-fallback { padding: 20px 20px 16px; }

.gm-fallback-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.875rem;
}

.gm-fallback-icon { font-size: 1rem; flex-shrink: 0; width: 22px; }
.gm-fallback-label { color: var(--text-muted); min-width: 65px; flex-shrink: 0; font-size: 0.82rem; }
.gm-fallback-value { flex: 1; font-size: 0.875rem; }

/* Clickable live cards */
.live-card.card-clickable { cursor: pointer; }

@media (max-width: 480px) {
  .game-modal-overlay { padding: 0; align-items: flex-end; }
  .game-modal { border-radius: 14px 14px 0 0; max-height: 95vh; max-width: 100%; }
}

/* ── NCAA Visual Bracket ────────────────────────────────────────────────────── */

.ncaa-bracket-rounds {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}

.ncaa-bracket-col {
  display: flex;
  flex-direction: column;
  min-width: 168px;
  flex-shrink: 0;
}

.ncaa-bracket-col-label {
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ncaa-bracket-games {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-around;
  height: 100%;
}

.ncaa-game-card {
  border: 1.5px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  background: var(--surface);
  transition: box-shadow 0.15s;
}

.ncaa-game-card.ncaa-clickable { cursor: pointer; }
.ncaa-game-card.ncaa-clickable:hover {
  box-shadow: 0 3px 12px rgba(140,29,64,0.2);
  border-color: var(--maroon-light);
}

.ncaa-game-card.ncaa-live { border-color: #c00; animation: bm-pulse 1.8s ease-in-out infinite; }

.ncaa-card-header {
  font-size: 0.64rem;
  padding: 3px 7px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  overflow: hidden;
  white-space: nowrap;
}

.ncaa-live-badge {
  background: #c00;
  color: white;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  flex-shrink: 0;
  animation: live-blink 1.1s ease-in-out infinite;
}

.ncaa-final-badge {
  background: #444;
  color: white;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  flex-shrink: 0;
}

.ncaa-team-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  font-size: 0.79rem;
  border-left: 3px solid transparent;
  min-height: 30px;
}

.ncaa-team-row + .ncaa-team-row { border-top: 1px solid var(--border); }

.ncaa-team-row.ncaa-winner { font-weight: 700; }
.ncaa-team-row.ncaa-loser  { opacity: 0.5; }
.ncaa-team-row.ncaa-eliminated { opacity: 0.4; }
.ncaa-team-row.ncaa-eliminated .ncaa-team-name { text-decoration: line-through; }

.ncaa-team-row.ncaa-asu { border-left-color: var(--maroon); }
.ncaa-team-row.ncaa-asu.ncaa-winner {
  border-left-color: var(--gold);
  background: rgba(255,198,39,0.08);
}

.ncaa-team-seed {
  font-size: 0.63rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 12px;
  text-align: right;
  flex-shrink: 0;
}

.ncaa-team-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.ncaa-team-abbr {
  font-size: 0.63rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.ncaa-team-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.77rem;
}

.ncaa-team-record {
  font-size: 0.63rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.ncaa-team-score {
  font-weight: 700;
  min-width: 20px;
  text-align: right;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.ncaa-team-score.ncaa-win-score { color: var(--ink-accent); }

.ncaa-elim-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: #ef4444;
  flex-shrink: 0;
  background: rgba(239,68,68,0.1);
  padding: 1px 4px;
  border-radius: 3px;
}

.ncaa-bracket-loading {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

@media (max-width: 480px) {
  .ncaa-bracket-col { min-width: 148px; }
}

/* ── Toast notifications ── */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
  pointer-events: none;
}
.toast {
  background: #1e1208;
  color: #f5f0e8;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-family: -apple-system, sans-serif;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
}
.toast-show { opacity: 1; transform: translateY(0); }
.toast-success { border-left: 3px solid #4ade80; }
.toast-error   { border-left: 3px solid var(--red, #f87171); }

/* ── Button spinner ── */
.btn-spinner {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 4px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Season record widget ── */
.record-widget {
  max-width: 420px;
  margin: 16px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  text-align: center;
}
.record-widget-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.record-widget-overall {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}
.record-sport-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
.record-sport-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  padding: 3px 0;
  border-bottom: 1px solid var(--border);
}
.record-sport-row:last-child { border-bottom: none; }
.record-sport-name { color: var(--text); }
.record-sport-wl   { color: var(--text-muted); font-variant-numeric: tabular-nums; font-weight: 600; }

/* ── Live notification bar ── */
.notify-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 12px;
  font-family: -apple-system, sans-serif;
  font-size: 0.78rem;
  gap: 12px;
}
.notify-bar-text { color: var(--text-muted); }
.notify-btn {
  background: var(--maroon);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 4px 12px;
  font-size: 0.72rem;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.notify-btn:hover { opacity: 0.85; }

/* ── Date range collapse ── */
.filter-collapse-toggle {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 4px 0 6px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}
.filter-collapse-toggle:hover { color: var(--text); }
.collapse-arrow { font-size: 0.6rem; transition: transform 0.15s; }
.filter-collapse-body { padding-top: 4px; display: flex; flex-direction: column; gap: 4px; }

/* ── Subscribe button ── */
.btn-subscribe {
  background: var(--gold);
  color: #1a1a1a;
  border: none;
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.btn-subscribe:hover { opacity: 0.85; }
@media (max-width: 768px) {
  .btn-subscribe .sub-label { display: none; }
}

/* ── Bell icon ─────────────────────────────────────────────────────────────── */

.bell-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1;
  transition: background 0.15s, opacity 0.15s;
  flex-shrink: 0;
}
.bell-btn:hover { background: rgba(0,0,0,0.08); }
.bell-btn.bell-disabled { opacity: 0.35; cursor: not-allowed; }
.bell-btn.bell-off { opacity: 0.45; filter: grayscale(1); }
.bell-btn.bell-on  { opacity: 1; }
.bell-btn:disabled { opacity: 0.4; cursor: wait; }

/* Bell in live card header */
.live-card-header .bell-btn { margin-left: auto; }

/* Bell in list view */
.list-event-right .bell-btn { margin-top: 2px; }

/* Bell in event modal */
.modal-bell-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.modal-bell-row .bell-btn { font-size: 1.2rem; }
.modal-bell-label { font-size: 0.85rem; color: var(--text-muted); }

/* ── Bell notification menu ─────────────────────────────────────────────────── */

.bell-menu {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  padding: 8px 0 6px;
  min-width: 220px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  user-select: none;
}
.bell-menu-header {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0 14px 6px;
}
.bell-menu-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.1s;
}
.bell-menu-row:hover { background: var(--bg); }
.bell-menu-row input[type=checkbox] {
  accent-color: var(--maroon);
  width: 15px;
  height: 15px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}
.bell-menu-row span { line-height: 1.3; }
.bell-menu-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* ── iOS install banner ────────────────────────────────────────────────────── */

#ios-install-banner {
  position: fixed;
  bottom: env(safe-area-inset-bottom, 0);
  left: 0; right: 0;
  background: var(--maroon);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0));
  z-index: 9999;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
  transform: translateY(110%);
  transition: transform 0.35s ease;
}
#ios-install-banner.ios-banner-visible { transform: translateY(0); }

.ios-banner-text {
  flex: 1;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.9);
}
.ios-banner-text strong { color: var(--gold); }

.ios-banner-dismiss {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 6px;
  flex-shrink: 0;
}

/* ── Offline banner ────────────────────────────────────────────────────────── */

#offline-banner {
  background: #d97706;
  color: #fff;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 16px;
  /* fixed overlay — it used to be sticky IN FLOW at the top of <body>
     (prepended), which pushed the whole header down until you scrolled */
  position: fixed;
  top: calc(56px + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 300;
  letter-spacing: 0.01em;
}

/* ── Install App sidebar section ───────────────────────────────────────────── */

.install-app-section {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 4px;
}

.install-benefit {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.4;
}

.install-steps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.install-steps li {
  font-size: 0.82rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.install-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--maroon);
  color: #fff;
  border-radius: 5px;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ── Notifications sidebar section ─────────────────────────────────────────── */

.btn-enable-notif {
  width: 100%;
  background: var(--maroon);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  margin-top: 4px;
}
.btn-enable-notif:hover { background: var(--maroon-light); }

.notif-sport-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--text);
  padding: 3px 0;
  cursor: pointer;
}
.notif-sport-row input[type=checkbox] { accent-color: var(--maroon); }
.notif-all-row { font-weight: 600; margin-bottom: 4px; }

/* ── Bell error state ──────────────────────────────────────────────────────── */

.bell-btn.bell-error {
  filter: hue-rotate(180deg) saturate(2);
  animation: bell-shake 0.4s ease;
}
@keyframes bell-shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-3px); }
  75%      { transform: translateX(3px); }
}

/* ── PWA debug panel ───────────────────────────────────────────────────────── */

#pwa-debug-panel {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 4px);
  left: 4px;
  right: 4px;
  max-height: 220px;
  background: rgba(0,0,0,0.88);
  border-radius: 8px;
  z-index: 99999;
  font-family: monospace;
  font-size: 0.7rem;
  color: #a8ff78;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.dbg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
}
.dbg-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 2px 4px;
}
.dbg-body {
  margin: 0;
  padding: 6px 8px;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 190px;
  overflow-y: auto;
  font-size: 0.68rem;
  line-height: 1.45;
}

/* ── What's New Popup ── */
.wn-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.wn-overlay.wn-open {
  opacity: 1;
  pointer-events: all;
}

.wn-modal {
  background: var(--surface);
  border-radius: 12px;
  width: 100%;
  max-width: 380px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.45);
  transform: translateY(24px);
  transition: transform 0.25s;
  display: flex;
  flex-direction: column;
}

.wn-overlay.wn-open .wn-modal { transform: translateY(0); }

.wn-header {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: var(--gold);
  padding: 16px 20px;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.wn-sparky {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

.wn-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.wn-body { padding: 20px; overflow-y: auto; }

.wn-release-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-accent);
  margin-bottom: 2px;
}

.wn-release-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.wn-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.wn-features li {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text);
  padding-left: 1.25em;
  position: relative;
}

.wn-features li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: 700;
}

.wn-divider {
  border: none;
  border-top: 1px solid var(--maroon);
  opacity: 0.25;
  margin: 16px 0;
}

.wn-footer {
  padding: 16px 20px;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
}

.wn-got-it {
  width: 100%;
  background: var(--maroon);
  color: var(--gold);
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s;
}

.wn-got-it:hover { background: var(--maroon-dark); }

@media (max-width: 480px) {
  .wn-overlay { align-items: flex-end; padding: 0; }
  .wn-modal {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 85vh;
  }
}
