/* Big 12-inspired palette: conference red (Pantone 187), steel gray (Pantone 428), black. */
:root {
  --b12-red: #c41230;
  --b12-steel: #cfd4d8;
  --b12-black: #0d0f12;

  --bg: #eceef0;
  --card: #ffffff;
  --ink: #0d0f12;
  --muted: #5f6670;
  --line: #dde1e5;
  --soft: #f2f4f6;
  --accent: var(--b12-red);
  --accent-ink: #ffffff;
  --live: #e0262f;
  --win: #15803d;
  --loss: #b91c1c;
  --warn-bg: #fff6e0;
  --warn-ink: #7a5300;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .07);
  --display: "Barlow Condensed", "Arial Narrow", Inter, system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d10;
    --card: #15181d;
    --ink: #eceef1;
    --muted: #9aa2ae;
    --line: #262b33;
    --soft: #1c2027;
    --accent: #ef2b4b;
    --accent-ink: #ffffff;
    --win: #4ade80;
    --loss: #f87171;
    --warn-bg: #2e2510;
    --warn-ink: #f2c66d;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "tnum" 1;
}
a { color: var(--accent); }
button { font: inherit; color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 12.5px; font-weight: 500; }

/* header */
.unofficial { background: var(--b12-black); color: #b9c0c8; font-size: 12px; border-bottom: 1px solid #22262c; }
.unofficial .wrap { padding-top: 6px; padding-bottom: 6px; }
.unofficial b { color: #fff; font-weight: 600; }
.top { background: var(--b12-black); color: #fff; border-bottom: 5px solid var(--b12-red); margin-bottom: 22px; }
.top .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mark { width: 90px; height: 72px; flex: none; }
h1 { margin: 0; font-family: var(--display); font-style: italic; font-size: 48px; font-weight: 800; letter-spacing: .01em; line-height: .9; text-transform: uppercase; }
h1 span { color: var(--b12-red); }
.tagline { margin: 4px 0 0; font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.top .sub { margin: 6px 0 0; color: var(--b12-steel); font-size: 14px; }
.status { font-size: 13px; color: var(--b12-steel); display: flex; align-items: center; gap: 6px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); margin-right: 6px; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (max-width: 520px) { h1 { font-size: 36px; } .tagline { font-size: 15px; } .mark { width: 60px; height: 48px; } .brand { align-items: flex-start; } .top .sub { display: none; } }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); margin-bottom: 22px; min-width: 0; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
h2 { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; line-height: 1.05; }
h3 { margin: 0 0 8px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.footnote { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; }

/* outcome */
.outcome { border-top: 4px solid var(--accent); }
.outcome-head h2 { font-size: 30px; }
.outcome-head .sub { margin: 6px 0 0; color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.matchup { display: flex; align-items: stretch; gap: 14px; margin-top: 14px; }
.seed { flex: 1; border-radius: 10px; padding: 14px 16px; background: var(--soft); border-left: 8px solid var(--c); display: flex; align-items: center; gap: 14px; min-width: 0; }
.seed-text { display: flex; flex-direction: column; min-width: 0; }
.seed-n { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.seed-name { font-family: var(--display); font-size: 36px; font-weight: 800; text-transform: uppercase; line-height: 1; margin-top: 2px; }
.seed-mascot { color: var(--muted); font-size: 13px; }
.vs { align-self: center; font-family: var(--display); font-size: 22px; font-weight: 800; color: var(--accent); text-transform: uppercase; }
@media (max-width: 520px) { .matchup { flex-direction: column; } .vs { align-self: flex-start; padding-left: 8px; } }
.contenders { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.contender { text-align: left; background: var(--soft); border: 0; border-left: 6px solid var(--c); border-radius: 10px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; }
.contender:hover { outline: 1px solid var(--line); }
.c-name { font-weight: 600; display: flex; align-items: center; gap: 7px; }
.c-pct { font-family: var(--display); font-size: 32px; font-weight: 800; line-height: 1.05; }
.warn { background: var(--warn-bg); color: var(--warn-ink); padding: 10px 12px; border-radius: 10px; margin: 14px 0 0; font-size: 14px; }
.why { margin-top: 14px; font-size: 14px; }
.why summary { cursor: pointer; font-weight: 600; }
.why ul { margin: 8px 0 0; padding-left: 18px; }
.why li { margin-bottom: 6px; color: var(--muted); }
.why li b { color: var(--ink); }

/* board */
.table-scroll { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
.board { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.board th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 6px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.board td { padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.board tbody tr:hover td, .board tbody tr.focused td { background: var(--soft); }
/* Title game cutoff: under the No. 2 team in the current standings. */
.board tbody tr:nth-child(2) td { border-bottom: 3px solid var(--accent); }
.board tbody tr:nth-child(-n+2) .pos { color: var(--accent); font-weight: 800; }
.board .num { text-align: right; }
.board .pos { width: 22px; color: var(--muted); font-size: 12.5px; flex: none; }
.board sup { font-size: 10px; cursor: help; margin-left: 1px; }
.board .strong { font-weight: 700; }
.board .proj { color: var(--accent); font-weight: 700; }
.board th.tm, .board td.tm { position: sticky; left: 0; z-index: 1; background: var(--card); min-width: 168px; box-shadow: 1px 0 0 var(--line); }
.board th.wk, .board td.wk { text-align: center; padding-left: 3px; padding-right: 3px; }
.board td.wk { padding-top: 5px; padding-bottom: 5px; }
.tm-btn { display: flex; align-items: center; gap: 7px; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; width: 100%; }
.tm-btn .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.tm-btn:hover .nm { text-decoration: underline; text-underline-offset: 3px; }
.tm-btn .abbr { display: none; }
.rk { font-size: 11px; color: var(--muted); font-weight: 600; }
.logo { display: inline-flex; flex: none; align-items: center; justify-content: center; vertical-align: middle; }
.logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.logo.sm { width: 24px; height: 24px; }
.logo.md { width: 32px; height: 32px; }
.logo.lg { width: 52px; height: 52px; }
.logo.broken { display: none; }
.chip { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c, #888); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); flex: none; }
.bye { color: var(--muted); font-size: 11.5px; opacity: .7; }
.cell { width: 60px; height: 42px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; vertical-align: middle;
  border: 1px solid var(--line); border-left: 4px solid var(--o); border-radius: 7px; background: var(--card); cursor: pointer; padding: 0; transition: background .12s, box-shadow .12s, opacity .12s; }
.cell + .cell { margin-left: 4px; }
.cell:hover { box-shadow: inset 0 0 0 1px var(--c); }
.cell .opp { font-size: 12px; font-weight: 700; line-height: 1.1; }
.cell .res { font-size: 11px; color: var(--muted); font-weight: 600; line-height: 1.1; }
.cell.win { background: color-mix(in srgb, var(--win) 14%, var(--card)); border-color: var(--win); border-left-color: var(--o); }
.cell.win .res { color: var(--win); font-size: 13px; font-weight: 800; }
.cell.loss { background: color-mix(in srgb, var(--loss) 10%, var(--card)); border-color: color-mix(in srgb, var(--loss) 45%, var(--line)); border-left-color: var(--o); }
.cell.loss .res { color: var(--loss); font-size: 13px; font-weight: 800; }
.cell.loss .opp { opacity: .65; }
.cell.final { cursor: default; border-style: solid; }
.cell.final.win { background: #15803d; border-color: #15803d; border-left-color: var(--o); }
.cell.final.loss { background: #b91c1c; border-color: #b91c1c; border-left-color: var(--o); }
.cell.final .opp, .cell.final .res { color: #fff; opacity: 1; font-size: 11.5px; }
.cell.final:hover { box-shadow: none; }
.cell.is-live { outline: 2px solid var(--live); outline-offset: 1px; }
.odds { width: 130px; }
.odds-in { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.odds-in b { min-width: 46px; text-align: right; font-size: 13px; }
.bar { flex: 1; max-width: 70px; height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--c); border-radius: 3px; transition: width .3s; }
.lock { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 1px 5px; border-radius: 4px; color: #fff; vertical-align: 2px; }
.lock.in { background: #15803d; }
.lock.out { background: #5f6670; }
.simming .odds-in b, .simming .c-pct { opacity: .5; }
@media (max-width: 600px) {
  .board th.tm, .board td.tm { min-width: 0; }
  .tm-btn .full, .tm-btn .rk { display: none; }
  .tm-btn .abbr { display: inline; }
  .cell { width: 54px; }
  .odds { width: 96px; }
  .bar { max-width: 36px; }
}
.board-card > h2 { margin-bottom: 8px; }
.pickbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
.pick-progress { flex: 1 1 220px; min-width: 0; }
.pick-label { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.pick-label b { color: var(--ink); font-weight: 700; }
.pick-meter { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.pick-meter span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .25s; }
.pickbar .actions { flex: none; }
.pickbar .actions button { white-space: nowrap; }
@media (max-width: 520px) { .pickbar .actions { width: 100%; } .pickbar .actions button { flex: 1 1 auto; padding: 7px 8px; } }
.asof { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.asof b { color: var(--ink); }
.asof-tag { display: inline-block; background: var(--ink); color: var(--card); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; margin-right: 4px; vertical-align: 1px; }
.how { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); }
.how .w { color: var(--win); }
.how .l { color: var(--loss); }
.cutoff-key { display: inline-block; width: 18px; height: 3px; background: var(--accent); vertical-align: middle; margin-right: 4px; border-radius: 2px; }

/* toolbar + secondary lists */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-bottom: 12px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.actions button, #btn-best { border: 1px solid var(--line); background: var(--card); padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; }
.actions button:hover { background: var(--soft); }
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.actions button.primary:hover { background: var(--accent); filter: brightness(1.08); }
.week { margin-top: 14px; }
.game { padding: 8px 0; border-top: 1px solid var(--line); }
.meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.sides { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.at { color: var(--muted); font-size: 12px; }
.side { display: flex; align-items: center; gap: 8px; min-width: 0; border: 1px solid var(--line); background: var(--card); border-radius: 9px; padding: 8px 10px; cursor: pointer; text-align: left; transition: background .12s, border-color .12s, opacity .12s; }
.side:hover { border-color: var(--c); }
.side .nm { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .pct { font-size: 12px; color: var(--muted); }
.side .abbr { display: none; }
@media (max-width: 480px) { .side .full { display: none; } .side .abbr { display: inline; } .side { padding: 8px; gap: 6px; } }
.side .chip { background: var(--c); }
.side.picked { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); background: color-mix(in srgb, var(--c) 12%, var(--card)); }
.side.picked .pct::after { content: " ✓"; color: var(--ink); font-weight: 700; }
.side.lost { opacity: .45; }
.nc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 18px; }
.nonconf summary, .recent summary { cursor: pointer; font-weight: 600; padding: 10px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.results { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.results li { display: flex; gap: 8px; align-items: center; padding: 5px 0; }

/* focus */
.focus-head h2 { display: flex; align-items: center; gap: 8px; }
.focus-head .chip { width: 14px; height: 14px; }
.x { border: 0; background: var(--soft); width: 30px; height: 30px; border-radius: 50%; font-size: 18px; cursor: pointer; line-height: 1; }
.verdict { font-size: 17px; font-weight: 600; margin: 0 0 14px; }
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.guide { list-style: none; margin: 0; padding: 0; }
.guide li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.guide .root { display: flex; align-items: center; gap: 6px; min-width: 0; }
.guide .swing { white-space: nowrap; font-weight: 600; }
#btn-best { margin-top: 14px; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* server-rendered snapshot (shown until the live page loads) */
.snapshot p, .snapshot li { font-size: 14.5px; }
.snapshot ul { padding-left: 20px; }
.snap-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 14px; }
.snap-table th, .snap-table td { text-align: left; padding: 6px; border-bottom: 1px solid var(--line); }

/* this week's scenarios */
.sc-summary { margin: 0 0 8px; font-size: 14px; }
.sc-list { list-style: none; margin: 8px 0 0; padding: 0; }
.sc-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.sc-list .logo { margin-top: 1px; }
.sc-team { font-weight: 700; }
.sc-line { margin: 2px 0 0; font-size: 14px; line-height: 1.5; }
.sc-line b { font-weight: 800; }
.sc-line.in b { color: var(--win); }
.sc-line.out b { color: var(--loss); }
.sc-line .or { font-weight: 800; text-transform: uppercase; font-size: 11.5px; letter-spacing: .05em; color: var(--muted); padding: 0 2px; }
.focus-week { background: var(--soft); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; }
.focus-week h3 { margin-bottom: 4px; }

/* rules */
.rules { font-size: 14.5px; }
.rules ol, .rules ul { padding-left: 20px; }
.rules li { margin-bottom: 6px; }
.rules h3 { margin-top: 18px; }

/* footer */
.foot { background: var(--b12-black); color: #b9c0c8; border-top: 5px solid var(--b12-red); margin-top: 8px; font-size: 13px; }
.foot .wrap { padding-top: 22px; padding-bottom: 28px; }
.foot p { margin: 0 0 8px; max-width: 820px; }
.foot b { color: #fff; }
.foot a { color: #fff; }
.foot .copyright { margin-top: 14px; padding-top: 12px; border-top: 1px solid #262b33; color: #8a929c; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; box-shadow: 0 6px 20px rgba(0,0,0,.2); max-width: calc(100% - 32px); z-index: 10; }
