/* WE DEM BOYS — Hall of Records. Almanac reskin: black rail + cream, serif display. */
:root {
  --ink: #211e1b;
  --ink-2: #4a453f;
  --muted: #86807a;
  --cream: #f3f1ea;
  --cream-2: #ece8df;
  --card: #ffffff;
  --line: #e3ddd1;
  --line-2: #efeae0;
  --red: #b02a2f;
  --red-deep: #8f1f24;
  --gold: #b8860b;
  --green: #1a7f37;
  --blue: #2563eb;
  --rail: #1a1817;
  --rail-2: #24211f;
  --rail-line: #322e2b;
  --rail-ink: #e7e2da;
  --rail-muted: #8a837b;
  --track: #e7e2d8;
  --shadow: 0 1px 2px rgba(30,25,20,.05), 0 6px 20px rgba(30,25,20,.06);
  /* radar */
  --grid: #ded7c9; --radar-dot: var(--red); --radar-fill: rgba(176,42,47,.12);
  --radar-stroke: var(--red); --radar-label: #6b6560;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden; /* app shell: never scroll the page sideways */
}
a { color: inherit; text-decoration: none; }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }

/* ---------- black rail ---------- */
.rail {
  background: var(--rail); color: var(--rail-ink);
  display: flex; flex-direction: column;
  padding: 30px 0 22px; position: sticky; top: 0; height: 100vh;
  border-right: 1px solid var(--rail-line);
}
.wordmark {
  font-family: var(--serif); font-weight: 900; font-size: 27px; letter-spacing: .01em;
  padding: 0 26px 26px; line-height: 1; color: #fff;
}
.wm-we { color: #fff; border-bottom: 3px solid var(--red); padding-bottom: 3px; }
.wm-rest { color: #fff; }
.tabs { display: flex; flex-direction: column; }
.tabs a {
  display: flex; align-items: baseline; gap: 12px;
  padding: 12px 26px; color: var(--rail-muted); font-size: 15px; font-weight: 500;
  border-left: 3px solid transparent; transition: color .15s, background .15s;
}
.tabs a:hover { color: var(--rail-ink); background: var(--rail-2); }
.tabs a.active { color: #fff; border-left-color: var(--red); background: var(--rail-2); }
.tnum { color: #5f5952; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tabs a.active .tnum { color: var(--red); }
.rail-foot { margin-top: auto; padding: 22px 26px 0; border-top: 1px solid var(--rail-line); }
.creed { font-family: var(--serif); font-weight: 700; font-size: 16px; color: #fff; }
.est, .upd { font-size: 11px; color: var(--rail-muted); letter-spacing: .06em; margin-top: 4px; }

/* ---------- mobile top app bar (hidden on desktop) ---------- */
.topbar { display: none; }
.topbar-wm {
  font-family: var(--serif); font-weight: 900; font-size: 18px; letter-spacing: .01em; color: #fff;
}
.topbar-wm .wm-we { border-bottom: 2px solid var(--red); padding-bottom: 1px; }
.scrim { display: none; }

.nav-toggle {
  display: none; flex: none;
  width: 40px; height: 40px; border: none; border-radius: 8px;
  background: transparent; color: #fff; font-size: 20px; cursor: pointer;
  align-items: center; justify-content: center;
}

/* ---------- content ---------- */
.content { padding: 48px 56px 90px; max-width: 1080px; }
.view { display: none; animation: fade .3s ease; }
.view.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.masthead { margin-bottom: 30px; }
.masthead h1 {
  font-family: var(--serif); font-weight: 900; font-size: clamp(34px, 5vw, 52px);
  line-height: 1.02; letter-spacing: -.01em; margin: 0 0 6px;
}
.masthead h1 .amp { color: var(--red); font-style: italic; font-weight: 400; }
.masthead h1::after {
  content: ""; display: block; width: 68px; height: 4px; background: var(--red);
  border-radius: 2px; margin-top: 16px;
}
.dek { color: var(--ink-2); font-size: 16.5px; max-width: 66ch; margin: 2px 0 0; }
.sub-h {
  font-family: var(--serif); font-weight: 700; font-size: 25px; margin: 40px 0 6px;
}
.sub-h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; margin: 26px 0 4px; }
.sub-dek { color: var(--muted); font-size: 14px; max-width: 70ch; margin: 0 0 16px; }
.coverage { color: var(--muted); font-size: 13px; margin-top: 22px; }
.pos { color: var(--green); } .neg { color: var(--red); }

/* ---------- generic ranking table with red bar ---------- */
.rank-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rank-table th {
  text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; padding: 0 12px 10px; border-bottom: 1px solid var(--line);
}
.rank-table td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.rank-table tr:last-child td { border-bottom: none; }
.rank-table .num { font-variant-numeric: tabular-nums; }
.rank-table .rk { color: var(--muted); font-weight: 600; width: 30px; }
.rank-table .owner-c { font-weight: 600; }
.bar { position: relative; height: 8px; width: 120px; background: var(--track); border-radius: 5px; overflow: hidden; display: inline-block; vertical-align: middle; }
.bar > i { position: absolute; inset: 0 auto 0 0; background: var(--red); border-radius: 5px; }
.bar-cell { display: flex; align-items: center; gap: 10px; }
.trophy { color: var(--gold); letter-spacing: -2px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }

/* ---------- MVP card ---------- */
.mvp {
  display: flex; align-items: center; gap: 22px; padding: 20px 24px; margin: 0 0 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  position: relative;
}
.mvp-photo {
  width: 92px; height: 92px; border-radius: 12px; object-fit: cover; background: var(--cream-2);
  flex: none; border: 1px solid var(--line);
}
.mvp-kick { color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.mvp-name { font-family: var(--serif); font-weight: 900; font-size: 28px; line-height: 1.1; margin: 2px 0 4px; }
.mvp-line { color: var(--ink-2); font-size: 14.5px; }
.mvp-line b { font-variant-numeric: tabular-nums; }
.mvp-trophy { position: absolute; top: 18px; right: 22px; font-size: 26px; }
.mvp-edge { color: var(--ink-2); font-size: 13px; margin-top: 6px; }
.mvp-edge b { color: var(--red); font-variant-numeric: tabular-nums; }

/* ---------- recap two-col ---------- */
.recap-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.recap-note { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

/* ---------- year tabs ---------- */
.year-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.year-tab {
  border: none; background: none; cursor: pointer; font: inherit; font-weight: 600;
  color: var(--muted); padding: 8px 12px; border-bottom: 2px solid transparent; margin-bottom: -1px;
  font-variant-numeric: tabular-nums; font-size: 14.5px; transition: color .15s;
}
.year-tab:hover { color: var(--ink); }
.year-tab.active { color: var(--red); border-bottom-color: var(--red); }

/* ---------- weekly recap card (in-season recap) ---------- */
.wr-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 20px 24px; margin: 0 0 20px; }
.wr-card.wr-empty { color: var(--muted); font-size: 14.5px; }
.wr-kick { color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.wr-text { font-family: var(--serif); font-size: 18px; line-height: 1.45; color: var(--ink); margin: 8px 0 16px; }
.wr-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.wr-chip { background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.wr-chip-l { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.wr-chip-who { font-weight: 600; font-size: 14px; margin-top: 2px; }
.wr-chip-v { font-family: var(--serif); font-weight: 900; font-size: 20px; color: var(--red); font-variant-numeric: tabular-nums; }

/* ---------- power poll cards (field) ---------- */
.field-grid { display: flex; flex-direction: column; gap: 12px; }
.field-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.field-card > summary { list-style: none; cursor: pointer; padding: 18px 22px; }
.field-card > summary::-webkit-details-marker { display: none; }
.field-top { display: flex; align-items: center; gap: 16px; }
.seed { font-family: var(--serif); font-weight: 900; font-size: 30px; color: var(--red); min-width: 46px; }
.seed-tag { display: block; font-family: var(--sans); font-size: 9px; letter-spacing: .1em; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.field-id { flex: 1; min-width: 0; }
.fn { font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1.1; overflow-wrap: anywhere; }
.fo { color: var(--muted); font-size: 13.5px; }
.field-score { flex: none; font-family: var(--serif); font-weight: 900; font-size: 26px; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; }
.field-score .chev { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.field-tag { font-weight: 600; color: var(--red-deep); margin: 12px 0 4px; font-size: 14.5px; }
.field-roast { color: var(--ink-2); font-size: 14.5px; margin: 4px 0 12px; }
.field-starters { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: 12px; background: var(--cream-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--ink-2); }
.pill b { color: var(--red); }
.field-breakdown { padding: 4px 22px 22px; border-top: 1px solid var(--line-2); }
.bd-h { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 16px 0 8px; }
.bd-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.bd-table th { text-align: left; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0 8px 6px; border-bottom: 1px solid var(--line); }
.bd-table td { padding: 6px 8px; border-bottom: 1px solid var(--line-2); }
.bd-slot { color: var(--red); font-weight: 700; }
.bd-pos { color: var(--muted); }
.bd-num { text-align: right; font-variant-numeric: tabular-nums; }
.bd-bench td { color: var(--ink-2); }
.bd-div td { background: var(--cream); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.bd-math { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 6px; font-size: 13px; color: var(--ink-2); }
.bd-math b { color: var(--ink); font-variant-numeric: tabular-nums; }
.bd-final { color: var(--red) !important; }
.bd-note { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin: 6px 0 0; }

/* ---------- trade desk ---------- */
.lore-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.lore-tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.lore-v { font-family: var(--serif); font-weight: 900; font-size: 26px; color: var(--red); }
.lore-l { font-weight: 600; font-size: 13.5px; margin-top: 2px; }
.lore-s { color: var(--muted); font-size: 12px; }
.grade-log { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.grade-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.grade-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tseason { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.grade-gap { color: var(--red); font-weight: 700; }
.grade-side { font-size: 13.5px; padding: 6px 0; border-top: 1px solid var(--line-2); }
.grade-side.win .gw { color: var(--green); font-weight: 700; font-size: 11px; }
.grade-side.lose .gl { color: var(--red); font-weight: 700; font-size: 11px; }
.gp { color: var(--muted); font-size: 12px; }
.trade-log { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.trade-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.trade-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.trade-body { display: flex; align-items: center; gap: 10px; }
.tside { flex: 1; }
.towner { font-weight: 600; font-size: 13px; }
.tplayers { color: var(--ink-2); font-size: 13px; }
.tplayers.tsent { color: var(--muted); font-style: italic; }
.tswap { color: var(--red); font-size: 18px; }

/* ---------- in-season transaction wire ---------- */
.tx-trades { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-bottom: 8px; }
.tx-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); }
.tx-blurb {
  margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line-2);
  font-family: var(--serif); font-size: 15px; line-height: 1.5; color: var(--ink);
}
.tx-wv { display: flex; flex-direction: column; gap: 2px; }
.wv-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.wv-row b { color: var(--ink); }
.wv-name { font-weight: 600; }
.wv-pos { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; color: var(--red); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
.wv-bid { color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; }
.wv-wk { color: var(--muted); font-size: 12px; margin-left: auto; font-variant-numeric: tabular-nums; }

/* ---------- insights ---------- */
.insight-controls { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.insight-controls label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; display: flex; flex-direction: column; gap: 6px; }
.insight-controls select {
  font: inherit; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 500;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); cursor: pointer; min-width: 200px;
}
.ins-panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 22px 24px; }
.ins-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.ins-title { font-family: var(--serif); font-weight: 800; font-size: 22px; }
.ins-sub { color: var(--muted); font-size: 13px; }
.ins-trend { margin: 8px 0 4px; }
.ins-trend svg { max-width: 100%; height: auto; }
.ins-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--ink-2); margin: 6px 2px 18px; }
.ins-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 5px; }
.ins-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.milestone-list { display: flex; flex-direction: column; gap: 8px; }
.ms-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.ms-icon { flex: none; width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.ms-trade { background: var(--blue); }
.ms-absence { background: var(--red); }
.ms-week { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ms-note { color: var(--ink-2); }
.mvp-players { list-style: none; margin: 0; padding: 0; }
.mvp-players li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.mvp-players .mp-pts { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.mvp-players .mp-pos { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
.mvp-players .top1 .mp-name { font-weight: 700; }
.mvp-players .top1 .mp-pts { color: var(--red); }
.mp-mvp { font-size: 9.5px; font-weight: 800; letter-spacing: .05em; color: #fff; background: var(--red); border-radius: 4px; padding: 1px 5px; vertical-align: 1px; }
.mp-z { font-size: 11px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sub-h3-note { font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

.eff-list { display: flex; flex-direction: column; gap: 2px; }
.eff-row { display: grid; grid-template-columns: 28px 1fr 160px auto; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.eff-rank { color: var(--muted); font-weight: 600; }
.eff-name { font-weight: 600; }
.eff-bar { height: 8px; background: var(--track); border-radius: 5px; overflow: hidden; }
.eff-bar > i { display: block; height: 100%; background: var(--red); }
.eff-num { font-variant-numeric: tabular-nums; font-weight: 600; }
.eff-num small { color: var(--muted); font-weight: 400; }
.waiver-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.waiver-col .waiver-h { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.waiver-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.waiver-row b { flex: 1; }
.wr-meta { color: var(--muted); font-size: 12px; }
.wr-pts { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 46px; text-align: right; }
.wr-pts.pos { color: var(--green); } .wr-pts.neg { color: var(--red); }

/* ---------- records ---------- */
.records-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.rec-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow); }
.rec-label { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.rec-value { font-family: var(--serif); font-weight: 900; font-size: 38px; color: var(--red); line-height: 1.1; margin: 4px 0; font-variant-numeric: tabular-nums; }
.rec-who { font-weight: 600; }
.rec-sub { color: var(--muted); font-size: 12.5px; }
.record-scatter { margin-top: 40px; }
.scatter-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 16px; overflow-x: auto; }
.scatter-wrap svg { max-width: 100%; height: auto; }
.scatter-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--ink-2); margin-top: 12px; }
.lg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
.lg-diag { color: var(--muted); }

/* ---------- radar / board rows ---------- */
.radar-box { display: grid; place-items: center; }
.radar-box svg { max-width: 100%; height: auto; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini-table th { text-align: left; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0 8px 6px; border-bottom: 1px solid var(--line); }
.mini-table td { padding: 6px 8px; border-bottom: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.mini-table tr.ring td { background: rgba(184,134,11,.08); }

/* ---------- administrations archive ---------- */
.archive-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px; align-items: start; }
.arch-right { display: flex; flex-direction: column; gap: 22px; }
.arch-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 20px 22px; }
.arch-card h3 { font-family: var(--serif); font-weight: 700; font-size: 18px; margin: 0 0 14px; }
.arch-card h3 .yr { color: var(--red); }
.arch-recap { grid-column: 1 / -1; }
.arch-recap p { font-size: 15px; color: var(--ink-2); margin: 0; max-width: 74ch; }
.standings { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.standings th { text-align: left; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0 8px 6px; border-bottom: 1px solid var(--line); }
.standings td { padding: 7px 8px; border-bottom: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.standings tr.champ td { background: rgba(176,42,47,.06); font-weight: 600; }
.standings tr.champ td:first-child::before { content: "🏆 "; }

/* bracket */
.bracket { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.bracket-round { display: flex; flex-direction: column; justify-content: space-around; gap: 12px; min-width: 168px; flex: 1; }
.round-name { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 700; text-align: center; margin-bottom: 2px; }
.matchup { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--cream); }
.mu-team { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; font-size: 13px; }
.mu-team + .mu-team { border-top: 1px solid var(--line); }
.mu-team.win { background: var(--card); font-weight: 700; }
.mu-team.win .mu-name::before { content: "▸ "; color: var(--red); }
.mu-team.lose { color: var(--muted); }
.mu-seed { color: var(--muted); font-size: 10px; font-weight: 600; width: 16px; }
.mu-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-pts { font-variant-numeric: tabular-nums; }
.bracket-champ { text-align: center; margin-top: 12px; font-size: 13px; }
.bracket-champ b { font-family: var(--serif); font-size: 17px; color: var(--red); }

/* ---------- responsive: mobile app shell ---------- */
@media (max-width: 900px) {
  /* single, shrinkable column — minmax(0,...) lets the track go below its
     content's min-content so wide tables/grids can't stretch the page (the
     "zoomed in on open" bug: a field-card breakdown table floored the 1fr
     track at ~442px on a 390px screen). */
  .app { grid-template-columns: minmax(0, 1fr); }

  /* fixed top app bar */
  .topbar {
    display: flex; align-items: center; gap: 8px;
    position: sticky; top: 0; z-index: 45;
    height: 54px; padding: 0 10px;
    background: var(--rail); color: #fff;
    border-bottom: 1px solid var(--rail-line);
  }
  .nav-toggle { display: flex; }

  /* off-canvas drawer */
  .rail {
    position: fixed; top: 0; left: 0; z-index: 60; width: 272px; max-width: 84vw;
    height: 100dvh; transform: translateX(-100%);
    transition: transform .25s ease; will-change: transform;
  }
  .rail.open { transform: none; }
  .scrim {
    display: block; position: fixed; inset: 0; z-index: 55;
    background: rgba(0,0,0,.45); opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
  }
  .scrim.open { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }

  /* content flows under the sticky bar and owns min-width:0 so it can shrink */
  .content { min-width: 0; max-width: 100%; padding: 22px 18px 80px; }

  .recap-cols, .ins-cols, .waiver-grid, .archive-grid { grid-template-columns: 1fr; }

  /* any wide inner content scrolls inside its card instead of stretching the page */
  .field-breakdown, .scatter-wrap, .arch-card, #recap-table, #alltime-lib { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 560px) {
  .eff-row { grid-template-columns: 24px 1fr auto; }
  .eff-bar { display: none; }
}

.reveal { animation: rise .4s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, .view, .reveal { animation: none !important; transition: none !important; }
}
