/* ============ KNUX — tokens ============
 * Fight-poster rules: hard edges, thick rules, big condensed type,
 * one red, the octagon and the slash. No soft card stacks.
 */
:root {
  color-scheme: light;
  --bg: #f3efe6;
  --surface: #fbf9f4;
  --sunk: #e9e3d6;
  --ink: #15120d;
  --ink-2: #3a342b;
  --muted: #6b6255;       /* 5.2:1 on --bg */
  --line: #d9d1c4;
  --line-2: #c4baa9;
  --red: #e10600;
  --red-hover: #c00500;
  --red-text: #c00808;     /* red words; brighter in dark mode so they stay readable */
  --blue: #1f63c0;        /* focus ring only */
  --win: #1f7a4d;
  --loss: #a23b3b;
  --gold: #b8871b;
  --gold-ink: #8a6512;
  --on-red: #fff;

  --hero-bg: #15120d;
  --hero-fg: #f3efe6;
  --hero-soft: #d9d1c4;
  --hero-muted: #b4aa99;
  --hero-line: #3a342b;

  --sel-bg: #15120d;
  --sel-fg: #f3efe6;
  --sel-muted: #b4aa99;
  --sel-hover: #2b261e;

  /* big titles: the headline matchup, page and section titles */
  --font-title: "Teko", "Arial Narrow", sans-serif;
  --title-weight: 600;
  --title-style: normal;
  --title-case: uppercase;
  --ts: 1;               /* title size multiplier, for wider/narrower title fonts */
  /* supporting bold: fighter names, buttons, tabs, numbers */
  --font-display: "Barlow", "Arial Narrow", sans-serif;
  --display-weight: 700;
  --display-style: normal;
  --ds: .82;
  /* everything else */
  --font-ui: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px;
  --r: 2px;
  --cut: 16px;
  --rule: 3px;
  --tap: 44px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 180ms;
  --shadow: 0 8px 24px -12px rgba(21,18,13,.3);
  --backdrop: rgba(21,18,13,.6);

  --tabbar-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* fight night (dark) — follows the phone's setting unless picked in the app */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0b0c; --surface: #17171a; --sunk: #222226;
    --ink: #ffffff; --ink-2: #d6d6da; --muted: #a3a3a8;
    --line: #2a2a2e; --line-2: #3a3a40; --red-text: #ff4d45;
    --blue: #6aa3ff; --win: #45c486; --loss: #ec8a8a; --gold: #d9a83a; --gold-ink: #e6bf63;
    --hero-bg: #17171a; --hero-line: #3a3a40;
    --sel-bg: #ffffff; --sel-fg: #0b0b0c; --sel-muted: #5c5c62; --sel-hover: #e4e4e8;
    --shadow: 0 8px 24px -12px rgba(0,0,0,.7);
    --backdrop: rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0b0c; --surface: #17171a; --sunk: #222226;
  --ink: #ffffff; --ink-2: #d6d6da; --muted: #a3a3a8;
  --line: #2a2a2e; --line-2: #3a3a40; --red-text: #ff4d45;
  --blue: #6aa3ff; --win: #45c486; --loss: #ec8a8a; --gold: #d9a83a; --gold-ink: #e6bf63;
  --hero-bg: #17171a; --hero-line: #3a3a40;
  --sel-bg: #ffffff; --sel-fg: #0b0b0c; --sel-muted: #5c5c62; --sel-hover: #e4e4e8;
  --shadow: 0 8px 24px -12px rgba(0,0,0,.7);
  --backdrop: rgba(0,0,0,.7);
}

/* ============ base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
img, svg { display: block; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.display { font-family: var(--font-title); font-weight: var(--title-weight); font-style: var(--title-style); text-transform: var(--title-case); letter-spacing: .005em; line-height: .92; }

/* ============ app shell ============ */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line-2);
}
.topbar-in {
  max-width: 1080px; margin: 0 auto;
  height: 60px; padding: 0 var(--s4);
  display: flex; align-items: center; gap: var(--s3);
}
.topbar-in.narrow { max-width: 720px; }
.brand { display: flex; align-items: center; height: 100%; text-decoration: none; }
.brand img { height: 36px; width: auto; transition: height var(--dur) var(--ease); }
body[data-page="home"] .topbar { position: relative; }
body[data-page="home"] .topbar-in { height: 64px; }
body[data-page="home"] .brand img { height: 40px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: var(--s1); }
.topnav { display: none; gap: var(--s1); }
.topnav a {
  display: inline-flex; align-items: center; height: 44px; padding: 0 var(--s3);
  text-decoration: none; border-bottom: 3px solid transparent;
  font-family: var(--font-display); font-weight: var(--display-weight); font-style: var(--display-style); font-size: calc(18px * var(--ds)); text-transform: uppercase; letter-spacing: .02em; color: var(--muted);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.topnav a:hover { color: var(--ink); }
.topnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }
.topbar-title { min-width: 0; flex: 1; text-align: center; line-height: 1.15; transition: opacity var(--dur) var(--ease); }
.topbar.collapse-title .topbar-title { opacity: 0; }
.topbar.collapse-title.show-title .topbar-title { opacity: 1; }
.topbar-title span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.topbar-title strong { display: block; font-family: var(--font-display); font-weight: var(--display-weight); font-style: var(--display-style); font-size: calc(19px * var(--ds)); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iconbtn {
  width: var(--tap); height: var(--tap); flex: none;
  display: grid; place-items: center; border-radius: var(--r);
  text-decoration: none; color: var(--ink);
  transition: background var(--dur) var(--ease);
}
.iconbtn:hover { background: var(--sunk); }
.iconbtn svg { width: 22px; height: 22px; }

main { display: block; }
.page { max-width: 1080px; margin: 0 auto; padding: var(--s5) var(--s4) calc(var(--tabbar-h) + var(--safe-b) + var(--s10)); }
.page.narrow { max-width: 720px; }
.page.has-bar { padding-bottom: calc(96px + var(--safe-b) + var(--s8)); }

/* bottom tab bar (phone) */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--bg); border-top: 1px solid var(--line-2);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.tabbar a {
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--muted);
  font-family: var(--font-display); font-weight: var(--display-weight); font-style: var(--display-style); font-size: calc(19px * var(--ds)); text-transform: uppercase; letter-spacing: .02em;
  position: relative;
}
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 28px; height: 5px; margin-left: -14px;
  background: var(--red); transform: skewX(-24deg);
}

@media (min-width: 900px) {
  .topnav { display: flex; }
  .tabbar { display: none; }
  .page { padding-bottom: var(--s16); }
  body[data-page="home"] .topbar-in { height: 88px; }
  body[data-page="home"] .brand img { height: 60px; }
}

/* ============ buttons + links ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--tap); padding: 0 var(--s5);
  border-radius: var(--r); border: 2px solid transparent;
  font-family: var(--font-display); font-weight: var(--display-weight); font-style: var(--display-style); font-size: calc(18px * var(--ds)); text-transform: uppercase; letter-spacing: .03em;
  text-decoration: none; white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--red); color: var(--on-red); }
.btn-primary:hover:not(:disabled) { background: var(--red-hover); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 84%, var(--bg)); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover:not(:disabled) { background: var(--sunk); }
.btn-danger { border-color: var(--loss); color: var(--loss); }
.btn-danger:hover { background: color-mix(in srgb, var(--loss) 10%, transparent); }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; font-size: 22px; }
.textlink {
  display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap);
  font-weight: 700; font-size: 15px; color: inherit;
  text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--red); text-underline-offset: 5px;
}
.textlink svg { width: 16px; height: 16px; }
.textlink:hover { text-decoration-thickness: 3px; }
.addlink { margin-top: var(--s4); }
.btnrow { display: flex; gap: var(--s2); flex-wrap: wrap; }
.btnrow.center { justify-content: center; }
.btnrow.spread { justify-content: space-between; }

/* ============ tags ============ */
.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 6px; border-radius: var(--r);
  font-family: var(--font-ui); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  border: 1.5px solid var(--line-2); color: var(--ink-2); vertical-align: middle;
}
.tag-live, .tag-red { background: var(--red); border-color: var(--red); color: var(--on-red); }
.tag-ink { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tag-gold { border-color: var(--gold); color: var(--gold-ink); }

/* ============ section titles + lists ============ */
.sec { margin-top: var(--s10); }
.sec:first-child { margin-top: 0; }
.sec-title { margin: 0 0 var(--s2); font-family: var(--font-title); font-weight: var(--title-weight); font-style: var(--title-style); font-size: calc(28px * var(--ts)); line-height: 1; text-transform: var(--title-case); letter-spacing: .01em; }

.elist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.elist li { border-bottom: 1px solid var(--line-2); }
.erow {
  display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: var(--s4);
  padding: var(--s3) var(--s1); min-height: 72px; text-decoration: none;
  transition: background var(--dur) var(--ease);
}
.erow:hover { background: var(--sunk); }
.edate { display: grid; justify-items: center; line-height: 1; }
.edate b { font-family: var(--font-display); font-weight: var(--display-weight); font-style: var(--display-style); font-size: calc(36px * var(--ds)); }
.edate span { margin-top: 2px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.ebody { min-width: 0; display: grid; }
.ename { font-size: 13px; font-weight: 600; color: var(--muted); }
.ebody strong { font-family: var(--font-display); font-weight: var(--display-weight); font-style: var(--display-style); font-size: calc(22px * var(--ds)); line-height: 1.05; text-transform: uppercase; overflow-wrap: anywhere; }
.eside { display: flex; align-items: center; gap: var(--s2); color: var(--muted); }
.eside > svg { width: 18px; height: 18px; }
.eside-txt { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.eside-txt b { font-family: var(--font-display); font-weight: var(--display-weight); font-style: var(--display-style); font-size: calc(20px * var(--ds)); }
.eside-txt.done { color: var(--win); }
.eside-txt svg { width: 16px; height: 16px; }

/* ============ empty states ============ */
.empty { border-top: 1px solid var(--line-2); padding: var(--s6) 0; }
.empty h2 { margin: 0 0 var(--s2); font-family: var(--font-title); font-weight: var(--title-weight); font-style: var(--title-style); font-size: calc(34px * var(--ts)); line-height: 1; text-transform: var(--title-case); }
.empty p { margin: 0 0 var(--s5); max-width: 44ch; color: var(--muted); }

/* ============ hero (next event) ============ */
.hero {
  position: relative;
  background: var(--hero-bg); color: var(--hero-fg);
  padding: var(--s5) var(--s5) var(--s4);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.hero-kicker {
  display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap;
  font-family: var(--font-display); font-weight: var(--display-weight); font-style: var(--display-style); font-size: calc(20px * var(--ds)); text-transform: uppercase; letter-spacing: .02em; color: var(--red);
  margin-bottom: var(--s2);
}
.hero h1 { margin: 0; font-size: calc(clamp(44px, 12.5vw, 80px) * var(--ts)); }
.hero h1::after {
  /* the slash */
  content: ""; display: block; width: 88px; height: 8px; margin-top: var(--s3);
  background: var(--red); transform: skewX(-24deg); transform-origin: left;
}
.vs { color: var(--red); font-size: .55em; vertical-align: .22em; padding: 0 .04em; }
.hero-meta { margin-top: var(--s3); font-size: 14px; line-height: 1.5; color: var(--hero-soft); }
.hero-foot {
  margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--hero-line);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
}
.count-label { font-size: 14px; font-weight: 700; color: var(--hero-soft); }
.count { font-family: var(--font-display); font-weight: var(--display-weight); font-style: var(--display-style); font-size: calc(40px * var(--ds)); line-height: 1; font-variant-numeric: tabular-nums; margin-top: var(--s1); }
.count small { font-size: .45em; color: var(--hero-muted); margin-left: 1px; }
.count-pts { font-size: .55em; color: var(--hero-muted); }
.hero-progress { margin-top: var(--s2); font-size: 14px; color: var(--hero-soft); }
.hero .textlink { color: var(--hero-fg); }

.recline {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s1); text-decoration: none;
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  transition: background var(--dur) var(--ease);
}
.recline:hover { background: var(--sunk); }
.recline b { font-family: var(--font-display); font-weight: var(--display-weight); font-style: var(--display-style); font-size: calc(40px * var(--ds)); line-height: 1; }
.recline span { flex: 1; color: var(--muted); font-weight: 600; }
.recline svg { width: 18px; height: 18px; color: var(--muted); }

/* ============ home layout ============ */
.home-grid { display: grid; gap: var(--s8); }
.col-a, .col-b { display: grid; gap: var(--s6); align-content: start; }
@media (min-width: 1024px) {
  .home-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s12); align-items: start; }
  .home-grid > .col-a { position: sticky; top: var(--s6); }
}

/* ============ event page ============ */
.ehead { margin-bottom: var(--s5); }
.ehead h1 { margin: 0; font-size: calc(clamp(36px, 9.5vw, 60px) * var(--ts)); }
.ehead-meta { margin-top: var(--s2); color: var(--muted); font-size: 14px; line-height: 1.5; }
.note { color: var(--muted); font-size: 14px; margin-top: var(--s3); }
.note b { color: var(--ink); }
.adminbox { margin-top: var(--s8); display: grid; gap: var(--s2); justify-items: start; }

.event-layout { display: grid; gap: var(--s8); }
.event-aside { display: none; }
@media (min-width: 1024px) {
  .event-layout { grid-template-columns: minmax(0, 680px) 300px; justify-content: space-between; align-items: start; }
  .event-aside { display: block; position: sticky; top: calc(60px + var(--s6)); }
  .actionbar { display: none; }
  .page.has-bar { padding-bottom: var(--s16); }
}
.aside-in { border-top: 1px solid var(--line-2); padding-top: var(--s3); }
.aside-in h2 { margin: 0; font-family: var(--font-title); font-weight: var(--title-weight); font-style: var(--title-style); font-size: calc(26px * var(--ts)); text-transform: var(--title-case); line-height: 1; }
.aside-score { font-family: var(--font-display); font-weight: var(--display-weight); font-style: var(--display-style); font-size: calc(40px * var(--ds)); line-height: 1.1; margin-top: var(--s2); }
.aside-score span { font-size: .5em; color: var(--muted); }
.plist { list-style: none; margin: var(--s3) 0 var(--s4); padding: 0; border-top: 1px solid var(--line-2); max-height: calc(100vh - 340px); overflow: auto; }
.plist li { border-bottom: 1px solid var(--line); }
.plist button {
  width: 100%; min-height: 40px; padding: 6px var(--s1); display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  text-align: left; font-size: 14px; transition: background var(--dur) var(--ease);
}
.plist button:hover { background: var(--sunk); }
.plist b { font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }

.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  border: 2px solid var(--ink); border-radius: var(--r); margin-bottom: var(--s5);
}
.seg button {
  min-height: 42px; font-family: var(--font-display); font-weight: var(--display-weight); font-style: var(--display-style); font-size: calc(18px * var(--ds)); text-transform: uppercase; letter-spacing: .02em; color: var(--ink);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.seg button + button { border-left: 2px solid var(--ink); }
.seg button:hover { background: var(--sunk); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.cardsec { margin-top: var(--s8); }
.cardsec:first-of-type { margin-top: 0; }
.cardsec-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s1); }
.cardsec-head h2 { margin: 0; font-family: var(--font-title); font-weight: var(--title-weight); font-style: var(--title-style); font-size: calc(30px * var(--ts)); line-height: 1; text-transform: var(--title-case); }
.cardsec-head span { font-size: 13px; font-weight: 700; color: var(--muted); }
.bouts { display: grid; }

/* bout: no box, just a heavy rule on top */
.bout {
  border-top: 1px solid var(--line-2);
  padding: var(--s3) 0 var(--s4);
  display: grid; gap: var(--s2);
  scroll-margin-top: 80px; scroll-margin-bottom: 120px;
}
.bout-top { display: flex; align-items: center; gap: var(--s2); min-height: 22px; }
.wc { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.rds { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--muted); }

.fighters { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: stretch; }
.vsline { display: grid; place-items: center; font-family: var(--font-display); font-weight: var(--display-weight); font-style: var(--display-style); font-size: calc(16px * var(--ds)); text-transform: uppercase; color: var(--red); }

.fighter {
  position: relative; width: 100%; min-width: 0; text-align: left;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  min-height: 104px; padding: var(--s2) var(--s3) var(--s3);
  border: 1.5px solid var(--line-2); border-radius: var(--r);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.fighter.side-b { align-items: flex-end; text-align: right; }
.f-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); width: 100%; min-height: 18px; }
.fighter.side-b .f-top { flex-direction: row-reverse; }
button.fighter[aria-pressed="false"]:hover { background: var(--sunk); border-color: var(--ink); }
button.fighter[aria-pressed="true"]:hover { background: var(--sel-hover); }
.rk { font-size: 13px; font-weight: 800; color: var(--muted); }
.rk.champ { color: var(--gold-ink); }
.fname { font-family: var(--font-display); font-weight: var(--display-weight); font-style: var(--display-style); font-size: calc(22px * var(--ds)); line-height: 1; text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere; }
.fmeta { display: flex; align-items: center; gap: 6px; margin-top: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fighter.side-b .fmeta { flex-direction: row-reverse; }
.fodds { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }

.check-badge {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--sel-bg); color: var(--sel-fg);
}
.check-badge svg { width: 14px; height: 14px; }
.fighter .check-badge { position: absolute; right: -8px; top: -8px; display: none; background: var(--red); color: #fff; box-shadow: 0 0 0 2px var(--bg); }

.fighter[aria-pressed="true"] { background: var(--sel-bg); color: var(--sel-fg); border-color: var(--sel-bg); box-shadow: inset 0 5px 0 var(--red); }
.fighter[aria-pressed="true"] .rk,
.fighter[aria-pressed="true"] .fmeta { color: var(--sel-muted); }
.fighter[aria-pressed="true"] .rk.champ { color: var(--gold); }
.fighter[aria-pressed="true"] .check-badge { display: grid; }
.fighters.has-pick .fighter[aria-pressed="false"] { opacity: .65; }
.fighters.has-pick .fighter[aria-pressed="false"]:hover { opacity: .85; }
.fighter.is-winner .fname::after {
  content: "WIN"; display: inline-block; margin-left: 6px; vertical-align: .2em;
  font-family: var(--font-ui); font-size: 11px; font-weight: 800; letter-spacing: .08em;
  padding: 2px 6px; border-radius: var(--r); background: var(--win); color: var(--bg);
}
div.fighter { cursor: default; }

/* collapsed (already picked) bout */
.summary {
  width: 100%; text-align: left; border-radius: var(--r);
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; column-gap: var(--s3); row-gap: 4px;
  padding: var(--s2) var(--s1);
  transition: background var(--dur) var(--ease);
}
.summary:hover { background: var(--sunk); }
.sum-name { display: flex; align-items: center; gap: var(--s2); min-width: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-style: var(--display-style); font-size: calc(25px * var(--ds)); line-height: 1; text-transform: uppercase; }
.sum-name span { overflow-wrap: anywhere; }
.sum-edit { font-size: 14px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sum-sub { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }

/* flags */
.fi { width: 20px !important; height: 15px; line-height: 15px !important; box-shadow: 0 0 0 1px rgba(128,120,108,.35); flex: none; display: inline-block; background-size: cover; background-position: 50%; }

/* pick options */
.opts { display: grid; gap: var(--s3); padding-top: var(--s2); }
.opt { display: grid; gap: 6px; }
.opt-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); }
.opt-name { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.opt-hint { font-size: 13px; color: var(--muted); }
.pills { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.pill {
  min-height: var(--tap); padding: 0 var(--s2); border-radius: var(--r);
  border: 1.5px solid var(--line-2); background: transparent;
  font-size: 13px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.pill:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pill.lock[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--on-red); }
.pill:disabled { opacity: .35; cursor: not-allowed; }
.pill .pts { font-weight: 600; opacity: .7; }
.opts .btn { margin-top: var(--s1); }

/* locked + graded */
.picksum, .result-line { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; min-height: 28px; font-size: 15px; }
.picksum b { text-transform: uppercase; letter-spacing: .02em; }
.outcome { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 var(--s2); border-radius: var(--r); font-weight: 800; font-size: 14px; }
.outcome svg { width: 14px; height: 14px; }
.outcome.win { background: var(--win); color: var(--bg); }
.outcome.loss { color: var(--loss); border: 1.5px solid currentColor; }
.outcome.push { color: var(--muted); border: 1.5px solid var(--line-2); }

.resedit { display: grid; gap: var(--s3); }
.resedit .pills.four { grid-template-columns: repeat(4, 1fr); grid-auto-flow: row; }

/* sticky action bar (phone) */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  padding: var(--s3) var(--s4) calc(var(--s3) + var(--safe-b));
  background: var(--bg); border-top: 1px solid var(--line-2);
}
.actionbar-in { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: var(--s4); }
.ab-stats { flex: 1; min-width: 0; display: grid; gap: 6px; }
.ab-label { font-size: 14px; font-weight: 700; }
.ab-stats b { font-family: var(--font-display); font-weight: var(--display-weight); font-style: var(--display-style); font-size: calc(24px * var(--ds)); line-height: 1; }
.bar { height: 6px; background: var(--sunk); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--red); transition: width 300ms var(--ease); }

/* ============ record page ============ */
.namefield { margin-bottom: var(--s8); max-width: 360px; }
.bigstat { padding-bottom: var(--s5); }
.bigstat b { display: block; font-family: var(--font-display); font-weight: var(--display-weight); font-style: var(--display-style); font-size: calc(clamp(96px, 30vw, 168px) * var(--ds)); line-height: .85; letter-spacing: -.01em; }
.bigstat p { margin-top: var(--s3); font-size: 17px; font-weight: 600; color: var(--muted); }
.bigpts { font-family: var(--font-display); font-weight: var(--display-weight); font-style: var(--display-style); font-size: calc(30px * var(--ds)); color: var(--ink); margin-right: var(--s2); }
.lines { margin: 0; border-top: 1px solid var(--line-2); }
.line { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); padding: var(--s3) var(--s1); border-bottom: 1px solid var(--line-2); }
.line dt { font-weight: 600; }
.line dd { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-style: var(--display-style); font-size: calc(24px * var(--ds)); text-align: right; }
.line dd .muted { font-family: var(--font-ui); font-size: 14px; font-weight: 600; margin-left: var(--s1); }

/* ============ rules page / forms ============ */
.block { margin-top: var(--s10); border-top: 1px solid var(--line-2); padding-top: var(--s4); display: grid; gap: var(--s4); justify-items: start; }
.block:first-of-type { margin-top: 0; }
.block > p { max-width: 60ch; }
.block .sec-title { margin: 0; }
.lede { font-size: 20px; font-weight: 700; line-height: 1.35; }
.scoretable { width: 100%; border-collapse: collapse; font-size: 15px; }
.scoretable td { padding: var(--s2) var(--s1); border-bottom: 1px solid var(--line-2); }
.scoretable td:last-child { text-align: right; font-family: var(--font-display); font-weight: var(--display-weight); font-style: var(--display-style); font-size: calc(22px * var(--ds)); }
.block .field { width: 100%; max-width: 420px; }
.block .seg { margin: 0; }

.field { display: grid; gap: 6px; }
.field label, .flabel, .boutform legend { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); padding: 0; }
.input, .select {
  width: 100%; min-height: var(--tap); padding: 0 var(--s3);
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r);
  font-size: 16px; /* stops iOS zoom */
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input:hover, .select:hover { border-color: var(--ink-2); }
.input:focus, .select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 35%, transparent); }
.input::placeholder { color: var(--muted); opacity: .8; }
.formgrid { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .formgrid.two { grid-template-columns: 1fr 1fr; } }
.check { display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--tap); font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--red); }
.boutform { border: 0; border-top: 1px solid var(--line-2); padding: var(--s3) 0 0; margin: 0; display: grid; gap: var(--s3); min-width: 0; }
.boutform-head { display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
.boutform .row3 { display: grid; grid-template-columns: 1fr; gap: var(--s3); }
@media (min-width: 560px) { .boutform .row3 { grid-template-columns: 1.4fr .7fr auto; align-items: end; } }
.err { color: var(--loss); font-size: 14px; font-weight: 700; }

/* ============ share sheet ============ */
.modal {
  position: fixed; inset: 0; z-index: 50;
  background: var(--backdrop);
  display: grid; place-items: end center;
  animation: fade var(--dur) var(--ease);
}
@media (min-width: 640px) { .modal { place-items: center; } }
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: 100%; max-width: 480px; max-height: 94dvh; overflow: auto;
  background: var(--bg); border-top: 1px solid var(--line-2);
  padding: var(--s4) var(--s4) calc(var(--s4) + var(--safe-b));
  animation: rise 220ms var(--ease);
}
@media (min-width: 640px) { .sheet { border: 1px solid var(--line-2); } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s3); }
.sheet-head h2 { margin: 0; font-family: var(--font-title); font-weight: var(--title-weight); font-style: var(--title-style); font-size: calc(26px * var(--ts)); text-transform: var(--title-case); }
.sheet .field { margin-bottom: var(--s4); }
.cardwrap { display: grid; justify-items: center; margin-bottom: var(--s4); }
.sheet-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2);
  position: sticky; bottom: calc(-1 * (var(--s4) + var(--safe-b)));
  margin: 0 calc(-1 * var(--s4)); padding: var(--s3) var(--s4) calc(var(--s4) + var(--safe-b));
  background: var(--bg); border-top: 1px solid var(--line-2);
}
.cardimg { width: 100%; max-width: 360px; height: auto; box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.cardload { width: 100%; max-width: 360px; aspect-ratio: 9 / 14; display: grid; place-items: center; background: var(--sunk); color: var(--muted); font-weight: 700; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + var(--s4)); z-index: 60;
  transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: var(--s3) var(--s4); border-radius: var(--r);
  font-size: 15px; font-weight: 700; box-shadow: var(--shadow);
  animation: rise 200ms var(--ease);
  max-width: calc(100vw - 32px);
}
body.has-actionbar .toast { bottom: calc(96px + var(--safe-b)); }
@media (min-width: 1024px) { body.has-actionbar .toast { bottom: var(--s6); } }
@media (min-width: 900px) { .toast { bottom: var(--s6); } }

/* ================================================================
 * MOVIE POSTER LAYOUT
 * Dark by default. Three type roles only:
 *   1. Teko — page titles (the matchup, My record, The rules), the countdown, the big record
 *   2. Barlow Bold — fighter names, buttons, numbers
 *   3. the label — Barlow 700, 13px, uppercase, .14em (every small heading/tag)
 * Red is for: the kicker, the main button, your pick, live. Nothing else.
 * Overrides the rules above.
 * ================================================================ */
:root { --label-track: .14em; }
body { position: relative; background: var(--bg); }
body::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 720px; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px; background-position: center top;
  -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent);
}
.topbar { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
body[data-page="home"] .topbar-in { height: 56px; }
body[data-page="home"] .topbar { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.tabbar { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tabbar a { font-size: 14px; letter-spacing: var(--label-track); }
.tabbar a[aria-current="page"]::after { top: 0; width: 32px; height: 2px; margin-left: -16px; transform: none; }

/* ---------- the one label style ---------- */
.hero-kicker, .count-label, .sec-title, .cardsec-head h2, .cardsec-head > span,
.wc, .rds, .opt-name, .field label, .flabel, .boutform legend, .pt-vs, .vsline, .edate span {
  font-family: var(--font-ui); font-weight: 700; font-style: normal; font-size: 13px; line-height: 1.2;
  letter-spacing: var(--label-track); text-transform: uppercase;
}
.count-label, .cardsec-head > span, .rds, .vsline { color: var(--muted); }
.wc, .opt-name, .field label, .flabel, .boutform legend { color: var(--ink-2); }
.hero-kicker { color: var(--red-text); }
.pt-vs { color: var(--muted); font-size: 16px; font-weight: 600; }

/* ---------- section headers: LABEL ............ meta, one hairline under ---------- */
.sec-title, .cardsec-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3);
  margin: 0 0 var(--s1); padding-bottom: var(--s2); border-bottom: 1px solid var(--line-2); color: var(--muted);
}
.sec-title::before, .sec-title::after, .cardsec-head h2::before, .cardsec-head h2::after { content: none; }
.cardsec-head h2 { margin: 0; color: var(--ink); }
.cardsec { margin-top: var(--s10); }
.elist, .lines { border-top: 0; }
.elist li, .line { border-bottom-color: var(--line); }
.erow { padding-left: 0; padding-right: 0; }

/* smaller headings are Barlow, not Teko */
.empty h2, .aside-in h2, .sheet-head h2 {
  font-family: var(--font-display); font-weight: 700; font-style: normal; text-transform: uppercase;
  font-size: 22px; line-height: 1.1; letter-spacing: .02em;
}

/* ---------- the poster title: BUCKLEY / vs / MALOTT ---------- */
.poster-title,
.hero.poster .poster-title,
.ehead .poster-title {
  display: grid; justify-items: center; gap: 0; margin: 0;
  /* first guess from --len letters; fitTitles() then sizes each name to fill the width */
  font-size: min(var(--title-max, 76px), calc((min(100vw, 720px) - 32px) / (var(--len) * .42)));
  line-height: .88; letter-spacing: 0; text-align: center;
}
.pt-name { white-space: nowrap; }
/* —— vs —— between the names */
.poster-title .pt-vs {
  justify-self: stretch; display: flex; align-items: center; gap: var(--s3); margin: var(--s2) 0; padding: 0;
  font-family: var(--font-title); font-weight: var(--title-weight); font-size: 32px; line-height: 1; letter-spacing: 0;
  text-transform: uppercase; color: var(--red-text);
}
.pt-vs i { flex: 1; height: 2px; background: var(--red); }
.hero h1::after { display: none; }

/* ---------- home (matches "Centered poster" in /options/home-builder.html) ---------- */
.page.home { max-width: 720px; }
.hero.poster {
  background: transparent; color: var(--ink); clip-path: none; border: 0;
  padding: var(--s1) 0 0; text-align: center;
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center;
}
.hero.poster .hero-kicker { justify-content: center; margin-bottom: var(--s2); font-size: 12px; }
.hero.poster .poster-title { --title-max: 999px; width: 100%; }
.hero.poster .hero-meta { margin-top: var(--s4); color: var(--muted); font-size: 15px; }
.hero.poster .hero-meta b { color: var(--ink); font-weight: 600; }
.hero.poster .hero-foot {
  margin-top: var(--s6); padding-top: 0; border-top: 0; width: 100%; max-width: 480px;
  display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; justify-items: center; gap: 0;
}
.hero.poster .count-label { font-size: 12px; }
.hero.poster .count {
  margin: var(--s1) 0 0; font-family: var(--font-title); font-weight: var(--title-weight);
  font-size: 40px; line-height: 1; letter-spacing: 0; text-transform: uppercase; color: var(--red-text);
}
.hero.poster .count small { font-size: inherit; color: inherit; margin: 0; }
/* scoreboard countdown (option C in /options/countdown.html) */
.board { display: flex; justify-content: center; align-items: flex-start; gap: var(--s1); margin-top: var(--s2); }
.bd-cell { display: grid; justify-items: center; }
.bd-cell b {
  font-family: var(--font-title); font-weight: var(--title-weight); font-size: 64px; line-height: .9; padding-top: 6px;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.bd-cell small { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bd-colon { font-family: var(--font-title); font-weight: var(--title-weight); font-size: 48px; line-height: 1; padding: 6px var(--s1) 0; color: var(--red-text); }
.hero.poster .count-pts { font-size: 24px; color: var(--muted); }
.hero-cta {
  margin-top: var(--s4); width: 100%; min-height: 56px; border-radius: 12px;
  font-family: var(--font-title); font-weight: var(--title-weight); font-size: 22px; letter-spacing: .04em; line-height: 1;
}
.hero.poster .hero-progress {
  margin-top: var(--s3); width: 100%; display: flex; justify-content: space-between; gap: var(--s3);
  color: var(--muted); font-size: 14px;
}

/* the rest of the main card, billed like a poster */
.maincard { margin-top: var(--s8); text-align: center; }
.maincard .sec-title { justify-content: center; border-bottom: 0; padding-bottom: 0; margin-bottom: var(--s2); font-size: 12px; }
.bills { list-style: none; margin: 0; padding: 0; }
.bills li { border-top: 1px solid var(--line); }
.bills li:last-child { border-bottom: 1px solid var(--line); }
.bill { display: block; padding: var(--s3) 0; color: var(--ink); text-decoration: none; transition: background var(--dur) var(--ease); }
.bill:hover { background: var(--sunk); }
.bill b {
  display: block; font-family: var(--font-title); font-weight: var(--title-weight); font-size: 28px; line-height: 1.05;
  text-transform: uppercase; overflow-wrap: anywhere;
}
.bill .vs { font-size: .7em; vertical-align: 0; padding: 0 .1em; color: var(--red-text); }
.bill small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; font-weight: 600; }
.bill small strong { color: var(--ink); }

.home-lists { display: grid; gap: var(--s8); margin-top: var(--s8); }
.home-lists > .sec { margin-top: 0; }
.home-lists > .addlink { margin-top: calc(-1 * var(--s4)); justify-self: start; }
.home > .sec:first-child { margin-bottom: var(--s4); }
.recline { gap: var(--s3); min-height: 56px; padding: 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.recline .rl-label { flex: none; font-size: 13px; font-weight: 700; letter-spacing: var(--label-track); text-transform: uppercase; color: var(--muted); }
.recline b { font-family: var(--font-ui); font-weight: 700; font-style: normal; font-size: 20px; }
.recline .rl-sub { flex: 1; font-size: 15px; font-weight: 400; color: var(--muted); }
.recline svg { width: 16px; height: 16px; }

/* event rows: date, name, chevron */
.erow { grid-template-columns: 40px minmax(0, 1fr) auto; gap: var(--s4); min-height: 64px; padding: var(--s2) 0; }
.edate b { font-family: var(--font-ui); font-weight: 700; font-style: normal; font-size: 22px; }
.edate span { margin-top: 2px; font-size: 12px; color: var(--muted); }
.ebody strong { font-family: var(--font-ui); font-weight: 700; font-style: normal; font-size: 17px; line-height: 1.25; text-transform: none; }
.eside > svg { width: 16px; height: 16px; }

/* ---------- buttons ---------- */
.btn:disabled { opacity: 1; background: var(--sunk); border-color: var(--sunk); color: var(--muted); }
.btn-ghost { border-width: 1px; border-color: var(--line-2); }
/* secondary buttons: quiet fill, not a bright block */
.btn-dark { background: var(--sunk); color: var(--ink); border: 1px solid var(--line-2); }
.btn-dark:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 10%, var(--sunk)); }
.btn-ghost:hover:not(:disabled) { border-color: var(--ink); background: transparent; }
/* switches (My picks / Results, Look): underline tabs, like the bottom bar */
.seg { border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; max-width: 360px; margin-left: auto; margin-right: auto; }
.seg button { min-height: var(--tap); font-family: var(--font-ui); font-weight: 700; font-size: 14px; letter-spacing: var(--label-track); color: var(--muted); box-shadow: inset 0 -2px 0 transparent; }
.seg button + button { border-left: 0; }
.seg button:hover { background: transparent; color: var(--ink); }
.seg button[aria-pressed="true"] { background: transparent; color: var(--ink); box-shadow: inset 0 -2px 0 var(--red); }

/* ---------- card page ---------- */
.ehead { text-align: center; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; margin-bottom: var(--s8); }
.ehead .hero-kicker { justify-content: center; margin-bottom: var(--s3); }
.ehead .poster-title { --title-max: 80px; width: 100%; }
.ehead-meta { margin-top: var(--s3); }
.bout { border-top: 1px solid var(--line); padding: var(--s4) 0 var(--s5); gap: var(--s3); }
.cardsec-head + .bouts > .bout:first-child { border-top: 0; }
.bout-top { justify-content: center; gap: var(--s3); }
.bout-top .rds { margin-left: 0; }
.vsline { font-size: 12px; text-transform: lowercase; letter-spacing: .04em; }

/* fighter tiles: quiet box; your pick gets a red outline + check, not an inverted block */
.fighter { border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 70%, transparent); }
button.fighter[aria-pressed="false"]:hover { background: var(--sunk); border-color: var(--muted); }
.fighter[aria-pressed="true"],
button.fighter[aria-pressed="true"]:hover {
  background: color-mix(in srgb, var(--red) 14%, var(--surface)); color: var(--ink);
  border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red);
}
.fighter[aria-pressed="true"] .rk,
.fighter[aria-pressed="true"] .fmeta { color: var(--muted); }
.fighter[aria-pressed="true"] .rk.champ { color: var(--gold-ink); }

.opts { gap: var(--s4); padding-top: var(--s1); }
.opt { gap: var(--s2); }
.opt-head { justify-content: center; }
.pill { border-width: 1px; }
.summary { justify-items: center; grid-template-columns: auto; text-align: center; padding: var(--s3) var(--s2); }
.summary .check-badge { display: none; }
.sum-name { justify-content: center; }
.sum-sub { grid-column: auto; justify-content: center; }
.picksum, .result-line { justify-content: center; }
.outcome { margin-left: 0; }
.note { text-align: center; }
.aside-in { border-top: 1px solid var(--line-2); }

/* ---------- record page ---------- */
.page.narrow > .ehead .display { font-size: 40px; line-height: 1; }
.bigstat { text-align: center; padding: var(--s2) 0 var(--s8); }
.bigstat b { font-family: var(--font-title); font-weight: var(--title-weight); font-size: clamp(64px, 20vw, 112px); line-height: 1; letter-spacing: 0; }
.bigstat p { margin-top: var(--s3); color: var(--muted); }
.lines { max-width: 480px; margin-left: auto; margin-right: auto; }
.page.narrow .sec { max-width: 480px; margin-left: auto; margin-right: auto; }
.empty { text-align: center; border-top: 0; padding: 0 0 var(--s8); }
.empty p { margin-left: auto; margin-right: auto; }
.page > .namefield { margin: var(--s8) auto 0; }
.block .namefield { margin: 0; }

/* ---------- rules page: reading content, left aligned ---------- */
.block { border-top: 0; padding-top: 0; }
.block .sec-title { justify-self: stretch; }
.block > p, .lede { max-width: 60ch; }
.scoretable { max-width: 480px; }

@media (min-width: 900px) {
  .hero.poster { padding-top: var(--s4); }
  .hero.poster .poster-title { --title-max: 160px; }
  .ehead .poster-title { --title-max: 112px; }
  body[data-page="home"] .topbar-in { height: 88px; }
}

/* ================================================================
 * THE REST OF THE SITE, MATCHED TO THE HOME SCREEN
 * Teko for anything big (titles, names, numbers, buttons), Barlow for
 * reading. Rounded 12px corners. Your pick and the main button are solid red.
 * ================================================================ */
:root { --r: 12px; --r-sm: 8px; }

/* buttons: Teko, like "Make your picks" */
.btn {
  font-family: var(--font-title); font-weight: var(--title-weight); font-style: normal;
  font-size: 20px; line-height: 1; letter-spacing: .04em; padding-top: 2px;
}
.btn-lg { font-size: 22px; }
.topbar-title strong { font-family: var(--font-title); font-weight: var(--title-weight); font-size: 22px; line-height: 1; letter-spacing: .02em; }

/* smaller headings are Teko too now */
.empty h2, .aside-in h2, .sheet-head h2 {
  font-family: var(--font-title); font-weight: var(--title-weight); font-size: 32px; line-height: .95; letter-spacing: .01em;
}

/* ---------- card page ---------- */
.vsline { font-family: var(--font-title); font-weight: var(--title-weight); font-size: 20px; letter-spacing: 0; text-transform: uppercase; color: var(--red-text); }
.fighter { border-radius: var(--r); padding: var(--s3); gap: var(--s2); }
.fname { font-family: var(--font-title); font-weight: var(--title-weight); font-size: 28px; line-height: .9; letter-spacing: .01em; overflow-wrap: normal; word-break: normal; }
.fodds { font-weight: 700; }

/* your pick: solid red */
.fighter[aria-pressed="true"],
button.fighter[aria-pressed="true"]:hover {
  background: var(--red); border-color: var(--red); color: var(--on-red); box-shadow: none;
}
button.fighter[aria-pressed="true"]:hover { background: var(--red-hover); border-color: var(--red-hover); }
.fighter[aria-pressed="true"] .rk,
.fighter[aria-pressed="true"] .rk.champ,
.fighter[aria-pressed="true"] .fmeta { color: rgba(255, 255, 255, .85); }
.fighter .check-badge { background: var(--on-red); color: var(--red); box-shadow: 0 0 0 2px var(--bg); }

.pill { border-radius: var(--r-sm); border-width: 1px; font-weight: 700; }
.pill[aria-pressed="true"], .pill.lock[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--on-red); }
.pill[aria-pressed="true"] .pts { opacity: .85; }

.summary { border-radius: var(--r); }
.sum-name { font-family: var(--font-title); font-weight: var(--title-weight); font-size: 28px; line-height: .95; }
.outcome { border-radius: var(--r-sm); }
.ab-stats b { font-family: var(--font-title); font-weight: var(--title-weight); font-size: 28px; }
.bar { border-radius: 4px; }
.bar i { border-radius: 4px; }
.aside-score { font-family: var(--font-title); font-weight: var(--title-weight); font-size: 48px; line-height: 1; }

/* ---------- record page ---------- */
.page.narrow > .ehead .display { font-size: 64px; line-height: .9; }
.bigstat b { font-size: clamp(96px, 32vw, 160px); line-height: .85; }
.bigpts { font-family: var(--font-title); font-weight: var(--title-weight); font-size: 40px; color: var(--red-text); }
.line dd { font-family: var(--font-title); font-weight: var(--title-weight); font-size: 28px; line-height: 1; }

/* ---------- rules page ---------- */
.scoretable td:last-child { font-family: var(--font-title); font-weight: var(--title-weight); font-size: 28px; line-height: 1; }

/* ---------- forms ---------- */
.input, .select { border-width: 1px; }
.tag { border-radius: 4px; }
.plist button { min-height: var(--tap); }

/* ---------- phone sign-in (sync.js) ---------- */
.acct-cta {
  display: grid; gap: var(--s3); margin: var(--s6) auto var(--s8); max-width: 360px; padding: var(--s4);
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); text-align: left;
}
.acct-cta strong { display: block; font-family: var(--font-title); font-weight: var(--title-weight); font-size: 24px; line-height: 1; text-transform: uppercase; }
.acct-cta p { margin-top: var(--s1); color: var(--muted); font-size: 15px; }
.acct-cta .btn { width: 100%; }
.acct-on { display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; }
.acct-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--win); flex: none; transform: translateY(-1px); }
.acct-form { display: grid; }
.acct-lede { color: var(--ink-2); font-size: 16px; margin-bottom: var(--s4); }
.acct-sheet .field { margin-bottom: var(--s2); }
.acct-otp { font-family: var(--font-title); font-weight: var(--title-weight); font-size: 32px; letter-spacing: .3em; text-align: center; padding-top: 4px; }
.acct-err { min-height: 20px; margin-bottom: var(--s2); color: var(--red-text); font-size: 14px; font-weight: 600; }
.acct-go { width: 100%; }
.acct-back { width: 100%; margin-top: var(--s2); }
.acct-fine { margin-top: var(--s3); color: var(--muted); font-size: 13px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
