@font-face { font-family: "Big Shoulders Display"; font-weight: 800; src: url(/type/bigshoulders-800.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; font-weight: 900; src: url(/type/bigshoulders-900.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Archivo"; src: url(/fonts/archivo-var.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/ibm-plex-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ground: #ead2a8;
  --surface: #fffaf1;
  --raised: #f6ead6;
  --line: #dcc8a6;
  --ink: #1e1610;
  --soft: #64533f;
  --yellow: #d4470c;
  --on-accent: #fff;
  --deep: #1e1610;
  --maple: #cf9f66;
  --maple-2: #c49359;
  --seam: #ae7d48;
  --chalk: #fff9ee;
  --hot: #e8431f;
  --warm: #f2ae1c;
  --cold: #3f86c9;
  --dock: 72px;
  --display: "Big Shoulders Display", Impact, sans-serif;
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; padding-bottom: calc(var(--dock) + 8px); background-color: var(--ground); background-image: repeating-linear-gradient(90deg, rgb(150 104 54 / .13) 0 1px, transparent 1px 74px), repeating-linear-gradient(90deg, rgb(255 244 220 / .3) 0 148px, transparent 148px 296px); color: var(--ink); font: 400 15px/1.45 var(--sans); }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.small { font-size: 13.5px; line-height: 1.35; }
.muted { color: var(--soft); }
.empty { padding: 24px 0; font-size: 17px; color: var(--soft); max-width: 46ch; }

/* Masthead */
.mast { display: flex; align-items: center; gap: 12px; padding: 10px 20px; background: var(--yellow); color: #fff; }
.brand { display: flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.wordmark { font: 900 34px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.search { position: relative; width: min(280px, 100%); }
.search input { width: 100%; height: 36px; padding: 0 12px; background: #fff; color: var(--ink); border: 0; border-radius: 6px; font-weight: 500; }
.search input::placeholder { color: var(--soft); }
#search-results { position: absolute; z-index: 30; top: 42px; left: 0; right: 0; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
#search-results button { display: flex; justify-content: space-between; gap: 10px; width: 100%; min-height: 42px; padding: 8px 12px; background: none; border: 0; text-align: left; }
#search-results button:hover, #search-results button:focus-visible { background: var(--yellow); color: #fff; }
#search-results span { color: var(--soft); }
#search-results button:hover span { color: #fff; }
#search-results .none { padding: 12px; color: var(--soft); }

/* Tonight's games */
.ticker { border-block: 1px solid var(--line); background: var(--surface); }
#games { display: flex; overflow-x: auto; scrollbar-width: none; }
#games li { flex: none; border-right: 1px solid var(--line); }
.tip { display: grid; grid-template-columns: auto auto; gap: 0 12px; align-items: baseline; height: 56px; padding: 8px 14px; background: none; border: 0; box-shadow: inset 0 -2px 0 transparent; text-align: left; }
.tip:hover:not(:disabled) { background: var(--raised); }
.tip.on { background: var(--ink); color: #fff; box-shadow: none; }
.tip.on .tip-time, .tip.on .tip-total, .tip.on .tip-teams i { color: #e6d8c3; }
.tip:disabled { cursor: default; opacity: .55; }
.tip-teams { grid-row: span 2; display: flex; align-items: center; gap: 5px; font-size: 14.5px; }
.tip-teams b { font-weight: 700; }
.tip-teams i { color: var(--soft); font-style: normal; font-size: 12px; }
.tip-time, .tip-total { font: 500 11.5px/1.3 var(--mono); color: var(--soft); text-align: right; }

/* The floor */
.floor { display: grid; grid-template-columns: 310px minmax(380px, 1fr) minmax(420px, 1fr); align-items: start; gap: 20px; padding: 16px 20px; max-width: 1640px; margin: 0 auto; }
.box { position: sticky; top: 12px; padding: 12px; background: var(--surface); border-radius: 4px; max-height: calc(100vh - var(--dock) - 28px); overflow-y: auto; scrollbar-width: auto; scrollbar-color: #b9a27e transparent; }
.box h2 { font: 800 22px/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.box-sub { margin-bottom: 10px; font-size: 13px; color: var(--soft); }
.boxscore { width: 100%; margin-bottom: 14px; border-collapse: collapse; font-size: 13.5px; }
.boxscore caption { padding: 4px 8px; background: var(--bg); color: var(--fg); border-radius: 4px 4px 0 0; text-align: left; font-weight: 700; font-size: 13px; }
.boxscore thead th { padding: 4px 6px; font-size: 11.5px; font-weight: 600; color: var(--soft); text-align: left; border-bottom: 1px solid var(--line); }
.boxscore .num { width: 42px; text-align: right; font-family: var(--mono); font-size: 12.5px; }
.boxscore thead .num { font-family: var(--sans); font-size: 11.5px; }
.boxscore td { padding: 0 6px; border-bottom: 1px solid var(--line); color: var(--soft); }
.boxscore tbody th { padding: 0; font-weight: 500; text-align: left; border-bottom: 1px solid var(--line); }
.boxscore tbody th button { display: flex; align-items: center; gap: 7px; width: 100%; min-height: 31px; padding: 2px 4px; background: none; border: 0; text-align: left; font-weight: 500; }
.boxscore tbody tr:hover { background: var(--raised); }
.boxscore tr.on { background: #ffe2cc; box-shadow: inset 3px 0 0 var(--yellow); }
.boxscore tr.on td { color: var(--ink); }
.boxscore tr.out { opacity: .5; }

.boxscore { margin-bottom: 0; }
.box-team { margin-bottom: 14px; }
.more { margin-top: 2px; }
.more summary { padding: 6px; font-size: 13px; font-weight: 600; color: #b23a08; cursor: pointer; }
.more summary:hover { color: var(--ink); }
.rest th button { color: var(--soft); }
.rest tr.on th button { color: var(--ink); }
.who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 142px; }
.boxscore em { font: 500 10px var(--mono); color: #b23a08; }
.num-chip { flex: none; display: inline-grid; place-items: center; width: 24px; height: 20px; background: var(--bg); color: var(--fg); border-radius: 3px; font: 500 11.5px var(--mono); }

/* Center: player and court */
.center { display: grid; gap: 10px; min-width: 0; }
.plate { display: flex; align-items: center; gap: 12px; }
.plate-num { flex: none; display: grid; place-items: center; width: 62px; height: 62px; background: var(--bg); color: var(--fg); border-radius: 4px; font: 900 38px/1 var(--display); }
.plate h1 { font: 900 clamp(32px, 3.5vw, 46px)/.98 var(--display); text-transform: uppercase; letter-spacing: .005em; }
.plate p { font-size: 14px; color: var(--soft); }
.flag { padding: 8px 12px; background: #ffe6d2; border-left: 4px solid var(--yellow); font-size: 13.5px; line-height: 1.4; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 2px solid var(--ink); }
.tabs button { flex: none; padding: 7px 10px; background: none; border: 0; box-shadow: inset 0 -2px 0 transparent; color: var(--soft); font-weight: 600; font-size: 13.5px; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { background: var(--ink); color: #fff; box-shadow: none; border-radius: 3px 3px 0 0; }

.court-wrap { border-radius: 2px; overflow: hidden; border: 4px solid var(--ink); }
.court { display: block; width: 100%; height: auto; max-height: calc(100vh - 330px); min-height: 300px; margin: 0 auto; }
.maple { fill: var(--maple); }
.plank { fill: var(--maple-2); }
.seam { stroke: var(--seam); stroke-width: 1; opacity: .5; }
.paint { opacity: .9; }
.court-line { fill: none; stroke: var(--chalk); stroke-width: 2.5; }
.court-line.dash { stroke-dasharray: 10 8; }
.board { stroke: var(--chalk); stroke-width: 4; }
.rim { fill: none; stroke: #ff5a1f; stroke-width: 3.5; }
.arc { fill: none; stroke: #e8431f; stroke-width: 6; }
.arc-tag { fill: #fff; font: 800 18px var(--display); letter-spacing: .03em; paint-order: stroke; stroke: #c93a0a; stroke-width: 7px; }
.season-ring { fill: none; stroke: var(--deep); stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; opacity: .75; }
.ring-tag { fill: var(--deep); font: 700 12.5px var(--sans); }
.spot { cursor: pointer; outline: none; }
.spot path { stroke: var(--deep); stroke-width: 1.5; transition: stroke-width .12s ease; }
.spot.hot path { fill: var(--hot); }
.spot.warm path { fill: var(--warm); }
.spot.cold path { fill: var(--cold); }
.spot.none path { fill: #6d7477; }
.spot text { fill: var(--deep); pointer-events: none; }
.spot-line { font: 800 11.5px var(--sans); }
.spot-pct { font: 500 11.5px var(--mono); }
.spot:hover path, .spot:focus-visible path, .spot.focus path { stroke: #fff; stroke-width: 3.5; }
.spot.on path { fill: var(--deep); stroke: #fff; stroke-width: 3; }
.spot.on text { fill: #fff; }
.court-key { font-size: 13px; color: var(--ink); }

/* Lines */
.lines { display: grid; gap: 12px; min-width: 0; }
.strip { padding: 10px 12px 8px; background: var(--surface); border-radius: 4px; }
.strip-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.strip-head h3 { font: 800 19px var(--display); text-transform: uppercase; letter-spacing: .02em; }
.strip-head p { font-size: 13px; color: var(--soft); }
.strip-head strong { color: var(--ink); font-family: var(--mono); font-weight: 500; }
.bars { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; height: 92px; }
.bars li { display: grid; grid-template-rows: 14px 1fr 13px; min-width: 0; text-align: center; }
.bar-val { font: 500 10.5px/14px var(--mono); color: var(--soft); }
.bars i { align-self: end; display: block; height: var(--h); background: #cdb996; border-radius: 2px 2px 0 0; }
.bars .hit i { background: var(--yellow); }
.bars .hit .bar-val { color: #b23a08; }
.bar-opp { font-size: 9.5px; line-height: 13px; color: var(--soft); overflow: hidden; }

.ladder-wrap { max-height: calc(100vh - 300px); min-height: 240px; overflow-y: auto; scrollbar-width: thin; background: var(--surface); border-radius: 4px; }
.ladder { width: 100%; border-collapse: collapse; font-size: 14px; }
.ladder thead th { position: sticky; top: 0; z-index: 2; padding: 7px 8px; background: var(--surface); font-size: 12px; font-weight: 600; color: var(--soft); text-align: left; box-shadow: inset 0 -1px 0 var(--line); white-space: nowrap; }
.ladder tbody th { padding: 3px 8px; font-weight: 700; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.ladder td { padding: 3px 8px; border-bottom: 1px solid var(--line); }
.ladder .num { text-align: right; font: 500 13px var(--mono); }
.ladder thead .num { font: 600 12px var(--sans); }
.ladder .alt { color: var(--soft); }
.ladder tbody tr:hover, .ladder tr.focused { background: var(--raised); }
.ladder tr.picked { background: #ffe2cc; }
.bar-cell { position: relative; min-width: 96px; width: 30%; }
.bar-cell strong { position: relative; font: 500 14px var(--mono); }
.meter { position: absolute; left: 8px; right: 8px; top: 50%; height: 20px; transform: translateY(-50%); background: linear-gradient(90deg, var(--c) var(--w), transparent var(--w)); opacity: .42; border-radius: 2px; }
.meter.hot { --c: var(--hot); }
.meter.warm { --c: var(--warm); }
.meter.cold { --c: var(--cold); }
.meter.none { --c: transparent; }
.act { text-align: right; width: 56px; }
.add { width: 46px; height: 28px; background: none; border: 1px solid #9a8567; border-radius: 5px; font-weight: 700; font-size: 13px; }
.add:hover:not(:disabled) { border-color: var(--yellow); color: #b23a08; }
.add[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: #fff; }
.add:disabled { opacity: .35; cursor: not-allowed; }
.stamp { font-size: 12.5px; color: var(--ink); }

/* Scorer's table */
.table { --surface: #17100b; --raised: #2d221a; --ink: #fff; --soft: #c9b8a0; --line: #3c2e23; --yellow: #ff7a1a; --deep: #17100b; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; color: var(--ink); background: var(--surface); border-top: 4px solid #ff7a1a; }
.table-bar { color: inherit; display: flex; align-items: center; gap: 16px; width: 100%; height: var(--dock); padding: 0 20px; background: none; border: 0; text-align: left; }
.run-title { flex: none; font: 900 26px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.run-empty { flex: 1; color: var(--soft); }
.run-legs { flex: 1; display: flex; gap: 6px; min-width: 0; overflow: hidden; }
.mini { flex: none; padding: 4px 9px; background: var(--raised); border-radius: 4px; font-size: 13px; font-weight: 600; white-space: nowrap; animation: pop .22s ease-out; }
.run-stats { flex: none; display: flex; align-items: center; gap: 20px; }
.run-stat { display: flex; align-items: center; gap: 8px; }
.run-stat small { font-size: 12px; color: var(--soft); }
.run-stat b { font: 500 21px var(--mono); color: var(--yellow); }
.run-open { flex: none; padding: 7px 13px; background: var(--yellow); color: #17100b; border-radius: 6px; font-weight: 700; font-size: 14px; }
.clock { display: inline-flex; align-items: center; gap: 2px; padding: 4px 7px; background: #050606; border-radius: 4px; }
.led { width: 19px; height: 31px; }
.led .lit { fill: var(--yellow); }
.led .dim { fill: #231610; }
.clock-sym { font: 500 15px var(--mono); color: var(--yellow); }

/* The run, opened */
.sheet { position: fixed; z-index: 35; top: 0; right: 0; bottom: calc(var(--dock) + 2px); width: 390px; display: grid; align-content: start; gap: 12px; padding: 16px; overflow-y: auto; background: var(--surface); border-left: 1px solid var(--line); animation: slide .2s ease-out; }
.sheet[hidden] { display: none; }
.sheet-head { display: flex; align-items: baseline; gap: 14px; }
.sheet-head h2 { flex: 1; font: 900 30px/1 var(--display); text-transform: uppercase; }
.link { padding: 0; background: none; border: 0; color: #b23a08; font-size: 13.5px; font-weight: 600; text-decoration: underline; }
.huddle { color: var(--soft); }
.legs { display: grid; gap: 8px; }
.legs li { display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; gap: 10px; align-items: center; animation: pop .22s ease-out; }
.leg-body { display: grid; min-width: 0; }
.leg-body strong { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leg-body > span:not(.alive) { font-size: 13.5px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alive { display: block; height: 4px; margin-top: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.alive i { display: block; height: 100%; width: var(--w); background: var(--yellow); }
.leg-p { font: 500 17px var(--mono); text-align: right; }
.leg-p small { display: block; font-size: 12px; color: var(--soft); }
.x { width: 28px; height: 28px; padding: 0; background: none; border: 1px solid #3a454a; border-radius: 50%; font-size: 12px; font-weight: 700; }
.x:hover { border-color: var(--hot); color: var(--hot); }
.score { --yellow: #ff7a1a; display: grid; justify-items: center; gap: 6px; padding: 12px; background: #17100b; color: #fff; border-radius: 4px; }
.score > p:first-child { font-size: 13px; color: #c9b8a0; }
.score .led { width: 38px; height: 62px; }
.score .clock { gap: 5px; padding: 0; background: none; }
.score .clock-sym { font-size: 26px; }
.fair { font: 500 14px var(--mono); }
.est { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; background: var(--raised); border-radius: 8px; }
.est span { display: block; font-weight: 700; }
.est small { display: block; font-size: 12.5px; line-height: 1.3; color: var(--soft); }
.est strong { font: 900 32px var(--display); color: #b23a08; white-space: nowrap; }
.price { display: grid; gap: 4px; font-size: 13.5px; font-weight: 600; }
.price input { width: 100%; height: 40px; padding: 0 12px; background: var(--raised); border: 1px solid var(--line); border-radius: 6px; font: 500 16px var(--mono); }
.verdict { padding: 10px 12px; border-radius: 8px; }
.verdict strong { display: block; font: 900 24px/1.05 var(--display); text-transform: uppercase; }
.verdict p { font-size: 13.5px; line-height: 1.35; }
.verdict.past { background: var(--yellow); color: #fff; }
.verdict.short { background: var(--raised); border: 1px solid var(--line); }
.seg { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button { flex: 1; min-height: 34px; padding: 0 6px; background: none; border: 0; color: var(--soft); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--ink); color: #fff; }
.suggest { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.suggest h3 { font-size: 15px; font-weight: 800; }
.build { min-height: 42px; background: var(--yellow); color: #fff; border: 0; border-radius: 6px; font-weight: 800; }
.build:hover { background: var(--ink); }

.foot { display: grid; gap: 4px; padding: 16px 20px; font-size: 12.5px; color: var(--ink); max-width: 1640px; margin: 0 auto; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: calc(var(--dock) + 14px); transform: translateX(-50%); padding: 9px 14px; background: var(--ink); color: #fff; border-radius: 6px; font-weight: 700; font-size: 14px; }

@keyframes pop { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slide { from { transform: translateX(26px); opacity: 0; } to { transform: none; opacity: 1; } }

.out-row th, .out-row td, .out-row strong { color: #a2937f; }
.out-row .meter { background: linear-gradient(90deg, #a2937f var(--w), transparent var(--w)); opacity: .3; }
.add:disabled { opacity: 1; color: #a2937f; border-color: var(--line); cursor: not-allowed; }
.spot.locked { cursor: not-allowed; }
.spot.locked path { fill: #b5ab9b !important; stroke: #8b8071 !important; stroke-width: 1.5 !important; }
.spot.locked text { fill: #4d453a !important; }

.sheet .xray, .sheet .sweat { --x-panel: var(--raised); --x-accent: var(--yellow); }
.nextman { --radius: 4px; }

.box:empty { display: none; }

tr.jumped { --jump: #d4470c; }

@media (max-width: 1320px) {
  .floor { grid-template-columns: 290px minmax(0, 1fr); }
  .lines { grid-column: 1 / -1; }
  .ladder-wrap { max-height: none; }
  .court { max-height: none; }
}

@media (max-width: 860px) {
  .floor { grid-template-columns: minmax(0, 1fr); padding: 12px 14px; gap: 14px; }
  .box { position: static; max-height: 380px; }
  .center { order: -1; }
  .box { order: 0; }
  .lines { grid-column: auto; }
}

@media (max-width: 640px) {
  :root { --dock: 62px; }
  .mast { padding: 8px 14px; gap: 10px; }
  .search { flex: 1; width: auto; }
  .wordmark { font-size: 22px; }
  .tip { height: 52px; padding: 7px 11px; gap: 0 9px; }
  .table-bar { padding: 0 12px; gap: 10px; }
  .run-legs, .run-title, .run-stat small { display: none; }
  .run-stats { flex: 1; justify-content: space-between; gap: 10px; }
  .run-empty { font-size: 14px; }
  .run-stat b { font-size: 18px; }
  .sheet { left: 0; width: auto; top: 44px; border-left: 0; border-radius: 12px 12px 0 0; animation: rise .2s ease-out; }
  .book-col, .ladder.priced .fair-col { display: none; }
  .ladder th, .ladder td { padding-inline: 5px; }
  .bar-cell { min-width: 84px; }
  .act { width: 50px; }
  .court { min-height: 0; }
}
@keyframes rise { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
