/* ==========================================================================
   The Finals Account Trust — finalstracker.net
   Dark + light theme. Type: Saira / Saira Condensed / JetBrains Mono.
   ========================================================================== */

/* --- self-hosted fonts (latin + latin-ext subsets) ------------------------ */
/* Saira and JetBrains Mono ship one variable file per subset, so every weight
   points at the same URL; Saira Condensed is static and needs a file each. */
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:400; font-display:swap;
  src:url("/fonts/jetbrains-mono-latin-ext.woff2") format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:400; font-display:swap;
  src:url("/fonts/jetbrains-mono-latin.woff2") format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:700; font-display:swap;
  src:url("/fonts/jetbrains-mono-latin-ext.woff2") format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:700; font-display:swap;
  src:url("/fonts/jetbrains-mono-latin.woff2") format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

@font-face { font-family:'Saira'; font-style:normal; font-weight:400; font-stretch:100%; font-display:swap;
  src:url("/fonts/saira-latin-ext.woff2") format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Saira'; font-style:normal; font-weight:400; font-stretch:100%; font-display:swap;
  src:url("/fonts/saira-latin.woff2") format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Saira'; font-style:normal; font-weight:600; font-stretch:100%; font-display:swap;
  src:url("/fonts/saira-latin-ext.woff2") format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Saira'; font-style:normal; font-weight:600; font-stretch:100%; font-display:swap;
  src:url("/fonts/saira-latin.woff2") format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Saira'; font-style:normal; font-weight:700; font-stretch:100%; font-display:swap;
  src:url("/fonts/saira-latin-ext.woff2") format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Saira'; font-style:normal; font-weight:700; font-stretch:100%; font-display:swap;
  src:url("/fonts/saira-latin.woff2") format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

@font-face { font-family:'Saira Condensed'; font-style:normal; font-weight:500; font-display:swap;
  src:url("/fonts/saira-cond-500-latin-ext.woff2") format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Saira Condensed'; font-style:normal; font-weight:500; font-display:swap;
  src:url("/fonts/saira-cond-500-latin.woff2") format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Saira Condensed'; font-style:normal; font-weight:600; font-display:swap;
  src:url("/fonts/saira-cond-600-latin-ext.woff2") format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Saira Condensed'; font-style:normal; font-weight:600; font-display:swap;
  src:url("/fonts/saira-cond-600-latin.woff2") format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Saira Condensed'; font-style:normal; font-weight:700; font-display:swap;
  src:url("/fonts/saira-cond-700-latin-ext.woff2") format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Saira Condensed'; font-style:normal; font-weight:700; font-display:swap;
  src:url("/fonts/saira-cond-700-latin.woff2") format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* --- tokens --------------------------------------------------------------- */
:root {
  --bg: #0a0c0f;
  --bg-2: #0f1216;
  --panel: #13171d;
  --panel-2: #171c23;
  --line: #212932;
  --text: #e9eef4;
  --muted: #8a97a5;
  --faint: #5d6875;

  --accent: oklch(0.84 0.16 92);       /* gold */
  --accent-dim: oklch(0.40 0.09 92);   /* hero glow */
  --accent-ink: #0a0c0f;               /* text on gold */
  --accent-soft: color-mix(in oklab, var(--accent) 12%, transparent);

  /* Trust severity. "Unsure" is deliberately neutral, not alarming. */
  --low: oklch(0.78 0.13 160);         /* Trusted   */
  --elevated: oklch(0.74 0.03 240);    /* Unsure    */
  --high: oklch(0.80 0.13 75);         /* Suspicious */
  --very-high: oklch(0.66 0.17 22);    /* Untrusted */
  --smurf: oklch(0.72 0.18 305);       /* smurf violet */
  --smurf-deep: oklch(0.58 0.20 305);

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Saira', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cond: 'Saira Condensed', 'Saira', system-ui, sans-serif;

  --radius: 12px;
  --pad: 28px;
  --shadow: 0 1px 0 rgba(255,255,255,.03), 0 18px 40px -24px rgba(0,0,0,.8);
  --maxw: 1240px;
}
[data-theme="light"] {
  --bg: #eef1f4;
  --bg-2: #f6f8fa;
  --panel: #ffffff;
  --panel-2: #f4f7f9;
  --line: #dfe5eb;
  --text: #0d1216;
  --muted: #5b6773;
  --faint: #8592a0;

  --accent: oklch(0.72 0.16 82);
  --accent-dim: oklch(0.93 0.06 92);
  --accent-ink: #ffffff;
  --accent-soft: color-mix(in oklab, var(--accent) 12%, transparent);

  --low: oklch(0.55 0.13 160);
  --elevated: oklch(0.55 0.03 240);
  --high: oklch(0.62 0.13 68);
  --very-high: oklch(0.55 0.17 22);
  --smurf: oklch(0.52 0.20 305);
  --smurf-deep: oklch(0.45 0.20 305);

  --shadow: 0 1px 2px rgba(16,24,32,.06), 0 12px 28px -20px rgba(16,24,32,.35);
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
[data-theme="light"] { color-scheme: light; }
body {
  margin: 0;
  color: var(--text);
  font: 400 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 520px at 78% -12%, var(--accent-dim), transparent 62%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 340px) no-repeat,
    var(--bg);
  min-height: 100vh;
  padding: 0 var(--pad) 72px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text); }
input, select, button, textarea { font-family: inherit; }
.mono { font-family: var(--mono); }

/* --- top bar -------------------------------------------------------------- */
.topbar {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 22px 0 24px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brandmark {
  width: 34px; height: 34px; flex: 0 0 34px; background: var(--accent);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: flex; align-items: center; justify-content: center;
}
.brandmark span { font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--accent-ink); letter-spacing: -.5px; }
.brandtext { display: flex; flex-direction: column; line-height: 1; gap: 4px; min-width: 0; }
.logo {
  font-family: var(--cond); font-size: 20px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text); text-decoration: none; white-space: nowrap;
}
.logo b { color: var(--muted); font-weight: 500; }
.brandsub { font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em; color: var(--faint); text-transform: uppercase; white-space: nowrap; }
.tag {
  font-family: var(--mono); font-size: 10px; color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent); padding: 2px 7px; border-radius: 5px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
}
.meta { color: var(--faint); font-family: var(--mono); font-size: 11px; flex: 1; text-align: right; }
.topctrl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-state { color: var(--low); font-weight: 600; font-size: 12px; }

.btn {
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  border-radius: 8px; padding: 9px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.btn:hover { opacity: .86; color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 400; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.report { display: flex; align-items: center; gap: 7px; }
.btn.report::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--very-high); }
.btn.report:hover { border-color: var(--very-high); color: var(--very-high); }
.btn.theme { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.btn.theme:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }

/* --- hero ----------------------------------------------------------------- */
.hero {
  max-width: var(--maxw); margin: 0 auto 26px;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.hero-copy { max-width: 560px; }
.hero h1 {
  margin: 0 0 10px; font-family: var(--cond); font-size: 46px; line-height: 1.02;
  font-weight: 700; letter-spacing: .005em; text-transform: uppercase; text-wrap: pretty;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; text-wrap: pretty; }
.hero-live { font-family: var(--mono); font-size: 11px; color: var(--faint); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.hero-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--low); }


/* --- stat cards ----------------------------------------------------------- */
.bands {
  max-width: var(--maxw); margin: 0 auto 22px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px;
}
.bandcard {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.bandcard .l { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--faint); text-transform: uppercase; }
.bandcard .v { display: flex; align-items: baseline; gap: 9px; }
.bandcard .n { font-family: var(--mono); font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.bandcard .d { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.bandcard.suspicious .d, .bandcard.very-high .d, .bandcard.confirmed .d, .bandcard.extremely-likely .d { color: var(--very-high); }
.bandcard.smurf .d { color: var(--smurf); }
.bandcard.banned .d { color: var(--high); }
.bandcard.low .d, .bandcard.unlikely .d { color: var(--low); }

/* --- main panel ----------------------------------------------------------- */
.layout { max-width: var(--maxw); margin: 0 auto; }
/* Scoped to the tracker list — the player/FAQ pages use a bare <main>. */
.layout > main {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden;
}

.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tab {
  flex: 0 0 auto; background: transparent; border: 0; border-bottom: 2px solid transparent;
  color: var(--faint); font-size: 13.5px; font-weight: 500; letter-spacing: .01em;
  padding: 15px 20px; cursor: pointer; display: flex; align-items: center; gap: 9px;
}
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); border-bottom-color: var(--accent); }
.tab .tabn { font-family: var(--mono); font-size: 10.5px; color: var(--faint); }

.controls {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--panel-2);
}
.searchbox {
  flex: 1 1 260px; min-width: 220px;
  display: flex; align-items: center; gap: 9px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; height: 38px;
}
.searchbox::before { content: "⌕"; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.searchbox:focus-within { border-color: var(--accent); }
.controls input[type=search] {
  flex: 1; background: transparent; border: 0; outline: none; color: var(--text); font-size: 13.5px; min-width: 0;
}
.controls input[type=search]::-webkit-search-cancel-button { filter: grayscale(1) opacity(.5); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  font-size: 12.5px; padding: 8px 12px; border-radius: 20px; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.controls select {
  margin-left: auto; background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  font-size: 12.5px; padding: 9px 11px; border-radius: 9px; cursor: pointer; outline: none;
}
.controls select:hover { border-color: var(--accent); }
.count { color: var(--faint); font-family: var(--mono); font-size: 11px; }

/* --- table ---------------------------------------------------------------- */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th:first-child, td:first-child { padding-left: 18px; }
th:last-child, td:last-child { padding-right: 18px; }
th {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--faint);
  text-transform: uppercase; font-weight: 400; padding-top: 11px; padding-bottom: 11px;
}
th:nth-child(1), td:nth-child(1) { width: 62px; }
th:nth-child(3), td:nth-child(3) { width: 104px; }
th:nth-child(4), td:nth-child(4) { width: 190px; }
th:nth-child(6), td:nth-child(6) { width: 116px; text-align: right; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--panel-2); }
tbody tr.sel { background: var(--panel-2); }
tbody tr:last-child td { border-bottom: 0; }

.rankcell { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.pcell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.pavatar {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 7px;
  background: var(--panel-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
}
tbody tr:hover .pavatar { background: var(--panel); }
.pmain { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pname { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pname-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.psub { font-family: var(--mono); font-size: 10px; color: var(--faint); }
.leaguecell { font-size: 12.5px; color: var(--muted); }

/* trust cell: hex mark + label + confidence bar */
.trustcell { display: flex; align-items: center; gap: 10px; }
.tiermark {
  width: 22px; height: 24px; flex: 0 0 22px;
  clip-path: polygon(50% 0, 100% 22%, 100% 68%, 50% 100%, 0 68%, 0 22%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--accent-ink);
}
[data-theme="light"] .tiermark { color: #fff; }
.tiermark.confirmed, .tiermark.extremely-likely, .tiermark.banned { background: var(--very-high); }
.tiermark.likely { background: var(--high); }
.tiermark.possible { background: var(--elevated); }
.tiermark.unlikely { background: var(--low); }
.tiermark.smurf, .tiermark.likely-smurf { background: var(--smurf); }
.tiermark.possible-smurf { background: var(--smurf-deep); }
.trustmain { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.confbar { width: 76px; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.confbar i { display: block; height: 100%; }
.confbar i.confirmed, .confbar i.extremely-likely, .confbar i.banned { background: var(--very-high); }
.confbar i.likely { background: var(--high); }
.confbar i.possible { background: var(--elevated); }
.confbar i.unlikely { background: var(--low); }
.confbar i.smurf, .confbar i.likely-smurf { background: var(--smurf); }
.confbar i.possible-smurf { background: var(--smurf-deep); }

/* --- expanded row --------------------------------------------------------- */
.caret { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-left: 9px; }
.caret::after { content: "▼"; }
tbody tr.expanded .caret::after { content: "▲"; }
tbody tr.expanded { background: var(--panel-2); }
tbody tr.expanded > td { border-bottom-color: transparent; }
/* `tr.detail-row > td` outranks the td:nth-child() column widths above. */
tr.detail-row { cursor: default; }
tr.detail-row:hover { background: transparent; }
tr.detail-row > td {
  width: auto; background: var(--panel-2); border-top: 1px solid var(--line);
  padding: 4px 18px 20px; text-align: left;
}
.exp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; padding: 16px 0; }
.exp-cell { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.exp-l { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: var(--faint); text-transform: uppercase; }
.exp-v { font-family: var(--mono); font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
.exp-v .up { color: var(--low); }
.exp-v .down { color: var(--very-high); }
.exp-foot {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; justify-content: space-between;
  border-top: 1px solid var(--line); padding-top: 15px;
}
.exp-whywrap { display: flex; flex-direction: column; gap: 8px; max-width: 620px; }
.exp-why { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.6; text-wrap: pretty; }
.exp-why li { margin: 3px 0; }
p.exp-why { padding-left: 0; }
.exp-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* shared tier tints for text that isn't a pill */
.tint-confirmed, .tint-extremely-likely, .tint-banned { color: var(--very-high); }
.tint-likely { color: var(--high); }
.tint-possible { color: var(--elevated); }
.tint-unlikely { color: var(--low); }
.tint-smurf, .tint-likely-smurf, .tint-possible-smurf { color: var(--smurf); }

.flagcell { display: flex; flex-wrap: wrap; gap: 5px; }
.reasons { color: var(--muted); font-size: 12.5px; }
.reasons li { margin: 1px 0; }
.reasons ul { margin: 0; padding-left: 16px; }
/* signal chips in the Flags column */
.sig {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; white-space: nowrap; color: var(--muted);
}
.sig.hot { color: var(--very-high); }
.sig.warm { color: var(--high); }
.sig.cool { color: var(--muted); }
.sig.violet { color: var(--smurf); }

/* --- grade pills ---------------------------------------------------------- */
.grade-pill {
  display: inline-block; padding: 2px 10px; border-radius: 6px; font-weight: 600;
  font-size: 12px; color: var(--accent-ink); white-space: nowrap;
}
[data-theme="light"] .grade-pill { color: #fff; }
.grade-pill.confirmed, .grade-pill.extremely-likely { background: var(--very-high); }
.grade-pill.likely { background: var(--high); }
.grade-pill.possible { background: var(--elevated); }
.grade-pill.unlikely { background: var(--low); }
.grade-pill.smurf { background: var(--smurf); }
.grade-pill.likely-smurf { background: var(--smurf-deep); color: #fff; }
.grade-pill.possible-smurf { background: transparent; color: var(--smurf); border: 1px solid var(--smurf); }
.grade-pill.banned { background: transparent; color: var(--very-high); border: 1px solid var(--very-high); }
/* the trust label rendered plain (in-table), coloured by tier */
.trustlabel { font-size: 12.5px; font-weight: 500; }
.trustlabel.confirmed, .trustlabel.extremely-likely, .trustlabel.banned { color: var(--very-high); }
.trustlabel.likely { color: var(--high); }
.trustlabel.possible { color: var(--elevated); }
.trustlabel.unlikely { color: var(--low); }
.trustlabel.smurf, .trustlabel.likely-smurf { color: var(--smurf); }
.trustlabel.possible-smurf { color: var(--smurf); }

.grade-big { font-family: var(--cond); font-size: 30px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; margin: 2px 0; }
.grade-big.confirmed, .grade-big.extremely-likely, .grade-big.banned { color: var(--very-high); }
.grade-big.likely { color: var(--high); }
.grade-big.possible { color: var(--elevated); }
.grade-big.unlikely { color: var(--low); }
.grade-big.smurf, .grade-big.likely-smurf { color: var(--smurf); }
.grade-big.possible-smurf { color: var(--smurf); }

/* suspicion-confidence % */
.conf { margin-left: 7px; font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--faint); vertical-align: middle; }
.grade-col { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.conf-big { font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.why ul { margin: 4px 0 0; padding-left: 18px; }
.why li { margin: 3px 0; }

/* --- small labels / badges ------------------------------------------------ */
.lbl { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 6px; border-radius: 5px; font-weight: 400; white-space: nowrap; }
.lbl.cheater { background: var(--very-high); color: var(--accent-ink); }
.lbl.legit { background: var(--low); color: var(--accent-ink); }
.lbl.unsure { background: var(--elevated); color: var(--accent-ink); }
.lbl.smurf { background: var(--smurf); color: var(--accent-ink); }
.lbl.smurf-maybe, .lbl.possible-smurf { background: transparent; color: var(--smurf); border: 1px solid var(--smurf); }
.lbl.likely-smurf { background: var(--smurf-deep); color: #fff; }
.lbl.reported { background: transparent; color: var(--high); border: 1px solid var(--high); }
.lbl.renamed { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
[data-theme="light"] .lbl.cheater, [data-theme="light"] .lbl.legit,
[data-theme="light"] .lbl.unsure, [data-theme="light"] .lbl.smurf { color: #fff; }
.reported-text { color: var(--high); }

/* live activity markers */
@keyframes actpulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
.lbl.act-active { background: var(--low); color: var(--accent-ink); animation: actpulse 1.8s ease-in-out infinite; }
.lbl.act-soon { background: var(--high); color: var(--accent-ink); }
.lbl.act-maybe { background: transparent; color: var(--elevated); border: 1px solid var(--elevated); }
[data-theme="light"] .lbl.act-active, [data-theme="light"] .lbl.act-soon { color: #fff; }
.live-badge { font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 12px;
  margin-top: 3px; white-space: nowrap; text-transform: uppercase; letter-spacing: .08em; }
.live-badge.act-active { background: var(--low); color: var(--accent-ink); animation: actpulse 1.8s ease-in-out infinite; }
.live-badge.act-soon { background: var(--high); color: var(--accent-ink); }
.live-badge.act-maybe { background: transparent; color: var(--elevated); border: 1px solid var(--elevated); }
[data-theme="light"] .live-badge.act-active, [data-theme="light"] .live-badge.act-soon { color: #fff; }
.act-live { display: inline-block; font-weight: 600; font-size: 14px; margin: 2px 0 10px; padding: 4px 12px; border-radius: 12px; }
.act-live.act-active { background: color-mix(in oklab, var(--low) 16%, transparent); color: var(--low); }
.act-live.act-soon { background: color-mix(in oklab, var(--high) 16%, transparent); color: var(--high); }
.act-live.act-maybe { background: color-mix(in oklab, var(--elevated) 16%, transparent); color: var(--elevated); }

.score-pill { display: inline-block; min-width: 38px; text-align: center; font-weight: 600;
  padding: 2px 8px; border-radius: 6px; color: var(--accent-ink); }
.score-pill.very-high { background: var(--very-high); }
.score-pill.high { background: var(--high); }
.score-pill.elevated { background: var(--elevated); }
.score-pill.low { background: var(--low); }
.score-pill.banned { background: transparent; color: var(--very-high); border: 1px solid var(--very-high); font-size: 11px; }
.banned-row { opacity: .8; }
.banned-row .pname-t { text-decoration: line-through; text-decoration-color: var(--very-high); }
.bigscore.banned-big { color: var(--very-high); font-size: 30px; }

/* --- list footer ---------------------------------------------------------- */
.loadmore { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 15px 18px; }
.disclaimer {
  max-width: var(--maxw); margin: 22px auto 0;
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
}
.disclaimer p { margin: 0; max-width: 720px; font-size: 12.5px; line-height: 1.65; color: var(--faint); text-wrap: pretty; }
.disclaimer b { color: var(--muted); }
.disclaimer a { font-size: 13px; white-space: nowrap; }

footer { color: var(--faint); font-size: 12px; text-align: center; padding: 24px 20px 10px; }
footer b { color: var(--muted); }
footer .faq-link { margin-top: 6px; }
footer .faq-link a:hover { text-decoration: underline; }

/* --- player profile page -------------------------------------------------- */
.profile { max-width: 940px; margin: 0 auto; padding: 20px 0 40px; }
.profile-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.profile-head h1 { margin: 0; font-family: var(--cond); font-size: 34px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.profile-head .sub { color: var(--muted); margin-top: 4px; font-size: 13px; }
.pill-row { display: flex; gap: 6px; margin: 8px 0; flex-wrap: wrap; }
.offboard-note {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--muted);
  color: var(--text); border-radius: 10px; padding: 10px 14px; font-size: 13px; line-height: 1.45; margin: 10px 0 4px;
}
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 16px 0; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
/* player.js emits value-then-label; the cards read label-first everywhere else. */
.stat-l { order: -1; font-family: var(--mono); color: var(--faint); font-size: 10px;
  text-transform: uppercase; letter-spacing: .16em; margin-bottom: 8px; }
.stat-n { font-family: var(--mono); font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.stat-s { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.profile-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 12px 0; box-shadow: var(--shadow); }
.profile-card h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.card-head h3 { margin: 0; }
.chart-tabs { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.range-tabs, .season-tabs { display: flex; gap: 4px; }
.range-tabs button, .season-tabs button {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
  border-radius: 7px; padding: 5px 10px; font-family: var(--mono); font-size: 11px; cursor: pointer;
}
.range-tabs button:hover, .season-tabs button:hover { border-color: var(--accent); color: var(--accent); }
.range-tabs button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.season-tabs button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.cutoff-toggle {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
  border-radius: 7px; padding: 5px 10px; font-family: var(--mono); font-size: 11px; cursor: pointer;
}
.cutoff-toggle.on { background: #ff2d55; color: #fff; border-color: #ff2d55; }
.profile-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.why-list { margin: 0; padding-left: 18px; } .why-list li { margin: 4px 0; }
.acct-line { margin-top: 10px; font-size: 13px; }
.links-list div { margin: 5px 0; font-size: 13px; }
.links-list a { color: var(--smurf); }
.review.big { display: flex; gap: 6px; margin-bottom: 10px; }
.review.big button { padding: 6px 12px; }
.profile-actions { display: flex; gap: 10px; margin: 16px 0 40px; flex-wrap: wrap; }
.elo-t { fill: var(--faint); font-size: 11px; font-family: var(--mono); }

/* interactive ELO chart */
.chart-wrap { position: relative; }
.elo-grid { stroke: var(--line); stroke-width: 1; }
.elo-pt, .cutoff-pt { cursor: pointer; transition: r .1s ease; stroke: var(--panel); stroke-width: 1.5; }
.elo-pt:hover, .cutoff-pt:hover { r: 5.5; }
.chart-tip {
  position: absolute; transform: translate(-50%, -100%); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; pointer-events: none;
  white-space: nowrap; box-shadow: var(--shadow); z-index: 5;
}
.tip-rs { font-family: var(--mono); font-weight: 700; }
.tip-g { font-size: 12px; font-weight: 600; }
.tip-t { color: var(--faint); font-family: var(--mono); font-size: 11px; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--muted); }
.chart-legend span::before { content: "●"; margin-right: 4px; }
.chart-legend .note::before { content: ""; margin: 0; }

/* estimated active time */
.act-line { font-size: 14px; margin: 2px 0 14px; }
.act-line b { color: var(--text); }
.hbars { display: flex; align-items: flex-end; gap: 2px; height: 30px; margin-bottom: 20px; }
.hbar-wrap { flex: 1; display: flex; align-items: flex-end; justify-content: center; height: 100%; position: relative; }
.hbar { width: 100%; max-width: 13px; background: var(--line); border-radius: 2px 2px 0 0; }
.hbar.peak { background: var(--low); }
.hb-l { position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 9px; color: var(--faint); white-space: nowrap; }

/* --- modal ---------------------------------------------------------------- */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.62); display: flex; align-items: flex-start;
  justify-content: center; padding: 60px 16px; z-index: 50; overflow: auto;
}
.modal {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; width: 560px;
  max-width: 100%; box-shadow: 0 30px 70px -20px rgba(0,0,0,.7);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 16px; font-weight: 600; }
.modal .x { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; }
.modal .x:hover { color: var(--text); }
.modal-body { padding: 16px 18px; }
.modal-body label { display: block; font-family: var(--mono); color: var(--faint); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; margin: 12px 0 5px; }
.modal-body input, .modal-body select, .modal-body textarea {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 9px 11px; font-size: 13.5px; outline: none;
}
.modal-body input:focus, .modal-body select:focus, .modal-body textarea:focus { border-color: var(--accent); }
.modal-body h4 { margin: 18px 0 6px; font-size: 14px; font-weight: 600; }
.modal-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.report-warn {
  background: color-mix(in oklab, var(--high) 12%, transparent); border: 1px solid var(--high);
  color: var(--text); border-radius: 8px; padding: 9px 12px; font-size: 13px; margin: 6px 0 2px;
}
.muted { color: var(--muted); }
.rep-hint { font-size: 12px; margin: -4px 0 8px; }
.overview {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; font-size: 12.5px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
}
.overview > div { grid-column: span 2; }
.ins-row { display: grid; grid-template-columns: 1fr 70px 70px 90px; gap: 8px; align-items: center; font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.ins-row b { text-align: right; font-family: var(--mono); }
.ins-row .muted { text-align: right; font-family: var(--mono); }
.ins-head { color: var(--faint); font-size: 11px; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.ins-hot { color: var(--very-high); }
.ins-up { color: var(--very-high); font-size: 11px; font-weight: 600; }
.toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 6px 0; cursor: pointer; }
.toggle input { width: auto; }
.set-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.set-row label { flex: 0 0 150px; margin: 0; color: var(--text); font-size: 13px;
  font-family: var(--sans); text-transform: none; letter-spacing: 0; }
.set-row input { width: 90px; }

/* --- reports -------------------------------------------------------------- */
.reports-list { max-height: 60vh; overflow: auto; }
.rep { border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; margin: 8px 0; }
.rep.reviewed { opacity: .65; } .rep.dismissed { opacity: .5; }
.rep.accepted { border-left: 3px solid var(--low); }
.rep.dismissed { border-left: 3px solid var(--muted); }
.reports-section { font-size: 14px; margin: 16px 0 6px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.rep-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rep-ev { margin: 8px 0; white-space: pre-wrap; font-size: 13px; color: var(--text);
  background: var(--panel-2); border-radius: 8px; padding: 9px; }
.rep-act { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rep-act button { background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 7px; padding: 5px 9px; cursor: pointer; font-size: 12px; }
.rep-act button:hover { border-color: var(--accent); color: var(--accent); }
.rep-act .deny-reason { flex: 1 1 220px; min-width: 180px; background: var(--panel-2);
  border: 1px solid var(--line); color: var(--text); border-radius: 7px; padding: 6px 9px; font-size: 12px; }
.rep-deny { margin: 6px 0; font-size: 12.5px; font-style: italic; color: var(--muted); }
.detail-reports { margin: 12px 0; border-top: 1px solid var(--line); padding-top: 10px; }
.rep-link { display: block; text-decoration: none; color: var(--text); }
.rep-link:hover { border-color: var(--accent); }

/* report review page (report.html) */
.report-wrap { max-width: 880px; margin: 0 auto; padding: 8px 0 48px; }
.report-wrap > h1 { margin: 8px 0; font-family: var(--cond); font-size: 30px; text-transform: uppercase; font-weight: 700; }
.queue { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 22px; }
.qrow { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; text-decoration: none; color: var(--text); background: var(--panel); }
.qrow:hover { border-color: var(--accent); background: var(--panel-2); color: var(--text); }
.qrow-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qrow-sub { font-size: 12px; margin-top: 3px; }
.rd-head h1 { margin: 4px 0; font-family: var(--cond); font-size: 26px; text-transform: uppercase; font-weight: 700; }
.kv { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; flex-wrap: wrap; }
.kv:last-child { border-bottom: 0; }
.kv > span:first-child, .kv.col > .muted:first-child { flex: 0 0 160px; }
.kv.col { flex-direction: column; gap: 5px; }
.kv code { font-family: var(--mono); font-size: 12px; color: var(--text); background: var(--panel-2); padding: 2px 6px; border-radius: 5px; }
.kv code.wrap { word-break: break-all; }
.spam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin: 4px 0 12px; font-size: 13px; }
.spam-flag { color: var(--very-high); font-weight: 600; }
.ip-hist { display: flex; flex-direction: column; gap: 4px; }
.ip-hist-row { text-decoration: none; color: var(--text); font-size: 12.5px; padding: 3px 0; }
.ip-hist-row:hover { color: var(--accent); }
.report-actions .ra-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.btn.approve { background: var(--low); color: var(--accent-ink); border-color: var(--low); }
.btn.deny { background: var(--very-high); color: #fff; border-color: var(--very-high); }
.deny-box { border-top: 1px solid var(--line); padding-top: 12px; }
.deny-box textarea { width: 100%; margin: 6px 0 8px; background: var(--panel-2); border: 1px solid var(--line);
  color: var(--text); border-radius: 8px; padding: 9px; font-family: inherit; font-size: 13px; }
.ra-msg { margin-top: 10px; min-height: 16px; }
.lbl.open { background: var(--accent); color: var(--accent-ink); }
.lbl.accepted { background: var(--low); color: var(--accent-ink); }
.lbl.dismissed { background: transparent; color: var(--muted); border: 1px solid var(--line); }

/* --- gate / reviewer / review buttons ------------------------------------- */
.gate { position: fixed; inset: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; z-index: 40; padding: 20px; }
.gate[hidden] { display: none; }
.gate-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px 30px; max-width: 460px; width: 100%; box-shadow: var(--shadow); }
.gate-card .logo { font-size: 20px; margin-bottom: 16px; display: block; }
.gate-card label { display: block; color: var(--faint); font-family: var(--mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; margin: 12px 0 5px; }
.gate-card input { width: 100%; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 9px 11px; }
.gate-card a.btn { display: inline-block; text-decoration: none; }

#reviewer { max-width: 820px; margin: 0 auto; padding: 20px 0; }
.reports-head { display: flex; align-items: baseline; justify-content: space-between; }
.user-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.user-row select { background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 7px; padding: 6px 9px; }

.review { display: flex; gap: 4px; justify-content: flex-end; }
/* As a table cell it must stay table-cell — flex here takes the column out of
   the table's width algorithm and the table overflows its wrapper. */
td.review { display: table-cell; white-space: nowrap; }
td.review button { margin-left: 4px; }
.review button {
  border: 1px solid var(--line); background: var(--panel-2); color: var(--muted);
  border-radius: 6px; padding: 3px 7px; cursor: pointer; font-family: var(--mono); font-size: 11px;
}
.review button:hover { border-color: var(--accent); color: var(--accent); }
.review button.on.cheater { background: var(--very-high); color: var(--accent-ink); border-color: var(--very-high); }
.review button.on.smurf { background: var(--smurf); color: var(--accent-ink); border-color: var(--smurf); }
.review button.on.legit { background: var(--low); color: var(--accent-ink); border-color: var(--low); }
.review button.on.unsure { background: var(--elevated); color: var(--accent-ink); border-color: var(--elevated); }
[data-theme="light"] .review button.on { color: #fff; }

.detail {
  width: 360px; flex: 0 0 360px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; position: sticky; top: 20px; max-height: calc(100vh - 48px); overflow: auto;
}
.detail.empty .hint { color: var(--muted); }
.detail h2 { margin: 0 0 2px; font-size: 18px; }
.detail .sub { color: var(--muted); margin-bottom: 12px; font-size: 13px; }
.detail .review { margin: 12px 0; justify-content: flex-start; }
.detail .review button { padding: 6px 12px; }
.bigscore { font-family: var(--mono); font-size: 40px; font-weight: 700; line-height: 1; }
.contrib { margin: 12px 0; }
.contrib .row { display: grid; grid-template-columns: 44px 1fr; gap: 8px; margin: 6px 0; align-items: start; }
.contrib .pts { font-family: var(--mono); font-weight: 700; color: var(--accent); }
.bar { height: 6px; background: var(--accent); border-radius: 3px; margin-top: 4px; }
.links a { color: var(--accent); display: block; margin: 4px 0; font-size: 13px; }
.smurf-link { color: var(--smurf); font-weight: 600; cursor: pointer; }
.smurf-link:hover { text-decoration: underline; color: var(--smurf); }
.note { width: 100%; margin-top: 8px; background: var(--panel-2); border: 1px solid var(--line);
  color: var(--text); border-radius: 8px; padding: 9px; resize: vertical; }

/* --- FAQ / how-it-works --------------------------------------------------- */
.faq { max-width: 940px; margin: 0 auto; padding: 8px 0 48px; }
.faq h1 { font-family: var(--cond); font-size: 34px; font-weight: 700; text-transform: uppercase; margin: 6px 0 2px; }
.faq .lead-sub { color: var(--muted); margin: 0 0 8px; }
.faq-lead {
  background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 16px 18px; margin: 14px 0 22px; font-size: 15px; line-height: 1.55;
}
.faq-lead b { color: var(--accent); }
.faq .profile-card p { margin: 0 0 10px; line-height: 1.55; }
.faq .profile-card p:last-child { margin-bottom: 0; }
.faq .profile-card ul { margin: 6px 0 10px; padding-left: 20px; }
.faq .profile-card li { margin: 5px 0; line-height: 1.5; }
.faq .profile-card b { color: var(--text); }
.faq .g { color: var(--accent); font-weight: 600; }

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 980px) {
  .hero h1 { font-size: 38px; }
}
@media (max-width: 820px) {
  :root { --pad: 14px; }
  .topbar { flex-wrap: wrap; gap: 12px; padding: 16px 0 18px; }
  .meta { flex: 1 1 100%; text-align: left; order: 3; }
  .hero h1 { font-size: 30px; }
  .hero-live { font-size: 10px; }
  /* League and Flags drop out; the Review column stays but keeps only the
     caret, so the expand affordance survives on a phone. */
  th:nth-child(3), td:nth-child(3),
  th:nth-child(5), td:nth-child(5) { display: none; }
  th:nth-child(1), td:nth-child(1) { width: 30px; }
  th:nth-child(4), td:nth-child(4) { width: 120px; }
  /* The header word "Review" would set this column's min-width; the column is
     only carrying the caret here, so collapse the label but keep the cell. */
  th:nth-child(6), td:nth-child(6) { width: 24px; }
  th:nth-child(6) { font-size: 0; letter-spacing: 0; }
  th:first-child, td:first-child { padding-left: 12px; }
  th:last-child, td:last-child { padding-right: 12px; }
  th, td { padding-left: 5px; padding-right: 5px; }
  .review button { display: none; }
  .caret { margin-left: 0; }
  .pname-t { max-width: 110px; }
  .pavatar { display: none; }
  .confbar { width: 100%; max-width: 100px; }
  tr.detail-row > td { padding: 4px 12px 18px; }
  .exp-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
  .exp-actions { width: 100%; }
  .exp-actions .btn { flex: 1; text-align: center; }
  .controls select { margin-left: 0; }
  .profile-cols, .stat-grid { grid-template-columns: 1fr; }
  .spam-grid, .overview { grid-template-columns: 1fr; }
  .detail { width: 100%; flex: 1 1 auto; position: static; max-height: none; }
}
@media (max-width: 720px) {
  .stat-grid, .profile-cols { grid-template-columns: 1fr; }
}

/* Historic names — the collapsed rename chain on a player profile. Every colour
   comes from the shared theme tokens, so light mode needs no separate rules. */
.namehist { margin-top: 2px; }
.namehist > summary {
  cursor: pointer; list-style: none; color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.namehist > summary::-webkit-details-marker { display: none; }
.namehist > summary::before { content: "\25B8"; font-size: .85em; transition: transform .15s ease; }
.namehist[open] > summary::before { transform: rotate(90deg); }
.namehist > summary:hover { color: var(--text); }
.namehist ul {
  list-style: none; margin: 6px 0 0; padding: 6px 0 2px 10px;
  border-left: 2px solid var(--line);
  display: flex; flex-direction: column; gap: 5px;
}
.namehist li { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.nh-tag {
  font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
  padding: 1px 5px; border-radius: 3px; flex: none;
  border: 1px solid var(--line); color: var(--muted);
}
.nh-tag.nh-now { border-color: var(--accent); color: var(--accent); }
.nh-weak {
  font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); border: 1px dashed var(--line);
  border-radius: 3px; padding: 0 4px; cursor: help;
}
