/* 10-8 / TEN EIGHT MMA. Brand rules: CLAUDE.md -> "Brand". Every color on the site comes from here. */
:root {
  /* brand */
  --ring-black: #0C0C0E;      /* page background */
  --panel-c: #16161A;
  --raised: #1C1C21;
  --border: #2A2A30;
  --bone: #F2EEE6;            /* main text */
  --muted-1: #C9C4BA;
  --muted-2: #A8A39A;
  --score-red: #E03A2F;       /* brand, active menu, borders and marks (not small text: 4.5:1 fails) */
  --dark-red: #C22E24;        /* on Bone, and behind white button text */
  --red-text: #FF6A5C;        /* red links and red text on dark (6:1+) */
  --belt-gold: #D8A93B;       /* only: the big panel pick % and the Judges top-10 highlight */
  --corner-blue: #4C8DD6;     /* the other fighter's side */
  --odds-teal: #4FB3A6;       /* sportsbooks (never the judges' colors) */
  --win: #5BC08A;             /* status: right pick / win */
  --loss: #F26B5E;            /* status: wrong pick / loss */
  --white: #FFFFFF;
  --shadow: #000000;
  /* five-level judges bar */
  --lvl-strong-a: #E03A2F;    /* red corner: the left fighter */
  --lvl-lean-a: #8A2A24;
  --lvl-fence: #3A3A42;
  --lvl-lean-b: #2E5582;
  --lvl-strong-b: #4C8DD6;    /* blue corner: the right fighter */
  --side-a-text: var(--red-text);       /* text in the left fighter's color (Score Red itself is too dark for text) */
  --blue-text: #5C9BE0;       /* blue text on dark and on blue tints (5:1+); the bar itself stays Corner Blue */
  --side-b-text: var(--blue-text);

  /* names the page styles use */
  --bg: var(--ring-black);
  --panel: var(--panel-c);
  --panel-2: var(--raised);
  --line: var(--border);
  --text: var(--bone);
  --soft: var(--muted-1);
  --muted: var(--muted-2);
  --accent: var(--score-red);
  --gold: var(--belt-gold);
  --a-strong: var(--lvl-strong-a);
  --a-soft: var(--lvl-lean-a);
  --fence: var(--lvl-fence);
  --b-soft: var(--lvl-lean-b);
  --b-strong: var(--lvl-strong-b);
  --odds: var(--odds-teal);
  --odds-soft: color-mix(in srgb, var(--odds-teal) 30%, var(--raised));
  --radius: 10px;
  --max: 1200px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-brand: "Teko", "Barlow Condensed", "Arial Narrow", sans-serif;
  font-family: var(--font-body);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.45; }
a { color: inherit; }

/* Menu bar (assets/layout.js draws it) */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 94%, transparent);
               border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sh-inner { max-width: var(--max); margin: 0 auto; padding: 0 20px; height: 58px; display: flex; align-items: center; gap: 28px; }
.sh-logo { display: flex; flex: none; }
.sh-logo img { height: 36px; width: auto; display: block; }
.sh-nav { display: flex; gap: 4px; height: 100%; }
.sh-nav a { position: relative; display: flex; align-items: center; padding: 0 12px; color: var(--soft); text-decoration: none;
            font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: 0.04em; text-transform: uppercase; }
.sh-nav a:hover { color: var(--text); }
.sh-nav a.active { color: var(--text); }
.sh-nav a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; background: var(--score-red);
                          border-radius: 3px 3px 0 0; }
.sh-menu { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px;
           background: var(--panel); color: var(--text); cursor: pointer; }
.sh-menu svg { stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; display: block; margin: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--panel); margin-top: 40px; }
.sf-inner { max-width: var(--max); margin: 0 auto; padding: 22px 20px 28px; display: grid; grid-template-columns: auto 1fr; gap: 10px 32px; align-items: center; }
.sf-logo img { height: 44px; width: auto; display: block; }
.sf-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sf-links a { color: var(--soft); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 15px;
              letter-spacing: 0.04em; text-transform: uppercase; }
.sf-links a:hover { color: var(--text); }
.sf-note { grid-column: 1 / -1; margin: 6px 0 0; font-size: 12px; color: var(--muted); }

/* Page header strip: title + one line */
.page-head { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
             padding: 16px 20px 14px 26px; margin: 0 0 16px; }
.page-head::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--score-red); }
.page-head::after { content: ""; position: absolute; right: -40px; top: 0; bottom: 0; width: 180px;
                    background: linear-gradient(105deg, transparent 0 46%, color-mix(in srgb, var(--score-red) 16%, transparent) 46% 58%, transparent 58%); }
.page-head h1 { font-family: var(--font-head); font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: 0.01em;
                text-transform: uppercase; margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--soft); font-size: 14px; max-width: 760px; }
.brand-label { font-family: var(--font-brand); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

main { max-width: var(--max); margin: 0 auto; padding: 18px 20px 24px; }
h1, h2, h3 { font-family: var(--font-head); }
h1 { font-size: 30px; margin: 0 0 6px; }
.lead { color: var(--muted); margin: 0 0 24px; }

/* Card (event) header */
.event { margin: 0 0 26px; }
.event-head {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--score-red) 9%, var(--panel)), var(--panel));
  border: 1px solid var(--line); border-left: 4px solid var(--score-red); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 10px;
}
.event-name { font-family: var(--font-head); font-size: 28px; line-height: 1.05; font-weight: 800; text-transform: uppercase; margin: 0; }
.event-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; color: var(--muted); font-size: 14px; }
.event-meta b { color: var(--text); font-weight: 600; }
.event-note { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* One fight */
.fight { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }

.fight.main { border-color: color-mix(in srgb, var(--score-red) 45%, var(--line)); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
       padding: 3px 8px; border-radius: 999px; background: var(--panel-2); color: var(--muted); }
.tag.red { background: none; box-shadow: inset 0 0 0 1px var(--score-red); color: var(--red-text); }   /* outline only, so it never clashes with the red bar */
.tag.title, .tag.award { background: none; box-shadow: inset 0 0 0 1px var(--soft); color: var(--text); }

.matchup { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.fighter { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fighter.b { flex-direction: row-reverse; }
.fighter .f-text { min-width: 0; }
.fighter .name { font-family: var(--font-head); font-size: 22px; line-height: 1.05; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; }
.fighter .sub { font-size: 13px; color: var(--muted); }
.fighter .sub .bit { white-space: nowrap; }
.flag { height: 18px; width: auto; border-radius: 3px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--bone) 28%, transparent);
        vertical-align: -4px; margin-right: 6px; }
.fighter.b { text-align: right; }
.fighter.pick .name::after { content: " ✓"; color: var(--text); }
.vs { font-family: var(--font-brand); font-weight: 600; font-size: 18px; letter-spacing: 0.08em; color: var(--muted); }

/* The five-level judge bar */
.bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin: 14px 0 6px; background: var(--panel-2); }
.bar div { height: 100%; }
.l-free-a { background: var(--a-strong); }
.l-lean-a { background: var(--a-soft); }
.l-fence  { background: var(--fence); }
.l-lean-b { background: var(--b-soft); }
.l-free-b { background: var(--b-strong); }
.bar-key { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; font-size: 12px; color: var(--muted); }
.bar-key div { text-align: center; }
.bar-key b { display: block; color: var(--text); font-family: var(--font-head); font-weight: 800; font-size: 18px; line-height: 1.1; }

/* Panel verdict + reasons on the left, sportsbook box on the right */
.result { display: grid; grid-template-columns: 1fr 250px; grid-template-areas: "verdict odds" "reasons odds";
          gap: 0 22px; align-items: start; margin-top: 14px; }
.result .verdict { grid-area: verdict; }
.result .reasons { grid-area: reasons; }
.result .odds { grid-area: odds; }
.verdict { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; }
.verdict .pick { font-family: var(--font-head); font-size: 20px; font-weight: 800; text-transform: uppercase; }
.verdict .pct { font-family: var(--font-head); font-size: 32px; line-height: 1; font-weight: 800; color: var(--gold); }
.verdict .level { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

.odds { background: var(--panel-2); border: 1px solid var(--line); border-top: 2px solid var(--odds);
        border-radius: 10px; padding: 10px 12px; }
.odds-title { font-family: var(--font-brand); font-size: 15px; line-height: 1; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--odds); margin-bottom: 6px; }
.odds-row { display: grid; grid-template-columns: 1fr auto 3.2em; gap: 10px; align-items: baseline;
            padding: 4px 6px; border-radius: 6px; font-size: 13px; color: var(--muted); }
.odds-row.fav { background: color-mix(in srgb, var(--odds) 12%, transparent); color: var(--text); }
.odds-row .o-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odds-row .o-line { font-variant-numeric: tabular-nums; }
.odds-row .o-pct { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.odds-row.fav .o-pct { color: var(--odds); }
.odds-bar { display: flex; height: 4px; border-radius: 999px; overflow: hidden; margin: 8px 0 0; gap: 2px; }
.odds-bar div { background: var(--odds-soft); }
.odds-bar div.fav { background: var(--odds); }
.odds-none { font-size: 13px; color: var(--muted); padding: 6px 0 2px; }
.odds-note { margin-top: 8px; font-size: 11px; color: var(--muted); }

.reasons { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.reasons li { font-size: 13px; color: var(--muted); padding-left: 14px; position: relative; }
.reasons .r-stat { display: block; color: var(--text); }
.reasons .r-why { display: block; font-size: 12px; color: var(--muted); }
.segment { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; font-family: var(--font-brand); font-weight: 600;
           font-size: 18px; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.segment::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.reasons li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.reasons li:has(.sicon) { padding-left: 22px; }
.reasons li:has(.sicon)::before { display: none; }
.reasons li .sicon { position: absolute; left: 0; top: 2px; color: var(--soft); }
.value { margin-top: 10px; font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; }

/* Judges leaderboard */
.season-head { background: linear-gradient(135deg, color-mix(in srgb, var(--score-red) 9%, var(--panel)), var(--panel)); border: 1px solid var(--line);
               border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.season-head h2 { margin: 0 0 12px; font-size: 20px; font-weight: 800; }
.season-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.season-stats .stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.season-stats .stat span { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.season-stats .stat b { font-size: 16px; }
.season-stats .stat em { font-style: normal; font-size: 12px; color: var(--muted); }

.sort-toggle { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-bottom: 10px; }
.sort-toggle button { font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); background: none; border: 0;
                      padding: 7px 16px; border-radius: 999px; cursor: pointer; }
.sort-toggle button[aria-pressed="true"] { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.board-note { font-size: 13px; color: var(--muted); margin: 0 0 8px; }

.jlist { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.jrow { display: grid; grid-template-columns: 34px 38px minmax(0, 1fr) 86px 62px 46px 60px 82px 82px 54px;
        align-items: center; gap: 8px; width: 100%; padding: 10px 14px; border: 0; border-top: 1px solid var(--line);
        background: none; color: var(--text); font: inherit; font-size: 13px; text-align: right; cursor: pointer; }
.jrow:hover { background: var(--panel-2); }
/* top 10 / bottom 10 of the ranking being viewed (moves with the toggle) */
.jrow.hl-top { background: color-mix(in srgb, var(--gold) 6.5%, transparent); box-shadow: inset 3px 0 0 color-mix(in srgb, var(--gold) 60%, transparent); }
.jrow.hl-top:hover { background: color-mix(in srgb, var(--gold) 12%, transparent); }
.jrow.hl-bottom { background: color-mix(in srgb, var(--score-red) 6.5%, transparent); box-shadow: inset 3px 0 0 color-mix(in srgb, var(--score-red) 55%, transparent); }
.jrow.hl-bottom:hover { background: color-mix(in srgb, var(--score-red) 12%, transparent); }
.jrow:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }
.jrow.jhead { border-top: 0; cursor: default; font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
              text-transform: uppercase; color: var(--muted); background: var(--panel-2); white-space: nowrap; }
.jrow i { font-style: normal; }
.c-stats { display: contents; }                       /* its 5 stats are table cells on desktop */
.c-stats i { display: none; }                          /* phone-only labels */
.c-rank { text-align: left; font-weight: 800; font-size: 15px; }
.c-move { text-align: left; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.move.up { color: var(--win); }
.move.down { color: var(--loss); }
.move.same { color: var(--muted); }
.c-judge { text-align: left; min-width: 0; }
.j-name { font-weight: 800; font-size: 15px; }
.j-style { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-pts b { font-size: 15px; }
.c-pts > i { display: none; }
.jrow .hi { color: var(--text); font-weight: 800; }
.jrow span { font-variant-numeric: tabular-nums; }
.badge { display: inline-block; margin-left: 8px; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
         padding: 2px 7px; border-radius: 999px; vertical-align: 2px; }
.badge.top { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.badge.bottom { background: var(--panel-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.badge { cursor: help; }
.b-info { display: inline-grid; place-items: center; width: 12px; height: 12px; margin-left: 5px; border-radius: 50%;
          border: 1px solid currentColor; font-size: 8px; font-style: italic; font-family: Georgia, serif; text-transform: none;
          letter-spacing: 0; opacity: 0.8; vertical-align: 0; }

.how { margin-top: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.how h2 { margin: 0 0 6px; font-size: 16px; }
.how p { margin: 0; font-size: 14px; color: var(--muted); }
.how b { color: var(--text); }

/* Judge profile (pop-up) */
.profile { width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 20px 22px 22px;
           background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); }
.profile::backdrop { background: color-mix(in srgb, var(--shadow) 60%, transparent); }
.profile h2 { margin: 0 32px 2px 0; font-size: 22px; }
.profile h3 { margin: 18px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.p-style { margin: 0; color: var(--muted); font-size: 13px; }
.p-learn { margin: 8px 0 0; font-size: 12px; color: var(--muted); background: var(--panel-2); border-radius: 8px; padding: 8px 10px; }
.p-learn b { color: var(--text); }
.p-none { font-size: 13px; color: var(--muted); margin: 0; }

/* Last 3 cards (dropdowns) */
.p-cards { display: grid; gap: 8px; }
.card-dd { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; }
.card-dd summary { cursor: pointer; list-style: none; padding: 10px 36px 10px 12px; position: relative; }
.card-dd summary::-webkit-details-marker { display: none; }
.card-dd summary::after { content: "▾"; position: absolute; right: 14px; top: 12px; color: var(--muted); transition: transform 0.15s; }
.card-dd[open] summary::after { transform: rotate(180deg); }
.card-dd summary:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; border-radius: 10px; }
.cd-name { display: block; font-weight: 800; font-size: 14px; }
.cd-meta { font-size: 12px; color: var(--muted); }
.cd-meta b { color: var(--text); }
.cd-meta .tag { margin-left: 6px; font-size: 10px; padding: 2px 7px; white-space: nowrap; }
.cf-who .flag { margin-right: 4px; }
.cf-who { white-space: nowrap; }
.cf-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 13px; }
.cf-fight { font-weight: 700; }
.cf-fight .flag { height: 14px; vertical-align: -2px; margin-right: 4px; }
.cf-vs { color: var(--muted); font-weight: 400; margin: 0 2px; }
.cf-slot { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-text); margin-bottom: 2px; }
.cf-pick { grid-column: 1; color: var(--muted); }
.cf-pick b { color: var(--text); font-weight: 600; }
.cf-level { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-left: 4px; }
.cf-res { display: inline-block; width: 18px; font-weight: 800; }
.cf-res.win { color: var(--win); }
.cf-res.loss { color: var(--loss); }
.cf-res.draw { width: auto; margin-right: 6px; color: var(--muted); font-size: 12px; }
.cf-pts { grid-column: 2; grid-row: 1 / 3; align-self: center; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.cf-pts .dog { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--soft); }
.cf-actual { grid-column: 1 / 3; font-size: 12px; color: var(--muted); }
.cf-pts .if { display: block; font-size: 10px; font-weight: 600; color: var(--muted); }
.cf-wait { font-style: italic; }
.cf-why { grid-column: 1 / 3; margin-top: 4px; padding: 8px 10px; background: var(--panel); border-radius: 8px; }
.cf-conf { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cf-why .reasons { margin-top: 6px; }
.close-call { margin: 4px 0 0; font-size: 12px; color: var(--muted); font-style: italic; }
.card-dd.next { border-color: color-mix(in srgb, var(--score-red) 45%, var(--line)); }
.card-dd .cd-name .tag { font-size: 10px; padding: 2px 7px; margin-right: 4px; vertical-align: 1px; }
.p-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
           background: var(--panel-2); color: var(--text); font-size: 14px; cursor: pointer; }
.p-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.p-stats div { background: var(--panel-2); border-radius: 8px; padding: 8px; text-align: center; }
.p-stats b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.p-stats span { font-size: 11px; color: var(--muted); }
.wchart { display: grid; gap: 4px; }
.wrow { display: grid; grid-template-columns: 150px 1fr 46px; gap: 10px; align-items: center; font-size: 12px; }
.w-label { color: var(--muted); }
.w-track { height: 8px; }
.w-bar { display: block; height: 8px; border-radius: 0 4px 4px 0; background: color-mix(in srgb, var(--soft) 75%, var(--panel)); min-width: 2px; }
.wrow:hover .w-label, .wrow:hover .w-val { color: var(--text); }
.w-val { text-align: right; font-variant-numeric: tabular-nums; }
.ageview p { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.age-track { position: relative; height: 6px; border-radius: 999px; background: var(--panel-2); margin: 6px 6px 0; }
.age-mid { position: absolute; left: 50%; top: -4px; width: 2px; height: 14px; background: var(--line); }
.age-dot { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
           background: var(--text); box-shadow: 0 0 0 2px var(--panel); }
.age-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; }

/* Fighter names link to their profile */
a.fighter-link { color: inherit; text-decoration: none; }
a.fighter-link:hover { text-decoration: underline; text-decoration-color: var(--red-text); text-underline-offset: 3px; }

/* Fighters page: search */
.fsearch { position: relative; margin: 6px 0 22px; }
.fsearch input { width: 100%; font: inherit; font-size: 18px; color: var(--text); background: var(--panel); border: 1px solid var(--line);
                 border-radius: 999px; padding: 14px 48px 14px 22px; outline: none; -webkit-appearance: none; appearance: none; }
.fsearch input::-webkit-search-cancel-button { display: none; }
.fsearch input:focus { border-color: var(--score-red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--score-red) 18%, transparent); }
.fs-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%;
            border: 0; background: var(--panel-2); color: var(--muted); cursor: pointer; font-size: 13px; }
.fs-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
           background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px color-mix(in srgb, var(--shadow) 50%, transparent); }
.fs-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.fs-list li .flag { margin: 0; }
.fs-list li.on, .fs-list li:hover { background: var(--panel-2); }
.fs-name { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-name i { font-weight: 400; color: var(--muted); }
.fs-meta { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.fs-list li.fs-none { display: block; color: var(--muted); cursor: default; }

/* Top 100 */
.top100 h2 { font-size: 20px; margin: 0 0 4px; }
.div-tabs-wrap { position: relative; margin: 8px 0 16px; }
.div-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.div-tabs button { flex: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--panel);
                   border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.div-tabs button[aria-selected="true"] { color: var(--text); border-color: var(--score-red); background: color-mix(in srgb, var(--score-red) 12%, transparent); }
.tlist { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.trow { display: grid; grid-template-columns: 38px minmax(0, 1fr) 96px 190px 170px; gap: 10px; align-items: center;
        padding: 10px 14px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 13px; }
.trow:hover { background: var(--panel-2); }
.trow.thead { border-top: 0; background: var(--panel-2); font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
              text-transform: uppercase; color: var(--muted); }
.trow i { font-style: normal; }
.trow:not(.thead) .t-last > i, .trow:not(.thead) .t-next > i { display: none; }
.t-rank { font-weight: 800; font-size: 15px; }
.t-name { min-width: 0; }
.t-name b { font-size: 15px; }
.t-name i { color: var(--muted); }
.t-name em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.t-name .flag { vertical-align: -3px; }
.t-elo b { font-size: 15px; font-variant-numeric: tabular-nums; }
.t-elo .move { font-size: 11px; font-weight: 700; margin-left: 4px; }
.t-last, .t-next { color: var(--muted); font-size: 12px; }
.res.W { color: var(--win); } .res.L { color: var(--loss); } .res.D, .res.NC { color: var(--muted); }

/* Fighter profile */
.fprofile .back { font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); background: none; border: 1px solid var(--line);
                  border-radius: 999px; padding: 7px 14px; cursor: pointer; margin-bottom: 14px; }
.fprofile .back:hover { color: var(--text); }
.fhead { background: linear-gradient(135deg, color-mix(in srgb, var(--score-red) 9%, var(--panel)), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius);
         padding: 20px 22px; margin-bottom: 12px; }
.fh-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.flag.big { height: 22px; vertical-align: -5px; margin-right: 8px; }
.fh-name { font-size: 32px; line-height: 1.1; margin: 6px 0 2px; }
.fh-nick { margin: 0; color: var(--soft); }
.fh-rec { margin: 4px 0 0; color: var(--muted); }
.fh-rec b { color: var(--text); font-size: 16px; }
.fh-elo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 12px 0 0; }
.fh-elo > b { font-size: 28px; color: var(--text); font-variant-numeric: tabular-nums; }
.fh-elo span { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.fh-elo span .move { margin-left: 4px; letter-spacing: 0; }
.fh-elo em { font-style: normal; font-size: 13px; color: var(--text); }
.fh-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 16px; margin: 16px 0 0; }
.fh-facts div { min-width: 0; }
.fh-facts dt { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fh-facts dd { margin: 2px 0 0; font-size: 14px; }
.fh-facts dd i { font-style: normal; color: var(--muted); font-size: 12px; }
.fcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; }
.fcard h3 { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fcard p { margin: 6px 0 0; font-size: 14px; }
.fcard .more { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--red-text); text-decoration: none; }
.nf-line { font-size: 15px !important; }
.nf-sides { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 10px; }
.sgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 26px; }
.sgroup h4 { margin: 12px 0 4px; font-size: 14px; }
.srow { padding: 8px 0; border-top: 1px solid var(--line); }
.s-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.s-label { font-size: 13px; }
.s-val { font-size: 15px; font-variant-numeric: tabular-nums; }
.pc { display: grid; grid-template-columns: 90px 1fr; gap: 8px; align-items: center; margin-top: 5px; }
.pc-track { height: 6px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.pc-track span { display: block; height: 100%; background: color-mix(in srgb, var(--soft) 75%, var(--panel)); border-radius: 0 4px 4px 0; }
.pc-txt { font-size: 11px; color: var(--muted); }
.s-why { margin: 4px 0 0 !important; font-size: 12px !important; color: var(--muted); }
.sw-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sw h4 { margin: 0 0 6px; font-size: 13px; }
.sw h4.good, .wl th.good { color: var(--win); }
.sw h4.bad, .wl th.bad { color: var(--loss); }
.sw ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.sw ul b { color: var(--text); }
.elo-chart { position: relative; }
.elo-chart svg { width: 100%; height: auto; display: block; }
.elo-chart .g { stroke: var(--line); stroke-width: 1; }
.elo-chart .ax { fill: var(--muted); font-size: 11px; }
.elo-chart .ln { fill: none; stroke: var(--soft); stroke-width: 2; stroke-linejoin: round; }
.elo-chart .hit { fill: transparent; cursor: pointer; }
.elo-chart circle.win { fill: var(--win); stroke: var(--panel); stroke-width: 2; }
.elo-chart circle.loss { fill: var(--panel); stroke: var(--loss); stroke-width: 2.5; }
.elo-chart circle.other { fill: var(--muted); stroke: var(--panel); stroke-width: 2; }
.elo-chart .pt:hover circle:not(.hit) { r: 6; }
.elo-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.elo-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.elo-legend i.win { background: var(--win); }
.elo-legend i.loss { box-shadow: inset 0 0 0 2px var(--loss); }
.elo-legend i.other { background: var(--muted); }
.elo-tip { position: absolute; pointer-events: none; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px;
           padding: 5px 9px; font-size: 12px; white-space: nowrap; box-shadow: 0 6px 18px color-mix(in srgb, var(--shadow) 40%, transparent); }
.wl { border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.wl th, .wl td { padding: 6px 14px 6px 0; text-align: left; }
.wl thead th { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.wl-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.wl-facts div { background: var(--panel-2); border-radius: 8px; padding: 8px 12px; min-width: 110px; }
.wl-facts b { display: block; font-size: 16px; }
.wl-facts span { font-size: 11px; color: var(--muted); }
.hlist { display: grid; }
.hrow { display: grid; grid-template-columns: 36px minmax(0, 1.4fr) minmax(0, 1fr) 120px minmax(0, 1fr); gap: 10px; align-items: center;
        padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.hrow.hhead { border-top: 0; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.hrow em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.hrow .flag { height: 14px; vertical-align: -2px; margin-right: 5px; }
.h-res { font-weight: 800; text-align: center; border-radius: 6px; padding: 3px 0; background: var(--panel-2); font-size: 12px; }
.h-res.W { color: var(--win); } .h-res.L { color: var(--loss); } .h-res.D, .h-res.NC { color: var(--muted); }
.h-odds { color: var(--muted); font-size: 12px; }
.h-pick { font-size: 12px; color: var(--muted); }
.h-pick i { display: none; font-style: normal; }

/* ---- 10-8 shared pieces ---- */
.state.loading, .state.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 16px; }
.state.loading img { animation: mark-pulse 1.2s ease-in-out infinite; }
.state.empty img { opacity: 0.85; }
.state.empty b { font-family: var(--font-head); font-weight: 800; font-size: 22px; text-transform: uppercase; color: var(--text); }
@keyframes mark-pulse { 0%, 100% { opacity: 0.45; transform: scale(0.94); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .state.loading img { animation: none; } }
.avatar { flex: none; border-radius: 50%; display: block; object-fit: cover; background: var(--panel-2); }
.avatar.ph .av-bg { fill: var(--panel-2); stroke: var(--line); stroke-width: 1; }
.avatar.ph .av-fg { fill: color-mix(in srgb, var(--soft) 55%, var(--panel-2)); }
.sicon { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.wc-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
            text-transform: uppercase; color: var(--soft); background: var(--panel-2); border-radius: 999px; padding: 3px 9px 3px 3px; }
.wc-badge b { font-family: var(--font-brand); font-weight: 600; font-size: 13px; line-height: 1; letter-spacing: 0.06em; color: var(--bg);
              background: var(--soft); border-radius: 999px; padding: 3px 6px 1px; }
.wc-badge.women b { background: var(--corner-blue); }

/* ---- Future Fights: one calm column (spacing scale 4/8/12/16/24/32/48) ---- */
main.narrow { max-width: 920px; }
.ph-note { font-size: 12px !important; color: var(--muted) !important; margin-top: 4px !important; }
.vote-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 24px; font-size: 12px; color: var(--muted); }
.vote-legend .vl-title { font-weight: 700; color: var(--soft); }
.vote-legend i { display: inline-block; width: 14px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.vote-legend .vl-sides { margin-left: auto; }
.event { margin: 0 0 48px; }
.event-head { margin-bottom: 16px; }
.segment { margin: 32px 0 12px; }
.event-head + .segment { margin-top: 24px; }
.fight-list { display: flex; flex-direction: column; gap: 12px; }
.fight { display: flex; flex-direction: column; gap: 12px; padding: 20px; margin: 0; }
.fight.prelim { padding: 16px; gap: 12px; }
.fight .tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.fight .tag { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; padding: 3px 9px; }
.fight .wc-badge { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--soft); background: none; padding: 0; gap: 6px; }
.fight .wc-badge b { font-family: var(--font-body); font-weight: 700; font-size: 10px; letter-spacing: 0.04em; padding: 3px 6px; color: var(--bg); }
.t-rounds { font-size: 12px; color: var(--muted); }
.fight .matchup { gap: 16px; }
.fight .vs { font-family: var(--font-body); font-weight: 500; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.fight .fighter { gap: 12px; }
.fight .fighter .name { font-size: 22px; line-height: 1.05; text-wrap: balance; overflow-wrap: break-word; }
.fight.main .fighter .name { font-size: 28px; }
.fight.prelim .fighter .name { font-size: 18px; }
.fight .fighter .name.long { font-size: 19px; }
.fight.main .fighter .name.long { font-size: 24px; }
.fight.prelim .fighter .name.long { font-size: 16px; }
.fight .fighter .sub { margin-top: 4px; font-size: 13px; }
.fight .avatar { width: 40px; height: 40px; opacity: 0.55; }
.fight .avatar.ph .av-bg { fill: var(--panel); }
.fight .avatar.ph .av-fg { fill: color-mix(in srgb, var(--soft) 28%, var(--panel)); }
.votes { display: flex; flex-direction: column; gap: 4px; }
.fight .bar { height: 10px; margin: 0; }
.fight .bar div { cursor: default; }
.fight .bar div:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.bar-nums { display: grid; grid-template-columns: repeat(5, 1fr); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar-nums span { text-align: center; }
.bar-nums span:first-child { text-align: left; }
.bar-nums span:last-child { text-align: right; }
/* a Strong Pick count or word in the same color as its bar segment (the same variables, so they always match) */
.num-strong-a { color: var(--lvl-strong-a); font-weight: 700; }
.num-strong-b { color: var(--lvl-strong-b); font-weight: 700; }
.vote-legend .num-strong-a, .vote-legend .num-strong-b { font-weight: 600; }
.bar-key b.num-strong-a { color: var(--lvl-strong-a); }
.bar-key b.num-strong-b { color: var(--lvl-strong-b); }
.bar-tip { position: absolute; z-index: 40; pointer-events: none; background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
           border-radius: 6px; padding: 4px 8px; font-size: 12px; white-space: nowrap;
           box-shadow: 0 6px 18px color-mix(in srgb, var(--shadow) 45%, transparent); }
.vline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.verdict2 { font-size: 15px; color: var(--soft); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.verdict2 b { color: var(--text); font-weight: 600; }
.verdict2 .pct { font-size: 24px; line-height: 1; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.verdict2 .dot { color: var(--muted); }
.verdict2 .lvl { font-size: 12px; font-weight: 600; color: var(--soft); background: var(--panel-2); border-radius: 999px; padding: 2px 9px; align-self: center; }
/* a level word in the picked side's color: red corner (left fighter) / blue corner (right fighter) */
.lvl.side-a, .level.side-a, .lvl-word.side-a { color: var(--side-a-text); }
.lvl.side-b, .level.side-b, .lvl-word.side-b { color: var(--side-b-text); }
.verdict2 .lvl.side-a { background: color-mix(in srgb, var(--score-red) 14%, var(--panel)); }
.verdict2 .lvl.side-b { background: color-mix(in srgb, var(--corner-blue) 14%, var(--panel)); }
.verdict2.none { font-size: 13px; color: var(--muted); }
.books { min-width: 0; font-size: 13px; color: var(--muted); }
.books .b-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.books .fav { color: var(--text); font-weight: 700; }
.books .odds-bar { margin: 6px 0 0; height: 3px; }
.books.none { font-size: 12px; }
.why { border-top: 1px solid var(--line); padding-top: 12px; }
.why summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--soft); }
.why summary::-webkit-details-marker { display: none; }
.why summary::after { content: "▾"; color: var(--muted); transition: transform 0.15s; }
.why[open] summary::after { transform: rotate(180deg); }
.why summary:hover { color: var(--text); }
.why summary:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
.why-body { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 12px 24px; margin-top: 12px; align-items: start; }
.why-body .reasons { margin: 0; }
.why-body .odds { grid-column: 2; grid-row: 1 / 3; }
.why-body .odds-title { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.why-body .odds-title i { display: block; font-style: normal; font-weight: 400; color: var(--muted); font-size: 11px; margin-top: 2px; }
.why-body .value { grid-column: 1; margin: 0; border: 0; padding: 0; }

/* ---- Judges page ---- */
main.medium { max-width: 1040px; }
.season-head { padding: 16px 20px; margin-bottom: 16px; }
.season-head h2 { font-size: 24px; font-weight: 800; text-transform: uppercase; margin: 0 0 12px; }
.season-stats { gap: 8px; }
.season-stats .stat { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.season-stats .stat span { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }
.season-stats .stat b { font-family: var(--font-head); font-size: 22px; font-weight: 800; line-height: 1.1; text-transform: uppercase; }
.sort-toggle { margin-bottom: 12px; }
.jrow { padding: 10px 16px; }
.c-judge { display: flex; align-items: center; gap: 10px; }
.j-text { min-width: 0; }
.jmark { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
         background: var(--panel-2); border: 1px solid var(--line); color: var(--soft);
         font-family: var(--font-brand); font-weight: 600; font-size: 16px; line-height: 1; letter-spacing: 0.04em; padding-top: 2px; }
.jmark.big { width: 40px; height: 40px; font-size: 20px; margin-right: 10px; vertical-align: -6px; }
.jrow.hl-top .jmark { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.j-name { font-weight: 600; font-size: 15px; }
.c-pts b { font-family: var(--font-head); font-size: 20px; font-weight: 800; }
.how h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; text-transform: uppercase; }
.how h2 .sicon { width: 18px; height: 18px; color: var(--soft); }
.profile h2 { font-family: var(--font-head); font-size: 28px; text-transform: uppercase; }
.p-stats b { font-family: var(--font-head); font-size: 22px; font-weight: 800; }

/* ---- Fighters page ---- */
.fsearch { margin: 0 0 24px; }
.sec-title { font-family: var(--font-head); font-size: 26px; font-weight: 800; text-transform: uppercase; margin: 0 0 4px; }
.sec-title span { font-size: 0.7em; color: var(--muted); font-weight: 700; margin-left: 6px; }
.top100 .board-note { margin-bottom: 4px; }
.t-name b { font-family: var(--font-head); font-size: 19px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; }
.t-rank { font-family: var(--font-head); font-size: 20px; }
.trow.thead span { font-family: var(--font-body); font-size: 11px; }
.fcard .votes { margin-top: 12px; }
.fcard .verdict2 { margin-top: 10px; }
.nf-sides { margin-top: 12px; }
.t-elo b { font-family: var(--font-head); font-size: 20px; font-weight: 800; }
.fhead { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 20px; align-items: start; padding: 20px; }
.fh-avatar { grid-row: 1; width: 96px; height: 96px; }
.fh-avatar.ph .av-bg { fill: var(--panel); }
.fh-avatar.ph .av-fg { fill: color-mix(in srgb, var(--soft) 35%, var(--panel)); }
.fh-body { min-width: 0; }
.fhead .fh-facts { grid-column: 1 / -1; }
.fh-name { font-family: var(--font-head); font-size: 40px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; margin: 4px 0 2px; }
.fh-elo > b { font-family: var(--font-head); font-size: 32px; font-weight: 800; }
.fcard { padding: 16px 20px; }
.fcard h3 { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
.fcard h3 .sicon, .sgroup h4 .sicon { color: var(--soft); }
.sgroup h4 { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 14px; font-weight: 700; }
.s-val { font-family: var(--font-head); font-size: 20px; font-weight: 800; }
.hrow .h-main b { font-weight: 600; }
.fprofile .back { margin-bottom: 12px; }

/* ---- About page ---- */
.about-hero { text-align: center; padding: 32px 16px 24px; }
.about-hero img { width: min(320px, 80%); height: auto; }
.about-hero h1 { font-family: var(--font-head); font-size: 44px; font-weight: 800; text-transform: uppercase; line-height: 1; margin: 20px 0 12px; }
.about-hero p { max-width: 620px; margin: 0 auto; color: var(--soft); font-size: 16px; }
.about-hero .button { margin-top: 20px; background: var(--dark-red); }
.about-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 12px; }
.about-card h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; text-transform: uppercase; margin: 0 0 8px; }
.about-card h2 .sicon { width: 18px; height: 18px; color: var(--soft); }
.about-card p { margin: 8px 0 0; color: var(--soft); font-size: 15px; }
.about-card p b, .about-list b { color: var(--text); }
.about-card .more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--red-text); text-decoration: none; }
.about-list { margin: 8px 0 0; padding-left: 20px; color: var(--soft); font-size: 15px; display: grid; gap: 4px; }
.about-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin: 14px 0 12px; }
.about-levels { display: grid; gap: 8px; margin: 0; }
.about-levels div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: baseline; }
.about-levels dt { font-weight: 700; font-size: 14px; color: var(--text); }
.about-levels dt i { display: inline-block; width: 14px; height: 8px; border-radius: 2px; margin-right: 8px; }
.about-levels dd { margin: 0; color: var(--soft); font-size: 14px; }
.about-note { text-align: center; font-size: 12px; color: var(--muted); margin: 20px 0 0; }

.state { padding: 40px 0; text-align: center; color: var(--muted); }
.state.error { color: var(--red-text); white-space: pre-wrap; text-align: left; font-family: ui-monospace, monospace; font-size: 13px; }

/* Home */
.hero { padding: 48px 0 24px; }
.hero h1 { font-size: 40px; line-height: 1.1; }
.button { display: inline-block; margin-top: 18px; padding: 12px 20px; border-radius: 999px;
          background: var(--accent); color: var(--white); font-weight: 700; text-decoration: none; }
.disclaimer { margin-top: 40px; font-size: 12px; color: var(--muted); }

@media (max-width: 600px) {
  .sh-inner { padding: 0 14px; height: 54px; }
  .sh-menu { display: block; }
  .sh-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; height: auto; flex-direction: column; gap: 0;
            background: var(--panel); border-bottom: 1px solid var(--line); padding: 6px 0;
            box-shadow: 0 14px 30px color-mix(in srgb, var(--shadow) 50%, transparent); }
  .sh-nav.open { display: flex; }
  .sh-nav a { padding: 14px 20px; font-size: 19px; }
  .sh-nav a.active::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 4px; height: auto; border-radius: 0 3px 3px 0; }
  main { padding: 14px 14px 20px; }
  .sf-inner { grid-template-columns: 1fr; padding: 20px 16px 24px; }
  .page-head { padding: 14px 16px 12px 20px; }
  .page-head h1 { font-size: 28px; }
  .fighter .name { font-size: 18px; }
  .fighter, .fighter.b { flex-direction: column; align-items: flex-start; gap: 6px; }
  .fighter.b { align-items: flex-end; }
  .fighter .avatar { width: 38px; height: 38px; }
  .fight { padding: 16px; }
  .fight .fighter .name { font-size: 19px; }
  .fight.main .fighter .name { font-size: 22px; }
  .fight.prelim .fighter .name { font-size: 16px; }
  .fight .fighter .name.long { font-size: 16px; }
  .fight.main .fighter .name.long { font-size: 19px; }
  .fight.prelim .fighter .name.long { font-size: 14px; }
  .fight .avatar { width: 32px; height: 32px; }
  .vline { flex-direction: column; align-items: stretch; }
  .verdict2 { gap: 4px 10px; }
  .verdict2 .dot { display: none; }
  .books .b-line { white-space: normal; }
  .why-body { grid-template-columns: 1fr; }
  .why-body .odds { grid-column: 1; grid-row: auto; }
  .vote-legend { gap: 6px 12px; }
  .vote-legend .vl-sides { margin-left: 0; width: 100%; }
  .event-name { font-size: 24px; }
  .bar-key { font-size: 10.5px; }
  .result { grid-template-columns: 1fr; grid-template-areas: "verdict" "odds" "reasons"; }
  .result .odds { margin-top: 12px; }
  .hero h1 { font-size: 30px; }
  .about-hero h1 { font-size: 32px; }
  .about-levels div { grid-template-columns: 1fr; gap: 2px; }
  .fsearch input { font-size: 16px; padding: 12px 44px 12px 18px; }
  .div-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
              scroll-padding: 0 16px; padding: 2px 0; }
  .div-tabs::-webkit-scrollbar { display: none; }
  .div-tabs-wrap.more::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 40px; pointer-events: none;
                               background: linear-gradient(to right, transparent, var(--bg)); }
  .fs-meta { margin-left: 0; flex-basis: 100%; }
  .fs-list li .flag + .fs-name + .fs-meta { padding-left: 34px; }
  .trow { grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "rank name elo" ". last last" ". next next"; row-gap: 2px; }
  .trow.thead { display: none; }
  .t-rank { grid-area: rank; } .t-name { grid-area: name; } .t-elo { grid-area: elo; text-align: right; }
  .t-last { grid-area: last; } .t-next { grid-area: next; }
  .t-next.none { display: none; }
  .trow:not(.thead) .t-last > i, .trow:not(.thead) .t-next > i { display: inline; }
  .fh-name { font-size: 28px; }
  .fhead { grid-template-columns: auto minmax(0, 1fr); gap: 0 14px; padding: 16px; }
  .fh-avatar { width: 64px; height: 64px; }
  .t-name b { font-size: 17px; }
  .fh-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sgrid, .sw-cols { grid-template-columns: 1fr; }
  .hrow { grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-areas: "res main odds" ". how how" ". pick pick"; row-gap: 3px; }
  .hrow.hhead { display: none; }
  .h-res { grid-area: res; align-self: start; } .h-main { grid-area: main; } .h-how { grid-area: how; }
  .h-odds { grid-area: odds; text-align: right; } .h-pick { grid-area: pick; }
  .h-pick i { display: inline; }
  .h-how em { display: inline; margin-left: 6px; }
  .season-stats { grid-template-columns: 1fr 1fr; }
  .jmark { width: 28px; height: 28px; font-size: 14px; }
  .jrow .c-stats { padding-left: 38px; }
  .jrow { grid-template-columns: 26px minmax(0, 1fr) auto; grid-template-areas: "rank judge pts" "move judge pts" ". stats stats";
          row-gap: 2px; padding: 10px 12px; }
  .jrow.jhead { display: none; }
  .c-rank { grid-area: rank; }
  .c-move { grid-area: move; align-self: start; }
  .c-judge { grid-area: judge; }
  .c-pts { grid-area: pts; }
  .c-pts > i { display: inline; font-size: 11px; color: var(--muted); margin-left: 3px; }
  .jrow .c-stats { grid-area: stats; display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 4px;
                   font-size: 12px; color: var(--muted); text-align: left; }
  .jrow:not(.jhead) .c-stats i { display: inline; }
  .jrow .c-stats .hi { color: var(--text); }
  .p-stats { grid-template-columns: repeat(3, 1fr); }
  .wrow { grid-template-columns: 110px 1fr 42px; }
}

/* ======================================================================
   Accounts: menu-bar account area, forms, profile, friends, settings
   ====================================================================== */
.sh-account { margin-left: auto; display: flex; align-items: center; gap: 8px; position: relative; }
.sh-account:empty { min-width: 120px; }
.sh-nav a.nav-auth { display: none; }
.sh-login, .sh-signup { font-family: var(--font-head); font-weight: 700; font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase;
                        text-decoration: none; padding: 7px 12px; border-radius: 8px; white-space: nowrap; }
.sh-login { color: var(--soft); }
.sh-login:hover { color: var(--text); }
.sh-signup { background: var(--dark-red); color: var(--white); }
.sh-signup:hover { background: color-mix(in srgb, var(--dark-red) 85%, var(--white)); }
.sh-me { display: flex; align-items: center; gap: 8px; padding: 3px 8px 3px 3px; border: 1px solid var(--line); border-radius: 999px;
         background: var(--panel); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.sh-me:hover, .sh-me[aria-expanded="true"] { border-color: color-mix(in srgb, var(--score-red) 60%, var(--line)); }
.sh-me-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-caret { fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sh-me-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 40; width: 250px; padding: 6px; background: var(--panel);
              border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 36px color-mix(in srgb, var(--shadow) 55%, transparent); }
.sh-me-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.sh-me-head div { min-width: 0; }
.sh-me-head b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.sh-me-head span { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-me-menu a, .sh-me-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px;
              background: none; color: var(--soft); font: inherit; font-size: 14px; text-decoration: none; text-align: left; cursor: pointer; }
.sh-me-menu a:hover, .sh-me-menu button:hover, .sh-me-menu a:focus-visible, .sh-me-menu button:focus-visible { background: var(--panel-2); color: var(--text); outline: none; }
.sh-me-menu .sh-logout { border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; }
.uavatar { flex: none; display: block; border-radius: 50%; background: var(--panel-2); object-fit: cover;
           box-shadow: 0 0 0 1px var(--line); }
a.user-link { color: inherit; text-decoration: none; }
a.user-link:hover { text-decoration: underline; text-decoration-color: var(--red-text); text-underline-offset: 3px; }

.flash { max-width: var(--max); margin: 14px auto 0; padding: 0 20px; }
.flash-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 10px;
               background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--win); font-size: 14px; }
.flash.error .flash-inner { border-left-color: var(--loss); }
.flash button { border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 8px;
       border: 1px solid transparent; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn.primary { background: var(--dark-red); color: var(--white); }
.btn.primary:hover:not(:disabled) { background: color-mix(in srgb, var(--dark-red) 85%, var(--white)); }
.btn.ghost { background: var(--panel-2); border-color: var(--line); color: var(--text); }
.btn.ghost:hover:not(:disabled) { border-color: var(--muted); }
.btn.danger { background: none; border-color: var(--loss); color: var(--loss); }
.btn.danger:hover:not(:disabled) { background: color-mix(in srgb, var(--loss) 12%, transparent); }
.btn.small { min-height: 32px; padding: 5px 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--red-text); font-weight: 600; cursor: pointer; text-decoration: none; }
.link-btn:hover { text-decoration: underline; }

/* Log in / Sign up card */
main.auth { max-width: 480px; padding-top: 32px; }
.auth-card { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 24px; }
.auth-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
                     background: linear-gradient(105deg, var(--score-red) 0 62%, var(--bone) 62% 64%, var(--ring-black) 64%); }
.auth-card h1 { font-family: var(--font-brand); font-weight: 600; font-size: 40px; line-height: 0.9; letter-spacing: 0.04em; text-transform: uppercase; margin: 6px 0 4px; }
.auth-card .sub { margin: 0 0 20px; color: var(--soft); font-size: 14px; }
.auth-foot { margin: 18px 0 0; text-align: center; font-size: 14px; color: var(--soft); }
.auth-foot a { color: var(--red-text); font-weight: 600; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }
.auth-done { text-align: center; padding: 8px 0; }
.auth-done svg { width: 48px; height: 48px; fill: none; stroke: var(--win); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.auth-done h2 { font-family: var(--font-brand); font-weight: 600; font-size: 30px; letter-spacing: 0.04em; text-transform: uppercase; margin: 8px 0 6px; }
.auth-done p { color: var(--soft); margin: 0 0 6px; font-size: 14px; }

/* Form fields */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field-label { font-size: 13px; font-weight: 700; color: var(--text); }
.field > label i, .field-label i { font-style: normal; font-weight: 400; color: var(--muted); }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=search], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; min-height: 42px; }
.field textarea { resize: vertical; min-height: 84px; line-height: 1.4; }
.field select { appearance: none; padding-right: 34px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--score-red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--score-red) 18%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--loss); }
.field input:disabled { color: var(--muted); }
.hint { font-size: 12px; color: var(--muted); margin: 0; }
.hint.ok { color: var(--win); }
.hint.bad { color: var(--loss); }
.form-error { margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--text);
              background: color-mix(in srgb, var(--loss) 12%, var(--panel)); border: 1px solid color-mix(in srgb, var(--loss) 45%, var(--line)); }
.form-error:empty { display: none; }
.form-ok { margin: 0; font-size: 13px; color: var(--win); }
.form-ok:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 64px; }
.pw-show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted);
           font: inherit; font-size: 12px; font-weight: 700; padding: 6px 8px; cursor: pointer; }
.pw-show:hover { color: var(--text); }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 14px; color: var(--soft); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--dark-red); cursor: pointer; }
.check a { color: var(--red-text); }
.counter { font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.counter.over { color: var(--loss); font-weight: 700; }

/* On/off switch */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.switch:first-child { border-top: 0; }
.switch-text b { display: block; font-size: 14px; font-weight: 600; }
.switch-text span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.switch input { appearance: none; flex: none; position: relative; width: 42px; height: 24px; margin: 0; border-radius: 999px; cursor: pointer;
                background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); transition: background 0.15s; }
.switch input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted);
                       transition: transform 0.15s, background 0.15s; }
.switch input:checked { background: var(--dark-red); box-shadow: none; }
.switch input:checked::after { transform: translateX(18px); background: var(--white); }
.switch input:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.switch input:disabled { opacity: 0.45; cursor: not-allowed; }
.switch.soon { cursor: default; }
.soon-tag { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
            padding: 1px 7px; border-radius: 999px; background: var(--panel-2); color: var(--muted); vertical-align: 1px; }

/* Card sections (settings, profile) */
.acard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; scroll-margin-top: 76px; }
.acard > h2 { display: flex; align-items: center; gap: 10px; font-family: var(--font-brand); font-weight: 600; font-size: 26px; line-height: 1;
              letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 4px; }
.acard > h2 .sicon { width: 18px; height: 18px; color: var(--soft); margin-top: -3px; }
.acard > .sub { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.acard h3 { font-size: 13px; font-weight: 700; margin: 18px 0 8px; font-family: var(--font-body); }
.acard.danger { border-color: color-mix(in srgb, var(--loss) 40%, var(--line)); }
.acard.danger > h2 { color: var(--loss); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Settings: section list on the left, sections on the right */
.settings-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; }
.settings-nav { position: sticky; top: 76px; display: grid; gap: 2px; }
.settings-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--soft); text-decoration: none; font-size: 14px; font-weight: 600;
                  border-left: 3px solid transparent; }
.settings-nav a:hover { background: var(--panel); color: var(--text); }
.settings-nav a.on { background: var(--panel); color: var(--text); border-left-color: var(--score-red); }
.settings-nav a.danger { color: var(--loss); }

/* Avatar picker */
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.av-opt { position: relative; display: grid; justify-items: center; gap: 6px; padding: 10px 4px 8px; border: 1px solid var(--line); border-radius: 10px;
          background: var(--bg); color: var(--soft); font: inherit; font-size: 11px; cursor: pointer; text-align: center; }
.av-opt:hover:not(:disabled) { border-color: var(--muted); }
.av-opt[aria-pressed="true"] { border-color: var(--score-red); box-shadow: inset 0 0 0 1px var(--score-red);
                               background: color-mix(in srgb, var(--score-red) 8%, var(--bg)); color: var(--text); }
.av-opt.locked { cursor: not-allowed; }
.av-opt.locked .uavatar { filter: grayscale(1); opacity: 0.35; }
.av-opt .lock { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; padding: 4px; border-radius: 50%;
                background: var(--panel-2); box-shadow: 0 0 0 1px var(--line); fill: none; stroke: var(--soft); stroke-width: 1.6; }
.av-opt .how { all: unset; display: block; font-size: 10.5px; line-height: 1.25; color: var(--muted); }
.av-opt.gold:not(.locked) { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.av-group-title { display: flex; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 700; margin: 18px 0 8px; }
.av-group-title:first-of-type { margin-top: 0; }
.av-group-title span { font-weight: 400; font-size: 12px; color: var(--muted); }

/* Fighter search (favorite fighter) */
.picker { position: relative; }
.picker-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; max-height: 280px; overflow: auto;
               background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 30px color-mix(in srgb, var(--shadow) 50%, transparent); }
.picker-list li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.picker-list li.on, .picker-list li:hover { background: var(--panel-2); }
.picker-list li em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.picker-list li.none { color: var(--muted); cursor: default; }
.chosen { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: 14px; }
.chosen b { font-weight: 600; }
.chosen .link-btn { margin-left: auto; font-size: 13px; }

/* User rows (friends, search, blocked list) */
.ulist { display: grid; }
.urow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
.urow:first-child { border-top: 0; }
.urow .u-name { flex: 1; min-width: 0; }
.urow .u-name b { display: block; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.urow .u-name span { display: block; font-size: 12px; color: var(--muted); }
.urow .u-actions { display: flex; gap: 8px; flex: none; }
.rel-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--panel-2); color: var(--soft); }
.empty-note { color: var(--muted); font-size: 14px; padding: 18px 0 8px; text-align: center; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 14px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; flex: none; border: 0; background: none; padding: 10px 14px; color: var(--soft); cursor: pointer;
               font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: 0.04em; text-transform: uppercase; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px;
                                            background: var(--score-red); border-radius: 3px 3px 0 0; }
.tabs .count { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 4px; letter-spacing: 0; }

/* Public profile */
.uhead { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 20px; align-items: center;
         background: linear-gradient(135deg, color-mix(in srgb, var(--score-red) 9%, var(--panel)), var(--panel));
         border: 1px solid var(--line); border-left: 4px solid var(--score-red); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; }
.uhead .uavatar { width: 96px; height: 96px; }
.uh-name { font-family: var(--font-head); font-weight: 800; font-size: 36px; line-height: 1.05; margin: 0; overflow-wrap: anywhere; }
.uh-name .flag { height: 22px; vertical-align: 2px; margin: 0 0 0 10px; }
.uh-bio { margin: 6px 0 0; color: var(--soft); font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.uh-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.uh-meta b { color: var(--text); font-weight: 700; }
.uh-meta a { color: inherit; text-decoration: none; }
.uh-meta a:hover b { text-decoration: underline; text-decoration-color: var(--red-text); }
.uh-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-self: start; }
.uh-private { grid-column: 2 / -1; display: flex; align-items: center; gap: 8px; color: var(--soft); font-size: 15px; margin: 0; }
.uh-private svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ustats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ustat { background: var(--panel-2); border-radius: 8px; padding: 10px 8px; text-align: center; min-width: 0; }
.ustat b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 26px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ustat span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.ustat.muted b { color: var(--muted); }
.trophies { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.trophy { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 12px 8px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.trophy.gold { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.trophy b { font-size: 13px; }
.trophy span { font-size: 11px; color: var(--muted); }
.prow { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.prow:first-child { border-top: 0; }
.p-res { grid-row: 1 / 3; font-weight: 800; text-align: center; border-radius: 6px; padding: 4px 0; background: var(--bg); font-size: 12px; color: var(--muted); }
.p-res.W { color: var(--win); } .p-res.L { color: var(--loss); }
.p-fight { font-size: 14px; min-width: 0; }
.p-fight b { font-weight: 700; }
.p-fight .cf-vs { color: var(--muted); }
.p-meta { grid-column: 2; font-size: 12px; color: var(--muted); }
.p-pts { grid-column: 3; grid-row: 1 / 3; text-align: right; font-family: var(--font-head); font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.p-pts span { display: block; font-family: var(--font-body); font-size: 11px; font-weight: 600; color: var(--muted); }
.more-row { text-align: center; margin-top: 12px; }

/* Pop-up dialog (report, confirm) */
.adialog { width: min(460px, calc(100vw - 32px)); padding: 22px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); }
.adialog::backdrop { background: color-mix(in srgb, var(--shadow) 60%, transparent); }
.adialog h2 { font-family: var(--font-brand); font-weight: 600; font-size: 28px; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 8px; }
.adialog p { color: var(--soft); font-size: 14px; margin: 0 0 14px; }
.adialog .form-actions { justify-content: flex-end; margin-top: 4px; }
.radio-list { display: grid; gap: 6px; }
.radio-list label { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 14px; }
.radio-list label:has(input:checked) { border-color: var(--score-red); background: color-mix(in srgb, var(--score-red) 8%, transparent); }
.radio-list input { accent-color: var(--dark-red); margin: 0; }

/* Terms / Community Rules */
.legal h2 { font-family: var(--font-brand); font-weight: 600; font-size: 24px; letter-spacing: 0.05em; text-transform: uppercase; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--soft); font-size: 15px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal b { color: var(--text); }
.legal .draft { font-size: 13px; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; padding: 8px 12px; }
.rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.rules-grid .acard { margin: 0; }
.rules-grid h3 { margin: 0 0 8px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.rules-grid .ok-h { color: var(--win); }
.rules-grid .no-h { color: var(--loss); }

.notif-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 22px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.notif-row:first-child { border-top: 0; }
.switch.mini { border: 0; padding: 0; gap: 8px; justify-content: flex-start; font-size: 12px; font-weight: 600; color: var(--muted); }

@media (max-width: 900px) {
  .ustats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; padding-bottom: 2px; }
  .settings-nav::-webkit-scrollbar { display: none; }
  .settings-nav a { flex: none; border-left: 0; border-bottom: 3px solid transparent; border-radius: 8px 8px 0 0; padding: 8px 10px; }
  .settings-nav a.on { border-bottom-color: var(--score-red); }
}
@media (max-width: 600px) {
  .sh-inner { gap: 12px; }
  .sh-account { margin-left: auto; }
  .sh-account:empty { min-width: 60px; }
  .sh-account + .sh-menu { margin-left: 0; }
  .sh-signup { display: none; }
  .sh-nav a.nav-auth { display: flex; border-top: 1px solid var(--line); }
  .sh-nav a.nav-auth + a.nav-auth { border-top: 0; color: var(--red-text); }
  .sh-login { padding: 7px 8px; }
  .sh-me { padding: 2px; }
  .sh-me-name, .sh-caret { display: none; }
  .sh-me .uavatar { width: 34px; height: 34px; }
  .sh-me-menu { position: fixed; left: 12px; right: 12px; top: 60px; width: auto; }
  main.auth { padding-top: 18px; }
  .auth-card { padding: 22px 18px 20px; }
  .auth-card h1 { font-size: 34px; }
  .field-row { grid-template-columns: 1fr; }
  .flash { padding: 0 14px; }
  .acard { padding: 16px; }
  .uhead { grid-template-columns: auto minmax(0, 1fr); padding: 16px; gap: 6px 14px; }
  .uhead .uavatar { width: 64px; height: 64px; }
  .uh-name { font-size: 28px; }
  .uh-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .uh-private { grid-column: 1 / -1; }
  .ustats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ustats .ustat:first-child { grid-column: 1 / -1; }
  .urow { flex-wrap: wrap; }
  .urow .u-actions { width: 100%; padding-left: 52px; }
  .rules-grid { grid-template-columns: 1fr; }
  .notif-row { grid-template-columns: auto auto 1fr; }
  .notif-row .switch-text { grid-column: 1 / -1; }
  .avatar-grid { grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 8px; }
}

/* Email-link notices (log in page) */
.notice { margin: 0 0 18px; padding: 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line);
          border-left: 4px solid var(--score-red); }
.notice > b { display: block; font-size: 15px; }
.notice > p { margin: 4px 0 12px; font-size: 13px; color: var(--soft); }
.resend { display: grid; gap: 6px; }
.resend-row { display: flex; gap: 8px; }
.resend-row .input { flex: 1; min-width: 0; }
.resend-msg:empty { display: none; }
.flash a { color: var(--red-text); font-weight: 600; }

/* ======================================================================
   Picks: Future Fights buttons, the picks page, betslip bar, review
   ====================================================================== */
.event-head.has-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; }
.event-head.has-action > :not(.event-action) { grid-column: 1; }
.event-action { grid-column: 2; grid-row: 1 / span 3; grid-row-start: 1; align-self: center; display: flex; gap: 8px; }
.pick-progress { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line);
                 background: var(--panel-2); color: var(--soft); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.pick-progress b { color: var(--text); }
.pick-progress:hover { border-color: var(--muted); color: var(--text); }
.fight .tags .pick-link { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--red-text); text-decoration: none;
                          padding: 3px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--score-red) 55%, transparent); }
.fight .tags .pick-link:hover { background: color-mix(in srgb, var(--score-red) 12%, transparent); }
.view-switch { font-size: 13px; font-weight: 600; color: var(--red-text); text-decoration: none; white-space: nowrap; }
.view-switch:hover { text-decoration: underline; }

.card-tabs { margin-bottom: 14px; }
.card-tabs button { font-size: 16px; }
.pk-seg { justify-content: flex-start; }
.pk-seg > span:first-child { flex: none; }
.lock-tag { order: 3; flex: none; font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none;
            color: var(--soft); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.lock-tag.locked { color: var(--muted); }

/* the two fighters as tap targets */
.fight.picking .matchup { align-items: stretch; }
.fight.picking .matchup .vs { align-self: center; }
.pickbtn { appearance: none; font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; min-height: 64px;
           background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; transition: border-color 0.12s, background 0.12s; }
.pickbtn.b { text-align: right; }
.pickbtn .f-text, .pickbtn .name, .pickbtn .sub { display: block; }
.pickbtn:hover:not(:disabled) { border-color: var(--muted); }
.pickbtn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.pickbtn.chosen { border-color: var(--bone); box-shadow: inset 0 0 0 1px var(--bone); background: var(--panel-2); }
.pickbtn:disabled { cursor: default; }
.pk-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pickbtn.b .pk-tags { justify-content: flex-end; }
.your-pick { font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--white); background: var(--dark-red);
             border-radius: 999px; padding: 2px 8px; }
.dog-tag { font-size: 11px; font-weight: 700; color: var(--soft); border-radius: 999px; padding: 1px 8px; box-shadow: inset 0 0 0 1px var(--line); }
.fight.picking.locked .pickbtn:not(.chosen), .cfight.locked .cbtn:not(.chosen) { opacity: 0.45; }
.fight.picking.locked .pickbtn.chosen, .cfight.locked .cbtn.chosen { box-shadow: none; border-color: var(--muted); }
.fight.picking.locked { background: color-mix(in srgb, var(--panel) 70%, var(--bg)); }
.pk-note { margin: -4px 0 0; }
.pk-status { display: inline-block; font-size: 12px; font-weight: 700; color: var(--muted); }
.pk-status.warn { color: var(--red-text); }
.pk-status.void { color: var(--loss); }
.flash-hl { animation: hl 1.6s ease-out; }
@keyframes hl { 0% { box-shadow: 0 0 0 2px var(--score-red); } 100% { box-shadow: 0 0 0 2px transparent; } }
@media (prefers-reduced-motion: reduce) { .flash-hl { animation: none; } }

/* compact view (from the profile) */
.picks-page.compact { max-width: 720px; }
.picks-page.compact .fight-list { gap: 8px; }
.cfight { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.cfight.locked { background: color-mix(in srgb, var(--panel) 70%, var(--bg)); }
.cf-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 8px; min-height: 18px; }
.cf-tags .tag { font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; padding: 2px 8px; margin: 0; }
.cf-tags .wc-badge { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--soft); background: none; padding: 0; }
.cf-tags .wc-badge b { font-family: var(--font-body); font-weight: 700; font-size: 10px; padding: 2px 5px; color: var(--bg); }
.cf-tags .pk-status { margin-left: auto; }
.cf-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: stretch; }
.cf-pair .cf-vs { align-self: center; font-size: 12px; color: var(--muted); }
.cbtn { appearance: none; font: inherit; color: var(--text); cursor: pointer; min-height: 52px; padding: 8px 10px; border-radius: 8px; text-align: left;
        background: var(--bg); border: 1px solid var(--line); display: grid; gap: 2px; align-content: center; min-width: 0; }
.cbtn.b { text-align: right; }
.cbtn:hover:not(:disabled) { border-color: var(--muted); }
.cbtn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.cbtn.chosen { border-color: var(--bone); box-shadow: inset 0 0 0 1px var(--bone); background: var(--panel-2); }
.cbtn:disabled { cursor: default; }
.cb-name { font-family: var(--font-head); font-weight: 800; font-size: 18px; line-height: 1.1; text-transform: uppercase; overflow-wrap: anywhere; }
.cb-name .flag { height: 14px; vertical-align: -1px; margin-right: 5px; }
.cb-rec { font-size: 12px; color: var(--muted); }
.cb-check { color: var(--text); font-weight: 700; }

.pk-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; padding: 12px 14px;
             background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--win); border-radius: 10px; font-size: 14px; color: var(--soft); }
.pk-banner b { color: var(--text); }

/* the sticky "betslip" bar */
body.has-slip { padding-bottom: 92px; }
.slip { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: color-mix(in srgb, var(--panel) 96%, transparent);
        border-top: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 -10px 30px color-mix(in srgb, var(--shadow) 45%, transparent); padding-bottom: env(safe-area-inset-bottom); }
.slip-inner { max-width: 920px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; }
.slip-left { flex: 1; min-width: 0; display: grid; gap: 5px; }
.slip-count { font-size: 14px; color: var(--soft); }
.slip-count b { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--text); margin-right: 2px; }
.slip-bar { height: 6px; border-radius: 999px; background: var(--panel-2); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.slip-bar i { display: block; height: 100%; background: var(--score-red); border-radius: 999px; transition: width 0.2s; }
.slip-nudge { font-size: 12px; color: var(--muted); }
.slip-ok { font-size: 12px; font-weight: 700; color: var(--win); }
.slip-locked { font-size: 13px; color: var(--muted); }
.slip .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.pk-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 36; width: min(560px, calc(100vw - 24px));
            background: var(--panel-2); border: 1px solid var(--line); border-left: 4px solid var(--win); border-radius: 10px; padding: 12px 14px;
            font-size: 14px; color: var(--soft); box-shadow: 0 12px 30px color-mix(in srgb, var(--shadow) 55%, transparent); }
.pk-toast b { color: var(--text); }
.pk-toast span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* review */
.review { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; background: var(--panel); color: var(--text);
          border: 1px solid var(--line); border-radius: var(--radius); display: none; flex-direction: column; overflow: hidden; }
.review[open] { display: flex; }
.review::backdrop { background: color-mix(in srgb, var(--shadow) 65%, transparent); }
.rv-head { position: relative; padding: 18px 20px 6px; }
.rv-head h2 { font-family: var(--font-brand); font-weight: 600; font-size: 30px; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; margin: 0; }
.rv-head .p-close { top: 14px; right: 14px; }
.rv-agree { margin: 0; padding: 0 20px 10px; font-size: 14px; color: var(--soft); }
.rv-agree b { color: var(--text); }
.rv-list { overflow-y: auto; padding: 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rv-seg { font-family: var(--font-brand); font-weight: 600; font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); margin: 14px 0 4px; }
.rv-row { padding: 10px 0; border-top: 1px solid var(--line); }
.rv-seg + .rv-row { border-top: 0; }
.rv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.rv-panel { font-weight: 600; }
.rv-panel.agree { color: var(--soft); }
.rv-nopick { font-weight: 700; color: var(--red-text); }
.rv-row.locked .rv-nopick { color: var(--muted); }
.rv-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rv-opt { appearance: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--soft); background: var(--bg); border: 1px solid var(--line);
          border-radius: 8px; padding: 9px 10px; min-height: 42px; cursor: pointer; text-align: center; overflow-wrap: anywhere; }
.rv-opt:hover:not(:disabled) { border-color: var(--muted); color: var(--text); }
.rv-opt.chosen { color: var(--text); border-color: var(--bone); box-shadow: inset 0 0 0 1px var(--bone); background: var(--panel-2); }
.rv-opt:disabled { cursor: default; opacity: 0.5; }
.rv-opt.chosen:disabled { opacity: 0.8; }
.rv-foot { padding: 12px 20px 16px; }
.rv-nudge { margin: 0 0 10px; font-size: 13px; color: var(--soft); }
.rv-foot .form-actions { justify-content: flex-end; }

/* "Upcoming card" box on your own profile */
.upnext { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.upnext .un-name { font-family: var(--font-head); font-weight: 800; font-size: 22px; text-transform: uppercase; line-height: 1.1; }
.upnext .un-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.upnext .un-bar { width: 220px; max-width: 100%; margin-top: 8px; }

@media (max-width: 600px) {
  .event-head.has-action { grid-template-columns: 1fr; }
  .event-action { grid-column: 1; grid-row: auto; margin-top: 10px; }
  .event-action .btn, .event-action .pick-progress { width: 100%; justify-content: center; }
  .fight.picking .matchup { grid-template-columns: 1fr 1fr; gap: 8px; }
  .fight.picking .matchup .vs { display: none; }
  .fight.picking .fighter, .fight.picking .fighter.b { flex-direction: column; align-items: flex-start; }
  .fight.picking .fighter.b { align-items: flex-end; }
  .pickbtn { padding: 10px; }
  body.has-slip { padding-bottom: 104px; }
  .slip-inner { padding: 10px 14px; gap: 12px; }
  .slip .btn { padding: 10px 14px; font-size: 14px; }
  .slip-nudge { font-size: 11px; line-height: 1.3; }
  .pk-toast { bottom: 108px; }
  .review { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; margin: 0; }
  .rv-head, .rv-agree, .rv-list, .rv-foot { padding-left: 14px; padding-right: 14px; }
  .rv-foot .form-actions .btn { flex: 1; }
  .cb-name { font-size: 16px; }
  .upnext .un-bar { width: 100%; }
}

/* Picks page sign-in gate (logged-out visitors) */
.gate { max-width: 560px; margin: 24px auto 8px; text-align: center; background: var(--panel); border: 1px solid var(--line);
        border-radius: var(--radius); padding: 32px 28px 26px; position: relative; overflow: hidden; }
.gate::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
                background: linear-gradient(105deg, var(--score-red) 0 62%, var(--bone) 62% 64%, var(--ring-black) 64%); }
.gate img { display: block; margin: 0 auto 14px; }
.gate h1 { font-family: var(--font-brand); font-weight: 600; font-size: 38px; line-height: 0.95; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 10px; }
.gate-sub { margin: 0 0 14px; color: var(--soft); font-size: 15px; }
.gate-list { list-style: none; margin: 0 auto 22px; padding: 0; display: grid; gap: 10px; text-align: left; max-width: 440px; }
.gate-list li { position: relative; padding-left: 26px; font-size: 14px; color: var(--soft); }
.gate-list li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--red-text); }
.gate-list b { color: var(--text); }
.gate-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gate-actions .btn { min-width: 170px; min-height: 46px; font-size: 15px; }
.gate-note { margin: 16px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 600px) {
  .gate { margin-top: 8px; padding: 26px 18px 20px; }
  .gate h1 { font-size: 32px; }
  .gate-actions .btn { flex: 1 1 100%; }
}

/* Leaderboard (judges.html): "Vs the Judges" and "Top 100 Users". Gold = #1 only, red = you, silver = friends. */
.jrow { grid-template-columns: 34px minmax(0, 1fr) 86px 62px 46px 60px 82px 82px; }
.jrow.lrow { grid-template-columns: 52px minmax(0, 1fr) 86px 62px 64px 76px; }
a.jrow { text-decoration: none; color: var(--text); }
.jrow.hl-first { background: color-mix(in srgb, var(--gold) 6.5%, transparent); box-shadow: inset 3px 0 0 color-mix(in srgb, var(--gold) 60%, transparent); }
.jrow.hl-first .c-rank, .gold-text { color: var(--gold); }
.jrow.is-me { background: color-mix(in srgb, var(--score-red) 9%, transparent); box-shadow: inset 3px 0 0 var(--score-red); }
.jrow.is-me:hover { background: color-mix(in srgb, var(--score-red) 14%, transparent); }
.jrow.is-friend { background: color-mix(in srgb, var(--bone) 5%, transparent); box-shadow: inset 3px 0 0 var(--muted-1); }
.jrow.is-friend:hover { background: color-mix(in srgb, var(--bone) 9%, transparent); }
.jrow.pin { border-top: 1px solid color-mix(in srgb, var(--score-red) 45%, var(--line)); border-bottom: 1px solid color-mix(in srgb, var(--score-red) 45%, var(--line)); }
.jrow .pin-text { color: var(--text); font-weight: 600; white-space: normal; }
.pin-link { color: var(--red-text); text-decoration: underline; cursor: pointer; }
.badge.top { background: none; color: var(--soft); box-shadow: inset 0 0 0 1px var(--muted-1); }   /* gold is for #1 only */
.jrow .uavatar { width: 32px; height: 32px; }
.tag.judge-tag, .tag.you-tag, .tag.friend-tag { margin-left: 8px; font-size: 10px; padding: 1px 6px; vertical-align: 2px; background: none; }
.tag.judge-tag { box-shadow: inset 0 0 0 1px var(--line); color: var(--soft); }
.tag.you-tag { box-shadow: inset 0 0 0 1px var(--score-red); color: var(--red-text); }
.tag.friend-tag { box-shadow: inset 0 0 0 1px var(--muted-1); color: var(--text); }
.tag.prov-tag { box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
/* Provisional (12-19 graded picks): ranked, but greyed until fully ranked */
.jrow.provisional .j-name, .jrow.provisional .c-pts b, .jrow.provisional .c-stats > span { color: var(--muted); }
.jrow.provisional .uavatar { opacity: 0.6; }
.j-style.needs { color: var(--soft); }
.lb-tabs { margin-bottom: 10px; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 2px; }
.lb-bar .sort-toggle { margin-bottom: 10px; }
.lb-season { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.lb-season select, .ph-filters select { font: inherit; font-size: 13px; font-weight: 600; color: var(--text); background: var(--panel);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; max-width: 260px; }
.me-line { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 12px; padding: 10px 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 14px; color: var(--soft); }
.me-line.is-me { border-color: color-mix(in srgb, var(--score-red) 55%, var(--line)); }
.me-line > span { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.me-line b { color: var(--text); }
.me-line a:not(.btn) { color: var(--red-text); }
.lb-users { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.lb-empty { padding: 18px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.fpanel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 10px; position: sticky; top: 76px; }
.fpanel h3 { margin: 0 0 8px; font-family: var(--font-head); font-size: 18px; font-weight: 800; text-transform: uppercase; }
.fp-note { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.fp-note a { color: var(--red-text); }
.fp-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0;
          border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.fp-row:first-child { border-top: 0; }
.fp-row:hover .fp-name { text-decoration: underline; }
.fp-name { min-width: 0; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-name em { display: block; font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted); white-space: normal; }
.fp-gap { font-size: 12px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }
.fp-gap.ahead { color: var(--soft); }
.fp-gap.behind { color: var(--muted); }

/* Picks page: points */
.pot { font-size: 11px; font-weight: 700; color: var(--soft); white-space: nowrap; }
.pk-tags .pot { padding: 1px 0; }
.pk-status.win { color: var(--win); }
.pk-status.loss { color: var(--loss); }
.pk-score .pk-pts { font-family: var(--font-head); font-size: 20px; font-weight: 800; }

/* Profile: stats and past picks */
.ustats { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.ustat span { line-height: 1.25; }
@media (max-width: 900px) { .ustats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ph-filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; }
.ph-filters label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.p-res.D { color: var(--soft); }
.p-res.V { color: var(--muted); }
.p-pts em { font-style: normal; color: var(--muted); font-size: 14px; }
.p-meta a { color: var(--soft); }

@media (max-width: 600px) {
  .jrow { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .jrow .uavatar { width: 28px; height: 28px; }
  .lb-bar { align-items: flex-start; }
  .lb-season select { max-width: 200px; }
  .me-line { padding: 8px 10px; font-size: 13px; }
  .jrow.lrow { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .lb-users { grid-template-columns: 1fr; }
  .fpanel { position: static; }
  .ustats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-filters label { flex: 1 1 100%; }
  .ph-filters label { min-width: 0; }
  .ph-filters select { flex: 1; min-width: 0; width: 100%; max-width: none; }
}

/* ======================================================================
   Groups (groups.html, group.html, group-settings.html, join.html) and the notification bell
   ====================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gicon { flex: none; display: block; border-radius: 14px; }
.acard h2 .count { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 6px; letter-spacing: 0; }

/* bell */
.sh-bell-wrap { position: relative; }
.sh-bell { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 999px;
           background: var(--panel); color: var(--soft); cursor: pointer; }
.sh-bell .sicon { width: 18px; height: 18px; }
.sh-bell:hover, .sh-bell[aria-expanded="true"] { color: var(--text); border-color: color-mix(in srgb, var(--score-red) 60%, var(--line)); }
.sh-bell-n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--dark-red);
             color: var(--white); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.sh-bell-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 40; width: 320px; padding: 6px; background: var(--panel);
                border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 36px color-mix(in srgb, var(--shadow) 55%, transparent); }
.sh-bell-head { padding: 8px 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
                border-bottom: 1px solid var(--line); }
.sh-note { display: flex; gap: 10px; padding: 10px; border-bottom: 1px solid var(--line); }
.sh-note:last-child { border-bottom: 0; }
.sh-note-text { font-size: 14px; color: var(--soft); min-width: 0; }
.sh-note-text b { color: var(--text); }
.sh-note-text > span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.sh-note-actions { display: flex; gap: 8px; margin-top: 8px; }
.sh-note-text .form-error { margin: 6px 0 0; }
.sh-note-empty { margin: 0; padding: 14px 10px; font-size: 14px; color: var(--muted); }

/* My Groups */
.g-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.code-form { display: flex; gap: 8px; }
.code-form input { flex: 1; min-width: 0; font: inherit; font-family: var(--font-head); font-size: 22px; font-weight: 800; letter-spacing: 0.2em;
                   text-transform: uppercase; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; }
.code-form input:focus { outline: 2px solid var(--score-red); outline-offset: 1px; }
.gcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gcard { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--line);
         border-radius: var(--radius); color: var(--text); text-decoration: none; }
.gcard:hover { border-color: color-mix(in srgb, var(--score-red) 50%, var(--line)); }
.gc-body { flex: 1; min-width: 0; }
.gc-name { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-meta { font-size: 12px; color: var(--muted); }
.gc-rank { font-size: 13px; color: var(--soft); margin-top: 2px; }
.gc-rank b { color: var(--text); }
.gc-rank.first b { color: var(--gold); }
.gc-go { flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.tag.owner-tag, .tag.winner-tag { margin-left: 8px; font-size: 10px; padding: 1px 6px; vertical-align: 2px; background: none; }
.tag.owner-tag { box-shadow: inset 0 0 0 1px var(--muted-2); color: var(--soft); }
.tag.winner-tag { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 70%, transparent); color: var(--gold); }   /* the card's #1 */
.icon-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-opt { position: relative; cursor: pointer; border-radius: 16px; padding: 2px; border: 2px solid transparent; }
.icon-opt input { position: absolute; opacity: 0; pointer-events: none; }
.icon-opt:has(input:checked) { border-color: var(--score-red); }
.icon-opt:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 2px; }
.radio-list .hint { display: block; margin: 0 0 0 24px; }

/* group page */
.ghead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; padding: 18px 20px; margin-bottom: 14px;
         background: linear-gradient(135deg, color-mix(in srgb, var(--score-red) 9%, var(--panel)), var(--panel)); border: 1px solid var(--line);
         border-radius: var(--radius); }
.ghead h1 { margin: 0; font-family: var(--font-head); font-size: 32px; font-weight: 800; text-transform: uppercase; line-height: 1.05; overflow-wrap: anywhere; }
.gh-desc { margin: 4px 0 0; color: var(--soft); font-size: 14px; }
.gh-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.gh-meta b { color: var(--text); }
.gh-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.g-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.g-bar .tabs { border-bottom: 0; margin: 0; }
.g-bar .lb-season { margin-bottom: 8px; }
.jrow.grow { grid-template-columns: 40px minmax(0, 1fr) 86px 56px 82px 70px; }
.jrow.crow { grid-template-columns: 40px minmax(0, 1fr) 86px 90px; }
.g-h2 { margin: 22px 0 10px; font-family: var(--font-head); font-size: 22px; font-weight: 800; text-transform: uppercase; }
.g-h2-sub { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--muted); text-transform: none; margin-left: 6px; }
.gstats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.gstat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.gstat span { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.gstat b { display: block; margin-top: 4px; font-size: 15px; overflow-wrap: anywhere; }
.gstat b.none { color: var(--muted); }
.gstat em { display: block; font-style: normal; font-size: 12px; color: var(--soft); }
.gnext { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 6px; }
.gn-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gn-head h3 { margin: 2px 0; font-family: var(--font-head); font-size: 22px; font-weight: 800; text-transform: uppercase; }
.gn-label { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-text); }
.gn-meta { font-size: 13px; color: var(--muted); }
.gn-count { margin: 10px 0 8px; font-size: 14px; color: var(--soft); }
.gn-count b { color: var(--text); }
.gn-count span { color: var(--muted); font-size: 12px; margin-left: 6px; }
.gn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--panel-2);
         border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.gchip.in { color: var(--text); }
.gchip i { font-style: normal; font-size: 12px; color: var(--muted); }
.gchip.in i { color: var(--win); }
.gchip.me { border-color: color-mix(in srgb, var(--score-red) 55%, var(--line)); }
.g-leave { margin: 22px 0 0; text-align: center; }
.g-leave .link-btn { color: var(--muted); font-size: 13px; }

/* invite dialog */
.invite-dlg { width: min(480px, calc(100vw - 32px)); }
.inv-list { max-height: 50vh; overflow-y: auto; margin: 0 0 10px; border-top: 1px solid var(--line); }
.inv-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.inv-name { flex: 1; min-width: 0; }
.inv-name b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-status { font-size: 13px; color: var(--muted); }
.inv-status.sent { color: var(--win); font-weight: 700; }
.inv-link { display: block; margin-top: 6px; }
.inv-link code { font-size: 12px; color: var(--text); background: var(--bg); padding: 3px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* settings + join + profile */
.back-link { margin: 0 0 10px; font-size: 14px; }
.back-link a { color: var(--soft); }
.code-show { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.code-show code { font-family: var(--font-head); font-size: 28px; font-weight: 800; letter-spacing: 0.2em; color: var(--text);
                  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 4px 14px; }
.danger-zone { border-color: color-mix(in srgb, var(--score-red) 40%, var(--line)); }
.join-card { text-align: center; }
.join-card .gicon { margin: 0 auto 12px; }
.join-meta { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.mini-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mini-group { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; }
.mini-group:hover { border-color: color-mix(in srgb, var(--score-red) 50%, var(--line)); }
.mini-group span { min-width: 0; }
.mini-group b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.mini-group em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .gstats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .g-actions, .gcards, .mini-groups { grid-template-columns: 1fr; }
  .ghead { grid-template-columns: auto minmax(0, 1fr); padding: 14px; }
  .ghead .gicon { width: 56px; height: 56px; }
  .ghead h1 { font-size: 26px; }
  .gh-actions { grid-column: 1 / -1; justify-content: stretch; }
  .gh-actions .btn { flex: 1; }
  .jrow.grow, .jrow.crow { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .gstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-bell-menu { position: fixed; left: 8px; right: 8px; top: 64px; width: auto; }
  .sh-bell { width: 36px; height: 36px; }
}

/* All Fighters (fighters.html): Top 100 / Browse all */
.view-tabs { margin: 16px 0 14px; }
.b-filters { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 10px; }
.b-filters label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.b-filters select { font: inherit; font-size: 13px; font-weight: 600; color: var(--text); background: var(--panel); border: 1px solid var(--line);
                    border-radius: 8px; padding: 6px 10px; max-width: 280px; }
.blist { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.brow { display: grid; grid-template-columns: minmax(0, 1fr) 110px 70px 84px; gap: 10px; align-items: center; padding: 10px 16px;
        border-top: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 13px; }
.brow:hover { background: var(--panel-2); }
.brow.bhead { border-top: 0; background: var(--panel-2); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.brow.bhead:hover { background: var(--panel-2); }
.brow i { font-style: normal; }
.brow:not(.bhead) .b-rec > i, .brow:not(.bhead) .b-elo > i { display: none; }
.b-name { min-width: 0; }
.b-name b { font-family: var(--font-head); font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; }
.b-name > i { color: var(--muted); }
.b-name em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.b-name .flag { vertical-align: -3px; }
.b-rec { font-variant-numeric: tabular-nums; color: var(--soft); }
.b-elo b { font-family: var(--font-head); font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.b-status { font-size: 12px; font-weight: 700; color: var(--muted); }
.b-status.on { color: var(--win); }
.bhead .b-status { color: var(--muted); }
@media (max-width: 600px) {
  .b-filters label { flex: 1 1 100%; justify-content: space-between; }
  .b-filters select { flex: 1; max-width: none; min-width: 0; }
  .brow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name elo" "meta meta"; row-gap: 2px; padding: 10px 12px; }
  .brow.bhead { display: none; }
  .b-name { grid-area: name; }
  .b-elo { grid-area: elo; text-align: right; }
  .brow:not(.bhead) .b-elo > i { display: inline; font-size: 11px; color: var(--muted); }
  .b-rec { grid-area: meta; }
  .brow:not(.bhead) .b-rec > i { display: inline; color: var(--muted); }
  .b-status { display: none; }
}

/* Season stamp on season-based unlock avatars ("S1 '27"): an overlay, so one image works for every season */
.stamped { position: relative; display: inline-block; flex: none; }
.stamped .uavatar { width: 100%; height: 100%; }
.season-stamp { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); white-space: nowrap;
                padding: 1px 6px; border-radius: 999px; background: var(--ring-black); border: 1px solid var(--gold);
                color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: 0.04em; line-height: 1.4; }
.trophy .stamped, .av-opt .stamped { margin: 0 auto; }
