@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.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: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-ext-wght-normal.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: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-400-normal.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: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-ext-400-normal.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: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-700-normal.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: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-ext-700-normal.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; }

/* Rookstat – clean "bento" panels on soft grey, with a parchment map as the hero.
   Fonts: Bricolage Grotesque (display), Atkinson Hyperlegible (text). Icons: Lucide. */


/* Rookstat v5 – an HLTV-style stats portal, modernised.
   Dense three-column front page, slim dark top bar, compact ranked lists, live markers. */

:root {
  /* Palette taken from the owner's reference (GameVerse dashboard). */
  --bg: #111111;          /* page */
  --panel: #1c1e21;       /* panels */
  --panel-2: #24272b;     /* hover, inner wells */
  --raised: #2b2d32;      /* square icon buttons */
  --bar: #1c1e21;         /* header panel */
  --line: #2a2d32;        /* the few separators left */
  --ink: #f3f4f6;         /* text */
  --ink-2: #8d9097;       /* secondary text */
  --ink-3: #5f636b;       /* tertiary */
  --accent: #356af5;      /* primary blue */
  --link: #5b80d7;        /* soft blue text links */
  --soft: #212737;        /* soft blue button background */
  --live: #f04b4a;        /* LIVE */
  --up: #3ccf6e;          /* gains, online dots */
  --down: #f06a5a;        /* losses, deaths */
  --gold: #dfad46;        /* #1, GOOD JOB, dates */
  --silver: #b9bcc3;
  --bronze: #cd7d30;
  --radius: 24px;
  --texture: none;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #eef0f3; --panel: #ffffff; --panel-2: #f3f5f8; --raised: #eceff3; --bar: #ffffff; --line: #e3e6ea;
    --ink: #15171a; --ink-2: #646a73; --ink-3: #959aa3; --accent: #2f5fe6; --link: #2f5fe6; --soft: #e8eefc;
    --live: #e03a39; --up: #1f9d55; --down: #d0452f; --gold: #b7821c; --silver: #7d838c; --bronze: #ad6420;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--texture), var(--bg); color: var(--ink); font: 400 0.95rem/1.5 var(--text); font-variant-numeric: tabular-nums; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 6px; }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; stroke-width: 1.9; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 0.6rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); font-weight: 760; }
h2 { font-size: 1.15rem; font-weight: 700; margin-top: 1.75rem; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 0.8rem; max-width: 75ch; }
.muted { color: var(--ink-2); }
.small { font-size: 0.85rem; }

.wrap { width: min(1320px, 100% - 1.5rem); margin-inline: auto; }
main { padding: 1.25rem 0 3rem; }

/* ---------- top bar ---------- */
.topbar { background: var(--bar); color: #f1eedb; position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(255,255,255,0.06); }
.topbar-inner { display: flex; align-items: center; gap: 1.25rem; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: #fff; font: 800 1.2rem/1 var(--display); letter-spacing: -0.02em; flex: none; }
.brand:hover { text-decoration: none; }
.brand svg { width: 24px; height: 24px; }
.nav { display: flex; align-items: stretch; height: 100%; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0 0.75rem; color: #c5c29c; white-space: nowrap;
  font: 600 0.9rem var(--display); border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; text-decoration: none; background: rgba(255,255,255,0.04); }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: #a6d36b; }
.nav .icon { opacity: 0.75; }
.search { display: flex; align-items: center; gap: 0.35rem; margin: 0; background: rgba(255,255,255,0.07);
  border-radius: 8px; padding: 0 0.3rem 0 0.6rem; height: 34px; color: #a9a684; flex: none; }
.search:focus-within { box-shadow: 0 0 0 2px #a6d36b; }
.search input[name] { border: 0; background: none; color: #fff; font: 0.9rem var(--text); width: 9rem; padding: 0; }
.search input[name]::placeholder { color: #a9a684; }
.search input[name]:focus { outline: none; }
.search button { border: 0; background: none; color: #c5c29c; padding: 0.2rem; cursor: pointer; display: grid; place-items: center; }
.langs { display: flex; gap: 0.1rem; font: 700 0.75rem var(--display); flex: none; }
.langs a, .langs span { padding: 0.3rem 0.4rem; border-radius: 6px; color: #a9a684; }
.langs span { color: #fff; background: rgba(255,255,255,0.1); }
.langs a:hover { color: #fff; text-decoration: none; }

/* status strip under the bar (like a ticker) */
.strip { background: var(--panel); border-bottom: 1px solid var(--line); font-size: 0.85rem; color: var(--ink-2); }
.strip-inner { display: flex; align-items: center; gap: 1.5rem; height: 38px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.strip b { color: var(--ink); font-family: var(--display); font-weight: 700; }
.strip .item { display: inline-flex; align-items: center; gap: 0.45rem; }
.live-badge { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--live); color: #fff; font: 800 0.68rem/1 var(--display);
  letter-spacing: 0.04em; padding: 0.28rem 0.45rem; border-radius: 5px; }
.live-badge::before { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: #fff; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .live-badge::before { animation: none; } }

/* ---------- panels ---------- */
.box { background: var(--panel); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.box + .box { margin-top: 1rem; }
.box-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.7rem 0.95rem;
  background: var(--panel-2); border-bottom: 1px solid var(--line); }
.box-head h2 { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-size: 0.95rem; }
.box-head a { font-size: 0.82rem; font-weight: 700; }
.box-body { padding: 0.95rem; }
.box-foot { display: block; padding: 0.6rem 0.95rem; border-top: 1px solid var(--line); font-size: 0.85rem; font-weight: 700; }

/* ranked rows */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto; align-items: center; gap: 0.6rem; padding: 0.55rem 0.95rem; }
.rows li + li { border-top: 1px solid var(--line); }
.rows li:hover { background: var(--panel-2); }
.rank { font: 800 0.9rem var(--display); color: var(--ink-3); text-align: center; }
.rows li:nth-child(1) .rank { color: var(--gold); }
.rows li:nth-child(2) .rank { color: var(--silver); }
.rows li:nth-child(3) .rank { color: var(--bronze); }
.who { min-width: 0; }
.who a { display: block; color: var(--ink); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who a:hover { color: var(--link); }
.who .sub { display: block; color: var(--ink-2); font-size: 0.8rem; }
.val { text-align: right; font: 700 0.95rem var(--display); }
.val .sub { display: block; font: 400 0.78rem var(--text); color: var(--ink-2); }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--ink-3); }
.tag { display: inline-block; font: 700 0.7rem/1 var(--display); padding: 0.25rem 0.4rem; border-radius: 5px;
  background: var(--panel-2); color: var(--ink-2); border: 1px solid var(--line); vertical-align: 0.1em; }
.tag.tibia { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.tag.rookstat { color: var(--link); border-color: color-mix(in srgb, var(--link) 40%, transparent); }

/* ---------- front page grid ---------- */
.portal { display: grid; grid-template-columns: 290px minmax(0, 1fr) 320px; gap: 1rem; align-items: start; }

/* yesterday: the headline result */
.result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; padding: 1.25rem 1.35rem;
  background: linear-gradient(120deg, color-mix(in srgb, var(--gold) 14%, var(--panel)) 0%, var(--panel) 60%); }
.result .eyebrow { color: var(--ink-2); font-size: 0.85rem; margin-bottom: 0.35rem; }
.result .total { font: 800 clamp(2.2rem, 1.6rem + 2vw, 3.2rem)/1 var(--display); letter-spacing: -0.035em; }
.result .total small { font-size: 0.42em; font-weight: 600; color: var(--ink-2); letter-spacing: 0; margin-left: 0.3rem; }
.result .cheer { font: 800 1.15rem var(--display); color: var(--gold); margin: 0.5rem 0 0; }
.result .meta { color: var(--ink-2); font-size: 0.85rem; margin: 0.35rem 0 0; }
.podium { list-style: none; margin: 0; padding: 0; min-width: 15rem; }
.podium li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.podium li:first-child { border-top: 0; }
.podium .medal { font: 800 0.85rem var(--display); margin-right: 0.45rem; }
.podium li:nth-child(1) .medal { color: var(--gold); }
.podium li:nth-child(2) .medal { color: var(--silver); }
.podium li:nth-child(3) .medal { color: var(--bronze); }

/* key numbers row */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis div { padding: 0.9rem 1rem; }
.kpis div + div { border-left: 1px solid var(--line); }
.kpis .k { color: var(--ink-2); font-size: 0.8rem; font-weight: 700; }
.kpis .v { display: block; font: 800 1.7rem/1.1 var(--display); letter-spacing: -0.02em; margin-top: 0.15rem; }
.kpis .a { color: var(--ink-3); font-size: 0.78rem; }

/* news feed */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 0.9rem; padding: 0.85rem 0.95rem; }
.feed li + li { border-top: 1px solid var(--line); }
.feed li:hover { background: var(--panel-2); }
.feed time { color: var(--ink-3); font-size: 0.8rem; padding-top: 0.15rem; }
.feed .title { display: block; color: var(--ink); font-weight: 700; margin: 0.15rem 0 0.1rem; }
.feed .text { color: var(--ink-2); font-size: 0.9rem; }

/* live list */
.live-row .who a::before { content: ""; display: inline-block; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--up);
  margin-right: 0.45rem; vertical-align: 0.1em; }
.bars { list-style: none; margin: 0; padding: 0.4rem 0.95rem 0.8rem; }
.bars li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 1.5rem; gap: 0.6rem; align-items: center; padding: 0.3rem 0; font-size: 0.88rem; }
.bars .track { height: 6px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.bars .fill { display: block; height: 100%; background: var(--link); border-radius: 99px; }
.bars b { text-align: right; font-family: var(--display); }

.thanks { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.95rem; font-size: 0.9rem; }
.thanks .icon { color: var(--gold); width: 1.4rem; height: 1.4rem; }
.thanks p { margin: 0; }

/* ---------- tables and forms (all other pages) ---------- */
table { border-collapse: separate; border-spacing: 0; width: 100%; margin: 0.5rem 0 1.25rem; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 0.92rem; }
table, th, td { border-width: 0; }
th, td { padding: 0.55rem 0.85rem; text-align: left; vertical-align: top; }
tr:first-child > th { background: var(--panel-2); color: var(--ink-2); font: 700 0.8rem var(--display); border-bottom: 1px solid var(--line); }
tr + tr > td, tr + tr > th { border-top: 1px solid var(--line); }
tr:hover > td { background: var(--panel-2); }
td a { font-weight: 700; }
form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; margin: 0 0 1rem; }
select, input[type="text"], input:not([type]) { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 0.4rem 0.6rem; }
button { font: 700 0.88rem var(--display); color: #1b1c0a; background: var(--link); border: 0; border-radius: 8px; padding: 0.5rem 0.9rem; cursor: pointer; }
label { display: inline-flex; align-items: center; gap: 0.4rem; }
details summary { cursor: pointer; color: var(--ink-2); }
svg[role="img"] { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.5rem; }

.site-footer { color: var(--ink-3); font-size: 0.8rem; padding: 1rem 0 2.5rem; border-top: 1px solid var(--line); }

@media (max-width: 1180px) {
  .portal { grid-template-columns: 260px minmax(0, 1fr); }
  .portal > .col-right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .portal > .col-right .box + .box { margin-top: 0; }
}
@media (max-width: 820px) {
  .topbar-inner { flex-wrap: wrap; height: auto; padding-top: 0.6rem; gap: 0.6rem 1rem; }
  .topbar .nav { order: 3; flex: 1 0 100%; height: 44px; margin: 0 -0.75rem; }
  .search { margin-left: auto; }
  .portal { grid-template-columns: minmax(0, 1fr); }
  .portal { display: flex; flex-direction: column; }
  .portal > .col-main { display: contents; }
  .col-main > .box:first-child { order: 1; }
  .portal > .col-right { order: 2; grid-template-columns: minmax(0, 1fr); }
  .col-main > .box:nth-child(2) { order: 3; margin-top: 0; }
  .portal > .col-left { order: 4; }
  .feed li:nth-child(n+6) { display: none; }
  .result { grid-template-columns: minmax(0, 1fr); }
  .search input[name] { width: 6rem; }
  .langs { display: none; }
}
@media (max-width: 560px) {
  .topbar-inner { gap: 0.75rem; }
  .brand span { display: none; }
  .kpis div { padding: 0.75rem 0.7rem; }
  .kpis .v { font-size: 1.4rem; }
  .feed li { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  th, td { padding: 0.5rem 0.55rem; }
}


/* ===== GameVerse-style shapes (reference) ===== */
.topbar { background: transparent; border-bottom: 0; padding-top: 1rem; position: static; color: var(--ink); }
.topbar-inner { background: var(--bar); border-radius: var(--radius); height: 76px; padding: 0 1rem 0 1.5rem; }
.brand { color: var(--ink); }
.nav a { color: var(--ink-2); padding: 0 1rem; border-bottom: 0; position: relative; font-size: 0.95rem; }
.nav a:hover { color: var(--ink); background: none; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 16px; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--accent); }
.search { background: var(--raised); border-radius: 16px; height: 48px; padding: 0 0.6rem 0 0.9rem; color: var(--ink-2); }
.search input[name] { color: var(--ink); }
.search input[name]::placeholder { color: var(--ink-2); }
.search:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.langs a, .langs span { color: var(--ink-2); }
.langs span { color: var(--ink); background: var(--raised); }
.langs a:hover { color: var(--ink); }

.strip { background: transparent; border-bottom: 0; }
.strip-inner { height: 52px; padding: 0 0.5rem; }

main { padding-top: 0.5rem; }
.portal { gap: 1.5rem; }
.box { border: 0; border-radius: var(--radius); background: var(--panel); }
.box + .box { margin-top: 1.5rem; }
.box-head { background: transparent; border-bottom: 0; padding: 1.4rem 1.5rem 0.5rem; }
.box-head h2 { font: 700 1.35rem/1.2 var(--display); gap: 0.65rem; }
.box-head h2 .icon { display: none; }
.count { display: inline-flex; align-items: center; height: 1.75rem; padding: 0 0.55rem; border: 1px solid var(--line);
  border-radius: 8px; font: 600 0.8rem var(--display); color: var(--ink-2); }
.round { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--raised); color: var(--ink); flex: none; }
.round:hover { background: var(--accent); color: #fff; text-decoration: none; }
.round .icon { width: 1rem; height: 1rem; }
.box-foot { border-top: 0; padding: 0.4rem 1.5rem 1.4rem; }
.rows { padding: 0.25rem 0.5rem 0.9rem; }
.rows li { border-radius: 16px; padding: 0.65rem 1rem; }
.rows li + li { border-top: 0; }
.rows li:hover { background: var(--panel-2); }
.who a { font-weight: 600; }
.who .sub { color: var(--ink-2); }
.val { font-weight: 700; }

.live-badge { background: transparent; color: var(--live); padding: 0; font-size: 0.75rem; letter-spacing: 0.02em; }
.live-badge::before { background: var(--live); width: 0.45rem; height: 0.45rem; }
.strip .live-badge { background: var(--live); color: #fff; padding: 0.3rem 0.5rem; }
.strip .live-badge::before { background: #fff; }

.result { background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 18%, var(--panel)) 0%, var(--panel) 65%); padding: 1.6rem 1.75rem; }
.result .cheer { color: var(--gold); }
.kpis { padding: 0 0.75rem 0.75rem; gap: 0.75rem; }
.kpis div { background: var(--panel-2); border-radius: 18px; padding: 1rem 1.1rem; }
.kpis div + div { border-left: 0; }
.kpis .v { font-size: 1.9rem; }

.feed { padding: 0.25rem 0.5rem 0.9rem; }
.feed li { border-radius: 16px; padding: 0.9rem 1rem; }
.feed li + li { border-top: 0; }
.feed time { color: var(--gold); font-weight: 700; }
.tag { border: 0; background: var(--raised); }
.tag.tibia { color: var(--gold); }
.tag.rookstat { color: var(--link); background: var(--soft); }

.bars { padding: 0.5rem 1.5rem 1.25rem; }
.bars .fill { background: var(--accent); }
.bars a { color: var(--ink); font-weight: 600; }

.btn-soft { display: inline-flex; align-items: center; justify-content: center; background: var(--soft); color: var(--link);
  border-radius: 12px; padding: 0.55rem 0.9rem; font: 700 0.8rem var(--display); letter-spacing: 0.03em; }
.btn-soft:hover { background: var(--accent); color: #fff; text-decoration: none; }
button { background: var(--accent); color: #fff; border-radius: 12px; }

table { border: 0; border-radius: var(--radius); }
tr:first-child > th { background: transparent; border-bottom: 1px solid var(--line); padding-top: 1.1rem; }
tr + tr > td { border-top: 0; }
tr:hover > td { background: var(--panel-2); }
td a { color: var(--ink); font-weight: 600; }
td a:hover { color: var(--link); }
select, input[type="text"], input:not([type]) { background: var(--panel); border: 0; border-radius: 12px; padding: 0.55rem 0.8rem; }
svg[role="img"] { border: 0; }
.thanks { padding: 1.4rem 1.5rem; align-items: center; }
.thanks .icon { color: var(--gold); }

@media (max-width: 820px) {
  .topbar-inner { height: auto; padding: 0.8rem 1rem 0; }
  .nav a[aria-current="page"]::after { bottom: 8px; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
}
.col-left .box-head h2 { font-size: 1.15rem; white-space: nowrap; }
.live-row .who a::before { display: none; }

/* ---------- inner pages (panel layout) ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem 1.5rem; margin: 1.75rem 0 1.25rem; }
.page-head h1 { font: 800 clamp(1.6rem, 3.2vw, 2.3rem)/1.1 var(--display); letter-spacing: -0.02em; margin: 0; }
.page-head p { margin: 0.4rem 0 0; max-width: 62ch; }
.page-head form, .page-head .toolbar { margin: 0; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 0 0 1.25rem; }
.toolbar select, .toolbar input { background: var(--panel); }
input[type="search"] { font: inherit; color: var(--ink); background: var(--panel); border: 0; border-radius: 12px; padding: 0.55rem 0.8rem; min-width: 14rem; }
input[type="checkbox"] { accent-color: var(--accent); }
.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; }
.tabs a { padding: 0.55rem 1rem; border-radius: 999px; background: var(--panel); color: var(--ink-2); font: 700 0.85rem var(--display); }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a[aria-current="page"] { background: var(--accent); color: #fff; }
.note { color: var(--ink-2); font-size: 0.85rem; margin: 0 0 1rem; max-width: 80ch; }
.notice { background: color-mix(in srgb, var(--gold) 14%, var(--panel)); color: var(--ink); border-radius: 16px; padding: 0.8rem 1.1rem; margin: 0 0 1rem; }
.pad { padding: 0 1.5rem 1rem; }
details.pad table { margin-top: 0.5rem; }

.box-inner { padding: 0 0.75rem 0.9rem; overflow-x: auto; }
.box-inner > table, .box table { margin: 0; border-radius: 0; background: none; border: 0; }
.box table tr:first-child > th { padding-top: 0.5rem; }
.box table td, .box table th { padding: 0.6rem 0.75rem; }
.box table tr > td:first-child, .box table tr > th:first-child { border-radius: 12px 0 0 12px; }
.box table tr > td:last-child, .box table tr > th:last-child { border-radius: 0 12px 12px 0; }
.box table tr:first-child > th { border-radius: 0; }
.box svg[role="img"] { background: none; padding: 0; display: block; margin: 0 auto; max-width: 100% !important; max-height: 340px; }
.chart { padding: 0.25rem 0.75rem 0.5rem; }
th.right, td.right { text-align: right; }
.strong { font-weight: 700; color: var(--ink); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; width: 2.5rem; }
td.rank-1 { color: var(--gold); font-weight: 800; }
td.rank-2 { color: #c9ccd3; font-weight: 800; }
td.rank-3 { color: #c98a5a; font-weight: 800; }
td.bad { color: var(--live); font-weight: 700; }
td.win { color: var(--up); font-weight: 700; }
.pill-red { display: inline-block; font: 700 0.68rem/1 var(--display); padding: 0.25rem 0.45rem; border-radius: 6px;
  color: var(--live); background: color-mix(in srgb, var(--live) 15%, transparent); }
table.kv th { color: var(--ink-2); font: 600 0.88rem var(--text); width: 40%; }
table.kv tr:first-child > th { border-bottom: 0; }
table.compare th { width: auto; }
table.compare tr:first-child > th { border-bottom: 1px solid var(--line); }

.grid-2, .split { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.grid-2 > .box + .box, .split > .box + .box { margin-top: 0; }
.page-head + .box, .toolbar + .box, .tabs + .box, .note + .box, .kpis + .split { margin-top: 0; }
.boss-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.boss-cards .box + .box { margin-top: 0; }
.boss .kpis { padding-top: 0.25rem; }
.boss .kpis .k { display: block; min-height: 2.2em; }
.kpis.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; margin-bottom: 1.5rem; }
.kpis.kpis-4 div { background: var(--panel); }
.kpis .s { display: block; color: var(--ink-2); font-size: 0.78rem; margin-top: 0.3rem; }
.char-head .btn-soft { gap: 0.3rem; }

@media (max-width: 960px) {
  .grid-2, .split, .boss-cards { grid-template-columns: minmax(0, 1fr); }
  .kpis.kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .page-head { margin-top: 1.1rem; }
  .boss .kpis { grid-template-columns: minmax(0, 1fr); }
  .box-inner { padding: 0 0.25rem 0.6rem; }
  .box table td, .box table th { padding: 0.5rem 0.55rem; font-size: 0.86rem; }
  input[type="search"] { min-width: 0; flex: 1; }
}
.grid-2 + .box, .split + .box, .boss-cards + .grid-2 { margin-top: 1.5rem; }
@media (max-width: 1440px) { .nav a { padding: 0 0.6rem; font-size: 0.9rem; } }
@media (max-width: 560px) {
  .kpis.kpis-4 { gap: 0.5rem; }
  .kpis.kpis-4 .v { font-size: 1.35rem; overflow-wrap: anywhere; }
}

/* ---------- worlds tiles ---------- */
.world-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.world-tiles .box + .box { margin-top: 0; }
a.world-tile { display: block; padding: 1.15rem 1.25rem 1.1rem; color: var(--ink); transition: background .15s, transform .15s; }
a.world-tile:hover { text-decoration: none; background: var(--panel-2); transform: translateY(-2px); }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.9rem; }
.tile-top h2 { margin: 0; font: 700 1.2rem/1.2 var(--display); }
.tile-top .live-badge { white-space: nowrap; }
.tile-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; margin: 0; }
.tile-stats div { background: var(--panel-2); border-radius: 12px; padding: 0.5rem 0.6rem; }
a.world-tile:hover .tile-stats div { background: var(--raised); }
.tile-stats dt { color: var(--ink-2); font-size: 0.68rem; line-height: 1.2; min-height: 2.4em; }
.tile-stats dd { margin: 0.2rem 0 0; font: 800 1.15rem/1 var(--display); }
.crumb { margin: 1.5rem 0 -1rem; font-size: 0.85rem; }
.crumb a { color: var(--ink-2); }
.kpis.kpis-3 { padding: 0; margin-bottom: 1.5rem; }
.kpis.kpis-3 div { background: var(--panel); }
tr.retired td { opacity: 0.55; }
.tile-check { margin: 0.75rem 0 0; font-size: 0.74rem; color: var(--ink-2); }
.tile-check.warn { color: var(--gold); }

/* ---------- statistics info bar ---------- */
.consent { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 50; width: min(760px, calc(100% - 2rem));
  display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1rem 0.9rem 1.25rem; border-radius: 18px;
  background: var(--panel-2); color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,0.35); border: 1px solid var(--line); }
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: 0.86rem; line-height: 1.45; flex: 1; }
.consent button { flex: none; min-width: 4.5rem; }
@media (max-width: 560px) { .consent { flex-direction: column; align-items: stretch; bottom: 0.5rem; } }

/* ---------- admin ---------- */
.admin-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0 0 1.25rem; }
.admin-tabs form { margin: 0 0 0 auto; }
.login-box { max-width: 380px; margin: 3rem auto; padding: 1.75rem; }
.login-box form { flex-direction: column; align-items: stretch; margin: 1rem 0 0; }
.login-box input { width: 100%; box-sizing: border-box; background: var(--panel-2); }
.kpis.kpis-4.admin div { background: var(--panel); }
.brand img { width: 40px; height: 40px; display: block; image-rendering: auto; }
.thanks .coin { width: 24px; height: 24px; flex: none; image-rendering: pixelated; }

/* ---------- header v2: menu gets the whole top bar; search + languages sit on the status row ---------- */
.strip-inner { overflow: visible; gap: 1rem; height: auto; min-height: 64px; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.strip .stats { display: flex; align-items: center; gap: 1.5rem; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.strip .stats::-webkit-scrollbar { display: none; }
.strip .tools { display: flex; align-items: center; gap: 0.75rem; flex: none; }
.strip .search { height: 42px; background: var(--panel); }
.strip .search input[name] { width: 12rem; }
.strip .langs { display: flex; }
.nav a { padding: 0 0.85rem; }
@media (max-width: 1100px) { .nav a { padding: 0 0.6rem; font-size: 0.9rem; } }
@media (max-width: 820px) {
  .strip-inner { flex-wrap: wrap; padding-top: 0.75rem; }
  .strip .tools { order: 1; flex: 1 0 100%; }
  .strip .stats { order: 2; flex: 1 0 100%; }
  .strip .search { flex: 1; }
  .strip .search input[name] { width: 100%; }
  .strip .langs { display: flex; }
}
.strip .search { flex-wrap: nowrap; margin: 0; }
.strip .search input[name] { min-width: 0; }
.meter { display: block; height: 6px; border-radius: 99px; background: var(--raised); margin: 0.55rem 0 0.1rem; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.meter.warn span { background: var(--gold); }

/* ---------- online timeline (character page) ---------- */
.tl { padding: 0.25rem 0.75rem 0.5rem; }
.tl-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; font-size: 0.82rem; color: var(--ink-2); margin: 0 0 0.6rem; }
.tl-legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: -0.5rem; vertical-align: -1px; }
.tl-row { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr) 5.4rem; align-items: center; gap: 0.75rem; margin: 0.4rem 0; }
.tl-day { font-variant-numeric: tabular-nums; font-size: 0.86rem; white-space: nowrap; }
.tl-day small { color: var(--ink-2); }
.tl-sum { text-align: right; font-size: 0.86rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-axis { margin-bottom: 0.2rem; }
.tl-hours { position: relative; height: 1rem; font-size: 0.7rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tl-hours span { position: absolute; top: 0; transform: translateX(-2px); }
.tl-bar { position: relative; height: 30px; border-radius: 8px; background: var(--panel-2); }
.seg { position: absolute; top: 0; bottom: 0; outline: none; }
.seg.offline { background: color-mix(in srgb, var(--live) 14%, var(--panel-2)); }
.seg.unknown { background: transparent; background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255,255,255,0.04) 6px 12px); }
.seg.online { background: var(--up); min-width: 3px; z-index: 1; border-radius: 3px; }
.seg:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.seg:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.seg:hover, .seg:focus { filter: brightness(1.25); z-index: 3; }
.tl-legend .sw.online { background: var(--up); }
.tl-legend .sw.offline { background: color-mix(in srgb, var(--live) 30%, var(--panel-2)); }
.tl-legend .sw.unknown { background: var(--panel-2); border: 1px dashed var(--line); }
.seg .tip { display: none; position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 5; min-width: 13rem; padding: 0.7rem 0.85rem;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  font-size: 0.8rem; line-height: 1.5; color: var(--ink); white-space: nowrap; flex-direction: column; filter: none; }
.seg.tip-right .tip { left: auto; right: 0; }
.seg:hover .tip, .seg:focus .tip { display: flex; }
.seg .tip .k { font-size: 0.85rem; }
.seg .tip .k.online { color: var(--up); } .seg .tip .k.offline { color: var(--live); } .seg .tip .k.unknown { color: var(--ink-2); }
@media (max-width: 560px) {
  .tl { padding: 0 0.25rem 0.4rem; }
  .tl-row { grid-template-columns: 3.3rem minmax(0, 1fr) 3.9rem; gap: 0.45rem; }
  .tl-day small { display: block; }
  .tl-hours span:nth-child(even) { display: none; }
  .tl-bar { height: 26px; }
  .tl-sum { font-size: 0.75rem; }
}
/* timeline tooltips must not be clipped by the panel: top rows open below, the rest above */
.tl-panel, .tl-panel .box-inner { overflow: visible; }
.tl-row.tips-below .seg .tip { bottom: auto; top: calc(100% + 8px); }

/* ---------- search suggestions ---------- */
form.has-suggest { position: relative; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 15rem; z-index: 40; margin: 0; padding: 0.35rem;
  list-style: none; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,0.45); }
.suggest[hidden] { display: none; }
.suggest li { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0.65rem; border-radius: 10px; cursor: pointer; }
.suggest li:hover, .suggest li[aria-selected="true"] { background: var(--raised); }
.suggest .s-name { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .s-meta { flex: none; color: var(--ink-2); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.suggest .s-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px color-mix(in srgb, var(--up) 25%, transparent); }
.suggest li.s-retired .s-name { color: var(--ink-2); font-weight: 600; }
.strip-inner, .strip .tools { overflow: visible; }

/* ---------- sessions pager + archive ---------- */
.sessions .box-head { flex-wrap: wrap; }
.sess-month { font: 600 0.85rem var(--text); color: var(--ink-2); }
.pager { display: flex; align-items: center; gap: 0.4rem; margin-left: auto; }
.pager .round { width: 36px; height: 36px; font-size: 1.35rem; line-height: 1; text-decoration: none; }
.pager .round.off { opacity: 0.35; cursor: default; }
.pager-pos { font-size: 0.8rem; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 2.6rem; text-align: center; }
.pager .btn-soft { padding: 0.5rem 0.8rem; }
.archive { position: relative; }
.archive summary { list-style: none; cursor: pointer; }
.archive summary::-webkit-details-marker { display: none; }
.archive[open] summary { background: var(--accent); color: #fff; }
.archive ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 17rem; max-height: 320px; overflow-y: auto;
  margin: 0; padding: 0.35rem; list-style: none; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45); }
.archive li a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0.65rem; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 0.88rem; }
.archive li a:hover, .archive li a[aria-current] { background: var(--raised); text-decoration: none; }
.archive li a .muted { font-weight: 400; font-size: 0.8rem; white-space: nowrap; }
.sessions, .sessions .box-inner { overflow: visible; }
.sessions .box-inner { overflow-x: auto; }
.pager .round.off:hover { background: var(--raised); color: var(--ink); }
.archive ul { min-width: min(20rem, calc(100vw - 2.5rem)); }
.archive li a span:first-child { white-space: nowrap; }
@media (max-width: 560px) { .sess-month { display: block; margin-top: 0.15rem; } }
.gain { color: var(--up); font-weight: 700; }

/* ---------- important announcements (News) ---------- */
.box.announce { background: color-mix(in srgb, var(--gold) 9%, var(--panel)); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); }
.announce .box-head h2 { color: var(--gold); }
.announce .box-head h2 .icon { display: inline-block; width: 1.1rem; height: 1.1rem; }
.announce-list { list-style: none; margin: 0; padding: 0.2rem 1.5rem 1.2rem; }
.announce-list li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.4rem 1rem; padding: 0.55rem 0; }
.announce-list li + li { border-top: 1px solid var(--line); }
.announce-list time { color: var(--gold); font-weight: 700; font-size: 0.85rem; padding-top: 0.1rem; font-variant-numeric: tabular-nums; }
.announce-list p { margin: 0; font-weight: 600; color: var(--ink); line-height: 1.5; }
@media (max-width: 560px) { .announce-list { padding: 0 1rem 1rem; } .announce-list li { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) {
  .col-main > .box.announce { order: 1; margin-top: 0; }
  .col-main > .box.news-feed { order: 3; margin-top: 0; }
}
.announce-link { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.6rem; padding: 0.5rem 0.9rem; border-radius: 12px;
  background: var(--gold); color: #1a1508; font: 700 0.85rem var(--display); text-decoration: none; }
.announce-link:hover { filter: brightness(1.1); text-decoration: none; color: #1a1508; }
