/* ZitroStats website */
:root {
  --bg: #f4f5f8;
  --card: #ffffff;
  --ink: #1b1f2a;
  --dim: #6b7285;
  --line: #e3e6ee;
  --accent: #e85d04;
  --accent-ink: #ffffff;
  --link: #1d5fd1;
  --ok: #2b9348;
  --bad: #c1121f;
  --warn: #c77d00;
  --info: #1d6fa5;
  --gold: #d4a017;
  --silver: #8e9aaf;
  --bronze: #b5651d;
  --head: #10131b;
  --head-ink: #e8eaf0;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;
  --radius: 10px;
  --scroll-thumb: #c3c8d4;
  --scroll-thumb-hover: #a3aabb;
  --scroll-track: transparent;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1117;
    --card: #171b24;
    --ink: #e6e8ee;
    --dim: #8b93a7;
    --line: #262c39;
    --link: #6ea8ff;
    --ok: #4cc26a;
    --bad: #ff5d6c;
    --warn: #f0a92b;
    --info: #57b2f0;
    --head: #0a0c11;
    --scroll-thumb: #333a4a;
    --scroll-thumb-hover: #46506a;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: none; margin: 0 auto; padding: 0 clamp(12px, 2vw, 32px); }
/* the scroll bars in the colours of the page (the page's own and those of the wide tables) */
html { scrollbar-color: var(--scroll-thumb) var(--bg); }
.scroll, .card, pre, textarea { scrollbar-color: var(--scroll-thumb) var(--scroll-track); scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }
::-webkit-scrollbar-corner { background: transparent; }
main.wrap { padding-top: 22px; padding-bottom: 40px; min-height: 70vh; }
h1 { font-size: 26px; margin: 4px 0 14px; line-height: 1.25; }
h2 { font-size: 17px; margin: 0 0 12px; }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.r { text-align: right; }
.pad { padding: 14px 16px; margin: 0; }
.sub { margin: -8px 0 16px; color: var(--dim); }

/* header */
.top { background: var(--head); color: var(--head-ink); position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; gap: 18px; min-height: 56px; flex-wrap: wrap; }
.brand { color: var(--head-ink); font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.logo { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent);
  color: var(--accent-ink); font-weight: 800; }
.menu { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.menu a { color: #b9bfcc; padding: 7px 11px; border-radius: 7px; }
.menu a:hover { color: #fff; background: rgba(255, 255, 255, .07); text-decoration: none; }
.menu a.on { color: #fff; background: rgba(255, 255, 255, .12); }
.srv select { color-scheme: dark; background: #1d2230; color: var(--head-ink); border: 1px solid #333a4b; border-radius: 7px; padding: 5px 8px; }

/* footer */
.foot { border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.foot-in { display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 22px; flex-wrap: wrap; }
form.inline { display: inline; }
button.link { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font: inherit; }

/* cards and tables */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush > h2.pad { padding-bottom: 0; }
.card.narrow { max-width: 420px; margin: 30px auto; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 18px; }
.server-live header { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; }
.server-live h2, .server-live p { margin: 0; }
.server-live [data-live-current], .server-live [data-live-stale] { margin-top: .6rem; }
.server-live ul { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,13rem),1fr)); gap: .4rem 1rem; list-style: none; padding: 0; margin: .55rem 0 0; }
.server-live li, .server-live strong { overflow-wrap: anywhere; }
.server-live li span { margin-inline-start: .4em; font-size: .86em; }
.grid2 > .card { margin-bottom: 0; }
.grid2 { margin-bottom: 18px; }
.scroll { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.list th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--dim); font-weight: 600; white-space: nowrap; }
/* a table of many figures: its long headers go in two lines before the table has to scroll */
table.list.wide th { white-space: normal; vertical-align: bottom; line-height: 1.25; min-width: 4.5em; }
table.list.wide th, table.list.wide td { padding-left: 9px; padding-right: 9px; }
table.list th.r, table.list td.r { text-align: right; }
table.list th a { color: var(--dim); }
table.list th a.on { color: var(--ink); }
table.list tbody tr:hover { background: rgba(127, 127, 127, .06); }
table.list tbody tr:last-child td { border-bottom: 0; }
.card:not(.flush) table.list th:first-child, .card:not(.flush) table.list td:first-child { padding-left: 0; }
.card:not(.flush) table.list th:last-child, .card:not(.flush) table.list td:last-child { padding-right: 0; }
td.pos { font-weight: 700; width: 3em; }
td.pos.p1 { color: var(--gold); }
td.pos.p2 { color: var(--silver); }
td.pos.p3 { color: var(--bronze); }
.who { color: var(--dim); }
td.pos.r { width: auto; }
.fast { color: var(--ok); }
.slow { color: var(--bad); }
.more { margin: 10px 0 0; font-size: 14px; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.tv { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tl { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

/* labels */
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 99px; vertical-align: middle;
  background: rgba(127, 127, 127, .15); color: var(--dim); white-space: nowrap; font-family: system-ui, sans-serif; }
.badge.ok { background: rgba(43, 147, 72, .15); color: var(--ok); }
.badge.bad { background: rgba(193, 18, 31, .14); color: var(--bad); }
.badge.warn { background: rgba(199, 125, 0, .16); color: var(--warn); }
.badge.info { background: rgba(29, 111, 165, .15); color: var(--info); }
.badge.wr { background: var(--gold); color: #1b1300; }
.mode { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 1px 6px; border-radius: 5px;
  border: 1px solid var(--line); color: var(--dim); vertical-align: middle; }
h1 .mode, h1 .tier, h1 .badge { font-size: 13px; }
.tier { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 5px; color: #fff; background: #8e9aaf;
  vertical-align: middle; }
.tier.t1 { background: #2b9348; }
.tier.t2 { background: #4f9d2c; }
.tier.t3 { background: #c77d00; }
.tier.t4 { background: #e85d04; }
.tier.t5 { background: #c1121f; }
.tier.t6 { background: #6a0dad; }

/* notes */
.note { border-radius: var(--radius); padding: 11px 14px; margin-bottom: 16px; border: 1px solid var(--line); background: var(--card); }
.note.ok { border-color: rgba(43, 147, 72, .4); }
.note.bad { border-color: rgba(193, 18, 31, .45); }
.note.warn { border-color: rgba(199, 125, 0, .5); }
.note.info { border-color: rgba(29, 111, 165, .45); }

/* Approved PB intervals include both endpoints, in minutes, seconds and milliseconds. */
.bars .pb-bin { grid-template-columns: max-content minmax(0, 1fr) 3em; }

/* tabs, filters, pages */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.card.flush .tabs { padding: 10px 16px 0; }
.tab { padding: 7px 12px; border-radius: 7px 7px 0 0; color: var(--dim); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.tab:hover { text-decoration: none; color: var(--ink); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--dim); font-size: 14px; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip:hover { text-decoration: none; }
.pager { display: flex; gap: 4px; flex-wrap: wrap; padding: 14px 16px; }
.pager > a, .pager > span { display: inline-grid; place-items: center; min-width: 34px; text-align: center; padding: 5px 9px; border-radius: 7px; border: 1px solid var(--line); background: var(--card); }
.pager .cur { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pager .gap { border: 0; background: none; }

/* map cards */
.mapcards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1400px) { .mapcards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .mapcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .mapcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mapcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink);
  background: var(--card); transition: border-color .15s, transform .15s; }
.mapcard:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
.mc-body { display: block; padding: 10px 12px 12px; }
.mc-name { display: block; font-weight: 700; overflow-wrap: anywhere; }
.mc-tier { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: #8e9aaf; padding: 0 7px; border-radius: 5px; margin: 4px 0; }
.mc-tier.t1 { background: #2b9348; } .mc-tier.t2 { background: #4f9d2c; } .mc-tier.t3 { background: #c77d00; }
.mc-tier.t4 { background: #e85d04; } .mc-tier.t5 { background: #c1121f; } .mc-tier.t6 { background: #6a0dad; }
.mc-wr { display: block; font-size: 14px; }
.mc-n { display: block; font-size: 12px; }

/* forms */
input, select, button { font: inherit; }
input, select { background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; }
input.num { width: 6em; text-align: right; }
button, .btn { display: inline-block; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 7px;
  padding: 7px 14px; cursor: pointer; font-weight: 600; }
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.small { padding: 3px 10px; font-size: 13px; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
button.bad { background: var(--bad); border-color: var(--bad); color: #fff; }
button.ghost { color: var(--bad); }
.form { display: grid; gap: 12px; }
.player-account { max-width:54rem; margin:0 auto; }
.player-account h1 .zs-icon { margin-inline-end:.5rem; }
.player-auth-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr)); gap:1rem; align-items:start; }
.player-auth-options .card { margin:0; min-width:0; }
.player-auth-options .form button { justify-self:start; }
.player-auth-options p { color:var(--dim); }
.form label { display: grid; gap: 4px; font-size: 14px; color: var(--dim); }
.decide { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin: 12px 0; }
.decide form { display: flex; gap: 8px; }
.decide form.grow { flex: 1 1 min(100%, 22rem); min-width: 0; align-items: flex-end; }
.decide form.grow label { display: grid; gap: .25rem; flex: 1; min-width: 0; color: var(--dim); font-size: .875rem; }
.decide form.grow input { width: 100%; min-width: 0; }
ul.why { margin: 0 0 6px; padding-left: 20px; }

/* the replay viewer */
.replay { position: relative; height: 380px; border-radius: 8px; overflow: hidden; background: #0b0e14; user-select: none; touch-action: none; }
.replay.large { height: clamp(460px, 74vh, 980px); }
.replay:fullscreen { height: 100vh; border-radius: 0; }
.replay canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.replay canvas.rp-ov { cursor: grab; }
.replay canvas.rp-ov.drag { cursor: grabbing; }
.rp-msg { position: absolute; inset: 0; display: grid; place-items: center; color: #9aa3b7; font-size: 14px; padding: 20px; text-align: center;
  pointer-events: none; }
.rp-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 6px; align-items: center; padding: 7px 8px;
  background: linear-gradient(to top, rgba(8, 10, 15, .92), rgba(8, 10, 15, .55)); color: #dfe3ec; font-size: 13px; flex-wrap: wrap; }
.rp-bar button { padding: 3px 8px; font-size: 12.5px; background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .2); }
.rp-bar button.on { background: var(--accent); border-color: var(--accent); }
.rp-bar input[type=range] { flex: 1; min-width: 80px; accent-color: var(--accent); padding: 0; background: none; border: 0; }
.rp-bar select { color-scheme: dark; padding: 2px 4px; background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .2); }
.rp-bar select option { color: #fff; background: #1d2230; }
.rp-time { font-family: var(--mono); min-width: 8.5em; text-align: right; }
.presence { margin: .5rem 0 1rem; }
.live-servers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.motion-view { max-width: 110rem; margin-inline: auto; }
.motion-view header { display:flex; align-items:center; justify-content:space-between; gap:.8rem; flex-wrap:wrap; margin-bottom:.8rem; }
.motion-view header h1 { margin:0 0 .25rem; }
.motion-view .replay.large { height:clamp(320px,72vh,960px); }
.motion-view .replay:fullscreen { height:100%; }
.climb-directory { max-width:86rem; margin:auto; }
.climb-directory header,.runner header { display:flex; align-items:center; justify-content:space-between; gap:.8rem; flex-wrap:wrap; }
.climb-directory>header { margin-bottom:1rem; }
.climb-directory h1 small { font-size:.65em; color:var(--dim); }
.runner-grid,.recent-runners { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,21rem),1fr)); gap:1rem; }
.runner-grid .runner { border-top:2px solid var(--accent); margin:0; }
.runner h2,.recent-run p { margin:0; }
.runner dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem 1rem; }
.runner dt,.recent-run small { color:var(--dim); font-size:.85rem; }
.runner dd { margin:0; font-size:1.45rem; font-weight:700; }
.recent-run { display:flex; gap:1rem; align-items:center; margin:0; }
.recent-run .thumb { width:clamp(72px,7vw,112px); height:auto; }
.recent-run small { display:block; }
.rp-legend { position: absolute; top: 8px; left: 10px; display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #dfe3ec;
  pointer-events: none; text-shadow: 0 1px 2px #000; }
.rp-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
/* more than one player: a click on a name has the camera follow that one */
.rp-legend.pick { pointer-events: auto; max-height: calc(100% - 120px); overflow-y: auto; }
.rp-legend.pick button { all: unset; cursor: pointer; padding: 1px 6px 1px 2px; border-radius: 4px; color: #dfe3ec; }
.rp-legend.pick button:hover { background: rgba(255, 255, 255, .12); }
.rp-legend.pick button.on { background: rgba(255, 255, 255, .18); font-weight: 600; color: #fff; }
/* the keys of the runner: a keyboard floating at the bottom left, above the bar */
.rp-keys { position: absolute; left: 10px; bottom: 48px; display: grid; grid-template-columns: auto auto; gap: 4px 8px; align-items: end; padding: 6px 7px 7px;
  pointer-events: none; background: rgba(9, 9, 11, .85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(63, 63, 70, .8); border-radius: 8px; box-shadow: 0 8px 22px rgba(0, 0, 0, .45); }
.kp-time { grid-column: 1 / -1; color: #f4f4f5; font: 700 14px/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.rp-keys .k { display: grid; place-items: center; height: 24px; min-width: 24px; padding: 0 5px; border-radius: 5px; background: #09090b;
  border: 1px solid #3f3f46; border-bottom: 3px solid #27272a; color: #a1a1aa; font: 700 12px/1 var(--mono); }
.rp-keys .k.on { background: var(--accent); border-color: #ff9a52; border-bottom-color: #a33f00; color: #fff; transform: translateY(1px);
  box-shadow: 0 0 10px rgba(232, 93, 4, .55); }
.kp-arrows { display: grid; grid-template-columns: repeat(3, 26px); grid-template-rows: 24px 24px; gap: 3px; }
.kp-arrows .up { grid-column: 2; grid-row: 1; }
.kp-arrows .left { grid-column: 1; grid-row: 2; }
.kp-arrows .down { grid-column: 2; grid-row: 2; }
.kp-arrows .right { grid-column: 3; grid-row: 2; }
.kp-acts { display: grid; grid-template-columns: repeat(3, 44px); gap: 3px; }
.kp-acts .k { font-size: 9.5px; letter-spacing: .05em; }

/* the pictures of the maps (lib/thumb.php) */
img.thumb, span.thumb { display: block; background: #0b0e14; border-radius: 6px; object-fit: cover; }
img.thumb.xs { display: inline-block; width: 44px; height: 33px; border-radius: 4px; flex: none; }
img.thumb.sm { width: 100px; height: 75px; }
.thumb.md { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
span.thumb.none { background: linear-gradient(135deg, #1b2130, #0b0e14); }
img.thumb.lg { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px solid var(--line); }
a.mapname, span.mapname { display: inline-flex; align-items: center; gap: 9px; vertical-align: middle; max-width: 100%; }
a.mapname span, span.mapname span { overflow-wrap: anywhere; }
table.list td.thumbcell, table.list th.thumbcell { width: 1%; padding-right: 0; }
table.maps td { padding-top: 6px; padding-bottom: 6px; }
td.mapname-cell { font-weight: 600; }
main.wrap:has(.map-overview) { max-width: 100rem; }
.map-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1rem; }
.map-title h1 { margin: 0; overflow-wrap: anywhere; }
.map-title .more { margin: 0; }
.map-title { align-items:center; }
.map-title .chips { align-items:center; }
.map-title .btn, .run-filters summary { display:inline-flex; gap:.45rem; align-items:center; }
.map-history-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,29rem),1fr)); gap:1rem; margin-bottom:1rem; align-items:start; }
.map-history-grid > .card { margin:0; min-width:0; }
.map-history-grid .bars { max-width:38rem; grid-template-columns:max-content minmax(0,1fr) max-content; column-gap:.5rem; }
.map-history-grid .pb-bin { grid-template-columns:minmax(7.8em,max-content) minmax(1rem,1fr) max-content; }
.map-history-grid .pb-bin { grid-column:1/-1; }
@supports (grid-template-columns:subgrid) { .map-history-grid .pb-bin { grid-template-columns:subgrid; } }
.map-history-grid .pb-bin svg { width:100%; }
.map-overview { display: grid; gap: 1rem; margin-bottom: 1rem; align-items: start; }
.map-overview > *, .map-stat-grid > *, .map-overview .tile { min-width: 0; }
.map-media { padding: .75rem; margin: 0; }
.map-media h2 { margin: 0 .25rem .55rem; }
.map-stage { position: relative; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); background: var(--card); }
.map-fallback img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.map-stage .replay:not(:fullscreen) { height: clamp(15rem, 32vw, 25rem); }
.map-facts .tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.25rem), 1fr)); gap: .5rem; margin: 0; }
.map-facts .tv { line-height: 1.25; }
.map-facts .tl { margin-top: .25rem; }
.map-facts .tile { padding: .65rem .8rem; }
.map-activity { margin: .65rem 0 0; padding: .75rem 1rem; }
.map-activity figcaption { font-size: .9rem; font-weight: 600; margin-bottom: .5rem; }
.map-stat-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem; }
.map-stat-grid > .card { margin: 0; }
#map-players { scroll-margin-top: 6rem; }
@media (min-width: 40rem) { .map-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) {
  .map-overview:not(.facts-only) { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .map-stage .replay:not(:fullscreen) { height: clamp(17rem, 24vw, 23rem); }
}
@media (min-width: 76rem) { .map-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* the search and the lists */
.hsearch input { background: #1d2230; color: var(--head-ink); border: 1px solid #333a4b; border-radius: 7px; padding: 6px 10px; width: 230px; }
.hsearch input::placeholder { color: #8b93a7; }
.hsearch input:focus { outline: none; border-color: var(--accent); }
.toolbar { display: flex; gap: 10px 16px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .search, .toolbar .filters { margin: 0; }
.toolbar .search { flex: 1 1 16rem; max-width: 25rem; }
.card.flush .toolbar { padding: 12px 16px 4px; }
.card.flush .toolbar + .scroll { border-top: 1px solid var(--line); margin-top: 8px; }
.search {
  display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) auto;
  width: min(100%, 25rem); gap: .35rem .5rem; margin: 0 0 14px;
  container: list-search / inline-size;
}
.search input[type=search] { grid-area: 1 / 1; width: 100%; min-width: 0; }
.search button { grid-area: 1 / 2; white-space: nowrap; }
.search .clear { grid-area: 1 / 3; font-size: 13px; white-space: nowrap; }
@container list-search (max-width: 21rem) {
  .search .clear { grid-area: 2 / 1 / 3 / -1; justify-self: start; }
}
.count { color: var(--dim); font-size: 14px; }

/* the figures of the players */
table.stats td.sorted { font-weight: 700; }
table.list th a.on.desc::after, table.sortable th.on.desc::after { content: " \25BE"; }
table.list th a.on.asc::after, table.sortable th.on.asc::after { content: " \25B4"; }
table.sortable th { cursor: pointer; user-select: none; }
table.sortable th:hover { color: var(--ink); }
table.sortable .sort-column { background: transparent; color: inherit; border: 0; padding: .2rem 0; font: inherit; cursor: pointer; }
table.sortable .sort-column:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; margin-bottom: 18px; align-items: start; }
.statgrid > .card { margin-bottom: 0; }
/* The overview shows four metrics per topic. Fragment links open one topic or the full board,
   including in saved HTML, with no script or measurements during resizing. */
#combat, #climb-pbs, .profile-stat-board, .profile-stat-card { scroll-margin-top: 7rem; }
.profile-stat-tools, .profile-stat-card > header {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .35rem 1rem;
}
.profile-stat-tools { margin: 1.5rem 0 .85rem; }
.profile-stat-tools h2 { font-size: 1.22rem; margin: 0; }
.profile-stat-tools a, .profile-stat-card > header a { font-size: .84rem; font-weight: 600; }
.profile-stat-grid {
  display: grid; gap: 12px; margin-bottom: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(17rem, calc((100% - 36px) / 4))), 1fr));
}
.profile-stat-card { min-width: 0; margin: 0; padding: clamp(13px, 1.25vw, 20px); container-type: inline-size; }
.profile-stat-card > header { padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
.profile-stat-card h2 { margin: 0; font-size: 1.02rem; }
.profile-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.1rem; margin: .85rem 0 0; }
.profile-metrics > div { min-width: 0; overflow-wrap: anywhere; }
.profile-metrics dt { color: var(--dim); font-size: .8rem; line-height: 1.25; }
.profile-metrics dd { margin: .18rem 0 0; font-size: 1.13rem; font-weight: 650; line-height: 1.22; font-variant-numeric: tabular-nums; }
.profile-metrics > div:nth-child(n+5), .stat-back, .stat-show-overview { display: none; }
.profile-stat-card:target, .profile-stat-board:target .profile-stat-card { grid-column: 1 / -1; }
.profile-stat-card:target .profile-metrics, .profile-stat-board:target .profile-metrics {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); gap: 0 1.5rem; margin: 0;
}
.profile-stat-card:target .profile-metrics > div, .profile-stat-board:target .profile-metrics > div {
  display: block; padding: .65rem 0; border-bottom: 1px solid var(--line);
}
.profile-stat-card:target .stat-drill, .profile-stat-board:target .stat-drill, .profile-stat-board:target .stat-show-all { display: none; }
.profile-stat-card:target .stat-back, .profile-stat-board:target .stat-show-overview { display: inline; }
.profile-stat-grid:has(> .profile-stat-card:target) > .profile-stat-card:not(:target) { display: none; }
@container (min-width: 18rem) and (max-width: 28rem) {
  .profile-stat-card:target .profile-metrics, .profile-stat-board:target .profile-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 15rem) { .profile-metrics { grid-template-columns: minmax(0, 1fr); } }
#combat .profile-tables { grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr)); }
.profile-tables > .card { min-width: 0; }
.profile-streaks { grid-column: 1 / -1; }
.profile-streaks .streak-bars { grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: .25rem 1.3rem; }
.profile-streaks .bar-row { grid-template-columns: 2em minmax(0, 1fr) 3em; }
.profile-streaks details { margin-top: .7rem; }
.profile-streaks summary { color: var(--link); cursor: pointer; font-size: .88rem; }
.profile-streaks details[open] summary { margin-bottom: .6rem; }

dl.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 14px; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--dim); }
dl.kv dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .chip { color: var(--ink); }
.chip.medal.p1 { border-color: var(--gold); }
.chip.medal.p2 { border-color: var(--silver); }
.chip.medal.p3 { border-color: var(--bronze); }
h2.section { font-size: 20px; margin: 26px 0 12px; }

/* Labels stay in CSS pixels while each bar fills the width of its observation. */
.activity-bars { display: flex; list-style: none; padding: 0; margin: 0; gap: clamp(1px, .25vw, 4px); }
.activity-bars li { flex: 1 1 0; min-width: 0; display: grid; align-content: end; text-align: center; }
.activity-plot { position: relative; display: block; height: 3.5rem; border-bottom: 1px solid var(--line); }
.activity-plot svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.activity-bars rect { fill: var(--accent); }
.activity-bars li:hover rect { fill: #ff9a52; }
.activity-value, .activity-axis { font-size: .7rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.activity-axis { color: var(--dim); height: 1.25em; line-height: 1.25; margin-top: .2rem; }
@media (min-width: 60rem) {
  .map-overview:has(.map-activity) { align-items: stretch; }
  .map-facts:has(.map-activity), .map-activity { display: flex; flex-direction: column; }
  .map-activity, .map-activity .activity-bars { flex: 1; }
  .map-activity .activity-bars li { grid-template-rows: auto minmax(3.5rem, 1fr) auto; }
  .map-activity .activity-plot { height: auto; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
td.barcell { width: 28%; min-width: 80px; }
.pad-x { padding: 0 16px 10px; }
h3.sub3 { font-size: 14px; margin: 14px 0 6px; }
/* tables of heat: the week by the hour, the duels of the weapons (classes: the page allows no inline style) */
table.heatgrid { border-collapse: separate; border-spacing: 2px; font-size: 11px; }
table.heatgrid th { color: var(--dim); font-weight: 600; padding: 0 4px; text-align: right; white-space: nowrap; }
table.heatgrid thead th { text-align: center; }
table.heatgrid td { min-width: 16px; height: 16px; border-radius: 3px; text-align: center; color: #fff; padding: 0 3px; }
table.heatgrid.week { width: 100%; table-layout: fixed; border-spacing: 1px; }
table.heatgrid.week th:first-child { width: 26px; }
table.heatgrid.week td { min-width: 0; height: 15px; padding: 0; }
table.heatgrid.week thead th { font-weight: 400; padding: 0; }
table.heatgrid.duels td { min-width: 34px; height: 24px; }
table.heatgrid th.vert { height: 110px; vertical-align: bottom; }
table.heatgrid th.vert span { writing-mode: vertical-rl; transform: rotate(180deg); display: inline-block; }
.h0 { background: rgba(127, 127, 127, .10); }
.h1 { background: rgba(232, 93, 4, .14); } .h2 { background: rgba(232, 93, 4, .24); } .h3 { background: rgba(232, 93, 4, .34); }
.h4 { background: rgba(232, 93, 4, .45); } .h5 { background: rgba(232, 93, 4, .56); } .h6 { background: rgba(232, 93, 4, .67); }
.h7 { background: rgba(232, 93, 4, .78); } .h8 { background: rgba(232, 93, 4, .89); } .h9 { background: rgba(232, 93, 4, 1); }
.heatpair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.heatpair figure { margin: 0; }
.heatpair figcaption { color: var(--dim); font-size: 13px; margin-top: 6px; text-align: center; }

/* the little charts of a player's page (SVG bars: the page allows no inline style) */
.bars { display: grid; gap: 3px; }
.bar-row { display: grid; grid-template-columns: 3.2em minmax(0, 1fr) 4.5em; gap: 8px; align-items: center; font-size: 13px; }
.bar-row .bl { color: var(--dim); text-align: right; }
.bar-row .bv { text-align: right; }
.wr-trend { margin: 1em 0; max-width: 48rem; }
.wr-plot { display: grid; grid-template-columns: 5.5em minmax(0,1fr); }
.wr-scale, .wr-dates { color: var(--dim); font-size: .83em; font-variant-numeric: tabular-nums; }
.wr-scale { display: flex; flex-direction: column; justify-content: space-between; padding: 4px 0; }
.wr-plot svg { width: 100%; height: 106px; overflow: visible; }
.wr-plot polyline { fill: none; stroke: var(--link); stroke-width: 2; vector-effect: non-scaling-stroke; }
.wr-plot circle { fill: var(--link); }
.wr-plot .guide, .gap-plot path { fill: none; stroke: var(--dim); stroke-width: 1; vector-effect: non-scaling-stroke; }
.wr-dates { display: flex; justify-content: space-between; margin-left: 5.5em; }
.gap-plot { width: 28%; }
.gap-plot svg { display: block; width: 100%; height: 12px; }
.gap-plot .fast { fill: var(--ok); }
.gap-plot .slow { fill: var(--bad); }
.run-splits .mono { white-space: nowrap; }
svg.bar { width: 100%; height: 10px; display: block; }
svg.bar .bar-bg { fill: var(--line); }
svg.bar .bar-fg { fill: var(--accent); }
.teamdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 0; background: var(--dim); }
.teamdot.alpha { background: #e5484d; }
.teamdot.bravo { background: #3e8ef7; }
.teamdot.charlie { background: #f5c542; }
.teamdot.delta { background: #3ec46d; }
.page-tabs { margin-bottom: 16px; }
.page-tabs .tab .dim { font-weight: 400; font-size: 13px; }

@media (max-width: 640px) {
  .top-in { gap: 6px 12px; padding-top: 8px; padding-bottom: 6px; }
  .menu { flex-basis: 100%; order: 3; flex-wrap: nowrap; overflow-x: auto; margin: 0 -6px; }
  .hsearch { order: 2; flex: 1; }
  .hsearch input { width: 100%; }
  img.thumb.sm { width: 72px; height: 54px; }
  .menu a { white-space: nowrap; padding: 6px 9px; }
  h1 { font-size: 21px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .replay.large { height: 380px; }
  .kp-acts { grid-template-columns: repeat(3, 38px); }
  .rp-keys .k { height: 21px; }
  .kp-arrows { grid-template-rows: 21px 21px; grid-template-columns: repeat(3, 23px); }
  table.list th, table.list td { padding: 7px 8px; }
}

.replay .rp-review { position:absolute; z-index:4; top:8px; right:8px; max-width:55%; display:flex;
  flex-wrap:wrap; justify-content:flex-end; gap:.35rem; color:var(--ink); text-align:right; }
.rp-review [role="status"]:not(:empty), .replay div.rp-review { background:#151923ed; border-radius:.4rem; padding:.35rem .55rem; }
.rp-review button { max-width:100%; white-space:normal; }
.rp-review button[hidden] { display:none; }
.rp-stage { position:absolute; inset:0; }
.rp-dock { display:contents; }
.rp-dock-toggle { display:none; }
@media (max-width:720px), (pointer:coarse) and (max-height:560px) {
  .replay.rp-layout { display:flex; flex-direction:column; height:auto; touch-action:auto; }
  .rp-layout .rp-stage { position:relative; inset:auto; height:clamp(230px,48svh,440px); flex:none; touch-action:none; }
  .rp-layout .rp-dock { display:flex; flex-wrap:wrap; align-items:center; gap:.45rem .8rem; padding:.55rem; background:var(--head); color:var(--head-ink); }
  .rp-layout .rp-bar, .rp-layout .rp-keys, .rp-layout .rp-legend, .rp-layout .rp-review {
    position:static; margin:0; max-width:100%; max-height:none;
  }
  .rp-layout .rp-bar { flex:1 0 100%; align-items:center; gap:.3rem; padding:0; background:none; }
  .rp-layout .rp-bar button, .rp-layout .rp-bar select { min-height:36px; }
  .rp-layout .rp-legend { order:1; }
  .rp-layout .rp-keys { order:2; box-shadow:none; }
  .rp-layout .rp-review { flex-basis:100%; order:3; }
  .rp-layout .rp-dock-toggle { display:inline-flex; position:absolute; top:.4rem; right:.4rem; z-index:2; gap:.35rem; align-items:center; min-height:36px; padding:.2rem .55rem; color:white; background:#111722e8; }
  .rp-layout.rp-clean .rp-dock { display:none; }
  .rp-layout:fullscreen { height:100%; }
  .rp-layout:fullscreen .rp-stage { height:auto; min-height:0; flex:1; }
  .rp-layout:fullscreen .rp-dock { max-height:45dvh; overflow-y:auto; }
}

@font-face {
  font-family: ZitroIcons;
  src: url("fa-solid-900.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}
.zs-icon { font-family: ZitroIcons; font-weight: 900; font-style: normal; line-height: 1; }
.tile-icon { display:grid; grid-template-columns:minmax(0,1fr) auto; align-content:start; align-items:start; gap:0 .4rem; }
.tile-icon > .zs-icon { color:var(--dim); font-size:.95rem; align-self:center; }
.tile-icon .tl { grid-column:1/-1; }
.tile-detail .tv, .tile-secondary { grid-column:1/-1; }
.tile-secondary { color:var(--dim); font-size:.85rem; font-variant-numeric:tabular-nums; }
.tile-detail > .zs-icon { grid-row:3; grid-column:2; font-size:.75rem; }
.tile-detail > .tl { grid-row:3; grid-column:1; }
.card h2 > .zs-icon, .muted .btn .zs-icon { margin-inline-end:.45em; }
.card h2 > .zs-icon { color:var(--dim); font-size:.87em; }
h1 > .zs-icon, summary > .zs-icon, button > .zs-icon, .btn > .zs-icon { margin-inline-end:.4em; }
.map-title .btn > .zs-icon, .run-filters summary > .zs-icon { margin-inline-end:0; }
h1 > .zs-icon { color:var(--dim); font-size:.82em; }
@media (pointer:coarse) {
  table.list th:has(.order-link, .sort-column) { padding-block:0; }
  table.list th .order-link, table.list th .sort-column { display:inline-flex; gap:.15em; align-items:center; justify-content:inherit; min-height:44px; min-width:44px; }
}
.sort-mark { color:var(--link); margin-inline-start:.27em; white-space:nowrap; }
.sort-mark sup { font-size:.75em; vertical-align:super; }
.order-link:not(:has(.sort-mark))::after, .sort-column:not(:has(.sort-mark))::after { content:'↕'; margin-inline-start:.25em; font-size:.85em; color:var(--dim); }
.run-filters { margin:0 0 1rem; }
.run-filters summary { cursor:pointer; color:var(--link); padding:.3rem 0; }
.run-filters summary::after { content:'▸'; }
.run-filters[open] summary::after { content:'▾'; }
.run-filter-fields { display:flex; flex-wrap:wrap; align-items:end; gap:.6rem; margin-top:.5rem; }
.run-filters label { display:grid; gap:.2rem; font-size:.87rem; }
.run-filters input { width:8.5rem; max-width:100%; }
.live-map-row { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; }
.live-map-row p { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem; min-width: 0; }
.live-map-row + p, .live-map-row + ul { margin-top: .7rem; }
.btn.live-map-action { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem; font-weight: 600;
  color: var(--ink); background: color-mix(in srgb,var(--accent) 9%,var(--card)); border-color: color-mix(in srgb,var(--accent) 56%,var(--line)); }
.live-map-action .zs-icon { color: var(--accent); }
.live-map-action:hover, .live-map-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.site-settings { max-width: 38rem; }
.site-settings button { justify-self: start; }
.site-settings input { min-width: 0; max-width: 100%; }
.site-settings [role=status]:empty { display: none; }
.settings-pair { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,12rem),1fr)); gap: .8rem; }
#server-form code { overflow-wrap: anywhere; }

/* Site navigation and data tables at narrow and intermediate sizes. */
.skip-link { position: fixed; left: .6rem; top: .4rem; z-index: 20; padding: .55rem .9rem; background: var(--card); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
:where(a,button,select,input):focus-visible, label.btn:focus-within { outline: 2px solid var(--link); outline-offset: 2px; }
.menu a { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.menu a .zs-icon { font-size: .84em; }
.compact-search,.menu-toggle { display:none; }
.grid2 { grid-template-columns: repeat(auto-fit,minmax(min(100%,26rem),1fr)); align-items:start; }
.grid2 > *, .toolbar > *, .statgrid > * { min-width:0; }
.scroll .mapname { min-width:max-content; }
.scroll .mapname span { overflow-wrap:normal; }
.motion-view:fullscreen { width:100%; height:100%; max-width:none; max-height:none; display:flex; flex-direction:column;
  gap:.55rem; margin:0; padding:clamp(.4rem,1vw,1rem); border:0; border-radius:0; background:var(--bg); overflow:auto; }
.motion-view:fullscreen header { margin:0; flex:none; }
.motion-view:fullscreen header h1 { font-size:clamp(1rem,2.5vw,1.45rem); }
.motion-view:fullscreen .replay.large { flex:1 1 auto; height:0; min-height:7rem; }
.motion-view header label { display:flex; align-items:center; gap:.45rem; min-width:0; }
.motion-view header select { max-width:min(16rem,58vw); }
.rp-bar button:focus-visible { outline-color:#fff; outline-offset:1px; }
#content:focus { outline:none; }
[id] { scroll-margin-top:4.5rem; }
@media (min-width:85.01rem) and (max-width:99rem) {
  .top-in { gap:.65rem; }
  .menu { gap:.15rem; }
  .menu a { padding-inline:.45rem; gap:.33rem; }
  .hsearch input { max-width:12rem; }
}
@media (max-width:26.5rem) {
  .brand-name { display:none; }
  .srv { justify-self:start; }
}
@media (max-width:85rem) {
  .top-in { display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; gap:.35rem .65rem; padding-block:.35rem; min-height:3.2rem; }
  .brand { grid-row:1; grid-column:1; }
  .hsearch { grid-row:1; grid-column:2; justify-self:end; width:min(100%,18rem); }
  .hsearch input { width:100%; }
  .srv { grid-row:1; grid-column:3; min-width:0; }
  .srv select { max-width:100%; }
  .menu { grid-column:1/-1; grid-row:2; gap:.25rem; margin:0; }
  .has-toggle .menu-toggle { display:grid; place-items:center; grid-column:4; grid-row:1; }
  .menu-toggle,.compact-search { min-width:2.45rem; min-height:2.45rem; border:1px solid #333a4b; border-radius:.45rem; color:var(--head-ink); background:#1d2230; }
  .has-toggle .menu { display:none; }
  .has-toggle .menu-toggle[aria-expanded=true] + .menu { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr)); max-height:58dvh; overflow-y:auto; }
  .menu a { min-height:2.65rem; }
}
@media (max-width:36rem) {
  .top-in { grid-template-columns:auto minmax(0,1fr) auto auto; column-gap:.35rem; }
  .brand { font-size:1rem; gap:.35rem; }
  .srv { grid-column:2; justify-self:end; max-width:100%; }
  .srv select { width:100%; min-width:0; }
  .compact-search { grid-column:3; grid-row:1; display:grid; place-items:center; }
  .hsearch { display:none; }
  main.wrap { padding-top:1rem; }
  .tile { padding:.65rem .75rem; }
  .tiles { grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr)); gap:.5rem; }
  .pager { gap:.25rem; padding:.65rem .4rem; }
  .pager a,.pager .cur { display:inline-grid; place-items:center; min-height:2.4rem; }
  .rp-bar { gap:.25rem; padding:.3rem; }
}

/* Half-star voting and the compact map catalogue rating. */
.rating-wrap { margin:.2rem 0 1.1rem; display:flex; align-items:center; flex-wrap:wrap; gap:.75rem; }
.community-rating,.table-score { --star-size:1.08rem; --star-slot:1.35rem; --star-height:1.9rem;
  position:relative; display:inline-grid; justify-items:center; width:max-content; max-width:100%; color:var(--ink); }
.score-form,.rating-signin { display:grid; justify-items:center; width:max-content; }
.rating-signin { color:inherit; border-radius:3px; }
.rating-signin:hover,.table-score:hover { text-decoration:none; }
.rating-strip { position:relative; }
.score-stars { display:inline-flex; align-items:center; vertical-align:middle; }
.score-star { display:grid; place-items:center; position:relative; width:var(--star-slot); height:var(--star-height);
  font-size:var(--star-size); color:color-mix(in srgb,var(--dim) 50%,var(--line)); }
.score-star .zs-icon { grid-area:1 / 1; }
.score-star .zs-icon:last-child {
  color:#f5a623; clip-path:inset(-.25em var(--score-cut,100%) -.25em 0); }
.score-star.fill-1 { --score-cut:50%; }
.score-star.fill-2 { --score-cut:0%; }
.rating-halves { position:absolute; inset:0; display:grid; grid-template-columns:repeat(10,1fr); }
.rating-halves button { display:block; min-width:0; background:transparent; border:0; margin:0; padding:0; border-radius:1px; }
.rating-halves button:focus-visible { outline:2px solid var(--link); outline-offset:-1px; }
.rating-caption { display:flex; align-items:center; position:relative; }
.rating-count,.table-score small { display:block; color:var(--dim); font-size:.74rem; line-height:1.35; }
button.rating-count { background:none; border:0; border-radius:2px; padding:0 .2rem; min-height:1.15rem; }
button.rating-count small { font:inherit; }
button.rating-remove { position:absolute; inset-inline-start:calc(100% + .15rem); color:var(--dim); font-size:.95rem; line-height:1; min-height:1.15rem; min-width:1.2rem; padding:0; border:0; background:none; }
.rating-count:hover,.rating-remove:hover { color:var(--ink); }
.score-tip { position:absolute; bottom:calc(100% + .3rem); left:50%; transform:translateX(-50%); z-index:4;
  pointer-events:none; visibility:hidden; opacity:0; background:#17191e; color:#fff; border-radius:4px; padding:.27rem .5rem;
  white-space:nowrap; text-align:center; font:600 .72rem/1.4 system-ui,sans-serif; box-shadow:0 2px 8px #0004; }
.score-tip::after { content:""; position:absolute; top:100%; left:50%; transform:translateX(-50%); border:.3rem solid transparent; border-top-color:#17191e; }
.score-tip .score-stars { display:flex; justify-content:center; --star-size:.7rem; --star-slot:.85rem; --star-height:1rem; }
.community-rating:focus-within .score-tip,.community-rating.tip-open .score-tip,
.table-score:focus-visible .score-tip,.table-score.tip-open .score-tip { visibility:visible; opacity:1; }
@media(hover:hover) { .community-rating:hover .score-tip,.table-score:hover .score-tip { visibility:visible; opacity:1; } }
.community-rating.tip-dismissed .score-tip { visibility:hidden; opacity:0; }
.rating-status { color:var(--dim); font-size:.8rem; }
.rating-status:empty { display:none; }
.table-score { --star-slot:.83rem; --star-size:.74rem; --star-height:1.05rem; margin-block:.05rem; vertical-align:middle; }
.table-score small { font-size:.67rem; }
@media(pointer:coarse) {
  .community-rating { --star-slot:2.8rem; --star-size:1.35rem; --star-height:2.8rem; }
  button.rating-count,button.rating-remove { min-height:1.55rem; }
  button.rating-remove { min-width:1.55rem; }
}
.pack-actions { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; }
.settings-page { max-width:78rem; margin-inline:auto; }
.settings-page h1 { display:flex; gap:.55rem; align-items:center; }
.registry-page { max-width:64rem; }
.registry-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.65rem 1rem; margin:1.2rem 0 .8rem; }
.registry-heading h1 { margin:0; }
.registry-heading h1 small { color:var(--dim); font-size:.65em; }
.registry-add { background:var(--accent); border-color:var(--accent); color:var(--accent-ink); }
.registry table { table-layout:fixed; }
.registry th:first-child { width:4rem; }
.registry th:last-child { width:6rem; }
.registry-edit { display:inline-flex; align-items:center; gap:.5rem; min-height:2rem; max-width:100%; overflow-wrap:anywhere; }
.registry-edit .zs-icon { color:var(--dim); font-size:.75em; }
.registry tr.editing { background:var(--bg); }
.registry-editor { padding-top:1.05rem; margin-top:.55rem; border-top:1px solid var(--line); scroll-margin-top:5rem; }
.registry-form { display:grid; grid-template-columns:minmax(5rem,7rem) minmax(9rem,1fr) minmax(6rem,9rem); max-width:45rem; gap:.8rem; }
.registry-form label,.icon-settings label { display:grid; gap:.35rem; font-weight:600; }
.registry-form input,.registry-form select { min-width:0; width:100%; }
.registry-actions { grid-column:1/-1; display:flex; gap:.6rem; flex-wrap:wrap; align-items:center; }
.registry-help { margin-top:1rem; border-top:1px solid var(--line); padding-top:.7rem; color:var(--dim); }
.registry-help summary { cursor:pointer; color:var(--link); }
.server-id-note { color:var(--dim); margin:0 0 .45rem; overflow-wrap:anywhere; }
.server-id-note code { color:var(--ink); }
.icon-settings { max-width:43rem; }
.pack-current { display:flex; gap:.75rem; align-items:center; padding-bottom:1rem; border-bottom:1px solid var(--line); margin-bottom:1rem; }
.pack-current > .zs-icon { color:var(--accent); font-size:1.6rem; }
.pack-current strong,.pack-current small { display:block; }
.pack-current small { color:var(--dim); }
.icon-settings .site-settings { max-width:none; }
.icon-settings input[type=file] { width:100%; }
.icon-settings input::file-selector-button { background:var(--card); color:var(--ink); border:1px solid var(--line);
  padding:.35rem .6rem; border-radius:5px; margin-inline-end:.6rem; cursor:pointer; }
.pack-actions button { display:inline-flex; align-items:center; gap:.45rem; }
.pack-actions button:disabled { background:var(--bg); color:var(--dim); border-color:var(--line); cursor:default; }
.directory-history { margin-top:1.5rem; border-top:1px solid var(--line); padding-top:1rem; }
.directory-history h2 { margin:0 0 .75rem; }
@media (min-width:52rem) {
  .runner-grid > .runner:only-child { grid-column:1/-1; display:grid;
    grid-template-columns:minmax(12rem,.95fr) minmax(0,2fr); align-items:center; gap:.15rem 1.5rem; }
  .runner:only-child header { justify-content:flex-start; }
  .runner:only-child dl { grid-column:2; grid-row:1/3; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:0; }
  .runner:only-child dl div { border-inline-start:1px solid var(--line); padding-inline-start:.8rem; }
  .runner:only-child > small { grid-column:1; }
}
.recent-runners { grid-template-columns:repeat(auto-fill,minmax(min(100%,20rem),1fr)); }
.recent-run { display:grid; grid-template-columns:clamp(4.75rem,8vw,7.5rem) minmax(0,1fr); gap:.85rem; padding:.75rem; }
.run-preview { display:grid; align-items:center; overflow:hidden; border-radius:6px; aspect-ratio:4/3; background:var(--bg); }
.run-preview:empty::after { content:"\f279"; font:900 1.5rem ZitroIcons; color:var(--dim); justify-self:center; }
.recent-run .run-preview img { display:block; width:100%; height:100%; object-fit:contain; }
.run-caption { min-width:0; overflow-wrap:anywhere; }
.run-caption p { margin:.15rem 0; }
.run-caption small { font-variant-numeric:tabular-nums; }
.run-clock { display:flex; align-items:center; gap:.4rem; font-weight:700; font-variant-numeric:tabular-nums; }
.run-clock .zs-icon { color:var(--dim); font-size:.8em; }
@media (max-width:36rem) {
  .registry-form { grid-template-columns:minmax(0,1fr); gap:.55rem; }
  .registry th:first-child { width:2.8rem; }
  .registry th:last-child { width:5.2rem; }
  .score-form { max-width:100%; }
}
