/* =====================================================================
   HEAD TO HEAD — ballpark program: paper, ink, a manual scoreboard
   ===================================================================== */
:root {
  --paper: #f2ead8;
  --paper-2: #e8dec6;
  --card: #fbf7ee;
  --ink: #1d1a16;
  --ink-2: #4a443b;
  --muted: #7a7062;
  --red: #b8322a;
  --red-dark: #8f241e;
  --navy: #213a5c;
  --green: #3f7a4a;
  --board: #1e3a2b;
  --board-2: #163021;
  --chalk: #f4f1e6;
  --mustard: #d9a520;
  --chart-blue: #2b5c9c;   /* passes the colorblind/contrast palette check next to --red */
  --slab: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  min-height: 100vh; font-family: var(--sans); color: var(--ink); background: var(--paper);
  background-image:
    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='.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .18 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(33, 58, 92, .045) 31px 32px);
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; color: inherit; }
::selection { background: var(--mustard); color: var(--ink); }

/* ---------------------------------------------------------------- masthead */
.masthead {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px;
  max-width: 1240px; margin: 0 auto; padding: 22px 24px 0;
}
.masthead::after { content: ""; grid-column: 1 / -1; height: 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); padding-top: 3px; margin-top: -8px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; padding-bottom: 12px;
  font-family: var(--slab); font-weight: 700; font-style: italic; font-size: 30px; letter-spacing: -.5px; }
.wordmark svg { width: 34px; height: 34px; }
.tabs { display: flex; gap: 28px; padding-bottom: 12px; }
.tabs a { font-family: var(--mono); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--ink-2); text-decoration: none; padding: 4px 0; border-bottom: 3px solid transparent; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--red); }
.edition { justify-self: end; padding-bottom: 14px; font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

main { max-width: 1240px; margin: 0 auto; padding: 34px 24px 40px; }
footer { max-width: 1240px; margin: 0 auto; padding: 14px 24px 40px; border-top: 1px solid var(--ink); font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ---------------------------------------------------------------- type + buttons */
.eyebrow { margin: 0 0 10px; font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.6px; color: var(--red); }
h1 { margin: 0; font-family: var(--slab); font-weight: 700; font-size: clamp(64px, 9vw, 124px); line-height: .9; letter-spacing: -2px; }
.lede { max-width: 560px; margin: 18px 0 0; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.label { font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; cursor: pointer; border-radius: 3px;
  font-family: var(--mono); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px;
  border: 2px solid var(--ink); background: var(--card); transition: transform .08s, background .15s; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-red { background: var(--red); border-color: var(--ink); color: var(--card); padding: 16px 26px; font-size: 14px; }
.btn-red:hover:not(:disabled) { background: var(--red-dark); }
.btn-line:hover:not(:disabled) { background: var(--ink); color: var(--card); }
.btn-quiet { border-color: transparent; background: transparent; color: var(--muted); padding-left: 10px; padding-right: 10px; }
.btn-quiet:hover { color: var(--red); text-decoration: underline; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--card); font-size: 11px; }
.btn-line:hover:not(:disabled) .count { background: var(--card); color: var(--ink); }
kbd { font-family: var(--mono); font-size: 11px; padding: 1px 5px; border: 1px solid var(--ink-2); border-bottom-width: 2px; border-radius: 3px; background: var(--card); }

/* ---------------------------------------------------------------- intro */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.era { margin-top: 30px; }
.era-opts { display: flex; margin-top: 8px; border: 2px solid var(--ink); border-radius: 3px; width: max-content; max-width: 100%; }
.era-opts button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 18px; cursor: pointer; text-align: left;
  background: transparent; border: 0; border-right: 2px solid var(--ink); }
.era-opts button:last-child { border-right: 0; }
.era-opts button b { font-family: var(--slab); font-size: 19px; }
.era-opts button small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.era-opts button:hover { background: var(--paper-2); }
.era-opts button.on { background: var(--ink); color: var(--card); }
.era-opts button.on small { color: #c9bfa9; }
#start-draft { margin-top: 30px; }

h1 .dot { color: var(--red); }
.btn-big { padding: 18px 30px; font-size: 15px; box-shadow: 4px 4px 0 var(--ink); }
.btn-big:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn-big:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

/* year dropdown inside the era picker */
.year-pick { display: flex; flex-direction: column; gap: 3px; padding: 10px 16px 8px; cursor: pointer; }
.year-pick b { font-family: var(--slab); font-size: 19px; }
.year-select { position: relative; display: inline-block; align-self: flex-start; }
.year-select select { appearance: none; -webkit-appearance: none; font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 2px; padding: 3px 24px 3px 7px; cursor: pointer; outline: none; }
.year-select::after { content: ""; position: absolute; right: 8px; top: 50%; width: 5px; height: 5px; margin-top: -4px; pointer-events: none;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); }
.year-pick:hover { background: var(--paper-2); }
.year-pick.on { background: var(--ink); color: var(--card); }
.year-pick.on select { background: var(--mustard); }
.era-note { margin: 10px 0 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.era-note b { color: var(--red); }

/* the fanned hand of cards on the start screen */
.hand { position: relative; height: 460px; }
.hcard { position: absolute; left: 50%; top: 24px; width: 236px; aspect-ratio: 5 / 7.2; cursor: default;
  transform: translateX(-50%) translate(var(--x), var(--y)) rotate(var(--r));
  transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.hcard:nth-child(3) { z-index: 2; }
.hand:hover .hcard { transform: translateX(-50%) translate(calc(var(--x) * 1.22), calc(var(--y) - 8px)) rotate(calc(var(--r) * 1.3)); }
.hand::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 18px; height: 24px; border-radius: 50%; background: rgba(29,26,22,.14); filter: blur(10px); }
.sealed { position: absolute; z-index: 3; right: -22px; top: 36%; padding: 6px 10px; transform: rotate(14deg);
  border: 3px solid var(--red); color: var(--red); background: rgba(251,247,238,.86);
  font-family: var(--mono); font-size: 13px; font-weight: 600; line-height: 1.15; text-transform: uppercase; letter-spacing: 1.5px; text-align: center;
  box-shadow: inset 0 0 0 2px rgba(251,247,238,.86), inset 0 0 0 3.5px var(--red); }

/* "How it works" strip */
.how { margin-top: 30px; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 18px 0 20px; }
.how h2 { margin: 0 0 14px; font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); }
.how ol { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; counter-reset: h; }
.how li { counter-increment: h; padding: 0 18px; border-left: 1px solid #b9ad94; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.how li:first-child { padding-left: 0; border-left: 0; }
.how li::before { content: counter(h); display: block; font-family: var(--slab); font-weight: 700; font-size: 44px; line-height: 1; color: var(--red); margin-bottom: 6px; }
.how li b { display: block; font-family: var(--slab); font-size: 19px; color: var(--ink); margin-bottom: 3px; }

/* ticker */
.ticker { overflow: hidden; background: var(--ink); color: var(--paper); border-bottom: 3px solid var(--red); }
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker span { padding: 7px 0; font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 1.6px; white-space: nowrap; }
.ticker span::after { content: "◆"; margin: 0 22px; color: var(--mustard); font-size: 9px; position: relative; top: -1px; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

.hof { margin-top: 56px; }
.hof h4 { margin: 0 0 4px; font-family: var(--slab); font-size: 30px; }
.hof .sub { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
.ledger th { text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted);
  border-bottom: 2px solid var(--ink); padding: 8px 10px; }
.ledger td { padding: 11px 10px; border-bottom: 1px solid #cbbfa5; vertical-align: top; }
.ledger td.num, .ledger th.num { text-align: right; font-family: var(--mono); }
.ledger .tn { font-family: var(--slab); font-weight: 700; font-size: 17px; }
.ledger .stars { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ledger .champ { color: var(--red); font-weight: 700; }

/* ---------------------------------------------------------------- draft layout */
.d-game { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
.d-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.round-label { font-family: var(--slab); font-weight: 700; font-size: 30px; line-height: 1; }
.round-label b { color: var(--red); }
.pips { display: flex; gap: 4px; margin-top: 10px; }
.pips i { width: 18px; height: 8px; border: 1.5px solid var(--ink); background: transparent; }
.pips i.done { background: var(--ink); }
.pips i.now { background: var(--red); border-color: var(--red); }
.d-actions { display: flex; gap: 8px; align-items: center; }

/* manual scoreboard */
.board { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 18px 22px;
  background: var(--board); border: 3px solid var(--ink); box-shadow: inset 0 0 0 4px var(--board-2), inset 0 0 0 5px rgba(244,241,230,.25); color: var(--chalk); }
.board { position: relative; padding-top: 26px; }
.board::before { content: ""; position: absolute; top: 9px; left: 16px; right: 16px; height: 8px; opacity: .55;
  background: radial-gradient(circle, #f6d77a 0 2.2px, rgba(246,215,122,.25) 2.6px 3.4px, transparent 3.8px) 0 0 / 16px 8px repeat-x; }
.board.rolling::before { animation: bulbs .3s steps(2) infinite; }
.board.landed::before { animation: bulbsOn 1.2s ease-out; }
@keyframes bulbs { 50% { background-position: 8px 0; opacity: .95; } }
@keyframes bulbsOn { 0%, 30%, 60% { opacity: 1; filter: drop-shadow(0 0 4px #f6d77a); } 15%, 45% { opacity: .3; } 100% { opacity: .55; } }
.board-plate { width: 86px; height: 86px; display: grid; place-items: center; background: var(--chalk); border: 3px solid var(--board-2); }
.board-plate img { width: 64px; height: 64px; object-fit: contain; }
.board-lines { display: grid; gap: 8px; min-width: 0; }
.board-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.board-key { width: 42px; flex: none; font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: #9fb7a6; }
.sb-tiles { display: flex; flex-wrap: wrap; gap: 3px; min-width: 0; }
.sb-tiles i { display: grid; place-items: center; width: 26px; height: 34px; background: var(--board-2); border: 1px solid #0d1f15; font-style: normal;
  font-family: var(--mono); font-weight: 600; font-size: 20px; color: var(--chalk); }
.sb-tiles i.sp { background: transparent; border-color: transparent; width: 10px; }
.sb-tiles.long i { width: 21px; height: 30px; font-size: 17px; }
.sb-tiles.long i.sp { width: 7px; }
.board.rolling .sb-tiles i { color: #cfe0b8; }
.board-era { align-self: start; font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: #9fb7a6; writing-mode: vertical-rl; }
.board.landed .sb-tiles i { animation: flipTile .35s ease-out both; }
@keyframes flipTile { from { transform: rotateX(90deg); } to { transform: none; } }

/* cards */
.deal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 22px; perspective: 1400px; }
.hint { margin-top: 18px; font-size: 14px; color: var(--ink-2); min-height: 22px; }
.hint.pick { color: var(--red); font-weight: 600; }

.flip { position: relative; aspect-ratio: 5 / 7.2; transform-style: preserve-3d; transform: rotateY(180deg) translateY(24px); opacity: 0;
  transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .25s; }
.flip.in { opacity: 1; transform: rotateY(180deg) rotate(var(--tilt, 0deg)); }
.flip.up { transform: rotate(var(--tilt, 0deg)); }
.flip > * { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card-back { transform: rotateY(180deg); border: 2px solid var(--ink); background: var(--red);
  background-image: repeating-linear-gradient(45deg, rgba(251,247,238,.16) 0 2px, transparent 2px 12px), repeating-linear-gradient(-45deg, rgba(251,247,238,.16) 0 2px, transparent 2px 12px);
  display: grid; place-items: center; box-shadow: 3px 4px 0 rgba(29,26,22,.25); }
.card-back span { padding: 8px 12px; background: var(--card); border: 2px solid var(--ink); font-family: var(--slab); font-weight: 700; font-style: italic; font-size: 18px; color: var(--ink); }

.pcard, .hcard { display: flex; flex-direction: column; padding: 8px; cursor: pointer; text-align: left;
  background: var(--card); border: 2px solid var(--ink); box-shadow: 3px 4px 0 rgba(29,26,22,.25);
  transition: transform .15s ease, box-shadow .15s ease; }
.pcard:hover { transform: translateY(-4px); box-shadow: 5px 8px 0 rgba(29,26,22,.25); }
.pcard.sel { outline: 3px solid var(--red); outline-offset: 3px; }
.pc-photo { position: relative; flex: 1 1 auto; min-height: 0; border: 2px solid var(--ink); overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
  background: var(--navy); }
.role-SP .pc-photo, .role-RP .pc-photo { background: var(--red); }
.pc-photo::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(251,247,238,.14) 1px, transparent 1.4px); background-size: 7px 7px; }
.pc-photo img { position: relative; height: 92%; max-width: 100%; object-fit: contain; object-position: bottom; }
.pc-pos { position: absolute; top: 14px; left: 14px; z-index: 2; min-width: 38px; height: 38px; padding: 0 6px; display: grid; place-items: center; border-radius: 19px;
  background: var(--card); border: 2px solid var(--ink); font-family: var(--slab); font-weight: 700; font-size: 16px; }
.pc-plate { margin-top: -14px; position: relative; z-index: 2; align-self: stretch; padding: 6px 8px 5px; background: var(--mustard); border: 2px solid var(--ink); }
.pc-plate b { display: block; font-family: var(--slab); font-weight: 700; font-size: 19px; line-height: 1.05; text-transform: uppercase; letter-spacing: -.2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-plate b.long { font-size: 16px; } .pc-plate b.xlong { font-size: 13.5px; }
.pc-plate span { display: block; font-family: var(--mono); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-2); }
.pc-meta { display: flex; align-items: center; gap: 6px; margin: 7px 1px 6px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.pc-meta img { width: 16px; height: 16px; flex: none; }
.pc-stats { width: 100%; border-collapse: collapse; font-family: var(--mono); text-align: center; }
.pc-stats th { font-size: 9.5px; font-weight: 600; color: var(--muted); padding: 3px 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--ink); }
.pc-stats td { font-size: 13px; font-weight: 600; padding: 4px 0 1px; white-space: nowrap; }
.pc-key { position: absolute; top: 14px; right: 14px; z-index: 2; font-family: var(--mono); font-size: 11px; color: var(--card); opacity: .8; }

.deal.choosing .flip:not(.chosen) .pcard { opacity: .35; }
.deal.done .flip:not(.chosen) { opacity: 0; transform: translateY(30px); transition: all .4s ease; }
.loading-deal { grid-column: 1 / -1; }

/* ---------------------------------------------------------------- lineup card */
.lineup { position: sticky; top: 20px; background: var(--card); border: 2px solid var(--ink); padding: 16px 18px 14px; box-shadow: 4px 5px 0 rgba(29,26,22,.18); }
.lc-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 12px; }
.lc-head h3 { margin: 0; font-family: var(--slab); font-size: 24px; font-style: italic; }
.lc-count { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.lc-count b { color: var(--ink); font-size: 17px; }
.field { position: relative; aspect-ratio: 400 / 340; }
.field-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.slot { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: 0; padding: 0; cursor: default; z-index: 2; }
.slot .ring { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  font-family: var(--slab); font-weight: 700; font-size: 15px; background: var(--card); border: 2px solid var(--ink); transition: transform .15s; }
.slot .ring img { width: 100%; height: 100%; object-fit: cover; object-position: top; background: #d8d0bf; }
.slot .tag { max-width: 92px; padding: 1px 6px; background: var(--card); border: 1.5px solid var(--ink); font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot.empty .tag { display: none; }
.slot.filled { cursor: help; }
.slot.pop .ring { animation: pop .4s ease-out; }
@keyframes pop { 0% { transform: scale(.5); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
.slot.target { cursor: pointer; z-index: 3; }
.slot.target .ring { background: var(--mustard); animation: nudge 1s ease-in-out infinite; }
.slot.target:hover .ring { background: var(--red); color: var(--card); animation: none; transform: scale(1.12); }
@keyframes nudge { 50% { transform: scale(1.1); } }

.bench { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 12px; border: 2px solid var(--ink); }
.bench .slot { position: relative; transform: none; padding: 10px 4px 8px; border-right: 1.5px solid var(--ink); }
.bench .slot:last-child { border-right: 0; }
.bench .slot .lbl { font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.lc-note { margin: 12px 0 0; font-family: var(--mono); font-size: 11px; color: var(--muted); text-align: center; }

.fly { position: fixed; z-index: 100; border-radius: 50%; object-fit: cover; object-position: top; pointer-events: none; background: #d8d0bf;
  border: 2px solid var(--ink); transition: all .55s cubic-bezier(.5, 0, .2, 1); }

/* ---------------------------------------------------------------- reveal (report card) */
.sheet { background: var(--card); border: 2px solid var(--ink); padding: 26px 28px; position: relative; }
.sheet::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--ink); pointer-events: none; }
.sheet h2 { margin: 0; font-family: var(--slab); font-size: 40px; line-height: 1; }
.sheet .eyebrow { margin-bottom: 6px; }
.name-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.name-input { flex: 1; min-width: 240px; padding: 2px 0; background: transparent; border: 0; border-bottom: 2px dashed var(--ink-2);
  font-family: var(--slab); font-weight: 700; font-size: clamp(30px, 3.6vw, 42px); color: var(--ink); outline: none; }
.name-input:focus { border-bottom-color: var(--red); border-bottom-style: solid; }
.name-hint { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.report { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: 14px; }
.report th { text-align: left; font-family: var(--mono); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); padding: 6px 8px; border-bottom: 2px solid var(--ink); }
.report td { padding: 8px; border-bottom: 1px solid #d3c8b0; vertical-align: middle; }
.report tr { opacity: 0; transition: opacity .3s; }
.report tr.show, .report thead tr { opacity: 1; }
.report .pos { font-family: var(--slab); font-weight: 700; width: 44px; }
.report .who b { font-weight: 600; }
.report .who small { display: block; font-size: 12px; color: var(--muted); }
.report .ovr { font-family: var(--mono); font-weight: 600; font-size: 18px; text-align: right; width: 56px; }
.report .best { font-size: 12.5px; color: var(--ink-2); }
.report .best.hit { color: var(--green); font-weight: 600; }
.report .best.miss b { color: var(--red); }
.stamp { display: inline-block; padding: 2px 7px; border: 2px solid currentColor; font-family: var(--mono); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transform: rotate(-3deg); }
.totals { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 22px; border: 2px solid var(--ink); }
.totals div { padding: 12px 14px; border-right: 1.5px solid var(--ink); }
.totals div:last-child { border-right: 0; }
.totals b { display: block; font-family: var(--slab); font-size: 38px; line-height: 1; }
.totals span { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.totals .grade b { color: var(--red); }
.sheet-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 22px; }

/* ---------------------------------------------------------------- newspaper */
.paper { background: #f8f3e6; border: 2px solid var(--ink); padding: 18px 26px 26px; box-shadow: 4px 5px 0 rgba(29,26,22,.18); }
.np-mast { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; border-bottom: 3px double var(--ink); padding-bottom: 8px; }
.np-mast span { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-2); }
.np-mast span:last-child { text-align: right; }
.np-mast b { font-family: var(--slab); font-size: clamp(22px, 3vw, 34px); font-style: italic; letter-spacing: -.5px; }
.np-head { margin: 16px 0 6px; font-family: var(--slab); font-weight: 700; font-size: clamp(38px, 5.4vw, 66px); line-height: .95; letter-spacing: -1.5px; text-transform: uppercase; }
.np-deck { margin: 0 0 14px; font-family: var(--slab); font-weight: 500; font-size: 20px; color: var(--ink-2); border-bottom: 1px solid var(--ink); padding-bottom: 12px; }
.np-body { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.np-record { border-right: 1px solid var(--ink); padding-right: 20px; }
.np-record .wl { font-family: var(--mono); font-weight: 600; font-size: 54px; line-height: 1; letter-spacing: -2px; }
.np-record .wl em { font-style: normal; color: var(--muted); }
.np-record .pace { margin-top: 6px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--red); }
.np-record dl { margin: 14px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 13px; }
.np-record dt { color: var(--muted); } .np-record dd { margin: 0; font-weight: 600; text-align: right; }
.chart { width: 100%; height: 150px; display: block; }
.chart .grid line { stroke: #cdbf9f; stroke-width: 1; }
.chart .zero { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .line { fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linejoin: round; }
.chart text { fill: var(--muted); font-size: 10px; font-family: var(--mono); }
.chart-cap { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.verdict-line { margin: 16px 0 0; padding: 10px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: 15px; }
.verdict-line b { color: var(--red); }

.october { margin-top: 18px; }
.october h3 { margin: 0 0 8px; font-family: var(--slab); font-size: 24px; }
.series { display: grid; grid-template-columns: 1fr auto 70px; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid #cdbf9f; opacity: 0; transition: opacity .35s; }
.series.show { opacity: 1; }
.series .rd { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.series .op { font-weight: 600; font-size: 15px; }
.series .sscore { font-family: var(--mono); font-size: 24px; font-weight: 600; text-align: right; }
.series.won .sscore { color: var(--green); } .series.lost .sscore { color: var(--red); }
.dots { display: flex; gap: 3px; }
.dots i { width: 22px; height: 22px; display: grid; place-items: center; font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 600;
  border: 1.5px solid var(--ink); visibility: hidden; }
.dots i.show { visibility: visible; }
.dots i.w { background: var(--ink); color: var(--card); } .dots i.l { background: transparent; color: var(--ink); }

.finale { margin-top: 20px; padding-top: 16px; border-top: 3px double var(--ink); }
.finale p { margin: 0; font-size: 16px; line-height: 1.55; }
.finale.champ p::first-letter { font-family: var(--slab); font-weight: 700; font-size: 3em; float: left; line-height: .8; margin: 4px 8px 0 0; color: var(--red); }
.awards { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; }
.award span { display: block; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.award b { font-family: var(--slab); font-size: 19px; }
.actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 200; }

/* ---------------------------------------------------------------- compare */
.c-intro h1 { font-size: clamp(56px, 7vw, 96px); }
.matchup { display: grid; grid-template-columns: 1fr 64px 1fr; gap: 14px; margin-top: 34px; }
.vs { align-self: center; justify-self: center; font-family: var(--slab); font-style: italic; font-weight: 700; font-size: 30px; color: var(--red); }
.cslot { position: relative; min-height: 172px; padding: 20px; background: var(--card); border: 2px solid var(--ink); border-top: 8px solid var(--accent); box-shadow: 3px 4px 0 rgba(29,26,22,.18); }
.cslot[data-side="1"] { --accent: var(--red); }
.cslot[data-side="2"] { --accent: var(--navy); }
.slot-label { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.search { position: relative; }
.search input { width: 100%; padding: 13px 14px 13px 42px; font: 500 16px var(--sans); color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 3px; outline: none; }
.search input::placeholder { color: #a79c87; }
.search input:focus { box-shadow: 0 0 0 3px var(--mustard); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-2); }
.cslot .hint { margin-top: 10px; font-size: 13px; color: var(--muted); }
.suggest { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: 4px; background: var(--card); border: 2px solid var(--ink); box-shadow: 4px 5px 0 rgba(29,26,22,.2); }
.suggest li { display: flex; align-items: center; gap: 12px; padding: 7px 8px; cursor: pointer; }
.suggest li.on, .suggest li:hover { background: var(--paper-2); }
.suggest img { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); object-fit: cover; object-position: top; background: #d8d0bf; flex: none; }
.suggest .nm { font-weight: 600; font-size: 14px; }
.suggest .sub { font-size: 12px; color: var(--muted); }
.suggest .empty { color: var(--muted); font-size: 14px; padding: 10px; cursor: default; }
.ccard { display: flex; gap: 18px; align-items: center; }
.shot { width: 108px; height: 108px; flex: none; border-radius: 50%; overflow: hidden; border: 2px solid var(--ink); background: #d8d0bf; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.meta { min-width: 0; flex: 1; }
.tagline { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 1px; color: var(--accent); text-transform: uppercase; }
.meta h2 { margin: 2px 0 6px; font-family: var(--slab); font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -.5px; }
.team { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.team img { width: 24px; height: 24px; }
.facts { margin-top: 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.change { position: absolute; top: 12px; right: 12px; font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  color: var(--ink-2); background: transparent; border: 0; text-decoration: underline; cursor: pointer; }
.change:hover { color: var(--red); }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; }
.examples span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-right: 4px; }
.chip { font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 7px 12px; cursor: pointer; background: transparent; border: 1.5px solid var(--ink); border-radius: 3px; }
.chip:hover { background: var(--ink); color: var(--card); }
.controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 24px 0 6px; }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 3px; }
.seg button { font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; padding: 9px 16px; cursor: pointer; background: transparent; border: 0; }
.seg button + button { border-left: 2px solid var(--ink); }
.seg button.on { background: var(--ink); color: var(--card); }
.select { position: relative; }
.select select { appearance: none; font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--ink);
  background: var(--card); border: 2px solid var(--ink); border-radius: 3px; padding: 10px 36px 10px 14px; cursor: pointer; outline: none; }
.select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 6px; height: 6px; margin-top: -5px; pointer-events: none;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }
.results { margin-top: 18px; }
.c-board { background: var(--card); border: 2px solid var(--ink); box-shadow: 4px 5px 0 rgba(29,26,22,.18); }
.score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 18px 24px; border-bottom: 2px solid var(--ink); }
.score .side { display: flex; align-items: center; gap: 14px; }
.score .side.r { justify-content: flex-end; text-align: right; }
.score .big { font-family: var(--mono); font-weight: 600; font-size: 60px; line-height: .9; }
.score .l .big { color: var(--red); } .score .r .big { color: var(--navy); }
.score .who { font-weight: 600; font-size: 15px; }
.score .who small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.score .mid { text-align: center; }
.score .mid b { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px; color: var(--muted); text-transform: uppercase; font-weight: 500; }
.score .verdict { font-family: var(--slab); font-weight: 700; font-size: 28px; margin-top: 2px; }
.rows { padding: 6px 24px 14px; }
.row { display: grid; grid-template-columns: 76px 1fr 150px 1fr 76px; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px solid #d3c8b0; }
.row:last-child { border-bottom: 0; }
.row .lbl { text-align: center; font-size: 13px; font-weight: 600; }
.row .lbl small { display: block; font-family: var(--mono); font-size: 10px; font-weight: 400; color: var(--muted); }
.row .val { font-family: var(--mono); font-size: 16px; font-weight: 500; color: var(--ink-2); }
.row .val.l { text-align: right; }
.row .val.win { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.row .val.win.l { text-decoration-color: var(--red); } .row .val.win.r { text-decoration-color: var(--navy); }
.bar { height: 12px; border: 1.5px solid var(--ink); display: flex; background: var(--card); }
.bar.l { justify-content: flex-end; }
.bar i { display: block; height: 100%; width: 0; background: #cbbfa5; transition: width .7s ease-out; }
.bar.l i.win { background: var(--red); }
.bar.r i.win { background: var(--navy); }
.row.neutral .val { color: var(--muted); }
.note { color: var(--muted); font-family: var(--mono); font-size: 11.5px; padding: 12px 0; }
.msg { padding: 30px 20px; text-align: center; color: var(--ink-2); background: var(--card); border: 2px dashed var(--ink-2); }
.msg.err { color: var(--red); border-color: var(--red); }
.loading { display: flex; justify-content: center; padding: 50px; }
.ball-spin { width: 40px; height: 40px; animation: spinball .9s linear infinite; }
@keyframes spinball { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- my career */
.c-intro .lede { margin-bottom: 0; }
.create { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; margin-top: 30px; align-items: start; }
.create-form fieldset { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.create-form legend, .create-form .row2 legend { padding: 0; margin-bottom: 8px; font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.row3 { display: grid; grid-template-columns: 1fr 1fr 110px; gap: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.create-form label { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.create-form input { font: 600 18px var(--slab); color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 3px; padding: 10px 12px; outline: none; text-transform: none; letter-spacing: 0; }
.create-form input:focus { box-shadow: 0 0 0 3px var(--mustard); }
.opt-grid { display: grid; gap: 8px; }
.pos-grid { grid-template-columns: repeat(5, 1fr); }
.arch-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.path-grid { grid-template-columns: 1fr 1fr; }
.opt-grid button { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 12px; text-align: left; cursor: pointer;
  background: var(--card); border: 2px solid var(--ink); border-radius: 3px; transition: transform .1s, background .15s; }
.opt-grid button:hover { background: var(--paper-2); }
.opt-grid button.on { background: var(--ink); color: var(--card); box-shadow: 3px 3px 0 var(--red); }
.opt-grid button b { font-family: var(--slab); font-size: 18px; }
.opt-grid button small { font-size: 12px; line-height: 1.35; color: var(--muted); }
.opt-grid button.on small { color: #cfc5b0; }
.pos-grid button { align-items: center; text-align: center; padding: 8px 4px; }
.pos-grid button small { font-size: 10px; }
.swatches { display: flex; gap: 8px; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); cursor: pointer; }
.swatches button.on { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--red); }
.seg-wrap { flex-wrap: wrap; }
.create-go { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.err { color: var(--red); font-weight: 600; font-size: 14px; }
.create-preview { position: sticky; top: 20px; }
.create-preview .fine, .c-stats .fine { font-family: var(--mono); font-size: 11px; color: var(--muted); margin: 10px 0 0; }
.career-card { position: relative; left: auto; top: auto; width: 100%; aspect-ratio: 5 / 7.2; transform: rotate(-1.2deg); cursor: default; }
.career-card .pc-photo { background: var(--navy); }
.career-card.role-SP .pc-photo { background: var(--red); }
.career-card .avatar { position: relative; width: 92%; height: auto; display: block; }
.career-card .pc-plate b { font-size: 22px; }

.career-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.c-side { position: sticky; top: 20px; display: grid; gap: 16px; }
.side-box { background: var(--card); border: 2px solid var(--ink); padding: 12px 14px; }
.side-box h4 { margin: 0 0 8px; font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); border-bottom: 1.5px solid var(--ink); padding-bottom: 6px; }
.attr, .meter { display: grid; grid-template-columns: 112px 1fr 28px; gap: 8px; align-items: center; padding: 4px 0; font-size: 13px; }
.attr i, .meter i { height: 10px; border: 1.5px solid var(--ink); background: #fff; }
.attr i b, .meter i b { display: block; height: 100%; background: var(--ink); }
.meter i b { background: var(--red); }
.attr em, .meter em { font-style: normal; font-family: var(--mono); font-weight: 600; text-align: right; }
.money { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 10px 0 0; padding-top: 8px; border-top: 1px dashed #b9ad94; font-size: 12.5px; }
.money dt { color: var(--muted); } .money dd { margin: 0; text-align: right; font-weight: 600; }
.btn-quiet.small { font-size: 11px; justify-self: start; padding: 4px 0; }

.scene { scroll-margin-top: 20px; }
.scene .sheet h2 { font-size: 36px; }
.sub-copy { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.body-copy { font-size: 16px; line-height: 1.6; margin: 0 0 6px; }
.paper .actions { margin-top: 18px; }
.flash { margin-top: 14px; padding: 10px 12px; background: var(--paper-2); border-left: 4px solid var(--mustard); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-fx { padding: 3px 8px; border: 1.5px solid var(--ink); background: var(--card); font-family: var(--mono); font-size: 11.5px; }
.chip-fx.up { border-color: var(--green); color: var(--green); } .chip-fx.up b { color: var(--green); }
.chip-fx.down { border-color: var(--red); color: var(--red); }
.train-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 18px; }
.train-opt { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 12px 14px; cursor: pointer; text-align: left;
  background: #fff; border: 2px solid var(--ink); border-radius: 3px; }
.train-opt span { font-weight: 600; }
.train-opt b { font-family: var(--mono); font-size: 18px; }
.train-opt i { grid-column: 1 / -1; height: 8px; border: 1.5px solid var(--ink); }
.train-opt i em { display: block; height: 100%; background: var(--ink-2); }
.train-opt:hover { background: var(--paper-2); }
.train-opt.on { background: var(--mustard); box-shadow: 3px 3px 0 var(--ink); }
.train-opt.on i { background: #fff; }

.memo { position: relative; background: #fffdf6; border: 2px solid var(--ink); padding: 22px 26px 24px; box-shadow: 4px 5px 0 rgba(29,26,22,.18);
  background-image: repeating-linear-gradient(transparent 0 27px, rgba(33,58,92,.09) 27px 28px); }
.memo::before { content: ""; position: absolute; top: 0; bottom: 0; left: 18px; border-left: 1.5px solid rgba(184,50,42,.35); }
.memo-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); padding-left: 10px; }
.memo h2 { margin: 14px 0 8px; padding-left: 10px; font-family: var(--slab); font-size: 34px; line-height: 1.05; }
.memo p { padding-left: 10px; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.memo .chips, .memo .flash { margin-left: 10px; }
.memo .stamp.ok { color: var(--green); } .memo .stamp.bad { color: var(--red); }
.choices { display: grid; gap: 10px; margin-top: 18px; padding-left: 10px; }
.choice { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 14px 54px; text-align: left; cursor: pointer;
  background: var(--card); border: 2px solid var(--ink); border-radius: 3px; transition: transform .08s, box-shadow .12s; }
.choice b { font-family: var(--slab); font-size: 20px; }
.choice small { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.choice span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  border: 2px solid var(--ink); font-family: var(--mono); font-weight: 600; }
.choice:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.choice:hover:not(:disabled) span { background: var(--red); color: var(--card); border-color: var(--red); }

.paper.clip { transform: rotate(-.4deg); }
.ledger.mini { margin-top: 4px; }
.ledger.mini th, .ledger.mini td { text-align: center; font-family: var(--mono); padding: 6px 4px; }
.ledger.mini td { font-size: 16px; font-weight: 600; }
.award-stamps { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; }
.award-stamps .stamp { color: var(--red); font-size: 12px; padding: 4px 9px; }
.award-stamps .stamp:nth-child(even) { transform: rotate(2deg); color: var(--navy); }
.callup { margin: 14px 0 0; padding: 12px 14px; background: var(--ink); color: var(--card); font-family: var(--slab); font-weight: 700; font-size: 20px; }
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.offer { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: #fff; border: 2px solid var(--ink); }
.offer-top { display: flex; justify-content: space-between; align-items: flex-start; }
.offer-top img { width: 44px; height: 44px; }
.offer .tag { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; padding: 2px 6px; background: var(--mustard); border: 1.5px solid var(--ink); }
.offer h3 { margin: 6px 0 0; font-family: var(--slab); font-size: 20px; }
.offer .terms { font-family: var(--mono); font-size: 14px; }
.offer .total { font-family: var(--slab); font-weight: 700; font-size: 28px; color: var(--red); }
.offer .fine { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); flex: 1; }
.hof-box { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 14px 16px; border: 2px solid var(--ink); background: var(--card); }
.hof-box .stamp { font-size: 15px; padding: 6px 12px; color: var(--muted); }
.hof-box.in .stamp { color: var(--red); }
.hof-box p { margin: 0; font-size: 16px; }

.c-stats, .c-log { margin-top: 30px; }
.c-stats h3, .c-log h3 { margin: 0 0 8px; font-family: var(--slab); font-size: 26px; }
.table-scroll { overflow-x: auto; border: 2px solid var(--ink); background: var(--card); }
.ledger.stats { font-size: 13px; white-space: nowrap; }
.ledger.stats th, .ledger.stats td { padding: 7px 9px; }
.ledger.stats td { font-family: var(--mono); }
.ledger.stats tr.minors td { color: var(--muted); }
.ledger.stats td.aw { font-family: var(--sans); font-size: 12px; color: var(--red); white-space: normal; min-width: 140px; }
.ledger.stats tfoot td { font-weight: 600; border-top: 2px solid var(--ink); border-bottom: 0; background: var(--paper-2); }
.c-log ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ink); }
.c-log li { position: relative; padding: 6px 0 6px 18px; font-size: 14px; color: var(--ink-2); }
.c-log li::before { content: ""; position: absolute; left: -6px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--ink); }
.c-log li:first-child::before { background: var(--red); }
.c-log li b { font-family: var(--mono); margin-right: 10px; color: var(--ink); }
.c-archive { margin-top: 40px; }

/* life off the field */
.meter.health i b { background: var(--green); }
.meter.fame i b { background: var(--mustard); }
.meter.rep i b { background: var(--navy); }
.life-sum { list-style: none; margin: 10px 0 0; padding: 8px 0 0; border-top: 1px dashed #b9ad94; }
.life-sum li { display: grid; grid-template-columns: 22px 62px 1fr; align-items: center; gap: 6px; padding: 3px 0; font-size: 13px; }
.life-sum em { font-style: normal; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.life-sum b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.life-btn { width: 100%; justify-content: center; margin-top: 12px; }
.days { display: inline-flex; gap: 4px; margin-left: 4px; }
.days i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); }
.days i.on { background: #fff; }
.ls-money .days i { background: var(--hair-2); } .ls-money .days i.on { background: var(--red); }
#career-dialog.life { width: min(1060px, calc(100vw - 24px)); }
.life-status { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--hair); background: var(--paper-2); }
.ls-meters { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 20px; }
.ls-money { display: grid; grid-template-columns: repeat(3, auto); justify-content: end; gap: 26px; }
.ls-money span { display: block; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.ls-money b { font-family: var(--slab); font-size: 26px; }
.life-result { display: flex; gap: 16px; align-items: flex-start; margin: 16px 22px 0; padding: 16px 18px; border-radius: 16px; background: var(--ink); color: var(--chalk);
  animation: viewIn .5s var(--ease) both; }
.life-result .lr-icon { font-size: 40px; line-height: 1; }
.life-result b { font-family: var(--slab); font-size: 22px; }
.life-result p { margin: 4px 0 0; color: #cfc5b0; font-size: 14.5px; line-height: 1.5; }
.life-result .chip-fx { background: transparent; color: var(--chalk); border-color: rgba(244,241,230,.3); }
.life-result .chip-fx.up { color: #8fdc9c; border-color: #8fdc9c; } .life-result .chip-fx.up b { color: #8fdc9c; }
.life-result .chip-fx.down { color: #ff9a8a; border-color: #ff9a8a; }
.life-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 16px 22px 0; }
.life-tabs button { font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--hair-2); background: var(--card-2); cursor: pointer; transition: background .2s, color .2s; }
.life-tabs button.on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.life-pane { padding: 14px 22px 8px; }
.tab-note { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.shop-tabs { margin-bottom: 12px; }
.life-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.life-card { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: 1fr auto; gap: 4px 14px; padding: 14px; border-radius: 16px;
  background: var(--card-2); border: 1px solid var(--hair); box-shadow: var(--sh-1); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.life-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.life-card.off { opacity: .62; }
.lc-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--paper-2); font-size: 28px; flex: none; }
.lc-body b { font-family: var(--slab); font-size: 18px; }
.lc-body p { margin: 3px 0 6px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.lc-meta { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.lc-meta span { padding: 2px 7px; border-radius: 999px; background: var(--paper-2); }
.lc-meta .price { background: var(--ink); color: var(--card); }
.lc-meta .price.free { background: var(--green); }
.lc-go { grid-column: 1 / -1; justify-content: center; padding: 9px 14px; font-size: 12px; }
.fund-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fund { padding: 16px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--hair); box-shadow: var(--sh-1); }
.fund-top { display: flex; gap: 12px; align-items: center; }
.fund-top b { display: block; font-family: var(--slab); font-size: 19px; }
.fund-top small { font-family: var(--mono); font-size: 11px; color: var(--red); text-transform: uppercase; letter-spacing: .1em; }
.fund p { font-size: 13px; color: var(--ink-2); line-height: 1.45; min-height: 38px; }
.fund-bal { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-top: 1px dashed #b9ad94; border-bottom: 1px dashed #b9ad94; margin-bottom: 10px; }
.fund-bal span { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.fund-bal b { font-family: var(--slab); font-size: 24px; }
.fund-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.fund-btns .btn { padding: 7px 11px; font-size: 11px; }
.owned { display: grid; gap: 8px; }
.own-row { display: grid; grid-template-columns: 52px 1fr auto auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--hair); }
.own-row b { font-family: var(--slab); font-size: 17px; }
.own-row small { display: block; font-size: 12.5px; color: var(--muted); }
.own-row .val { font-family: var(--mono); font-weight: 600; text-align: right; }
.own-row .val em { display: block; font-style: normal; font-size: 11px; }
.own-row .val em.up { color: var(--green); } .own-row .val em.down { color: var(--red); }
.own-h { margin: 18px 0 8px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.life-err { margin: 0 22px 16px; }

/* creator extras */
.opt-grid button em { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--red); margin-top: 2px; }
.opt-grid button.on em { color: var(--mustard); }
.form-h { margin: 30px 0 14px; padding-top: 14px; border-top: 2px solid var(--ink); font-family: var(--slab); font-size: 24px; }
.seg button.locked { opacity: .45; cursor: not-allowed; }
.extras { grid-template-columns: 1fr 1fr 1fr; }
.extras input { font-size: 15px; }
.perk { padding: 10px 12px; background: var(--ink); color: var(--card); font-size: 13px; line-height: 1.4; }
.perk b { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--mustard); margin-bottom: 2px; }
#open-locker { justify-content: center; }

/* spring training */
.step-h { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; font-family: var(--slab); font-size: 22px; }
.step-h span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: var(--card); font-family: var(--mono); font-size: 14px; }
.step-h small { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.drill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.drill { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px; text-align: left; cursor: pointer;
  background: var(--board); color: var(--chalk); border: 2px solid var(--ink); border-radius: 3px; box-shadow: inset 0 0 0 3px var(--board-2);
  transition: transform .1s, box-shadow .15s; }
.drill b { font-family: var(--slab); font-size: 19px; }
.drill small { font-family: var(--mono); font-size: 11px; color: #9fb7a6; }
.drill span { margin-top: 10px; font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--mustard); }
.drill em { position: absolute; top: 10px; right: 10px; font-style: normal; font-family: var(--mono); font-size: 10.5px; color: #cfe0b8; }
.drill:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: inset 0 0 0 3px var(--board-2), 4px 4px 0 var(--ink); }
.drill:disabled { cursor: default; opacity: .5; }
.drill.done span { color: #cfe0b8; }

/* dialogs */
#career-dialog { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 3px solid var(--ink); background: var(--paper); color: var(--ink);
  box-shadow: 8px 10px 0 rgba(29,26,22,.35); overflow: auto; }
#career-dialog::backdrop { background: rgba(29, 26, 22, .6); }
#career-dialog.locker { width: min(980px, calc(100vw - 24px)); }
.mg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 22px 12px; border-bottom: 2px solid var(--ink); }
.mg-head h2 { margin: 0; font-family: var(--slab); font-size: 30px; }
.mg-head small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.mg-head .eyebrow { margin-bottom: 2px; }
.mg-x { background: none; border: 2px solid var(--ink); width: 34px; height: 34px; font-size: 16px; cursor: pointer; }
.mg-x:hover { background: var(--ink); color: var(--card); }
.mg-arena { padding: 18px 22px 22px; min-height: 320px; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.mg-intro { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 280px; text-align: center; }
.mg-intro p { max-width: 520px; font-size: 16px; line-height: 1.6; margin: 0; }
.mg-intro .chips { justify-content: center; }
.mg-count { display: grid; place-items: center; min-height: 280px; font-family: var(--slab); font-weight: 700; font-size: 120px; color: var(--red); }
.mg-score { font-family: var(--slab); font-weight: 700; font-size: 96px; line-height: 1; }
.mg-score small { font-size: .3em; color: var(--muted); }
.mg-hud { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-height: 26px; margin-bottom: 10px; font-family: var(--mono); font-size: 13px; }
.mg-hud span { color: var(--muted); }
.mg-hud b { font-weight: 600; text-align: right; }
.mg-hud b.good { color: var(--green); } .mg-hud b.bad { color: var(--red); } .mg-hud b.meh { color: #9a6d10; }
.mg-svg { display: block; width: 100%; height: auto; border: 2px solid var(--ink); max-height: 52vh; }
.mg-zone { max-width: 380px; margin: 0 auto; }
.mg-label { font-family: var(--mono); font-size: 10px; fill: #fbf7ee; letter-spacing: 1px; }
.mg-big { font-family: var(--slab); font-weight: 700; font-size: 24px; fill: #fbf7ee; }
.mg-pad { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.mg-pad.two .mg-btn { flex: 1; max-width: 220px; justify-content: center; }
.mg-btn { padding: 16px 28px; font-size: 15px; }
.mg-radar { display: flex; justify-content: center; align-items: center; gap: 40px; padding: 14px; background: var(--board); border: 2px solid var(--ink); cursor: pointer; }
.meter-v { position: relative; width: 46px; height: 240px; background: var(--board-2); border: 2px solid var(--chalk); }
.meter-v .sweet { position: absolute; left: 0; right: 0; top: 0; height: 7%; background: rgba(217, 165, 32, .55); }
.meter-v b { position: absolute; left: -10px; right: -10px; height: 4px; margin-bottom: -2px; background: var(--red); box-shadow: 0 0 0 1.5px var(--chalk); }
.readout { color: var(--chalk); text-align: center; }
.readout span { display: block; font-family: var(--mono); font-weight: 600; font-size: 72px; line-height: 1; }
.readout small { font-family: var(--mono); letter-spacing: 3px; color: #9fb7a6; }
.locker-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 26px; padding: 18px 22px 22px; }
.num-in { width: 100px; }
.unlocks { margin: 4px 0 6px; }
.unlocks h4 { margin: 0 0 6px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.unlock { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed #b9ad94; font-size: 13.5px; color: var(--muted); }
.unlock.open { color: var(--green); }
.unlock span { font-size: 12.5px; text-align: right; }

/* ---------------------------------------------------------------- stat lab */
.lab-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.lab-intro h1 { font-size: clamp(48px, 6.4vw, 88px); }
.season-pick { display: flex; flex-direction: column; gap: 6px; flex: none; }
.lab-controls { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; flex: none; }
.date-in { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink); background: var(--card); border: 2px solid var(--ink);
  border-radius: 3px; padding: 8px 10px; outline: none; }
.date-in:focus { box-shadow: 0 0 0 3px var(--mustard); }
.live-dot { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: var(--red); vertical-align: 0;
  animation: blink 1.2s ease-in-out infinite; }
.progress-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; font-size: 13.5px; color: var(--ink-2); }
.progress-strip b { font-family: var(--mono); color: var(--ink); }
.prog { width: 220px; height: 12px; border: 2px solid var(--ink); background: var(--card); }
.prog i { display: block; height: 100%; background: var(--green); }
.sim-note { margin: 12px 0 0; padding: 10px 14px; background: var(--paper-2); border-left: 4px solid var(--mustard); font-size: 13.5px; line-height: 1.5; color: var(--ink-2); max-width: 900px; }
.caveat { font-family: var(--mono); font-size: 12px; color: var(--red); }
.seg-pair { grid-column: 2; grid-row: 1 / span 2; align-self: end; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.seg-pair .seg { grid-column: auto; grid-row: auto; }
.lab-loading { padding: 60px 0; text-align: center; }
.lab-loading p { max-width: 520px; margin: 18px auto 0; color: var(--muted); }
.board-mini { display: inline-block; padding: 18px 26px; background: var(--board); color: var(--chalk); border: 3px solid var(--ink);
  font-family: var(--mono); font-size: 18px; letter-spacing: 2px; text-transform: uppercase; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .55; } }
.lab-sec { margin-top: 46px; padding-top: 18px; border-top: 3px solid var(--ink); }
.sec-head { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: end; margin-bottom: 18px; }
.sec-head h2 { margin: 0; font-family: var(--slab); font-size: 34px; line-height: 1.05; }
.sec-head p { grid-column: 1; margin: 0; max-width: 720px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.sec-head .seg { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
.face { border-radius: 50%; border: 1.5px solid var(--ink); background: #d8d0bf; object-fit: cover; object-position: top; flex: none; }

.tiles { display: grid; grid-template-columns: repeat(6, 1fr); border: 2px solid var(--ink); background: var(--card); }
.tile { padding: 14px 16px; border-right: 1.5px solid var(--ink); }
.tile:last-child { border-right: 0; }
.tile b { display: block; font-family: var(--mono); font-weight: 600; font-size: 30px; line-height: 1.1; }
.tile span { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.leaders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.leader { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--card); border: 1.5px solid var(--ink); min-width: 0; }
.leader > div { min-width: 0; flex: 1; }
.leader span { display: block; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--red); }
.leader b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leader small { font-size: 11.5px; color: var(--muted); }
.leader strong { font-family: var(--mono); font-size: 22px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.col-h { margin: 0 0 6px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; }
.col-h.up { color: var(--green); } .col-h.down { color: var(--red); } .col-h.lk { color: var(--red); } .col-h.ul { color: var(--chart-blue); margin-top: 18px; }
.trend { list-style: none; margin: 0; padding: 0; background: var(--card); border: 2px solid var(--ink); }
.trend li { display: grid; grid-template-columns: 20px 40px minmax(0, 1.1fr) minmax(70px, 1fr) auto 62px; gap: 10px; align-items: center;
  padding: 8px 12px; border-bottom: 1px solid #d3c8b0; }
.trend li:last-child { border-bottom: 0; }
.trend .rk { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.trend .who { min-width: 0; }
.trend .who b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend .who small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.bell { position: relative; height: 16px; }
.bell i { position: absolute; top: 50%; }
.bell .rail { left: 0; right: 0; height: 1px; background: #cdbf9f; }
.bell .bar-seg { height: 3px; margin-top: -1.5px; border-radius: 2px; }
.bell .dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; }
.bell .dot.was { background: var(--card); border: 2px solid var(--ink-2); }
.up { --c: var(--green); } .down { --c: var(--red); } .lk { --c: var(--red); } .ul { --c: var(--chart-blue); }
.bell .bar-seg, .bell .dot.now { background: var(--c); }
.bell .dot.now { box-shadow: 0 0 0 2px var(--card); }
.trend .vals { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.trend .vals em { font-style: normal; color: var(--muted); }
.trend .vals b { color: var(--ink); }
.trend .chg { font-family: var(--mono); font-size: 12.5px; font-weight: 600; text-align: right; color: var(--c); white-space: nowrap; }
.empty { color: var(--muted); font-style: italic; }

.luck-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.chart-box { margin: 0; padding: 14px; background: var(--card); border: 2px solid var(--ink); }
.chart-box figcaption b { display: block; font-family: var(--slab); font-size: 19px; }
.chart-box figcaption span { font-size: 12.5px; color: var(--muted); }
.lab-chart { position: relative; margin-top: 8px; }
.lab-chart svg { display: block; width: 100%; height: auto; }
.lab-chart .gl { stroke: #e3d9c4; stroke-width: 1; }
.lab-chart .tk { font-family: var(--mono); font-size: 10.5px; fill: var(--muted); }
.lab-chart .ax { font-family: var(--mono); font-size: 11px; fill: var(--ink-2); }
.lab-chart .diag { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 5 4; }
.lab-chart .diag-l { font-family: var(--mono); font-size: 10.5px; fill: var(--ink-2); }
.pt .hit { fill: transparent; cursor: pointer; }
.pt .mk { fill: var(--c); stroke: var(--card); stroke-width: 2; pointer-events: none; transition: r .1s; }
.pt.nt { --c: #a79c87; } .pt.lk { --c: var(--red); } .pt.ul { --c: var(--chart-blue); }
.pt.on .mk { r: 7; stroke: var(--ink); }
.tip { position: absolute; z-index: 5; min-width: 170px; padding: 8px 10px; background: var(--ink); color: var(--card); font-size: 12.5px; line-height: 1.45;
  pointer-events: none; transform: translateY(-100%); box-shadow: 3px 3px 0 rgba(29,26,22,.25); }
.tip span { color: #c9bfa9; font-family: var(--mono); font-size: 11px; }
.tip em { font-style: normal; color: var(--mustard); font-family: var(--mono); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; background: var(--c); }
.legend .lk { --c: var(--red); } .legend .ul { --c: var(--chart-blue); } .legend .nt { --c: #a79c87; }

.fact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.fact { display: flex; flex-direction: column; padding: 16px 16px 12px; background: #fffdf6; border: 2px solid var(--ink); box-shadow: 3px 4px 0 rgba(29,26,22,.15); }
.fact:nth-child(3n+2) { transform: rotate(.4deg); } .fact:nth-child(3n) { transform: rotate(-.35deg); }
.fact .kind { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--red); }
.fact .big { margin: 6px 0 4px; font-family: var(--slab); font-weight: 700; font-size: 38px; line-height: 1; }
.fact .big small { display: block; margin-top: 3px; font-family: var(--mono); font-weight: 500; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.fact p { flex: 1; margin: 4px 0 12px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.fact-foot { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px dashed #b9ad94; font-size: 13px; }
.fact-foot span { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); }

.board-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--ink); }
.search-in { flex: 1; min-width: 200px; max-width: 320px; padding: 9px 12px; font: 500 14px var(--sans); background: #fff; border: 2px solid var(--ink); border-radius: 3px; outline: none; }
.search-in:focus { box-shadow: 0 0 0 3px var(--mustard); }
.board-count { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lab-table th.sortable { cursor: pointer; user-select: none; }
.lab-table th.sortable:hover { color: var(--ink); }
.lab-table th.sorted { color: var(--red); }
.lab-table tbody tr:hover td { background: var(--paper-2); }
.more { margin-top: 12px; }
.glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 30px; margin: 0; }
.glossary div { padding: 10px 0; border-bottom: 1px dashed #b9ad94; }
.glossary dt { font-family: var(--mono); font-weight: 600; font-size: 14px; color: var(--red); }
.glossary dd { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* ---------------------------------------------------------------- dynasty */
.dyn-start { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; margin-top: 40px; align-items: start; }
.dyn-start h2 { margin: 0; font-family: var(--slab); font-size: 32px; }
.dyn-start .sub { margin: 4px 0 16px; color: var(--muted); }
.div-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 14px; }
.div-col h4 { margin: 0 0 6px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--red); }
.team-pick { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; margin-bottom: 6px; text-align: left; cursor: pointer;
  background: var(--card-2); border: 1px solid var(--hair); border-radius: 12px; font: 600 13.5px var(--sans); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.team-pick:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--ink); }
.build-team { padding: 24px; border-radius: var(--r-lg); background: var(--card-2); border: 1px solid var(--hair); box-shadow: var(--sh-2); }
.build-team .row2 { margin-bottom: 12px; gap: 12px; }
.build-team input[type=color] { width: 100%; height: 44px; padding: 4px; }
.custom-preview { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; padding: 14px; border-radius: 14px; background: var(--paper-2); }
.custom-preview b { display: block; font-family: var(--slab); font-size: 22px; }
.custom-preview small { color: var(--muted); }
.tbadge { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: #fff; border: 1px solid var(--hair); overflow: hidden; }
.tbadge img { width: 74%; height: 74%; object-fit: contain; }
.tbadge.custom { border: 3px solid; font-family: var(--slab); font-weight: 700; letter-spacing: -.02em; }

.fo-head { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 26px 28px;
  border-radius: var(--r-lg); color: var(--chalk); overflow: hidden; isolation: isolate; box-shadow: var(--sh-3);
  background: linear-gradient(120deg, var(--c1), color-mix(in srgb, var(--c1) 70%, #000) 70%); }
.fo-head::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background: radial-gradient(50% 120% at 100% 0%, var(--c2), transparent 70%); }
.fo-team { display: flex; align-items: center; gap: 18px; }
.fo-team .tbadge { box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.fo-head .eyebrow { color: rgba(255,255,255,.75); margin-bottom: 4px; }
.fo-head h1 { font-size: clamp(34px, 4vw, 54px); color: #fff; letter-spacing: -.03em; }
.fo-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.85); }
.fo-line b { font-family: var(--slab); font-size: 22px; color: #fff; }
.strk { padding: 2px 8px; border-radius: 999px; font-family: var(--mono); font-size: 11px; font-weight: 600; background: rgba(255,255,255,.18); }
.fo-sim { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fo-date { text-align: right; font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.8); }
.fo-date span { display: block; font-family: var(--slab); font-size: 20px; color: #fff; }
.fo-date .prog { width: 220px; height: 6px; margin: 6px 0 3px auto; border: 0; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; }
.fo-date .prog i { background: #fff; }
.fo-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.fo-head .btn-line { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); box-shadow: none; }
.fo-head .btn-line:hover:not(:disabled) { background: #fff; color: var(--ink); }
.fo-head .btn-red { background: #fff; color: var(--ink); box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); }
.fo-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0 22px; }
.fo-tabs button { font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--hair-2); background: var(--card-2); cursor: pointer; transition: background .2s, color .2s; }
.fo-tabs button.on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.fo-tabs em { font-style: normal; display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; }
.fo-foot { margin-top: 40px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.fo-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel-s { padding: 18px; margin-bottom: 18px; border-radius: var(--r); background: var(--card-2); border: 1px solid var(--hair); box-shadow: var(--sh-1); }
.panel-s h3 { margin: 0 0 12px; font-family: var(--slab); font-size: 22px; }
.panel-s h4 { margin: 0 0 10px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.champ-banner { display: flex; align-items: center; gap: 16px; padding: 18px 22px; margin-bottom: 18px; border-radius: var(--r); background: var(--ink); color: var(--chalk); }
.champ-banner span { font-size: 40px; } .champ-banner b { display: block; font-family: var(--slab); font-size: 24px; } .champ-banner small { color: #b9ae98; }
.box .bx-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.bx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bx-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.bx-head strong { margin-left: auto; font-family: var(--slab); font-size: 32px; }
.ledger.bx { font-size: 12px; margin-bottom: 8px; }
.ledger.bx th, .ledger.bx td { padding: 4px 6px; text-align: right; font-family: var(--mono); }
.ledger.bx th:first-child, .ledger.bx td:first-child { text-align: left; font-family: var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.feed { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; }
.feed li { padding: 8px 0; border-bottom: 1px solid var(--hair); font-size: 13.5px; color: var(--ink-2); }
.feed li span { display: inline-block; min-width: 52px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.feed li.mine { color: var(--ink); font-weight: 600; }
.games { list-style: none; margin: 0 0 12px; padding: 0; }
.games li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.games em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.form { display: flex; gap: 4px; }
.form span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font-family: var(--mono); font-size: 11px; font-weight: 600; }
.form .W { background: rgba(63,122,74,.16); color: var(--green); } .form .L { background: rgba(184,50,42,.12); color: var(--red); }
.ledger.st td, .ledger.st th { padding: 7px 8px; }
.ledger.st tr.me td { background: rgba(217,165,32,.16); font-weight: 600; }
.ledger.st tr.cut td { border-bottom: 2px solid var(--red); }
.tcell { display: inline-flex; align-items: center; gap: 8px; }
.tab-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.count-chip { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tbl-h { margin: 22px 0 8px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.ros td { vertical-align: middle; }
.pcell { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 600; }
.pcell img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: top; background: #d8d0bf; }
.ovr { display: inline-grid; place-items: center; min-width: 30px; padding: 2px 6px; border-radius: 6px; font-family: var(--mono); font-weight: 600; font-size: 12.5px; }
.ovr.elite { background: var(--ink); color: var(--mustard); } .ovr.good { background: rgba(63,122,74,.18); color: var(--green); }
.ovr.ok { background: var(--paper-2); } .ovr.low { color: var(--muted); }
tr.hurt td { color: var(--muted); }
.il { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--red); }
.muted { color: var(--muted); }
.acts { white-space: nowrap; text-align: right; }
.mini { font-family: var(--mono); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 5px 9px; border-radius: 999px;
  border: 1px solid var(--hair-2); background: var(--card-2); cursor: pointer; }
.mini:hover:not(:disabled) { background: var(--ink); color: var(--card); }
.mini.go { background: var(--red); color: #fff; border-color: var(--red); }
.mini.quiet { border-color: transparent; color: var(--muted); }
.lineup-grid { grid-template-columns: 1fr 1fr; }
.order { display: grid; gap: 6px; }
.order-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 80px auto; gap: 8px; align-items: center; }
.order-row .n { font-family: var(--mono); font-weight: 600; color: var(--red); }
.order-row .select select { width: 100%; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 13.5px; padding: 9px 30px 9px 12px; }
.order-row .rt { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.sheet-actions.left { justify-content: flex-start; }
.month h3 { margin: 26px 0 10px; font-family: var(--slab); font-size: 24px; }
.cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.cal-g { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; gap: 2px 8px; align-items: center; padding: 10px; border-radius: 12px;
  background: var(--card-2); border: 1px solid var(--hair); }
.cal-g .cd { grid-column: 1 / -1; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.cal-g .tbadge { grid-row: span 2; }
.cal-g .co { font-weight: 600; font-size: 13px; }
.cal-g .cr { font-family: var(--mono); font-size: 12px; }
.cal-g.W { border-color: rgba(63,122,74,.45); } .cal-g.W .cr b { color: var(--green); }
.cal-g.L { border-color: rgba(184,50,42,.35); } .cal-g.L .cr b { color: var(--red); }
.cal-g.future { opacity: .75; }
.st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lg-h { margin: 6px 0 12px; font-family: var(--slab); font-size: 26px; }
.tr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tr-list { max-height: 520px; overflow: auto; display: grid; gap: 4px; }
.tr-row { display: grid; grid-template-columns: auto 30px 1fr auto auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.tr-row:hover { background: var(--paper-2); }
.tr-row.on { background: rgba(217,165,32,.18); border-color: var(--mustard); }
.tr-row img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: top; background: #d8d0bf; }
.tr-row .who b { display: block; font-size: 13.5px; } .tr-row .who small { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.tr-row .pot { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.tr-bar { position: sticky; bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding: 14px 18px;
  border-radius: var(--r); background: var(--ink); color: var(--chalk); box-shadow: var(--sh-3); }
.meter-wrap { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 260px; }
.interest { width: 180px; height: 10px; border-radius: 5px; background: rgba(255,255,255,.15); overflow: hidden; }
.interest i { display: block; height: 100%; background: #ff9a8a; transition: width .4s var(--ease); }
.interest i.ok { background: #8fdc9c; }
.meter-wrap span.ok { color: #8fdc9c; font-weight: 600; }
.tr-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.tr-bar .btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); box-shadow: none; }
.chip.on { background: var(--ink); color: var(--card); }
.kr { font-family: var(--mono); font-size: 11px; color: var(--ink-2); white-space: nowrap; }
.draft-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 16px; }
.draft-head h3 { margin: 0; font-family: var(--slab); font-size: 30px; }
.draft-head .sub { margin: 6px 0 0; max-width: 640px; color: var(--muted); }
.pts { text-align: right; } .pts b { display: block; font-family: var(--slab); font-size: 44px; line-height: 1; color: var(--red); }
.pts span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; } .pts small { display: block; font-size: 11.5px; color: var(--muted); }
.dr-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; align-items: start; }
.dr-grid:has(> :only-child) { grid-template-columns: 1fr; }
.ledger.dr td { vertical-align: middle; }
tr.taken td { color: var(--muted); }
.by { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--red); }
.rng { position: relative; display: inline-block; width: 120px; height: 16px; vertical-align: middle; border-radius: 4px; background: var(--paper-2); }
.rng i { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; background: var(--navy); opacity: .75; }
.rng b { position: absolute; left: calc(100% + 6px); top: -1px; font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.sdots { display: inline-flex; gap: 3px; } .sdots i { width: 8px; height: 8px; border-radius: 50%; background: var(--hair-2); } .sdots i.on { background: var(--green); }
.picks ol { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow: auto; }
.picks li { display: grid; grid-template-columns: 40px 1fr; padding: 5px 0; border-bottom: 1px solid var(--hair); font-size: 13px; }
.picks li span { font-family: var(--mono); color: var(--muted); } .picks li small { grid-column: 2; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.picks li.me b { color: var(--red); }
.lb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.lb ol { list-style: none; margin: 0; padding: 0; }
.lb li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--hair); font-size: 13px; }
.lb li img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; object-position: top; background: #d8d0bf; }
.lb li small { font-family: var(--mono); font-size: 10.5px; color: var(--muted); } .lb li b { font-family: var(--mono); }
.bracket { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.b-col h4 { margin: 0 0 10px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.ser { margin-bottom: 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--hair); overflow: hidden; box-shadow: var(--sh-1); }
.ser-t { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; font-weight: 600; }
.ser-t + .ser-t { border-top: 1px solid var(--hair); }
.ser-t b { font-family: var(--mono); } .ser-t.won { background: rgba(63,122,74,.12); } .ser-t.me span { color: var(--red); }
.dyn-toast { position: fixed; z-index: 300; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--chalk);
  font-size: 14px; box-shadow: var(--sh-3); animation: viewIn .4s var(--ease) both; transition: opacity .5s; }
.dyn-toast.bad { background: var(--red); }
.dyn-toast.out { opacity: 0; }

/* ---------------------------------------------------------------- players */
.pl-intro .lede { margin-bottom: 26px; }
.pl-search { max-width: 640px; }
.pl-search input { padding: 18px 18px 18px 50px; font-size: 18px; border-radius: 16px; box-shadow: var(--sh-2); }
.pl-search svg { left: 18px; width: 20px; height: 20px; }
.pl-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.pl-chips span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-right: 4px; }
#pl-profile { margin-top: 56px; scroll-margin-top: 80px; }
.pl-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: end; gap: 20px; padding: 32px 34px 0; border-radius: var(--r-lg);
  color: var(--chalk); overflow: hidden; isolation: isolate; box-shadow: var(--sh-3);
  background: radial-gradient(120% 120% at 100% 100%, #4a3f31 0%, #1d1a16 60%); }
.pl-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(244, 241, 230, .07) 1px, transparent 1.4px); background-size: 9px 9px; }
.pl-hero-text { padding-bottom: 30px; }
.pl-hero .eyebrow { color: var(--mustard); }
.pl-hero h2 { margin: 4px 0 10px; font-family: var(--slab); font-weight: 700; font-size: clamp(44px, 6vw, 84px); line-height: .9; letter-spacing: -.035em; color: #fff; }
.pl-team { display: flex; align-items: center; gap: 10px; font-weight: 600; color: rgba(255,255,255,.85); }
.pl-bio { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 24px; margin: 22px 0 0; }
.pl-bio dt { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.55); }
.pl-bio dd { margin: 2px 0 0; font-size: 14.5px; color: #fff; }
.pl-awards { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.award-b { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; background: rgba(217,165,32,.16); border: 1px solid rgba(217,165,32,.45); color: #f6d98c; cursor: help; }
.award-b b { color: #fff; }
.pl-photo { align-self: end; width: 100%; max-height: 380px; object-fit: contain; object-position: bottom; filter: drop-shadow(0 24px 30px rgba(0,0,0,.5)); }
.pl-photo.fb { width: auto; max-width: 260px; max-height: 300px; justify-self: center; border-radius: 22px 22px 0 0; }
.pl-group { margin: 26px 0 0; }
.pl-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 22px 0; }
.pl-tiles .bento-tile b { font-size: clamp(22px, 2.2vw, 30px); }
.pl-chart-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.pl-chart-head h3 { margin: 0; }
.pl-chart { position: relative; }
.pl-line { fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.pl-pt .hit { fill: transparent; cursor: pointer; }
.pl-pt .mk { fill: var(--red); stroke: var(--card-2); stroke-width: 2; pointer-events: none; }
.pl-pt.best .mk { fill: var(--mustard); stroke: var(--ink); r: 6.5; }
.pl-pt.on .mk { stroke: var(--ink); r: 7; }
.pl-h { margin: 34px 0 10px; font-family: var(--slab); font-size: 28px; }
.pl-table td.best { color: var(--red); font-weight: 700; }
.pl-table tr.tot td { font-weight: 600; }
.pl-table tr.sub td { color: var(--muted); font-size: 12px; }
.pl-table tr.sub td:nth-child(3) { padding-left: 22px; }
.pl-table .tcell img { width: 18px; height: 18px; }

/* =====================================================================
   REFINEMENT LAYER — same paper-and-ink identity, product-site polish:
   generous rhythm, big tight type, a frosted sticky header, hairline
   surfaces with soft depth, pill controls, scroll-driven reveals.
   (Lives before the responsive rules so phone/tablet tweaks still win.)
   ===================================================================== */
:root {
  --hair: rgba(29, 26, 22, .12);
  --hair-2: rgba(29, 26, 22, .22);
  --card-2: #fffcf6;
  --r-sm: 10px; --r: 16px; --r-lg: 26px;
  --sh-1: 0 1px 1px rgba(29, 26, 22, .04), 0 2px 8px rgba(29, 26, 22, .05);
  --sh-2: 0 1px 2px rgba(29, 26, 22, .05), 0 14px 34px -12px rgba(29, 26, 22, .24);
  --sh-3: 0 2px 6px rgba(29, 26, 22, .06), 0 30px 70px -22px rgba(29, 26, 22, .38);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
html { scroll-behavior: smooth; }
body { overflow-x: clip; text-rendering: optimizeLegibility; }
h1, h2, h3, .np-head { text-wrap: balance; }
p, .lede, dd { text-wrap: pretty; }
.view { animation: viewIn .7s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } }

/* -- frosted sticky header that slims down on scroll */
.masthead { position: sticky; top: 0; z-index: 60; max-width: none; margin: 0;
  padding: 16px max(24px, calc((100vw - 1240px) / 2 + 24px)) 0;
  background: rgba(242, 234, 216, .82); -webkit-backdrop-filter: saturate(170%) blur(18px); backdrop-filter: saturate(170%) blur(18px);
  transition: padding .35s var(--ease), box-shadow .35s var(--ease); }
.masthead::after { transition: opacity .3s; }
.wordmark, .wordmark svg, .tabs, .edition { transition: all .35s var(--ease); }
body.scrolled .masthead { padding-top: 6px; box-shadow: 0 1px 0 var(--hair), 0 10px 30px -18px rgba(29, 26, 22, .35); }
body.scrolled .masthead::after { opacity: 0; }
body.scrolled .wordmark { font-size: 23px; padding-bottom: 8px; }
body.scrolled .wordmark svg { width: 26px; height: 26px; }
body.scrolled .tabs { padding-bottom: 8px; }
body.scrolled .edition { padding-bottom: 10px; opacity: 0; }
.tabs a { transition: color .2s, border-color .25s; border-bottom-width: 2px; }

/* -- type scale and rhythm */
main { padding-top: 64px; }
h1 { font-size: clamp(60px, 9.4vw, 140px); letter-spacing: -.04em; line-height: .88; }
.lede { font-size: clamp(17px, 1.55vw, 21px); line-height: 1.55; max-width: 34em; }
.eyebrow { font-size: 11.5px; letter-spacing: .2em; }
.lab-intro h1 { font-size: clamp(54px, 7.6vw, 116px); }
.c-intro h1 { font-size: clamp(56px, 8vw, 120px); }

/* -- warm spotlight behind each hero */
.intro-grid, .lab-intro, .c-intro { position: relative; isolation: isolate; }
main { overflow-x: clip; }   /* the glow spills past the edge on purpose; never let it make the page scroll sideways */
.intro-grid::before, .lab-intro::before, .c-intro::before { content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -140px -12vw auto -12vw; height: 560px;
  background: radial-gradient(38% 58% at 20% 42%, rgba(217, 165, 32, .22), transparent 70%),
              radial-gradient(32% 52% at 82% 28%, rgba(184, 50, 42, .10), transparent 70%); }

/* -- buttons: pills with soft depth */
.btn { border-radius: 999px; border-width: 1.5px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s; }
.btn-red { border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 24px -10px rgba(184, 50, 42, .75); }
.btn-red:hover:not(:disabled) { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 16px 30px -12px rgba(184, 50, 42, .85); }
.btn-big, .btn-big:hover:not(:disabled), .btn-big:active:not(:disabled) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 14px 34px -12px rgba(184, 50, 42, .85); }
.btn-big:hover:not(:disabled) { transform: translateY(-2px); }
.btn-big:active:not(:disabled) { transform: translateY(0); }
.btn-line { border-color: var(--hair-2); background: var(--card-2); box-shadow: var(--sh-1); }
.btn-line:hover:not(:disabled) { border-color: var(--ink); }

/* -- segmented controls and choice grids */
.seg { border: 1px solid var(--hair-2); border-radius: 999px; padding: 3px; gap: 2px; background: var(--card-2); box-shadow: var(--sh-1); }
.seg button { border-radius: 999px; transition: background .25s var(--ease), color .2s; }
.seg button + button { border-left: 0; }
.seg button:hover:not(.on):not(:disabled) { background: var(--paper-2); }
.era-opts { border: 1px solid var(--hair-2); border-radius: 20px; overflow: hidden; background: var(--card-2); box-shadow: var(--sh-1); }
.era-opts button, .era-opts .year-pick { border-right: 1px solid var(--hair); transition: background .2s; }
.opt-grid button, .train-opt, .choice { border: 1px solid var(--hair-2); border-radius: 14px; background: var(--card-2);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s; }
.opt-grid button:hover, .train-opt:hover, .choice:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--sh-2); background: var(--card-2); border-color: var(--hair-2); }
.opt-grid button.on, .train-opt.on { box-shadow: var(--sh-2); border-color: var(--ink); }
.choice span { border-width: 1.5px; }

/* -- inputs */
.search input, .create-form input, .search-in, .date-in, .select select, .year-select select {
  border: 1px solid var(--hair-2); border-radius: 12px; background: #fffdf8; transition: border-color .2s, box-shadow .2s; }
.search input:focus, .create-form input:focus, .search-in:focus, .date-in:focus, .select select:focus {
  border-color: var(--ink); box-shadow: 0 0 0 4px rgba(217, 165, 32, .28); }

/* -- surfaces: hairlines + soft depth instead of heavy outlines (vintage player cards keep theirs) */
.rules, .side-box, .lineup, .cslot, .c-board, .chart-box, .trend, .tiles, .leader, .offer, .hof-box, .table-scroll, .fact, .bench, .flash {
  border: 1px solid var(--hair); border-radius: var(--r); background: var(--card-2); box-shadow: var(--sh-1); }
.trend, .tiles, .table-scroll, .bench { overflow: hidden; }
.cslot { border-top: 6px solid var(--accent); }
.sheet, .memo { border: 1px solid var(--hair); border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.sheet::before { border-color: var(--hair); border-radius: calc(var(--r-lg) - 6px); }
.rules::before { border-color: var(--hair); border-radius: calc(var(--r) - 6px); }
.paper { border: 1px solid var(--hair-2); border-radius: 10px; box-shadow: var(--sh-3); }
.board { border-radius: 18px; box-shadow: inset 0 0 0 4px var(--board-2), inset 0 0 0 5px rgba(244, 241, 230, .22), var(--sh-2); }
.drill { border-radius: 16px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.drill:hover:not(:disabled) { transform: translateY(-3px); box-shadow: inset 0 0 0 3px var(--board-2), var(--sh-2); }
.leader, .offer, .tile { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.leader:hover, .offer:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.tile { border-right-color: var(--hair); }
.bench .slot { border-right-color: var(--hair); }
#career-dialog { border: 1px solid var(--hair-2); border-radius: var(--r-lg); box-shadow: var(--sh-3); }
#career-dialog::backdrop { background: rgba(29, 26, 22, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* -- tables */
.ledger th { border-bottom: 1px solid var(--hair-2); }
.ledger td { border-bottom: 1px solid var(--hair); }
.ledger.stats tfoot td { border-top: 1px solid var(--hair-2); }
.lab-table tbody tr td { transition: background .15s; }

/* -- Stat Lab rhythm: whitespace instead of rules, numbered editorial headers */
#lab-root { counter-reset: sec; }
.lab-sec { margin-top: clamp(84px, 10vw, 150px); padding-top: 0; border-top: 0; }
.sec-head { margin-bottom: 30px; }
.sec-head h2 { font-size: clamp(34px, 4.4vw, 58px); letter-spacing: -.03em; line-height: .98; }
.sec-head h2::before { counter-increment: sec; content: counter(sec, decimal-leading-zero); display: block; margin-bottom: 14px;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--red); }
.sec-head p { font-size: 17px; line-height: 1.55; color: var(--muted); }
.sec-head p b { color: var(--ink); }

/* bento opener */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.bento-hero { grid-column: span 3; position: relative; min-height: 320px; padding: 28px 30px; border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; color: var(--chalk); box-shadow: var(--sh-3); isolation: isolate; }
.bento-hero.ink { background: radial-gradient(120% 100% at 100% 100%, #4a3f31 0%, #1d1a16 62%); }
.bento-hero.field { background: radial-gradient(120% 100% at 100% 100%, #2f6544 0%, #132a1d 62%); }
.bento-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(244, 241, 230, .07) 1px, transparent 1.4px); background-size: 9px 9px; }
.bh-img { position: absolute; z-index: -1; right: -6px; bottom: 0; height: 94%; max-width: 56%; object-fit: contain; object-position: bottom right;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .5)); transition: transform .8s var(--ease); }
.bento-hero:hover .bh-img { transform: scale(1.03) translateY(-4px); }
.bh-k { font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: var(--mustard); }
.bh-name { display: block; margin-top: 10px; max-width: 60%; font-family: var(--slab); font-weight: 700; font-size: clamp(26px, 2.6vw, 38px); line-height: 1; letter-spacing: -.02em; }
.bh-team { display: block; margin-top: 6px; font-family: var(--mono); font-size: 12px; color: rgba(244, 241, 230, .65); }
.bh-stat strong { display: block; font-family: var(--slab); font-weight: 700; font-size: clamp(72px, 8vw, 112px); line-height: .85; letter-spacing: -.04em; }
.bh-stat small { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: rgba(244, 241, 230, .7); }
.bh-line { margin-top: 12px; max-width: 58%; font-family: var(--mono); font-size: 12.5px; color: rgba(244, 241, 230, .78); }
.bento-tile { grid-column: span 1; padding: 20px 18px; border: 1px solid var(--hair); border-radius: var(--r); background: var(--card-2); box-shadow: var(--sh-1);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.bento-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.bento-tile b { display: block; font-family: var(--slab); font-weight: 700; font-size: clamp(28px, 2.6vw, 38px); line-height: 1; letter-spacing: -.02em; }
.bento-tile span { display: block; margin-top: 8px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.leader-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }

/* dark showcase band (surprising stats) */
.band-dark { margin-inline: calc(50% - 50vw); padding: clamp(72px, 9vw, 128px) calc(50vw - 50%); background: #1b1814; color: var(--chalk); }
.band-dark .sec-head h2 { color: var(--chalk); }
.band-dark .sec-head h2::before { color: #ff8a7a; }
.band-dark .sec-head p { color: #a99f8b; }
.band-dark .fact { background: #26221c; border-color: rgba(244, 241, 230, .09); box-shadow: none; color: var(--chalk); transform: none;
  transition: transform .3s var(--ease), border-color .3s; }
.band-dark .fact:hover { transform: translateY(-4px); border-color: rgba(244, 241, 230, .28); }
.band-dark .fact .kind { color: #ff8a7a; }
.band-dark .fact .big small, .band-dark .fact-foot span { color: #9c917c; }
.band-dark .fact p { color: #cfc5b0; }
.band-dark .fact-foot { border-top-color: rgba(244, 241, 230, .12); }

/* -- footer */
.site-foot { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; max-width: 1240px; margin: 120px auto 0; padding: 48px 24px 56px;
  border-top: 1px solid var(--hair-2); font-family: var(--sans); font-size: 14px; color: var(--ink-2); }
.site-foot b { font-family: var(--slab); font-style: italic; font-size: 26px; color: var(--ink); }
.site-foot p { margin: 8px 0 0; line-height: 1.55; color: var(--muted); max-width: 34em; }
.site-foot span { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); }
.foot-nav a { display: block; padding: 3px 0; color: var(--ink); text-decoration: none; }
.foot-nav a:hover { color: var(--red); }

/* -- scroll-driven reveals (CSS only, so re-renders never replay them) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .lab-sec .sec-head, .trend, .bento > *, .leader-strip > *, .fact, .chart-box, .lab-sec .table-scroll, .glossary > div,
    .how li, .hof, .c-stats, .c-log, .rules, .step {
      animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 18%;
    }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(36px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- polish pass */
/* tab switches cross-fade and drift up slightly */
::view-transition-old(root) { animation: vt-out .18s ease both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* trading cards catch the light where the pointer is */
.pcard { position: relative; }   /* .hcard is already positioned */
.pcard::after, .hcard::after, .pl-star::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  border-radius: inherit; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 45%),
              linear-gradient(115deg, transparent 30%, rgba(255, 236, 190, .25) 45%, rgba(190, 220, 255, .22) 55%, transparent 70%);
  mix-blend-mode: soft-light; }
.pcard:hover::after, .hcard:hover::after, .pl-star:hover::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .career-card { transition: transform .5s var(--ease); }
  .career-card:hover { transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) rotate(-1.2deg); transition: transform .12s linear; }
}

/* Players: a wall of cut-out cards before you search */
.pl-wall { margin-top: 44px; }
.pl-wall-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.pl-wall-head h2 { margin: 0; font-family: var(--slab); font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.02em; }
.pl-wall-head p { margin: 0; color: var(--muted); }
.pl-stars { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; }
.pl-star { position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; cursor: pointer; text-align: left;
  border: 1px solid var(--hair); border-radius: 18px; background: var(--card-2); box-shadow: var(--sh-1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pl-star:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.pl-star-photo { position: relative; display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 1 / 1; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 100%, #2f5280, var(--navy)); }
.pl-star.legend .pl-star-photo { background: radial-gradient(90% 70% at 50% 100%, #c4473e, var(--red-dark)); }
.pl-star-photo::before { content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.pl-star-photo img { position: relative; width: 92%; height: auto; transform: translateY(6%); transition: transform .5s var(--ease); }
.pl-star:hover .pl-star-photo img { transform: translateY(2%) scale(1.04); }
.pl-star-plate { display: grid; gap: 2px; padding: 12px 14px 14px; }
.pl-star-plate b { font-family: var(--slab); font-size: 18px; line-height: 1.15; }
.pl-star-plate small { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .pl-star { animation: viz-rise .6s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
}
@keyframes viz-rise { from { opacity: 0; transform: translateY(18px); } }

/* Compare: matchup cards with both faces */
.examples { display: block; margin-top: 34px; }
.mu-label { margin: 0 0 12px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.mu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.mu { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 14px 18px 14px 14px; cursor: pointer; text-align: left; border: 1px solid var(--hair); border-radius: 18px;
  background: var(--card-2); box-shadow: var(--sh-1); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s; }
.mu:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--hair-2); }
.examples .mu span { margin: 0; letter-spacing: normal; text-transform: none; font-size: inherit; color: inherit; font-family: inherit; }
.examples .mu .mu-faces { grid-row: span 2; display: flex; }
.mu-faces img { width: 54px; height: 54px; object-fit: cover; object-position: top; border-radius: 50%; border: 2px solid var(--card-2);
  background: var(--navy); }
.mu-faces img + img { margin-left: -16px; background: var(--red); }
.examples .mu .mu-tag { grid-column: 2; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--red); }
.examples .mu .mu-names { grid-column: 2; }
.mu b { font-family: var(--slab); font-size: 20px; line-height: 1.2; }
.mu i { font-family: var(--slab); font-style: italic; font-size: 15px; color: var(--muted); margin: 0 6px; }

/* Dynasty: the franchise pulse and the faces of the team */
.pulse { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 18px; overflow: hidden;
  border: 1px solid var(--hair); border-radius: var(--r-lg); background: var(--hair); box-shadow: var(--sh-1); }
.pulse-tile { display: grid; gap: 4px; padding: 20px 22px; background: var(--card-2); }
.pulse-tile span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.pulse-tile b { font-family: var(--slab); font-size: clamp(30px, 3.4vw, 44px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pulse-tile small { color: var(--muted); font-size: 13px; }
.pulse-tile.up b { color: var(--green); }
.pulse-tile.down b { color: var(--red); }
.pulse-bar { grid-column: 1 / -1; position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 12px 22px 16px; background: var(--card-2);
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.pulse-bar i { position: absolute; left: 0; top: 0; height: 3px; background: var(--team); border-radius: 0 3px 3px 0; transition: width .8s var(--ease); }
.pulse-bar em { font-style: normal; }
.fo-stars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.fo-star { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px 12px 12px;
  border: 1px solid var(--hair); border-radius: 18px; background: var(--card-2); box-shadow: var(--sh-1); }
.fo-star-photo { position: relative; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; display: grid; place-items: end center;
  background: radial-gradient(90% 80% at 50% 100%, #2f5280, var(--navy)); }
.fo-star-photo img { position: relative; z-index: 1; width: 100%; height: auto; }
.fo-star-photo em { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-family: var(--slab); font-size: 22px; color: rgba(255, 255, 255, .85); }
.fo-star-photo img + em { display: none; }
.fo-star-pos { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--red); }
.fo-star b { display: block; font-family: var(--slab); font-size: 17px; line-height: 1.15; }
.fo-star small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 1100px) { .fo-stars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .pulse { grid-template-columns: repeat(2, 1fr); }
  .fo-stars { grid-template-columns: 1fr; }
}

/* Stat Lab: sticky section menu */
.lab-nav { position: sticky; top: 64px; z-index: 20; display: flex; gap: 4px; width: max-content; max-width: 100%; margin: 10px auto 26px;
  padding: 5px; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--hair-2); border-radius: 999px;
  background: rgba(251, 247, 238, .78); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: var(--sh-2); }
.lab-nav::-webkit-scrollbar { display: none; }
.lab-nav a { flex: none; padding: 8px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; white-space: nowrap;
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; transition: background .25s, color .2s; }
.lab-nav a:hover { color: var(--ink); background: var(--paper-2); }
.lab-nav a.on { color: var(--card); background: var(--ink); }
.lab-sec[id] { scroll-margin-top: 130px; }

/* Viz Lab: idea cards and a drawing skeleton */
.viz-ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 18px; }
.viz-idea { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 14px 16px; cursor: pointer; text-align: left;
  border: 1px solid var(--hair); border-radius: 18px; background: var(--card-2); box-shadow: var(--sh-1); font: 14.5px/1.4 var(--sans); color: var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s; }
.viz-idea:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--hair-2); }
.viz-idea small { display: block; margin-bottom: 3px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--red); }
.viz-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--paper); }
.viz-icon svg { width: 28px; height: 28px; fill: #a79c87; stroke: #a79c87; }
.viz-icon .hi { fill: var(--red); }
.viz-icon .hi-s { stroke: var(--red); }
.viz-icon svg path { fill: none; }
.viz-skeleton { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 3%; height: 170px; margin-top: 22px; padding: 18px 4% 0;
  border-radius: var(--r); background: #fbf7ee; border: 1px solid var(--hair); overflow: hidden; }
.viz-skeleton i { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(90deg, #ece3d0, #f6efe0, #ece3d0); background-size: 300% 100%;
  animation: viz-shimmer 1.6s linear infinite; }
.viz-skeleton i:nth-child(4) { background-image: linear-gradient(90deg, #e9c6c0, #f4dcd6, #e9c6c0); }
@keyframes viz-shimmer { to { background-position: -300% 0; } }

/* our own "are you sure?" box */
dialog.ask { width: min(440px, calc(100vw - 32px)); padding: 26px 26px 22px; border: 1px solid var(--hair-2); border-radius: 22px;
  background: var(--card-2); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(29, 26, 22, .5); }
dialog.ask::backdrop { background: rgba(29, 26, 22, .38); backdrop-filter: blur(3px); }
dialog.ask h3 { margin: 0 0 8px; font-family: var(--slab); font-size: 24px; }
dialog.ask p { margin: 0 0 22px; font-size: 16.5px; line-height: 1.5; }
.ask-btns { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.ask-btns .btn { padding: 11px 18px; }
@media (prefers-reduced-motion: no-preference) {
  dialog.ask[open] { animation: ask-in .28s var(--ease); }
  dialog.ask[open]::backdrop { animation: ask-fade .28s ease; }
}
@keyframes ask-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes ask-fade { from { opacity: 0; } }

/* Dynasty: saved dynasties on the start screen */
.dyn-saves { margin: 8px 0 34px; }
.dyn-saves h2 { margin: 0 0 4px; font-family: var(--slab); font-size: 30px; }
.dyn-saves > p { margin: 0 0 16px; color: var(--muted); }
.save-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.save-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; padding: 16px 18px;
  border: 1px solid var(--hair); border-left: 5px solid var(--c1, var(--ink)); border-radius: 18px; background: var(--card-2); box-shadow: var(--sh-1); }
.save-card .tbadge { grid-row: span 2; }
.save-card b { font-family: var(--slab); font-size: 20px; line-height: 1.15; }
.save-card small { color: var(--muted); font-size: 13px; }
.save-card .save-btns { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 8px; }
.save-card .save-btns .btn { padding: 8px 14px; font-size: 11.5px; }
.save-card .save-btns .del { margin-left: auto; }
.fo-crumbs { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; }
.fo-crumbs span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.fo-leave { padding: 8px 14px; border-radius: 999px; cursor: pointer; border: 1px solid var(--hair-2); background: var(--card-2); color: var(--ink);
  box-shadow: var(--sh-1); font-family: var(--mono); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  transition: border-color .2s, transform .25s var(--ease); }
.fo-leave:hover { border-color: var(--ink); transform: translateX(-2px); }
.dyn-new-h { margin: 10px 0 16px; font-family: var(--slab); font-size: 30px; }

/* eight tabs now: keep the wordmark on one line */
.wordmark { white-space: nowrap; }
.tabs { gap: 22px; }
.tabs a { letter-spacing: 1px; white-space: nowrap; }
@media (max-width: 1320px) and (min-width: 761px) {
  .edition { display: none; }
}

/* My Career: the in-season screen */
.season-boards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 8px; }
.goal-box { padding: 16px 18px; border: 1px solid var(--hair); border-radius: var(--r); background: var(--card-2); box-shadow: var(--sh-1); }
.goal-box h3 { margin: 0 0 4px; font-family: var(--slab); font-size: 20px; }
.goal-box ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.goal-box li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.goal-box li small { color: var(--muted); }
.goal-box .tick { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--hair-2); font-size: 12px; font-weight: 700; }
.goal-box li.done .tick { background: var(--green); border-color: var(--green); color: #fff; }
.goal-box li.done { color: var(--ink); }
.goal-box li.miss .tick { background: #f1ddd9; border-color: #e3b8b1; color: var(--red); }
.mini-note { margin: 0; font-size: 13px; color: var(--muted); }
.spots { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 8px; }
.spot { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px;
  border: 1px solid var(--hair); border-radius: 14px; background: var(--card-2); }
.spot.next { border-color: var(--ink); box-shadow: var(--sh-2); }
.spot:not(.next):not(.done) { opacity: .55; }
.spot-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); font-family: var(--mono); font-weight: 700; }
.spot.done.w .spot-n { background: var(--green); color: #fff; }
.spot.done.l .spot-n { background: var(--red); color: #fff; }
.spot small { color: var(--muted); }
.spot em { font-style: normal; font-family: var(--mono); font-weight: 700; color: var(--muted); }
.spot em.up { color: var(--green); } .spot em.down { color: var(--red); }
.spot-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.spot-btns .btn { padding: 9px 16px; }
.work-card { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 16px 0 4px; padding: 16px 18px;
  border: 1px solid #e3b8b1; border-left: 5px solid var(--red); border-radius: var(--r); background: #fbf0ee; }
.work-card b { font-family: var(--slab); font-size: 18px; }
.work-card p { margin: 4px 0 0; max-width: 560px; font-size: 14.5px; line-height: 1.5; }
@media (max-width: 760px) { .season-boards { grid-template-columns: 1fr; } .spot { grid-template-columns: 30px 1fr; } .spot-btns { grid-column: 1 / -1; } }

/* My Career: skill points, streaks, trophies, off days, special games */
.xp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.xp-pill { padding: 3px 9px; border-radius: 999px; background: var(--mustard); color: var(--ink); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: none; }
.attr.has-xp { grid-template-columns: 100px 1fr 24px 44px; gap: 6px; }
.xp-btn { justify-content: center; }
.xp-btn { display: inline-flex; align-items: baseline; gap: 2px; padding: 2px 7px; border: 1px solid var(--hair-2); border-radius: 999px; background: var(--card-2);
  cursor: pointer; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--green); transition: background .15s, transform .15s; }
.xp-btn small { font-size: 9.5px; color: var(--muted); font-weight: 600; }
.xp-btn:hover:not(:disabled) { background: #e6f2e4; transform: translateY(-1px); }
.xp-btn:disabled { opacity: .35; cursor: not-allowed; color: var(--muted); }
.streak { margin: 10px 0; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 600; }
.streak.hot { background: #fbe3d8; color: #a33a12; border: 1px solid #f1b89c; }
.streak.cold { background: #dfeaf7; color: #1f4f86; border: 1px solid #aecbec; }
.trophy-box h4 small { color: var(--muted); font-weight: 500; }
.trophies { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.trophy { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #fff7df; border: 1px solid #ecd9a0; font-size: 18px; }
.trophy-box details summary { cursor: pointer; font-size: 12.5px; color: var(--muted); }
.trophy-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
.trophy-list li { display: flex; gap: 8px; align-items: center; }
.trophy-list li.got { color: var(--ink); }
.trophy-list small { margin-left: auto; font-family: var(--mono); }
.offday-card { margin: 16px 0 4px; padding: 16px 18px; border: 1px solid #c9dcc4; border-left: 5px solid var(--green); border-radius: var(--r); background: #f1f7ee; }
.offday-card > div > b { font-family: var(--slab); font-size: 18px; }
.offday-card p { margin: 2px 0 10px; font-size: 14.5px; }
.offday-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.offday-opt { display: grid; gap: 3px; padding: 12px; text-align: left; cursor: pointer; border: 1px solid var(--hair-2); border-radius: 14px; background: #fff;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.offday-opt:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--green); }
.offday-opt span { font-size: 22px; } .offday-opt b { font-size: 14.5px; } .offday-opt small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.tag-pill { display: inline-block; margin: 0 8px 2px 0; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--mustard);
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; vertical-align: 1px; }
.tag-pill.rivalry { background: var(--red); color: #fff; }
.tag-pill.primetime, .tag-pill.showcase { background: var(--navy); color: #fff; }
.tag-pill.race, .tag-pill.push { background: var(--mustard); color: var(--ink); }
@media (max-width: 760px) { .offday-opts { grid-template-columns: 1fr; } }

/* My Career: the season hub (a real schedule, one game at a time) */
.season-hub .sh-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.season-hub h2 { margin: 2px 0 0; font-family: var(--slab); font-size: clamp(30px, 4vw, 44px); line-height: 1; }
.sh-sub { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.sh-team { display: grid; justify-items: end; gap: 1px; text-align: right; }
.sh-team b { font-family: var(--slab); font-size: 34px; line-height: 1; }
.sh-team span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.sh-team small { font-size: 13px; color: var(--ink-2, var(--ink)); }
.sh-cal { position: relative; height: 10px; margin: 26px 0 30px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--hair); }
.sh-cal-fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, var(--green), #6aa35f); transition: width .5s var(--ease); }
.sh-mark { position: absolute; top: -5px; width: 2px; height: 18px; background: var(--ink); opacity: .5; }
.sh-mark em { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sh-mark.up em { top: auto; bottom: 20px; }
.sh-mark.past { opacity: .25; }
.sh-here { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; transform: translate(-50%, -50%);
  background: var(--red); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); transition: left .5s var(--ease); }
.sh-next { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin: 16px 0 10px; padding: 18px 20px;
  border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--card-2); box-shadow: var(--sh-2); }
.sh-next h3 { margin: 2px 0 4px; font-family: var(--slab); font-size: 24px; }
.sh-next p { margin: 0; max-width: 560px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.sh-next .spot-btns .btn { padding: 11px 20px; }
.sh-next.hurt { border-color: #e3b8b1; background: #fbf0ee; }
.sh-next.hurt b { font-family: var(--slab); font-size: 19px; }
.sh-sims { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sh-sims > span { margin-right: 4px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.sh-sims .btn { padding: 8px 14px; font-size: 14px; }
.sh-hint { margin-top: 8px; }
.sh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 10px; }
.sh-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 6px; }
.sh-nums div { display: grid; gap: 2px; padding: 10px 6px; text-align: center; border-radius: 12px; background: var(--paper); }
.sh-nums b { font-family: var(--slab); font-size: 22px; line-height: 1; }
.sh-nums span { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sh-badge { display: inline-block; margin: 8px 0 0; padding: 4px 10px; border-radius: 999px; background: #fff7df; border: 1px solid #ecd9a0; font-size: 13px; font-weight: 600; }
.sh-feed { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.sh-feed li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; }
.sh-feed li.mine { background: #fff7df; }
.sh-feed b { font-size: 14px; margin-right: 6px; }
.sh-feed small { display: block; color: var(--muted); font-size: 12.5px; }
.sh-feed em { font-style: normal; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--muted); }
.sh-feed em.up { color: var(--green); } .sh-feed em.down { color: var(--red); }
.sf-wl { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-family: var(--mono); font-size: 11px; font-weight: 700; color: #fff; }
.sh-feed li.w .sf-wl { background: var(--green); } .sh-feed li.l .sf-wl { background: var(--red); }
.sf-you { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--mustard); font-family: var(--mono); font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; vertical-align: 1px; }
.sh-goals li { align-items: flex-start; }
.sh-goals li > div { flex: 1; display: grid; gap: 3px; }
.sh-goals b { font-weight: 600; font-size: 14.5px; }
.sh-goals small { font-size: 12.5px; color: var(--muted); }
.sh-goals small.ok { color: var(--green); }
.sh-bar { display: block; height: 5px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.sh-bar i { display: block; height: 100%; border-radius: 999px; background: var(--mustard); }
.sh-bar i.ok { background: var(--green); }
.post-score { display: flex; align-items: center; gap: 14px; }
.post-score > div { display: grid; justify-items: center; gap: 4px; }
.post-score img { width: 40px; height: 40px; }
.post-score b { font-family: var(--slab); font-size: 40px; line-height: 1; }
.post-score > em { font-style: normal; font-size: 28px; color: var(--muted); }
.pdots { display: flex; gap: 4px; }
.pdots i { width: 9px; height: 9px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--hair-2); }
.pdots i.w { background: var(--green); border-color: var(--green); } .pdots i.l { background: var(--red); border-color: var(--red); }
.sh-oct { margin: 10px 0; font-family: var(--slab); font-size: 18px; }
.post-hub .sh-next { border-color: var(--mustard); background: linear-gradient(135deg, #fffaf0, #fff3d6); }
.stint-h { margin: 14px 0 4px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.post-sum { margin: 14px 0; padding: 12px 14px; border-left: 4px solid var(--mustard); background: var(--paper-2); }
.post-sum ul { margin: 6px 0; padding-left: 18px; font-size: 14px; }
.post-sum small { color: var(--muted); }
@media (max-width: 760px) { .sh-grid { grid-template-columns: 1fr; } .sh-mark em { display: none; } .sh-team { justify-items: start; text-align: left; } }

/* ---------------------------------------------------------------- play ball (pixel arcade) */
.pb-menu, .pb-game { --px: "Silkscreen", var(--mono); }
.pb-menu { padding-top: 8px; }
.pb-hero { display: grid; grid-template-columns: 1fr minmax(240px, 400px); gap: 32px; align-items: center; margin-bottom: 30px; }
.pb-kicker { margin: 0 0 8px; font-family: var(--px); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.pb-title { margin: 0; font-family: var(--px); font-weight: 700; font-size: clamp(54px, 8.5vw, 112px); line-height: .95; letter-spacing: -.01em;
  color: var(--ink); text-shadow: 4px 4px 0 var(--mustard), 8px 8px 0 rgba(29, 26, 22, .18); }
.pb-sub { max-width: 520px; margin: 16px 0 0; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.pb-rec { margin: 14px 0 0; font-family: var(--px); font-size: 14px; color: var(--muted); }
.pb-rec b { color: var(--ink); }
.pb-attract { width: 100%; height: auto; border-radius: 14px; border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--mustard); background: #1b2244; }
.pb-step { margin-top: 26px; }
.pb-step h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-family: var(--px); font-size: 18px; font-weight: 700; text-transform: uppercase; }
.pb-step h2 span { display: grid; place-items: center; width: 26px; height: 26px; background: var(--ink); color: var(--mustard); font-size: 14px; }
.pb-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.pb-team { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 4px 8px; cursor: pointer;
  border: 2px solid var(--hair-2); border-radius: 0; background: var(--card-2); font-family: var(--px); font-size: 12px; color: var(--ink);
  box-shadow: 3px 3px 0 rgba(29, 26, 22, .12); transition: transform .12s, box-shadow .12s, border-color .12s; }
.pb-team img { width: 34px; height: 34px; object-fit: contain; }
.pb-team:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(29, 26, 22, .2); border-color: var(--ink); }
.pb-team.on { border-color: var(--c1); background: var(--c1); color: #fff; box-shadow: 4px 4px 0 var(--c2); }
.pb-team.on img { filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff); }
.pb-opts { display: flex; flex-wrap: wrap; gap: 28px; }
.pb-seg { display: inline-flex; border: 2px solid var(--ink); box-shadow: 3px 3px 0 rgba(29, 26, 22, .15); }
.pb-seg button { padding: 10px 16px; border: 0; background: var(--card-2); cursor: pointer; font-family: var(--px); font-size: 14px; color: var(--ink); }
.pb-seg button + button { border-left: 2px solid var(--ink); }
.pb-seg button.on { background: var(--ink); color: var(--mustard); }
.pb-go { display: flex; align-items: center; gap: 18px; margin: 34px 0 10px; }
.pb-go p { margin: 0; font-family: var(--px); font-size: 13px; color: var(--muted); }
.pb-btn { padding: 9px 14px; cursor: pointer; border: 2px solid var(--ink); background: var(--card-2); color: var(--ink); border-radius: 0;
  font-family: var(--px); font-size: 13px; text-transform: uppercase; box-shadow: 3px 3px 0 rgba(29, 26, 22, .18); transition: transform .1s, box-shadow .1s; }
.pb-btn:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(29, 26, 22, .25); }
.pb-btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(29, 26, 22, .25); }
.pb-btn:disabled { opacity: .4; cursor: not-allowed; }
.pb-btn.primary { background: var(--red); color: #fff; box-shadow: 4px 4px 0 var(--ink); }
.pb-btn.big { padding: 16px 30px; font-size: 22px; }
.pb-btn.small { padding: 5px 9px; font-size: 11px; }
.pb-btn.danger { color: var(--red); }
.pb-btn.warn { background: var(--mustard); animation: pb-blink 1s steps(2) infinite; }
@keyframes pb-blink { 50% { background: var(--card-2); } }
.pb-loading { font-family: var(--px); }

.pb-game { max-width: min(1120px, calc((100vh - 150px) * 16 / 9)); margin: 0 auto; }
.pb-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #0d0f17; border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--mustard); }
.pb-stage canvas { display: block; width: 100%; height: 100%; cursor: crosshair; outline: none; touch-action: none; image-rendering: crisp-edges; image-rendering: pixelated; }
.pb-attract { image-rendering: pixelated; }
.pb-stage:fullscreen { border: 0; box-shadow: none; display: grid; place-items: center; background: #000; }
.pb-stage:fullscreen canvas { width: min(100vw, 177.78vh); height: auto; aspect-ratio: 16 / 9; }
.pb-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(10, 10, 20, .55); overflow: auto; }
.pb-overlay[hidden] { display: none; }
.pb-card { width: min(720px, 100%); max-height: 100%; overflow: auto; padding: 22px 24px; background: #fbf7ee; border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--mustard); font-family: var(--px); }
.pb-card h3 { margin: 0 0 8px; font-size: 26px; }
.pb-card p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; }
.pb-row { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.pb-final { font-size: 44px !important; }
.pb-row-top { justify-content: flex-start; margin: 0 0 16px; }
.pb-myline { font-size: 15px !important; }
.pb-title-sm { font-family: var(--px); font-size: 13px; text-transform: uppercase; color: var(--muted); }
dialog.pb-modal { width: min(1180px, 96vw); max-width: none; max-height: 96vh; margin: auto; padding: 18px 20px 14px; border: 4px solid var(--ink);
  background: var(--paper); box-shadow: 10px 10px 0 var(--mustard); overflow: auto; }
dialog.pb-modal::backdrop { background: rgba(12, 12, 22, .78); }
dialog.pb-modal .pb-game { max-width: min(1120px, calc((96vh - 210px) * 16 / 9)); }
dialog.pb-modal .pb-help { margin-top: 10px; font-size: 13px; gap: 8px 22px; }
dialog.pb-modal .pb-log { max-height: 80px; overflow: hidden; }
dialog.pb-modal .pb-bar { margin-top: 12px; }
.pb-final.won { color: var(--green); }
.pb-final.lost { color: var(--red); }
.pb-score { font-size: 20px !important; }
.pb-tables { display: grid; gap: 12px; }
.pb-card table { width: 100%; border-collapse: collapse; font-size: 12px; }
.pb-card th, .pb-card td { padding: 4px 6px; border-bottom: 1px solid rgba(29, 26, 22, .15); text-align: center; }
.pb-card th:first-child, .pb-card td:first-child { text-align: left; }
.pb-card small { color: var(--muted); }
.pb-pen { display: grid; gap: 8px; max-height: 300px; overflow: auto; }
.pb-arm { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px; cursor: pointer; text-align: left;
  border: 2px solid var(--ink); background: #fff; font-family: var(--px); font-size: 12px; }
.pb-arm:hover { background: var(--mustard); }
.pb-arm b { font-size: 14px; } .pb-arm span { grid-column: 1; color: var(--muted); } .pb-arm em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; }
.pb-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.pb-sp { flex: 1; }
.pb-help { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 26px; margin-top: 18px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.pb-help b { display: block; margin-bottom: 2px; font-family: var(--px); font-size: 13px; text-transform: uppercase; color: var(--ink); }
.pb-help kbd { padding: 1px 6px; border: 1px solid var(--hair-2); border-bottom-width: 2px; border-radius: 4px; background: #fff; font-family: var(--mono); font-size: 12px; }
.pb-log { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-family: var(--px); font-size: 12.5px; color: var(--muted); }
.pb-log li:first-child { color: var(--ink); }
@media (max-width: 760px) {
  .pb-hero { grid-template-columns: 1fr; }
  .pb-help { grid-template-columns: 1fr; }
  .pb-teams { grid-template-columns: repeat(5, 1fr); }
}

/* ---------------------------------------------------------------- cleaner finish (latest pass) */
/* Play Ball: from retro pixel menus to a clean, realistic broadcast look */
.pb-menu, .pb-game { --px: var(--sans); }
.pb-title { font-family: var(--slab); font-weight: 700; letter-spacing: -.03em; text-shadow: none; }
.pb-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; }
.pb-attract { border: 0; border-radius: var(--r-lg); box-shadow: 0 24px 50px -24px rgba(20, 17, 15, .55), 0 0 0 1px rgba(20, 17, 15, .1); }
.pb-step h2 { font-family: var(--slab); font-size: 22px; text-transform: none; letter-spacing: -.01em; }
.pb-step h2 span { border-radius: 50%; font-family: var(--mono); background: var(--ink); color: #fff; font-size: 12px; }
.pb-team { border: 1px solid var(--hair); border-radius: 14px; box-shadow: var(--sh-1); font-family: var(--mono); font-weight: 600; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.pb-team:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--hair-2); }
.pb-team.on { background: var(--c1); border-color: var(--c1); box-shadow: 0 10px 22px -10px var(--c1); }
.pb-seg { border: 1px solid var(--hair-2); border-radius: 999px; padding: 3px; box-shadow: var(--sh-1); background: var(--card-2); gap: 2px; }
.pb-seg button { border-radius: 999px; font-family: var(--sans); font-weight: 600; }
.pb-seg button + button { border-left: 0; }
.pb-seg button.on { background: var(--ink); color: #fff; }
.pb-btn { border: 1px solid var(--hair-2); border-radius: 999px; box-shadow: var(--sh-1); font-family: var(--sans); font-weight: 600; text-transform: none; font-size: 13.5px; padding: 9px 16px; }
.pb-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--sh-2); }
.pb-btn:active:not(:disabled) { transform: translateY(0); box-shadow: var(--sh-1); }
.pb-btn.primary { border-color: transparent; box-shadow: 0 12px 26px -12px rgba(184, 50, 42, .9); }
.pb-btn.big { font-size: 18px; padding: 15px 30px; }
.pb-btn.warn { animation: none; background: var(--mustard); }
.pb-stage { border: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 28px 60px -28px rgba(20, 17, 15, .6), 0 0 0 1px rgba(20, 17, 15, .12); }
.pb-card { border: 0; border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); font-family: var(--sans); }
.pb-card h3, .pb-final { font-family: var(--slab); }
.pb-arm { border: 1px solid var(--hair-2); border-radius: 12px; font-family: var(--sans); }
.pb-help b, .pb-log, .pb-rec, .pb-go p, .pb-title-sm { font-family: var(--sans); }
.pb-help { grid-template-columns: repeat(3, 1fr); }
dialog.pb-modal { border: 0; border-radius: 22px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6); }
@media (max-width: 960px) { .pb-help { grid-template-columns: 1fr; } }

/* My Career: lighter, rounded surfaces */
.side-box { border: 1px solid var(--hair); border-radius: var(--r); background: var(--card-2); box-shadow: var(--sh-1); padding: 14px 16px; }
.side-box h4 { border-bottom: 1px solid var(--hair); }
.attr i, .meter i { height: 8px; border: 0; border-radius: 999px; background: rgba(29, 26, 22, .08); overflow: hidden; }
.attr i b, .meter i b { border-radius: 999px; background: linear-gradient(90deg, var(--ink), #4a4339); }
.meter i b { background: linear-gradient(90deg, var(--red), #d9574c); }
.career-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0 0 20px; padding: 10px 12px 10px 16px;
  border: 1px solid var(--hair); border-radius: 999px; background: var(--card-2); box-shadow: var(--sh-1); }
.cb-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cb-who img { width: 26px; height: 26px; }
.cb-who b { font-family: var(--slab); font-size: 18px; white-space: nowrap; }
.cb-who span { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-btns { display: flex; align-items: center; gap: 8px; }
.cb-btns .btn { padding: 8px 16px; font-size: 12px; }
.cb-note { font-size: 12.5px; color: var(--muted); margin-right: 4px; }
.saved-careers { margin: 6px 0 30px; }
.saved-careers h3 { margin: 0 0 12px; font-family: var(--slab); font-size: 24px; }
.saved-careers .save-card { grid-template-columns: 64px 1fr; border-left-width: 1px; }
.sc-av { grid-row: span 2; width: 64px; height: 70px; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #d9e4ef, #bfcfe0); }
.sc-av .avatar { width: 100%; height: 100%; display: block; }
@media (max-width: 760px) { .career-bar { border-radius: 18px; } .cb-who span { display: none; } }

/* ---------------------------------------------------------------- viz lab */
.viz-ask { display: flex; gap: 12px; align-items: flex-end; margin-top: 30px; padding: 10px 10px 10px 22px;
  border: 1px solid var(--hair-2); border-radius: 26px; background: #fffdf8; box-shadow: var(--sh-2);
  transition: border-color .2s, box-shadow .2s; }
.viz-ask:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(217, 165, 32, .28), var(--sh-2); }
.viz-ask textarea, .viz-ask input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; resize: none;
  font: 17px/1.5 var(--sans); color: var(--ink); padding: 8px 0; }
.viz-ask .btn { flex: none; }
.viz-ideas { margin-top: 16px; }
.viz-setup { margin-top: 28px; padding: 22px 26px; border: 1px solid var(--hair); border-left: 4px solid var(--mustard);
  border-radius: var(--r); background: var(--card-2); box-shadow: var(--sh-1); max-width: 760px; }
.viz-setup h3 { margin: 0 0 12px; font-family: var(--slab); font-size: 24px; }
.viz-setup ol { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.viz-setup li { display: flex; gap: 12px; line-height: 1.5; }
.viz-setup li > span { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--muted); color: var(--muted); font-size: 13px; font-weight: 700; }
.viz-setup li.ok > span { background: var(--green); border-color: var(--green); color: #fff; }
.viz-setup li.ok > div { color: var(--muted); }
.viz-setup code, .viz-steps code { font-family: var(--mono); font-size: 13px; background: var(--paper); padding: 2px 6px; border-radius: 6px; user-select: all; }
#viz-out { scroll-margin-top: 90px; }
.viz-card { margin-top: 34px; padding: 28px; border: 1px solid var(--hair); border-radius: var(--r-lg); background: var(--card-2); box-shadow: var(--sh-2); }
.viz-q { margin: 0 0 18px; font-family: var(--slab); font-size: 22px; line-height: 1.3; }
.viz-working { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; align-items: start; }
.viz-working .viz-spin { grid-row: span 3; width: 56px; height: 56px; }
.viz-working .viz-spin svg { width: 100%; height: 100%; }
.viz-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-family: var(--mono); font-size: 13px; }
.viz-steps li { display: flex; align-items: center; gap: 10px; animation: viz-in .35s var(--ease) both; }
.viz-steps li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mustard); animation: viz-pulse 1s ease-in-out infinite alternate; }
.viz-steps li.done { color: var(--muted); }
.viz-steps li.done::before { background: var(--green); animation: none; }
.viz-note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
@keyframes viz-in { from { opacity: 0; transform: translateX(-6px); } }
@keyframes viz-pulse { to { opacity: .3; } }
.viz-err { border-left: 4px solid var(--red); }
.viz-fig { margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--hair); background: #fbf7ee; }
.viz-fig img { display: block; width: 100%; height: auto; }
.viz-summary { margin: 18px 0 0; font-size: 17px; line-height: 1.6; max-width: 760px; color: var(--ink-2); }
.viz-refine { margin-top: 20px; box-shadow: var(--sh-1); }
.viz-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.viz-files .btn { padding: 8px 14px; font-size: 11.5px; text-decoration: none; color: var(--ink); }
.viz-code { margin-top: 20px; border-radius: var(--r); background: #1d1a16; color: #f4f1e6; overflow: hidden; }
.viz-code summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; cursor: pointer;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: #cfc6b4; }
.viz-code summary .chip { color: #f4f1e6; border-color: #6b6355; border-radius: 999px; }
.viz-code summary .chip:hover { background: #f4f1e6; color: #1d1a16; }
.viz-code pre { margin: 0; padding: 4px 18px 20px; overflow-x: auto; font: 13px/1.6 var(--mono); }
.viz-h { margin: 56px 0 16px; font-family: var(--slab); font-size: 30px; }
.viz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.viz-thumb { position: relative; }
.viz-open { display: block; width: 100%; padding: 0; text-align: left; cursor: pointer; border: 1px solid var(--hair);
  border-radius: var(--r); overflow: hidden; background: var(--card-2); box-shadow: var(--sh-1);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s; }
.viz-open:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.viz-thumb.on .viz-open { border-color: var(--ink); }
.viz-open img { display: block; width: 100%; aspect-ratio: 10 / 6; object-fit: cover; background: #fbf7ee; border-bottom: 1px solid var(--hair); }
.viz-open span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 10px 14px 12px; font-size: 14px; line-height: 1.4; }
.viz-del { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(29, 26, 22, .72); color: #fff; font-size: 17px; line-height: 1; opacity: 0; transition: opacity .2s; }
.viz-thumb:hover .viz-del, .viz-del:focus-visible { opacity: 1; }
@media (max-width: 760px) {
  .viz-ask { flex-direction: column; align-items: stretch; padding: 12px 14px; border-radius: 20px; }
  .viz-card { padding: 18px; }
  .viz-del { opacity: 1; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .d-game { grid-template-columns: 1fr; }
  .lineup { position: relative; top: 0; max-width: 520px; width: 100%; margin: 0 auto; }
  .intro-grid { grid-template-columns: 1fr; gap: 10px; }
  .two-col, .luck-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento-hero { grid-column: span 3; }
  .leader-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: span 2; }
  .tiles { grid-template-columns: repeat(3, 1fr); } .tile:nth-child(3) { border-right: 0; } .tile:nth-child(-n+3) { border-bottom: 1.5px solid var(--ink); }
  .leaders { grid-template-columns: repeat(2, 1fr); }
  .career-grid, .create { grid-template-columns: minmax(0, 1fr); }
  .c-side, .create-preview { position: relative; top: 0; }
  .c-side { grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
  .c-side > * { min-width: 0; }
  .create-preview { max-width: 300px; }
  .how ol { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .how li:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (max-width: 760px) {
  .masthead { grid-template-columns: 1fr auto; padding: 14px 14px 0; gap: 10px; }
  .edition { display: none; }
  .wordmark { font-size: 20px; white-space: nowrap; gap: 7px; } .wordmark svg { width: 24px; height: 24px; }
  .tabs { gap: 12px; } .tabs a { font-size: 11px; letter-spacing: .6px; white-space: nowrap; }
  main { padding: 24px 14px 30px; }
  .era-opts { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .era-opts > * { padding: 10px 12px; border-right: 0 !important; border-bottom: 2px solid var(--ink); }
  .era-opts > :nth-child(odd) { border-right: 2px solid var(--ink) !important; }
  .era-opts > :nth-last-child(-n+2) { border-bottom: 0; }
  .era-opts button b, .year-pick b { font-size: 16px; }
  .hand { height: 330px; transform: scale(.72); transform-origin: 50% 0; margin-bottom: -80px; }
  .c-side { grid-template-columns: minmax(0, 1fr); }
  .c-side .career-card { max-width: 280px; }
  .hof .ledger, .od-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .row3 { grid-template-columns: 1fr 1fr; } .row3 .num { grid-column: span 2; }
  .row2, .path-grid { grid-template-columns: 1fr; gap: 14px; }
  .pos-grid { grid-template-columns: repeat(5, 1fr); gap: 5px; } .pos-grid button small { display: none; }
  .offers { grid-template-columns: 1fr; }
  .memo { padding: 18px 16px 18px 18px; } .memo h2 { font-size: 26px; }
  .choice { padding-left: 48px; } .choice b { font-size: 17px; }
  .extras { grid-template-columns: 1fr; }
  .dyn-start, .fo-grid, .lineup-grid, .st-grid, .tr-grid, .dr-grid, .bx-grid { grid-template-columns: 1fr; }
  .pl-hero { grid-template-columns: 1fr; padding: 24px 22px 0; } .pl-photo { max-height: 260px; justify-self: center; } .pl-hero-text { padding-bottom: 0; }
  .div-grid { grid-template-columns: 1fr 1fr; }
  .fo-sim { align-items: flex-start; } .fo-date { text-align: left; } .fo-date .prog { margin-left: 0; } .fo-btns { justify-content: flex-start; }
  .bracket { grid-template-columns: 1fr 1fr; }
  .life-status { grid-template-columns: 1fr; } .ls-money { justify-content: start; gap: 18px; } .ls-meters { grid-template-columns: 1fr; }
  .fund-grid { grid-template-columns: 1fr; }
  .own-row { grid-template-columns: 44px 1fr auto; } .own-row .btn { grid-column: 1 / -1; justify-content: center; }
  .lab-intro { flex-direction: column; align-items: flex-start; }
  .masthead { padding: 10px 14px 0; }
  main { padding-top: 36px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bento-hero { grid-column: span 2; min-height: 260px; padding: 22px; }
  .leader-strip { grid-template-columns: 1fr; }
  .site-foot { grid-template-columns: 1fr; gap: 26px; margin-top: 80px; } .foot-brand { grid-column: auto; }
  .sec-head { grid-template-columns: 1fr; } .sec-head .seg, .seg-pair { grid-column: 1; grid-row: auto; justify-self: start; justify-content: flex-start; }
  .tiles { grid-template-columns: repeat(2, 1fr); } .tile { border-bottom: 1.5px solid var(--ink); } .tile:nth-child(even) { border-right: 0; } .tile:nth-child(3) { border-right: 1.5px solid var(--ink); }
  .leaders { grid-template-columns: 1fr; }
  .trend li { grid-template-columns: 18px 34px minmax(0, 1fr) auto; } .trend .bell, .trend .chg { display: none; }
  .locker-body { grid-template-columns: 1fr; } #locker-preview { max-width: 240px; }
  .mg-arena { padding: 12px; } .mg-radar { gap: 18px; } .readout span { font-size: 52px; }
  .how ol { grid-template-columns: 1fr; }
  .how li { padding: 0; border-left: 0; }
  .d-head { flex-wrap: wrap; align-items: flex-start; }
  .board { grid-template-columns: auto 1fr; padding: 12px; gap: 12px; } .board-era { display: none; }
  .board-plate { width: 58px; height: 58px; } .board-plate img { width: 42px; height: 42px; }
  .sb-tiles i { width: 17px; height: 24px; font-size: 14px; } .sb-tiles i.sp { width: 6px; }
  .board-key { display: none; }
  .deal { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pc-plate b { font-size: 15px; } .pc-plate b.long { font-size: 13px; } .pc-plate b.xlong { font-size: 11.5px; }
  .pc-stats td { font-size: 11px; } .pc-stats th { font-size: 8.5px; }
  .pc-pos { min-width: 30px; height: 30px; font-size: 13px; top: 12px; left: 12px; }
  .totals { grid-template-columns: repeat(2, 1fr); } .totals div:nth-child(2) { border-right: 0; } .totals div:nth-child(-n+2) { border-bottom: 1.5px solid var(--ink); }
  .report .best { display: none; }
  .np-body { grid-template-columns: 1fr; } .np-record { border-right: 0; padding-right: 0; }
  .matchup { grid-template-columns: 1fr; } .vs { font-size: 24px; }
  .shot { width: 80px; height: 80px; } .meta h2 { font-size: 26px; }
  .score { padding: 14px; gap: 8px; } .score .big { font-size: 42px; } .score .who { display: none; }
  .rows { padding: 4px 12px 10px; }
  .row { grid-template-columns: 56px 1fr 88px 1fr 56px; gap: 8px; } .row .val { font-size: 13.5px; }
  .slot .ring { width: 38px; height: 38px; font-size: 13px; } .slot .tag { max-width: 76px; font-size: 9.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* one-inning challenges */
.pb-chal { margin-top: 30px; }
.pb-chal h2 small { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.pb-chal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.pb-chal-card { all: unset; box-sizing: border-box; display: grid; gap: 6px; align-content: start; padding: 16px 18px; border-radius: 16px; cursor: pointer;
  background: var(--card-2); border: 1px solid var(--hair); box-shadow: var(--sh-1); transition: transform .2s var(--ease), box-shadow .2s; }
.pb-chal-card:hover, .pb-chal-card:focus-visible { transform: translateY(-3px); box-shadow: var(--sh-2); }
.pb-chal-card b { font-family: var(--slab); font-size: 19px; }
.pb-chal-card span { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.pb-chal-card em { font-style: normal; font-family: var(--mono); font-size: 11.5px; color: #8a5f14; margin-top: 4px; }
.pb-chal-card em.done { color: var(--green); }

/* Draft Day difficulty + coins */
#diff-chips { margin-top: 8px; }
.era + .era { margin-top: 18px; }
.np-coins { margin: 10px 0 0; font-family: var(--mono); font-size: 14px; font-weight: 600; color: #8a5f14; }

/* ---------------------------------------------------------------- accounts */
.acct-btn { display: inline-flex; align-items: center; gap: 7px; margin-left: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--hair-2); background: var(--card-2);
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); cursor: pointer; white-space: nowrap; }
.acct-btn:hover { border-color: var(--ink); }
.acct-btn.in { text-transform: none; letter-spacing: 0; padding: 4px 12px 4px 4px; }
.acct-dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #f6d488; font-family: var(--slab); font-size: 13px; }
.acct-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; font-family: var(--sans); font-size: 13.5px; font-weight: 600; }
dialog.acct-box { width: min(420px, 92vw); padding: 30px 30px 24px; border: 0; border-radius: 22px; background: var(--card-2); box-shadow: var(--sh-3); color: var(--ink); }
dialog.acct-box::backdrop { background: rgba(20, 17, 15, .45); backdrop-filter: blur(3px); }
.acct-box h2 { margin: 2px 0 6px; font-family: var(--slab); font-size: 30px; }
.acct-box .rip-x { color: var(--ink); border-color: var(--hair-2); background: transparent; top: 14px; right: 14px; }
.acct-sub { margin: 0 0 18px; font-size: 14px; color: var(--ink-2); }
#acct-form { display: grid; gap: 12px; }
#acct-form label { display: grid; gap: 5px; font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
#acct-form input:not([type=checkbox]) { padding: 11px 14px; border: 1px solid var(--hair-2); border-radius: 12px; background: #fff; font: inherit; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--ink); }
#acct-form .acct-bring { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 12px; background: #fff6dc;
  font-family: var(--sans); font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-2); }
.acct-err { margin: 0; padding: 8px 12px; border-radius: 10px; background: #fde3df; color: #8f241e; font-size: 13px; }
.acct-switch { margin: 16px 0 4px; font-size: 13.5px; text-align: center; }
.acct-switch a { color: var(--red); font-weight: 600; }
.acct-fine { margin: 8px 0 0; font-size: 11.5px; color: var(--muted); text-align: center; }
.acct-row { display: flex; gap: 10px; justify-content: flex-end; }
@media (max-width: 760px) { .acct-name { display: none; } .acct-btn.in { padding-right: 4px; } }

/* the coin pill and the account button share the header's right corner */
.mh-right { display: flex; align-items: center; gap: 8px; justify-self: end; align-self: center; margin-bottom: 10px; }
.mh-right .coin-pill { margin-bottom: 0; }
.mh-right .acct-btn { margin-left: 0; }


/* sign-in: email / Google toggle and the code step */
.acct-method { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 16px; }
.acct-method button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.g-logo { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); color: #fff; font: 700 11px/1 var(--sans); }
.acct-google { display: grid; gap: 12px; justify-items: center; }
.acct-google #acct-form { width: 100%; }
.acct-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--paper); font-size: 13px; color: var(--ink-2); }
.acct-note code { font-family: var(--mono); font-size: 12px; }
.acct-code { width: 100%; padding: 12px; border: 1px solid var(--hair-2); border-radius: 12px; background: #fff; text-align: center;
  font-family: var(--mono); font-size: 30px; font-weight: 700; letter-spacing: .4em; color: var(--ink); }
.acct-err.ok { background: #e6efe5; color: var(--green); }
.acct-mail { margin: -2px 0 10px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

/* ---------------------------------------------------------------- the welcome tour */
.tour-btn { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--hair-2); background: var(--card-2);
  font-family: var(--slab); font-size: 16px; font-weight: 700; color: var(--ink); cursor: pointer; }
.tour-btn:hover { border-color: var(--ink); }
dialog.intro { width: min(860px, 94vw); padding: 0; border: 0; border-radius: 26px; background: var(--card-2); color: var(--ink); box-shadow: var(--sh-3); overflow: hidden; }
dialog.intro::backdrop { background: rgba(20, 17, 15, .55); backdrop-filter: blur(4px); }
.intro-skip { position: absolute; top: 16px; right: 18px; z-index: 2; border: 0; background: none; font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.intro-skip:hover { color: var(--ink); }
.intro-slide { display: grid; grid-template-columns: 300px 1fr; min-height: 340px; animation: intro-in .45s var(--ease) both; }
@keyframes intro-in { from { opacity: 0; transform: translateX(18px); } }
.intro-art { position: relative; display: grid; place-items: center; padding: 34px;
  background: radial-gradient(circle at 50% 45%, #fff6dc, transparent 65%), repeating-linear-gradient(0deg, rgba(29, 26, 22, .04) 0 1px, transparent 1px 22px), var(--paper); }
.intro-art svg { width: 200px; height: 200px; filter: drop-shadow(0 14px 18px rgba(29, 26, 22, .22)); animation: intro-float 4s ease-in-out infinite; }
@keyframes intro-float { 50% { transform: translateY(-6px) rotate(-1.5deg); } }
.intro-num { position: absolute; left: 22px; bottom: 16px; font-family: var(--slab); font-size: 44px; font-weight: 700; color: rgba(29, 26, 22, .12); }
.intro-text { display: grid; align-content: center; gap: 4px; padding: 44px 44px 30px 38px; }
.intro-text h2 { margin: 0 0 8px; font-family: var(--slab); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.02; }
.intro-text > p:not(.eyebrow) { margin: 0 0 14px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.intro-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.intro-chips span { padding: 4px 11px; border-radius: 999px; background: #fff2cf; color: #8a5f14; font-family: var(--mono); font-size: 11.5px; font-weight: 600; }
.intro-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 26px 20px; border-top: 1px solid var(--hair); flex-wrap: wrap; }
.intro-dots { display: flex; gap: 7px; }
.intro-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--hair-2); cursor: pointer; transition: width .25s var(--ease); }
.intro-dots button.on { width: 26px; border-radius: 5px; background: var(--red); }
.intro-btns { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 720px) { .intro-slide { grid-template-columns: 1fr; } .intro-art { padding: 20px; } .intro-art svg { width: 120px; height: 120px; } .intro-text { padding: 20px 22px; } }
