/* Stats for Nerds. Dark navy and charcoal, restrained gold, tabular numerals.
   Everything is scoped to #v-stats so nothing leaks into other views. */
#v-stats {
  --sn-bg: #0b1220;
  --sn-card: #111a2b;
  --sn-card2: #0e1727;
  --sn-line: rgba(255, 255, 255, 0.08);
  --sn-line2: rgba(255, 255, 255, 0.14);
  --sn-mute: #8a96ab;
  --sn-text: #e8edf6;
  --sn-gold: #d9b45a;
  --sn-up: #7fd3a6;
  --sn-dn: #e68a8a;
  color: var(--sn-text);
}
#v-stats .sn-page { max-width: 1180px; margin: 0 auto; padding: 8px 0 56px; }
#v-stats .sn-mute { color: var(--sn-mute); }
#v-stats .sn-small { font-size: 12px; }
#v-stats .sn-num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
#v-stats .sn-strong { font-weight: 750; color: var(--sn-text); }
#v-stats .sn-na { color: var(--sn-mute); }
#v-stats .sn-up { color: var(--sn-up); font-variant-numeric: tabular-nums; }
#v-stats .sn-dn { color: var(--sn-dn); font-variant-numeric: tabular-nums; }
#v-stats .sn-flat { color: var(--sn-mute); font-variant-numeric: tabular-nums; }
#v-stats .sn-name { white-space: nowrap; }

/* Hero */
#v-stats .sn-hero { padding: 26px 0 16px; }
#v-stats .sn-kicker { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--sn-gold); font-weight: 700; }
#v-stats h1 { font-size: clamp(26px, 4vw, 38px); margin: 6px 0 8px; letter-spacing: -.01em; font-weight: 800; }
#v-stats .sn-sub { color: var(--sn-mute); font-size: 14px; line-height: 1.55; margin: 4px 0 0; max-width: 760px; }
#v-stats .sn-meta { color: var(--sn-mute); font-size: 13px; margin: 10px 0 0; max-width: 760px; }

/* Jump menu, grouped by chapter */
#v-stats .sn-toc { position: sticky; top: 0; z-index: 20; display: flex; gap: 18px; overflow-x: auto; padding: 10px 0; margin: 0 0 8px; background: rgba(11, 18, 32, 0.95); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-bottom: 1px solid var(--sn-line); scrollbar-width: none; }
#v-stats .sn-toc::-webkit-scrollbar { display: none; }
#v-stats .sn-tocg { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
#v-stats .sn-tocn { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--sn-mute); font-weight: 700; margin-right: 4px; white-space: nowrap; }
#v-stats .sn-chip { appearance: none; background: transparent; color: var(--sn-mute); border: 1px solid var(--sn-line); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
#v-stats .sn-chip:hover { color: var(--sn-text); border-color: var(--sn-line2); }
#v-stats .sn-chip.on { color: #111; background: var(--sn-gold); border-color: var(--sn-gold); font-weight: 700; }
#v-stats .sn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
#v-stats :focus-visible { outline: 2px solid var(--sn-gold); outline-offset: 2px; }
#v-stats [id^="sn-"] { scroll-margin-top: 80px; }

/* Chapters */
#v-stats .sn-chapter { display: flex; align-items: center; gap: 12px; margin: 40px 0 6px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--sn-text); }
#v-stats .sn-chapter span { color: var(--sn-gold); font-variant-numeric: tabular-nums; }
#v-stats .sn-chapter::after { content: ""; flex: 1; height: 1px; background: var(--sn-line); }

/* Section shell */
#v-stats .sn-sec { background: var(--sn-card); border: 1px solid var(--sn-line); border-radius: 14px; padding: 20px; margin-top: 14px; }
#v-stats .sn-shead { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--sn-line); }
#v-stats .sn-stitle { display: flex; gap: 12px; align-items: flex-start; min-width: 0; flex: 1 1 360px; }
#v-stats .sn-stitle h2 { font-size: 19px; margin: 0; font-weight: 750; }
#v-stats .sn-stitle .sn-sub { margin-top: 4px; }
#v-stats .sn-badge { flex: 0 0 auto; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--sn-gold); border: 1px solid rgba(217, 180, 90, 0.35); border-radius: 8px; padding: 5px 7px; font-variant-numeric: tabular-nums; }
#v-stats .sn-toolbar { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
#v-stats .sn-subhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 10px; }
#v-stats .sn-subhead h3 { margin: 0; }
#v-stats h3 { font-size: 12px; margin: 0 0 10px; color: var(--sn-mute); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }

/* Definitions: ? button and its pop-over */
#v-stats .sn-qw { position: relative; display: inline-block; vertical-align: middle; margin-left: 4px; }
#v-stats .sn-q { appearance: none; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--sn-line2); background: transparent; color: var(--sn-mute); font: inherit; font-size: 10px; font-weight: 700; line-height: 1; padding: 0; cursor: pointer; text-transform: none; letter-spacing: 0; vertical-align: 1px; }
#v-stats .sn-q:hover, #v-stats .sn-q[aria-expanded="true"] { color: #111; background: var(--sn-gold); border-color: var(--sn-gold); }
#v-stats .sn-pop { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: min(280px, 80vw); background: #0a1322; border: 1px solid var(--sn-line2); border-radius: 10px; padding: 11px 13px; font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--sn-text); text-transform: none; letter-spacing: 0; white-space: normal; }
#v-stats .sn-pop strong { display: block; color: var(--sn-gold); font-size: 12px; margin-bottom: 4px; }
#v-stats th .sn-qw { margin-left: 2px; }
#v-stats th .sn-pop { left: auto; right: 0; }
#v-stats .sn-pop[hidden] { display: none; }

/* Hero stat strip sits in the cards */
#v-stats .sn-fgroup { margin-top: 18px; }
#v-stats .sn-fgroup:first-child { margin-top: 0; }
#v-stats .sn-fgroup h3 { margin-bottom: 8px; }
#v-stats .sn-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
#v-stats .sn-fact { background: var(--sn-card2); border: 1px solid var(--sn-line); border-radius: 12px; padding: 13px 14px; min-width: 0; }
#v-stats .sn-fk { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--sn-mute); font-weight: 650; }
#v-stats .sn-fv { font-size: 21px; font-weight: 800; margin: 6px 0 6px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
#v-stats .sn-fv2 { font-size: 13px; font-weight: 650; color: var(--sn-mute); margin-left: 6px; }
#v-stats .sn-fd { font-size: 13px; color: var(--sn-mute); line-height: 1.45; }

/* Two-column layout */
#v-stats .sn-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { #v-stats .sn-two { grid-template-columns: 1fr; } }
#v-stats .sn-card { background: var(--sn-card2); border: 1px solid var(--sn-line); border-radius: 12px; padding: 14px; min-width: 0; }
#v-stats .sn-bar { margin-bottom: 14px; }
#v-stats .sn-bl { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-bottom: 6px; }
#v-stats .sn-track { height: 8px; background: rgba(255, 255, 255, 0.06); border-radius: 999px; overflow: hidden; }
#v-stats .sn-track i { display: block; height: 100%; background: linear-gradient(90deg, #6f7f99, var(--sn-gold)); border-radius: 999px; }
#v-stats .sn-divgrid { margin-bottom: 4px; }
#v-stats .sn-divcard { border-left: 3px solid #6f7f99; }
#v-stats .sn-div-elite { border-left-color: #d9b45a; }
#v-stats .sn-div-second { border-left-color: #4ade80; }
#v-stats .sn-div-third { border-left-color: #60a5fa; }

/* Charts and tables */
#v-stats .sn-chartwrap { background: var(--sn-card2); border: 1px solid var(--sn-line); border-radius: 12px; padding: 8px 10px 4px; margin-bottom: 14px; }
#v-stats .sn-chart { width: 100%; height: auto; display: block; }
#v-stats .sn-grid { stroke: var(--sn-line); stroke-width: 1; }
#v-stats .sn-ax { fill: var(--sn-mute); font-size: 11px; font-variant-numeric: tabular-nums; }
#v-stats .sn-line { fill: none; stroke: #6f7f99; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
#v-stats .sn-line-on { stroke: var(--sn-gold); stroke-width: 2.6; }
#v-stats .sn-lbl { fill: var(--sn-mute); font-size: 11px; }
#v-stats .sn-tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#v-stats table.sn-t { width: 100%; border-collapse: collapse; font-size: 14px; }
#v-stats .sn-t th { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--sn-mute); font-weight: 650; text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--sn-line2); white-space: nowrap; }
#v-stats .sn-t td { padding: 9px 10px; border-bottom: 1px solid var(--sn-line); }
#v-stats .sn-t tbody tr:hover td { background: rgba(255, 255, 255, 0.025); }
#v-stats .sn-t th.sn-num { text-align: right; }
#v-stats .sn-league-row td { background: rgba(217, 180, 90, 0.06); }
#v-stats .sn-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: #6f7f99; vertical-align: middle; }
#v-stats .sn-dot[data-div="Elite"] { background: #d9b45a; }
#v-stats .sn-dot[data-div="Second"] { background: #4ade80; }
#v-stats .sn-dot[data-div="Third"] { background: #60a5fa; }
#v-stats .sn-dn-name[data-div="Elite"] { color: #d9b45a; }
#v-stats .sn-dn-name[data-div="Second"] { color: #4ade80; }
#v-stats .sn-dn-name[data-div="Third"] { color: #60a5fa; }
#v-stats .sn-sort { appearance: none; background: none; border: 0; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; padding: 0; }
#v-stats .sn-sort.on { color: var(--sn-gold); }
#v-stats .sn-rk { display: inline-block; margin-left: 6px; font-size: 11px; color: var(--sn-mute); }
#v-stats .sn-hot1 { background: rgba(217, 180, 90, 0.08); }
#v-stats .sn-hot2 { background: rgba(217, 180, 90, 0.18); }
#v-stats .sn-cold { color: var(--sn-dn); }
#v-stats .sn-top td { background: rgba(217, 180, 90, 0.07); }
#v-stats .sn-foot td { border-top: 1px solid rgba(217, 180, 90, 0.4); font-weight: 700; }
#v-stats .sn-grid-t td.sn-num { font-size: 13px; }
#v-stats .sn-barcell { width: 32%; min-width: 120px; }
#v-stats details.sn-det { margin-top: 16px; }
#v-stats details.sn-det summary { cursor: pointer; color: var(--sn-gold); font-size: 14px; padding: 6px 0; }

@media (max-width: 640px) {
  #v-stats .sn-sec { padding: 14px; }
  #v-stats .sn-facts { grid-template-columns: 1fr 1fr; }
  #v-stats .sn-fv { font-size: 18px; }
  #v-stats .sn-toc { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { #v-stats * { transition: none !important; animation: none !important; } }

/* Division tab and sortable headers */
#v-stats .sn-scopewrap { margin: 14px 0 0; }
#v-stats .sn-scope { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--sn-card2); border: 1px solid var(--sn-line); border-radius: 12px; }
#v-stats .sn-tab { appearance: none; display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 0; color: var(--sn-mute); font: inherit; font-size: 14px; font-weight: 650; padding: 8px 14px; border-radius: 9px; cursor: pointer; }
#v-stats .sn-tab:hover { color: var(--sn-text); }
#v-stats .sn-tab.on { background: var(--sn-gold); color: #111; }
#v-stats .sn-scopenote { margin: 8px 2px 0; }
#v-stats th.sn-thsort { cursor: pointer; user-select: none; }
#v-stats th.sn-thsort:hover { color: var(--sn-text); }
#v-stats th.sn-thsort[aria-sort="ascending"]::after { content: " ▲"; color: var(--sn-gold); font-size: 9px; }
#v-stats th.sn-thsort[aria-sort="descending"]::after { content: " ▼"; color: var(--sn-gold); font-size: 9px; }
#v-stats th.sn-thsort[aria-sort="none"]::after { content: " ↕"; color: var(--sn-line2); font-size: 11px; }

/* Versus all: franchise picker */
#v-stats .sn-selwrap { display: inline-flex; align-items: center; gap: 10px; }
#v-stats .sn-select { appearance: none; background: var(--sn-card2); color: var(--sn-text); border: 1px solid var(--sn-line2); border-radius: 9px; padding: 8px 32px 8px 12px; font: inherit; font-size: 14px; min-width: 240px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--sn-mute) 50%), linear-gradient(135deg, var(--sn-mute) 50%, transparent 50%); background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
#v-stats .sn-select:focus-visible { outline: 2px solid var(--sn-gold); outline-offset: 2px; }

/* Sub-pages */
#v-stats .sn-pagetabs { margin: 12px 0 6px; }
#v-stats .sn-pagehead { margin: 18px 0 6px; }
#v-stats .sn-pagehead h2 { margin: 0 0 4px; }
#v-stats .sn-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 18px; }
#v-stats .sn-pcard { appearance: none; text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 14px; border-radius: 12px; border: 1px solid rgba(201,162,39,.18); background: rgba(255,255,255,.02); color: inherit; font: inherit; cursor: pointer; }
#v-stats .sn-pcard:hover, #v-stats .sn-pcard:focus-visible { border-color: rgba(201,162,39,.5); outline: none; }
#v-stats .sn-pcard-k { font-weight: 700; font-size: 16px; }
#v-stats .sn-pcard-d { color: var(--sn-mute); font-size: 13px; line-height: 1.4; }
#v-stats .sn-pcard-go { margin-top: auto; color: var(--sn-gold, #c9a227); font-size: 13px; font-weight: 650; }

/* Schedule swap summary */
#v-stats .sn-swsum { display: flex; gap: 28px; flex-wrap: wrap; margin: 10px 0 14px; }
#v-stats .sn-swsum > div { display: flex; flex-direction: column; gap: 2px; }
#v-stats .sn-swsum strong { font-size: 20px; font-variant-numeric: tabular-nums; }

/* Schedule crossing sheet */
#v-stats .sn-sheetwrap { overflow: auto; max-width: 100%; border: 1px solid rgba(201,162,39,.16); border-radius: 10px; margin: 6px 0 22px; background: #13171e; }
#v-stats .sn-sheet { border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; font-size: 13px; width: max-content; min-width: 100%; }
#v-stats .sn-sheet th, #v-stats .sn-sheet td { border-right: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); padding: 7px 9px; text-align: center; white-space: nowrap; }
#v-stats .sn-sheet thead th { position: sticky; top: 0; z-index: 2; background: #181c24; font-weight: 650; font-size: 12px; color: var(--sn-mute, #9aa3ad); max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
#v-stats .sn-sheet .sn-corner { position: sticky; left: 0; top: 0; z-index: 4; text-align: left; min-width: 190px; }
#v-stats .sn-sheet .sn-rowh { position: sticky; left: 0; z-index: 1; background: #181c24; text-align: left; font-weight: 650; min-width: 190px; }
#v-stats .sn-sheet .sn-rowh .sn-dot { margin-right: 8px; }
#v-stats .sn-sheet .sn-colh { min-width: 118px; }
#v-stats .sn-sheet .sn-cell { min-width: 118px; }
#v-stats .sn-sheet .sn-rec { font-weight: 600; }
#v-stats .sn-sheet .sn-diag { color: rgba(255,255,255,.18); background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 6px, transparent 6px 12px); }
#v-stats .sn-sheet .sn-empty { color: rgba(255,255,255,.2); }
#v-stats .sn-sheet .sn-totalh, #v-stats .sn-sheet .sn-totalc { position: sticky; right: 0; background: #181c24; border-left: 1px solid rgba(201,162,39,.25); min-width: 150px; }
#v-stats .sn-sheet .sn-totalc .sn-small { margin-left: 4px; }
#v-stats .sn-sheetnote { margin: 6px 0 2px; }

/* Schedule sheet: team colour and depth */
#v-stats .sn-sheetwrap { border-radius: 14px; border: 1px solid rgba(255,255,255,.07); background: linear-gradient(180deg, #161b23 0%, #10141a 100%); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 18px 36px -24px rgba(0,0,0,.8); }
#v-stats .sn-sheet thead th { background: linear-gradient(180deg, #1d232d 0%, #171c24 100%); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
#v-stats .sn-sheet .sn-colh { border-top: 3px solid var(--tc, #c9a227); padding-top: 10px; vertical-align: bottom; text-align: left; min-width: 124px; }
#v-stats .sn-sheet .sn-colname { display: block; margin-top: 6px; color: #e8ecf1; font-weight: 650; font-size: 12px; white-space: normal; line-height: 1.2; max-width: 120px; }
#v-stats .sn-crest { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 2px #0f131a, 0 0 0 3px var(--tc, #c9a227), 0 4px 10px -4px rgba(0,0,0,.7); background: #0f131a; }
#v-stats .sn-sheet .sn-corner { background: linear-gradient(180deg, #1d232d 0%, #171c24 100%); text-align: left; vertical-align: bottom; }
#v-stats .sn-corner span { display: block; }
#v-stats .sn-corner-sub { font-size: 11px; color: var(--sn-mute, #9aa3ad); font-weight: 500; margin-top: 2px; }
#v-stats .sn-sheet .sn-rowh { background: linear-gradient(90deg, color-mix(in srgb, var(--tc, #c9a227) 22%, #161b23) 0%, #161b23 70%); box-shadow: inset 4px 0 0 var(--tc, #c9a227); text-align: left; padding: 8px 12px 8px 14px; }
#v-stats .sn-rowhin { display: flex; align-items: center; gap: 10px; }
#v-stats .sn-crest-row { width: 26px; height: 26px; flex: 0 0 auto; }
#v-stats .sn-rowname { font-weight: 650; color: #e8ecf1; letter-spacing: .01em; }
#v-stats .sn-sheet tbody tr:nth-child(even) td:not(.sn-cell), #v-stats .sn-sheet tbody tr:nth-child(even) th.sn-rowh { filter: brightness(1.06); }
#v-stats .sn-sheet tbody tr:hover td, #v-stats .sn-sheet tbody tr:hover th { box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 -1px 0 rgba(255,255,255,.05); }
#v-stats .sn-sheet .sn-cell { position: relative; transition: background-color .15s ease; }
#v-stats .sn-sheet .sn-cell .sn-rec { display: block; font-weight: 650; color: #eef1f5; }
#v-stats .sn-sheet .sn-cell .sn-pct { display: block; font-size: 11px; color: var(--sn-mute, #9aa3ad); margin-top: 1px; }
#v-stats .sn-sheet .sn-cell.sn-lose { background: linear-gradient(180deg, rgba(255,255,255,.012), rgba(0,0,0,.14)); }
#v-stats .sn-sheet .sn-cell.sn-win .sn-rec { color: #f3dc8a; }
#v-stats .sn-sheet .sn-diag { background: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 6px, transparent 6px 12px), linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.28)); color: rgba(255,255,255,.22); }
#v-stats .sn-sheet .sn-empty { background: rgba(0,0,0,.2); }
#v-stats .sn-sheet .sn-totalh { vertical-align: bottom; }
#v-stats .sn-sheet .sn-totalc { background: linear-gradient(180deg, #171c24 0%, #12161c 100%); text-align: right; min-width: 170px; }
#v-stats .sn-sheet .sn-totalc .sn-rec { display: inline-block; font-weight: 700; color: #f3dc8a; margin-right: 8px; }
#v-stats .sn-sheet .sn-totalc .sn-pct { color: var(--sn-mute, #9aa3ad); font-size: 12px; }
#v-stats .sn-bar { display: block; height: 4px; border-radius: 2px; margin-top: 6px; background: linear-gradient(90deg, #c9a227 0 var(--w, 0%), rgba(255,255,255,.08) var(--w, 0%) 100%); }
@media (prefers-reduced-motion: reduce) { #v-stats .sn-sheet .sn-cell { transition: none; } }

/* ---- Depth pass: same language as the schedule sheet ---- */
#v-stats .sn-sec { background: linear-gradient(180deg, rgba(255,255,255,.035) 0%, rgba(255,255,255,0) 38%), var(--sn-card); border: 1px solid rgba(255,255,255,.07); border-radius: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 22px 40px -30px rgba(0,0,0,.85); padding: 22px 22px 18px; margin-bottom: 26px; }
#v-stats .sn-card { background: linear-gradient(180deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,0) 45%), var(--sn-card2); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 16px 30px -26px rgba(0,0,0,.8); }
#v-stats .sn-tw { border-radius: 12px; border: 1px solid rgba(255,255,255,.07); background: linear-gradient(180deg, #151c28 0%, #10161f 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); overflow: auto; }
#v-stats .sn-t { border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; width: 100%; }
#v-stats .sn-t th { position: sticky; top: 0; z-index: 2; background: linear-gradient(180deg, #1c2431 0%, #171e2a 100%); color: var(--sn-mute); font-size: 12px; font-weight: 650; padding: 9px 11px; box-shadow: 0 1px 0 rgba(255,255,255,.07); white-space: nowrap; }
#v-stats .sn-t td { padding: 9px 11px; border-bottom: 1px solid rgba(255,255,255,.05); }
#v-stats .sn-t tbody tr:nth-child(even) td { background: rgba(255,255,255,.012); }
#v-stats .sn-t tbody tr:hover td { background: rgba(217,180,90,.05); }
#v-stats .sn-t td.sn-strong { color: #f3dc8a; font-weight: 700; }
#v-stats .sn-tm { box-shadow: inset 4px 0 0 var(--tc, #d9b45a); padding-left: 14px !important; background: linear-gradient(90deg, color-mix(in srgb, var(--tc, #d9b45a) 16%, transparent) 0%, transparent 55%); font-weight: 600; white-space: nowrap; }
#v-stats .sn-crest-mini { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 8px; background: #0f131a; box-shadow: 0 0 0 2px #0f131a, 0 0 0 3px var(--tc, #d9b45a); }
#v-stats .sn-divhead { position: relative; margin: 22px 0 10px; padding: 10px 14px 10px 16px; border-radius: 10px; background: linear-gradient(90deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,0) 70%); border: 1px solid rgba(255,255,255,.06); }
#v-stats .sn-divhead:has(.sn-dot[data-div="Elite"]) { box-shadow: inset 3px 0 0 #d9b45a; }
#v-stats .sn-divhead:has(.sn-dot[data-div="Second"]) { box-shadow: inset 3px 0 0 #7fd3a6; }
#v-stats .sn-divhead:has(.sn-dot[data-div="Third"]) { box-shadow: inset 3px 0 0 #6fa8ff; }
#v-stats .sn-chapter { display: flex; align-items: center; gap: 10px; color: var(--sn-gold); font-weight: 700; letter-spacing: .04em; margin: 8px 0 14px; }
#v-stats .sn-chapter::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(217,180,90,.5), rgba(217,180,90,0)); }
#v-stats .sn-fact, #v-stats .sn-pcard { background: linear-gradient(180deg, rgba(255,255,255,.035) 0%, rgba(255,255,255,0) 60%), var(--sn-card2); border: 1px solid rgba(255,255,255,.07); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 14px 26px -22px rgba(0,0,0,.8); border-radius: 14px; }
#v-stats .sn-pcard { transition: transform .18s ease, border-color .18s ease; }
#v-stats .sn-pcard:hover { transform: translateY(-2px); }
#v-stats .sn-chip, #v-stats .sn-tab { box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
#v-stats .sn-tab.on, #v-stats .sn-chip.on { background: linear-gradient(180deg, rgba(217,180,90,.22), rgba(217,180,90,.1)); color: #f3dc8a; box-shadow: inset 0 0 0 1px rgba(217,180,90,.35); }
#v-stats .sn-scope { background: linear-gradient(180deg, #151c28, #10161f); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 4px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
@media (prefers-reduced-motion: reduce) { #v-stats .sn-pcard { transition: none; } #v-stats .sn-pcard:hover { transform: none; } }

/* Last week's review */
#v-stats .sn-rv-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; text-align: left; padding: 20px 22px 18px; margin: 6px 0 22px; border-radius: 16px; border: 1px solid rgba(217,180,90,.32); background: linear-gradient(135deg, rgba(217,180,90,.14) 0%, rgba(255,255,255,.02) 60%), var(--sn-card2); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 20px 36px -28px rgba(0,0,0,.85); color: inherit; font: inherit; cursor: pointer; }
#v-stats .sn-rv-card:hover, #v-stats .sn-rv-card:focus-visible { border-color: rgba(217,180,90,.6); outline: none; }
#v-stats .sn-rv-k { color: var(--sn-gold); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
#v-stats .sn-rv-t { font-size: 24px; font-weight: 700; }
#v-stats .sn-rv-d { color: var(--sn-mute); font-size: 14px; line-height: 1.45; max-width: 64ch; }
#v-stats .sn-rv-meta { font-size: 14px; color: var(--sn-text); font-variant-numeric: tabular-nums; }
#v-stats .sn-rv-meta b { font-size: 18px; color: #f3dc8a; }
#v-stats .sn-rv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 6px 0 16px; }
#v-stats .sn-rv-head h3 { margin: 2px 0 0; font-size: 22px; }
#v-stats .sn-rv-big { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
#v-stats .sn-rv-big span { font-size: 40px; font-weight: 700; color: #f3dc8a; line-height: 1; }
#v-stats .sn-rv-big small { color: var(--sn-mute); font-size: 12px; margin-top: 4px; }
#v-stats .sn-rk { font-weight: 650; color: var(--sn-text); }
#v-stats .sn-rk.sn-top { color: #f3dc8a; }
#v-stats .sn-subhead { margin: 18px 0 8px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { #v-stats .sn-rv-card { transition: none; } }
#v-stats .sn-rv-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 10px; }
#v-stats .sn-rv-stack > .sn-card { min-width: 0; overflow: hidden; }
#v-stats .sn-rv-stack .sn-tw { overflow-x: auto; }

/* ---- BCFL Broadcast Polish & Navigation ---- */
.sn-pagetabs {
  position: sticky;
  top: 0;
  z-index: 12;
  background: rgba(13, 15, 22, 0.92);
  backdrop-filter: blur(8px);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  gap: 6px;
}
.sn-tab {
  border-radius: 7px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.sn-tab.on {
  background: rgba(251, 192, 45, .14);
  border-color: rgba(251, 192, 45, .45);
  color: #FBC02D;
}
.sn-card, .sn-pcard, .sn-rv-card {
  background: linear-gradient(180deg, rgba(22, 26, 36, .95) 0%, rgba(16, 19, 27, .98) 100%);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.sn-rv-card {
  border-left: 3px solid #FBC02D;
}
.sn-subhead {
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.sn-t thead th {
  background: rgba(255, 255, 255, .035);
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.sn-t tbody tr:hover {
  background: rgba(251, 192, 45, .04);
}
.sn-top50 {
  color: #FBC02D;
}

/* Previous Weekly Review Bar */
.sn-rv-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.sn-rv-bar .sn-pagetabs {
  position: static;
  margin-bottom: 0;
}
.sn-prev-btn {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(251, 192, 45, .35);
  color: #FBC02D;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.sn-prev-btn:hover, .sn-prev-btn.on {
  background: rgba(251, 192, 45, .15);
  border-color: #FBC02D;
}
.sn-prev-weeks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
}
.sn-prev-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .55);
  margin-right: 4px;
}
.sn-wk-pill {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #e5e7eb;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.sn-wk-pill.on {
  background: #FBC02D;
  border-color: #FBC02D;
  color: #11131a;
  font-weight: 700;
}
