/* GURKHAZ Leaderboard. World: the community's scoreboard poster. Smoke-dark field, bone type, brass for what you can press, a light scoresheet for the table. */
@font-face { font-family: "Anton"; src: url("fonts/anton-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlowcond-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlowcond-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --smoke-0: #101210;
  --smoke-1: #181b18;
  --smoke-2: #20241f;
  --smoke-line: #2f342d;
  --bone: #ecebe3;
  --bone-dim: #a9ab9e;
  --brass: #d6a446;
  --brass-deep: #b8862c;
  --rust: #c55a3e;
  --olive: #8f9c5e;
  --slate: #7f8c92;
  --bar: #cfcab3;
  --paper: #ecebe4;
  --paper-alt: #e1dfd6;
  --paper-ink: #1a1c19;
  --paper-dim: #5c5f55;
  --paper-line: #c9c6ba;
  --f-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --f-label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --s-cap: 0.8125rem;
  --s-body: 0.9375rem;
  --s-h: 1.375rem;
  --radius: 4px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--smoke-line) var(--smoke-0); }
::selection { background: var(--brass); color: var(--smoke-0); }
body {
  margin: 0;
  background: var(--smoke-0) radial-gradient(120% 60% at 50% 0%, #252a24 0%, var(--smoke-0) 60%) no-repeat;
  color: var(--bone);
  font-family: var(--f-body);
  font-size: var(--s-body);
  line-height: 1.5;
  padding-block: 40px 48px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  font-variant-numeric: tabular-nums;
}
.page { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }

/* Header: the poster's masthead */
.mast { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.mast-mark { display: flex; align-items: center; gap: clamp(10px, 2vw, 18px); }
.mast-mark svg { width: clamp(38px, 7vw, 64px); height: auto; flex: none; }
.mast-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(3.25rem, 11vw, 6rem); line-height: 0.92; letter-spacing: 0.01em; margin: 0; text-transform: uppercase; color: var(--bone); }
.mast-sub { font-family: var(--f-label); font-weight: 700; font-size: clamp(1.25rem, 3.4vw, 1.875rem); letter-spacing: 0.08em; text-transform: uppercase; margin: 0; line-height: 1; }
.mast-period { font-family: var(--f-label); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.04em; background: var(--smoke-2); border: 1px solid var(--smoke-line); border-radius: var(--radius); padding: 6px 18px; margin: 4px 0 0; }
.mast-period .arrow { color: var(--brass); padding-inline: 8px; }
.mast-totals { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; color: var(--bone-dim); font-size: var(--s-body); }
.mast-totals li { padding-inline: 12px; border-left: 1px solid var(--smoke-line); }
.mast-totals li:first-child { border-left: 0; }
.mast-totals b { color: var(--bone); font-weight: 600; font-family: var(--f-label); font-size: 1.125rem; letter-spacing: 0.02em; }
.mast-lead { max-width: 60ch; margin: 6px 0 0; font-size: 1.0625rem; color: var(--bone); text-wrap: balance; }
.mast-lead b { font-weight: 600; }

/* Panels */
.panel { background: var(--smoke-1); border: 1px solid var(--smoke-line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.h2 { font-family: var(--f-label); font-weight: 700; font-size: var(--s-h); letter-spacing: 0.06em; text-transform: uppercase; margin: 0; line-height: 1.1; }
.h3 { font-family: var(--f-label); font-weight: 600; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bone-dim); margin: 0; }
.note { font-size: var(--s-cap); color: var(--bone-dim); margin: 0; max-width: 70ch; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; align-items: start; }

/* Controls */
.field { font: inherit; font-size: 1.0625rem; color: var(--bone); background: var(--smoke-0); border: 1px solid var(--smoke-line); border-radius: var(--radius); padding: 11px 14px; width: 100%; min-width: 0; transition: border-color 160ms ease; }
.field::placeholder { color: #7d8074; }
.field:hover { border-color: #444a40; }
.field:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }
.field-sm { font-size: var(--s-body); padding: 7px 12px; width: min(100%, 240px); }
.dash-select { font-family: var(--f-label); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.04em; color: var(--bone); background-color: var(--smoke-0); border: 1px solid var(--smoke-line); border-radius: var(--radius); padding: 7px 32px 7px 12px; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%), linear-gradient(135deg, var(--brass) 50%, transparent 50%);
  background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.dash-select:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }

/* Player lookup */
.look { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; align-items: start; }
.look-in { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.matches { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.matches button { font: inherit; font-size: var(--s-cap); color: var(--bone); background: var(--smoke-2); border: 1px solid var(--smoke-line); border-radius: var(--radius); padding: 5px 10px; cursor: pointer; transition: transform 160ms var(--ease-out), border-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .matches button:hover { border-color: var(--brass); } }
.matches button:active { transform: scale(0.97); }
.matches button:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }
.matches button span { color: var(--brass); margin-left: 6px; }
.profile { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; align-items: end; min-width: 0; }
.p-rank { grid-row: span 2; font-family: var(--f-display); font-size: clamp(3.5rem, 9vw, 5.25rem); line-height: 0.85; color: var(--brass); }
.p-rank small { font-size: 0.45em; vertical-align: 0.9em; margin-right: 2px; }
.p-name { font-family: var(--f-label); font-weight: 700; font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.05; margin: 0; overflow-wrap: anywhere; text-transform: none; }
.p-of { margin: 0; color: var(--bone-dim); font-size: var(--s-cap); }
.p-of b { color: var(--bone); font-weight: 600; }
.p-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 14px 0 0; border-top: 1px solid var(--smoke-line); border-bottom: 1px solid var(--smoke-line); }
.p-stats div { padding: 10px 8px 10px 0; display: flex; flex-direction: column; gap: 2px; }
.p-stats div + div { padding-left: 12px; border-left: 1px solid var(--smoke-line); }
.p-stats dt { font-family: var(--f-label); font-weight: 600; font-size: var(--s-cap); letter-spacing: 0.06em; text-transform: uppercase; color: var(--bone-dim); }
.p-stats dd { margin: 0; font-family: var(--f-display); font-size: 1.625rem; line-height: 1.1; }
@media (max-width: 460px) { .p-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .p-stats div:nth-child(4) { border-left: 0; padding-left: 0; } }
.p-died { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.pbar { display: flex; height: 10px; background: var(--smoke-2); overflow: hidden; border-radius: 2px; }
.pbar i { display: block; height: 100%; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--s-cap); color: var(--bone-dim); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend b { color: var(--bone); font-weight: 600; }
.sw { width: 10px; height: 10px; border-radius: 1px; display: inline-block; }

/* Charts */
.chart { position: relative; min-height: 220px; }
.chart-top { min-height: 520px; }
.chart svg { display: block; overflow: visible; }
.lbl { fill: var(--bone); font-size: 13px; font-family: var(--f-body); }
.lbl-pick { fill: var(--brass); font-weight: 600; }
.val { fill: var(--bone-dim); font-size: 13px; font-family: var(--f-body); font-variant-numeric: tabular-nums; }
.msg { color: var(--bone-dim); font-size: var(--s-cap); }
.tip { position: absolute; pointer-events: none; background: #0b0c0b; border: 1px solid var(--smoke-line); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55); border-radius: var(--radius); padding: 10px 12px; font-size: var(--s-cap); z-index: 5; min-width: 160px; display: flex; flex-direction: column; gap: 2px; }
.tip strong { font-family: var(--f-label); font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.02em; }
.tip div { display: flex; justify-content: space-between; gap: 16px; }
.tip span { color: var(--bone-dim); }
.causes { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.cause { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; }
.cause-v { color: var(--bone-dim); font-size: var(--s-cap); align-self: end; }
.cause-bar { grid-column: 1 / -1; height: 10px; background: var(--smoke-2); border-radius: 2px; overflow: hidden; }
.cause-bar i { display: block; height: 100%; }
.lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px; }
.ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.ol li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--smoke-line); padding-block: 8px; }
.ol li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol li span:last-child { font-family: var(--f-display); font-size: 1.125rem; line-height: 1.2; }

/* The scoreboard table */
.sheet-wrap { overflow-x: auto; border: 1px solid var(--smoke-line); border-radius: var(--radius); background: var(--smoke-0); scrollbar-color: var(--smoke-line) var(--smoke-0); }
.sheet { border-collapse: collapse; width: 100%; color: var(--bone); font-size: 0.875rem; }
.sheet th, .sheet td { padding: 7px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--smoke-line); }
.sheet th:nth-child(1), .sheet td:nth-child(1) { color: var(--bone-dim); }
.sheet th:nth-child(2), .sheet td:nth-child(2) { text-align: left; white-space: normal; min-width: 160px; }
.sheet thead th { position: sticky; top: 0; z-index: 1; background: var(--smoke-1); color: var(--bone-dim); font-family: var(--f-label); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; user-select: none; }
.sheet thead th[aria-sort="descending"], .sheet thead th[aria-sort="ascending"] { color: var(--brass); }
.sheet thead th[aria-sort="descending"]::after { content: " \2193"; }
.sheet thead th[aria-sort="ascending"]::after { content: " \2191"; }
.sheet thead th:focus-visible { outline: 2px solid var(--brass); outline-offset: -2px; }
.sheet tbody tr { cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .sheet tbody tr:hover td { background: var(--smoke-2); } }
.sheet tbody tr.top3 td { font-weight: 600; }
.sheet tbody tr.top3 td:nth-child(1) { color: var(--brass); }
.sheet tbody tr.picked td { background: rgba(214, 164, 70, 0.14); }
.sheet tbody tr.picked td:nth-child(2) { color: var(--brass); font-weight: 600; }
.sheet td.good { color: #7cc48a; }
.sheet td.bad { color: #e07b62; }

.foot { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--bone-dim); font-size: var(--s-cap); }
.foot-line { font-family: var(--f-display); font-size: 1.5rem; letter-spacing: 0.02em; color: var(--bone); text-transform: uppercase; margin: 0; }
.foot a { color: var(--brass); text-underline-offset: 3px; }
.foot a:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.foot details { max-width: 60ch; text-align: left; }
.foot summary { cursor: pointer; text-align: center; }
.foot dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 10px 0 0; }
.foot dt { color: var(--bone); font-weight: 600; }
.foot dd { margin: 0; }

@media (max-width: 560px) {
  body { padding-block: 24px 36px; }
  .page { gap: 28px; }
  .panel { padding: 16px; }
  .mast-totals li { padding-inline: 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  .mast > * { animation: rise 600ms var(--ease-out) both; }
  .mast > *:nth-child(2) { animation-delay: 60ms; }
  .mast > *:nth-child(3) { animation-delay: 120ms; }
  .mast > *:nth-child(4) { animation-delay: 180ms; }
  .mast > *:nth-child(5) { animation-delay: 240ms; }
  @keyframes rise { from { opacity: 0.35; transform: translateY(6px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
}

/* Scoreboard paging for large exports */
.sheet-more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0 0; }
.sheet-more[hidden] { display: none; }
.sheet-more button { font: 600 var(--s-cap) "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: 0.05em; color: var(--bone); background: var(--smoke-2); border: 1px solid var(--smoke-line); border-radius: var(--radius); padding: 8px 14px; min-height: 40px; cursor: pointer; transition: transform 160ms var(--ease-out), border-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .sheet-more button:hover { border-color: var(--brass); } }
.sheet-more button:active { transform: scale(0.97); }
.sheet-more button:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }

/* Player missing from the newest export: stats are from an earlier one */
.p-stale { margin: 6px 0 0; color: var(--bone-dim); font-size: var(--s-cap); border-left: 2px solid var(--slate); padding-left: 8px; }
.p-stale[hidden] { display: none; }

/* Event-log extras */
.p-arms { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.p-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 6px 0 0; border-top: 1px solid var(--smoke-line); border-bottom: 1px solid var(--smoke-line); }
.p-facts div { padding: 10px 8px 10px 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.p-facts div + div { padding-left: 12px; border-left: 1px solid var(--smoke-line); }
.p-facts div:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.p-facts div:nth-child(n+4) { border-top: 1px solid var(--smoke-line); }
.p-facts dt { font-family: var(--f-label); font-weight: 600; font-size: var(--s-cap); letter-spacing: 0.06em; text-transform: uppercase; color: var(--bone-dim); }
.p-facts dd { margin: 0; font-family: var(--f-display); font-size: 1.25rem; line-height: 1.15; overflow-wrap: anywhere; }
.p-facts dd small { display: block; font-family: var(--f-body); font-size: var(--s-cap); color: var(--bone-dim); }
@media (max-width: 560px) { .p-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .p-facts div:nth-child(n) { padding-left: 12px; border-left: 1px solid var(--smoke-line); border-top: 0; } .p-facts div:nth-child(2n+1) { border-left: 0; padding-left: 0; } .p-facts div:nth-child(n+3) { border-top: 1px solid var(--smoke-line); } }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ol-rec li span:first-child { display: flex; flex-direction: column; gap: 1px; }
.ol-rec b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-rec small { color: var(--bone-dim); font-size: var(--s-cap); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-rivals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--smoke-line); }
.p-rivals div { padding: 10px 8px 10px 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.p-rivals div + div { padding-left: 12px; border-left: 1px solid var(--smoke-line); }
.p-rivals dt { font-family: var(--f-label); font-weight: 600; font-size: var(--s-cap); letter-spacing: 0.06em; text-transform: uppercase; color: var(--bone-dim); }
.p-rivals dd { margin: 0; min-width: 0; }
.p-rivals dd small { display: block; font-size: var(--s-cap); color: var(--bone-dim); }
.rival { font: inherit; font-family: var(--f-display); font-size: 1.25rem; line-height: 1.15; color: var(--bone); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--smoke-line); text-underline-offset: 4px; transition: color 150ms ease, transform 160ms ease-out; }
.rival:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.rival:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .rival:hover { color: var(--brass); text-decoration-color: var(--brass); } }

/* Podium: top 3 by kills, on the right until a player is picked */
.profile[hidden], .podium[hidden] { display: none; }
.p-back { grid-column: 1 / -1; justify-self: start; margin-bottom: 6px; font-family: var(--f-label); font-weight: 600; font-size: var(--s-cap); letter-spacing: 0.06em; text-transform: uppercase; color: var(--bone-dim); background: none; border: 1px solid var(--smoke-line); border-radius: var(--radius); padding: 8px 14px; min-height: 36px; cursor: pointer; transition: color 150ms ease, border-color 150ms ease, transform 160ms ease-out; }
.p-back:active { transform: scale(0.97); }
.p-back:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .p-back:hover { color: var(--brass); border-color: var(--brass); } }
.podium { --gold: var(--brass); --silver: var(--bone-dim); --bronze: #a8743f; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; padding-top: 8px; border-bottom: 1px solid var(--smoke-line); }
.pod { display: flex; flex-direction: column; align-items: stretch; gap: 12px; min-width: 0; }
.pod-who { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; background: none; border: 0; padding: 0; color: var(--bone); cursor: pointer; text-align: center; transition: transform 160ms ease-out; }
.pod-who:active { transform: scale(0.97); }
.pod-who:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; border-radius: var(--radius); }
.pod-name { max-width: 100%; font-family: var(--f-label); font-weight: 700; font-size: 1.125rem; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 150ms ease; }
.pod-v { font-family: var(--f-display); font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1; margin-top: 4px; }
.pod-v small { font-family: var(--f-label); font-weight: 600; font-size: var(--s-cap); letter-spacing: 0.06em; text-transform: uppercase; color: var(--bone-dim); margin-left: 6px; }
.pod-sub { font-size: var(--s-cap); color: var(--bone-dim); }
.pod-1 .pod-v { font-size: clamp(2.25rem, 5.5vw, 3.5rem); color: var(--gold); }
.pod-1 .pod-name { font-size: 1.375rem; }
.pod-step { display: flex; justify-content: center; align-items: flex-start; padding-top: 10px; background: linear-gradient(var(--smoke-2), var(--smoke-1)); border: 1px solid var(--smoke-line); border-top: 2px solid var(--c); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; font-family: var(--f-display); font-size: clamp(2rem, 5vw, 3rem); line-height: 1; color: var(--c); }
.pod-step span { opacity: 0.55; }
.pod-1 .pod-step { --c: var(--gold); height: 150px; }
.pod-2 .pod-step { --c: var(--silver); height: 104px; }
.pod-3 .pod-step { --c: var(--bronze); height: 76px; }
@media (hover: hover) and (pointer: fine) { .pod-who:hover .pod-name { color: var(--brass); } }
@media (max-width: 460px) { .pod-1 .pod-step { height: 110px; } .pod-2 .pod-step { height: 78px; } .pod-3 .pod-step { height: 58px; } .pod-name { font-size: 0.9375rem; } .pod-1 .pod-name { font-size: 1.0625rem; } .pod-sub { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .pod { animation: pod-in 600ms cubic-bezier(0.23, 1, 0.32, 1) both; }
  .pod-2 { animation-delay: 80ms; }
  .pod-3 { animation-delay: 160ms; }
  @keyframes pod-in { from { opacity: 0; transform: translateY(16px); } }
}

/* Scoreboard pager: Previous 1 2 … 286 Next */
.pager { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 14px 0 0; }
.pager[hidden] { display: none; }
.pg-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; }
.pg-row button { font-family: var(--f-label); font-weight: 600; font-size: 1rem; letter-spacing: 0.03em; font-variant-numeric: tabular-nums; color: var(--bone-dim); background: none; border: 1px solid transparent; border-radius: var(--radius); min-width: 40px; min-height: 40px; padding: 0 10px; cursor: pointer; transition: color 150ms ease, border-color 150ms ease, transform 160ms ease-out; }
.pg-row button:active:not(:disabled) { transform: scale(0.97); }
.pg-row button:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }
.pg-row button:disabled { opacity: 0.35; cursor: default; }
.pg-row .pg-cur { color: var(--bone); background: var(--smoke-2); border-color: var(--brass); cursor: default; }
.pg-prev::before { content: "‹"; margin-right: 6px; }
.pg-next::after { content: "›"; margin-left: 6px; }
.pg-gap { color: var(--bone-dim); padding: 0 4px; }
.pg-info { font-size: var(--s-cap); color: var(--bone-dim); }
@media (hover: hover) and (pointer: fine) { .pg-row button:hover:not(:disabled):not(.pg-cur) { color: var(--bone); border-color: var(--smoke-line); } }
@media (max-width: 460px) { .pg-step { font-size: 0; min-width: 40px; } .pg-prev::before, .pg-next::after { font-size: 1.25rem; margin: 0; } }

/* Fun fact under the search box */
.fact { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 18px; padding: 16px 18px; background: var(--smoke-0); border: 1px solid var(--smoke-line); border-left: 3px solid var(--bar); border-radius: var(--radius); }
.fact[hidden] { display: none; }
.fact-text { margin: 0; font-size: 1.0625rem; line-height: 1.45; max-width: 52ch; }
.fact-text b { font-weight: 600; color: var(--bone); }
.fact-next { font-family: var(--f-label); font-weight: 600; font-size: var(--s-cap); letter-spacing: 0.06em; text-transform: uppercase; color: var(--bone-dim); background: none; border: 1px solid var(--smoke-line); border-radius: var(--radius); padding: 8px 14px; min-height: 36px; cursor: pointer; transition: color 150ms ease, border-color 150ms ease, transform 160ms ease-out; }
.fact-next:active { transform: scale(0.97); }
.fact-next:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .fact-next:hover { color: var(--brass); border-color: var(--brass); } }

/* Profile: favourite weapons (on foot) and vehicles side by side */
.p-favs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 8px 24px; }
.p-fav { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.p-fav .ol li.none { color: var(--bone-dim); font-size: var(--s-cap); }

/* Favourite weapon links and the weapon card dialog */
.wlink { font: inherit; color: var(--bone); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--smoke-line); text-underline-offset: 4px; transition: color 150ms ease; }
.wlink:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .wlink:hover { color: var(--brass); text-decoration-color: var(--brass); } }
.wcard { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 22px 24px; color: var(--bone); background: var(--smoke-1); border: 1px solid var(--smoke-line); border-top: 2px solid var(--brass); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }
.wcard::backdrop { background: rgba(8, 9, 8, 0.72); }
.wcard[open] { display: flex; flex-direction: column; gap: 14px; }
.wcard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.wcard-for { margin: 0; font-family: var(--f-label); font-weight: 600; font-size: var(--s-cap); letter-spacing: 0.06em; text-transform: uppercase; color: var(--bone-dim); }
.wcard-title { margin: 2px 0 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.75rem, 6vw, 2.5rem); line-height: 1.05; overflow-wrap: anywhere; }
.wcard-close { flex: none; width: 40px; height: 40px; font-size: 1.5rem; line-height: 1; color: var(--bone-dim); background: none; border: 1px solid var(--smoke-line); border-radius: var(--radius); cursor: pointer; transition: color 150ms ease, border-color 150ms ease, transform 160ms ease-out; }
.wcard-close:active { transform: scale(0.97); }
.wcard-close:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .wcard-close:hover { color: var(--brass); border-color: var(--brass); } }
.wcard-big { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
@media (max-width: 460px) { .wcard-big { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wcard-big div:nth-child(3) { border-left: 0; padding-left: 0; } }
.wcard-rows { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.wcard-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--smoke-line); }
.wcard-rows dt { color: var(--bone-dim); font-size: 0.9375rem; flex: none; }
.wcard-rows dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: no-preference) {
  .wcard[open] { animation: wcard-in 200ms cubic-bezier(0.23, 1, 0.32, 1); }
  .wcard[open]::backdrop { animation: wcard-fade 200ms ease-out; }
  @keyframes wcard-in { from { opacity: 0; transform: scale(0.96); } }
  @keyframes wcard-fade { from { opacity: 0; } }
}
