@font-face { font-family: "Archivo"; src: url(/fonts/archivo-var.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }


:root {
  --paper: #f0f4f0;
  --paper-2: #e2e9e2;
  --ink: #0f1a16;
  --ink-soft: #4b5851;
  --turf: #1f7a43;
  --turf-2: #256d3b;
  --turf-deep: #0f3d26;
  --chalk: #ffffff;
  --tomato: #d8402a;
  --tomato-ink: #b02e1b;
  --mustard: #f2b632;
  --sky: #2d7fd3;
  --leather: #7a3f1d;
  --good: #1f7a3d;
  --even: #b57f0a;
  --long: #c8391f;
  --display: "Archivo", "Arial Narrow", sans-serif
  ;--line: #dbe3dc;
  --cond: "Archivo", "Arial Narrow", sans-serif;
  --body: "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.45 var(--body);
  font-variant-numeric: tabular-nums;
}
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: 3px solid var(--sky); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }

/* Masthead */
.mast {
  display: flex; align-items: center; gap: 24px;
  padding: 10px 24px;
  background: var(--turf-deep); color: var(--chalk);
  padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.wordmark { font: 800 clamp(21px, 2.3vw, 32px)/1 var(--display); letter-spacing: .01em; white-space: nowrap; }
.mast-week { flex: 1; font: 500 15.5px/1.2 var(--cond); color: #d9d2bf; }
.search { position: relative; width: min(300px, 100%); }
.search input {
  width: 100%; height: 38px; padding: 0 14px;
  background: var(--chalk); color: var(--ink);
  border: 0; border-radius: 8px; font: 500 15px var(--body);
}
.search input::placeholder { color: var(--ink-soft); }
#search-results {
  position: absolute; z-index: 30; top: 48px; left: 0; right: 0;
  background: var(--chalk); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 8px 24px rgb(0 0 0 / .16);
}
#search-results button {
  display: flex; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px;
  background: none; border: 0; text-align: left; font: 600 16.5px var(--cond);
}
#search-results button:hover, #search-results button:focus-visible { background: var(--mustard); }
#search-results span { color: var(--ink-soft); }
#search-results .none { padding: 12px; font: 500 15.5px var(--cond); }

/* Three-column board */
.board {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr) 340px;
  align-items: start;
  gap: 24px;
  padding: 24px;
  max-width: 1680px; margin: 0 auto;
}

/* Slate: ticket stubs */
.schedule h2, .drive-head h2 { font: 800 24px/1 var(--display); }
.schedule { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 2px; }
#games { display: grid; gap: 8px; margin-top: 14px; }
.stub {
  position: relative; display: grid; gap: 1px; width: 100%; padding: 8px 12px 8px 18px;
  background: var(--chalk); border: 1px solid var(--line); border-radius: 8px; text-align: left; overflow: hidden;
  transition: transform .14s ease;
}
.stub::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 9px;
  background: var(--away);
}
.stub::after { content: ""; position: absolute; left: 0; bottom: 0; height: 50%; width: 9px; background: var(--home); }
.stub:hover { border-color: var(--turf); }
.stub.on { background: var(--turf-deep); border-color: var(--turf-deep); color: #fff; }
.stub-teams { display: flex; align-items: baseline; gap: 6px; font: 700 19.5px/1.1 var(--cond); }
.stub-teams i { font: 500 13.5px var(--cond); color: var(--ink-soft); }
.stub-when, .stub-lines { font: 500 13.5px/1.2 var(--cond); color: var(--ink-soft); }
.stub.on .stub-when, .stub.on .stub-lines, .stub.on i { color: #d5e6da; }

/* Roster */
.pitch { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.pitch > h1 { font: 800 clamp(22px, 2.2vw, 30px)/1.05 var(--display); }
.empty { font-size: 18px; max-width: 46ch; }
.roster { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pos-tabs { display: flex; flex: none; gap: 2px; padding: 2px; background: var(--paper-2); border-radius: 8px; }
.pos-tabs button { min-width: 42px; height: 34px; padding: 0 8px; background: none; border: 0; border-radius: 6px; font: 700 15.5px/1 var(--cond); }
.pos-tabs button:hover { background: var(--chalk); }
.pos-tabs button.on { background: var(--ink); color: var(--chalk); }
.roster-row { display: flex; gap: 4px; min-width: 0; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px 0 3px;
  background: transparent; border: 2px solid transparent; border-radius: 4px;
  font: 600 15.5px/1 var(--cond); white-space: nowrap;
}
.chip:hover { background: var(--paper-2); }
.chip.on { background: var(--ink); color: var(--chalk); }
.jersey {
  display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 3px;
  background: var(--bg); color: var(--fg); border-radius: 3px; font: 700 13.5px/1 var(--cond);
  }

/* Name plate */
.plate {
  display: flex; align-items: center; gap: 18px; padding: 12px 20px 12px 12px;
  background: var(--bg); color: var(--fg); border-radius: 12px;
}
.plate-num { font: 800 36px/1 var(--display); min-width: 72px; text-align: center; }
.plate h1 { font: 800 clamp(22px, 2.2vw, 30px)/1.05 var(--display); }
.plate p { font: 500 16.5px/1.2 var(--cond); opacity: .92; margin-top: 3px; }
.plate > div { flex: 1; min-width: 0; }
.tag { padding: 4px 10px; background: var(--mustard); color: var(--ink); border-radius: 3px; font: 700 15.5px var(--cond); }

.flag { padding: 10px 14px; background: #fff1d6; border-radius: 8px; font-size: 15.5px; }

/* Market tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 4px 2px; border-bottom: 1px solid var(--line); }
.tabs button {
  padding: 7px 12px 6px; background: none; border: 0; border-radius: 4px 4px 0 0;
  font: 600 16.5px/1.1 var(--cond); color: var(--ink-soft);
}
.tabs button:hover { color: var(--ink); background: var(--paper-2); }
.tabs button.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--turf); background: none; }

/* The Field */
.field-wrap { border-radius: 12px; overflow: hidden; }
.field { display: block; width: 100%; height: auto; }
.turf { fill: var(--turf); }
.mow { fill: var(--turf-2); }
.endzone { fill: var(--tomato); }
.yard { stroke: var(--chalk); stroke-width: 2; opacity: .55; }
.hash { stroke: var(--chalk); stroke-width: 2; opacity: .4; }
.yardnum { fill: var(--chalk); font: 800 20px var(--display); opacity: .8; }
.first { stroke: #ffe135; stroke-width: 5; }
.los { stroke: #54a9ff; stroke-width: 5; }
.first-tag text, .los-tag text { font: 700 17.5px var(--cond); }
.first-tag text { fill: #ffe135; }
.los-tag text { fill: #b5dcff; }
.curve { fill: none; stroke: var(--chalk); stroke-width: 3.5; stroke-linejoin: round; stroke-dasharray: 2 7; stroke-linecap: round; }
.ball ellipse { fill: var(--leather); stroke: var(--chalk); stroke-width: 1.5; }
.ball text { fill: var(--chalk); font: 700 11px var(--cond); }
.pylon { cursor: pointer; outline: none; }
.pylon .hit { fill: transparent; }
.pylon .dot { fill: var(--chalk); stroke: var(--ink); stroke-width: 2; transition: r .12s ease; }
.pylon .pct { fill: var(--chalk); font: 700 18.5px var(--cond); paint-order: stroke; stroke: var(--turf-deep); stroke-width: 4px; }
.pylon:hover .dot, .pylon:focus-visible .dot { r: 10; fill: var(--mustard); }
.pylon.on .dot { fill: var(--tomato); stroke: var(--chalk); r: 9; }

.field-key { display: flex; flex-wrap: wrap; gap: 4px 18px; font: 500 14.5px/1.2 var(--cond); color: var(--ink-soft); }
.field-key span::before { content: ""; display: inline-block; vertical-align: -1px; margin-right: 6px; }
.k-first::before { width: 5px; height: 14px; background: #d9b900; }
.k-los::before { width: 5px; height: 14px; background: #2d7fd3; }
.k-ball::before { width: 18px; height: 11px; border-radius: 50%; background: var(--leather); }
.k-curve::before { width: 12px; height: 12px; border-radius: 50%; background: var(--chalk); border: 2px solid var(--ink); }

/* The ladder */
.ladder { width: 100%; border-collapse: collapse; font: 500 16.5px/1.15 var(--cond); }
.ladder thead th { text-align: left; font: 500 13px var(--cond); color: var(--ink-soft); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.ladder tbody th { text-align: left; font: 700 18.5px var(--cond); padding: 5px 8px; white-space: nowrap; }
.ladder td { padding: 5px 8px; border-bottom: 1px solid #e8eee8; }
.ladder tbody th { border-bottom: 1px solid #e8eee8; }
.ladder .num { text-align: right; }
.ladder .alt { color: var(--ink-soft); }
.ladder .fair { font-weight: 600; font-variant-numeric: tabular-nums; }
.ladder .dk { font-weight: 700; font-variant-numeric: tabular-nums; }
.stamp { font: 500 14px/1.2 var(--cond); color: var(--ink-soft); }
.leg-p small { display: block; font: 600 13.5px/1 var(--cond); color: #d9e6d5; text-align: right; }
.ladder tr.picked { background: #e4f1e7; }
.bar-cell { position: relative; min-width: 130px; width: 30%; }
.bar-cell strong { position: relative; font: 700 19.5px var(--cond); }
.meter {
  position: absolute; left: 8px; right: 8px; top: 50%; height: 24px; transform: translateY(-50%);
  background: var(--c); width: var(--w); max-width: calc(100% - 16px); right: auto;
  opacity: .24; border-radius: 4px;
}
.meter.good { --c: var(--good); }
.meter.even { --c: var(--even); }
.meter.long { --c: var(--long); }
.meter.none { --c: transparent; }
.dots { display: inline-flex; align-items: center; gap: 3px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--turf); }
.dots i.y { background: var(--turf); }
.dots em { margin-left: 6px; font-style: normal; color: var(--ink-soft); }
.act { text-align: right; }
.add {
  height: 32px; min-width: 96px; padding: 0 10px; white-space: nowrap;
  background: var(--chalk); border: 1px solid #b9c7bc; border-radius: 6px; font: 600 14.5px/1 var(--cond);
  transition: transform .1s ease;
}
.add:hover:not(:disabled) { border-color: var(--turf); color: var(--turf); }
.add:active:not(:disabled) { transform: translateY(1px); }
.add[aria-pressed="true"] { background: var(--turf); border-color: var(--turf); color: #fff; }
.add:disabled { opacity: .4; cursor: not-allowed; }

/* The Drive */
.drive {
  position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto;
  display: grid; gap: 14px; padding: 16px;
  background: var(--turf-deep); color: var(--chalk); border-radius: 12px;
}
.drive-head { display: flex; justify-content: space-between; align-items: baseline; }
.link { background: none; border: 0; color: var(--mustard); font: 600 15.5px var(--cond); text-decoration: underline; }
.huddle { padding: 18px 0 8px; }
.huddle-big { font: 800 28px/1.1 var(--display); color: var(--mustard); margin-bottom: 8px; }
.legs { display: grid; gap: 10px; }
.leg { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 28px; gap: 8px; align-items: center; animation: snap .28s ease-out; }
.down {
  display: grid; place-items: center; height: 42px; background: var(--mustard); color: var(--ink);
  border-radius: 3px; font: 700 16.5px/1 var(--cond);
}
.leg-body { display: grid; gap: 1px; min-width: 0; }
.leg-body strong { font: 700 17.5px/1.05 var(--cond); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leg-body > span:not(.alive) { font: 500 14.5px/1.1 var(--cond); color: #d9e6d5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alive { display: block; height: 5px; margin-top: 3px; background: rgb(255 255 255 / .16); border-radius: 3px; overflow: hidden; }
.alive i { display: block; height: 100%; width: var(--w); background: var(--mustard); transition: width .3s ease; }
.leg-p { font: 700 20.5px var(--cond); }
.x { width: 28px; height: 28px; padding: 0; background: none; border: 2px solid rgb(255 248 232 / .45); border-radius: 50%; color: var(--chalk); font: 700 12.5px/1 var(--cond); }
.x:hover { background: var(--tomato); border-color: var(--tomato); }

.score { padding: 12px; background: var(--ink); border-radius: 4px; text-align: center; }
.score-label { font: 600 15.5px var(--cond); color: #d9d2bf; }
.scoreboard { display: flex; justify-content: center; gap: 4px; margin: 8px 0 6px; }
.flap {
  position: relative; display: grid; place-items: center; width: 50px; height: 70px;
  background: #24374f; color: var(--mustard); border-radius: 4px;
  font: 800 44px/1 var(--display); animation: flip .34s ease-out;
}
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--ink); }
.flap.sym { width: 34px; font-size: 26px; color: var(--chalk); }
.score-fair { font: 600 17.5px var(--cond); color: var(--chalk); }
.score-market { margin-top: 2px; font: 500 14px/1.2 var(--cond); color: #d9d2bf; }
.note { font-size: 15px; line-height: 1.35; color: #e4ecdf; }
.price { display: grid; gap: 4px; font: 600 15.5px var(--cond); }
.price input { width: 100%; height: 44px; padding: 0 12px; background: var(--chalk); color: var(--ink); border: 0; border-radius: 4px; font: 700 20.5px var(--cond); }
.price input::placeholder { color: #7a7566; }
.verdict-slot .muted { color: #cfdccb; }
.verdict { padding: 10px 12px; border-radius: 4px; }
.verdict strong { display: block; font: 800 20px/1.1 var(--display); margin-bottom: 3px; }
.verdict p { font-size: 15px; line-height: 1.35; }
.verdict.past { background: var(--mustard); color: var(--ink); }
.verdict.short { background: var(--tomato-ink); color: #fff; }
.basis { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 2px solid var(--chalk); border-radius: 4px; overflow: hidden; }
.basis button { min-height: 36px; background: none; border: 0; color: var(--chalk); font: 600 15.5px var(--cond); }
.basis button.on { background: var(--chalk); color: var(--ink); }

.est { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; background: var(--chalk); color: var(--ink); border-radius: 4px; }
.est span { display: block; font: 700 17.5px/1.1 var(--cond); }
.est small { display: block; margin-top: 2px; font: 500 13px/1.15 var(--cond); color: var(--ink-soft); }
.est strong { font: 800 30px/1 var(--display); color: var(--tomato-ink); white-space: nowrap; }
.suggest { display: grid; gap: 8px; padding-top: 12px; border-top: 2px dashed rgb(255 248 232 / .4); }
.suggest h3 { font: 800 20px/1 var(--display); color: var(--mustard); }
.seg { display: flex; border: 2px solid var(--chalk); border-radius: 4px; overflow: hidden; }
.seg button { flex: 1; min-height: 34px; padding: 0 4px; background: none; border: 0; color: var(--chalk); font: 600 14.5px/1 var(--cond); white-space: nowrap; }
.seg button.on { background: var(--chalk); color: var(--ink); }
.build { min-height: 44px; background: var(--mustard); color: var(--ink); border: 0; border-radius: 4px; font: 700 18.5px var(--cond); }
.build:hover { background: var(--chalk); }
.suggest .small { font-size: 13.5px; line-height: 1.3; color: #cfdccb; }
.drive-tab { display: none; }
.foot { display: grid; gap: 4px; padding: 16px 24px 28px; font-size: 13.5px; color: var(--ink-soft); max-width: 1680px; margin: 0 auto; }
.toast {
  position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 50;
  padding: 10px 16px; background: var(--ink); color: var(--chalk); border-radius: 4px; font: 600 16.5px var(--cond);
}

@keyframes flip { from { transform: rotateX(-90deg); } to { transform: none; } }
@keyframes snap { from { transform: translateX(26px); opacity: 0; } to { transform: none; opacity: 1; } }


/* Between the 20's: football leather, white laces, chalk and turf. */
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/ibm-plex-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Bowlby One"; src: url(/fonts/BowlbyOne-400.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; src: url(/fonts/BarlowCondensed-500.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; src: url(/fonts/BarlowCondensed-600.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; src: url(/fonts/BarlowCondensed-700.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Barlow"; font-weight: 500; src: url(/fonts/Barlow-500.woff2) format("woff2"); font-display: swap; }
:root {
  --paper: #2a1810; --paper-2: #452a1b; --surface: #351f15; --deep: #170d08;
  --ink: #fbf3e4; --ink-soft: #d3bfa6; --line: #5a3a28; --mustard: #ffd23f; --orange: #ff7a1a;
  --ticket: #f4e9d3; --ticket-ink: #2a1810;
  --turf-deep: #0f4a2b; --good: #6fe0a0; --even: #ffd23f; --long: #ffa08a;
  --display: "Bowlby One", Impact, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}
body { background-color: var(--paper); background-image: radial-gradient(rgb(0 0 0 / .2) 1px, transparent 1.4px); background-size: 5px 5px; }
.mast { position: relative; background: #1d100a; padding-bottom: 26px; border: 0; box-shadow: none; }
.mast::after {
  content: ""; position: absolute; left: 50%; bottom: 7px; width: min(420px, 60%); height: 13px; transform: translateX(-50%);
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 3px no-repeat, repeating-linear-gradient(90deg, var(--ink) 0 5px, transparent 5px 34px);
  border-radius: 2px;
}
.wordmark { font: 400 28px/1 var(--display); letter-spacing: .01em; }
.schedule h2, .drive-head h2 { font: 400 23px/1 var(--display); }
.plate h1 { font: 400 clamp(26px, 3vw, 38px)/1.05 var(--display); }
.plate-num { font: 400 54px/1 var(--display); }
.chip, .tabs button, .pos-tabs button, .add { font-family: var(--cond); font-weight: 700; }
.mast-week { color: var(--ink-soft); font-family: var(--cond); font-size: 17px; }
.search input { background: var(--paper-2); color: var(--ink); }
.search input::placeholder { color: var(--ink-soft); }
#search-results { background: var(--paper-2); color: var(--ink); border-color: var(--line); }
#search-results button:hover, #search-results button:focus-visible { background: var(--mustard); color: var(--deep); }
.stub { background: var(--ticket); color: var(--ticket-ink); border: 0; border-radius: 3px; padding-right: 20px; }
.stub::after { content: ""; position: absolute; right: 9px; top: 6px; bottom: 6px; border-right: 2px dashed rgb(42 24 16 / .3); }
.stub:hover { transform: translateX(3px); }
.stub.on { background: var(--mustard); box-shadow: 4px 4px 0 var(--deep); }
.stub-when, .stub-lines, .stub i, .stub.on .stub-when, .stub.on .stub-lines, .stub.on i { color: #5e4634; }
.stub-teams { font-family: var(--cond); }
.pos-tabs button:hover { background: var(--line); }
.pos-tabs button.on, .chip.on { background: var(--mustard); color: var(--deep); }
.flag { background: #4a3214; border-left-color: var(--orange); }
.tabs button.on { box-shadow: inset 0 -2px 0 var(--mustard); }
.pylon .pct { stroke: #0f3d26; }
.k-curve::before { border-color: var(--ink-soft); }
.ladder td, .ladder tbody th { border-bottom-color: var(--line); }
.ladder { font-family: var(--cond); }
.ladder tbody th { font-size: 19px; }
.ladder tr.picked { background: #4f3614; }
.meter { opacity: .3; }
.dots i { border-color: var(--good); }
.pos-tabs button { background: var(--surface); color: var(--ink); }
.pos-tabs button.on, .chip.on { background: var(--mustard); color: var(--deep); }
.chip { color: var(--ink); }
.chip:hover { background: var(--paper-2); }
.tabs button { color: var(--ink-soft); }
.tabs button.on { color: var(--ink); background: none; }
.tabs { border-bottom-color: var(--line); }
#search-results span { color: var(--ink-soft); }
.field-key { color: var(--ink-soft); }
.foot { color: var(--ink-soft); }
.dots i.y { background: var(--good); }
.ladder td.num, .bar-cell strong, .leg-p, .dots em { font-family: "IBM Plex Mono", monospace; font-weight: 500; }
.bar-cell strong { font-size: 18px; }
.add { background: none; border-color: #7b5a44; color: var(--ink); }
.add:hover:not(:disabled) { border-color: var(--mustard); color: var(--mustard); }
.add[aria-pressed="true"] { background: var(--mustard); border-color: var(--mustard); color: var(--deep); }
.drive {
  background-color: var(--turf-deep); border: 3px solid var(--ink); border-radius: 4px; box-shadow: 6px 6px 0 var(--deep);
  background-image: repeating-linear-gradient(180deg, rgb(255 255 255 / .1) 0 2px, transparent 2px 70px);
}
.down { background: var(--orange); border-radius: 2px; }
.down, .tag, .build, .verdict.past, .drive-tab { color: var(--deep); }
.score { background: var(--deep); border-radius: 4px; }
.flap { background: #2f1c13; color: var(--mustard); }
.flap::after { background: var(--deep); }
.score-label, .score-market, .note, .verdict-slot .muted, .suggest .small, .leg-body > span:not(.alive), .leg-p small { color: #d6e8d9; }
.est { background: var(--ticket); color: var(--ticket-ink); border-radius: 4px; }
.est small { color: #5e4634; }
.est strong { color: #a63e0c; font-family: var(--display); font-weight: 400; }
.price input { background: var(--ticket); color: var(--ticket-ink); border-radius: 4px; }
.verdict { border-radius: 4px; }
.verdict.short { background: #4a1d12; color: #ffd6ca; }
.basis, .seg { gap: 2px; padding: 3px; background: rgb(0 0 0 / .3); border: 0; border-radius: 4px; }
.basis button, .seg button { border-radius: 3px; color: #d6e8d9; }
.basis button.on, .seg button.on { background: var(--mustard); color: var(--deep); }
.build { border-radius: 4px; font-weight: 700; font-family: var(--cond); }
.build:hover { background: #ffe07a; }
.suggest { border-top: 2px dashed rgb(255 255 255 / .35); }
.toast { background: var(--paper-2); color: var(--ink); }
:focus-visible { outline-color: var(--mustard); }

.out-row th, .out-row td, .out-row strong { color: #8d7a68; }
.out-row .meter { background: linear-gradient(90deg, #8d7a68 var(--w), transparent var(--w)); opacity: .25; }
.out-row .dots i, .out-row .dots i.y { border-color: #8d7a68; background: none; }
.out-row .dots em { color: #8d7a68; }
.add:disabled { opacity: 1; color: #8d7a68; border-color: #5a3a28; }
.pylon.locked { cursor: not-allowed; }
.pylon.locked .dot { fill: #9aa39c; stroke: #566; r: 6.5; }
.pylon.locked .pct { fill: #c7cec8; }

.nextman { --x-panel: var(--surface); }
.drive .xray, .drive .sweat { --x-panel: rgb(0 0 0 / .28); --x-ink: #fbf3e4; --x-accent: var(--mustard); }
.drive .slip-actions { color: #fbf3e4; }

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

/* A smaller window: the slate becomes a strip on top, the drive stays beside the board. */
@media (max-width: 1240px) {
  .board { grid-template-columns: minmax(0, 1fr) 300px; padding: 16px; gap: 16px; }
  .schedule { grid-column: 1 / -1; position: static; max-height: none; overflow: visible; }
  .schedule h2 { display: none; }
  #games { display: flex; gap: 8px; margin: 0; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
  #games li { flex: 0 0 148px; scroll-snap-align: start; }
}

/* Tablets and phones: one column, and the drive opens from a bar at the bottom. */
@media (max-width: 960px) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .drive-tab {
    display: block; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; min-height: 56px; padding: 8px 16px;
    background: var(--mustard); border: 0; border-top: 0; font: 700 19.5px var(--cond); text-align: center;
  }
  body { padding-bottom: 60px; }
  .drive {
    position: fixed; z-index: 35; left: 0; right: 0; bottom: 56px; top: auto; max-height: min(78vh, calc(100vh - 80px));
    border-radius: 10px 10px 0 0; box-shadow: none;
    transform: translateY(110%); visibility: hidden; transition: transform .22s ease, visibility .22s;
  }
  .drive-open .drive { transform: none; visibility: visible; }
}

@media (max-width: 960px) {
  .mast { flex-wrap: wrap; gap: 8px 12px; padding: 10px 16px 30px; }
  .mast-week { order: 3; flex-basis: 100%; font-size: 15.5px; }
  .search { flex: 1; width: auto; }
}

@media (max-width: 640px) {
  .brand { flex-basis: 100%; }
  .wordmark { font-size: 26px; }
  .plate { gap: 10px; padding: 8px 12px 8px 6px; }
  .plate-num { font-size: 40px; min-width: 56px; }
  .roster { flex-direction: column; align-items: stretch; gap: 6px; }
  .pos-tabs { align-self: flex-start; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; }
  .tabs button { white-space: nowrap; }
  .ladder:not(.priced) :is(th, td):nth-child(4), .ladder:not(.priced) :is(th, td):nth-child(5) { display: none; }
  .ladder.priced :is(th, td):nth-child(3), .ladder.priced :is(th, td):nth-child(5), .ladder.priced :is(th, td):nth-child(6) { display: none; }
  .ladder .dots i { display: none; }
  .ladder .dots em { margin: 0; }
  .ladder tbody th { font-size: 18px; padding: 5px 4px; }
  .ladder td { padding: 5px 4px; }
  .bar-cell { min-width: 84px; }
  .ladder .fair { font-size: 16px; }
  .add { min-width: 0; padding: 0 7px; font-size: 16px; }
  .add-more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .yardnum { font-size: 26px; }
  .pylon .pct { font-size: 26px; }
  .first-tag text, .los-tag text { font-size: 25px; }
  .ball text { font-size: 15px; }
}

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