/* ── FONTS ───────────────────────────────────────────────────── */
@font-face {
  font-family: '28DaysLater';
  src: url('../fonts/28dayslater.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
img { max-width: 100%; display: block; }
button { cursor: pointer; }
input, button, select, textarea { font-family: inherit; }

/* ── VARIABLES — DARK "Match Night" ──────────────────────────── */
:root {
  --bg:           #09090f;
  --surface:      #111118;
  --surface-2:    #18181f;
  --surface-3:    #21212c;
  --border:       #2d2d44;
  --border-light: #25253a;
  --text:         #ededf8;
  --text-muted:   #6e6e98;
  --text-subtle:  #9e9ec0;
  --accent:       #38bdf8;
  --accent-dim:   rgba(56,189,248,0.16);
  --accent-glow:  rgba(56,189,248,0.32);
  --gold:         #fbbf24;
  --gold-dim:     rgba(251,191,36,0.16);
  --green:        #34d399;
  --green-dim:    rgba(52,211,153,0.14);
  --red:          #fb7185;
  --red-dim:      rgba(251,113,133,0.14);
  --amber:        #fb923c;
  /* gradient vars so they adapt to theme */
  --ss-g1:        rgba(56,189,248,0.42);
  --ss-g2:        rgba(56,189,248,0.16);
  --ss-sel-g1:    rgba(56,189,248,0.52);
  --ss-sel-g2:    rgba(56,189,248,0.22);
  --radius:       10px;
  --radius-sm:    6px;
  --radius-lg:    14px;
  --font-body:    '28DaysLater', 'Figtree', system-ui, sans-serif;
  --font-display: '28DaysLater', 'Figtree', sans-serif;
  --font-score:   '28DaysLater', 'Bebas Neue', 'Figtree', sans-serif;
  --font-horror:  '28DaysLater', 'Figtree', sans-serif;
  --nav-h:        54px;
  --ease:         140ms ease;
}

/* ── LIGHT MODE "Warm Parchment" ─────────────────────────────── */
[data-theme="light"] {
  --bg:           #f5f0e8;
  --surface:      #fdfaf5;
  --surface-2:    #ede7da;
  --surface-3:    #e0d9cc;
  --border:       #c4b89a;
  --border-light: #d4cbb5;
  --text:         #1a1208;
  --text-muted:   #6b5a3e;
  --text-subtle:  #3d2b15;
  --accent:       #b45309;
  --accent-dim:   rgba(180,83,9,0.12);
  --accent-glow:  rgba(180,83,9,0.28);
  --gold:         #78350f;
  --gold-dim:     rgba(120,53,15,0.14);
  --green:        #14532d;
  --green-dim:    rgba(20,83,45,0.14);
  --red:          #7f1d1d;
  --red-dim:      rgba(127,29,29,0.12);
  --ss-g1:        rgba(180,83,9,0.18);
  --ss-g2:        rgba(180,83,9,0.07);
  --ss-sel-g1:    rgba(180,83,9,0.28);
  --ss-sel-g2:    rgba(180,83,9,0.12);
}
[data-theme="light"] body {
  background:
    linear-gradient(135deg,
      #f2ebe0 0%,
      #fdfaf5 20%,
      #ede7da 45%,
      #faf6ef 65%,
      #f0e9de 85%,
      #fdfaf5 100%
    );
  background-attachment: fixed;
}

/* ── BASE ────────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 0.9375rem;
  line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ─────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center;
  height: 100%; max-width: 1280px;
  margin: 0 auto; padding: 0 4rem;
}
.nav-brand {
  font-family: var(--font-horror); font-size: 1.5rem;
  letter-spacing: 2px; color: var(--text);
  white-space: nowrap; margin-right: 2rem; flex-shrink: 0;
  display: flex; align-items: center; gap: 0.5rem; line-height: 1;
}
.nav-lion-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  display: flex; align-items: center; flex-shrink: 0;
  margin-right: 0.375rem; position: relative; z-index: 1;
  pointer-events: auto;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.nav-lion-btn:hover { opacity: 0.8; transform: scale(1.1) translateY(-3px); }
[data-theme="light"] .nav-lion-btn:hover { opacity: 0.6; }
.nav-lion {
  height: 26px; width: auto; max-width: 26px;
  object-fit: contain; flex-shrink: 0;
  display: block; align-self: center;
  transform: translateY(-3px);
  filter: brightness(0) invert(1);        /* white in dark mode */
}
[data-theme="light"] .nav-lion {
  filter: none;                            /* original purple in light mode */
}
.nav-brand-super { color: var(--accent); }
[data-theme="light"] .nav-brand-super { color: var(--text); }
.nav-brand-six { color: #ffffff; }
[data-theme="light"] .nav-brand-six { color: var(--accent); }
[data-theme="light"] .nav-brand-super { color: var(--text); }
.nav-links {
  display: flex; align-items: center; flex: 1;
  height: 100%; overflow-x: auto; scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-link {
  display: flex; align-items: center; height: 100%;
  padding: 0 0.875rem;
  font-family: var(--font-horror); font-size: 0.875rem; font-weight: normal;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-muted); white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease);
  text-decoration: none;
}
.nav-link:hover { color: var(--text); text-decoration: none; }
.nav-link.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-sep { width: 1px; height: 18px; background: var(--border); margin: 0 0.5rem; flex-shrink: 0; }
.nav-right {
  margin-left: auto; display: flex; align-items: center;
  gap: 1.25rem; flex-shrink: 0; padding-left: 1rem;
}
.nav-right .nav-link { padding: 0 0.5rem; }
.nav-username { font-size: 0.8125rem; font-weight: 600; color: var(--text-subtle); font-family: 'Figtree', system-ui, sans-serif; }
.player-name, .lb-name, .user-uname, .user-email, .col-player { font-family: 'Figtree', system-ui, sans-serif; }
.prize-val, .total-cell, .lb-prize, .jackpot-bar-amount, .prize-amount, .pot-amount, .score-max strong { font-family: 'Figtree', system-ui, sans-serif; }
.nav-dropdown { position: relative; display: flex; align-items: center; height: 100%; }
.nav-dropdown-btn {
  display: flex; align-items: center; height: 100%;
  padding: 0 0.875rem; gap: 0.3rem;
  font-family: var(--font-horror); font-size: 0.875rem; font-weight: normal; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--gold);
  background: none; border: none; border-bottom: 2px solid transparent;
  cursor: pointer; transition: color var(--ease);
}
.nav-dropdown-btn:hover { color: #fbbf24; }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 1px);
  right: 0; min-width: 190px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.375rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 0.5rem 0.875rem;
  font-size: 0.8125rem; color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: background var(--ease), color var(--ease);
}
.nav-dropdown-menu a:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }

/* ── LAYOUT ──────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 4rem; }
.page { padding-top: 2.25rem; padding-bottom: 4rem; }
.page-hd { margin-bottom: 2rem; }
.page-title {
  font-family: var(--font-display); font-size: 1.875rem;
  font-weight: 700; letter-spacing: 0.01em; line-height: 1.1;
}
.page-sub { color: var(--text-muted); font-size: 0.875rem; margin-top: 0.25rem; }

/* ── CARDS ───────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.card-sm { padding: 1rem 1.25rem; border-radius: var(--radius); }

/* ── TABLES ──────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th {
  font-family: var(--font-display); font-size: 0.6875rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #38bdf8; padding: 0.75rem 1rem; text-align: left;
  border-bottom: 1px solid var(--border); background: var(--surface);
  white-space: nowrap;
}
th.text-right { text-align: right; }
th.text-center { text-align: center; }
.gw-nav-btn { color: #38bdf8 !important; border-color: rgba(56,189,248,0.3) !important; }
.gw-nav-btn:hover { color: #7dd3fc !important; border-color: rgba(56,189,248,0.6) !important; }
.important-note, .flip-explainer, .ss-explainer, .reg-notice, .empty-state,
.action-desc, .action-name { font-family: 'Figtree', system-ui, sans-serif; }
td {
  padding: 0.875rem 1rem; border-bottom: 1px solid var(--border-light);
  vertical-align: middle; font-size: 0.9rem;
}
tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--ease); }
tbody tr:hover { background: var(--surface-2); }
.text-right { text-align: right; }
.text-center { text-align: center; }

/* ── BADGES ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.15rem 0.55rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; white-space: nowrap;
}
.badge-exact   { background: var(--gold-dim);  color: var(--gold);   border: 1px solid rgba(245,158,11,0.3); }
.badge-correct { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(56,189,248,0.2); }
.badge-miss    { background: rgba(90,116,148,0.1); color: var(--text-muted); border: 1px solid rgba(90,116,148,0.15); }
.badge-ss      { background: rgba(245,158,11,0.2); color: #fde68a; border: 1px solid rgba(245,158,11,0.4); }
.badge-live    { background: var(--green-dim); color: var(--green); border: 1px solid rgba(16,185,129,0.3); }

/* ── STATUS DOTS ─────────────────────────────────────────────── */
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; vertical-align: middle; margin-right: 4px; flex-shrink: 0; }
.dot-live { background: #2dd4bf; box-shadow: 0 0 5px #2dd4bf; }
.dot-live.injury { background: var(--red); box-shadow: 0 0 5px var(--red); }
.dot-ht { background: #2dd4bf; box-shadow: 0 0 5px #2dd4bf; }
.dot-done { background: var(--text-muted); }
.dot-soon { background: var(--border); }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.5625rem 1.25rem;
  border-radius: var(--radius-sm); font-family: var(--font-body);
  font-size: 0.875rem; font-weight: 600; border: none; cursor: pointer;
  transition: opacity var(--ease), transform var(--ease);
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.btn:hover { opacity: 0.85; text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #070d1a; }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-light); opacity: 1; }
.gw-pagination .btn-ghost { color: #38bdf8; border-color: rgba(56,189,248,0.3); }
.gw-pagination .btn-ghost:hover { color: #7dd3fc; border-color: rgba(56,189,248,0.6); }
.btn-danger { background: var(--red-dim); color: var(--red); border: 1px solid rgba(239,68,68,0.25); }
.btn-danger:hover { background: rgba(239,68,68,0.2); opacity: 1; }
.btn-gold { background: var(--gold); color: #070d1a; }
.btn-green { background: var(--green-dim); color: var(--green); border: 1px solid rgba(16,185,129,0.25); }
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ── FORMS ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
label, .form-label {
  display: block; font-size: 0.8125rem; font-weight: 600;
  color: var(--text-subtle); margin-bottom: 0.375rem; letter-spacing: 0.03em;
}
input[type=text], input[type=email], input[type=password],
input[type=number], select, textarea {
  width: 100%; padding: 0.625rem 0.875rem;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 0.9375rem; font-family: var(--font-body);
  transition: border-color var(--ease);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
input::placeholder { color: var(--text-muted); }
.errorlist { list-style: none; color: #f87171; font-size: 0.9rem; margin-top: 0.3rem; font-family: 'Figtree', system-ui, sans-serif; }
.helptext { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.25rem; line-height: 1.5; font-family: 'Figtree', system-ui, sans-serif; }

/* ── ALERTS ──────────────────────────────────────────────────── */
.alert { padding: 0.875rem 1rem; border-radius: var(--radius-sm); font-size: 1rem; font-family: 'Figtree', system-ui, sans-serif; }
.alert-info    { background: var(--accent-dim); border: 1px solid rgba(56,189,248,0.2); color: var(--accent); }
.alert-warning { background: var(--gold-dim);   border: 1px solid rgba(245,158,11,0.2); color: var(--gold); }
.alert-danger  { background: var(--red-dim);    border: 1px solid rgba(239,68,68,0.2);  color: var(--red); }
.alert-success { background: var(--green-dim);  border: 1px solid rgba(16,185,129,0.2); color: var(--green); }

/* ── MESSAGES ────────────────────────────────────────────────── */
.messages { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.messages li { padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 1rem; font-family: 'Figtree', system-ui, sans-serif; }
.messages .success { background: var(--green-dim); border: 1px solid rgba(16,185,129,0.2); color: var(--green); }
.messages .error   { background: var(--red-dim);   border: 1px solid rgba(239,68,68,0.2);  color: #f87171; }
.messages .warning { background: var(--gold-dim);  border: 1px solid rgba(245,158,11,0.2); color: var(--gold); }
.messages .info    { background: var(--accent-dim);border: 1px solid rgba(56,189,248,0.2); color: var(--accent); }

/* ── RANK ────────────────────────────────────────────────────── */
.rank { font-family: var(--font-score); font-size: 1.1rem; color: var(--text-muted); min-width: 2rem; }
.rank-1 { color: var(--gold); }
.rank-2 { color: #94a3b8; }
.rank-3 { color: #b87333; }

/* ── FIXTURE DISPLAY ─────────────────────────────────────────── */
.fixture-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.team-home { display: flex; align-items: center; gap: 0.625rem; }
.team-away { display: flex; align-items: center; gap: 0.625rem; justify-content: flex-end; flex-direction: row-reverse; }
.team-badge { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.team-badge-lg { width: 40px; height: 40px; }
.team-name { font-weight: 600; font-size: 0.9375rem; white-space: nowrap; }
.team-name-sm { font-size: 0.8125rem; color: var(--text-subtle); }
.score-display {
  font-family: var(--font-score); font-size: 1.5rem;
  letter-spacing: 0.05em; color: var(--text);
  text-align: center; white-space: nowrap;
}
.score-sep { color: var(--text-subtle); margin: 0 2px; }

/* ── AUTH ────────────────────────────────────────────────────── */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-box { width: 100%; max-width: 420px; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; font-family: 'Figtree', system-ui, sans-serif; }
.auth-card label, .auth-card input, .auth-card button, .auth-card .errorlist { font-family: 'Figtree', system-ui, sans-serif; }
.auth-wrap .card, .auth-wrap .card h1, .auth-wrap .card label, .auth-wrap .card input, .auth-wrap .card button, .auth-wrap .card p, .auth-wrap .card .helptext, .auth-wrap .card .errorlist { font-family: 'Figtree', system-ui, sans-serif; }
.auth-brand { font-family: var(--font-horror); font-size: 2.25rem; letter-spacing: 3px; margin-bottom: 0.2rem; }
.auth-brand span { color: var(--accent); }
.auth-sub { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 2rem; font-family: 'Figtree', system-ui, sans-serif; }
.auth-footer { text-align: center; margin-top: 1.25rem; font-size: 0.875rem; color: var(--text-muted); font-family: 'Figtree', system-ui, sans-serif; }

/* ── UTILITIES ───────────────────────────────────────────────── */
.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-muted   { color: var(--text-muted); }
.text-subtle  { color: var(--text-subtle); }
.text-accent  { color: var(--accent); }
.text-gold    { color: var(--gold); }
.text-green   { color: var(--green); }
.text-red     { color: var(--red); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.font-display { font-family: var(--font-display); }
.font-score   { font-family: var(--font-score); }
.fs-sm  { font-size: 0.8125rem; }
.fs-xs  { font-size: 0.75rem; }
.uppercase { text-transform: uppercase; letter-spacing: 0.06em; }
.nowrap { white-space: nowrap; }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

/* ── SCORE INPUTS (predictions) ─────────────────────────────── */
.fr-inputs {
  display: flex; align-items: center; gap: 0.375rem; justify-content: center;
}
.score-stepper {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  flex-shrink: 0; width: 80px;
}
.score-chevron {
  background: none; border: none; color: var(--accent);
  cursor: pointer; padding: 0.1rem 0.5rem; line-height: 1;
  opacity: 0.55;
  transition: opacity var(--ease);
}
.score-chevron:hover { opacity: 1; }
.score-chevron:disabled { opacity: 0.15; cursor: not-allowed; }
.score-chevron svg { display: block; }
.score-input {
  width: 80px !important; min-width: 80px !important; max-width: 80px !important;
  height: 80px !important; min-height: 80px !important; max-height: 80px !important;
  flex-shrink: 0; flex-grow: 0;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: '28DaysLater', sans-serif !important;
  font-size: 2.75rem !important; font-weight: normal;
  text-align: center; padding: 0;
  -moz-appearance: textfield;
  transition: border-color var(--ease), background var(--ease);
}
.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.score-input:focus { outline: none; border-color: var(--accent); background: var(--surface-3); }
.score-input:disabled { opacity: 1; cursor: not-allowed; }
.is-ss .score-input:disabled { border-color: var(--accent); color: var(--text); }
.score-dash {
  font-family: 'Bebas Neue', 'Figtree', sans-serif;
  font-size: 2.5rem; font-weight: normal;
  color: var(--text-subtle);
  display: flex; align-items: center; justify-content: center;
  height: 80px;
  align-self: center;
  line-height: 1;
}

.pred-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; }
.lock-btn {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.3rem 0.5rem;
  font-size: 1rem; cursor: pointer; line-height: 1;
  transition: all var(--ease); color: var(--text-muted);
}
.lock-btn:hover { border-color: var(--gold); }
.lock-btn.is-locked { background: var(--gold-dim); border-color: rgba(245,158,11,0.35); }
.save-status {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--text-muted); white-space: nowrap;
}
.save-status.saving { color: var(--text-muted); }
.save-status.saved   { color: var(--green); }
.save-status.error   { color: var(--red); }

.my-pick {
  font-size: 0.75rem; color: var(--text-muted); text-align: right;
  white-space: nowrap;
}
.my-pick strong { font-family: var(--font-score); font-size: 1rem; color: var(--text-subtle); }

/* ── FIXTURE ROW (shared across all pages) ───────────────────── */
.fixtures-list {
  display: flex; flex-direction: column; gap: 0.5rem;
  max-width: 680px; margin: 0 auto;
  overflow: clip; /* clips rows that try to scroll above sticky date dividers */
}

.fixture-row {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.875rem 1.25rem;
  display: grid; grid-template-columns: 72px 1fr auto 1fr 72px;
  align-items: center; gap: 0.75rem;
  transition: border-color var(--ease);
  position: relative; z-index: 1;
}
.fixture-row:hover { border-color: var(--border-light); }
.fixture-row.is-ss {
  border-left: 5px solid var(--accent);
  border-color: var(--accent-dim);
  background: radial-gradient(ellipse 90% 100% at center, var(--ss-g1) 0%, var(--ss-g2) 55%, var(--surface) 100%);
}
.fixture-row.is-ss:hover {
  background: radial-gradient(ellipse 90% 100% at center, var(--ss-sel-g1) 0%, var(--ss-g2) 55%, var(--surface) 100%);
}
.fixture-row.is-selected {
  border-left: 5px solid var(--accent);
  border-color: var(--accent-dim);
  background: radial-gradient(ellipse 90% 100% at center, var(--ss-sel-g1) 0%, var(--ss-sel-g2) 55%, var(--surface) 100%);
}

/* Selectable rows (fixture setup) */
label.fixture-row { cursor: pointer; grid-template-columns: 36px 1fr auto 1fr; }
label.fixture-row:hover { border-color: var(--accent); }

.fr-status {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
  text-align: center; white-space: nowrap;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.fr-status .live-min { color: #2dd4bf; font-size: 0.9rem; }
.fr-status .live-min.injury { color: var(--red); }
.fr-status .live-min.ht { color: #2dd4bf; font-size: 0.9rem; }
.dot-live { animation: pulse-dot 1.2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100% { opacity:1; transform: scale(1); } 50% { opacity:0.5; transform: scale(0.7); } }

.fr-check {
  display: flex; align-items: center; justify-content: center;
}
.fr-check input[type=checkbox] {
  width: 18px; height: 18px; accent-color: var(--accent);
  cursor: pointer; flex-shrink: 0;
}

.fr-team {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.3rem; font-weight: 600; text-align: center;
}
.fr-team img {
  width: 52px; height: 52px; object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.35));
}

.fr-full  { font-family: var(--font-horror); font-size: 1.0625rem; font-weight: normal; white-space: nowrap; display: block; line-height: 1.2; }
.fr-short { font-family: var(--font-horror); font-size: 1rem; font-weight: normal; display: none; line-height: 1.2; }

@media (max-width: 600px) {
  .fr-full  { display: none; }
  .fr-short { display: block; }
  .fr-team img { width: 40px; height: 40px; }
}

.fr-box {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-width: 72px; padding: 0.375rem 0.75rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); text-align: center; flex-shrink: 0;
}
.fr-box-time {
  font-family: var(--font-score); font-size: 1.25rem;
  letter-spacing: 0.06em; color: var(--text-subtle); line-height: 1;
}
.fr-box-date {
  font-size: 0.65rem; color: var(--text-muted); margin-top: 0.2rem;
  letter-spacing: 0.04em;
}
.wc-my-pred-box {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  background: var(--surface-2); border: 1px solid var(--border-light);
  border-top: none; border-radius: 0 0 var(--radius) var(--radius);
  padding: 0.4rem 1rem; margin-bottom: 0.25rem;
}
.wc-my-pred-label {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
}
.wc-my-pred-score {
  font-family: 'Figtree', system-ui, sans-serif; font-size: 1.1rem; color: var(--text);
}
.wc-kickoff-label {
  position: sticky; top: 120px;
  z-index: 75; background: var(--bg);
  text-align: center; font-size: 0.7rem;
  color: var(--accent); font-family: var(--font-horror);
  padding: 0.3rem 0; margin-top: 0.75rem; margin-bottom: 0.2rem;
  border-bottom: 1px solid var(--border-light);
}

/* WC mobile — show 3-letter codes prominently */
@media (max-width: 600px) {
  .wc-flag { width: 36px !important; height: 36px !important; }
  .fr-full  { display: none; }
  .fr-short { display: block; font-size: 0.8rem; }
  .fixture-row { grid-template-columns: 36px 1fr auto 1fr 36px; padding: 0.625rem 0.75rem; }
  .wc-my-pred-box { padding: 0.3rem 0.75rem; }
  .wc-my-pred-score { font-size: 0.95rem; }
}
.fr-box-score {
  font-family: var(--font-score); font-size: 1.5rem;
  letter-spacing: 0.04em; color: #ffffff; line-height: 1;
}
.fr-box-score .sep { color: var(--text-subtle); margin: 0 2px; }
.fr-box.is-live  { border-color: rgba(45,212,191,0.4); background: rgba(45,212,191,0.06); }
.fr-box.is-live  .fr-box-score { color: #2dd4bf; }
.fr-box.is-finished { border-color: var(--border-light); }
.fr-box.is-finished .fr-box-score { color: #e2e2ff; }

.fr-badge { display: flex; justify-content: flex-end; align-items: center; }
.ss-pill {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim);
  border: 1px solid rgba(56,189,248,0.25);
  border-radius: 999px; padding: 0.15rem 0.5rem; white-space: nowrap;
}
.selected-num {
  font-family: var(--font-score); font-size: 1rem; color: var(--accent);
}

.date-divider {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: #38bdf8;
  padding-top: 0.5rem; padding-bottom: 0.5rem; margin-top: 0.25rem;
  position: sticky; top: 240px;
  z-index: 85; background: var(--bg);
}
.date-divider::before, .date-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.date-divider:first-child { padding-top: 0; margin-top: 0; }

@media (max-width: 600px) {
  .fixture-row         { grid-template-columns: 1fr auto 1fr; padding: 0.75rem 0.875rem; }
  label.fixture-row    { grid-template-columns: 1fr auto 1fr; }
  .fr-status, .fr-badge { display: none; }
  .fr-check            { display: none; }
  .fixture-row.is-ss, .fixture-row.is-selected { border-left-width: 6px; }
  .fr-team             { gap: 0.25rem; }
  .fr-box              { min-width: 64px; padding: 0.5rem 0.625rem; }
  .fr-box-time         { font-size: 1.375rem; }
  .fr-box-score        { font-size: 1.625rem; }
  .date-divider        { font-size: 0.9rem; }
}

/* ── THEME TOGGLE ────────────────────────────────────────────── */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  font-size: 1rem; line-height: 1; flex-shrink: 0;
  transition: background var(--ease), border-color var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); }

/* Mobile-bar toggle: shown on mobile, hidden on desktop */
.nav-theme-mobile { display: none; margin-left: auto; margin-right: 0.5rem; }
@media (max-width: 900px) {
  .nav-theme-mobile { display: flex; }
}

/* ── MOBILE NAV (mobile-first) ───────────────────────────────── */

/* Hamburger — visible by default, hidden on wide screens */
.nav-hamburger {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding: 0.5rem;
  background: none; border: none;
  color: #ffffff; cursor: pointer; flex-shrink: 0;
  border-radius: var(--radius-sm);
  transition: color var(--ease);
}
.nav-hamburger:hover { color: var(--text); }
.nav-hamburger svg { display: block; }

/* Nav links — hidden by default, shown on wide screens */
.nav-links { display: none; }
.nav-right  { display: none; }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 0.625rem 4rem 1rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  z-index: 99;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.nav-mobile.is-open { display: block; }

.nav-mobile-link {
  display: block; padding: 0.35rem 0.875rem;
  font-family: var(--font-horror); font-size: 1.875rem; font-weight: normal;
  letter-spacing: 0.05em; text-transform: uppercase; text-align: center;
  color: var(--text-muted); border-radius: var(--radius-sm);
  transition: background var(--ease), color var(--ease);
  text-decoration: none;
}
.nav-mobile-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-mobile-link.active { color: var(--accent); }

.nav-mobile-section {
  font-size: 1.25rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
  padding: 0.75rem 0.875rem 0.25rem; text-align: center;
}
.nav-mobile-sep {
  border: none; border-top: 1px solid var(--border); margin: 0.5rem 0;
}
.nav-mobile-user {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 0.875rem 0;
  font-size: 0.8125rem; color: var(--text-muted);
}
.nav-mobile-user strong { color: var(--text-subtle); font-weight: 600; }

/* Desktop: show nav links, hide hamburger */
@media (min-width: 901px) {
  .nav-links    { display: flex; align-items: center; flex: 1; height: 100%; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-right    { display: flex; align-items: center; gap: 1.25rem; flex-shrink: 0; padding-left: 1rem; margin-left: auto; }
  .nav-hamburger { display: none; }
}

/* ── RESPONSIVE — TABLET ─────────────────────────────────────── */
@media (max-width: 900px) and (min-width: 641px) {
  .container { padding: 0 3rem; }
  .nav-inner { padding: 0 3rem; }
  .nav-mobile { padding: 0.625rem 3rem 1rem; }
}

/* ── RESPONSIVE — MOBILE ─────────────────────────────────────── */
@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .nav-inner { padding: 0 1.25rem; }
  .nav-mobile { padding: 0.625rem 1.25rem 1rem; }
  .page { padding-top: 1.5rem; padding-bottom: 3rem; }
  .page-hd { margin-bottom: 1.25rem; }
  .page-title { font-size: 1.375rem; }
  .page-hd.flex { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  /* Card padding */
  .card { padding: 1.125rem; }

  /* Table cells tighter */
  td, th { padding: 0.75rem 0.75rem; }

  /* Auth */
  .auth-card { padding: 1.75rem 1.25rem; }
  .auth-brand { font-size: 3.25rem; }
}
