/* THE ROSTER — fantasy football for Solana traders.
 *
 * Two rooms, two materials, one type system.
 *
 *   body[data-room="board"]   the coach's chalkboard — deep green slate, chalk lines,
 *                             magnet-board pieces. Where you BUILD.
 *   body[data-room="studio"]  the broadcast — studio black, huge tabular numerals,
 *                             lower-thirds, the ticker. Where you SWEAT.
 *
 * Chalk is a MATERIAL here, never a handwriting font. The chalk quality comes from the
 * ground (dusty, a wiped streak), from pitch lines drawn with a turbulence-displaced SVG
 * stroke so they are hairline-imperfect, and from pieces with a chalk keyline. One accent,
 * chalk yellow, used the way a coach uses it: to circle the play.
 */

/* ------------------------------------------------------------------ type ---
 * Self-hosted, subset, preloaded. OFL throughout (audited). The type is what makes the
 * two rooms read as one product. */
@font-face { font-family: 'Sofia Sans Extra Condensed'; src: url('/assets/fonts/sofia-cond-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Sofia Sans Extra Condensed'; src: url('/assets/fonts/sofia-cond-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Sofia Sans Extra Condensed'; src: url('/assets/fonts/sofia-cond-900.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Sofia Sans'; src: url('/assets/fonts/sofia-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Sofia Sans'; src: url('/assets/fonts/sofia-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Sofia Sans'; src: url('/assets/fonts/sofia-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
/* JetBrains Mono for every figure: OFL (audited), carries tnum and a slashed zero, and its
 * wider set reads better in a scoreline than the mono it replaced. */
@font-face { font-family: 'JetBrains Mono'; src: url('/assets/fonts/jbmono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/assets/fonts/jbmono-600.woff2') format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/assets/fonts/jbmono-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  /* the chalkboard */
  --board:       #173224;
  --board-deep:  #0F2219;
  --board-line:  rgba(242,239,229,.14);
  --chalk:       #F2EFE5;
  --chalk-70:    rgba(242,239,229,.72);
  --chalk-40:    rgba(242,239,229,.42);
  --chalk-20:    rgba(242,239,229,.20);
  --yellow:      #F2C94C;
  --yellow-ink:  #2A2208;
  --up:          #7FE0A4;
  --down:        #FF6B5B;

  /* the broadcast */
  --studio:      #07080A;
  --studio-2:    #101216;
  --studio-3:    #181B21;
  --studio-line: rgba(255,255,255,.10);
  --white:       #F4F4F2;
  --white-60:    rgba(244,244,242,.60);
  --white-35:    rgba(244,244,242,.35);
  --live:        #C8F04A;
  --gold:        #E8B33A;

  --display: 'Sofia Sans Extra Condensed', 'Oswald', 'Arial Narrow', sans-serif;
  --body:    'Sofia Sans', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(14px, 3vw, 30px);
  --max: 1320px;

  /* room-dependent — defaults are the board */
  --bg: var(--board);
  --fg: var(--chalk);
  --fg-70: var(--chalk-70);
  --fg-40: var(--chalk-40);
  --line: var(--board-line);
  --accent: var(--yellow);
  --accent-ink: var(--yellow-ink);
  --panel: var(--board-deep);
  color-scheme: dark;
}

body[data-room="studio"] {
  --bg: var(--studio);
  --fg: var(--white);
  --fg-70: var(--white-60);
  --fg-40: var(--white-35);
  --line: var(--studio-line);
  --accent: var(--live);
  --accent-ink: #0B1200;
  --panel: var(--studio-2);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}

/* The slate: a wiped streak and a dust layer, both in CSS, no image request. The streak
 * is what makes it read as a board that has been used rather than a flat green fill. */
body[data-room="board"] {
  background-image:
    radial-gradient(ellipse 120% 60% at 18% -10%, rgba(242,239,229,.06), transparent 60%),
    radial-gradient(ellipse 80% 40% at 85% 110%, rgba(242,239,229,.05), transparent 60%),
    linear-gradient(112deg, transparent 38%, rgba(242,239,229,.035) 46%, rgba(242,239,229,.02) 52%, transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .94 0 0 0 0 .9 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: fixed, fixed, fixed, scroll;
}

body[data-room="studio"] {
  background-image:
    radial-gradient(ellipse 90% 50% at 50% -20%, rgba(200,240,74,.07), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------------------------------------------ type --- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.005em;
  margin: 0;
  text-transform: uppercase;
}
.kicker {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--fg-70);
}
.lede { font-size: clamp(16px, 1.7vw, 19px); line-height: 1.45; max-width: 54ch; color: var(--fg); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1, 'zero' 1; }
.up { color: var(--up); }
.down { color: var(--down); }
.accent { color: var(--accent); }
.muted { color: var(--fg-70); }

/* --------------------------------------------------------------- masthead --- */
.masthead { border-bottom: 1px solid var(--line); }
.masthead__bar {
  display: flex; align-items: baseline; gap: 14px; padding: 10px 0 8px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-70); min-height: 26px;
}
.masthead__bar > :last-child { margin-inline-start: auto; }
/* Furniture must not reflow. A wrap here moves every element on the page. */
#dateline, #edition { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 620px) {
  /* FIXED, not min-height. This bar is furniture — a date, an edition number and the chain
   * switcher — and every layout shift measured on the front page traced back to it changing
   * height after load and pushing the whole page down. Three separate attempts to reserve
   * "enough" space each moved the number around instead of removing it, because the trigger
   * (a font swap changing how the row packs) is not something a min-height can bound. A fixed
   * height ends it: whatever the bar does internally, nothing below it can move. */
  .masthead__bar { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px;
                   height: 62px; overflow: hidden; align-content: start; }
  .masthead__bar > :last-child { display: none; }
}
.masthead__name { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 10px 0 12px; }
.masthead__name h1 { font-size: clamp(46px, 9vw, 96px); letter-spacing: -0.02em; font-weight: 900; color: var(--fg); }
/* Inner pages are tools, not posters: the wordmark drops to a header so the pitch is above
 * the fold. Measured: the full masthead pushed the draft room 350px down. */
body:not([data-page="index"]) .masthead__name { padding: 6px 0 8px; }
body:not([data-page="index"]) .masthead__name h1 { font-size: clamp(30px, 4.4vw, 44px); }
body:not([data-page="index"]) .masthead__tag { font-size: 12px; padding-bottom: 4px; }
.masthead__name h1 a { text-decoration: none; }
/* the wordmark is the chalk logo; its box is sized by the same clamp the text had */
.wordmark { display: block; line-height: 0; }
.wordmark img { display: block; height: clamp(46px, 9vw, 96px); width: auto; }
body:not([data-page="index"]) .wordmark img { height: clamp(30px, 4.4vw, 44px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.masthead__tag {
  font-family: var(--display); font-size: clamp(13px, 1.5vw, 18px); text-transform: uppercase;
  letter-spacing: .06em; color: var(--fg-70); padding-bottom: clamp(4px, 1vw, 10px);
  text-align: end; text-wrap: balance; margin: 0;
}

nav.sections { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
nav.sections > .wrap { display: flex; flex-wrap: wrap; }
nav.sections a {
  font-family: var(--display); font-size: 15px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; padding: 9px 15px; text-decoration: none; color: var(--fg-70);
  border-inline-end: 1px solid var(--line);
}
nav.sections a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
nav.sections a:hover:not([aria-current="page"]) { color: var(--fg); background: rgba(255,255,255,.04); }

/* the wire */
.wire { border-bottom: 1px solid var(--line); background: rgba(0,0,0,.28); overflow: hidden; min-height: 30px; }
body[data-room="studio"] .wire { background: var(--studio-2); }
.wire__strip { display: flex; width: max-content; animation: wire 70s linear infinite; }
.wire:hover .wire__strip { animation-play-state: paused; }
.wire__item {
  display: flex; align-items: baseline; gap: 8px; padding: 7px 16px;
  border-inline-end: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: .05em; white-space: nowrap; color: var(--fg-70);
}
.wire__item b { font-family: var(--body); font-weight: 700; letter-spacing: 0; color: var(--fg); }
.wire__item .u { color: var(--up); } .wire__item .d { color: var(--down); }
@keyframes wire { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ------------------------------------------------------------------ rule --- */
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.rule--chalk { border-top: 2px solid var(--chalk-40); }

/* --------------------------------------------------------------- controls --- */
.btn {
  font-family: var(--display); font-size: 17px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; background: var(--accent); color: var(--accent-ink);
  border: 2px solid var(--accent); border-radius: 3px; padding: 11px 22px; cursor: pointer;
  text-decoration: none; display: inline-block; line-height: 1.1;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.08); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--chalk-40); }
.btn--ghost:hover { border-color: var(--fg); color: var(--fg); background: rgba(255,255,255,.04); }
body[data-room="studio"] .btn--ghost { border-color: var(--white-35); }

.chip {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--chalk-40);
  background: transparent; color: var(--fg-70); cursor: pointer; border-radius: 2px;
}
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip:hover:not([aria-pressed="true"]) { color: var(--fg); border-color: var(--fg); }

.search { display: flex; border: 1px solid var(--chalk-40); background: rgba(0,0,0,.18); flex: 1; min-width: 170px; border-radius: 2px; }
.search input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 10px;
  font-family: var(--mono); font-size: 12.5px; color: var(--fg);
}
.search input::placeholder { color: var(--fg-40); }
.search input:focus { outline: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 0; }

/* ----------------------------------------------------------------- panel --- */
.panel { border: 1px solid var(--line); background: var(--panel); border-radius: 4px; }
.panel__head {
  display: flex; align-items: baseline; gap: 10px; padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--display); font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
}
.panel__head .kicker { margin-inline-start: auto; }
.panel__body { padding: 12px; }

.tag {
  display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--chalk-40);
  border-radius: 2px; color: var(--fg-70);
}
.tag--sim { border-color: var(--yellow); color: var(--yellow); }
.tag--live { border-color: var(--live); color: var(--live); }
.tag--live::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--live); margin-inline-end: 6px; vertical-align: 1px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

.note { border-top: 2px solid var(--accent); padding: 9px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--fg-70); }
.note strong { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--fg); font-size: 15px; }

/* ----------------------------------------------------------------- sheet ---
 * The coach's roster sheet: chalk hairlines, figures right-aligned down a rule. */
table.sheet { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.sheet th {
  font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--fg-70); text-align: end; padding: 7px 8px;
  border-bottom: 1px solid var(--chalk-40); white-space: nowrap;
}
table.sheet th:first-child, table.sheet td:first-child, table.sheet .name { text-align: start; }
table.sheet td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: end; vertical-align: middle; }
table.sheet tbody tr:hover { background: rgba(255,255,255,.035); }
table.sheet tr.is-picked > td { background: rgba(242,201,76,.10); }
table.sheet .rank { font-family: var(--display); font-size: 18px; font-weight: 800; width: 1%; color: var(--fg-70); }
table.sheet .tight { padding-inline: 4px; }
.scroller { max-height: 64vh; overflow: auto; border: 1px solid var(--line); border-radius: 4px; background: rgba(0,0,0,.14); }
.scroller table.sheet th { position: sticky; top: 0; z-index: 2; background: var(--board); box-shadow: 0 1px 0 var(--chalk-40); }
body[data-room="studio"] .scroller table.sheet th { background: var(--studio-2); }

.handle { font-weight: 700; }
.handle small { font-family: var(--mono); font-weight: 400; color: var(--fg-70); font-size: 10.5px; }
/* An unclaimed wallet is an address, and it should LOOK like one — mono, quieter, no @.
   Reading as a person before anyone has proved they are one is the whole failure mode. */
.handle--addr { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--fg-70); letter-spacing: .01em; }
.wallet { font-family: var(--mono); font-size: 11px; color: var(--fg-70); text-decoration: none; border-bottom: 1px dotted var(--chalk-40); }
.wallet:hover { color: var(--accent); border-bottom-color: var(--accent); }
.conf {
  font-family: var(--mono); font-size: 8.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 1px 5px; border: 1px solid currentColor; white-space: nowrap; color: var(--fg-70); cursor: help; border-radius: 2px;
}
.conf--warn { color: var(--yellow); }

.pick {
  font-family: var(--display); font-weight: 800; font-size: 16px; line-height: 1;
  width: 28px; height: 26px; border: 1px solid var(--chalk-40); background: transparent;
  color: var(--fg); cursor: pointer; padding: 0; border-radius: 2px;
}
.pick:hover:not([disabled]) { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pick--in { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pick[disabled] { color: var(--fg-40); border-style: dotted; cursor: not-allowed; }

/* ================================================================ THE PITCH ===
 * The coach's board. An SVG draws the pitch in chalk (see pitch.js — the lines run through
 * a turbulence displacement so they are hairline-imperfect); the pieces are DOM, positioned
 * in a 2–3 formation, most expensive at the front. */
.pitch {
  position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 560px;
  border: 1px solid var(--chalk-40); border-radius: 6px; overflow: hidden;
  background: var(--board-deep);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35), inset 0 30px 80px rgba(0,0,0,.28);
}
@media (min-width: 1000px) { .pitch { aspect-ratio: 5 / 6; } }
.pitch svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pitch__slot {
  position: absolute; width: 22%; max-width: 150px; transform: translate(-50%, -50%);
  transition: transform .18s ease;
}
@media (max-width: 480px) { .pitch__slot { width: 27%; } }

/* the piece: a magnet on the board */
.piece {
  display: block; width: 100%; background: var(--board); border: 1.5px solid var(--chalk);
  border-radius: 5px; overflow: hidden; text-decoration: none; color: var(--fg);
  box-shadow: 0 6px 0 rgba(0,0,0,.45), 0 10px 22px rgba(0,0,0,.35);
  transition: transform .14s ease, box-shadow .14s ease;
}
.piece:hover { transform: translateY(-3px); box-shadow: 0 9px 0 rgba(0,0,0,.45), 0 16px 28px rgba(0,0,0,.4); color: var(--fg); }
.piece__face { position: relative; aspect-ratio: 1; background: var(--board-deep); overflow: hidden; }
.piece__face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.piece__face .noface {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-size: 34px; font-weight: 900; color: var(--chalk-40);
  background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(242,239,229,.05) 7px 14px);
}
.piece__price {
  position: absolute; top: 6px; left: 6px; font-family: var(--mono); font-size: 10px; font-weight: 700;
  background: var(--yellow); color: var(--yellow-ink); padding: 2px 6px; border-radius: 2px; letter-spacing: .02em;
}
.piece__x {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.55); color: var(--chalk); font-family: var(--mono); font-size: 13px;
  line-height: 1; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .12s;
}
.piece:hover .piece__x, .piece:focus-within .piece__x { opacity: 1; }
.piece__plate { padding: 6px 8px 7px; border-top: 1.5px solid var(--chalk); background: var(--chalk); color: var(--board-deep); }
.piece__name {
  font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 1; text-transform: uppercase;
  letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.piece__pts {
  display: flex; justify-content: space-between; align-items: baseline; margin-top: 3px;
  font-family: var(--mono); font-size: 11px; font-variant-numeric: tabular-nums; color: rgba(15,34,25,.7);
}
.piece__pts b { font-size: 14px; font-weight: 700; color: var(--board-deep); }
.piece__pts b.up { color: #1E6B3A; } .piece__pts b.down { color: #B5321F; }

/* an empty slot: a dashed chalk outline, the coach has not filled it yet */
.slot-empty {
  width: 100%; aspect-ratio: 1 / 1.34; border: 1.5px dashed var(--chalk-40); border-radius: 5px;
  display: grid; place-items: center; color: var(--chalk-40); background: rgba(0,0,0,.12);
  cursor: pointer; transition: border-color .12s, color .12s, background .12s;
  font-family: var(--display); font-size: 36px; font-weight: 900; line-height: 1;
}
.slot-empty:hover, .slot-empty[aria-pressed="true"] { border-color: var(--yellow); color: var(--yellow); background: rgba(242,201,76,.06); }
.slot-empty small { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; margin-top: 4px; font-weight: 600; }

/* the cap meter: a chalk bar, ticked */
.cap { display: grid; gap: 6px; }
.cap__read { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.cap__read b { font-size: 20px; font-family: var(--display); font-weight: 900; letter-spacing: .01em; }
.cap__read .over { color: var(--down); }
.cap__track {
  position: relative; height: 12px; border: 1px solid var(--chalk-40); border-radius: 2px; overflow: hidden;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--chalk-20) calc(10% - 1px) 10%);
}
.cap__fill {
  position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--yellow);
  transform-origin: left center; transform: scaleX(0); transition: transform .2s ease, background-color .2s;
}
.cap__fill.over { background: var(--down); }
.cap__foot { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-70); }

/* the draft layout */
.draft { display: grid; gap: clamp(16px, 2.2vw, 28px); align-items: start; }
@media (min-width: 1000px) { .draft { grid-template-columns: minmax(360px, 5fr) minmax(0, 7fr); } .draft__pitch { position: sticky; top: 12px; } }

/* =============================================================== BROADCAST === */
.scoreline {
  display: grid; gap: 4px; padding: clamp(16px, 3vw, 28px) 0;
}
.scoreline__label { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-70); }
.scoreline__num {
  font-family: var(--display); font-weight: 900; line-height: .9; letter-spacing: -.02em;
  font-size: clamp(64px, 12vw, 148px); font-variant-numeric: tabular-nums;
}
.scoreline__sub { font-family: var(--mono); font-size: 13px; color: var(--fg-70); }

.lower-third {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 10px 14px; background: var(--studio-2); border-top: 3px solid var(--live);
  font-family: var(--mono); font-size: 12px;
}
.lower-third b { font-family: var(--display); font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }

.board-row {
  display: grid; grid-template-columns: 34px 1fr auto auto; gap: 12px; align-items: center;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
}
.board-row:hover { background: rgba(255,255,255,.03); }
.board-row.me { background: rgba(200,240,74,.09); }
.board-row.me .rk { color: var(--live); }
.board-row .rk { font-family: var(--display); font-size: 22px; font-weight: 900; color: var(--fg-70); }
.board-row .who { min-width: 0; }
.board-row .who b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-row .who small { font-family: var(--mono); font-size: 10.5px; color: var(--fg-70); }
.board-row .pts { font-family: var(--display); font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; min-width: 4.2ch; text-align: end; }
.board-row .spend { font-family: var(--mono); font-size: 11px; color: var(--fg-70); }

.faces { display: flex; gap: 3px; margin-top: 4px; }
.faces img, .faces span {
  width: 22px; height: 22px; border-radius: 3px; object-fit: cover; border: 1px solid var(--line); background: var(--studio-3);
  display: inline-grid; place-items: center; font-family: var(--mono); font-size: 9px; color: var(--fg-40);
}

/* ------------------------------------------------------------------ misc --- */
.stack { display: grid; gap: var(--space, 18px); }
.cols { display: grid; gap: clamp(18px, 3vw, 34px); }
@media (min-width: 900px) { .cols--2-1 { grid-template-columns: 2fr 1fr; } .cols--1-1 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; gap: clamp(14px, 2vw, 26px); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* reservations — MEASURED, so nothing moves when script lands */
#slateday { display: inline-block; min-width: 10ch; }
#settle, #locksin { display: inline-block; min-width: 8ch; text-align: end; font-variant-numeric: tabular-nums; }
#poolcount, #boardcount { display: inline-block; min-width: 14ch; }
#entrystate { min-height: 86px; }
#board:empty::after { content: ""; display: block; min-height: 34px; }
#today3 { min-height: 268px; }
@media (max-width: 719px) { #today3 { min-height: 804px; } #entrystate { min-height: 104px; } }

footer.foot { border-top: 1px solid var(--line); margin-top: 46px; padding: 18px 0 40px; font-size: 13px; color: var(--fg-70); }

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

/* Solana preseason — preserve the coach's board, clarify the game. */
h1,h2,h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.skip-link { position:fixed;top:8px;left:8px;z-index:20;padding:12px 18px;background:var(--chalk);color:var(--board);transform:translateY(-160%); }
.skip-link:focus { transform:none; }
.chain-label { font-family:var(--mono);font-size:11px;letter-spacing:.08em;color:var(--accent); }
.home-hero { display:grid;grid-template-columns:1fr 1fr;gap:clamp(30px,5vw,70px);align-items:center;padding:44px 0 46px; }
.hero-copy { max-width:580px; }
.hero-copy .kicker { margin:0 0 20px; }
.hero-copy h2 { font-size:clamp(58px,7vw,94px);line-height:.94; }
.hero-copy .lede { margin:22px 0 0;max-width:43ch; }
.hero-actions { display:flex;gap:25px;align-items:center;flex-wrap:wrap;margin-top:28px; }
.hero-actions .btn { display:flex;gap:30px;align-items:center; }
.text-link { font-size:16px;font-weight:700;text-decoration-thickness:1px; }
.practice-line { margin:12px 0 0;font-size:14px;color:var(--fg-70); }
.chalk-note { padding-top:18px;margin-top:26px;border-top:1px solid var(--line);max-width:48ch; }
.chalk-note strong { font-family:var(--display);font-size:25px;text-transform:uppercase; }
.chalk-note p { margin:5px 0 0;color:var(--fg-70);font-size:15px; }
.hero-board { min-width:0; }
.board-caption { display:flex;justify-content:space-between;gap:10px;align-items:center;font-family:var(--mono);font-size:11px;color:var(--fg-70);line-height:1.6;margin:0 0 12px; }
#cardcap.board-caption { justify-content:center;text-align:center;margin:12px 0 0; }
.hero-board .pitch { max-height:530px; }
.how-strip { display:grid;grid-template-columns:repeat(3,1fr);border-block:1px solid var(--chalk-40); }
.how-strip>div { padding:26px 28px 28px 0; }
.how-strip>div+div { border-left:1px solid var(--line);padding-left:28px; }
.how-strip h3 { font-size:30px;margin:10px 0; }
.how-strip p { color:var(--fg-70);margin:0;font-size:16px;max-width:32ch; }
.step-number { font-family:var(--mono);font-size:13px;color:var(--accent); }
.board-section { padding:42px 0; }
.section-heading { display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:22px; }
.section-heading h2 { font-size:48px; }
.section-heading h3 { font-size:32px; }
.section-heading p { margin:10px 0 0; }
.home-roster { display:grid;grid-template-columns:1fr 1fr;gap:clamp(25px,7vw,100px); }
.home-roster h3 { font-size:26px;margin-bottom:10px; }
.home-roster td { padding-block:12px; }
.home-roster a { text-decoration:none;font-weight:700; }
.lookup-section { display:grid;grid-template-columns:1fr 1fr;gap:40px;border-top:1px solid var(--chalk-40);padding:32px 0 46px; }
.lookup-section h3 { font-size:30px; }
.lookup-section p { margin:8px 0 0;color:var(--fg-70); }
.helper-text,.footer-note { color:var(--fg-70);font-size:14px;line-height:1.6; }
.footer-note { max-width:88ch; }
.foot { margin-top:35px; }
.page-heading { padding:32px 0 28px; }
.page-heading .kicker { margin:0 0 14px; }
.page-heading h2 { font-size:clamp(42px,5vw,64px); }
.page-heading .lede { margin:16px 0 0; }
.rules-layout { display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,.8fr);gap:clamp(30px,7vw,100px);border-top:1px solid var(--line);padding:32px 0;align-items:start; }
.rules-main { display:grid;gap:30px; }
.rules-main h3 { font-size:32px;margin-bottom:12px; }
.rules-main p { margin:10px 0 0;color:var(--fg-70);font-size:17px;max-width:64ch; }
.practice-aside { border:1px solid var(--chalk-40);padding:26px; }
.practice-aside h3 { font-size:34px;margin:22px 0 15px; }
.practice-aside p,.practice-aside li { color:var(--fg-70); }
.practice-aside ul { padding-left:20px;line-height:1.8;margin:20px 0 26px; }
.practice-aside .btn { width:100%;text-align:center; }
.live-layout { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:38px;align-items:start; }
.live-layout .pitch { max-width:540px;max-height:500px; }
.live-layout .scoreline__num { font-size:76px; }
.empty-state { padding:36px; }
.empty-state h3 { font-size:34px;max-width:18ch; }
.empty-state p { color:var(--fg-70);max-width:48ch; }
.empty-cell { padding:28px 18px!important;white-space:normal!important;font-family:var(--body);line-height:1.6; }
.result-next { margin-top:24px;padding-left:0; }
.btn,.chip,.pick { min-height:44px; }
.pick { min-width:44px; }
input { min-height:44px; }
input::placeholder { color:var(--fg-70);opacity:1; }
button:disabled { opacity:.65; }
.piece__x { width:28px;height:28px;opacity:1;background:var(--board-deep);border:1px solid var(--chalk); }
#entrymsg { scroll-margin-top:20px; }
#entrystate { overflow-wrap:anywhere; }
#meta .wallet { overflow-wrap:anywhere; }
#sheet { min-width:0;scroll-margin-top:12px; }
#sheet .scroller { border-radius:0;max-height:640px; }
#pool td { padding-block:7px; }
#pool .handle { white-space:nowrap; }
#pool .num { font-size:12px; }
#pool .conf { font-size:9px;letter-spacing:0; }
.cap__read b { font-size:28px; }
.draft__pitch { position:sticky;top:20px;align-self:start; }
#poolcount { font-size:11px;letter-spacing:.03em; }
#feedlabel { letter-spacing:0;text-transform:none;font-family:var(--body);font-size:14px; }
@media(max-width:900px) {
 .home-hero { gap:24px; }
 .hero-copy h2 { font-size:70px; }
 .hero-copy .lede { font-size:17px; }
 .hero-board .pitch { max-height:490px; }
 .draft__pitch { position:static; }
 .how-strip>div { padding-right:18px; }.how-strip>div+div { padding-left:18px; }
}
@media(max-width:680px) {
 .home-hero,.home-roster,.lookup-section,.rules-layout,.live-layout { grid-template-columns:1fr; }
 .home-hero { padding:28px 0;gap:28px; }
 .hero-copy h2 { font-size:68px; }
 .hero-copy .kicker { font-size:10px;letter-spacing:.1em;margin-bottom:15px; }
 .hero-copy .lede { font-size:18px;max-width:36ch; }
 .hero-actions { margin-top:20px;gap:22px; }
 .chalk-note { margin-top:22px; }
 .hero-board .pitch { max-height:none;aspect-ratio:1/1.1; }
 .how-strip { grid-template-columns:1fr; }
 .how-strip>div { display:grid;grid-template-columns:26px 1fr;gap:0 14px;padding:22px 0; }
 .how-strip>div+div { border-left:0;border-top:1px solid var(--line);padding:22px 0; }
 .how-strip .step-number { grid-row:1/3;padding-top:4px; }
 .how-strip h3 { margin:0 0 7px;font-size:28px; }
 .how-strip p { max-width:none; }
 .section-heading { align-items:start;flex-wrap:wrap;gap:12px; }
 .section-heading h2 { font-size:42px; }
 .board-section { padding:30px 0; }
 .lookup-section { gap:12px;padding:25px 0 35px; }
 .rules-layout { gap:30px;padding-top:24px; }
 .page-heading { padding:26px 0; }
 nav.sections>.wrap { flex-wrap:nowrap;overflow-x:auto;padding:0; }
 nav.sections a { flex:none;min-height:44px;display:flex;align-items:center;padding:10px 14px; }
 .masthead__bar { display:flex;gap:12px;align-items:center;height:38px;padding:8px 0; }
 #dateline { font-size:9px;letter-spacing:0;flex:1; }
 #edition { font-size:9px;letter-spacing:.05em; }
 .chain-label { display:none; }
 .masthead__name { padding:6px 0 12px; }
 .wordmark img { height:66px; }
 .masthead__tag { max-width:125px;font-size:14px; }
 .board-caption { font-size:10px; }
 .kicker { letter-spacing:.08em; }
 .draft { gap:26px; }
 .draft__pitch .pitch { max-height:430px;aspect-ratio:1/1.08; }
 .piece__x { width:34px;height:34px; }
 .piece__name { font-size:14px; }
 .piece__price { font-size:9px;left:4px;top:4px;padding:2px 4px; }
 .piece__plate { padding:5px; }
 .piece__pts { font-size:9px; }
 .piece__pts b { font-size:12px; }
 .empty-state { padding:24px; }
 .result-next { padding-left:0; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important; } }
.wire:has(.wire__strip:empty) { display:none; }
@media(max-width:680px) {
 .home-hero { gap:0; }
 .hero-copy { display:contents; }
 .hero-copy h2 { font-size:54px; }
 .hero-copy .lede { margin:17px 0 20px; }
 .hero-actions { margin:0; }
 .practice-line { margin:12px 0 26px; }
 .hero-board { margin-bottom:6px; }
 .chalk-note { order:10;margin-top:19px;padding-bottom:3px; }
}
@media(max-width:680px) {
 #sheet .sheet th:nth-child(2),#sheet .sheet td:nth-child(2),#sheet .sheet th:nth-child(3),#sheet .sheet td:nth-child(3),#sheet .sheet th:nth-child(4),#sheet .sheet td:nth-child(4),#sheet .sheet th:nth-child(5),#sheet .sheet td:nth-child(5) { display:none; }
 #sheet .sheet { table-layout:auto; }
 #sheet .scroller { max-height:520px; }
 #sheet .sheet td.name { max-width:175px;white-space:normal; }
 #sheet .sheet .handle { font-size:14px;white-space:normal;overflow-wrap:anywhere; }
 .draft__pitch .panel { display:none; }
}

.skip-link { transform:none;clip-path:inset(100%); }
.skip-link:focus { clip-path:none; }
#today3 { min-height:0; }
