:root {
  color-scheme: light;
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --error: #a52c36;
  --focus: #075bc9;
  --input: #eef5fb;
  --site-blue: #075bc9;
  --site-blue-2: #0a6ddd;
  --site-navy: #0d2943;
  --site-lime: #c8f040;
  --site-green: #14956d;

  --bg: #f5f8fd;
  --surface: #ffffff;
  --surface-2: #eef5fb;
  --border: #d9e3ee;
  --text: #0d2943;
  --muted: #637487;
  --accent: #075bc9;
  --accent-strong: #075bc9;
  --accent-soft: rgba(7,91,201,.08);
  --success: #14956d;
  --shadow: 0 16px 42px rgba(13,41,67,.08);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --error: #ff9ba4;
  --focus: #b8d8ff;
  --input: #123552;
  --bg: #081a2b;
  --surface: #0d2943;
  --surface-2: #123552;
  --border: #294861;
  --text: #f7fbff;
  --muted: #b7c8d7;
  --accent: #69aef6;
  --accent-strong: #1678e5;
  --accent-soft: rgba(105,174,246,.12);
  --success: #52c49b;
  --shadow: 0 18px 46px rgba(0,0,0,.24);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% -10%, rgba(7,91,201,.055), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--site-blue) 0 82%, var(--site-lime) 82% 100%);
}
button, input, select, textarea, a { font: inherit; }
button { color: inherit; }
.site-shell { width: min(100%, 980px); margin: 0 auto; padding: 0 24px 40px; }

.topbar {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 10px;
  flex: 0 0 auto;
  box-shadow: 0 5px 14px rgba(13,41,67,.12);
}
.brand-wordmark {
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.65px;
  font-weight: 850;
  color: var(--text);
  white-space: nowrap;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--site-navy);
  font-size: 11px;
  letter-spacing: 1.45px;
  font-weight: 900;
  white-space: nowrap;
}
html[data-theme="dark"] .live-badge { color: var(--text); }
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--site-lime);
  box-shadow: 0 0 0 3px rgba(200,240,64,.15);
}

.top-actions { display: flex; gap: 10px; }
.icon-btn {
  width: 44px; height: 44px; min-width:44px; min-height:44px; padding:0; flex-shrink:0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(13,41,67,.04);
}
.icon-btn { color:var(--accent); }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }

.live-footer {
  margin-top:42px;
  padding:24px 0 70px;
  border-top:1px solid var(--border);
  color:var(--muted);
  text-align:left;
  font-size:13px;
  line-height:1.8;
}
.footer-brand { color:var(--text); font-weight:850; font-size:16px; }
.footer-note { font-size:12px; opacity:.75; }


/* Shared Live components: schedules/results/standings are the visual reference. */
[hidden] { display:none !important; }
h1 { margin:0; font-size:clamp(30px,5vw,46px); line-height:1.05; letter-spacing:-1.25px; overflow-wrap:anywhere; }
h2 { font-size:24px; letter-spacing:-.4px; }
a { color:var(--accent); text-underline-offset:3px; }
button:disabled { opacity:.55; cursor:default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex="-1"]:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
.skip-link { position:absolute; left:16px; top:-80px; z-index:40; background:var(--surface); color:var(--text); padding:12px; border-radius:10px; }
.skip-link:focus { top:12px; }
.top-actions { align-items:center; }
.account-link { color:var(--text); font-size:14px; font-weight:600; text-decoration:none; }
.ui-button { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:11px 18px; border:1px solid var(--border); border-radius:14px; background:var(--surface); color:var(--text); font-weight:800; text-decoration:none; cursor:pointer; }
.ui-primary { color:#fff; background:var(--accent-strong); border-color:var(--accent-strong); }
.ui-button:hover { filter:brightness(.96); }
.ui-primary:hover { filter:brightness(1.08); }
.live-footer a { color:var(--accent); }
.live-footer p { margin:6px 0 0; }
@media (min-width:760px) { .site-shell { padding-left:32px; padding-right:32px; } }
@media (max-width:600px) {
 .site-shell { padding:0 16px 28px; }
 .topbar { height:auto; min-height:72px; flex-wrap:wrap; gap:12px; padding:12px 0; margin-bottom:18px; }
 .brand { gap:8px; }
 .brand-logo { width:36px; height:36px; border-radius:9px; }
 .brand-wordmark { font-size:18px; }
 .live-badge { height:30px; padding:0 10px; font-size:10px; letter-spacing:1.2px; }
 .top-actions { gap:7px; }
 .top-actions:has(.account-link) { width:100%; justify-content:flex-end; }
 .account-link { margin-right:auto; white-space:nowrap; }
 h1 { font-size:31px; letter-spacing:-.8px; }
}
@media (max-width:430px) { .live-badge { padding:0 5px; gap:3px; font-size:9px; letter-spacing:.5px; } }
@media (max-width:380px) { .brand-wordmark { font-size:14px; } .brand-logo { width:26px; height:26px; } .brand { gap:4px; } .top-actions { gap:4px; } }
@media (prefers-reduced-motion:reduce) { * { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
@media (forced-colors:active) { .icon-btn, .ui-button, .live-badge { border:1px solid ButtonText; } }
/* Shared by account sign-in, signup, registration, and password reset. */
.password-field { display:block;position:relative;width:100%; }
.password-field > input { padding-right:78px!important;width:100%;box-sizing:border-box; }
.password-field > .password-visibility { position:absolute;right:5px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:62px;min-height:36px;margin:0;padding:6px 10px;border:0;border-radius:8px;background:var(--surface-2);color:var(--accent);font:inherit;font-size:13px;font-weight:750;cursor:pointer; }
.password-field > .password-visibility:focus-visible { outline:3px solid var(--accent);outline-offset:2px; }
