/* Game-menu look. The page sits in a stadium (a day or night photo behind
   everything), with frosted-glass panels on top.
   Dark ("night game") is the default; light ("day game") is the same layout in
   daylight. Lime marks what is selected, mint is Risk-Reward, emerald is
   upsets, red is only for losses. Every colour comes from a token. */

:root {
  color-scheme: dark;
  --bg: #050b10; --bg-top: #0a1824;
  --stadium: url("/static/stadium-night.webp");
  --veil: linear-gradient(180deg, rgba(4, 9, 14, .78) 0%, rgba(4, 9, 14, .62) 45%, rgba(4, 9, 14, .45) 100%);
  --panel: rgba(14, 24, 33, .66); --panel-solid: #0c161e; --panel-2: rgba(255, 255, 255, .05);
  --ink: #f2f6f8; --ink-2: #c3ccd3; --muted: #8796a3; --dim: #56646f;
  --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .17); --line-3: rgba(255, 255, 255, .32);
  --accent: #7dfa5a; --fill: #7dfa5a; --fill-hover: #a8ff8c; --fill-ink: #062a0c; --glow: rgba(125, 250, 90, .45);
  --mint: #4fe6c0; --mint-text: #4fe6c0; --mint-glow: rgba(79, 230, 192, .45);
  --emerald: #1ec97a; --emerald-text: #2fdc8b; --emerald-glow: rgba(30, 201, 122, .45);
  --tile-bg: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  --loss: #ff6a5c; --loss-bg: rgba(255, 106, 92, .14); --loss-line: rgba(255, 106, 92, .4); --error-text: #ffc2bb;
  --flash-bg: rgba(125, 250, 90, .10); --flash-line: rgba(125, 250, 90, .35); --flash-text: #b4ff9c;
  --soft: rgba(255, 255, 255, .05); --soft-2: rgba(255, 255, 255, .10); --row-hover: rgba(255, 255, 255, .04); --me-row: rgba(125, 250, 90, .09);
  --shadow: rgba(0, 0, 0, .5); --header-fade: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent);
  --moon: none; --sun: inline-block;
  --brand: #f2f6f8; --brand-hover: #ffffff; --brand-glow: rgba(0, 0, 0, .45);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #e7eef3; --bg-top: #cfe1ee;
  --stadium: url("/static/stadium-day.webp");
  --veil: linear-gradient(180deg, rgba(238, 244, 248, .80) 0%, rgba(238, 244, 248, .62) 45%, rgba(238, 244, 248, .40) 100%);
  --panel: rgba(255, 255, 255, .80); --panel-solid: #ffffff; --panel-2: rgba(11, 22, 32, .035);
  --ink: #0b1620; --ink-2: #33434f; --muted: #5d6b77; --dim: #9aa6af;
  --line: rgba(11, 22, 32, .09); --line-2: rgba(11, 22, 32, .16); --line-3: rgba(11, 22, 32, .32);
  --accent: #128536; --fill: #6ff04a; --fill-hover: #8af76a; --fill-ink: #062a0c; --glow: rgba(95, 226, 60, .45);
  --mint: #3fdcb4; --mint-text: #0b856a; --mint-glow: rgba(63, 220, 180, .45);
  --emerald: #1ec97a; --emerald-text: #08884d; --emerald-glow: rgba(30, 201, 122, .45);
  --tile-bg: linear-gradient(180deg, #ffffff, #f2f6f8);
  --loss: #d63a2c; --loss-bg: rgba(214, 58, 44, .09); --loss-line: rgba(214, 58, 44, .35); --error-text: #9b2017;
  --flash-bg: rgba(18, 133, 54, .09); --flash-line: rgba(18, 133, 54, .32); --flash-text: #0f6627;
  --soft: rgba(11, 22, 32, .04); --soft-2: rgba(11, 22, 32, .07); --row-hover: rgba(11, 22, 32, .03); --me-row: rgba(111, 240, 74, .18);
  --shadow: rgba(11, 22, 32, .14); --header-fade: linear-gradient(180deg, rgba(255, 255, 255, .7), transparent);
  --brand: #0d4023; --brand-hover: #072b17; --brand-glow: rgba(255, 255, 255, .6);
  --moon: inline-block; --sun: none;
}
:root {
  --radius: 12px; --tile-radius: 8px;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Barlow Semi Condensed', 'Barlow', 'Arial Narrow', sans-serif;
  --num: 'Big Shoulders Display', 'Barlow Semi Condensed', sans-serif;
  /* the special-card finishes: picked, Risk-Reward, upset */
  --card-pick: linear-gradient(155deg, #e2ffd6 0%, #8dfb6c 28%, #2ccb63 68%, #0f7a3c 100%);
  --card-rr: linear-gradient(155deg, #dcfff6 0%, #5feccb 30%, #14ad8e 70%, #0a6b59 100%);
  --card-dog: linear-gradient(155deg, #d3fae5 0%, #39d98b 30%, #0d9655 70%, #075f37 100%);
  --card-ink: #031a0b; --sheen: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 45%, transparent 60%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; font: 16px/1.5 var(--body); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; background: transparent; }

/* the stadium: a photo behind everything (day or night), under a veil that keeps
   text readable. Fixed, so the page scrolls over the field. */
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--veil), var(--stadium) center 70% / cover no-repeat, var(--bg); }
@media (max-width: 700px) { body::before { background-position: center, 50% 75%, center; } }

a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3, .brand, .btn, .tabs a, th, legend, .eyebrow { font-family: var(--display); }
h1 { font-size: 46px; font-weight: 800; line-height: 1; margin: 0 0 12px; letter-spacing: -.005em; }
h2 { font-size: 26px; font-weight: 700; margin: 30px 0 12px; }
h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 1200px; }
main.wrap { flex: 1; padding-top: 24px; padding-bottom: 64px; }
.narrow { max-width: 440px; margin: 20px auto; }
.mid { max-width: 720px; margin: 0 auto; }
.muted { color: var(--muted); } .fine { color: var(--muted); font-size: 14px; }
.eyebrow { color: var(--accent); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; margin: 0 0 4px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* glass: every panel on the page */
.card, .game, .table-wrap, fieldset, .empty, .legal, .status-bar, .league-row, .callout, .submit-bar {
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }

/* header: floats over the stadium */
.top { background: var(--header-fade); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 66px; max-width: 1200px; }
.brand { color: var(--brand); text-decoration: none; display: inline-flex; align-items: center; flex: none; }
.brand-logo { display: block; height: 42px; width: auto; filter: drop-shadow(0 1px 10px var(--brand-glow)); }
.brand:hover { color: var(--brand-hover); }
.top nav { display: flex; gap: 22px; align-items: center; }
.top nav a, .top .linkish { color: var(--ink-2); text-decoration: none; font: 600 16px var(--display); }
.top nav a:hover, .top .linkish:hover { color: var(--ink); }
.top nav .btn { color: var(--fill-ink); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--soft); color: var(--ink); cursor: pointer; flex: none; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-moon { display: var(--moon); } .theme-toggle .i-sun { display: var(--sun); }
.theme-toggle[hidden] { display: none; }
.foot { border-top: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 13px; padding: 20px 0; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.foot p { margin: 0; max-width: 760px; }
.foot .foot-links { margin-top: 8px; } .foot a { color: var(--ink-2); }
.legal { max-width: 720px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px 30px; }
.legal ul { padding-left: 20px; margin: 0 0 12px; } .legal li { margin-bottom: 6px; }
.legal p, .legal li { color: var(--ink-2); } .legal strong { color: var(--ink); }
@media (max-width: 600px) { .legal { padding: 18px 16px 22px; } }

/* vertical season label down the left edge, like a menu's mode tag */
.side-label { position: fixed; left: 0; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; rotate: 180deg; z-index: 2;
  font: 700 13px var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  padding: 18px 7px; background: var(--panel); border: 1px solid var(--line); border-left: 0; border-radius: 0 8px 8px 0; }
@media (max-width: 1290px) { .side-label { display: none; } }

/* buttons and forms */
.btn { display: inline-block; border: 2px solid transparent; border-radius: 99px; padding: 9px 22px; font-size: 17px; font-weight: 700; letter-spacing: .02em; text-decoration: none; cursor: pointer; line-height: 1.15; transition: box-shadow .15s, background .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--fill); color: var(--fill-ink); box-shadow: 0 0 0 0 var(--glow); }
.btn-primary:hover { background: var(--fill-hover); box-shadow: 0 0 22px var(--glow); }
.foot a.tip { color: var(--accent); font-weight: 600; }
.tip-callout { margin: 14px 0; }

/* pre-season waitlist */
.waitlist { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; max-width: 620px; margin: 6px 0 8px; }
.waitlist input[type=email] { flex: 1 1 240px; min-width: 0; }
.waitlist select { flex: 0 1 200px; }
.open-date { font-size: 16px; margin-top: 22px; }

/* public guides */
.article { max-width: 760px; }
.article h1 { font-size: clamp(34px, 6vw, 48px); }
.article h2 { font-size: 24px; margin-top: 28px; }
.article .table { margin: 6px 0 14px; }
.article-cta { margin-top: 30px; padding: 18px 20px; border: 1px solid var(--line-2); border-left: 4px solid var(--fill); border-radius: var(--radius); background: var(--soft); }
.article-cta p { margin: 0 0 8px; }
.article .more { margin-top: 18px; }
.calc .row label { min-width: 0; }
.calc-result { margin-top: 16px; }
.learn { margin: 36px 0 10px; }
.learn-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.learn-links .card { margin: 0; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; border-top: 3px solid var(--mint); }
.learn-links .card strong { font: 700 19px var(--display); }
.learn-links .card span { color: var(--muted); font-size: 15px; }
.learn-links .card:hover { border-color: var(--accent); }
@media (max-width: 860px) { .learn-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .learn-links { grid-template-columns: minmax(0, 1fr); } }

/* "Continue with Google": white button with the four-colour G, per Google's branding rules */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; background: #fff; color: #1f1f1f; border-color: #dadce0; font-family: var(--body, inherit); font-weight: 600; }
.btn-google:hover { background: #f8faff; border-color: #c6d3f0; }
.btn-google .g-logo { width: 20px; height: 20px; flex: none; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font: 700 14px var(--display); text-transform: uppercase; letter-spacing: .12em; margin: 18px 0 8px; }
.or::before, .or::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: var(--line-3); }
.btn-ghost { background: var(--soft); border-color: var(--line-2); color: var(--ink); } .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: var(--loss); color: #fff; }
.btn-sm { padding: 6px 15px; font-size: 15px; } .btn-xs { padding: 2px 9px; font-size: 13px; border-width: 1px; }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible, .chip input:focus-visible + .tile { outline: 3px solid var(--accent); outline-offset: 2px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }
.linkish.danger { color: var(--loss); }
.inline { display: inline; } .stack { display: grid; gap: 8px; max-width: 420px; margin-bottom: 14px; }
.form { display: grid; gap: 14px; }
label { display: grid; gap: 5px; font-weight: 600; font-size: 15px; color: var(--ink); }
.hint { font-weight: 400; color: var(--muted); font-size: 13px; }
input, select { font: inherit; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--panel-solid); color: var(--ink); width: 100%; }
input:hover, select:hover { border-color: var(--line-3); }
input::placeholder { color: var(--dim); }
input[type=checkbox] { width: auto; accent-color: var(--fill); }
.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 500; } .check input { margin-top: 4px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 16px 18px 18px; margin: 0; display: grid; gap: 14px; }
legend { text-transform: uppercase; font-size: 15px; font-weight: 700; letter-spacing: .14em; padding: 0 8px; color: var(--accent); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.errors { background: var(--loss-bg); border: 1px solid var(--loss-line); color: var(--error-text); border-radius: 9px; padding: 10px 14px 10px 30px; margin: 0 0 16px; }
.flash { border-radius: 9px; padding: 10px 14px; margin: 0 0 18px; background: var(--flash-bg); border: 1px solid var(--flash-line); color: var(--flash-text); }
.flash.warn { background: var(--soft); border-color: var(--line-2); border-left: 4px solid var(--ink); color: var(--ink); }
.danger-zone { margin-top: 40px; border: 1px solid var(--loss-line); border-radius: var(--radius); padding: 16px 18px; background: var(--loss-bg); }
.devbox { border: 1px dashed var(--line-2); border-radius: 9px; padding: 12px; margin-top: 12px; }

/* cards and layout */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; box-shadow: 0 10px 30px var(--shadow); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.cols > section > h2:first-child { margin-top: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 12px; }
.grid3 .card { margin: 0; border-top: 3px solid var(--fill); } .grid3 p { color: var(--muted); margin: 0; font-size: 15px; }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; } .head-row h1 { margin: 0; }
.callout { display: flex; gap: 16px; align-items: center; justify-content: space-between; background: var(--panel); border: 1px solid var(--line-2); border-left: 4px solid var(--fill); color: var(--ink); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 18px; }
.callout.warn { border-left-color: var(--ink); }
.empty { background: var(--panel); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 36px 20px; text-align: center; }
.league-list { display: grid; gap: 10px; }
.league-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--fill); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); transition: box-shadow .15s, border-color .15s; }
.league-row:hover { border-color: var(--fill); box-shadow: 0 0 0 1px var(--fill), 0 0 26px var(--glow); }
.league-name { font: 700 24px var(--display); }

/* landing: a title screen over the stadium */
.home main.wrap { max-width: 1060px; }
.hero { position: relative; padding: 56px 0 44px; }
.hero > * { position: relative; max-width: 660px; }
.hero h1 { font-size: clamp(38px, 10.5vw, 96px); font-weight: 800; line-height: .92; text-transform: uppercase; text-shadow: 0 0 40px var(--glow); }
.lede { font-size: 19px; color: var(--ink-2); max-width: 600px; }
.plan { border-top: 3px solid var(--fill); }
.plan .price { font: 900 48px/1 var(--num); margin: 0 0 10px; color: var(--accent); }
.ticks { margin: 0 0 14px; padding-left: 20px; color: var(--ink-2); } .ticks li::marker { color: var(--accent); } .plan form { margin-top: 10px; }

/* league chrome: title, then big text tabs like a game menu's top bar */
.league-head { margin-bottom: 18px; }
.league-head h1 { margin-bottom: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 28px; border-bottom: 1px solid var(--line-2); }
.tabs a { position: relative; padding: 6px 0 10px; text-decoration: none; font-size: 22px; font-weight: 600; color: var(--muted); transition: color .12s; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); font-weight: 800; }
.tabs a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px; background: var(--fill); box-shadow: 0 0 12px var(--glow); }
.status-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line-2); border-left: 4px solid var(--fill); color: var(--ink); border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; }
.status-bar strong { color: var(--accent); }
.weeknav { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; color: var(--muted); font: 600 15px var(--display); }
.weeknav a { min-width: 38px; text-align: center; padding: 3px 7px; border-radius: 6px; text-decoration: none; font: 900 17px var(--num); color: var(--ink); background: var(--panel); border: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.weeknav a:hover { border-color: var(--accent); }
.weeknav a.dim { color: var(--dim); background: transparent; border-color: var(--line); } .weeknav a.on { background: var(--fill); color: var(--fill-ink); border-color: var(--fill); box-shadow: 0 0 14px var(--glow); }

/* tables */
.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px var(--shadow); }
.table { width: 100%; border-collapse: collapse; }
.table th { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-align: left; padding: 11px 12px 9px; white-space: nowrap; border-bottom: 1px solid var(--line-2); }
.table th.num { text-align: right; }
.table td { padding: 10px 12px; border-top: 1px solid var(--line); white-space: nowrap; }
.table tbody tr:first-child td { border-top: 0; }
.table tbody tr:hover { background: var(--row-hover); }
.table .total { font: 900 21px var(--num); color: var(--accent); } .table .rank { color: var(--muted); width: 36px; font: 900 18px var(--num); }
.table .total.neg, .pp-head .total.neg { color: var(--loss); }
.table .wk { color: var(--muted); font-size: 14px; }
.table tr.paid-place .rank { color: var(--accent); } .table tr.paid-place td:nth-child(2) { box-shadow: inset 3px 0 0 var(--fill); }
.table tr.me td { background: var(--me-row); }
.records small { display: block; color: var(--dim); font-size: 12px; } .league-row-total td { font-weight: 700; background: var(--me-row) !important; }
.prose .table { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); } .prose .table td { white-space: normal; }
.prose p { color: var(--ink-2); } .prose strong { color: var(--ink); }
.mini { width: 100%; border-collapse: collapse; font-size: 15px; } .mini td, .mini th { padding: 6px 4px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.mini th { font-size: 13px; color: var(--muted); border-top: 0; } .mini tr:first-child td { border-top: 0; } .mini td.num { text-align: right; }
.money .big { font: 900 40px/1.05 var(--num); margin: 0 0 6px; color: var(--accent); } .money .big .muted { font: 14px var(--body); }
.scores td { line-height: 1.35; } .scores td.num { font: 900 20px/1.2 var(--num); color: var(--ink); } .scoreform input { width: 52px; padding: 4px 6px; text-align: center; }
.log { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--ink-2); } .log li { padding: 5px 0; border-top: 1px solid var(--line); } .log li:first-child { border-top: 0; }
.copy { font-size: 14px; } .copy.copied { border-color: var(--accent); box-shadow: 0 0 14px var(--glow); }
.actions { margin-top: 12px; } .btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* where the money is held */
.funds { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.funds .fine { margin-bottom: 8px; }
.funds-tag { display: inline-flex; align-items: center; gap: 6px; font: 700 13px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.funds-tag i { font-style: normal; font-size: 10px; }
.narrow .funds { margin: 0 0 16px; }

.add-game { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.add-game select { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .add-game { grid-template-columns: minmax(0, 1fr); } }

/* league chat */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tabs .badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; vertical-align: 3px;
  border-radius: 99px; background: var(--fill); color: var(--fill-ink); font: 800 12px/1 var(--display); box-shadow: 0 0 10px var(--glow); }
.chat { max-width: 880px; }
.chat-list { list-style: none; margin: 0; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; max-height: min(62vh, 660px); overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px var(--shadow);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.msg { position: relative; align-self: flex-start; max-width: min(80%, 580px); padding: 8px 12px 6px; border-radius: 14px 14px 14px 4px;
  background: var(--soft-2); border: 1px solid var(--line); }
.msg.mine { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: color-mix(in srgb, var(--fill) 20%, transparent); border-color: color-mix(in srgb, var(--fill) 45%, transparent); }
.msg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: 2px; }
.msg-name { font: 700 15px var(--display); color: var(--ink); }
.msg-time { font-size: 12px; color: var(--muted); }
.msg-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.deleted .msg-body { font-style: italic; }
.msg-del { text-align: right; font-size: 12px; opacity: .5; } .msg:hover .msg-del, .msg:focus-within .msg-del { opacity: 1; }
@media (hover: none) { .msg-del { opacity: .8; } }
.msg.system { align-self: center; max-width: min(92%, 620px); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 8px;
  padding: 6px 14px; border-radius: 99px; text-align: center; background: color-mix(in srgb, var(--fill) 10%, transparent); border: 1px dashed color-mix(in srgb, var(--fill) 45%, transparent); }
.msg.system .msg-body { font: 600 14px/1.35 var(--display); letter-spacing: .01em; color: var(--ink); }
.msg.system .sys-mark { color: var(--accent); font-size: 11px; }
.msg.system .msg-del { width: 100%; text-align: center; }
.msg.system.deleted .msg-body { color: var(--muted); font-style: italic; }
.chat-empty, .chat-older { margin: 0 0 10px; }
.chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-top: 12px; }
.chat-form textarea { font: inherit; width: 100%; min-height: 50px; resize: vertical; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel-solid); color: var(--ink); }
.chat-form textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.chat-error { grid-column: 1 / -1; margin: 0; color: var(--loss); font-weight: 600; }
.chat-note { margin-top: 8px; }

/* top three: collectible-style player cards */
.player-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 190px)); gap: 18px; margin: 4px 0 26px; }
.pcard { position: relative; aspect-ratio: 5 / 7; padding: 16px 14px 26px; color: var(--card-ink); display: flex; flex-direction: column; align-items: center;
  clip-path: polygon(0 16px, 16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 26px), 50% 100%, 0 calc(100% - 26px));
  background: var(--sheen), var(--card-pick); }
.pcard.rank-2 { background: var(--sheen), var(--card-rr); } .pcard.rank-3 { background: var(--sheen), var(--card-dog); }
.player-cards > .pcard { filter: drop-shadow(0 10px 18px var(--shadow)); }
.pcard-top { align-self: flex-start; display: flex; flex-direction: column; line-height: 1; }
.pcard-ovr { font: 900 46px/0.9 var(--num); }
.pcard-pos { font: 800 15px var(--display); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }
.pcard-face { width: 64px; height: 64px; margin: -22px auto 6px; border-radius: 50%; display: grid; place-items: center; font: 900 28px var(--num);
  background: rgba(3, 26, 11, .14); border: 2px solid rgba(3, 26, 11, .25); }
.pcard-name { font: 800 19px/1.1 var(--display); text-transform: uppercase; text-align: center; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid rgba(3, 26, 11, .25); width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; width: 100%; font: 600 11px/1.2 var(--display); text-transform: uppercase; letter-spacing: .05em; }
.pcard-stats span { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.pcard-stats b { font: 900 16px var(--num); letter-spacing: 0; }
.pcard.me::after { content: 'You'; position: absolute; top: 14px; right: 16px; font: 800 11px var(--display); text-transform: uppercase; letter-spacing: .1em; padding: 2px 7px; border-radius: 99px; background: var(--card-ink); color: #fff; }

/* pills and tags: lit for a win, red for a loss, grey for a push */
.pill { display: inline-block; font-size: 13px; font-weight: 700; padding: 1px 9px; border-radius: 99px; background: var(--soft-2); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pill.win { background: var(--fill); color: var(--fill-ink); box-shadow: 0 0 10px var(--glow); }
.pill.loss { background: var(--loss-bg); color: var(--loss); } .pill.dim { background: transparent; color: var(--dim); }
.pill.ok { background: var(--flash-bg); color: var(--flash-text); }
/* new league: season or bowls only */
.kind-switch { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 6px 0 18px; }
.kind-switch a { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--soft); color: var(--ink); text-decoration: none; }
.kind-switch a span { color: var(--muted); font-size: 14px; }
.kind-switch a.on { border-color: var(--fill); box-shadow: 0 0 0 1px var(--fill), 0 0 14px var(--glow); }
/* Bowl Bankroll */
.bowl-name { margin: 0 0 6px; font: 700 14px var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.pill.playoff { background: var(--mint); color: #062a20; margin-left: 6px; }
.bowl-game { margin-bottom: 14px; }
.wager-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.wager-form select { flex: 1 1 220px; min-width: 0; } .wager-form input[type=number] { width: 110px; }
.my-wagers, .others { margin-top: 8px; } .my-wagers .tag { min-width: 52px; text-align: center; }
.bowl-standings tr.me td { color: var(--accent); font-weight: 700; }
.bowl-rules { margin-top: 18px; } .bowl-rules summary { cursor: pointer; font-weight: 700; }
/* a game that has kicked off: its picks are locked */
.game.kicked-off { opacity: .62; } .game.kicked-off .chip { cursor: not-allowed; }
.locked-tag { display: inline-block; padding: 0 8px; border-radius: 99px; background: var(--soft-2); color: var(--ink-2); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
/* live scoreboard */
.pill.live { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.pill.live.win { box-shadow: none; opacity: .92; } .pill.live.loss { opacity: .92; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 1px 9px; border-radius: 99px; background: var(--loss); color: #fff; font: 700 12px var(--display); letter-spacing: .1em; text-transform: uppercase; vertical-align: middle; }
.live-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: livepulse 1.4s ease-in-out infinite; }
.live-badge[hidden] { display: none; }
@keyframes livepulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .live-badge::before { animation: none; } }
.scores .ls-status { font-size: 13px; color: var(--muted); text-align: right; white-space: nowrap; }
.scores tr.st-in .ls-status { color: var(--loss); font-weight: 700; }
.scores tr.st-in td.num { color: var(--accent); }
@media (max-width: 860px) { .live-week aside { order: -1; } }
.asbtn { border: 0; cursor: pointer; font-family: inherit; }
.tag { display: inline-block; min-width: 48px; text-align: center; font: 700 12px/1.6 var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 0 6px; border-radius: 4px; background: var(--soft-2); color: var(--ink); margin-right: 6px; }
.tag.rr { background: var(--mint); color: var(--card-ink); }
.picklist { list-style: none; margin: 0; padding: 0; } .picklist li { padding: 7px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 4px; } .picklist li:first-child { border-top: 0; }
.picklist .pill { margin-left: auto; }
.pp-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; } .pp-head .total { font: 900 24px var(--num); color: var(--accent); }
.player-picks.me { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 10px 30px var(--shadow); }

/* the board */
h2.conf { display: flex; align-items: center; gap: 12px; margin: 32px 0 12px; font-size: 15px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
h2.conf::before { content: ''; width: 4px; height: 18px; border-radius: 2px; background: var(--fill); box-shadow: 0 0 10px var(--glow); }
h2.conf::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.game { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 13px; box-shadow: 0 10px 30px var(--shadow); }
.game-top { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.matchup-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.matchup-row .team { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.matchup-row .team b { font: 800 20px/1.02 var(--display); text-transform: uppercase; letter-spacing: .01em; }   /* long names wrap between words, never cut */
.matchup-row .home { justify-content: flex-end; text-align: right; }
.matchup-row .vs { font: 700 11px var(--display); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); }
.rk { font: 900 15px var(--num); color: var(--accent); }
.game-meta { text-align: center; font-size: 13px; color: var(--muted); margin-top: 4px; } .game-meta .net { color: var(--ink-2); font-weight: 600; }
.matchup { font: 800 20px var(--display); text-transform: uppercase; } .at { color: var(--dim); font-size: 14px; text-transform: lowercase; }
.bet-row { display: flex; gap: 8px; align-items: stretch; margin-top: 8px; }
.bet-label { width: 66px; flex: none; align-self: center; font: 700 12px/1.15 var(--display); text-transform: uppercase; color: var(--muted); letter-spacing: .1em; }
.bet-label.rr { color: var(--mint-text); }

/* pick options: cards. Glass until picked, then a special-card finish with
   selection brackets at the corners. */
.chip { position: relative; display: block; flex: 1 1 0; min-width: 0; font-weight: 500; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 66px; padding: 8px 6px 7px;
  background: var(--tile-bg); border: 1px solid var(--line-2); border-radius: var(--tile-radius); cursor: pointer; user-select: none; text-align: center;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background .12s, border-color .12s, color .12s; }
.tile-team { font: 700 12px/1.15 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-num { font: 900 30px/1 var(--num); letter-spacing: .02em; text-transform: uppercase; color: var(--ink); font-variant-numeric: tabular-nums; }
.tile-tag { position: absolute; top: 0; right: 0; font: 800 11px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px 3px; border-radius: 0 0 0 6px; color: var(--card-ink); }
.chip:hover .tile { border-color: var(--line-3); }
.chip.rr .tile, .chip.dog .tile { padding-top: 19px; }   /* room for the corner tag above the name */
.chip.rr .tile { border-color: color-mix(in srgb, var(--mint) 50%, transparent); } .chip.rr .tile-tag { background: var(--mint); } .chip.rr .tile-num { color: var(--mint-text); }
.chip.dog .tile { border-color: color-mix(in srgb, var(--emerald) 55%, transparent); } .chip.dog .tile-tag { background: var(--emerald); } .chip.dog .tile-num { color: var(--emerald-text); }
/* picked */
.chip input:checked + .tile { background: var(--sheen), var(--card-pick); border-color: transparent; }
.chip.rr input:checked + .tile { background: var(--sheen), var(--card-rr); }
.chip.dog input:checked + .tile { background: var(--sheen), var(--card-dog); }
.chip input:checked + .tile .tile-team, .chip input:checked + .tile .tile-num { color: var(--card-ink); }
.chip input:checked + .tile .tile-tag { background: var(--card-ink); color: #fff; }
.chip:has(input:checked) { filter: drop-shadow(0 0 10px var(--glow)); }
.chip.rr:has(input:checked) { filter: drop-shadow(0 0 10px var(--mint-glow)); }
.chip.dog:has(input:checked) { filter: drop-shadow(0 0 10px var(--emerald-glow)); }
/* selection brackets, drawn outside the card */
.chip:has(input:checked)::after { content: ''; position: absolute; inset: -5px; pointer-events: none; --b: var(--fill); --l: 12px;
  background:
    linear-gradient(var(--b), var(--b)) top left / var(--l) 2px, linear-gradient(var(--b), var(--b)) top left / 2px var(--l),
    linear-gradient(var(--b), var(--b)) top right / var(--l) 2px, linear-gradient(var(--b), var(--b)) top right / 2px var(--l),
    linear-gradient(var(--b), var(--b)) bottom left / var(--l) 2px, linear-gradient(var(--b), var(--b)) bottom left / 2px var(--l),
    linear-gradient(var(--b), var(--b)) bottom right / var(--l) 2px, linear-gradient(var(--b), var(--b)) bottom right / 2px var(--l);
  background-repeat: no-repeat; }
.chip.rr:has(input:checked)::after { --b: var(--mint); } .chip.dog:has(input:checked)::after { --b: var(--emerald); }

/* team colours: a coin by each name, a dot on that team's bets, and a picked
   bet fills with the school's colours. Brackets and glow still say "picked". */
.matchup-row .team { gap: 8px; align-items: center; }
.matchup-row .tname { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }   /* rank sits above the name */
.matchup-row .home .tname { align-items: flex-end; }
.matchup-row .tname .rk { font-size: 13px; line-height: 1; margin-bottom: 1px; }
.coin { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--team); color: var(--team-ink);
  font: 900 11px/1 var(--num); letter-spacing: .02em; border: 1.5px solid color-mix(in srgb, var(--team-ink) 55%, var(--team)); box-shadow: 0 0 0 1px var(--line-2); }
.coin.plain { background: var(--soft-2); color: var(--ink-2); border-color: var(--line-2); box-shadow: none; }
.chip.has-team .tile-team::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: 1px;
  background: var(--team); box-shadow: 0 0 0 1px var(--line-3); }
.chip.has-team input:checked + .tile { background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .22) 48%, transparent 60%), var(--team);
  border-color: color-mix(in srgb, var(--team) 55%, #fff); }
.chip.has-team input:checked + .tile .tile-team, .chip.has-team input:checked + .tile .tile-num { color: var(--team-ink); }
.chip.has-team input:checked + .tile .tile-team::before { background: var(--team-ink); box-shadow: none; }
.chip.has-team input:checked + .tile .tile-tag { background: var(--team-ink); color: var(--team); }

/* submit bar: pinned to the bottom of the screen */
.submit-bar { position: sticky; bottom: 0; z-index: 5; margin-top: 24px; background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); border-bottom: 0; border-top: 2px solid var(--fill);
  border-radius: var(--radius) var(--radius) 0 0; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; box-shadow: 0 -10px 34px var(--shadow); }
.counts { display: flex; gap: 8px; flex-wrap: wrap; font: 700 15px var(--display); text-transform: uppercase; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.counts span { background: var(--soft); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 10px; }
.counts .good { background: var(--fill); color: var(--fill-ink); border-color: var(--fill); box-shadow: 0 0 12px var(--glow); } .counts .bad { background: var(--loss); color: #fff; border-color: var(--loss); }

@media (max-width: 860px) {
  .cols, .grid3 { grid-template-columns: minmax(0, 1fr); } .brand-logo { height: 36px; } .top nav a, .top .linkish { font-size: 15px; white-space: nowrap; } .row, .row3 { grid-template-columns: 1fr; }
  h1 { font-size: 36px; } .callout { flex-direction: column; align-items: flex-start; }
  .games { grid-template-columns: minmax(0, 1fr); } .top nav { gap: 14px; }
  .tabs { gap: 2px 20px; } .tabs a { font-size: 19px; }
  .hero { padding: 36px 0 30px; }
}
@media (max-width: 600px) {
  .player-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pcard { padding: 10px 8px 20px; clip-path: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 18px), 50% 100%, 0 calc(100% - 18px)); }
  .pcard-ovr { font-size: 32px; } .pcard-pos { font-size: 12px; } .pcard-face { width: 40px; height: 40px; font-size: 18px; margin: -14px auto 4px; }
  .pcard-name { font-size: 14px; } .pcard-stats { grid-template-columns: 1fr 1fr; gap: 3px 4px; font-size: 8px; } .pcard-stats b { font-size: 13px; }
  .pcard.me::after { top: 8px; right: 8px; font-size: 9px; padding: 1px 5px; }
}
@media (max-width: 480px) {
  .brand-logo { height: 30px; }
  .top nav { gap: 9px; } .top nav a, .top .linkish { font-size: 14px; } .theme-toggle { width: 30px; height: 30px; }
  .tabs { gap: 0 16px; } .tabs a { font-size: 17px; padding-bottom: 8px; }
  .matchup-row .team b { font-size: 18px; } .coin { width: 24px; height: 24px; font-size: 9px; } .matchup-row .team { gap: 5px; }
  .tile-num { font-size: 26px; } .bet-label { width: 50px; font-size: 11px; }
  /* keep the pinned bar to one slim strip so it does not eat the board */
  .submit-bar { padding: 8px 10px; gap: 8px; flex-wrap: nowrap; margin-left: -6px; margin-right: -6px; }
  .counts { font-size: 12px; gap: 4px; } .counts span { padding: 2px 6px; }
  #submit-picks { padding: 8px 14px; font-size: 15px; white-space: nowrap; flex: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
