@font-face { font-family: "Saira Extra Condensed"; font-weight: 600; src: url(/type/saira-600.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Saira Extra Condensed"; font-weight: 800; src: url(/type/saira-800.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Saira Semi Condensed"; font-weight: 400; src: url(/type/sairasemi-400.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Saira Semi Condensed"; font-weight: 600; src: url(/type/sairasemi-600.woff2) format("woff2"); font-display: swap; }

:root {
  --ground: #081722;
  --surface: #0f2332;
  --raised: #17303f;
  --line: #27465a;
  --ink: #eaf3f8;
  --soft: #9db6c4;
  --accent: #6fd0ff;
  --accent-ink: #06202e;
  --ice: #eff6fa;
  --goal: #d7132c;
  --blue: #0a4fb4;
  --hot: #ff5a4f;
  --warm: #ffd23f;
  --cold: #6fd0ff;
  --radius: 3px;
  --display: "Saira Extra Condensed", "Arial Narrow", sans-serif;
  --sans: "Saira Semi Condensed", system-ui, sans-serif;
  --mono: "Saira Semi Condensed", system-ui, sans-serif;
}

body { margin: 0; background: var(--ground); color: var(--ink); font: 400 15px/1.4 var(--sans); }

.mast { display: flex; align-items: center; gap: 14px; padding: 8px 18px; background: var(--surface); border-bottom: 3px solid var(--goal); }
.brand { flex: none; display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.wordmark { font: 800 29px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }
.ticker { flex: 1; min-width: 0; }
#games { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tip { display: grid; gap: 0; min-width: 96px; padding: 3px 10px; background: none; border: 0; border-bottom: 2px solid transparent; text-align: left; white-space: nowrap; }
.tip:hover:not(:disabled) { background: var(--raised); }
.tip.on { background: var(--raised); border-bottom-color: var(--accent); }
.tip:disabled { opacity: .5; cursor: default; }
.tip-teams { font: 600 16px/1.15 var(--display); letter-spacing: .02em; }
.tip-time { font-size: 11.5px; color: var(--soft); }
.search { flex: 0 1 210px; }

.arena { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 340px; gap: 14px; align-items: start; padding: 14px 18px; max-width: 1680px; margin: 0 auto; }
.ice-stage { grid-column: 1 / 3; display: grid; gap: 8px; min-width: 0; }

.plate { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 6px 12px 0 0; background: linear-gradient(90deg, var(--bg) 88px, transparent 88px); }
.plate-no { grid-row: span 3; display: grid; place-items: center; width: 76px; height: 76px; color: var(--fg); font: 800 44px/1 var(--display); }
.plate h1 { font: 800 36px/1 var(--display); text-transform: uppercase; letter-spacing: .005em; }
.plate p { font-size: 13.5px; color: var(--soft); }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs button { flex: none; padding: 3px 11px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--soft); font: 600 16px var(--display); letter-spacing: .03em; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--goal); }
.flag { background: #2b1a22; border-left: 3px solid var(--goal); }

.rink-wrap { min-width: 0; }
.rink { display: block; width: 100%; height: auto; }
.ice { fill: var(--ice); }
.boards { fill: none; stroke: #c9d8e2; stroke-width: 7; }
.goal-line { stroke: var(--goal); stroke-width: 2.5; }
.red-line { stroke: var(--goal); stroke-width: 7; }
.blue-far { stroke: var(--blue); stroke-width: 7; opacity: .35; }
.blue-line { stroke: var(--blue); stroke-width: 9; }
.line-tag { font: 800 19px var(--display); fill: var(--ice); paint-order: stroke; stroke: var(--blue); stroke-width: 9px; letter-spacing: .03em; }
.season-line { stroke: var(--goal); stroke-width: 2.5; stroke-dasharray: 4 8; stroke-linecap: round; }
.faceoff { fill: none; stroke: var(--goal); stroke-width: 2.5; opacity: .75; }
.center-ice { fill: none; stroke-width: 5; opacity: .85; }
.dot { fill: var(--goal); opacity: .8; }
.crease { fill: #a9d6f2; stroke: var(--goal); stroke-width: 2; }
.net { fill: none; stroke: #4a5a66; stroke-width: 2.5; }
.puck { cursor: pointer; outline: none; }
.puck circle { fill: #10171c; stroke-width: 5; transition: stroke-width .12s ease; }
.puck.hot circle { stroke: var(--hot); }
.puck.warm circle { stroke: var(--warm); }
.puck.cold circle { stroke: var(--cold); }
.puck.none circle { stroke: #6d7477; }
.puck text { fill: #fff; pointer-events: none; }
.puck-line { font: 800 18px var(--display); }
.puck-pct { font: 600 16px var(--display); fill: #cfe0ea !important; }
.puck:hover circle, .puck:focus-visible circle, .puck.focus circle { stroke-width: 8; }
.puck.on circle { fill: var(--goal); stroke: #fff; }
.rink-key { font-size: 13px; color: var(--soft); }

.bench { display: grid; gap: 12px; min-width: 0; }
.side { padding: 10px; background: var(--surface); border-top: 3px solid var(--team); }
.side h3 { margin-bottom: 6px; font: 800 20px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.group { margin-top: 8px; }
.group h4 { margin: 0 0 3px; font: 600 12px var(--sans); color: var(--soft); text-transform: uppercase; letter-spacing: .08em; }
.combo { display: grid; gap: 3px; }
.combo.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.combo.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sweater { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 7px; min-width: 0; padding: 3px 5px 3px 3px; background: var(--raised); border: 1px solid transparent; text-align: left; }
.sweater:hover { border-color: var(--line); }
.sweater.on { border-color: var(--accent); }
.sweater.out { opacity: .5; }
.no { grid-row: span 2; display: grid; place-items: center; height: 36px; background: var(--bg); color: var(--fg); font: 800 17px/1 var(--display); }
.nm { font-weight: 600; font-size: 13.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm em { margin-left: 4px; font-style: normal; font-size: 10.5px; color: var(--warm); }
.ln { font-size: 12px; color: var(--soft); }

.lines { display: grid; gap: 10px; min-width: 0; }
.tally { padding: 8px 10px; background: var(--surface); }
.tally-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.tally-head h3 { font: 600 16px var(--display); letter-spacing: .03em; text-transform: uppercase; }
.tally-head p { font-size: 13px; color: var(--soft); }
.tally-head strong { color: var(--ink); }
.pips { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; }
.pips li { display: grid; justify-items: center; grid-template-rows: 78px 15px 12px; min-width: 0; }
.pip-stack { display: flex; flex-direction: column-reverse; gap: 2px; align-self: end; align-items: center; width: 100%; height: 78px; }
.pip-stack i { display: block; width: 14px; height: 6px; border-radius: 50%; background: #4f6d80; }
.pip-stack b { display: block; align-self: stretch; height: var(--h); background: #4f6d80; }
.pips .hit i, .pips .hit b { background: var(--accent); }
.pip-val { font-weight: 600; font-size: 12.5px; }
.pip-opp { font-size: 10px; line-height: 12px; color: var(--soft); }
.ladder-wrap { max-height: 430px; background: var(--surface); }
.ladder thead th { background: var(--surface); color: var(--soft); box-shadow: inset 0 -1px 0 var(--line); }
.ladder thead .num { font-family: var(--sans); }
.ladder tbody th, .ladder td { border-bottom: 1px solid #16303f; }
.ladder .alt { color: var(--soft); }
.ladder tr:hover td, .ladder tr:hover th, .ladder tr.focused td, .ladder tr.focused th { background: var(--raised); }
.ladder tr.picked td, .ladder tr.picked th { background: #123a52; }
.meter { border-radius: 0; }

.sheet { grid-column: 3; grid-row: 1 / span 2; position: sticky; top: 12px; max-height: calc(100vh - 24px); background: var(--surface); border-top: 3px solid var(--goal); }
.sheet-head h2 { font: 800 26px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.leg-p { font-weight: 600; }
.x:hover { border-color: var(--goal); color: var(--goal); }
.scoreboard { position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 12px 12px; background: #030a10; border: 1px solid var(--line); }
.scoreboard p:first-of-type { font-size: 13px; color: var(--soft); }
.lamp { position: absolute; top: 10px; right: 12px; width: 18px; height: 18px; border-radius: 50%; background: #3b1117; border: 2px solid #5a2029; }
.verdict-past .lamp { background: #ff2b3d; border-color: #ffb3ba; box-shadow: 0 0 0 5px rgb(255 43 61 / .22); animation: lamp 1.1s ease-in-out 3; }
@keyframes lamp { 50% { background: #5a1520; box-shadow: none; } }
.board-digits { display: flex; gap: 3px; }
.tile { display: grid; place-items: center; width: 44px; height: 62px; background: #101d27; color: #ffe27a; font: 800 46px/1 var(--display); }
.tile.sym { width: 28px; font-size: 26px; }
.fair { font-weight: 600; }
.est strong { color: var(--accent); font-family: var(--display); font-weight: 800; font-size: 31px; }
.verdict.past { background: var(--goal); color: #fff; }
.verdict.short { background: var(--raised); }
.verdict strong { font: 800 22px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.suggest h3 { font: 800 19px var(--display); text-transform: uppercase; letter-spacing: .02em; }
.shift-tab { display: none; }

.out-row th, .out-row td, .out-row strong { color: #6d8594; }
.out-row .meter { background: linear-gradient(90deg, #6d8594 var(--w), transparent var(--w)); opacity: .3; }
.add:disabled { opacity: 1; color: #6d8594; cursor: not-allowed; }
.puck.locked { cursor: not-allowed; }
.puck.locked circle { fill: #9fb0ba !important; stroke: #7b8f9b !important; stroke-width: 3 !important; }
.puck.locked text { fill: #24343f !important; }

.sheet .xray, .sheet .sweat { --x-panel: var(--raised); }

tr.jumped { --jump: var(--accent); }

@media (max-width: 1180px) {
  body { padding-bottom: 64px; }
  .arena { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 12px 14px; }
  .ice-stage { grid-column: 1 / -1; }
  .sheet { position: fixed; z-index: 35; top: auto; left: 0; right: 0; bottom: 56px; max-height: calc(100vh - 100px); border-radius: 8px 8px 0 0; }
  .shift-tab { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 14px; background: var(--raised); border: 0; border-top: 3px solid var(--goal); text-align: left; }
  .tab-title { font: 800 22px var(--display); text-transform: uppercase; }
  .tab-now { flex: 1; color: var(--soft); }
  .shift-tab b { font: 800 24px var(--display); color: var(--accent); }
  .tab-open { padding: 6px 12px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
}

@media (max-width: 860px) {
  .mast { flex-wrap: wrap; gap: 6px 10px; padding: 8px 14px; }
  .search { flex: 1 1 140px; }
  .ticker { order: 3; flex-basis: 100%; }
  .arena { grid-template-columns: minmax(0, 1fr); }
  .lines { order: 2; }
  .bench { order: 3; }
  .rink-wrap { overflow-x: auto; scrollbar-width: thin; }
  .rink { width: 760px; }
  .plate h1 { font-size: 30px; }
  .plate-no { width: 64px; height: 64px; font-size: 36px; }
  .plate { background: linear-gradient(90deg, var(--bg) 76px, transparent 76px); }
  .book-col, .ladder.priced .fair-col { display: none; }
  .ladder th, .ladder td { padding-inline: 5px; }
  .bar-cell { min-width: 84px; }
  .combo.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
