:root {
  /* dark olive + gold, after wowforevertalent.com; chart series keep the validated dark palette */
  color-scheme: dark;
  --page: #101310; --surface: #151a12; --surface-2: #1d2419; --lane: #1a2016;
  --text: #ecebdf; --text-2: #c2c3b1; --muted: #8d9080; --grid: #2a3124; --axis: #3b4533; --border: #3a4530;
  --gold: #d2ad70; --gold-ink: #211c12; --gold-soft: rgba(210,173,112,.14);
  /* secondary accent: a nod to the Forever beta's own sites (e.g. foreverlogs.gg), used sparingly - info
     notices, in-content links, the brand mark - gold stays the primary accent for actions/selection */
  --blue: #4ec3ff; --blue-soft: rgba(78,195,255,.12);
  /* standard WoW class colors, used as a subtle per-class accent (class tiles, spec tabs, the leaderboard
     bars) - never replaces gold's role as the "selected" color */
  --class-warrior: #c79c6e; --class-paladin: #f58cba; --class-hunter: #abd473; --class-rogue: #fff569;
  --class-priest: #ffffff; --class-shaman: #0070de; --class-mage: #69ccf0; --class-warlock: #9482c9; --class-druid: #ff7d0a;
  --c-wrath: #199e70; --c-starfire: #3987e5; --c-moonfire: #d55181; --c-is: #c98500; --c-heal: #0ca30c;
  --c-melee: #d95926; --c-thorns: #9085e9; --c-mob: #e66767; --c-hp: #9085e9; --c-mana: #3987e5;
  --c-fight: #d95926; --seg-travel: #5a5f4f; --critical: #d03b3b; --accent: #d2ad70;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.35);
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(900px 420px at 10% -100px, rgba(78,195,255,.05) 0%, transparent 70%), radial-gradient(1200px 500px at 50% -120px, #1c2417 0%, var(--page) 70%) no-repeat, var(--page); color: var(--text); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .005em; }
header { padding: 22px 28px 8px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
header h1 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
header p { margin: 0; color: var(--text-2); }
.layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; padding: 12px 28px 40px; align-items: start; max-width: 1480px; margin: 0 auto; }
@media (max-width: 1100px) { .layout { grid-template-columns: 280px minmax(0, 1fr); padding: 12px 16px 32px; } }
@media (max-width: 720px) { .layout { grid-template-columns: minmax(0, 1fr); } header { padding: 18px 16px 4px; } }
.card { background: linear-gradient(180deg, #182014 0%, var(--surface) 90px); border: 1px solid var(--border); border-radius: 9px; padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 18px; }
.card h2 { margin: 0 0 4px; font-size: 18px; color: #f2eee0; }
.card .lead { margin: 0 0 12px; color: var(--text-2); font-size: 13px; }
aside { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
@media (max-width: 720px) { aside { position: static; max-height: none; } }
label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--text-2); }
input, select, button { font: inherit; color: var(--text); }
input:not([type=checkbox]), select { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 6px 9px; width: 100%; min-width: 0; }
input:focus-visible, select:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; padding: 8px 0 4px; }
details.group { border-top: 1px solid var(--border); padding: 8px 0; }
details.group summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.chk { flex-direction: row; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text); padding: 3px 0; }
.chk input { margin-top: 3px; accent-color: var(--accent); }
.btn { background: var(--gold); color: var(--gold-ink); border: 0; border-radius: 7px; padding: 9px 16px; font-weight: 700; cursor: pointer; }
.btn:hover { filter: brightness(1.07); }
.btn:disabled { opacity: .6; cursor: progress; }
.ghost { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: 12px; }
.ghost.on, #fight-pick button.on { background: var(--gold); color: var(--gold-ink); border-color: transparent; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; }
.chip { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; font-size: 11.5px; }
.chip.muted { color: var(--text-2); }
.muted { color: var(--muted); }
.mini-table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.mini-table td, .mini-table th { padding: 3px 4px; text-align: left; border-bottom: 1px solid var(--border); }
.mini-table th { color: var(--muted); font-weight: 500; }
.sw { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 6px 0 4px; }
.kpi { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; }
.kpi .k { color: var(--text-2); font-size: 12px; }
.kpi .v { font-size: 24px; font-weight: 650; letter-spacing: -.01em; }
.kpi .s { color: var(--muted); font-size: 11.5px; }

.table-wrap { overflow-x: auto; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
table.cmp th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.cmp td { padding: 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.cmp tbody tr[data-k] { cursor: pointer; }
table.cmp tbody tr[data-k]:hover td { background: var(--surface-2); }
table.cmp tr.sel td { background: var(--surface-2); }
table.cmp tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--accent); font-weight: 600; }
td.bad { color: var(--critical); }
.ibar { display: inline-block; width: 90px; height: 8px; border-radius: 99px; background: var(--grid); margin-right: 8px; vertical-align: 1px; overflow: hidden; }
.ibar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.whisk { display: inline-block; position: relative; width: 110px; height: 10px; margin-right: 8px; vertical-align: 0; }
.whisk::before { content: ""; position: absolute; left: 0; right: 0; top: 4.5px; height: 1px; background: var(--grid); }
.whisk i { position: absolute; top: 2px; height: 6px; border-radius: 99px; background: var(--accent); opacity: .35; }
.whisk b { position: absolute; top: 0; width: 3px; height: 10px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); }
.note { color: var(--text-2); font-size: 12.5px; margin: 10px 0 0; }

/* nameplates */
.plates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 8px; }
@media (max-width: 640px) { .plates { grid-template-columns: 1fr; } }
.plate { background: var(--surface-2); border-radius: 14px; padding: 10px 12px; }
.plate .who { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.plate .who span { color: var(--muted); font-variant-numeric: tabular-nums; }
.plate .sub { font-size: 12px; color: var(--text-2); margin-top: 6px; min-height: 18px; display: flex; gap: 8px; align-items: center; }
.bar { position: relative; height: 20px; border-radius: 99px; background: var(--grid); overflow: hidden; margin-top: 4px; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; transition: width .08s linear; }
.bar.mob i { background: linear-gradient(90deg, color-mix(in oklab, var(--c-mob) 80%, black), var(--c-mob)); }
.bar.hp i { background: linear-gradient(90deg, color-mix(in oklab, var(--c-hp) 80%, black), var(--c-hp)); }
.bar.mana i { background: linear-gradient(90deg, color-mix(in oklab, var(--c-mana) 80%, black), var(--c-mana)); }
.bar span { position: relative; display: block; text-align: center; font-size: 11.5px; line-height: 20px; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.castbar { display: inline-block; width: 90px; height: 6px; border-radius: 99px; background: var(--grid); overflow: hidden; }
.castbar i { display: block; height: 100%; background: var(--c-is); border-radius: 99px; }

/* svg charts */
.chart { display: block; overflow: visible; }
.chart text { font: 11px system-ui, sans-serif; fill: var(--muted); }
.chart .lane { fill: var(--lane); }
.chart .lane-label { fill: var(--text-2); font-size: 12px; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .grid.dashed { stroke-dasharray: 3 4; }
.chart .baseline { stroke: var(--axis); }
.chart .axis { font-variant-numeric: tabular-nums; }
.chart .mini { font-size: 10.5px; }
.chart .arrive { stroke: var(--c-mob); stroke-width: 1.5; stroke-dasharray: 4 4; }
.chart .arrive-label { fill: var(--c-mob); font-weight: 600; }
.chart .stun { fill: var(--c-is); fill-opacity: .14; }
.chart .stun-label { fill: var(--text-2); font-size: 10px; }
.chart .dist-line { fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linejoin: round; }
.chart .pill { stroke: var(--surface); stroke-width: 2; }
.chart .pill-text { fill: #fff; font-weight: 600; font-size: 11px; pointer-events: none; }
.chart .mark { stroke: var(--surface); stroke-width: 2; }
.chart .arc { fill: none; stroke-width: 2; stroke-dasharray: 2 4; stroke-linecap: round; }
.chart .dmg { font-weight: 700; font-size: 11px; fill: var(--text); }
.chart .dmg.crit { fill: var(--text); font-size: 12px; }
.chart .dmg.miss { fill: var(--muted); font-style: italic; font-weight: 500; }
.chart .dmg.stunx { fill: var(--c-is); font-size: 10px; letter-spacing: .05em; }
.chart .mob-area { fill: var(--c-mob); fill-opacity: .16; }
.chart .mob-line { fill: none; stroke: var(--c-mob); stroke-width: 2; }
.chart .hp-area { fill: var(--c-hp); fill-opacity: .16; }
.chart .hp-line { fill: none; stroke: var(--c-hp); stroke-width: 2; }
.chart .mana-area { fill: var(--c-mana); fill-opacity: .16; }
.chart .mana-line { fill: none; stroke: var(--c-mana); stroke-width: 2; }
.chart .thin { stroke-width: 1.5; }
.chart .swing { fill: var(--c-mob); }
.chart .swing-miss { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.chart .xhair { stroke: var(--text); stroke-width: 1; stroke-opacity: .5; pointer-events: none; }
.chart .seg { cursor: pointer; }
.chart .seg:hover, .chart .bar:hover { filter: brightness(1.15); }
.chart .median { stroke: var(--text-2); stroke-dasharray: 3 3; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-2); margin-top: 8px; }
.tip { position: fixed; left: 0; top: 0; z-index: 10; pointer-events: none; opacity: 0; transition: opacity .1s;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px;
  font-size: 12px; box-shadow: var(--shadow); max-width: 280px; }
.tip hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
#fight, #session, #hist { overflow-x: auto; }
main { min-width: 0; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 1200px) { .two { grid-template-columns: minmax(0, 1fr); } }
.two > .card + .card { margin-top: 0; }
header nav { display: flex; gap: 6px; margin-left: auto; }
header nav a { color: var(--text-2); text-decoration: none; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; }
header nav a[aria-current] { color: var(--gold); border-color: transparent; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }

/* scenario diagrams page */
main.solo { max-width: 1280px; margin: 0 auto; padding: 12px 28px 40px; }
@media (max-width: 980px) { main.solo { padding: 12px 16px 32px; } }
code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 0 5px; font-size: 12.5px; }
.title-input { flex: 1; width: auto !important; font-weight: 650; font-size: 15px; background: transparent !important; border-color: transparent !important; padding-left: 0 !important; }
.title-input:hover, .title-input:focus { border-color: var(--border) !important; padding-left: 9px !important; }
.ladder-wrap { overflow-x: auto; margin-top: 6px; }
.chart .gcd-box { fill: none; stroke-width: 1.5; stroke-dasharray: 3 3; }
.chart .travel { fill-opacity: .22; stroke-width: 1.5; stroke-opacity: .8; }
.chart .bar-text { fill: var(--text-2); font-size: 11px; }
.chart .drop { stroke-width: 1; stroke-dasharray: 1 4; stroke-opacity: .7; }
.chart .hp-ghost.mob { fill: var(--c-mob); fill-opacity: .08; }
.chart .hp-ghost.me { fill: var(--c-hp); fill-opacity: .1; }
.chart .arrow-label { fill: var(--text); font-size: 10.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart .badge-text { fill: var(--c-is); font-weight: 700; font-size: 10.5px; letter-spacing: .05em; }
.chart .cast { cursor: default; }
p.bad { color: var(--critical); }

/* notes page */
.notes .card h2 { font-size: 17px; margin-bottom: 8px; }
.notes .card h3 { font-size: 14px; margin: 16px 0 6px; }
.notes .card p, .notes .card li { color: var(--text-2); max-width: 78ch; }
.notes .card p b, .notes .card li b { color: var(--text); }
.notes .card ul { padding-left: 20px; margin: 6px 0; }
.notes table.cmp { margin: 8px 0 4px; }
.notes .callout { background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.notes .callout p { margin: 4px 0; color: var(--text); }
.notes a { color: var(--blue); }
.notes .dated { color: var(--muted); font-size: 12px; }

.chart .energy-area { fill: var(--c-is); fill-opacity: .16; }
.chart .energy-line { fill: none; stroke: var(--c-is); stroke-width: 2; }
.bar.energy i { background: linear-gradient(90deg, color-mix(in oklab, var(--c-is) 80%, black), var(--c-is)); }

/* site chrome */
.ad-slot { height: 100px; margin: -2px 0 14px; border-radius: 12px; overflow: hidden; background: var(--surface-2); display: flex; }
.house-ad { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 14px; text-decoration: none; color: var(--text);
  border: 1px dashed var(--border); border-radius: 12px; }
.house-ad span { color: var(--text-2); font-size: 12.5px; }
.house-ad:hover { background: color-mix(in oklab, var(--surface-2) 80%, var(--accent)); }
.site-footer { max-width: 1280px; margin: 0 auto; padding: 8px 28px 32px; color: var(--muted); font-size: 12px; }
.site-footer p { margin: 4px 0; max-width: 110ch; }
.site-footer a { color: var(--text-2); }
.ico { width: 16px; height: 16px; border-radius: 4px; vertical-align: -3px; margin-right: 6px; box-shadow: 0 0 0 1px var(--border); }
.chk .ico { margin-top: 1px; }
.chip.bad { color: var(--critical); border-color: color-mix(in oklab, var(--critical) 40%, transparent); }

.kofi { display: inline-block; background: #72a4f2; color: #fff; font-weight: 600; text-decoration: none; padding: 10px 16px; border-radius: 12px; }
.kofi:hover { filter: brightness(1.08); }
.hint { font-size: 11.5px; color: var(--muted); margin: 4px 0 0; }
i.q { font-style: normal; font-size: 10px; color: var(--muted); border: 1px solid var(--border); border-radius: 50%; padding: 0 4px; margin-left: 2px; cursor: help; }
.chip.warn { color: var(--text); border-color: color-mix(in oklab, var(--c-is) 50%, transparent); background: color-mix(in oklab, var(--c-is) 12%, var(--surface-2)); }

/* forever-style chrome: brand bar, class tiles, spec tabs, control bar */
header { max-width: 1480px; margin: 0 auto; padding: 16px 28px 0; display: block; }
header .topbar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); margin-right: auto; }
.brand .mark { width: 40px; height: 40px; flex: none; } /* assets/logo-v1.svg: flame over a grinding gear (assets are cached immutably: bump the name to change it) */
.brand b { display: block; font-family: var(--serif); letter-spacing: .18em; font-size: 18px; line-height: 1; }
.brand small { display: block; letter-spacing: .28em; font-size: 10px; color: var(--blue); margin-top: 3px; opacity: .8; }
header nav { margin-left: 0; }
header nav a { border: 0; border-radius: 0; padding: 6px 4px; margin: 0 6px; font-size: 14px; color: var(--text-2); }
header nav a:hover { color: var(--text); }
.hero { max-width: 1480px; margin: 0 auto; padding: 16px 28px 6px; }
.hero .eyebrow { color: var(--muted); letter-spacing: .22em; font-size: 11px; text-transform: uppercase; margin: 0 0 4px; }
.hero h1 { margin: 0; font-size: 30px; color: #f3efe0; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { margin: 6px 0 0; color: var(--text-2); max-width: 90ch; }
.classbar { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; margin: 4px 0 14px; }
@media (max-width: 640px) { .classbar { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .classtile { font-size: 11px; padding: 7px 2px 5px; } .classtile img { width: 26px; height: 26px; } .classtile .soon-tag { display: none; } }
.classtile { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 4px 9px; border: 1px solid var(--border); border-radius: 7px;
  background: var(--surface); color: var(--text-2); text-decoration: none; font-size: 12px; position: relative; }
.classtile img { width: 30px; height: 30px; border-radius: 5px; box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.classtile:hover { border-color: #5a6848; color: var(--text); }
.classtile.on { border-color: var(--gold); color: var(--gold); background: linear-gradient(180deg, var(--gold-soft), var(--surface)); box-shadow: inset 0 -2px 0 var(--gold); }
.classtile.soon { opacity: .45; pointer-events: none; }
.classtile .soon-tag { position: absolute; top: 3px; right: 4px; font-size: 9px; letter-spacing: .06em; color: var(--muted); }
/* class color: a thin underline, always on, so each class reads at a glance - separate from the gold "on" state above */
.classtile::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--class-color, transparent); opacity: .65; }
.classtile.on::after { opacity: 0; } /* the gold underline already shows selection; don't stack two accent colors */
.specbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.spectab { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface);
  color: var(--text-2); text-decoration: none; font-family: var(--serif); font-size: 15px; box-shadow: inset 2px 0 0 var(--class-color, transparent); }
.spectab img { width: 24px; height: 24px; border-radius: 5px; }
.spectab.on { border-color: var(--gold); color: #f3efe0; background: linear-gradient(180deg, var(--gold-soft), var(--surface)); }
.spectab.soon { opacity: .45; pointer-events: none; }
.pagetabs { display: flex; gap: 4px; flex-wrap: wrap; margin: -4px 0 16px; border-bottom: 1px solid var(--border); }
.pagetabs a { color: var(--text-2); text-decoration: none; padding: 7px 12px; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pagetabs a:hover { color: var(--text); }
.pagetabs a[aria-current] { color: var(--gold); border-bottom-color: var(--gold); }
.spectab small { font-family: system-ui, sans-serif; font-size: 10px; color: var(--muted); }
.controlbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin: -2px 0 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
.controlbar label { flex-direction: row; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.controlbar select { width: auto; }
.controlbar .pts { display: flex; align-items: baseline; gap: 6px; margin-right: auto; }
.controlbar .pts b { font-family: var(--serif); font-size: 26px; color: var(--gold); line-height: 1; }
.controlbar .pts span { font-size: 11.5px; color: var(--muted); line-height: 1.2; }
input:not([type=checkbox]), select { background: #11160e; border-color: var(--border); }
table.cmp tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.site-footer { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 14px; }

.ad-slot { width: 100%; max-width: 300px; height: 100px; margin: 0 auto 14px; border-radius: 7px; }
.ad-placeholder { flex: 1; display: grid; place-items: center; border: 1px dashed var(--border); border-radius: 7px; color: var(--muted);
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; }
.kofi-top { margin-left: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--gold); border-radius: 7px;
  color: var(--gold); text-decoration: none; font-size: 13px; white-space: nowrap; }
.kofi-top span { color: var(--text-2); }
.kofi-top:hover { background: var(--gold-soft); }
@media (max-width: 900px) { .kofi-top span { display: none; } }
.kofi-card { display: flex; align-items: center; gap: 8px; width: fit-content; margin: 4px 0 12px; padding: 10px 16px; background: var(--gold); color: var(--gold-ink);
  border-radius: 8px; text-decoration: none; font-size: 14px; }
.kofi-card span { opacity: .85; }
.kofi-card:hover { filter: brightness(1.07); }
.site-footer a.kofi-card, .site-footer a.kofi-card b { color: var(--gold-ink); }

header .topbar { flex-wrap: nowrap; }
header nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
header nav a.nav-kofi { color: var(--gold); border: 1px solid var(--gold); border-radius: 7px; padding: 4px 10px; margin-left: 10px; white-space: nowrap; }
header nav a.nav-kofi:hover { background: var(--gold-soft); color: var(--gold); }
@media (max-width: 1000px) { header nav a.nav-kofi span { display: none; } header nav a { margin: 0 4px; font-size: 13px; } }

.devnote { display: inline-block; margin: 0 0 14px; padding: 4px 10px; font-size: 12px; color: var(--text-2); background: var(--blue-soft); border: 1px dashed rgba(78,195,255,.35); border-radius: 6px; }
.devnote b { color: var(--blue); font-weight: 600; }
.devnote a { color: var(--blue); }

/* leaderboard */
.lb-levels { display: flex; gap: 6px; }
.lb-levels button { white-space: nowrap; }
.lb-levels button.on, .lb-levels button.on:hover { background: var(--gold-soft); color: var(--gold); border-color: var(--gold); }
.lb-caveat { margin: 12px 0 16px; background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 12px; padding: 10px 14px; max-width: 80ch; }
.lb-caveat p { margin: 4px 0; color: var(--text); font-size: 0.92em; }
table.lb td { vertical-align: middle; }
table.lb td:nth-child(3) { white-space: normal; min-width: 200px; max-width: 300px; line-height: 1.35; }
@media (max-width: 1000px) { table.lb th:nth-child(7), table.lb td:nth-child(7) { display: none; } }
table.lb td:nth-child(2) { white-space: nowrap; }
.lb-rank { color: var(--muted); width: 2em; }
.lb-spec { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 600; }
.lb-spec:hover span { color: var(--gold); }
.lb-spec img { border-radius: 4px; }
.lb-bar { position: relative; min-width: 110px; height: 22px; border-radius: 6px; background: var(--grid); overflow: hidden; }
.lb-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, color-mix(in oklab, var(--class-color, var(--gold)) 45%, transparent), color-mix(in oklab, var(--class-color, var(--gold)) 80%, transparent)); }
.lb-bar b { position: relative; padding-left: 8px; line-height: 22px; font-variant-numeric: tabular-nums; }
.lb-more { margin-left: 6px; padding: 1px 8px; font-size: 11px; border-radius: 99px; border: 1px solid var(--border); background: none; color: var(--muted); cursor: pointer; }
.lb-more:hover, .lb-more[aria-expanded="true"] { color: var(--gold); border-color: var(--gold); }
tr.lb-sub td { color: var(--text-2); font-size: 12px; padding-top: 5px; padding-bottom: 5px; }
.lb-rot-m { display: none; }
@media (max-width: 700px) {
  table.lb th:nth-child(3), table.lb td:nth-child(3), table.lb th:nth-child(n+5), table.lb td:nth-child(n+5) { display: none; }
  table.lb td:nth-child(2) { white-space: normal; }
  .lb-rot-m { display: block; margin: 3px 0 0 30px; color: var(--muted); font-size: 11px; line-height: 1.3; }
  .lb-bar { min-width: 80px; }
}
