/* THE ROSTER — fantasy football for crypto Twitter.
 *
 * 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; }
@media (max-width: 620px) {
  .masthead__bar { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; min-height: 48px; }
  .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; }
}

/* ------------------------------------------------------------- chain switch ---
 * Two contests, not a filter: Solana and Robinhood Chain have different rosters, different
 * feeds and different wallets. The switch sits in the masthead strap because choosing one is
 * navigation, and it is a link (not a button) so a chain is shareable and openable in a tab. */
.chainsw { display: inline-flex; gap: 0; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.chainsw a {
  font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; padding: 3px 9px; text-decoration: none; color: var(--fg-70);
  border-inline-end: 1px solid var(--line); line-height: 1.6;
}
.chainsw a:last-child { border-inline-end: 0; }
.chainsw a[aria-current="true"] { background: var(--accent); color: var(--accent-ink); }
.chainsw a:hover:not([aria-current="true"]) { color: var(--fg); background: rgba(255,255,255,.05); }
@media (max-width: 620px) { .chainsw { grid-column: 1 / -1; justify-self: start; margin-top: 2px; } }
