/* Read the Ice. The rink is the design system: ice surfaces, a red centre line
   under the masthead, blue lines between zones of content, and goal-line red
   reserved for goals and warnings. */

:root {
  color-scheme: light;
  --ice: #eef3f7;
  --sheet: #f8fbfd;
  --ink: #0e1b2a;
  --ink-2: #3d4d5e;
  --muted: #6b7a89;
  --hair: #d3dee7;
  --axis: #b5c3cf;
  --blue: #1f4e9c;
  --red: #c8102e;
  --crease: #cfe6f5;
  --neutral: #e3e9ee;
  --good-text: #1d4b8f;
  --bad-text: #a50d26;
  --focus: #1f4e9c;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --ice: #0a131d; --sheet: #101c28; --ink: #e8f0f6; --ink-2: #b5c3cf; --muted: #7f90a0;
    --hair: #1e2e3e; --axis: #2f4356; --blue: #5b8deb; --red: #f0475e; --crease: #17324c;
    --neutral: #22313f; --good-text: #8db3f5; --bad-text: #ff8a9a; --focus: #8db3f5;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ice: #0a131d; --sheet: #101c28; --ink: #e8f0f6; --ink-2: #b5c3cf; --muted: #7f90a0;
  --hair: #1e2e3e; --axis: #2f4356; --blue: #5b8deb; --red: #f0475e; --crease: #17324c;
  --neutral: #22313f; --good-text: #8db3f5; --bad-text: #ff8a9a; --focus: #8db3f5;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; } /* no double-tap zoom; pinch still works */
/* iPhones zoom the whole page when you tap into a field with text under 16px, and stay zoomed */
@media (pointer: coarse) { input, select, textarea { font-size: 16px !important; } }
body {
  margin: 0; background: var(--ice); color: var(--ink);
  font: 400 16px/1.5 var(--body);
}
a { color: var(--blue); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------------------------------------------------------------- masthead */
.masthead { background: var(--sheet); border-bottom: 3px solid var(--red); position: sticky; top: 0; z-index: 5; }
.masthead-inner { max-width: 1240px; margin: 0 auto; padding: 14px 16px 6px; display: flex; align-items: baseline; gap: 16px; }
.wordmark { font: 800 34px/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
.freshness { margin: 0; color: var(--muted); font-size: 14px; flex: 1; min-width: 0; }
.theme-toggle {
  font: 600 14px var(--body); color: var(--ink-2); background: none; border: 1px solid var(--hair);
  border-radius: 999px; padding: 4px 12px; cursor: pointer;
}
.tabs { max-width: 1240px; margin: 0 auto; padding: 0 16px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; padding: 8px 12px 9px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px;
  border-bottom: 4px solid transparent;
}
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); }
.tabs a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- layout */
main { max-width: 1240px; margin: 0 auto; padding: 8px 16px 40px; outline: none; }
.zone { padding: 24px 0 28px; border-top: 2px solid var(--blue); }
.zone:first-child { border-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: 0.01em; }
h1 { font-size: 44px; font-weight: 800; }
h2 { font-size: 30px; }
h3 { font-size: 22px; }
.lede { color: var(--ink-2); max-width: 68ch; margin: 8px 0 16px; }
.note { color: var(--muted); font-size: 14px; max-width: 72ch; margin: 8px 0 0; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } h1 { font-size: 36px; } }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spacer { flex: 1; }

/* ---------------------------------------------------------------- controls */
.controls { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 4px 0 14px; }
select, input[type="search"], input[type="text"] {
  font: 500 15px var(--body); color: var(--ink); background: var(--sheet);
  border: 1px solid var(--hair); border-radius: 6px; padding: 6px 10px; min-height: 36px;
}
input[type="search"] { min-width: 220px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font: 600 14px var(--body); color: var(--ink-2); background: var(--sheet); border: 1px solid var(--hair);
  border-radius: 999px; padding: 4px 11px; cursor: pointer;
}
.chip[aria-pressed="true"] { color: var(--sheet); background: var(--ink); border-color: var(--ink); }

/* ---------------------------------------------------------------- tonight: game strip */
.slate { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.game {
  background: var(--sheet); border: 1px solid var(--hair); border-radius: 6px; padding: 12px 14px 12px;
  display: grid; gap: 8px;
}
.game.is-picked { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.game-time { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.game-time button { font: 600 13px var(--body); color: var(--blue); background: none; border: 0; padding: 0; cursor: pointer; }
.side { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 8px; }
.side .abbr { font: 800 26px/1 var(--display); }
.side .xg { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 15px; text-align: right; min-width: 34px; }
.bar-track { height: 8px; background: var(--neutral); border-radius: 4px; overflow: hidden; }
.bar-track { display: block; }
.bar-fill { display: block; height: 100%; background: var(--blue); border-radius: 0 4px 4px 0; }
.goalie select { width: 100%; font-size: 13px; padding: 3px 6px; min-height: 30px; }
.game-foot { font-size: 13px; color: var(--muted); }
.game-foot.mkt { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; cursor: help; }
.game-foot.mkt b { color: var(--ink-2); font-weight: 700; }
.tag-b2b { cursor: help; color: var(--muted); border-color: var(--muted); }
.g-src .tag-b2b { margin-left: 6px; font-size: 10px; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--hair); border-radius: 6px; background: var(--sheet); }
table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { padding: 7px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--hair); }
th { font-weight: 600; color: var(--ink-2); background: var(--sheet); position: sticky; top: 0; cursor: pointer; user-select: none; }
th[aria-sort="descending"]::after { content: " \2193"; color: var(--blue); }
th[aria-sort="ascending"]::after { content: " \2191"; color: var(--blue); }
th.nosort { cursor: default; }
td:first-child, th:first-child { text-align: left; position: sticky; left: 0; background: var(--sheet); z-index: 1; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--ice); }
td .who { font-weight: 600; color: var(--ink); text-decoration: none; }
td .who:hover { text-decoration: underline; }
td .sub { color: var(--muted); font-size: 12px; margin-left: 6px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--blue); border: 1px solid var(--blue); border-radius: 3px; padding: 0 4px; margin-left: 6px; vertical-align: 1px; }
.cellbar { display: inline-grid; grid-template-columns: 34px 64px; align-items: center; gap: 6px; }
.cellbar .bar-track { height: 6px; }
.odds-in { width: 78px; text-align: right; font-variant-numeric: tabular-nums; padding: 4px 6px; min-height: 30px; font-size: 14px; }
.pos { color: var(--good-text); font-weight: 600; }
.neg { color: var(--bad-text); font-weight: 600; }
.dim { color: var(--muted); }
.div-cell { display: inline-grid; grid-template-columns: 40px 70px; gap: 6px; align-items: center; }
.div-track { position: relative; height: 8px; background: var(--neutral); border-radius: 4px; }
.div-track { display: block; }
.div-track span { display: block; position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.div-track::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--axis); }

/* ---------------------------------------------------------------- charts */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-family: var(--body); fill: var(--muted); font-size: 12px; }
.chart .lbl { fill: var(--ink-2); font-weight: 600; }
.chart .grid { stroke: var(--hair); stroke-width: 1; }
.chart .axis { stroke: var(--axis); stroke-width: 1; }
.figure { background: var(--sheet); border: 1px solid var(--hair); border-radius: 6px; padding: 14px 14px 10px; }
.figure h3 { margin-bottom: 4px; }
.figure .note { margin: 2px 0 10px; }
.figure.narrow svg { max-width: 560px; margin: 0 auto; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

/* rink: markings stay neutral so red can only ever mean "goal" */
.rink .boards { fill: var(--sheet); stroke: var(--axis); stroke-width: 0.6; }
.rink .redline { fill: var(--axis); }
.rink .blueline { fill: var(--axis); }
.rink .goalline { stroke: var(--axis); stroke-width: 0.3; }
.rink .circle { fill: none; stroke: var(--axis); stroke-width: 0.3; }
.rink .dot { fill: var(--axis); }
.rink .crease { fill: var(--crease); stroke: var(--axis); stroke-width: 0.3; }
.rink .net { fill: none; stroke: var(--ink-2); stroke-width: 0.35; }
.rink .zone-label { font-size: 2.6px; fill: var(--muted); }
.rink .shot { fill: var(--blue); fill-opacity: 0.32; stroke: var(--sheet); stroke-width: 0.25; }
.rink .goal { fill: var(--red); stroke: var(--sheet); stroke-width: 0.45; }
/* shot maps: the picked shot gets a ring and everything else steps back */
.shotmap .rink { touch-action: manipulation; }
.shotmap.has-sel .rink .shot { fill-opacity: 0.14; }
.shotmap.has-sel .rink .goal { opacity: 0.4; }
.rink .sm-on { opacity: 1 !important; fill-opacity: 1 !important; stroke: var(--ink); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.rink .sm-ring { fill: none; stroke: var(--ink); stroke-width: 2px; vector-effect: non-scaling-stroke; animation: smPulse 1.4s ease-in-out 2; }
@keyframes smPulse { 50% { stroke-opacity: 0.25; } }
.rink .sm-cross { stroke: var(--ink); stroke-opacity: 0.35; stroke-width: 1px; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: reduce) { .rink .sm-ring { animation: none; } }
.shot-info { min-height: 64px; margin-top: 10px; padding: 10px 12px; background: var(--sheet); border: 1px solid var(--hair); border-radius: 6px; font-size: 15px; line-height: 1.4; }
.shot-info p { margin: 2px 0; }
.shot-info .si-hint { color: var(--ink-2); margin: 0; }
.si-head { font-size: 16px; }
.si-head .dim { font-size: 13px; }
.si-goal { color: var(--red); }
.si-body { color: var(--ink-2); }
.si-nav { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 10px; font-size: 14px; }
.si-nav .chip { min-height: 36px; }
.chip[disabled] { opacity: 0.4; cursor: default; }

/* ---------------------------------------------------------------- player card */
.card-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 16px; margin-bottom: 18px; }
.card-head .num { font: 800 64px/1 var(--display); color: var(--blue); min-width: 0; }
.card-head .num:empty { display: none; }
.card-head .num:empty + div { grid-column: 1 / -1; }
.card-head .meta { color: var(--ink-2); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 0; border: 1px solid var(--hair); border-radius: 6px; background: var(--sheet); }
.stat { padding: 10px 12px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.stat b { display: block; font: 700 26px/1.1 var(--display); }
.stat span { font-size: 13px; color: var(--muted); }
.stat small { display: block; font-size: 12px; color: var(--muted); }
.meter { display: grid; grid-template-columns: 130px 1fr 92px; gap: 10px; align-items: center; margin: 7px 0; font-size: 14px; }
.meter .bar-track { height: 10px; border-radius: 5px; }
.meter .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.verdict { font-size: 15px; color: var(--ink-2); margin: 8px 0 0; max-width: 60ch; }
.suggest { list-style: none; margin: 4px 0 0; padding: 0; border: 1px solid var(--hair); border-radius: 6px; background: var(--sheet); max-width: 360px; }
.suggest li button { width: 100%; text-align: left; background: none; border: 0; padding: 7px 10px; font: 500 15px var(--body); color: var(--ink); cursor: pointer; }
.suggest li button:hover, .suggest li button:focus-visible { background: var(--ice); }

/* fantasy grid */
.sched td.game-day { color: var(--ink); font-weight: 600; }
.sched td.off { color: var(--muted); }
.sched th.today, .sched td.today { background: var(--crease); }
.sched th.today { color: var(--ink); }
.slot { display: inline-block; width: 38px; font-size: 12px; font-weight: 700; color: var(--muted); }

/* big numbers on the model page */
.bignum { font: 800 52px/1 var(--display); }
.bignum + p { margin: 6px 0 0; color: var(--ink-2); }

/* tooltip */
.tip {
  position: fixed; z-index: 20; pointer-events: none; max-width: 260px;
  background: var(--ink); color: var(--sheet); border-radius: 6px; padding: 7px 10px;
  font-size: 13px; line-height: 1.35;
}
.tip b { font-weight: 700; }

.colophon { max-width: 1240px; margin: 0 auto; padding: 18px 16px 40px; border-top: 2px solid var(--blue); color: var(--muted); font-size: 13px; }
.colophon p { margin: 4px 0; max-width: 90ch; }
.empty { padding: 28px 0; color: var(--ink-2); }

/* ---------------------------------------------------------------- phones */
@media (max-width: 640px) {
  .masthead { position: static; }
  .masthead-inner { flex-wrap: wrap; row-gap: 2px; padding-top: 10px; }
  .wordmark { font-size: 28px; }
  .freshness { order: 3; flex-basis: 100%; font-size: 13px; }
  .slate { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px; margin-right: -16px; padding-right: 16px; }
  .game { flex: 0 0 84%; scroll-snap-align: start; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .zone { padding: 18px 0 22px; }
  input[type="search"] { min-width: 0; flex: 1 1 100%; }
  .card-head .num { font-size: 48px; }
  .meter { grid-template-columns: 104px 1fr 78px; font-size: 13px; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  td .sub { display: block; margin-left: 0; }
  td:first-child { white-space: normal; min-width: 120px; }
  .cellbar { grid-template-columns: 34px 36px; }
}

/* ---------------------------------------------------------------- game catalogue */
.crumbs { margin: 0 0 6px; font-size: 14px; }
.crumbs a { color: var(--ink-2); }
.game-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.game-list > li { border-bottom: 1px solid var(--hair); }
.game-row {
  display: grid; grid-template-columns: 92px minmax(200px, 1.1fr) minmax(170px, 0.9fr) minmax(0, 2fr);
  gap: 6px 18px; align-items: center; padding: 10px 6px; color: var(--ink); text-decoration: none;
}
a.game-row:hover { background: var(--sheet); }
.gr-date { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.gr-score { font: 700 20px/1.1 var(--display); letter-spacing: 0.01em; }
.gr-score .won { color: var(--ink); }
.gr-score span:not(.won):not(.dim):not(.end) { color: var(--ink-2); font-weight: 600; }
.gr-deserve { display: grid; grid-template-columns: 60px 1fr; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); }
.gr-deserve .bar-track { height: 6px; }
.gr-blurb { font-size: 14px; color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.end { font: 600 12px var(--body); color: var(--muted); vertical-align: 2px; }
.res { display: inline-block; min-width: 30px; text-align: center; font: 700 11px var(--body); border-radius: 3px; padding: 1px 3px; }
.res-W { color: var(--sheet); background: var(--blue); }
.res-L { color: var(--ink-2); background: var(--neutral); }
.res-OTL { color: var(--ink-2); background: var(--neutral); box-shadow: inset 0 0 0 1px var(--axis); }
.is-future { color: var(--muted); }
@media (max-width: 860px) {
  .game-row { grid-template-columns: 70px 1fr; }
  .gr-deserve { grid-column: 2; }
  .gr-blurb { grid-column: 1 / -1; }
}

.story { max-width: 68ch; font-size: 18px; line-height: 1.6; color: var(--ink); }
.story p { margin: 0 0 12px; }
.deserve, .wp-now { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.deserve p, .wp-now p { margin: 0; color: var(--ink-2); max-width: 46ch; }
.vs-grid { max-width: 680px; border: 1px solid var(--hair); border-radius: 6px; background: var(--sheet); }
.vs { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--hair); font-variant-numeric: tabular-nums; }
.vs:last-child { border-bottom: 0; }
.vs span:first-child { text-align: left; }
.vs span:last-child { text-align: right; }
.vs b { text-align: center; font-weight: 500; color: var(--muted); font-size: 14px; }
.vs-head span { font: 800 22px/1 var(--display); }
.vs .better { font-weight: 700; color: var(--good-text); }

.mug { width: 40px; height: 40px; border-radius: 50%; background: var(--neutral); object-fit: cover; flex: none; }
.mug-empty { display: inline-block; }
.goal-list, .stars, .so-list, .lines, .plist, .form { list-style: none; margin: 8px 0 0; padding: 0; }
.goal-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.gi-when { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.gi-team { font-size: 12px; font-weight: 700; color: var(--muted); }
.gi-sub { font-size: 14px; color: var(--ink-2); }
.watch { font: 600 13px var(--body); color: var(--blue); border: 1px solid var(--blue); border-radius: 999px; padding: 3px 10px; text-decoration: none; white-space: nowrap; }
.watch:hover { background: var(--blue); color: var(--sheet); }
.stars li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--hair); }
.so-list li { padding: 4px 0; font-size: 15px; }
.goal-word { color: var(--bad-text); font-weight: 600; }
.lines li, .plist li { padding: 6px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.lines + .lines { margin-top: 10px; }
.form li a { display: grid; grid-template-columns: 38px 1fr 64px; gap: 10px; align-items: center; padding: 5px 0; color: var(--ink); text-decoration: none; font-size: 14px; }
.form .bar-track { height: 8px; }
.gcard { padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.preview-link { font: 600 13px var(--body); color: var(--blue); }
.game-open { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 8px; }
@media (max-width: 960px) { .game-open { grid-template-columns: minmax(0, 1fr); } }
.gr-blurb .tag { margin: 0 8px 0 0; }
.who { color: var(--ink); text-decoration: none; font-weight: 600; }
.who:hover { text-decoration: underline; }
.form .bar-track { position: relative; }
.form .bar-track::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--axis); }
.zone > h2 + .grid-2 { margin-top: 14px; }

/* ---------------------------------------------------------------- replay theater */
body.theater-open { overflow: hidden; }
.theater { position: fixed; inset: 0; z-index: 30; background: rgba(10, 19, 29, 0.55); display: grid; place-items: center; padding: 16px; }
.th-inner { background: var(--ice); width: min(1240px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 8px; border-top: 3px solid var(--red); padding: 16px 18px 18px; }
.th-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.th-head h2 { font-size: 30px; }
.th-head p { margin: 4px 0 0; color: var(--ink-2); }
.th-close { font: 600 14px var(--body); color: var(--ink-2); background: var(--sheet); border: 1px solid var(--hair); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.th-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
@media (max-width: 960px) { .th-main { grid-template-columns: minmax(0, 1fr); } }
.th-stage { min-width: 0; }
.th-rink { background: var(--sheet); border: 1px solid var(--hair); border-radius: 6px; }
.th-trail polyline { fill: none; stroke: var(--ink-2); stroke-width: 0.35; stroke-linejoin: round; opacity: 0.45; }
.th-shotline line { stroke: var(--blue); stroke-width: 0.45; opacity: 0.8; }
.th-shotline line.is-goal { stroke: var(--red); stroke-width: 0.6; opacity: 1; }
.th-puck { fill: var(--ink); stroke: var(--sheet); stroke-width: 0.5; }
.th-chip circle { stroke-width: 0.5; }
.th-rink .th-chip text { font: 700 2.5px var(--body); }
.th-chip.own circle { fill: var(--blue); stroke: var(--sheet); }
.th-chip.own text { fill: var(--sheet); }
.th-chip.opp circle { fill: var(--sheet); stroke: var(--ink); }
.th-chip.opp text { fill: var(--ink); }
.th-chip.past { opacity: 0.35; }
.th-rink text.th-name { font: 700 3.2px var(--body); fill: var(--ink); paint-order: stroke; stroke: var(--sheet); stroke-width: 0.8px; }
.th-pulse circle { fill: none; stroke: var(--red); stroke-width: 0.8; }
.th-pulse .ring { animation: goalring 1.4s ease-out 2; transform-origin: 89.6px 0; transform-box: view-box; }
.th-pulse .ring-2 { animation-delay: 0.35s; }
.th-pulse .static { stroke-width: 1.2; }
@keyframes goalring { from { r: 2; opacity: 1; } to { r: 16; opacity: 0; } }
.th-caption { min-height: 48px; margin: 10px 0 6px; font-size: 17px; color: var(--ink); }
.th-caption b { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; margin-right: 6px; }
.th-caption.is-goal { color: var(--bad-text); font-weight: 600; }
.th-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.th-btn { font: 600 15px var(--body); color: var(--ink); background: var(--sheet); border: 1px solid var(--hair); border-radius: 6px; padding: 7px 14px; cursor: pointer; min-width: 64px; }
.th-play { background: var(--ink); color: var(--sheet); border-color: var(--ink); min-width: 84px; }
.th-clock { font: 700 22px var(--display); font-variant-numeric: tabular-nums; margin-left: 6px; }
.th-scrub { position: relative; margin: 14px 0 6px; padding-top: 12px; }
.th-scrub input { width: 100%; accent-color: var(--blue); }
.th-ticks { position: absolute; left: 8px; right: 8px; top: 0; height: 10px; }
.th-tick { position: absolute; top: 0; width: 4px; height: 10px; margin-left: -2px; border-radius: 2px; background: var(--axis); cursor: pointer; }
.th-tick.own { background: var(--blue); }
.th-tick.is-goal { background: var(--red); width: 6px; margin-left: -3px; }
.th-side h3 { margin: 4px 0 6px; }
.th-feed { list-style: none; margin: 0 0 16px; padding: 0; max-height: 300px; overflow: auto; border: 1px solid var(--hair); border-radius: 6px; background: var(--sheet); }
.th-feed li button { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--hair); padding: 7px 10px; font: 400 14px/1.35 var(--body); color: var(--ink-2); cursor: pointer; }
.th-feed li.own button { color: var(--ink); }
.th-feed li.is-now button { background: var(--crease); color: var(--ink); font-weight: 600; }
.th-feed li.is-goal button { color: var(--bad-text); font-weight: 600; }
.th-onice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 14px; }
.th-onice ul { list-style: none; margin: 6px 0 0; padding: 0; }
.th-onice li { padding: 3px 0; color: var(--ink-2); }
.th-onice li.is-actor { color: var(--ink); font-weight: 700; }
.num { display: inline-block; min-width: 24px; height: 20px; line-height: 20px; text-align: center; border-radius: 10px; font: 700 11px var(--body); margin-right: 6px; }
.num.own { background: var(--blue); color: var(--sheet); }
.num.opp { background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.gi-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.watch.replay { background: var(--blue); color: var(--sheet); cursor: pointer; font-family: var(--body); }
.th-stage .note .watch { margin-left: 6px; }
@media (max-width: 640px) {
  .theater { padding: 0; }
  .th-inner { max-height: 100vh; height: 100vh; border-radius: 0; padding: 12px; }
  .th-head h2 { font-size: 24px; }
  .th-caption { font-size: 15px; min-height: 42px; }
  .th-btn { min-width: 0; padding: 7px 10px; }
}
.th-puck.is-gap { opacity: 0.25; }
.th-gap { font-size: 14px; color: var(--muted); margin: -2px 0 6px; font-style: italic; }
.hl-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 8px; }
.hl { background: var(--sheet); border: 1px solid var(--hair); border-left: 3px solid var(--red); border-radius: 6px; padding: 12px 14px; display: grid; gap: 4px; justify-items: start; }
.hl-label { font: 700 18px var(--display); color: var(--ink); }
.hl-why { font-size: 14px; color: var(--ink-2); }
@media (max-width: 600px) {
  .hl-row { gap: 8px; }
  .hl { grid-template-columns: 1fr auto; column-gap: 12px; padding: 10px 12px; }
  .hl > :not(.replay) { grid-column: 1; }
  .hl .replay { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
}
a.chip { text-decoration: none; }

/* ---------------------------------------------------------------- game page: notes, period box, shootout, penalties */
.kicker { font: 700 13px var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.game-open > div > .kicker:first-child { margin-top: 4px; }
.story + .kicker { margin-top: 6px; }
.notes { list-style: none; margin: 0; padding: 0; max-width: 68ch; }
.notes li { position: relative; padding: 7px 0 7px 18px; border-bottom: 1px solid var(--hair); color: var(--ink); font-size: 15px; line-height: 1.45; }
.notes li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 7px; height: 7px; border-radius: 2px; background: var(--blue); }
.linescore { min-width: 360px; }
.linescore th, .linescore td { text-align: center; padding: 6px 8px; }
.linescore thead th { color: var(--muted); font-weight: 600; font-size: 13px; }
.linescore th[scope="row"] { text-align: left; font-weight: 700; color: var(--ink); }
.linescore .grp { text-align: left; color: var(--muted); font-weight: 600; font-size: 13px; width: 52px; }
.linescore .tot { font-weight: 700; border-left: 1px solid var(--hair); }
.linescore tr.won td, .linescore tr.won th[scope="row"] { color: var(--ink); font-weight: 700; }
.linescore tr:not(.won) td:not(.tot) { color: var(--ink-2); }
.linescore tr.brk th, .linescore tr.brk td { border-top: 2px solid var(--hair); }
.so-table th, .so-table td { text-align: left; }
.so-table td:first-child { color: var(--muted); width: 64px; }
.pen-list { list-style: none; margin: 6px 0 0; padding: 0; columns: 1; }
.pen-list li { padding: 5px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.pen-list .gi-when { display: inline-block; min-width: 72px; }
@media (max-width: 960px) { .game-open > div:last-child { order: -1; } }
.xgbar { display: grid; grid-template-columns: 48px 1fr 48px; gap: 10px; align-items: center; margin: 6px 0; font-variant-numeric: tabular-nums; }
.xgbar b { font: 700 20px var(--display); }
.xgbar span:last-child { text-align: right; font-weight: 600; }
.xgbar .bar-track { height: 12px; }
.ln-tag { display: inline-block; min-width: 30px; margin-right: 8px; font: 700 12px var(--body); color: var(--muted); }
.lines + .lines { margin-top: 10px; }
.gcard h3 { margin-bottom: 4px; }
/* Teams: game-by-game chances */
.trend .tf { fill: var(--blue); }
.trend .ta { fill: var(--axis); }
.trend .axis { stroke: var(--ink-2); stroke-width: 1; }
.trend a:hover .tf, .trend a:focus .tf { fill: var(--ink); }
.trend .tres { font: 700 11px var(--body); fill: var(--muted); }
.trend .tres-W { fill: var(--ink); }
.trend-fig { padding: 10px 12px 8px; }
#teamTiles { margin-top: 14px; }
/* My team lock */
.tabs a[hidden] { display: none; }
.lock { max-width: 520px; }
.lock input[type="password"] { font: 500 16px var(--body); color: var(--ink); background: var(--sheet); border: 1px solid var(--hair); border-radius: 6px; padding: 6px 10px; min-height: 40px; flex: 1 1 220px; }
.chip-solid { background: var(--ink); color: var(--sheet); border-color: var(--ink); min-height: 40px; padding: 4px 18px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }

/* ---------------------------------------------------------------- live layer */
.live-strip { max-width: 1240px; margin: 0 auto; padding: 6px 16px 8px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.live-strip::-webkit-scrollbar { display: none; }
.ls-game { flex: none; display: flex; flex-direction: column; gap: 1px; padding: 3px 10px 4px; border: 1px solid var(--hair);
  border-radius: 6px; background: var(--ice); color: var(--ink); text-decoration: none; font-size: 13px; font-variant-numeric: tabular-nums; }
.ls-sc { white-space: nowrap; }
.ls-game b { font-weight: 700; }
.ls-sep { display: inline-block; width: 10px; }
.ls-sep:not(:empty) { width: auto; margin: 0 4px; color: var(--muted); }
.ls-game .ls-t { font-weight: 600; color: var(--ink-2); }
.ls-game .ls-st { color: var(--muted); font-size: 12px; white-space: nowrap; }
.ls-game.ls-in { border-color: var(--blue); }
.ls-game:hover { border-color: var(--ink-2); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-right: 6px; vertical-align: 1px; animation: livepulse 1.6s ease-in-out infinite; }
@keyframes livepulse { 50% { opacity: 0.25; } }
.live-line { margin-top: 6px; font-size: 14px; }
.live-line:empty { display: none; }
.live-line a { color: var(--ink); text-decoration: none; }
.g-src { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.tag-inj { cursor: help; }
.tag-lu { cursor: help; color: var(--muted); border-color: var(--hair-2, var(--muted)); font-weight: 600; }
.tag-lu.tag-back { color: var(--ink-2); border-color: var(--ink-2); }
.tag-out { color: var(--bad-text); border-color: var(--bad-text); }
.tag-dtd { color: var(--muted); border-color: var(--axis); }
tr:has(.tag-out) td { opacity: 0.55; }
tr:has(.tag-out) td:first-child { opacity: 1; }

/* news */
.news-list { display: grid; gap: 0; max-width: 820px; }
.news-item { padding: 14px 0; border-bottom: 1px solid var(--hair); }
.news-item h3 { font-size: 22px; margin: 2px 0 6px; }
.news-item h3 a { color: var(--ink); text-decoration: none; }
.news-item h3 a:hover { text-decoration: underline; }
.ni-meta { font-size: 13px; color: var(--muted); margin: 0; }
.ni-desc { margin: 0 0 6px; color: var(--ink-2); }
.ni-take { margin: 6px 0; padding: 8px 12px; background: var(--sheet); border-left: 3px solid var(--blue); border-radius: 4px; font-size: 15px; }
.ni-src { font-size: 14px; }
.take .story { margin-top: 14px; }
.ll-go { color: var(--blue); font-weight: 600; white-space: nowrap; }
/* news: grouped stories, worth reading, listen, watch */
.ni-src { font-size: 14px; color: var(--muted); margin-top: 4px; }
.ni-src a { color: var(--ink-2); }
.ni-src .sub { margin-left: 3px; font-size: 11px; }
.read-list, .listen-list { display: grid; max-width: 820px; }
.read-item { padding: 12px 0; border-bottom: 1px solid var(--hair); }
.read-item h3, .listen-item h3, .watch-item h3 { font-size: 20px; margin: 2px 0 4px; }
.read-item h3 a { color: var(--ink); text-decoration: none; }
.read-item h3 a:hover { text-decoration: underline; }
.listen-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.pod-art { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; background: var(--neutral); display: block; }
.pod-actions { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; margin-top: 4px; }
.pod-player audio { width: 100%; margin-top: 8px; }
.pod-player:empty { display: none; }
.watch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px 16px; }
.watch-item h3 { font-size: 17px; line-height: 1.2; }
.yt { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--neutral); border-radius: 6px; overflow: hidden; cursor: pointer; aspect-ratio: 16 / 9; margin-bottom: 6px; }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 54px; height: 38px; margin: -19px 0 0 -27px; border-radius: 10px; background: rgba(14, 27, 42, 0.82); }
.yt-play::after { content: ""; position: absolute; left: 22px; top: 11px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.yt:hover .yt-play, .yt:focus-visible .yt-play { background: var(--blue); }
.yt-frame { aspect-ratio: 16 / 9; width: 100%; border-radius: 6px; overflow: hidden; margin-bottom: 6px; background: #000; }
.yt-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.hl-video { max-width: 760px; margin-top: 12px; }
.media-block .kicker { margin-top: 20px; }
/* phones: videos as compact rows (thumbnail beside the title) until played, then full width */
@media (max-width: 600px) {
  .read-item h3, .listen-item h3 { font-size: 17px; line-height: 1.25; }
  .watch-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .watch-item { display: grid; grid-template-columns: 44% minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 12px; align-items: start; }
  .watch-item .yt { grid-row: 1 / 3; margin: 0; }
  .watch-item .yt-play { width: 40px; height: 28px; margin: -14px 0 0 -20px; border-radius: 8px; }
  .watch-item .yt-play::after { left: 16px; top: 7px; border-width: 7px 0 7px 11px; }
  .watch-item .yt-frame { grid-column: 1 / -1; grid-row: 1; margin-bottom: 6px; }
  .watch-item .yt-frame ~ .ni-meta { grid-column: 1 / -1; }
  .watch-item .yt-frame ~ h3 { grid-column: 1 / -1; }
  .watch-item h3 { font-size: 15px; margin: 0; }
  .watch-item .ni-meta { font-size: 12px; }
  .hl-video .watch-item { display: block; }
  .hl-video .watch-item .yt { margin-bottom: 6px; }
  .hl-video .watch-item .yt-play { width: 54px; height: 38px; margin: -19px 0 0 -27px; border-radius: 10px; }
  .hl-video .watch-item .yt-play::after { left: 22px; top: 11px; border-width: 8px 0 8px 13px; }
}

/* ---------------------------------------------------------------- news tabs */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.news-head { padding-bottom: 6px; }
.news-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.news-title h1 { margin-bottom: 0; }
.nt-short { display: none; }
.news-head .lede { margin-bottom: 0; }
.news-bar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--ice, var(--sheet)); border-bottom: 1px solid var(--hair); padding: 8px 0; margin: 0 0 4px; }
.news-tabs { display: flex; gap: 4px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.news-tabs::-webkit-scrollbar { display: none; }
.news-tabs button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px;
  border: 1px solid var(--hair); border-radius: 999px; background: var(--sheet); color: var(--ink-2); font: 600 15px/1 var(--body, inherit); cursor: pointer; }
.news-tabs button[aria-selected="true"] { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.news-tabs .nt-n { font-size: 12px; font-weight: 700; opacity: 0.7; }
.news-team select { min-height: 40px; }
.news-panel { padding-top: 10px; }
.news-panel .np-blurb { margin: 0 0 6px; max-width: 70ch; }
.np-more { margin-top: 12px; align-items: center; }
/* compact cards: teasers and takes are clamped; the full take is one tap away */
.news-item .ni-desc, .read-item .ni-desc, .listen-item .ni-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item .ni-take { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) {
  .news-bar { margin: 0 -16px 4px; padding: 8px 16px; }
  .news-tabs { gap: 6px; }
  .news-tabs button { flex: 1 1 0; justify-content: center; padding: 6px 4px; font-size: 14px; gap: 4px; }
  .nt-long { display: none; }
  .nt-short { display: inline; }
  .news-item h3 { font-size: 18px; }
}

/* compact tables (EDGE shot areas) */
table.mini { width: 100%; }
table.mini th, table.mini td { padding: 6px 10px; font-size: 14px; }
table.mini th { cursor: default; }

/* ---------------------------------------------------------------- narrative: storylines, players to watch, the pulse */
.mt { margin-top: 30px; }
.slines { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.sl { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.sl-team { font: 800 20px/1.25 var(--display); color: var(--ink); }
.sl-kind { font: 700 12px var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-right: 10px; }
.sl-game { font: 600 13px var(--body); color: var(--blue); }
.sl-text { margin: 2px 0 0; font-size: 16px; line-height: 1.45; color: var(--ink); }
.sl-eff { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.sl-priced { display: inline-block; font-size: 11px; font-weight: 700; border: 1px solid; border-radius: 3px; padding: 0 5px; margin-right: 6px; vertical-align: 1px; }
.sl-priced.in { color: var(--blue); border-color: var(--blue); }
.sl-priced.out { color: var(--muted); border-color: var(--axis); }
.slines.compact .sl { padding: 9px 0; cursor: help; }
.slines.compact .sl-text { font-size: 15px; }
.wlist { display: grid; gap: 10px; margin-top: 10px; }
.wgrid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.wcard, .pcard { background: var(--sheet); border: 1px solid var(--hair); border-radius: 6px; padding: 12px 14px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.wc-head, .pc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 16px; }
.wc-head .tag, .pc-head .tag { margin-left: 0; }
.wc-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.wchip { font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--ink-2); background: var(--ice); border: 1px solid var(--hair); border-radius: 999px; padding: 1px 8px; }
.wchip-hot, .wchip-streak, .wchip-milestone, .wchip-breakout { color: var(--blue); border-color: var(--blue); }
.wchip-former, .wchip-hometown, .wchip-vs, .wchip-new, .wchip-back { color: var(--ink); border-color: var(--axis); }
.wc-why { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.wc-line { margin: 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; margin-top: 10px; }
.pc-stat { font-size: 14px; color: var(--ink-2); }
.pc-stat b { font: 700 26px/1 var(--display); color: var(--ink); margin-right: 3px; }
.pc-text { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.tag-form { cursor: help; }
.tag-form.tag-hot { color: var(--sheet); background: var(--blue); border-color: var(--blue); }
.tag-form.tag-cold { color: var(--ink-2); border-color: var(--axis); }
.tag-v { color: var(--ink-2); border-color: var(--axis); font-weight: 600; cursor: help; }
.tag-v-earned, .tag-v-due { color: var(--blue); border-color: var(--blue); }
.prow li { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 2px 8px; align-items: baseline; }
.prow .pr-text { color: var(--ink-2); }
.pulse-panel h2 + .lede { margin-bottom: 4px; }
.pstory { margin-top: 14px; max-width: 72ch; }
.ps-bio { margin: 0; color: var(--ink-2); font-size: 15px; }
.ps-form { margin: 10px 0 8px; font-size: 15px; line-height: 1.5; }
.ps-form .tag:first-child { margin-left: 0; }
.pstory .notes { margin-top: 8px; }
.team-notes { margin-bottom: 16px; }
details.fold summary { cursor: pointer; font-weight: 600; color: var(--blue); padding: 6px 0; }
details.fold[open] summary { margin-bottom: 8px; }
@media (max-width: 640px) {
  .sl { grid-template-columns: 44px minmax(0, 1fr); gap: 8px; }
  .sl-team { font-size: 18px; }
  .prow li { grid-template-columns: auto minmax(0, 1fr); }
  .prow .pr-text { grid-column: 1 / -1; }
  .pgrid, .wgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) { .news-tabs .nt-n { display: none; } }

/* ---------------------------------------------------------------- moves and features */
.np-blurb .mv-filter { display: flex; margin-top: 10px; }
.move-list { display: grid; gap: 0; max-width: 820px; }
.move-item { padding: 12px 0; border-bottom: 1px solid var(--hair); display: grid; gap: 6px; }
.move-item .ni-meta b { color: var(--ink); }
.mv-kind { font-weight: 700; color: var(--ink-2); }
.mv-trade, .mv-staff { color: var(--blue); }
.mv-text { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink); }
.mv-take { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); max-width: 70ch; }
a.wchip { text-decoration: none; }
a.wchip:hover { border-color: var(--blue); }
.feat-item { border-left: 3px solid var(--blue); padding-left: 12px; }
.feat-kind { font-weight: 700; color: var(--blue); }
.feat-link { display: block; margin-top: 12px; padding: 10px 12px; background: var(--sheet); border: 1px solid var(--hair); border-left: 3px solid var(--blue);
  border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 600; max-width: 72ch; }
.feat-link .feat-kind { display: block; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.feat-link:hover { border-color: var(--blue); }
.feature h1 { max-width: 22ch; }
.feat-dek { font-size: 19px; }
.byline { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.feature-body h3 { font-size: 24px; margin: 26px 0 10px; }
.feature .note { max-width: 68ch; margin-top: 20px; }

/* ---------------------------------------------------------------- player header */
.phead { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 20px; margin: 4px 0 18px; }
.ph-photo { position: relative; width: 128px; height: 128px; border-radius: 50%; background: var(--sheet); border: 1px solid var(--hair);
  flex: none; grid-row: 1 / span 2; align-self: center; }
.ph-text { align-self: end; }
.ph-text h1 { margin-bottom: 2px; }
.ph-bio { grid-column: 2; align-self: start; }
.ph-bio:empty { display: none; }
.ph-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: top; display: block; font-size: 0; color: transparent; }
.ph-photo.ph-none { background: var(--neutral); display: grid; place-items: center; }
.ph-num { position: absolute; right: -2px; bottom: 4px; font: 800 20px/1 var(--display); color: var(--sheet); background: var(--blue);
  border-radius: 999px; padding: 4px 8px 3px; box-shadow: 0 0 0 2px var(--sheet); }
.ph-photo.ph-none .ph-num { position: static; font-size: 44px; background: none; color: var(--blue); box-shadow: none; }
.ph-text .meta { color: var(--ink-2); }
.ph-bio { margin-top: 6px; font-size: 14px; line-height: 1.5; }
@media (max-width: 640px) {
  .phead { column-gap: 14px; }
  .ph-photo { width: 76px; height: 76px; grid-row: 1; }
  .ph-text { align-self: center; }
  .ph-text h1 { font-size: 30px; line-height: 1.05; }
  .ph-bio { grid-column: 1 / -1; margin-top: 10px; }
  .ph-num { font-size: 13px; right: -4px; bottom: -2px; padding: 3px 6px 2px; }
}
.grid-top { align-items: start; }
img.mug { font-size: 0; color: transparent; }   /* a headshot that fails to load shows an empty circle, not its alt text */

/* ---------------------------------------------------------------- how he plays (All Three Zones) */
.plays-notes { max-width: 72ch; margin: 0 0 18px; }
.plays-notes p { margin: 0 0 10px; font-size: 16px; line-height: 1.55; color: var(--ink); padding-left: 14px; border-left: 3px solid var(--blue); }
.plays-grid { align-items: start; }
.plays-grid .figure .chips { margin-bottom: 10px; }
.play-map:empty { min-height: 300px; }
.style-map .sm-dot { fill: var(--axis); stroke: var(--sheet); stroke-width: 1.5; }
.style-map a:hover .sm-dot { fill: var(--ink-2); }
.style-map .sm-me { fill: var(--blue); stroke: var(--sheet); stroke-width: 2.5; }
.style-map .sm-me-lbl { fill: var(--ink); font-weight: 700; font-size: 13px; }
.style-map .sm-lead { fill: var(--ink-2); font-size: 11px; }
.style-map .sm-q { fill: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }
.mix-h { font-size: 18px; margin: 22px 0 8px; }
.mix-h .dim { font: 400 13px var(--body); }
.mix { display: grid; gap: 6px; }
.mix-row { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: 14px; cursor: help; }
.mix-l { color: var(--ink-2); }
.mix-track { position: relative; height: 10px; background: var(--neutral); border-radius: 5px; }
.mix-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--blue); border-radius: 0 4px 4px 0; }
.mix-avg, .mix-key { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 1px; }
.mix-key { position: relative; display: inline-block; height: 14px; vertical-align: -2px; margin: 0 6px 0 2px; top: 0; }
.mix-v { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.glossary { margin-top: 18px; max-width: 76ch; }
.glossary dl { margin: 6px 0 0; }
.glossary dt { font-weight: 700; margin-top: 10px; }
.glossary dd { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
@media (max-width: 640px) { .mix-row { grid-template-columns: minmax(0, 130px) minmax(0, 1fr) 40px; font-size: 13px; } }

/* ---------------------------------------------------------------- highlights */
.reel-video { max-width: 640px; margin: 4px 0 12px; }
.reel-item { grid-template-columns: 40px 1fr auto; }
.reel-role { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 14px var(--display);
  background: var(--neutral); color: var(--ink-2); }
.reel-role.reel-G { background: var(--red); color: #fff; }   /* red means goal, here as everywhere */

/* the section tabs scroll sideways on phones; fade the right edge so it's clear there's more */
@media (max-width: 760px) {
  .tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 28px; }
}
.mix-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; margin-top: 6px; }
.mix-grid:has(> div:empty) { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.mix-grid > div:empty { display: none; }
.mix-grid .mix-row { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 38px; }
@media (max-width: 980px) { .mix-grid { grid-template-columns: minmax(0, 1fr); } .mix-grid .mix-row { grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 44px; } }
@media (max-width: 640px) {
  .mix-grid .mix-row { grid-template-columns: minmax(0, 130px) minmax(0, 1fr) 40px; }
  .reel-item { grid-template-columns: 34px minmax(0, 1fr); row-gap: 8px; }
  .reel-item .gi-acts { grid-column: 2; justify-content: flex-start; }
}

/* ---------------------------------------------------------------- value and impact (Evolving-Hockey) */
.vbars { display: grid; gap: 6px; margin-bottom: 4px; }
.vb-track { overflow: visible; }
.vb-zero { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--axis); }
.vb-fill { position: absolute; top: 0; bottom: 0; background: var(--blue); border-radius: 3px; }
.vb-fill.vb-neg { background: var(--muted); }   /* red means goals on this site, so value given back is gray */

/* ---------------------------------------------------------------- defense, goalies, tactics */
.plays-notes p.cross { border-left-color: var(--axis); color: var(--ink-2); font-size: 15px; }
.def-table td .bar-track { display: block; min-width: 90px; }
.def-table td:first-child { color: var(--ink-2); }
table.mini td.tnum, table.mini th.tnum { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sv-dots .mix-track { display: block; }
.sv-dot { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; }
.sv-dot.me { background: var(--blue); box-shadow: 0 0 0 2px var(--sheet); z-index: 1; }
.sv-dot.lg { background: var(--sheet); border: 2px solid var(--ink-2); }
.sv-key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: -1px; margin: 0 4px 0 2px; }
.sv-key.me { background: var(--blue); }
.sv-key.lg { border: 2px solid var(--ink-2); }
.share-cell { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.share-bar { position: relative; width: 70px; height: 8px; border-radius: 4px; background: var(--neutral); overflow: hidden; }
.share-bar span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--blue); }
.share-bar::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--ink-2); }
.zs-bar { display: flex; width: 120px; height: 10px; border-radius: 5px; overflow: hidden; background: var(--neutral); }
.zs-oz { background: var(--blue); }
.zs-dz { background: var(--muted); margin-left: auto; }
.zs-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin: 0 3px 0 8px; }
.zs-key.oz { background: var(--blue); }
.zs-key.dz { background: var(--muted); }
@media (max-width: 640px) { .zs-bar { width: 80px; } .share-bar { width: 44px; } .dep-table th:last-child { font-size: 0; } .dep-table th:last-child::before { content: "Starts"; font-size: 13px; } }
@media (max-width: 640px) {
  .def-table th:nth-child(4), .def-table td:nth-child(4), .hide-sm { display: none; }
  .def-table td .bar-track { min-width: 60px; }
}

/* ---------------------------------------------------------------- product layer: your team, follows, welcome, about */
.team-btn { margin-left: auto; }
.team-btn.set { color: var(--ink); border-color: var(--blue); font-weight: 700; }
.team-btn.set::before { content: "★ "; color: var(--blue); }
.team-dlg { border: 1px solid var(--hair); border-radius: 10px; padding: 18px 20px 20px; background: var(--sheet); color: var(--ink);
  width: min(960px, calc(100vw - 24px)); max-height: calc(100vh - 40px); overflow: auto; }
.team-dlg::backdrop { background: rgba(10, 19, 29, 0.55); }
.td-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
.td-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 14px; }
.td-grid h3 { font-size: 18px; margin-bottom: 6px; color: var(--ink-2); }
.td-team { display: flex; gap: 8px; align-items: baseline; width: 100%; text-align: left; background: none; border: 1px solid transparent; border-radius: 6px;
  padding: 6px 8px; font: 500 15px var(--body); color: var(--ink); cursor: pointer; }
.td-team b { font-weight: 700; min-width: 38px; }
.td-team span { color: var(--ink-2); }
.td-team:hover, .td-team:focus-visible { background: var(--ice); border-color: var(--hair); }
.td-team.on { border-color: var(--blue); background: var(--crease); }
@media (max-width: 760px) { .td-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .td-team span { font-size: 13px; } }
@media (max-width: 340px) { .td-grid { grid-template-columns: minmax(0, 1fr); } }

.welcome { position: relative; margin: 14px 0 4px; padding: 16px 48px 14px 18px; background: var(--sheet); border: 1px solid var(--hair);
  border-left: 4px solid var(--blue); border-radius: 8px; }
.welcome h2 { font-size: 26px; }
.welcome p { margin: 6px 0 8px; color: var(--ink-2); max-width: 72ch; }
.welcome .chip { text-decoration: none; display: inline-flex; align-items: center; }
.welcome-x { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; background: none; color: var(--muted);
  font-size: 24px; line-height: 1; cursor: pointer; border-radius: 50%; }
.welcome-x:hover { background: var(--ice); color: var(--ink); }

.tag-mine { color: var(--sheet); background: var(--blue); border-color: var(--blue); }
.game.is-mine { position: relative; border-color: var(--blue); box-shadow: inset 0 3px 0 var(--blue); }
.game.is-mine::before { content: "Your team"; position: absolute; top: -9px; left: 12px; padding: 1px 7px; border-radius: 3px;
  background: var(--blue); color: var(--sheet); font-size: 11px; font-weight: 700; letter-spacing: 0.03em; }
@media (max-width: 640px) { .slate:has(.is-mine) { padding-top: 10px; } }
.crumbs-a { color: var(--ink-2); font-size: 14px; }
.follow { font: 600 14px var(--body); color: var(--blue); background: none; border: 1px solid var(--blue); border-radius: 999px;
  padding: 4px 14px; min-height: 32px; cursor: pointer; margin-top: 8px; }
.follow::before { content: "☆ "; }
.follow.on { color: var(--sheet); background: var(--blue); }
.follow.on::before { content: "★ "; }
.controls .follow { margin-top: 0; }

.tgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.tgrid h3 { font-size: 20px; margin-bottom: 6px; }
.tcard { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 9px 10px; border-bottom: 1px solid var(--hair);
  color: var(--ink); text-decoration: none; border-radius: 4px; }
.tcard .tc-name { grid-column: 1 / -1; font-weight: 600; }
.tcard .tc-rec { grid-column: 2; grid-row: 2; color: var(--ink-2); }
.tcard .tc-share { grid-column: 1; grid-row: 2; }
.zone > h2 + .fgrid, .zone > h2 + .boards { margin-top: 12px; }
.tcard:hover { background: var(--sheet); }
.tcard.is-mine { background: var(--crease); }
.tc-name { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-name b { display: inline-block; min-width: 40px; }
.tc-rec { font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.tc-share { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tc-share .share-bar { width: 90px; }
@media (max-width: 980px) { .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tgrid { grid-template-columns: minmax(0, 1fr); } .tc-share .share-bar { width: 120px; } }

.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.fcard { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--hair); border-radius: 8px; background: var(--sheet);
  color: var(--ink); text-decoration: none; font-size: 14px; }
.fcard:hover { border-color: var(--blue); }
.fcard b { font-size: 16px; }
.fc-tonight { color: var(--blue); font-weight: 600; }
.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.board h3 { font-size: 20px; }
.board ol { list-style: none; margin: 6px 0 0; padding: 0; counter-reset: b; }
.board li { counter-increment: b; display: flex; gap: 6px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.board li::before { content: counter(b); color: var(--muted); min-width: 16px; font-size: 13px; }
.board li b { margin-left: auto; font-variant-numeric: tabular-nums; }
.board .note { font-size: 13px; }

.ai-label { margin: 6px 0 14px; font-size: 13px; color: var(--muted); }
.ai-chip { display: inline-block; margin-left: 6px; padding: 0 5px; font-size: 10px; font-weight: 700; letter-spacing: 0.05em; color: var(--ink-2);
  border: 1px solid var(--axis); border-radius: 3px; vertical-align: 2px; cursor: help; }
.ai-note { border-left: 3px solid var(--axis); padding-left: 10px; }
.gamble-note { font-size: 13px; }

.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px !important; font-size: 14px; }
.foot-links a { color: var(--ink-2); font-weight: 600; }

.about-top .lede { max-width: 72ch; }
.about-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.about-toc .chip { text-decoration: none; display: inline-flex; align-items: center; }
.about-sec { scroll-margin-top: 110px; }
.about-sec p, .about-sec li { max-width: 72ch; line-height: 1.55; }
.about-sec h3 { margin-top: 18px; font-size: 20px; }
.about-dl { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 10px 24px; margin: 10px 0 0; max-width: 980px; }
.about-dl dt { font-weight: 700; }
.about-dl dd { margin: 0; color: var(--ink-2); line-height: 1.5; padding-bottom: 10px; border-bottom: 1px solid var(--hair); }
.about-list { padding-left: 20px; }
.about-list li { margin: 6px 0; }
@media (max-width: 640px) { .about-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .about-dl dd { margin-bottom: 10px; } .about-sec { scroll-margin-top: 12px; } }
tr.is-mine td { background: var(--crease); }
tr.is-mine td:first-child { box-shadow: inset 3px 0 0 var(--blue); }

/* ---------------------------------------------------------------- sleepers, mood, who steps in */
.sleepers { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.sleeper { padding: 12px 14px; border: 1px solid var(--hair); border-left: 3px solid var(--blue); border-radius: 8px; background: var(--sheet); }
.sleeper h3 { font-size: 21px; margin: 4px 0 6px; }
.sleeper h3 .dim { font: 500 14px var(--body); }
.sleeper p { margin: 0 0 6px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.sleeper .sl-odds { color: var(--ink); font-size: 14px; margin: 0; }
.sl-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.sleeper-kind { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.tag-sleeper { color: var(--sheet); background: var(--blue); }
.sl-ripple { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.moods .mood { padding: 12px 14px; border: 1px solid var(--hair); border-radius: 8px; background: var(--sheet); }
.moods .mood p { margin: 6px 0 0; color: var(--ink-2); line-height: 1.5; }
.story-notes li::before { background: var(--ink-2); }
@media (max-width: 640px) { .sleepers { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 360px) {   /* the longer wordmark plus both masthead buttons on the narrowest phones */
  .wordmark { font-size: 23px; }
  .masthead-inner { gap: 6px; padding-left: 12px; padding-right: 12px; }
  .theme-toggle { padding: 3px 8px; font-size: 12px; }
}

/* ---------------------------------------------------------------- path to the NHL, background, the buzz */
.path-top { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 18px 28px; align-items: start; margin-bottom: 6px; }
.dcard { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--hair); border-left: 3px solid var(--blue); border-radius: 8px; background: var(--sheet); }
.dc-pick { display: flex; flex-direction: column; align-items: center; min-width: 58px; }
.dc-pick b { font: 700 36px/1 var(--display, var(--body)); color: var(--ink); }
.dc-pick span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.dc-und b { color: var(--muted); }
.dc-line { font-size: 15px; }
.dc-cs { margin-top: 4px; font-size: 14px; }
.dc-near { margin-top: 4px; font-size: 13px; }
.path td .sub, .path .sub { font-size: 12px; color: var(--muted); }
.intl li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.intl .il-stat { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 14px; }
.more-list summary { cursor: pointer; color: var(--blue); font-size: 14px; margin: 2px 0 8px; }
.buzz-meter { font-size: 15px; margin: 0 0 6px; }
.buzz-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 32px; align-items: start; }
.heads li, .threads li { font-size: 15px; line-height: 1.4; }
.heads li a, .threads li a { color: var(--ink); }
.bposts { display: grid; gap: 10px; }
.bpost { padding: 10px 12px; border: 1px solid var(--hair); border-radius: 8px; background: var(--sheet); }
.bp-text { margin: 0 0 6px; font-size: 15px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.talked { margin: 8px 0 0; padding-left: 22px; max-width: 72ch; }
.talked li { padding: 6px 0; border-bottom: 1px solid var(--hair); }
.talked li .dim { display: block; font-size: 13px; }
@media (max-width: 760px) {
  .path-top, .buzz-grid { grid-template-columns: minmax(0, 1fr); }
}
#dpath td:nth-child(2), #dpath th:nth-child(2), #dcomp td:nth-child(2), #dcomp th:nth-child(2), #dcomp td:nth-child(3), #dcomp th:nth-child(3) { text-align: left; }
#dpath td:nth-child(2) { white-space: normal; min-width: 150px; }
@media (max-width: 640px) { #dpath td:nth-child(2) { min-width: 0; white-space: normal; } }
@media (max-width: 640px) { #dpath th, #dpath td, #dcomp th, #dcomp td { padding: 7px 5px; font-size: 14px; } }
.tag-started { color: var(--muted); border-color: var(--muted); }
.final-note { margin: 4px 0 14px; padding: 10px 14px; border-left: 3px solid var(--blue); background: var(--sheet); border-radius: 6px; font-size: 15px; }

/* ---- talent ranges, wins added, plays like, the race (metrics.js) */
.rbar { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 56px; gap: 10px; align-items: center; font-size: 14px; margin: 10px 0; cursor: help; }
.rb-track { position: relative; height: 14px; background: var(--neutral); border-radius: 7px; }
.rb-band { position: absolute; top: 0; bottom: 0; background: var(--blue); opacity: .32; border-radius: 7px; }
.rb-mid { position: absolute; top: -2px; bottom: -2px; width: 3px; margin-left: -1.5px; background: var(--blue); border-radius: 2px; }
.rb-now { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--sheet); border: 2px solid var(--ink); }
.rb-v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.rb-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.rb-band-k { display: inline-block; width: 22px; height: 10px; border-radius: 5px; background: var(--blue); opacity: .32; }
.rb-now-k { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); margin-left: 8px; }
.rb-key .mix-key { margin-left: 8px; }
.stat-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 6px 0 4px; }
.like-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.like-list li { background: var(--sheet); border: 1px solid var(--hair); border-radius: 6px; padding: 10px 12px; }
.like-top { display: flex; align-items: baseline; gap: 6px; }
.like-score { margin-left: auto; font: 700 20px var(--display, inherit); font-variant-numeric: tabular-nums; }
.rank-list { padding-left: 30px; margin: 6px 0; }
.rank-list li { margin: 4px 0; }
.rank-list b { font-variant-numeric: tabular-nums; margin-left: 4px; }
.wp-notes ol, .wp-notes ul { padding-left: 20px; }
table.worth { width: 100%; font-size: 14px; }
table.worth td:first-child, table.worth th:first-child { text-align: left; }
@media (max-width: 640px) { .rbar { grid-template-columns: minmax(0, 110px) minmax(0, 1fr) 50px; font-size: 13px; } }

/* ---------------------------------------------------------------- team colors (app.js TEAM_COLOR; colors only, no logos) */
.tcol { --ta: var(--ta-l, var(--blue)); --th: var(--th-l, var(--blue)); --tc: var(--tc-l, var(--blue)); }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .tcol { --ta: var(--ta-d, var(--blue)); --th: var(--th-d, var(--blue)); --tc: var(--tc-d, var(--blue)); } }
:root[data-theme="dark"] .tcol { --ta: var(--ta-d, var(--blue)); --th: var(--th-d, var(--blue)); --tc: var(--tc-d, var(--blue)); }

.game.tcol { position: relative; overflow: hidden; padding-top: 16px; }
.game.tcol::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--ta) 0 50%, var(--th) 50% 100%); }
.game.tcol .side-away .bar-fill { background: var(--ta); }
.game.tcol .side-home .bar-fill { background: var(--th); }
.game.tcol .side-away .abbr { color: var(--ta); }
.game.tcol .side-home .abbr { color: var(--th); }
.winsplit { display: flex; height: 18px; border-radius: 9px; overflow: hidden; font-size: 11px; line-height: 18px; color: #fff; cursor: help; }
.winsplit span { display: block; padding: 0 8px; white-space: nowrap; overflow: hidden; }
.ws-a { background: var(--ta); }
.ws-h { background: var(--th); flex: 1; text-align: right; }
.winsplit b, .hero-split b { font-weight: 700; text-shadow: 0 1px 1px rgb(0 0 0 / .35); }

/* ---------------------------------------------------------------- Tonight: the game of the night */
.hero { max-width: 1240px; margin: 18px auto 0; padding: 22px 24px 20px; position: relative; overflow: hidden;
  background: var(--sheet); border: 1px solid var(--hair); border-radius: 10px; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .10;
  background: linear-gradient(110deg, var(--ta) 0 46%, transparent 46% 54%, var(--th) 54% 100%); }
.hero > * { position: relative; }
.hero-kicker { display: flex; justify-content: space-between; gap: 12px; font: 700 13px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero-match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 10px 0 14px; }
.hero-team { display: grid; gap: 4px; }
.hero-home { justify-items: end; text-align: right; }
.hero-abbr { font: 800 clamp(56px, 11vw, 112px)/.9 var(--display); text-decoration: none; letter-spacing: .01em; }
.hero-away .hero-abbr { color: var(--ta); }
.hero-home .hero-abbr { color: var(--th); }
.hero-name { font: 600 15px var(--body); color: var(--ink-2); }
.hero-at { font: 700 20px var(--display); color: var(--muted); text-transform: uppercase; }
.hero-g { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; margin-top: 4px; }
.hero-home .hero-g { flex-direction: row-reverse; }
.hero-g small, .hero-p small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.hero-split { display: flex; height: 34px; border-radius: 17px; overflow: hidden; color: #fff; font: 700 18px/34px var(--display); }
.hero-split span { display: block; padding: 0 14px; white-space: nowrap; transform-origin: left; animation: grow .9s cubic-bezier(.2, .8, .2, 1) both; }
.hs-a { background: var(--ta); }
.hs-h { background: var(--th); flex: 1; text-align: right; transform-origin: right !important; }
.hero-line { margin: 8px 0 14px; color: var(--ink-2); font-size: 15px; }
.hero-watch { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.hero-p { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--ice); color: var(--ink); text-decoration: none; }
.hero-p:hover { background: var(--crease); }
.hero-p b { font-weight: 700; }
.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.mug { border-radius: 50%; background: var(--neutral); object-fit: cover; flex: none; }
.mug-empty { display: inline-block; width: 36px; height: 36px; }
@media (max-width: 640px) {
  .hero { margin: 12px 12px 0; padding: 16px 14px; }
  .hero-name { font-size: 13px; }
  .hero-g span { display: none; }
}

/* ---------------------------------------------------------------- motion (all off under prefers-reduced-motion, above) */
@keyframes grow { from { transform: scaleX(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.slate .bar-fill, .winsplit span, .cellbar .bar-fill, .meter .bar-fill { transform-origin: left; animation: grow .7s cubic-bezier(.2, .8, .2, 1) both; }
.slate .game { animation: rise .45s ease-out both; }
.slate .game:nth-child(2) { animation-delay: .04s; } .slate .game:nth-child(3) { animation-delay: .08s; } .slate .game:nth-child(4) { animation-delay: .12s; }
.slate .game:nth-child(5) { animation-delay: .16s; } .slate .game:nth-child(6) { animation-delay: .2s; } .slate .game:nth-child(n+7) { animation-delay: .24s; }
.hero { animation: rise .5s ease-out both; }
@keyframes goalflash { 0% { box-shadow: 0 0 0 0 var(--red); } 30% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--red) 45%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.just-scored { animation: goalflash 1.6s ease-out 3; }
.ls-game.just-scored b { color: var(--red); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
td .mug { vertical-align: middle; margin-right: 8px; }
.sl-name { display: flex; align-items: center; gap: 10px; }
.wc-head .mug, .pc-head .mug { vertical-align: middle; margin-right: 8px; }
.wc-head, .pc-head { align-items: center; }
.tcol .t-a { color: var(--ta); }
.tcol .t-h { color: var(--th); }
.team-head h1 { display: inline-block; padding-bottom: 4px; border-bottom: 5px solid var(--tc); }
.phead.tcol .ph-photo { box-shadow: 0 0 0 4px var(--tc); }

/* ---------------------------------------------------------------- brand: the faceoff-circle mark and wordmark */
.wordmark { display: inline-flex; align-items: center; gap: 10px; }
.wm-mark { width: 36px; height: 36px; color: var(--ink); flex: none; }
.wm-text { display: inline-flex; align-items: baseline; gap: 6px; font: 800 32px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.wm-the { font: 700 15px var(--body); text-transform: lowercase; color: var(--muted); letter-spacing: 0; }
.wm-ice { color: var(--blue); }
.wordmark:hover .wm-mark circle:last-of-type { transform-origin: 20px 20px; animation: puckspin .6s ease-out; }
@keyframes puckspin { 50% { transform: scale(.6); } }
@media (max-width: 640px) { .wm-text { font-size: 26px; } .wm-mark { width: 30px; height: 30px; } }
