/* Simulation GM. Layout: a front-office desk. Player pool on the left, the cap sheet (the ledger gauge) pinned on the right. */
:root {
  --bg: #F2F5F1; --surface: #FFFFFF; --sunk: #E8EDE8; --ink: #12201B; --muted: #55655E; --line: #D3DBD5;
  --brand: #0F5C4A; --brand-ink: #FFFFFF; --brass: #9A6B00; --brass-fill: #E0A526;
  --good: #1B7A3E; --warn: #A35F00; --bad: #B3261E; --bad-soft: #FBE9E7; --good-soft: #E3F3E8; --warn-soft: #FBF0DA;
  --display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1411; --surface: #151F1B; --sunk: #1C2823; --ink: #E7EEEA; --muted: #94A49C; --line: #2B3A33;
    --brand: #43B893; --brand-ink: #06241C; --brass: #E0A526; --brass-fill: #E0A526;
    --good: #5FCB8C; --warn: #F0B14A; --bad: #F2857C; --bad-soft: #3A1D1A; --good-soft: #17301F; --warn-soft: #33270F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1411; --surface: #151F1B; --sunk: #1C2823; --ink: #E7EEEA; --muted: #94A49C; --line: #2B3A33;
  --brand: #43B893; --brand-ink: #06241C; --brass: #E0A526; --brass-fill: #E0A526;
  --good: #5FCB8C; --warn: #F0B14A; --bad: #F2857C; --bad-soft: #3A1D1A; --good-soft: #17301F; --warn-soft: #33270F;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--body); }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: .05em; }
p { margin: 0; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.wrap { max-width: 1260px; margin: 0 auto; padding-inline: 16px; }
:focus-visible { outline: 2px solid var(--brass-fill); outline-offset: 2px; }

/* header */
.top { background: var(--brand); color: var(--brand-ink); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; padding-block: 8px; }
.mark { font-family: var(--display); font-weight: 900; font-size: 1.55rem; letter-spacing: .03em; text-transform: uppercase; background: none; border: 0; color: inherit; cursor: pointer; padding: 0; line-height: 1; }
.mark span { color: var(--brass-fill); }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; }
.tab { background: none; border: 0; color: inherit; opacity: .78; padding: 6px 12px; border-radius: var(--r); cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; }
.tab:hover { opacity: 1; }
.tab[aria-current="true"] { opacity: 1; background: color-mix(in srgb, var(--brand-ink) 16%, transparent); }
.top .lg { margin-left: auto; font-size: .82rem; opacity: .85; }

main { padding-block: 20px 48px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack > * { min-width: 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }

/* buttons and controls */
.btn { border: 1px solid var(--line); background: var(--surface); padding: 7px 13px; border-radius: var(--r); cursor: pointer; font-weight: 600; white-space: nowrap; }
.btn:hover:not(:disabled) { border-color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover:not(:disabled) { filter: brightness(1.1); }
.btn.sm { padding: 3px 9px; font-size: .82rem; }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.field { border: 1px solid var(--line); background: var(--surface); padding: 7px 10px; border-radius: var(--r); min-width: 0; }
label.lab { display: flex; flex-direction: column; gap: 3px; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; min-width: 0; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 4px 10px; border-radius: 99px; cursor: pointer; font-size: .82rem; font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* home */
.hero { padding-block: 18px 6px; display: flex; flex-direction: column; gap: 10px; max-width: 62ch; }
.hero p { font-size: 1.08rem; color: var(--muted); }
.leagues { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.league { border: 1px solid var(--line); background: var(--surface) center/cover no-repeat; border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 8px; text-align: left; min-height: 170px; cursor: pointer; }
.league.has-art { color: #fff; border-color: transparent; }
.league.has-art .muted { color: rgba(255, 255, 255, .85); }
.league:disabled { cursor: default; opacity: .72; }
.league:not(:disabled):hover { border-color: var(--brand); }
.league h2 { font-size: 2rem; }
.league .go { margin-top: auto; font-weight: 700; color: var(--brand); }
.league.has-art .go { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; counter-reset: s; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; border-top: 3px solid var(--brand); padding-top: 8px; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--brass); display: block; line-height: 1; }

/* build */
.formats { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 10px 14px; }
.desk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 20px; align-items: start; }
@media (max-width: 960px) { .desk { grid-template-columns: minmax(0, 1fr); } .sheet { order: -1; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; min-width: 0; }
.sheet > * { flex-shrink: 0; }
.sheet { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 60px); max-height: calc(100vh - 76px); overflow: auto; }
@media (max-width: 960px) { .sheet { position: static; max-height: none; } }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; align-items: end; }
.filters .wide { grid-column: 1 / -1; }
.prow { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px 150px 92px 76px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.prow.head { border: 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding-bottom: 4px; }
.prow .nm { min-width: 0; }
.prow .nm button { background: none; border: 0; padding: 0; font-weight: 700; cursor: pointer; text-align: left; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.prow .nm button:hover { color: var(--brand); text-decoration: underline; }
.prow .sal { text-align: right; }
.prow .why { grid-column: 2 / -1; font-size: .78rem; color: var(--muted); margin-top: -6px; }
@media (max-width: 720px) {
  .prow { grid-template-columns: 44px minmax(0, 1fr) auto; row-gap: 4px; }
  .prow .subs { display: none; }
  .prow .sal { grid-column: 2; text-align: left; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .prow .sal br { display: none; }
  .prow .act { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .prow .ovr { grid-column: 1; grid-row: 2; font-size: 1.1rem; }
  .prow .why { grid-column: 1 / -1; margin-top: 0; }
  .prow.head { display: none; }
}
.av { width: 44px; height: 44px; border-radius: 50%; background: var(--sunk); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1rem; color: var(--muted); overflow: hidden; border: 2px solid var(--tc, var(--line)); flex: none; }
.av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.av.lg { width: 120px; height: 120px; font-size: 2.4rem; border-width: 3px; }
.ovr { font-family: var(--display); font-weight: 800; font-size: 1.35rem; text-align: center; border-radius: 4px; padding: 2px 0; background: var(--sunk); line-height: 1.2; }
.ovr.t1 { background: var(--brass-fill); color: #241800; }
.ovr.t2 { background: var(--brand); color: var(--brand-ink); }
.ovr.t3 { background: color-mix(in srgb, var(--brand) 22%, var(--surface)); }
.subs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.subs span { font-size: .68rem; text-align: center; color: var(--muted); line-height: 1.15; }
.subs b { display: block; font-family: var(--mono); font-size: .8rem; color: var(--ink); font-weight: 500; }
.tag { display: inline-block; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 1px 6px; border-radius: 3px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag.SUPERMAX, .tag.MAX { border-color: var(--brass); color: var(--brass); }
.tag.ROOKIE { border-color: var(--brand); color: var(--brand); }

/* cap sheet */
.gauge { position: relative; height: 26px; background: var(--sunk); border-radius: 3px; margin: 26px 0 26px; }
.gauge .fill { position: absolute; inset: 0 auto 0 0; background: var(--brand); border-radius: 3px 0 0 3px; max-width: 100%; transition: width .25s; }
.gauge .fill.over { background: var(--bad); }
.gauge .fill.taxed { background: var(--brass-fill); }
.gauge .tick { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--ink); }
.gauge .tick span { position: absolute; left: 50%; transform: translateX(-50%); font-size: .64rem; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; color: var(--muted); font-weight: 700; }
.gauge .tick.up span { bottom: 100%; margin-bottom: 1px; }
.gauge .tick.dn span { top: 100%; margin-top: 1px; }
.gauge .tick.r span { left: auto; right: 0; transform: none; }
.gauge .tick.l span { left: 0; transform: none; }
.gauge .tick.limit { background: var(--bad); width: 3px; }
@media (prefers-reduced-motion: reduce) { .gauge .fill { transition: none; } }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.kv div { min-width: 0; }
.kv dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-family: var(--mono); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
dl { margin: 0; }
.note { padding: 8px 10px; border-radius: var(--r); font-size: .86rem; }
.note.bad { background: var(--bad-soft); color: var(--bad); }
.note.good { background: var(--good-soft); color: var(--good); }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.rlist { list-style: none; padding: 0; margin: 0; }
.rlist li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 5px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.rlist li .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rlist .o { font-family: var(--display); font-weight: 800; text-align: center; }
.rlist .x { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 1.1rem; line-height: 1; padding: 2px 6px; border-radius: 4px; }
.rlist .x:hover { color: var(--bad); background: var(--bad-soft); }
.rlist .empty { display: block; color: var(--muted); font-size: .86rem; }
.segs { display: flex; flex-wrap: wrap; gap: 4px; }

/* lineup */
.two { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: minmax(0, 1fr); } }
.slot { display: grid; grid-template-columns: 40px minmax(0, 1fr) 48px 56px; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.slot .pos { font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--brass); }
.slot select { width: 100%; }
.slot .mv { display: flex; gap: 2px; justify-content: flex-end; }
.meter { display: grid; grid-template-columns: 96px minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: .88rem; }
.meter i { display: block; height: 9px; background: var(--sunk); border-radius: 2px; position: relative; overflow: hidden; }
.meter i b { position: absolute; inset: 0 auto 0 0; background: var(--brand); }

/* season */
.scorebar { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-end; }
.big { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 8vw, 4.2rem); line-height: .95; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
th, td { padding: 5px 8px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
th { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
th:first-child, td:first-child, td.l, th.l { text-align: left; }
tr.me td { background: color-mix(in srgb, var(--brass-fill) 20%, transparent); font-weight: 700; }
tr.cut td { border-bottom: 2px solid var(--ink); }
tr.cut2 td { border-bottom: 2px dashed var(--muted); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--tc, var(--muted)); margin-right: 6px; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.game { border: 1px solid var(--line); border-left: 4px solid var(--bad); background: var(--surface); border-radius: 4px; padding: 5px 8px; text-align: left; cursor: pointer; font-size: .84rem; }
.game.w { border-left-color: var(--good); }
.game:hover { border-color: var(--brand); }
.game b { font-family: var(--mono); font-weight: 500; }
.bracket { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.series { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); margin-top: 6px; }
.series div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 8px; font-size: .88rem; }
.series div + div { border-top: 1px solid var(--line); }
.series .win { font-weight: 800; }
.series .me { background: color-mix(in srgb, var(--brass-fill) 20%, transparent); }
.champ { background: var(--brand); color: var(--brand-ink); border-radius: var(--r); padding: 18px; }
.champ .big { color: var(--brass-fill); }
.leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.leaders ol { margin: 6px 0 0; padding: 0; list-style: none; }
.leaders li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-top: 1px solid var(--line); font-size: .88rem; }

/* modal */
.veil { position: fixed; inset: 0; background: rgba(8, 14, 12, .62); z-index: 50; display: grid; grid-template-columns: minmax(0, 1fr); place-items: start center; padding: 5vh 16px; overflow: auto; }
.modal { min-width: 0; background: var(--surface); border-radius: var(--r); padding: 18px; width: min(760px, 100%); border: 1px solid var(--line); }
.modal .close { float: right; }
.profile { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 10px; }
.prose ul { margin: 0; padding-left: 20px; }
.prose li { margin: 3px 0; }
footer { border-top: 1px solid var(--line); padding-block: 16px 28px; color: var(--muted); font-size: .8rem; }

/* sortable headers */
.hsort { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; white-space: nowrap; }
.hsort:hover, .hsort.on { color: var(--brand); }
.prow.head .subs span { font-size: inherit; }

/* your roster: shaded so it is easy to find */
.myroster { background: color-mix(in srgb, var(--brass-fill) 16%, var(--surface)); border: 2px solid var(--brass-fill); border-radius: var(--r); overflow: hidden; }
.mr-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--brand); color: var(--brand-ink); padding: 7px 12px; font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: .05em; text-transform: uppercase; }
.mr-head .num { font-size: .95rem; font-weight: 500; }
.mr-team { padding: 8px 12px 4px; font-weight: 700; }
.mr-sub { display: flex; justify-content: space-between; padding: 8px 12px 2px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); border-top: 2px solid var(--brass-fill); margin-top: 6px; }
.myroster .rlist { padding: 0 12px 6px; }
.myroster .rlist li { border-top-color: color-mix(in srgb, var(--brass-fill) 45%, var(--line)); }
.myroster .rlist li:first-child { border-top: 0; }
.prow.mine { background: color-mix(in srgb, var(--brass-fill) 16%, var(--surface)); box-shadow: inset 4px 0 0 var(--brass-fill); margin-inline: -8px; padding-inline: 8px; border-radius: 4px; }
.onros { color: var(--brass); font-weight: 700; }

/* player card: outlook and career */
.outlook { background: var(--sunk); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.pjs { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pj { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 62px; }
.pj .ovr { min-width: 48px; }
tr.career td { font-weight: 700; border-top: 2px solid var(--ink); border-bottom: 0; }

/* leagues without sub-rating columns show a one-line stat summary instead */
.prow.wide .subs.line, .prow.head.wide .subs.line { display: block; font-size: .8rem; color: var(--muted); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow.head.wide .subs.line { font-size: inherit; }
.game.t { border-left-color: var(--muted); }
.slot.dc { grid-template-columns: 64px minmax(0, 1fr) 48px 76px; }
.slot.dc .pos { font-family: var(--body); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.plink { background: none; border: 0; padding: 0; font-weight: 700; cursor: pointer; text-align: left; }
.plink:hover { color: var(--brand); text-decoration: underline; }
@media (max-width: 720px) { .prow.wide .subs.line { display: block; grid-column: 2 / -1; grid-row: 3; white-space: normal; } .prow.head.wide { display: none; } }

.prow.wide { grid-template-columns: 44px minmax(0, 1.25fr) 44px minmax(0, 1fr) 132px 76px; }
@media (max-width: 720px) { .prow.wide { grid-template-columns: 44px minmax(0, 1fr) auto; } }

/* trade screen */
.tcols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 640px) { .tcols { grid-template-columns: minmax(0, 1fr); } }
.tlist { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); }
.trow { display: grid; grid-template-columns: 18px 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; border-top: 1px solid var(--line); font-size: .88rem; cursor: pointer; }
.trow:first-child { border-top: 0; }
.trow .o { font-family: var(--display); font-weight: 800; text-align: center; }
.trow .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow:has(input:checked) { background: color-mix(in srgb, var(--brass-fill) 22%, transparent); }

.trow.toobig { opacity: .42; }
td.l, th.l { text-align: left; }
tr.muted td { color: var(--muted); }

/* header, roster banner and champion card keep the deep green in both themes */
:root { --head: #0F5C4A; --head-ink: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --head: #0B3A30; --head-ink: #EAF3EF; } }
:root[data-theme="dark"] { --head: #0B3A30; --head-ink: #EAF3EF; }
.top, .mr-head, .champ { background: var(--head); color: var(--head-ink); }
.tab[aria-current="true"] { background: color-mix(in srgb, var(--head-ink) 16%, transparent); }
@media (max-width: 640px) { .tab { padding: 5px 8px; font-size: .98rem; } .mark { font-size: 1.35rem; } }

/* ad slots: reserved sizes so nothing jumps when an ad loads. Hidden entirely unless ads are switched on (see js/ads.js). */
.ad { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 728px; min-height: 90px; margin-inline: auto; border: 1px dashed var(--line); border-radius: var(--r); background: var(--sunk); color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; overflow: hidden; }
.ad-pool { margin-block: 10px; }
#ad-sticky { display: none; }
@media (max-width: 760px) {
  .ad { max-width: 320px; min-height: 100px; }
  #ad-sticky:not([hidden]) { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding: 4px 0 calc(4px + env(safe-area-inset-bottom, 0px)); }
  #ad-sticky .ad { min-height: 50px; border: 0; border-radius: 0; }
  body.has-sticky-ad { padding-bottom: 64px; }
}

/* phone polish */
.check { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.check input { margin-top: 3px; flex: 0 0 auto; }
.injrow { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.injrow .pos { font-weight: 700; color: var(--muted); }
.nm-abbr { display: none; }
@media (max-width: 560px) {
  .hm { display: none; }
  .nm-full { display: none; } .nm-abbr { display: inline; }
}
@media (max-width: 640px) {
  .top .wrap { gap: 2px 12px; padding-block: 6px; }
  .top .lg { order: 2; margin-left: auto; }
  .tabs { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; flex: 0 0 auto; }
}
@media (max-width: 560px) { .table-wrap table { font-size: .86rem; } .table-wrap td .ovr { font-size: 1rem; padding: 1px 6px; } .table-wrap td .btn.sm { padding: 3px 8px; } }

/* first-visit checklist */
.guide { border-left: 4px solid var(--brass-fill); }
.guide ol { margin: 8px 0 0; padding-left: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 18px; counter-reset: g; }
.guide li { counter-increment: g; position: relative; padding-left: 30px; font-size: .9rem; }
.guide li::before { content: counter(g); position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: var(--muted); }
.guide li.done::before { content: "\2713"; background: var(--good); border-color: var(--good); color: #fff; }
.guide li.done b { text-decoration: line-through; color: var(--muted); }
.tlist.picks { max-height: 150px; }
a.btn { text-decoration: none; display: inline-block; }

/* the verdict */
.verdict { display: flex; gap: 16px; align-items: center; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.18); }
.vgrade { flex: 0 0 auto; width: 96px; height: 96px; border-radius: 50%; border: 4px solid var(--brass-fill); display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-5deg); }
.vgrade span { font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brass-fill); font-weight: 800; }
.vgrade b { font-family: var(--display, inherit); font-size: 2.6rem; line-height: 1; font-weight: 900; }
.vhead { font-family: var(--display, inherit); font-weight: 900; text-transform: uppercase; font-size: clamp(1.7rem, 5vw, 2.8rem); line-height: 1; color: var(--brass-fill); }
.vline { font-style: italic; margin-top: 6px; }
.vjob { margin-top: 6px; opacity: .85; }
.champ .big.sm2 { font-size: clamp(1.4rem, 4vw, 2rem); }
.tease { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tease span { flex: 1 1 100%; }
.tease b { font-family: var(--display, inherit); text-transform: uppercase; letter-spacing: .02em; border: 2px solid currentColor; border-radius: 4px; padding: 2px 10px; transform: rotate(-1.5deg); }
.tease b:nth-of-type(even) { transform: rotate(1.2deg); }
@media (max-width: 520px) { .vgrade { width: 76px; height: 76px; } .vgrade b { font-size: 2rem; } }
a.btn, a.btn:visited { color: var(--ink); }
a.btn.primary, a.btn.primary:visited { color: var(--brand-ink); }
#share-text { font: inherit; font-size: .9rem; width: 100%; resize: vertical; }
@media (max-width: 520px) { .vgrade span { font-size: .5rem; letter-spacing: .04em; } }

.socials { gap: 8px; }
.btn.social { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; }
.btn.social svg { flex: none; }
.btn.social:hover { background: var(--ink); color: var(--surface); border-color: var(--ink); }

.series.click { cursor: pointer; }
.series.click:hover, .series.click:focus-visible { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); outline: none; }
