:root {
  color-scheme: dark;
  --ink: #f5f8ff;
  --muted: #8794a9;
  --subtle: #55647a;
  --navy: #06101f;
  --panel: rgba(12, 25, 44, 0.82);
  --panel-solid: #0c192c;
  --line: rgba(152, 176, 212, 0.15);
  --blue: #2d7dff;
  --cyan: #27d9ff;
  --red: #ff3d59;
  --gold: #ffbd4a;
  --green: #34d399;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(30, 87, 165, 0.22), transparent 38rem),
    linear-gradient(180deg, #071322 0%, #050b15 55%, #07111d 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.ambient { position: fixed; border-radius: 999px; filter: blur(100px); opacity: .13; pointer-events: none; }
.ambient-one { width: 380px; height: 380px; background: var(--blue); top: 28%; left: -220px; }
.ambient-two { width: 340px; height: 340px; background: var(--red); top: 55%; right: -230px; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(5, 13, 24, 0.8);
  backdrop-filter: blur(18px);
}

.brand { display: flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(75, 141, 255, .7);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(45,125,255,.3), rgba(39,217,255,.06));
  color: #72a7ff;
  box-shadow: inset 0 0 18px rgba(45,125,255,.2), 0 0 24px rgba(45,125,255,.12);
  transform: rotate(45deg);
}
.brand-mark::first-letter { transform: rotate(-45deg); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: .15em; }
.brand small { margin-top: 3px; color: #75849a; font-size: 9px; font-weight: 700; letter-spacing: .22em; }
.brand-mark.small { display: inline-grid; width: 22px; height: 22px; margin-right: 8px; border-radius: 6px; font-size: 10px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.live-pill, .model-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: #9aa8bc;
  background: rgba(255,255,255,.03);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.live-pill { color: #86f4c9; border-color: rgba(52,211,153,.2); }
.live-pill i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: pulse 2s infinite; }

main { position: relative; width: min(1240px, calc(100% - 40px)); margin: 0 auto; }

.hero {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: 70px;
  min-height: 510px;
  padding: 76px 0 48px;
}
.eyebrow, .section-kicker { margin: 0 0 18px; color: #6e9fe8; font-size: 11px; font-weight: 800; letter-spacing: .2em; }
.eyebrow span { display: inline-block; width: 28px; height: 1px; margin: 0 10px 3px 0; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
h1 { max-width: 760px; margin: 0; font-size: clamp(52px, 6.2vw, 86px); line-height: .98; letter-spacing: -.055em; }
h1 em { color: transparent; font-style: normal; background: linear-gradient(90deg, #5696ff, #29d2ff 65%, #94edff); background-clip: text; -webkit-background-clip: text; }
.hero-subtitle { max-width: 630px; margin: 26px 0 18px; color: #9aa8bb; font-size: 17px; line-height: 1.7; }
.refresh-line { color: #586a82; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.scoreboard-shell {
  position: relative;
  min-height: 275px;
  overflow: hidden;
  border: 1px solid rgba(90,145,230,.25);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(19,40,69,.95), rgba(7,17,31,.96));
  box-shadow: var(--shadow), inset 0 0 70px rgba(45,125,255,.04);
}
.scoreboard-shell::before, .scoreboard-shell::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(82,133,211,.1); }
.scoreboard-shell::before { width: 330px; height: 330px; right: -130px; bottom: -180px; }
.scoreboard-shell::after { width: 190px; height: 190px; right: -60px; bottom: -110px; }
.scoreboard-top { display: flex; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); color: #76869d; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.scoreboard-top span:last-child { color: var(--green); }
.scoreboard-content { display: flex; align-items: center; gap: 30px; padding: 38px 30px; }
.signal-ring { position: relative; display: grid; flex: 0 0 126px; place-items: center; height: 126px; border-radius: 50%; border: 9px solid rgba(45,125,255,.12); background: radial-gradient(circle, rgba(45,125,255,.11), transparent 68%); box-shadow: inset 0 0 0 2px rgba(45,125,255,.32), 0 0 40px rgba(45,125,255,.12); }
.signal-ring::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border-top: 9px solid var(--blue); border-right: 9px solid var(--cyan); transform: rotate(30deg); filter: drop-shadow(0 0 7px rgba(45,125,255,.45)); }
.signal-ring span { margin-top: 10px; font-size: 30px; font-weight: 800; letter-spacing: -.04em; }
.signal-ring small { margin-top: -30px; color: #6f819a; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.signal-copy span { color: #6d7f97; font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.signal-copy strong { display: block; margin: 8px 0; font-size: 25px; }
.signal-copy small { color: #8ea0b6; }
.scan-line { position: absolute; inset: 0 auto auto 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(54,190,255,.5), transparent); animation: scan 4s ease-in-out infinite; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 6px 0 100px; }
.metric-card { position: relative; overflow: hidden; min-height: 150px; padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(16,31,52,.86), rgba(8,18,32,.88)); box-shadow: 0 12px 36px rgba(0,0,0,.15); }
.metric-card::before { content: ""; position: absolute; top: 0; left: 20px; width: 45px; height: 2px; background: var(--card-accent); box-shadow: 0 0 14px var(--card-accent); }
.metric-card::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; background: var(--card-accent); filter: blur(60px); opacity: .08; right: -20px; bottom: -40px; }
.accent-blue { --card-accent: var(--blue); } .accent-red { --card-accent: var(--red); } .accent-cyan { --card-accent: var(--cyan); } .accent-gold { --card-accent: var(--gold); }
.metric-label { color: #76869e; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.metric-card strong { display: block; margin: 14px 0 7px; font-size: 31px; letter-spacing: -.04em; }
.metric-card small { color: #596a81; font-size: 11px; }

.board-section, .standings-section { margin-bottom: 95px; scroll-margin-top: 100px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-kicker { margin-bottom: 8px; }
h2 { margin: 0; font-size: 34px; letter-spacing: -.035em; }
.section-note { max-width: 420px; margin: 0; color: #63748b; font-size: 12px; }
.date-controls { display: flex; gap: 8px; }
.date-controls button, .date-picker { height: 42px; border: 1px solid var(--line); border-radius: 11px; color: #b8c5d6; background: rgba(13,27,47,.82); }
.date-controls button { width: 42px; cursor: pointer; font-size: 23px; transition: border-color .2s, background .2s, transform .2s; }
.date-controls button:hover { border-color: rgba(66,132,238,.55); background: rgba(35,79,144,.25); transform: translateY(-1px); }
.date-controls .today-button { width: auto; padding: 0 15px; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.date-picker { position: relative; display: grid; min-width: 190px; place-items: center; padding: 0 16px; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.date-picker input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.board-summary { display: flex; gap: 22px; margin: -8px 0 20px; color: #62738a; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.board-summary b { color: #aebdd0; }

.games-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.game-card { position: relative; overflow: hidden; min-height: 390px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, rgba(15,31,53,.94), rgba(7,17,31,.95)); box-shadow: 0 18px 52px rgba(0,0,0,.2); transition: transform .25s, border-color .25s, box-shadow .25s; }
.game-card:hover { transform: translateY(-3px); border-color: rgba(74,134,230,.35); box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.game-topline { display: flex; align-items: center; justify-content: space-between; min-height: 49px; padding: 0 20px; border-bottom: 1px solid var(--line); color: #74859c; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.status-tag { display: inline-flex; align-items: center; gap: 6px; }
.status-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #74859c; }
.status-tag.live { color: #7af2c3; } .status-tag.live::before { background: var(--green); box-shadow: 0 0 9px var(--green); }
.status-tag.final { color: #9caac0; } .status-tag.final::before { background: #8492a6; }
.matchup { display: grid; grid-template-columns: 1fr 48px 1fr; align-items: start; gap: 8px; padding: 27px 24px 18px; }
.team { min-width: 0; text-align: center; }
.team-logo { display: grid; width: 76px; height: 76px; margin: 0 auto 12px; place-items: center; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; background: radial-gradient(circle at 50% 38%, rgba(255,255,255,.08), rgba(255,255,255,.02)); }
.team-logo img { width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,.35)); }
.logo-fallback { display: none; color: #c2cfdf; font-size: 18px; font-weight: 900; }
.team h3 { overflow: hidden; margin: 0; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.team .record { display: block; margin-top: 6px; color: #75859b; font-size: 11px; }
.versus { padding-top: 28px; color: #4d5d73; font-size: 10px; font-weight: 900; letter-spacing: .15em; text-align: center; }
.team-probability { margin-top: 13px; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.team-probability small { display: block; margin-top: 2px; color: #5e7088; font-size: 8px; letter-spacing: .14em; }
.winner .team-logo { border-color: rgba(45,125,255,.32); box-shadow: inset 0 0 28px rgba(45,125,255,.08), 0 0 24px rgba(45,125,255,.06); }
.winner .team-probability { color: #77aaff; }
.probability-track { display: flex; height: 5px; margin: 0 24px; overflow: hidden; border-radius: 999px; background: #1d2c41; }
.away-prob { background: linear-gradient(90deg, #ff4660, #ff6c73); transition: width .8s ease; }
.home-prob { background: linear-gradient(90deg, #35c7ff, #3b78ff); transition: width .8s ease; }
.prediction-callout { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 21px 20px 19px; padding: 15px 16px; border: 1px solid rgba(68,127,218,.18); border-radius: 13px; background: rgba(30,67,123,.13); }
.prediction-callout span { display: block; color: #65778f; font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.prediction-callout strong { display: block; margin-top: 5px; font-size: 14px; }
.confidence-badge { flex: 0 0 auto; padding: 7px 9px; border: 1px solid rgba(69,132,229,.24); border-radius: 8px; color: #84adf0; background: rgba(42,91,164,.13); font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.game-meta { display: flex; justify-content: space-between; gap: 16px; padding: 0 22px 19px; color: #53657b; font-size: 9px; }
.final-score { margin-top: 12px; font-size: 30px; font-weight: 900; }
.final-winner h3 { color: #8bb2f7; }
.empty-state { grid-column: 1 / -1; min-height: 280px; padding: 60px 24px; border: 1px dashed rgba(112,140,181,.2); border-radius: 20px; color: #687a91; text-align: center; }
.empty-state strong { display: block; margin-bottom: 10px; color: #b9c6d7; font-size: 21px; }
.skeleton-card { min-height: 390px; background: linear-gradient(100deg, rgba(15,31,53,.7) 35%, rgba(26,49,79,.9) 50%, rgba(15,31,53,.7) 65%); background-size: 300% 100%; animation: shimmer 1.5s infinite; }

.table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(10,22,39,.78); box-shadow: 0 18px 48px rgba(0,0,0,.16); }
table { width: 100%; border-collapse: collapse; }
th { height: 49px; padding: 0 18px; border-bottom: 1px solid var(--line); color: #5f7087; font-size: 8px; letter-spacing: .16em; text-align: left; }
td { height: 66px; padding: 0 18px; border-bottom: 1px solid rgba(130,158,196,.08); color: #9eacbf; font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: rgba(49,92,154,.08); }
.rank { color: #566a84; font-variant-numeric: tabular-nums; }
.table-team { display: flex; align-items: center; gap: 12px; color: #d4ddea; font-weight: 700; }
.table-logo { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: rgba(255,255,255,.035); }
.table-logo img { width: 29px; height: 29px; object-fit: contain; }
.positive { color: #66dcb1; } .negative { color: #ff7183; }
.form-dots { display: flex; gap: 4px; }
.form-dot { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; font-size: 7px; font-weight: 900; }
.form-dot.win { color: #7aefc2; background: rgba(52,211,153,.13); }
.form-dot.loss { color: #ff8291; background: rgba(255,61,89,.12); }
.table-loading { height: 150px; color: #607189; text-align: center; }

.model-note { display: flex; gap: 16px; margin: 0 0 90px; padding: 20px 22px; border: 1px solid rgba(64,123,206,.15); border-radius: 15px; background: rgba(21,50,87,.12); }
.note-icon { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(74,137,229,.3); border-radius: 50%; color: #75a5ea; font-size: 12px; font-weight: 800; }
.model-note strong { font-size: 12px; }
.model-note p { margin: 5px 0 0; color: #687a92; font-size: 11px; line-height: 1.6; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 120px; padding: 30px max(24px, calc((100vw - 1240px) / 2)); border-top: 1px solid var(--line); color: #53647b; font-size: 10px; letter-spacing: .09em; }
footer div { display: flex; align-items: center; color: #8090a6; font-weight: 800; }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes scan { 0%,100% { transform: translateY(40px); opacity: 0; } 40%,60% { opacity: 1; } 50% { transform: translateY(230px); } }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 25px; padding-top: 60px; }
  .scoreboard-shell { min-height: 230px; }
  .scoreboard-content { justify-content: center; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .games-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-note { display: none; }
  .table-wrap { overflow-x: auto; }
  table { min-width: 760px; }
}

@media (max-width: 600px) {
  .site-header { height: 67px; padding: 0 16px; }
  .brand strong { font-size: 11px; }
  .brand small, .model-chip { display: none; }
  main { width: min(100% - 24px, 1240px); }
  .hero { min-height: auto; padding: 52px 0 40px; }
  h1 { font-size: clamp(43px, 14vw, 62px); }
  .hero-subtitle { font-size: 15px; }
  .scoreboard-content { gap: 19px; padding-inline: 18px; }
  .signal-ring { flex-basis: 105px; height: 105px; }
  .signal-copy strong { font-size: 20px; }
  .metrics-grid { gap: 10px; margin-bottom: 75px; }
  .metric-card { min-height: 130px; padding: 20px 16px; }
  .metric-card strong { font-size: 25px; }
  .date-controls { width: 100%; }
  .date-picker { min-width: 0; flex: 1; }
  .date-controls .today-button { display: none; }
  .matchup { padding-inline: 14px; }
  .team-logo { width: 65px; height: 65px; }
  .team-logo img { width: 51px; height: 51px; }
  .team h3 { font-size: 14px; }
  .game-meta { flex-direction: column; gap: 5px; }
  .board-summary { gap: 12px; flex-wrap: wrap; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
