/* ---- /style.css (bundled by tools/perf_css.py; edit /style.css, never this file) ---- */
/* Valkyrie Realms · The Valkyrie Chronicle (brand v3)
   An illuminated adventurer's chronicle of Aurora Isle: engraved plates, gilded frames, ink on parchment / night vellum.
   The Minecraft UI moments (tooltips, server-list row, XP bar, hotbar) are kept as the "in-game" layer.
   Structure below: the original Hotbar HUD component rules, then the CHRONICLE LAYER at the end re-skins them. */
/* Self-hosted fonts (OFL): Cinzel (display), Atkinson Hyperlegible Next (body), JetBrains Mono (numbers), Pixelify Sans
   (in-game chrome only). latin + latin-ext only. */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/fonts/cinzel-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/atkinson-hyperlegible-next-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/atkinson-hyperlegible-next-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/atkinson-hyperlegible-next-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/atkinson-hyperlegible-next-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Digits only: Pixelify Sans draws 5 like S, 2 like 8 and 6 like b, so every number in display type uses JetBrains Mono's
   digits (already self-hosted). Punctuation stays pixel; mono gives '.' and ',' a full cell. Listed first in --f-display. */
@font-face {
  font-family: 'VR Digits';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0030-0039;
}
@font-face {
  font-family: 'Pixelify Sans';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/assets/fonts/pixelify-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Pixelify Sans';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/assets/fonts/pixelify-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ---------- tokens ---------- */
/* Chronicle (brand v3): an illuminated adventurer's chronicle. Engraved plates, gilded frames, ink on parchment.
   Minecraft UI moments (tooltips, the server-list row, XP bar, hotbar slots, F3 coordinates) stay as the "in-game" layer. */
:root {
  --f-display: 'VR Digits', 'Cinzel', 'Trajan Pro', Georgia, 'Times New Roman', serif;
  --f-pixel: 'VR Digits', 'Pixelify Sans', 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --f-num: 'VR Digits', 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --f-body: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Menlo, monospace;

  --gut: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --sec-y: clamp(54px, 6.75vw, 96px);
  --dock-h: 112px;

  /* constants shared by both themes (HUD + tooltip are in-game chrome) */
  --xp: #2EE6D6;   /* chronicle: the XP gauge is aurora teal (no Minecraft green on the page) */
  --gold: #FFD24A;
  --tip-bg: rgb(23 17 11 / .97);   /* chronicle in-game layer: warm ink-black, gilded rim fading to aurora violet */
  --tip-b1: #D7A040;
  --tip-b2: #4B2F9E;
  --lore: #B5B5C8;
  --lore-dim: #8F8FA3;
  --discord: linear-gradient(100deg, rgb(46 230 214 / 0) 52%, rgb(46 230 214 / .26)), linear-gradient(180deg, #5A3FB0 0%, #3B2586 52%, #22145A 100%);
  --discord-h: linear-gradient(100deg, rgb(46 230 214 / 0) 46%, rgb(46 230 214 / .34)), linear-gradient(180deg, #6A4DC4 0%, #47309A 52%, #2A1A6A 100%);
  --discord-edge: #170C40;
  --prim: #0F6F68;
  --prim-h: #127A72;
  --prim-edge: #08403C;

  /* chronicle ornament constants */
  --leaf: linear-gradient(180deg, #F6D77E 0%, #D7A040 55%, #8A5A14 100%);
  --leaf-h: linear-gradient(180deg, #FFE6A0 0%, #E3B04F 55%, #9A6618 100%);
  --leaf-x: linear-gradient(135deg, #F6D77E 0%, #D7A040 50%, #8A5A14 100%);
  --frame: url(/assets/chronicle/frame.svg);
  --frame-lite: url(/assets/chronicle/frame-lite.svg);
  --inkline: #2B2118;
  --gem-t: #1F9E95;
  --gem-v: #7B5BD6;

  --dur-1: 110ms;
  --dur-2: 150ms;
  --dur-3: 260ms;
  --dur-x: 520ms;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --notch: none;
}

/* Night Vellum (default) */
:root, [data-theme="night"] {
  color-scheme: dark;
  --bg: #18130D;
  --bg-2: #1D1711;
  --tex: url(/assets/chronicle/vellum-768.webp);
  --tex-2: url(/assets/chronicle/vellum-768.webp);
  --band: linear-gradient(rgb(255 228 170 / .028), rgb(255 228 170 / .028));
  --hatch: repeating-linear-gradient(135deg, rgb(232 180 74 / .028) 0 1px, transparent 1px 7px);
  --panel: #221B13;
  --panel-fill: linear-gradient(180deg, rgb(255 232 190 / .045), rgb(255 232 190 / 0) 46%), #221B13;
  --panel-hi: #3A2E1E;
  --panel-lo: #0F0B07;
  --outline: #0A0704;
  --card: #2A2117;
  --card-hi: #45372A;
  --card-lo: #120D08;
  --slot: #15100A;
  --slot-lo: #060403;
  --slot-hi: #4A3A26;
  --slot-ring: rgb(215 160 64 / .5);
  --slot-hover: rgb(232 180 74 / .16);
  --ink: #EEE2C6;
  --ink-2: #BFAE8C;
  --ink-3: #A8977A;
  --label: #CDBB96;
  --xp-ink: #6FE3D6;
  --gold-ink: #E8B44A;
  --gold-t: #E8B44A;
  --teal: #2EE6D6;
  --violet: #A78BFA;
  --link: #5FE6DA;
  --focus: #2EE6D6;
  --focus-glow: 0 0 0 6px rgb(46 230 214 / .18);
  --shadow-text: rgb(0 0 0 / .6);
  --ok: #6EE07A;
  --warn: #F0B04A;
  --err: #FF8A7A;
  --idle: #A8977A;
  --sec-btn: #2E2418;
  --sec-btn-h: #3A2E1F;
  --sec-btn-ink: #EEE2C6;
  --sec-btn-edge: #0F0B07;
  --sec-btn-hi: rgb(246 215 126 / .16);
  --sec-btn-ring: rgb(215 160 64 / .55);
  --ghost-h: rgb(238 226 198 / .07);
  --rule: rgb(232 180 74 / .2);
  --rule-2: rgb(232 180 74 / .34);
  --drop: 0 18px 40px -18px rgb(0 0 0 / .85), 0 2px 0 rgb(0 0 0 / .35);
  --plate-drop: drop-shadow(0 22px 26px rgb(0 0 0 / .6)) drop-shadow(0 2px 2px rgb(0 0 0 / .5));
}

/* Parchment (light, "Daylight") */
[data-theme="day"] {
  color-scheme: light;
  --bg: #EBDDBF;
  --bg-2: #E5D4B1;
  --tex: url(/assets/chronicle/parchment-768.webp);
  --tex-2: url(/assets/chronicle/parchment-768.webp);
  --band: linear-gradient(rgb(122 84 34 / .06), rgb(122 84 34 / .06));
  --hatch: repeating-linear-gradient(135deg, rgb(90 70 50 / .035) 0 1px, transparent 1px 7px);
  --panel: #F4EAD2;
  --panel-fill: linear-gradient(rgb(255 250 236 / .6), rgb(255 250 236 / .6)), url(/assets/chronicle/parchment-768.webp) 0 0 / 768px 768px, #F4EAD2;
  --panel-hi: #FFF8E6;
  --panel-lo: #C9B48A;
  --outline: #4A3721;
  --card: #F1E5C9;
  --card-hi: #FBF3DF;
  --card-lo: #BFA674;
  --slot: #E4D3AC;
  --slot-lo: #A88C5C;
  --slot-hi: #FFF7E2;
  --slot-ring: rgb(138 90 20 / .55);
  --slot-hover: rgb(138 90 20 / .14);
  --ink: #2B2118;
  --ink-2: #5A4632;
  --ink-3: #66513C;
  --label: #4E3C2A;
  --xp-ink: #0B5C56;
  --gold-ink: #7A4C10;
  --gold-t: #8A5A14;
  --teal: #0F6F68;
  --violet: #5B3FB0;
  --link: #0B5E57;
  --focus: #5B3FB0;
  --focus-glow: 0 0 0 6px rgb(91 63 176 / .16);
  --shadow-text: transparent;
  --ok: #1E6B2A;
  --warn: #7A4C10;
  --err: #8E1F1F;
  --idle: #66513C;
  --sec-btn: #F6EDD8;
  --sec-btn-h: #FFF7E6;
  --sec-btn-ink: #2B2118;
  --sec-btn-edge: #B79A62;
  --sec-btn-hi: #FFFBF0;
  --sec-btn-ring: rgb(122 76 16 / .6);
  --ghost-h: rgb(90 70 50 / .08);
  --rule: rgb(90 70 50 / .2);
  --rule-2: rgb(122 76 16 / .38);
  --drop: 0 18px 34px -20px rgb(74 48 18 / .55), 0 2px 0 rgb(122 84 34 / .14);
  --plate-drop: drop-shadow(0 18px 22px rgb(74 48 18 / .38)) drop-shadow(0 2px 2px rgb(74 48 18 / .25));
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-1: 0s; --dur-2: 0s; --dur-3: 0s; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font: 400 17px/1.6 var(--f-body);
  font-variant-ligatures: no-common-ligatures; /* Pixelify's fl ligature turned "no-fly" into "no-Ay" */
  color: var(--ink);
  background: var(--bg) var(--tex) repeat;
  background-size: 64px 64px;
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body { background-attachment: scroll; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
code, kbd { font-family: var(--f-mono); font-size: .9em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nobr { white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.px { image-rendering: pixelated; shape-rendering: crispEdges; }
svg.px, svg.ui { flex: none; }
svg.ui { width: 20px; height: 20px; }
svg.px { width: 32px; height: 32px; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 200; padding: 12px 16px; background: var(--tip-bg); color: #fff; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
/* r6 UX-53: where the header nav is folded away (home ≤760 px, e.g. 200 % zoom) a second skip link takes keyboard users
   straight to the hotbar + Menu; wider screens keep the header nav, so it is not needed there */
@media (min-width: 761px) { .skip-nav { display: none; } }

/* ---------- panel system (inventory bevel, notched corners) ---------- */
.panel { position: relative; isolation: isolate; }
.panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--panel);
  border: 2px solid var(--outline);
  box-shadow: inset 4px 4px 0 var(--panel-hi), inset -4px -4px 0 var(--panel-lo);
  clip-path: var(--notch);
}
[data-theme="night"] .panel::before { box-shadow: inset 2px 2px 0 var(--panel-hi), inset -2px -2px 0 var(--panel-lo); }
/* finding 11: daylight panels cast a cool pixel shadow onto the sky (spread -2px keeps it inside the 2px corner notches) */
[data-theme="day"] .panel { box-shadow: 0 6px 0 -2px rgb(36 56 92 / .2), 0 18px 30px -18px rgb(36 56 92 / .35); }
.slot {
  display: grid; place-items: center; flex: none;
  background: var(--slot);
  box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi);
}

/* vanilla tooltip */
.mc-tip {
  color: #FFFFFF;
  font: 400 15px/1.45 var(--f-body);
  padding: 10px 14px 12px;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--tip-bg), var(--tip-bg)) padding-box,
    linear-gradient(180deg, var(--tip-b1), var(--tip-b2)) border-box;
  box-shadow: 0 0 0 2px var(--tip-bg);
  clip-path: polygon(0 -2px, 100% -2px, 100% 0, calc(100% + 2px) 0, calc(100% + 2px) 100%, 100% 100%, 100% calc(100% + 2px), 0 calc(100% + 2px), 0 100%, -2px 100%, -2px 0, 0 0);
  text-align: left;
}
.tip-title { --tc: #FFFFFF; color: var(--tc); font-weight: 700; font-size: 16px; line-height: 1.3; text-shadow: 2px 2px 0 color-mix(in srgb, var(--tc) 22%, #000); margin-bottom: 4px; }
.lore { list-style: none; padding: 0; margin: 0; color: var(--lore); }
.lore li { padding-left: 14px; position: relative; }
.lore li::before { content: ""; position: absolute; left: 0; top: .62em; width: 4px; height: 4px; background: currentColor; opacity: .7; }
.lore .gold { color: var(--gold); }
.tip-cmd { margin-top: 8px; font: 500 13px/1.4 var(--f-mono); color: var(--lore-dim); }

/* ---------- buttons ---------- */
.btn {
  --bb: var(--sec-btn); --bbh: var(--sec-btn-h); --bi: var(--sec-btn-ink); --be: var(--sec-btn-edge); --bhi: var(--sec-btn-hi);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 6px 20px 10px;
  font: 700 16px/1.15 var(--f-body); color: var(--bi); text-decoration: none; white-space: nowrap;
  background: var(--bb);
  border: 2px solid #0B0C0F;
  box-shadow: inset 0 -4px 0 var(--be), inset 2px 2px 0 var(--bhi);
  cursor: pointer;
  transition: background-color var(--dur-1) linear, transform var(--dur-1) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--bbh); transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 var(--be), inset 2px 2px 0 var(--bhi); }
.btn-primary { --bb: var(--prim); --bbh: var(--prim-h); --bi: #FFFFFF; --be: var(--prim-edge); --bhi: rgb(255 255 255 / .22); }
.btn-discord { --bb: var(--discord); --bbh: var(--discord-h); --bi: #FFFFFF; --be: var(--discord-edge); --bhi: rgb(255 255 255 / .22); }
.btn-secondary { }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink); padding: 6px 12px; }
.btn-ghost:hover { background: var(--ghost-h); transform: none; }
.btn-ghost:active { box-shadow: none; transform: none; }
.btn-icon { width: 48px; padding: 0; }
.btn-lg { min-height: 60px; padding: 8px 24px 12px; font-size: 18px; }
.btn-sub { font: 500 13px/1 var(--f-mono); color: #E6F5DF; padding-left: 10px; border-left: 2px solid rgb(255 255 255 / .28); }
.btn.is-copied { --bb: #1F5C12; --bbh: #1F5C12; }
.btn svg.px { width: 32px; height: 32px; margin: -4px 0; }

/* ---------- top bar: one header on every page (C1) ---------- */
.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; justify-content: center; gap: 12px; color: var(--hero-ink); text-decoration: none; min-height: 44px; min-width: 44px; flex: none; }
.brand img { width: 40px; height: 40px; image-rendering: pixelated; box-shadow: 0 0 0 2px #000; }
.brand span { font: 700 22px/1 var(--f-display); letter-spacing: .01em; text-shadow: 2px 2px 0 var(--hero-shadow); white-space: nowrap; }
.topbar-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.topbar .btn-ghost { color: var(--hero-ink); min-height: 44px; }
.topbar .panel-btn { min-height: 44px; padding: 4px 14px 8px; font-size: 15px; white-space: nowrap; }
.topbar .panel-btn svg.px { width: 24px; height: 24px; }
.show-sm-sr { display: none; }
.live-pill { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; color: var(--hero-ink); text-decoration: none; font: 700 14px/1 var(--f-mono); background: var(--pill-bg); box-shadow: inset 0 0 0 2px var(--pill-ring); }
.live-pill:hover { text-decoration: none; background: var(--pill-bg-h); }
/* theme toggle: one 44px icon square at every width; the word (Night/Daylight) stays for screen readers. The word
   changed width between themes and squeezed the status pill to "0/32 onl..." in Daylight at 1440 (polish 2026-11-07) */
.topbar .theme-toggle { width: 44px; min-width: 44px; flex: none; padding: 0; justify-content: center; }
.topbar .theme-toggle .theme-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* site nav (moved here from hub.css; shared by home and hub pages) */
.topnav { display: flex; align-items: center; gap: 2px; margin-right: auto; margin-left: 12px; flex: none; }
.topnav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; font: 700 15px/1 var(--f-body); color: var(--hero-ink); text-decoration: none; white-space: nowrap; text-shadow: 1px 1px 0 var(--hero-shadow); }
.topnav a svg.px { width: 24px; height: 24px; flex: none; }
.topnav a:hover { background: var(--ghost-h); text-decoration: none; }
.topnav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--xp); }
/* account slot: logged-out "My panel" button, or avatar + name once /api/me answers (same box, no shift) */
[data-acct] { display: flex; justify-content: flex-end; min-width: 132px; flex: none; }
.acct { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 12px 0 6px; color: var(--ink); text-decoration: none; font: 700 15px/1 var(--f-body); background: var(--slot); box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi); max-width: 132px; }
.acct img { width: 32px; height: 32px; box-shadow: 0 0 0 2px var(--outline); flex: none; }
.acct span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.acct:hover { text-decoration: none; filter: brightness(1.08); }
.acct[aria-current="page"], .panel-btn[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--xp), inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi); }
.topbar .btn-discord { min-height: 44px; padding: 4px 14px 8px; font-size: 15px; }
.topbar .btn-discord svg.px { width: 24px; height: 24px; margin: 0; }
/* below 1800: drop the nav icons on EVERY page so the signed-in bar (staff + bell + avatar) keeps the full status pill;
   home used to keep them to 1360 and cut the pill to "0/32 onl..." when signed in (polish 2026-11-07). 1600 -> 1800 when
   the sixth link (Download) arrived: at 1600 the icons squeezed the pill down to its dot. */
@media (max-width: 1799px) {
  .topnav a { padding: 0 10px; }
  .topnav a svg.px { display: none; }
}
@media (max-width: 1359px) {
  .topbar .theme-toggle { width: 44px; flex: none; padding: 0; justify-content: center; }
}
/* 761-1099: icon-only brand (its aria-label keeps the name), tighter nav labels */
@media (max-width: 1099px) {
  .topbar-in { gap: 10px; }
  .brand span { display: none; }
  .topnav { margin-left: 0; gap: 0; }
  .topnav a { padding: 0 7px; font-size: 14px; }
  .live-pill { padding: 0 10px; font-size: 13px; }
}
/* below 1100 the account slot is the width of an icon-less "My panel" button; logged in, it shows the avatar only
   (the name stays in the accessible name and the title tooltip) */
@media (max-width: 1099px) {
  .topbar .panel-btn svg.px { display: none; }
  .topbar .panel-btn { padding: 4px 12px 8px; }
  [data-acct] { min-width: 92px; }
  .acct { padding: 0 6px; justify-content: center; }
  .acct > span:not(.sr-only) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.dot { width: 10px; height: 10px; flex: none; background: var(--state-c, var(--idle)); box-shadow: 0 0 0 2px rgb(0 0 0 / .35); }
[data-state="online"] { --state-c: var(--ok); }
[data-state="restarting"] { --state-c: var(--warn); }
[data-state="not responding"], [data-state="offline"] { --state-c: var(--err); }
[data-state="restarting"] .dot { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- hero ---------- */
:root, [data-theme="night"] { --hero-ink: #F4F5F8; --hero-ink-2: #D6DAE3; --hero-shadow: rgb(0 0 0 / .55); --pill-bg: rgb(10 11 16 / .55); --pill-bg-h: rgb(10 11 16 / .75); --pill-ring: rgb(255 255 255 / .16); }
[data-theme="day"] { --hero-ink: #10131A; --hero-ink-2: #262A33; --hero-shadow: rgb(255 255 255 / .6); --pill-bg: rgb(255 255 255 / .62); --pill-bg-h: rgb(255 255 255 / .82); --pill-ring: rgb(0 0 0 / .14); }

.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: min(100svh, 1000px); padding: 92px 0 calc(var(--dock-h) + 30px); scroll-margin-top: 0; }
.hero-bg { position: absolute; inset: 0; z-index: -2; display: block; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
[data-theme="night"] .hero-bg img { filter: brightness(.78) saturate(1.08) contrast(1.05) hue-rotate(-6deg); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
[data-theme="night"] .hero::after {
  background:
    radial-gradient(70% 55% at 50% 30%, rgb(12 14 28 / .45), transparent 70%),
    linear-gradient(180deg, rgb(10 12 30 / .55) 0%, rgb(12 14 24 / .22) 40%, rgb(18 20 26 / .62) 76%, var(--bg) 100%);
}
[data-theme="day"] .hero::after {
  background:
    radial-gradient(56% 34% at 50% 30%, rgb(236 242 255 / .82), rgb(236 242 255 / 0) 100%),
    linear-gradient(180deg, rgb(236 242 249 / .3) 0%, rgb(236 242 249 / 0) 26%, rgb(236 242 249 / .25) 62%, var(--bg) 100%);
}
.hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
/* Desktop: the castle gets the right half of the frame, copy and the server card sit on the left. */
@media (min-width: 1101px) {
  .hero-bg img { object-position: 70% 42%; }
  .hero-in { align-items: flex-start; text-align: left; }
  .hero h1 { font-size: clamp(48px, 4.3vw, 66px); max-width: 13ch; }
  .hero .tip { margin-top: 14px; }
  .hero .lede { margin-top: 14px; }
  .hero .mp { margin-top: 24px; }
  .hero .lede { max-width: 44ch; }
  .hero .mp { width: min(640px, 100%); }
  [data-theme="night"] .hero::after {
    background:
      linear-gradient(90deg, rgb(9 11 24 / .84) 0%, rgb(9 11 24 / .66) 30%, rgb(9 11 24 / .16) 54%, rgb(9 11 24 / 0) 70%),
      linear-gradient(180deg, rgb(10 12 30 / .45) 0%, rgb(10 12 30 / 0) 22%, rgb(10 12 30 / 0) 72%, var(--bg) 100%);
  }
  [data-theme="day"] .hero::after {
    background:
      linear-gradient(90deg, rgb(238 241 248 / .9) 0%, rgb(238 241 248 / .72) 30%, rgb(238 241 248 / .12) 54%, rgb(238 241 248 / 0) 68%),
      linear-gradient(180deg, rgb(238 241 248 / 0) 0%, rgb(238 241 248 / 0) 74%, var(--bg) 100%);
  }
}
/* Short laptop screens (1366x768, 1280x800): keep the whole server card above the hotbar. */
@media (min-width: 1101px) and (max-height: 880px) {
  .hero { padding-top: 84px; }
  .hero .tip { display: none; }
  .hero .hero-in h1 { font-size: clamp(42px, 3.7vw, 54px); max-width: 18ch; }
  .hero .lede { font-size: 17px; margin-top: 10px; }
  .hero .mp { margin-top: 18px; }
}
/* Phones: portrait render, heading over the sky, the castle shows around the card. */
@media (max-width: 760px) {
  .hero-bg img { object-position: 50% 0%; }
  [data-theme="night"] .hero::after {
    background: linear-gradient(180deg, rgb(10 12 30 / .66) 0%, rgb(10 12 30 / .38) 30%, rgb(10 12 30 / .12) 48%, rgb(18 20 26 / .45) 84%, var(--bg) 100%);
  }
  [data-theme="day"] .hero::after {
    background: linear-gradient(180deg, rgb(238 241 248 / .74) 0%, rgb(238 241 248 / .45) 30%, rgb(238 241 248 / .06) 48%, rgb(238 241 248 / 0) 82%, var(--bg) 100%);
  }
}
.tip { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 12px; font: 500 14px/1.3 var(--f-body); color: var(--hero-ink); background: var(--pill-bg); box-shadow: inset 0 0 0 2px var(--pill-ring); }
.tip-k { font: 700 13px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--hero-ink); padding: 3px 6px; background: rgb(128 255 32 / .22); box-shadow: inset 0 0 0 2px rgb(128 255 32 / .5); }
kbd { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px; font: 700 13px/1 var(--f-mono); color: #fff; background: #2A2D35; box-shadow: inset 0 -3px 0 #111, 0 0 0 2px #000; }
.display { font-family: var(--f-display); font-weight: 600; letter-spacing: 0; }
.hero h1 { font-size: clamp(42px, 5.8vw, 80px); line-height: 1.0; color: var(--hero-ink); text-shadow: .05em .05em 0 var(--hero-shadow); text-wrap: balance; max-width: 15ch; }
[data-theme="day"] .hero h1 { text-shadow: 0 0 24px rgb(255 255 255 / .7); }
.lede { margin-top: 18px; max-width: 58ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--hero-ink-2); text-wrap: pretty; }
[data-theme="night"] .lede { text-shadow: 0 1px 12px rgb(0 0 0 / .5); }

/* Multiplayer screen replica */
.mp { position: relative; width: min(740px, 100%); margin-top: 28px; padding: 14px 16px 18px; background: rgb(6 7 10 / .76); box-shadow: 0 0 0 2px #000, inset 0 0 0 2px rgb(255 255 255 / .08), 0 24px 60px rgb(0 0 0 / .4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); text-align: left; color: #fff; }
.mp-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font: 700 14px/1 var(--f-mono); letter-spacing: .04em; color: #C8CCD4; }
.mp-head span:first-child { color: #fff; }
.entry { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; padding: 8px; background: #000; box-shadow: inset 0 0 0 2px #A0A0A0; }
.entry-icon { width: 64px; height: 64px; image-rendering: pixelated; }
.entry-text { min-width: 0; padding-top: 1px; }
.entry-name { font: 600 22px/1.1 var(--f-pixel); color: #FFFFFF; }
.motd { margin-top: 4px; font: 500 20px/1.15 var(--f-pixel); }
.motd span { display: block; }
.m1 { color: #55FFFF; }
.m-star { display: inline-block !important; width: .8em; height: .8em; vertical-align: -.02em; color: var(--gold); }
.m2 { color: #C8C8C8; }
.m-sep { display: inline !important; color: #8A8A8A; }
/* p11 Q3: the card mirrors server.properties `motd` (§d§l name · §8| · §7 Survival SMP / §a · §8| · §b), two lines
   like the real server list; one line each from 1101 px up (the copy is short enough) */
.motd .m-d, .motd .m-7, .motd .m-a, .motd .m-b { display: inline !important; }
.motd .m-sep { margin-inline: .12em; }
.m-d { color: #FF55FF; font-weight: 700; }
.m-7 { color: #AAAAAA; }
.m-a { color: #55FF55; }
.m-b { color: #55FFFF; }
/* both MOTD lines share one size that fits the longer line (436 px at 20 px Pixelify, + 3 % slack) in the entry, so
   from tablet up the card shows exactly the two lines the game does; phones keep 15-17 px and wrap */
@media (min-width: 761px) {
  .entry-text { container-type: inline-size; }
  .motd { font-size: min(20px, 100cqi / 22.5); }
}
@media (min-width: 1101px) and (max-width: 1279px) {
  .entry { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; }
  .entry-icon { width: 52px; height: 52px; }
}
.motd .nobr { display: inline !important; }
.motd-err { display: none; }
.m-err { color: #C8C8C8; }
.entry[data-state="not responding"] .motd-ok, .entry[data-state="offline"] .motd-ok { display: none; }
.entry[data-state="not responding"] .motd-err, .entry[data-state="offline"] .motd-err { display: block; }
.entry[data-state="not responding"] .m-err, .entry[data-state="offline"] .m-err { color: #FF7070; }
.entry-meta { position: absolute; top: 8px; right: 8px; display: flex; justify-content: flex-end; }
.entry-name { padding-right: 140px; }
.who-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 6px 4px 10px; margin: -6px -2px 0 0; background: transparent; border: 0; cursor: help; color: #AAAAAA; }
.who-btn:hover { background: rgb(255 255 255 / .08); }
.count { font: 600 20px/1 var(--f-pixel); font-variant-numeric: tabular-nums; color: #AAAAAA; }
.count-sep { color: #8A8A8A; margin: 0 1px; }
.ping { position: relative; display: inline-flex; align-items: flex-end; gap: 2px; height: 20px; }
.ping i { display: block; width: 4px; background: #55FF55; box-shadow: 2px 2px 0 #153f15; }
.ping i:nth-child(1) { height: 4px; } .ping i:nth-child(2) { height: 8px; } .ping i:nth-child(3) { height: 12px; } .ping i:nth-child(4) { height: 16px; } .ping i:nth-child(5) { height: 20px; }
.ping-x { display: none; position: absolute; inset: 0; margin: auto; width: 18px !important; height: 18px !important; color: #FF5555; filter: drop-shadow(2px 2px 0 #3f1515); }
.entry[data-state="unknown"] .ping i, .entry[data-state="restarting"] .ping i { background: #6D6D6D; box-shadow: 2px 2px 0 #1b1b1b; animation: pinging 1.2s steps(1) infinite; }
.entry[data-state="restarting"] .ping i { background: #E3A23A; }
.ping i:nth-child(2) { animation-delay: .15s !important; } .ping i:nth-child(3) { animation-delay: .3s !important; } .ping i:nth-child(4) { animation-delay: .45s !important; } .ping i:nth-child(5) { animation-delay: .6s !important; }
@keyframes pinging { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .25; } }
.entry[data-state="not responding"] .ping i, .entry[data-state="offline"] .ping i { background: #3A3A3A; box-shadow: none; }
.entry[data-state="not responding"] .ping-x, .entry[data-state="offline"] .ping-x { display: block; }
.who-tip { position: absolute; z-index: 30; right: 0; top: calc(100% + 6px); width: max-content; min-width: 180px; max-width: 280px; display: none; }
.entry-meta:hover .who-tip, .who-btn:focus-visible + .who-tip, .entry-meta.open .who-tip { display: block; }
.entry-meta.dismissed .who-tip { display: none; } /* r6 UX-52: Escape wins over :hover / :focus-visible */
.who-list { list-style: none; padding: 0; margin: 0; }
.who-list li { color: #FFFFFF; }
.who-list li.lore { color: var(--lore); padding: 0; }
.who-list li.lore::before { display: none; }
.entry-foot { margin-top: 8px; font: 500 13px/1.4 var(--f-mono); color: #B9BEC8; }
.entry-foot b { color: #55FF55; font-weight: 700; }
.addr { display: grid; gap: 6px; margin-top: 16px; }
.addr-label { font: 700 13px/1 var(--f-mono); color: #A0A0A0; letter-spacing: .04em; }
.addr-field { display: block; padding: 11px 12px; font: 500 17px/1.3 var(--f-mono); color: #FFFFFF; background: #000; box-shadow: inset 0 0 0 2px #A0A0A0; user-select: all; overflow-wrap: anywhere; }
.mp-actions { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; margin-top: 12px; }
.mp-actions .btn { width: 100%; }
/* Discord-first stepper under the join buttons (finding 6): the same three steps as #join */
.mp-steps { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 12px; min-height: 44px; margin-top: 8px; padding: 4px 6px; font: 600 14px/1.3 var(--f-body); color: #E3E6EC; text-decoration: none; }
.mp-steps .ms { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.mp-steps .ms:not(:last-child)::after { content: ""; width: 4px; height: 4px; margin-left: 5px; background: #8A8F99; }
.mp-steps b { display: inline-grid; place-items: center; width: 20px; height: 20px; font: 700 13px/1 var(--f-mono); color: #fff; background: #2A2D35; box-shadow: inset 0 -2px 0 #111, 0 0 0 2px #000; }
.mp-steps .ms:last-child b { background: #1F5C12; }
.mp-steps:hover { color: #fff; text-decoration: none; }
.mp-steps:hover .ms { text-decoration: underline; text-underline-offset: 3px; }
/* the keyboard tip sits under the server card, and only where there is a hover-capable pointer (finding 13) */
.hero .tip { margin: 16px 0 0; }
@media (hover: none), (max-width: 760px) { .hero .tip { display: none; } }

/* hero entrance: CSS only, content is visible without it */
@media (prefers-reduced-motion: no-preference) {
  .hero-in > * { animation: rise 420ms var(--ease) both; }
  .hero-in > :nth-child(2) { animation-delay: 60ms; }
  .hero-in > :nth-child(3) { animation-delay: 120ms; }
  .hero-in > :nth-child(4) { animation-delay: 200ms; }
}
@keyframes rise { from { opacity: .01; transform: translateY(12px); } }

/* ---------- sections ---------- */
.sec { padding-block: var(--sec-y); scroll-margin-top: 0; }
#features, #map, #join { background: var(--bg-2) var(--tex-2) repeat; background-size: 64px 64px; box-shadow: inset 0 2px 0 var(--rule), inset 0 -2px 0 var(--rule); }
.sec-head { max-width: 780px; margin-bottom: clamp(30px, 4vw, 48px); }
.eyebrow { display: flex; align-items: center; gap: 12px; font: 700 13px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 16px; }
.key { display: grid; place-items: center; width: 30px; height: 30px; font: 700 14px/1 var(--f-mono); letter-spacing: 0; color: var(--ink); background: var(--slot); box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi), 0 0 0 2px var(--outline); }
[data-theme="day"] .key { color: #FFFFFF; text-shadow: 2px 2px 0 #3F3F3F; }
.sec h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.04; color: var(--ink); text-shadow: .05em .05em 0 var(--shadow-text); text-wrap: balance; }
[data-theme="night"] .sec h2 { text-shadow: 3px 3px 0 #000; }
.sec-lede { margin-top: 14px; max-width: 64ch; font-size: 19px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.updated { font: 500 14px var(--f-mono); color: var(--ink-3); white-space: nowrap; }
.h3 { font: 700 20px/1.25 var(--f-body); color: var(--ink); }

/* ---------- status HUD ---------- */
.hud { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.hud > .panel { padding: 24px 24px 22px; display: flex; flex-direction: column; min-width: 0; }
.hud-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 14px; }
.hud-h h3 { font: 700 14px/1.3 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; font: 700 13px/1 var(--f-mono); color: var(--ink); background: var(--slot); box-shadow: inset 0 0 0 1px var(--slot-ring); border-radius: 3px; white-space: nowrap; }
.big-count { font: 700 clamp(56px, 6vw, 80px)/1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; text-shadow: none; }
.big-count .of { font-size: .45em; color: var(--ink-3); text-shadow: none; }
.heads { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.heads li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 6px 10px 6px 6px; background: var(--ghost-h); box-shadow: inset 0 0 0 1px var(--rule); border-radius: 2px; }
.head { width: 52px; height: 52px; }
.head img { width: 40px; height: 40px; image-rendering: pixelated; }
.pname { font-weight: 700; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.empty-note { margin-top: 16px; padding: 14px 16px; color: var(--ink-2); background: var(--ghost-h); box-shadow: inset 0 0 0 1px var(--rule); border-radius: 2px; }
.hud-foot { margin-top: auto; padding-top: 16px; font-size: 15px; line-height: 1.45; color: var(--ink-3); }
.hud-foot b { color: var(--ink); }
.board { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: b; }
.board li { display: grid; grid-template-columns: 26px 44px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; counter-increment: b; }
.board li::before { content: counter(b); grid-row: span 2; font: 600 22px/1 var(--f-display); color: var(--gold-ink); text-align: center; }
.board .head { grid-row: span 2; width: 44px; height: 44px; }
.board .head img { width: 32px; height: 32px; }
.board .pname { font-size: 16px; }
.board .hrs { font: 700 14px/1 var(--f-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bar { grid-column: 3 / -1; height: 8px; margin-top: 6px; background: #0b0d0a; box-shadow: inset 0 0 0 2px #000; position: relative; overflow: hidden; }
.bar i { position: absolute; inset: 2px auto 2px 2px; width: calc((100% - 4px) * var(--w, 0)); background: linear-gradient(180deg, #B8FF6A 0 34%, var(--xp) 34% 70%, #4C9E10 70%); }
.hearts { display: flex; flex-wrap: wrap; gap: 3px; min-height: 18px; margin-bottom: 14px; }
.hearts svg { width: 18px; height: 18px; image-rendering: pixelated; shape-rendering: crispEdges; }
.stat { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.stat-n { font: 600 clamp(44px, 4.4vw, 60px)/1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
[data-theme="night"] .stat-n { text-shadow: 3px 3px 0 #000; }
.stat-u { font: 700 14px/1.2 var(--f-mono); color: var(--ink-2); }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.mini div { padding: 10px 12px; background: var(--ghost-h); box-shadow: inset 0 0 0 1px var(--rule); border-radius: 2px; }
.mini dt { font: 700 13px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.mini dd { font: 600 22px/1.2 var(--f-num); color: var(--ink); margin-top: 4px; font-variant-numeric: tabular-nums; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.countdown span { display: grid; place-items: center; padding: 12px 4px 10px; background: var(--slot); box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi); }
.countdown b { font: 600 clamp(28px, 2.6vw, 38px)/1 var(--f-display); color: #FFFFFF; font-variant-numeric: tabular-nums; text-shadow: 2px 2px 0 #000; }
.countdown i { font: 700 13px/1 var(--f-mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: #D0D4DC; margin-top: 6px; }
[data-theme="day"] .countdown i { color: #FFFFFF; text-shadow: 1px 1px 0 #3F3F3F; }
.hud[data-state="unknown"] .hud-players .big-count { color: var(--ink-3); }
/* nobody online: proof of life replaces the big 0 / max (finding 5) */
.hud-players.is-quiet .big-count, .hud-players.is-quiet .heads { display: none; }
.quiet { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; justify-items: start; }
.quiet[hidden] { display: none; }
.quiet-lead { font: 700 clamp(26px, 2.4vw, 34px)/1.1 var(--f-display); color: var(--ink); }
.quiet-last { display: flex; align-items: center; gap: 12px; font-size: 17px; line-height: 1.35; color: var(--ink-2); min-width: 0; }
.quiet-last b { color: var(--ink); overflow-wrap: anywhere; }
.quiet-last .head { flex: none; width: 44px; height: 44px; }
.quiet-last .head img { width: 32px; height: 32px; }
.quiet-n { margin-top: 0; width: 100%; }
.quiet-cta { margin-top: 2px; max-width: 100%; }

/* ---------- features inventory ---------- */
.inv { padding: 18px 20px 22px; }
.inv-label { font: 700 16px/1 var(--f-body); color: var(--label); margin: 4px 0 14px 2px; }
.inv-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.item { position: relative; min-width: 0; }
.item:hover, .item:focus-within, .item.open { z-index: 40; }
.item-btn {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 14px; row-gap: 4px; align-items: start;
  width: 100%; height: 100%; min-height: 116px; padding: 12px; text-align: left; cursor: pointer;
  background: var(--card); border: 0;
  box-shadow: inset 2px 2px 0 var(--card-hi), inset -2px -2px 0 var(--card-lo), 0 0 0 2px var(--outline);
  transition: background-color var(--dur-1) linear;
}
.item-btn .slot { grid-row: span 2; width: 64px; height: 64px; position: relative; }
.item-btn .slot::after { content: ""; position: absolute; inset: 2px; background: var(--slot-hover); opacity: 0; transition: opacity var(--dur-1) linear; }
.item-btn:hover .slot::after, .item.open .slot::after, .item-btn:focus-visible .slot::after { opacity: 1; }
.item-btn svg.px { width: 48px; height: 48px; position: relative; z-index: 1; }
.item-name { font: 700 16px/1.25 var(--f-body); color: var(--ink); padding-top: 2px; }
.item-line { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.item-btn:focus-visible { outline-offset: 2px; }
.item .mc-tip { display: none; position: absolute; z-index: 41; top: calc(100% - 14px); left: 40px; width: 300px; max-width: calc(100vw - 32px); pointer-events: auto; }
.item .tip-wide { width: 340px; }
.item.flip .mc-tip { left: auto; right: 40px; }
.item.up .mc-tip { top: auto; bottom: calc(100% - 14px); }
.item.measure .mc-tip { display: block !important; visibility: hidden; animation: none !important; }
.item:hover .mc-tip, .item-btn:focus-visible + .mc-tip, .item.open .mc-tip { display: block; }
.item.dismissed .mc-tip { display: none !important; }
.tip-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: 6px 0 10px; box-shadow: 0 0 0 2px #000; }
@media (prefers-reduced-motion: no-preference) {
  .item:hover .mc-tip, .item-btn:focus-visible + .mc-tip, .item.open .mc-tip { animation: tipin var(--dur-2) var(--ease); }
}
@keyframes tipin { from { opacity: 0; transform: translateY(4px); } }

/* commands as chat */
.cmds { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.cmds-copy p { margin-top: 8px; color: var(--ink-2); }
.chat-sum { display: none; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 16px; cursor: pointer; list-style: none;
  font: 700 16px/1.2 var(--f-body); color: var(--ink); background: var(--panel); box-shadow: inset 2px 2px 0 var(--panel-hi), inset -2px -2px 0 var(--panel-lo), 0 0 0 2px var(--outline); }
.chat-sum::-webkit-details-marker { display: none; }
.chat-sum::after { content: "+"; font: 700 22px/1 var(--f-mono); color: var(--ink-2); }
.chat-d[open] > .chat-sum::after { content: "\2212"; }
.chat-d[open] > .chat-sum { margin-bottom: 8px; }
.chat-sum:hover { background: var(--card); }
.chat { position: relative; padding: 10px 8px 8px; background: rgb(0 0 0 / .66); box-shadow: 0 0 0 2px rgb(0 0 0 / .4); }
[data-theme="day"] .chat { background: rgb(28 28 32 / .86); }
.chat-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; }
.chat-lines button { display: flex; align-items: baseline; gap: 12px; width: 100%; min-height: 44px; padding: 8px 10px; text-align: left; background: transparent; border: 0; cursor: copy; color: #DADADA; font: 400 15px/1.35 var(--f-body); transition: background-color var(--dur-1) linear; }
.chat-lines code { font: 700 15px/1.35 var(--f-mono); color: #FFFFFF; white-space: nowrap; }
.chat-lines span { color: #C9C9C9; min-width: 0; }
.chat-lines button:hover { background: rgb(255 255 255 / .1); }
.chat-lines button:hover code { color: #FFFF55; }
.chat-lines button.is-copied code { color: #55FF55; }
.chat-out { min-height: 32px; margin-top: 6px; padding: 6px 10px; font: 700 14px/1.4 var(--f-mono); color: #55FF55; border-top: 2px solid rgb(255 255 255 / .08); }
.chat-out:empty::before { content: "Click a command to copy it"; color: #A9A9A9; font-weight: 500; }

/* ---------- ranks XP bar ---------- */
.xp { padding: clamp(22px, 3vw, 36px) clamp(12px, 2.6vw, 36px) clamp(24px, 3vw, 40px); }
.xp-gauge { padding-inline: calc(100% / 14); }
.xp-level { text-align: center; font: 700 40px/1 var(--f-pixel); color: var(--xp); text-shadow: 3px 0 #000, -3px 0 #000, 0 3px #000, 0 -3px #000, 3px 3px #000, -3px -3px #000, 3px -3px #000, -3px 3px #000; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.xp-bar { position: relative; height: 22px; background: #0F140C; box-shadow: 0 0 0 2px #000, inset 0 2px 0 rgb(255 255 255 / .06); }
.xp-bar::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 24 - 2px), rgb(0 0 0 / .55) calc(100% / 24 - 2px) calc(100% / 24)); pointer-events: none; }
.xp-fill { position: absolute; inset: 3px; transform-origin: 0 50%; transform: scaleX(var(--fill, 1)); background: linear-gradient(180deg, #C8FF8A 0 22%, var(--xp) 22% 68%, #4FA80F 68%); box-shadow: 0 0 18px rgb(128 255 32 / .35); }
.js .xp-fill { transition: transform var(--dur-2) var(--ease); }
.js .xp:not(.xp-seen) .xp-fill { transform: scaleX(0); }
.js .xp.xp-anim .xp-fill { transition: transform 900ms cubic-bezier(.3, .7, .2, 1); }
.xp-ticks { position: absolute; inset: -8px 0; pointer-events: none; }
.xp-ticks i { position: absolute; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: #000; }
.xp-ticks i:nth-child(1) { left: 0; margin-left: 0; } .xp-ticks i:nth-child(2) { left: 16.667%; } .xp-ticks i:nth-child(3) { left: 33.333%; } .xp-ticks i:nth-child(4) { left: 50%; } .xp-ticks i:nth-child(5) { left: 66.667%; } .xp-ticks i:nth-child(6) { left: 83.333%; } .xp-ticks i:nth-child(7) { left: 100%; margin-left: -4px; }
.xp-scale { display: flex; justify-content: space-between; margin-top: 12px; font: 700 13px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.tiers { display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); gap: 0; margin-top: 14px; }
.tier { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 10px 2px 12px; background: transparent; border: 0; cursor: pointer; color: var(--ink); text-align: center; transition: background-color var(--dur-1) linear; }
.tier:hover { background: var(--ghost-h); }
.tier-glyph { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; background: #14161B; box-shadow: inset 2px 2px 0 #08090C, inset -2px -2px 0 #3A404D, 0 0 0 2px #000; position: relative; }
.tier-glyph svg { width: 32px; height: 32px; filter: drop-shadow(0 0 7px color-mix(in srgb, var(--c) 75%, transparent)); }
.tier-glyph { color: var(--cf); text-shadow: 0 0 14px color-mix(in srgb, var(--c) 70%, transparent); }
.tier-lv { font: 700 13px/1 var(--f-mono); color: var(--xp-ink); letter-spacing: .04em; }
.tier-name { font: 700 16px/1.2 var(--f-body); color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tier-h { font: 500 13px/1 var(--f-mono); color: var(--ink-2); }
.tier[aria-selected="true"] .tier-glyph { box-shadow: inset 2px 2px 0 #08090C, inset -2px -2px 0 #3A404D, 0 0 0 4px #F4F4F4, 0 0 0 6px #000; }
.tier[aria-selected="true"] .tier-name { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--c); }
@media (prefers-reduced-motion: no-preference) {
  .tier[aria-selected="true"] .tier-glyph { animation: pop 140ms var(--ease); }
}
@keyframes pop { 0% { transform: scale(.86); } 60% { transform: scale(1.07); } 100% { transform: scale(1); } }
.lores { position: relative; margin-top: 22px; display: grid; gap: 16px; }
.js .lores::before {
  content: ""; position: absolute; z-index: 1; top: -16px; width: 32px; height: 18px;
  left: calc((var(--sel, 6) + .5) / var(--n, 7) * 100% - 16px);
  background: var(--tip-b1);
  clip-path: polygon(37.5% 0, 62.5% 0, 62.5% 25%, 75% 25%, 75% 50%, 87.5% 50%, 87.5% 75%, 100% 75%, 100% 100%, 0 100%, 0 75%, 12.5% 75%, 12.5% 50%, 25% 50%, 25% 25%, 37.5% 25%);
  transition: left var(--dur-2) var(--ease);
}
.lore-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); gap: 16px 32px; font-size: 16px; padding: 18px 22px 20px; }
/* finding 15: the card always spans the XP panel; only the caret above it follows the picked tier */
.lore-card { width: 100%; }
.lore-card .lore:not(.lore-cols):has(> li:nth-child(5)) { columns: 2 240px; column-gap: 32px; } /* short lists stay one column */
.lore-card .lore:not(.lore-cols) li { break-inside: avoid; }
.js .lore-card:not(.is-on) { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .lore-card.is-on { animation: tipin var(--dur-2) var(--ease); }
}
.rank-title { font: 600 30px/1.1 var(--f-pixel); background: linear-gradient(90deg, var(--cf), var(--c)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; padding-bottom: 2px; width: fit-content; }
.rg { display: inline-block; width: .85em; height: .85em; vertical-align: -.06em; margin-right: .28em; color: var(--cf); filter: drop-shadow(2px 2px 0 rgb(0 0 0 / .45)); }
.ls-next-r .rg { width: 1em; height: 1em; vertical-align: -.15em; margin-right: .2em; color: inherit; }
.lore-sub { font: 700 13px/1.4 var(--f-mono); color: var(--xp); margin-bottom: 14px; }
.lore-h { font: 700 13px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--lore-dim); margin-bottom: 6px; }
.lore-cols { columns: 3 150px; column-gap: 20px; }
.lore-cols li { break-inside: avoid; }
.lore-card .lore li::before { background: var(--c); opacity: 1; }
.lore-side { padding-left: 24px; border-left: 2px solid rgb(80 0 255 / .45); display: flex; flex-direction: column; }
.ls-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.ls-stat { display: grid; padding: 10px 12px 9px; background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 2px rgb(80 0 255 / .35); }
.ls-n { font: 700 30px/1 var(--f-mono); color: #FFFFFF; font-variant-numeric: tabular-nums; }
.ls-l { margin-top: 4px; font: 500 13px/1.2 var(--f-mono); color: var(--lore); }
.ls-bonus { color: var(--gold); font-weight: 700; font-size: 17px; line-height: 1.4; }
.ls-bonus.ls-muted { color: var(--lore); font-weight: 400; font-size: 15px; }
.ls-next { margin-top: auto; padding-top: 14px; font: 500 14px/1.4 var(--f-mono); color: var(--lore); }
.ls-next-r { font-weight: 700; }
.ls-next-r { font-family: var(--f-mono); }
.xp-note { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.xp-note code { color: var(--ink); }

/* ---------- supporter ranks (VIP / MVP, store coming soon) ---------- */
.sup { margin-top: clamp(48px, 6vw, 72px); scroll-margin-top: 96px; }
.sup-head { margin-bottom: 20px; }
.sup-title { font: 600 clamp(26px, 3vw, 32px)/1.15 var(--f-display); color: var(--ink); }
.sup-lede { margin-top: 10px; max-width: 64ch; font-size: 17px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.sup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
/* the vanilla tooltip border takes the rank's colour, like an enchanted item */
.sup-card { --tip-b1: var(--c); --tip-b2: color-mix(in oklab, var(--c) 40%, #000); display: flex; flex-direction: column; padding: 20px 22px 22px; font-size: 16px; }
.sup-kind { margin-bottom: 6px; color: var(--cf); }
.sup-card .rank-title { margin-bottom: 14px; }
.sup-card .ls-stat { box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--c) 45%, transparent); }
.sup-card .lore { margin-bottom: 22px; }
.sup-card .lore li { margin-bottom: 4px; }
.sup-card .lore li::before { background: var(--c); opacity: 1; }
.sup-card .lore code { color: #FFFFFF; }
.btn-soon { --bb: #2A2D35; --bbh: #2A2D35; --bi: #D5D9E0; --be: #16181D; --bhi: rgb(255 255 255 / .1); margin-top: auto; width: 100%; cursor: not-allowed; }
.btn-soon:hover, .btn-soon:active { transform: none; box-shadow: inset 0 -4px 0 var(--be), inset 2px 2px 0 var(--bhi); }
.btn-soon svg.ui { color: var(--cf); }
.sup-loyal { margin-top: 20px; padding: 22px clamp(16px, 2.6vw, 30px) 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px 36px; align-items: center; }
.sup-loyal-h { color: var(--ink-2); }
.sup-loyal-p { font-size: 17px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.sup-loyal-p strong { color: var(--xp-ink); }
[data-theme="day"] .sup-loyal-p strong { color: #0B5C56; }
.sup-pips-row { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; align-items: end; height: 48px; }
.sup-pips-row i { height: calc(10px + var(--i) * 1.5px); background: color-mix(in oklab, #22D3EE, #C026D3 calc(var(--i) * 4%)); box-shadow: inset 0 2px 0 rgb(255 255 255 / .35), inset 0 -2px 0 rgb(0 0 0 / .3), 0 0 0 1px rgb(0 0 0 / .55); }
.sup-pips-scale { display: flex; justify-content: space-between; margin-top: 8px; font: 500 13px/1 var(--f-mono); color: var(--ink-2); }
.sup-soon-note { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.sup-soon-note.is-flash { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .sup-soon-note.is-flash { animation: pop 220ms var(--ease); }
}
@media (max-width: 860px) {
  .sup-grid, .sup-loyal { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- map ---------- */
.map-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: stretch; }
.map-frame { padding: 12px; display: flex; flex-direction: column; }
.map-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0A0C10; box-shadow: 0 0 0 2px #000; }
.map-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.map-cta { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; padding: 16px 18px 14px; width: max-content; max-width: calc(100% - 24px); background: rgb(10 10 14 / .86); box-shadow: 0 0 0 2px #000, inset 0 0 0 2px rgb(255 255 255 / .08); text-align: center; }
.map-cta p { font: 500 13px/1.35 var(--f-mono); color: #C9CDD6; }
.map-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #0A0C10; }
.map-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 4px 2px; }
.map-cap { font: 700 14px/1.3 var(--f-mono); color: var(--label); }
.waypoints { padding: 24px 22px; }
.wp-intro { margin: 8px 0 14px; font-size: 15px; color: var(--ink-2); }
.wp-intro code { color: var(--ink); }
.f3 { display: grid; gap: 4px; }
.f3 li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 8px; background: rgb(80 80 80 / .82); color: #E0E0E0; font: 500 14px/1.3 var(--f-mono); }
.wp-name { font-weight: 700; color: #FFFFFF; min-width: 0; }
.xyz { display: inline-grid; grid-template-columns: repeat(3, 4.2ch); gap: 6px; text-align: right; font-variant-numeric: tabular-nums; }
.xyz b { font-weight: 500; }
.wp-legend { display: flex; justify-content: flex-end; gap: 6px; padding: 4px 8px 0; font: 700 13px/1 var(--f-mono); color: var(--ink-3); }
.wp-legend span { width: 4.2ch; text-align: right; }
.wp-h { margin-top: 18px; font: 700 15px/1.3 var(--f-body); color: var(--label); }
.wp-more { margin-top: 8px; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.wp-more code { color: var(--ink); font-weight: 700; }

/* ---------- gallery: painting frames ---------- */
.frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 19vw, 262px); gap: 20px; }
.frame { min-width: 0; }
.f-wide { grid-column: span 2; }
.frame-btn {
  position: relative; display: block; height: 100%; padding: 10px;
  background: #8A5A2E;
  box-shadow: 0 0 0 2px #24140A, inset 3px 3px 0 #B98249, inset -3px -3px 0 #4E2F14, 0 10px 24px rgb(0 0 0 / .18);
  transition: transform var(--dur-2) var(--ease);
}
.frame-btn::before { content: ""; position: absolute; inset: 6px; box-shadow: inset 0 0 0 2px #5E3A1A; pointer-events: none; }
.frame-btn img { width: 100%; height: 100%; object-fit: cover; box-shadow: 0 0 0 2px #24140A; transition: transform var(--dur-3) var(--ease); }
.frame-btn { overflow: hidden; }
.frame-btn:hover { transform: translateY(-3px); }
.frame-btn:hover img { transform: scale(1.025); }
.plate { position: absolute; left: 18px; bottom: 18px; max-width: calc(100% - 36px); padding: 6px 10px; font: 700 14px/1.3 var(--f-body); color: #fff; background: var(--tip-bg); box-shadow: 0 0 0 2px var(--tip-b2); }
.f-wide .frame-btn img { object-position: 50% 60%; }
.gal-hint { display: none; align-items: center; gap: 8px; margin-top: 10px; font: 500 14px/1.4 var(--f-mono); color: var(--ink-3); }
.gal-hint svg { width: 16px; height: 16px; }

/* lightbox */
.lightbox { width: min(1400px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 10px 10px 0; color: #fff; border: 2px solid transparent; background: linear-gradient(#100010, #100010) padding-box, linear-gradient(180deg, var(--tip-b1), var(--tip-b2)) border-box; overflow: hidden; }
.lightbox::backdrop { background: rgb(5 5 9 / .88); }
.lb-fig { position: relative; }
.lb-img { width: 100%; height: auto; max-height: calc(100dvh - 120px); object-fit: contain; background: #000; }
.lb-cap { display: flex; justify-content: space-between; gap: 16px; padding: 12px 6px 14px; font: 700 16px/1.3 var(--f-body); }
.lb-count { font: 500 14px/1.3 var(--f-mono); color: var(--lore); white-space: nowrap; }
.lightbox .btn-icon { position: absolute; color: #fff; background: rgb(16 0 16 / .82); box-shadow: 0 0 0 2px var(--tip-b2); min-height: 48px; }
.lightbox .btn-icon:hover { background: rgb(40 0 127 / .9); }
.lb-prev { left: 20px; top: calc(50% - 40px); }
.lb-next { right: 20px; top: calc(50% - 40px); }
.lb-close { right: 20px; top: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: lbin 160ms var(--ease); }
}
@keyframes lbin { from { opacity: 0; transform: scale(.985); } }

/* ---------- join: crafting ---------- */
.craft { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; counter-reset: s; }
.step { padding: 26px 24px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.step-n { width: 56px; height: 56px; font: 600 30px/1 var(--f-display); color: #FFFFFF; text-shadow: 2px 2px 0 #3F3F3F; }
.slot-result { background: #2F7A1F; box-shadow: inset 2px 2px 0 #17430D, inset -2px -2px 0 #7BD45E, 0 0 0 2px #000; }
.step p { color: var(--ink-2); }
.step p strong { color: var(--ink); }
.step code { font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.chan { font-family: var(--f-mono); font-size: .9em; font-weight: 700; color: var(--ink); }
.step .btn { margin-top: auto; }
.step-done { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font: 700 15px/1.2 var(--f-mono); color: var(--xp-ink); }
.craft-arrow { position: absolute; right: -48px; top: 50%; width: 40px; height: 29px; margin-top: -14px; color: var(--ink-3); }
.step-result .craft-arrow { display: none; }
.join-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.jx { padding: 22px 24px; }
.jx p, .jx li { color: var(--ink-2); margin-top: 6px; }
.jx code { color: var(--ink); font-weight: 700; }
.jx h3 { display: flex; align-items: center; gap: 10px; }
.jx-safe h3 svg { color: var(--gold-ink); width: 24px; height: 24px; }
.jx-safe ul { display: grid; gap: 2px; margin-top: 6px; }
.jx-safe li { padding-left: 16px; position: relative; margin-top: 0; }
.jx-safe li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; background: var(--gold-ink); }
/* home #join third panel: the /download/ client, one full-width row under the two (one column on phones anyway) */
.jx-client { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.jx-client > div { flex: 1 1 420px; min-width: 0; }
.jx-client p { max-width: 74ch; }
.jx-client .btn { flex: none; }
.jx-client h3 { display: block; } /* .jx h3 is flex (icon rows); here it split the title into gapped, unwrappable items and widened the 320px layout */

/* ---------- rules: written book ---------- */
.book { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 14px; /* finding 17: spans the container like every other section */ background: #6B4423; box-shadow: 0 0 0 2px #24140A, inset 4px 4px 0 #8E5C30, inset -4px -4px 0 #3D2410, 0 18px 40px rgb(0 0 0 / .22); }
.page { position: relative; padding: 44px clamp(22px, 3.4vw, 44px) 40px; color: #2A1D0E; background: #F3E9D2; box-shadow: inset 0 0 0 2px #D9C9A3; }
.page:first-child { box-shadow: inset 0 0 0 2px #D9C9A3, inset -18px 0 24px -18px rgb(90 60 20 / .35); }
.page:last-child { box-shadow: inset 0 0 0 2px #D9C9A3, inset 18px 0 24px -18px rgb(90 60 20 / .35); }
[data-theme="night"] .page { background: #ECE0C4; }
.page-no { position: absolute; top: 16px; right: 22px; font: 700 13px/1 var(--f-mono); color: #6B5A44; }
.rules { counter-reset: r; display: grid; gap: 12px; }
.rules li { counter-increment: r; position: relative; padding-left: 40px; font-size: 18px; line-height: 1.45; }
.rules li::before { content: counter(r); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; display: grid; place-items: center; font: 600 17px/1 var(--f-display); color: #F3E9D2; background: #6B4423; }
.rules strong { color: #1B1208; }
.book-h { font: 600 30px/1.1 var(--f-display); color: #2A1D0E; margin-bottom: 20px; }
.ladder { display: grid; gap: 10px; counter-reset: l; margin-bottom: 20px; }
.ladder li { display: flex; align-items: center; gap: 14px; padding: 10px 14px; font: 700 18px/1.2 var(--f-body); background: rgb(107 68 35 / .1); box-shadow: inset 0 0 0 2px rgb(107 68 35 / .3); }
.ladder li:nth-child(2) { margin-left: 16px; } .ladder li:nth-child(3) { margin-left: 32px; } .ladder li:nth-child(4) { margin-left: 48px; background: rgb(142 21 21 / .1); box-shadow: inset 0 0 0 2px rgb(142 21 21 / .35); }
.lad-n { display: grid; place-items: center; width: 28px; height: 28px; font: 600 16px/1 var(--f-display); color: #F3E9D2; background: #6B4423; }
.ladder li:nth-child(4) .lad-n { background: #8E1515; }
.page > p:not(.page-no) { font-size: 17px; line-height: 1.55; text-wrap: pretty; }

/* ---------- discord CTA ---------- */
/* the rules section above already ends with a full --sec-y; a second one here left a dead band (polish 2026-11-07) */
.sec-cta { padding-top: 0; }
.cta { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(26px, 4.4vw, 60px); overflow: hidden; }
.cta::after { content: ""; position: absolute; z-index: -1; right: -10%; top: -30%; width: 70%; height: 160%; background: radial-gradient(closest-side, rgb(88 101 242 / .28), transparent); pointer-events: none; }
.cta p:not(.eyebrow) { margin-top: 14px; max-width: 58ch; color: var(--ink-2); font-size: 18px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
/* phones: the two CTA buttons stack at full width instead of two ragged widths (polish 2026-11-07) */
@media (max-width: 560px) { .cta-actions .btn { flex: 1 1 100%; justify-content: center; } }
.cta-art { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta-logo { width: min(280px, 72%); height: auto; filter: drop-shadow(0 18px 30px rgb(0 0 0 / .3)); }
.toast { position: relative; z-index: 2; align-self: flex-end; display: grid; grid-template-columns: 48px auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px 18px 10px 10px; background: #212126; box-shadow: 0 0 0 2px #000, inset 2px 2px 0 #55555F, inset -2px -2px 0 #0d0d10, 0 14px 30px rgb(0 0 0 / .3); }
.toast-slot { grid-row: span 2; width: 48px; height: 48px; background: #14161B; box-shadow: inset 2px 2px 0 #08090C, inset -2px -2px 0 #3A404D; }
.toast-t { font: 700 15px/1.2 var(--f-body); color: #FFFF55; }
.toast-d { font: 400 15px/1.3 var(--f-body); color: #FFFFFF; }
@media (prefers-reduced-motion: no-preference) {
  .js .toast { animation: toast 4.2s var(--ease) infinite; }
}
@keyframes toast { 0% { transform: translateX(-24px); opacity: 0; } 8%, 72% { transform: none; opacity: 1; } 84%, 100% { transform: translateX(-24px); opacity: 0; } }

/* ---------- footer ---------- */
.foot { background: var(--bg-2) var(--tex-2) repeat; background-size: 64px 64px; box-shadow: inset 0 2px 0 var(--rule); padding: 48px 0 calc(var(--dock-h) + 28px); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: start; }
.foot-brand { display: flex; align-items: center; gap: 14px; padding-top: 6px; }
.foot-brand img { width: 48px; height: 48px; image-rendering: pixelated; box-shadow: 0 0 0 2px #000; }
.foot-name { font: 600 24px/1.1 var(--f-display); color: var(--ink); }
.foot-addr { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.foot-addr code { color: var(--ink); }
.foot-brand > div { min-width: 0; } /* lets the address wrap instead of pushing the page 1px wide at 320px */
/* footer nav: three labelled columns instead of one ragged row of nine links (polish 2026-11-07) */
.foot-nav { display: grid; grid-template-columns: repeat(3, max-content); gap: 0 clamp(32px, 5vw, 72px); }
.foot-h { margin-bottom: 6px; font: 700 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.foot-col ul { display: grid; }
.foot-col a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; }
.foot-col a:hover { text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.foot-legal { grid-column: 1 / -1; padding-top: 14px; border-top: 2px solid var(--rule); font-size: 14px; line-height: 1.5; color: var(--ink-3); }
/* "Made by Eplisium": smaller and muted with AA contrast (C2); the hit area is a full 44px (house gate) without
   growing the line: negative block margin cancels the padding */
.foot-legal a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; padding: 0 4px; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.foot-legal a:hover { color: var(--ink); text-decoration-color: currentColor; }


/* ---------- the HOTBAR (sticky HUD navigation) ---------- */
.dock { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 50; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.dock > * { pointer-events: auto; }
/* finding 4: the hotbar steps out of the way while reading down the page (transform only) and comes back on scroll up */
.dock { transition: translate 200ms cubic-bezier(.23, 1, .32, 1); }
.dock.is-away:not(:focus-within) { translate: 0 calc(100% + 40px); }
@media (prefers-reduced-motion: reduce) {
  .dock { transition: opacity 160ms linear; }
  /* r6 UX-27: fade only — no visibility:hidden, so a keyboard user tabbing past the footer still reaches the hotbar and
     Menu (focus brings it back: app.js focusin + :focus-within below) */
  .dock.is-away:not(:focus-within) { translate: none; opacity: 0; }
  .dock.is-away:not(:focus-within) > * { pointer-events: none; }
  .dock.is-away:focus-within { opacity: 1; }
  /* the global reduced-motion rule gives every element a .01ms "all" transition, so dock children re-inherited visibility one
     frame late and briefly had no accessible name; nothing inside the dock needs a transition here */
  .dock *, .dock *::before, .dock *::after { transition-property: none !important; }
}
.held { margin-bottom: 18px; padding: 4px 12px 5px; font: 600 18px/1.2 var(--f-pixel); color: #FFFFFF; text-shadow: 2px 2px 0 #3F3F3F; border: 2px solid transparent; background: linear-gradient(var(--tip-bg), var(--tip-bg)) padding-box, linear-gradient(180deg, var(--tip-b1), var(--tip-b2)) border-box; opacity: 0; transition: opacity var(--dur-3) linear; pointer-events: none !important; white-space: nowrap; }
.held.show { opacity: 1; transition-duration: 80ms; }
.held:empty { visibility: hidden; }
.dock-row { position: relative; display: flex; align-items: flex-end; gap: 8px; }
.xpstrip { position: absolute; left: 4px; right: 4px; top: -11px; height: 7px; background: #0F140C; box-shadow: 0 0 0 2px #000; pointer-events: none; }
.xpstrip i { position: absolute; inset: 1px; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(180deg, #C8FF8A 0 30%, var(--xp) 30% 70%, #4FA80F 70%); }
.hotbar ol { display: flex; margin: 0; padding: 2px; background: rgb(14 14 18 / .8); box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #77777D; -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); }
.hotbar li { position: relative; }
.hotbar a {
  position: relative; display: grid; place-items: center; width: 58px; height: 58px; color: #fff; text-decoration: none;
  background: rgb(139 139 139 / .16);
  box-shadow: inset 2px 2px 0 rgb(0 0 0 / .5), inset -2px -2px 0 rgb(255 255 255 / .14), 0 0 0 1px rgb(0 0 0 / .45);
  transition: background-color var(--dur-1) linear;
}
.hotbar a:hover { background: rgb(255 255 255 / .2); }
.hotbar a svg.px { width: 32px; height: 32px; }
.hotbar .num { position: absolute; top: 3px; left: 5px; font: 700 13px/1 var(--f-mono); color: #D8D8D8; text-shadow: 1px 1px 0 #000; }
.hotbar a[aria-current="true"]::after { content: ""; position: absolute; inset: -5px; z-index: 2; pointer-events: none; box-shadow: 0 0 0 2px #000, inset 0 0 0 3px #F6F6F6, inset 0 0 0 5px #9A9A9A; }
.hotbar a[aria-current="true"] { background: rgb(255 255 255 / .1); z-index: 3; }
@media (prefers-reduced-motion: no-preference) {
  .hotbar a.pop::after, .hotbar a.pop svg { animation: pop 140ms var(--ease); }
}
.hotbar a:focus-visible { outline: 3px solid #FFD24A; outline-offset: 6px; z-index: 4; }
/* slot label: accessible name always; becomes a vanilla tooltip on hover/focus (desktop) */
.hotbar .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (hover: hover) and (min-width: 761px) {
  .navhome .hotbar a:hover .lbl, .navhome .hotbar a:focus-visible .lbl {
    clip: auto; width: auto; height: auto; overflow: visible; bottom: calc(100% + 22px); left: 50%; transform: translateX(-50%);
    padding: 5px 10px 6px; font: 700 14px/1.2 var(--f-body); color: #fff;
    border: 2px solid transparent; background: linear-gradient(var(--tip-bg), var(--tip-bg)) padding-box, linear-gradient(180deg, var(--tip-b1), var(--tip-b2)) border-box;
  }
}
.inv-btn { display: none; }

/* mobile menu = the inventory screen */
.menu { width: min(440px, calc(100vw - 24px)); max-width: none; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.menu::backdrop { background: rgb(6 7 10 / .76); }
.menu-in { padding: 18px 18px 20px; }
.menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.menu-title { font: 600 26px/1 var(--f-display); color: var(--label); }
.menu .hotbar ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu .hotbar a { width: 100%; height: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px 4px 10px; color: var(--ink); background: var(--card); box-shadow: inset 2px 2px 0 var(--card-hi), inset -2px -2px 0 var(--card-lo), 0 0 0 2px var(--outline); }
.menu .hotbar a svg.px { width: 32px; height: 32px; }
.menu .hotbar .num { color: var(--ink-3); text-shadow: none; }
.menu .hotbar .lbl { position: static; width: auto; height: auto; overflow: visible; clip: auto; font: 700 15px/1.2 var(--f-body); }
.menu .hotbar a[aria-current="true"]::after { inset: -3px; }
.menu-extra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.menu-extra .btn { width: 100%; min-width: 0; padding-inline: 8px; gap: 8px; font-size: 15px; }
/* guide + client download, panel + leaderboards, map + Discord pair up; copy and theme span the row */
.menu-extra .btn svg.px { width: 24px; height: 24px; flex: none; }
@media (max-width: 374px) { .menu-extra .btn { font-size: 14px; gap: 6px; padding-inline: 6px; } }
.menu-extra .btn-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-extra .btn-primary, .menu-extra .theme-toggle { grid-column: 1 / -1; }

/* ---------- responsive ---------- */
/* below 1100px the hotbar becomes a full-width HUD bar; the corner tag lives in its bottom strip */
@media (max-width: 1100px) {
  :root { --dock-h: 104px; }
  .dock { left: 0; right: 0; bottom: 0; transform: none; align-items: stretch; padding: 12px 8px calc(30px + env(safe-area-inset-bottom)); background: rgb(14 15 19 / .95); box-shadow: 0 -2px 0 #000, inset 0 2px 0 rgb(255 255 255 / .08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .held { position: absolute; left: 50%; bottom: calc(100% + 14px); transform: translateX(-50%); margin: 0; font-size: 17px; }
  .xpstrip { top: -12px; left: -8px; right: -8px; height: 5px; box-shadow: none; }
  .dock-row { gap: 6px; align-items: center; justify-content: center; }
  .navhome { flex: 1; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity; padding: 6px 4px; margin: -6px -4px; }
  .navhome::-webkit-scrollbar { display: none; }
  .navhome .hotbar ol { width: max-content; margin-inline: auto; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .navhome .hotbar li { scroll-snap-align: center; }
}

@media (max-width: 1100px) {
  .inv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .map-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .craft { grid-template-columns: minmax(0, 1fr); gap: 52px; }
  .craft-arrow { right: auto; left: 50%; top: auto; bottom: -42px; margin: 0 0 0 -20px; transform: rotate(90deg); }
  .cmds { grid-template-columns: minmax(0, 1fr); }
  .cta { grid-template-columns: minmax(0, 1fr); }
  .cta-art { align-items: flex-start; }
  .cta-logo { display: none; }
  .toast { align-self: flex-start; }
  .frames { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-wide { grid-column: span 2; }
  .book { grid-template-columns: minmax(0, 1fr); }
  .page:first-child, .page:last-child { box-shadow: inset 0 0 0 2px #D9C9A3; }
}
@media (max-width: 760px) {
  .hide-sm { display: none !important; }
  .show-sm-sr { display: block; }
  .topbar .panel-btn { padding: 4px 10px 8px; }
  .topbar-tools { gap: 4px; }
  /* nav: hub pages scroll it as a row under the bar; home hides it (the hotbar Menu sheet carries the same links) */
  .topbar.solid .topbar-in { flex-wrap: wrap; min-height: 0; padding-block: 8px; row-gap: 4px; }
  .topnav { order: 3; width: 100%; margin: 0 -8px; overflow-x: auto; scrollbar-width: none; }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav a { white-space: nowrap; padding: 0 10px; font-size: 14px; }
  .topnav a svg.px { display: none; }
  .topbar:not(.solid) .topnav { display: none; }
  .topbar-in { min-height: 64px; gap: 8px; }
  .brand span { font-size: 19px; }
  .brand img { width: 32px; height: 32px; }
  .live-pill { padding: 0 10px; font-size: 13px; }
  .topbar .theme-toggle { width: 44px; flex: none; padding: 0; justify-content: center; }
  .hero { min-height: 0; padding: 78px 0 calc(var(--dock-h) + 24px); }
  .hero .lede { margin-top: 10px; }
  .hero .mp { margin-top: 16px; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .lede { font-size: 17px; }
  .mp { margin-top: 26px; padding: 12px 10px 14px; }
  .entry { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; }
  .entry-icon { width: 48px; height: 48px; }
  .entry-name { font-size: 20px; }
  .motd { font-size: 17px; }
  .entry-name { padding-right: 0; }
  .entry-meta { position: relative; top: auto; right: auto; grid-column: 1 / -1; justify-content: space-between; align-items: center; border-top: 2px solid #2a2a2a; padding-top: 6px; }
  .entry-meta::before { content: "Players online"; font: 700 13px/1 var(--f-mono); letter-spacing: .06em; color: #A0A0A0; text-transform: uppercase; }
  .who-btn { margin: 0; }
  .who-tip { right: 0; }
  .addr-field { font-size: 15px; }
  .mp-actions { grid-template-columns: minmax(0, 1fr); }
  .btn-lg { min-height: 50px; font-size: 17px; }
  .mp-actions { gap: 8px; margin-top: 10px; }
  .mp-steps { margin-top: 6px; gap: 0 10px; }
  .sec h2 { font-size: clamp(32px, 9vw, 42px); }
  .sec-lede { font-size: 17px; }
  .hud > .panel { padding: 20px 18px; }
  .countdown { gap: 6px; }
  .inv { padding: 12px 10px 14px; }
  .inv-label { margin-bottom: 10px; }
  /* finding 7: compact 2-column tiles (icon + name); the one-line description stays in the button's accessible name
     and the full lore is the tooltip on tap, which spans both columns under the tapped tile */
  .inv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .item-btn { min-height: 60px; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto; column-gap: 8px; align-items: center; padding: 8px 8px 8px 6px; }
  .item-btn .slot { grid-row: auto; width: 40px; height: 40px; }
  .item-btn svg.px { width: 32px; height: 32px; }
  .item-name { font-size: 14px; line-height: 1.2; padding-top: 0; overflow-wrap: anywhere; }
  .item-line { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .item .mc-tip, .item .tip-wide, .item.flip .mc-tip { left: 0; right: auto; width: calc(200% + 6px); max-width: none; top: calc(100% + 4px); }
  .item:nth-child(even) .mc-tip, .item.flip:nth-child(even) .mc-tip { left: auto; right: 0; }
  .item.up .mc-tip { top: calc(100% + 4px); bottom: auto; }
  .item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .item:last-child:nth-child(odd) .mc-tip { width: 100%; }
  .chat-lines { grid-template-columns: minmax(0, 1fr); }
  .chat-lines button { flex-wrap: wrap; column-gap: 10px; row-gap: 0; }
  /* finding 7: the command list folds into a disclosure on phones */
  .cmds { gap: 14px; margin-top: 28px; }
  .chat-sum { display: flex; }
  .xp { padding-inline: 8px; }
  .xp-level { font-size: 32px; }
  .tier { padding-inline: 0; }
  .tier-glyph { width: 32px; height: 32px; }
  .tier-glyph svg { width: 20px; height: 20px; }
  .tier-name, .tier-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tier-lv { font-size: 13px; }
  .tier-lv-p { display: none; }   /* 10 columns on a phone: show just the level number */
  .lore-card { grid-template-columns: minmax(0, 1fr); padding: 16px 16px 18px; }
  .lore-side { padding: 16px 0 0; border-left: 0; border-top: 2px solid rgb(80 0 255 / .45); }
  .lore-cols { columns: 2 120px; }
  .rank-title { font-size: 26px; }
  .waypoints { padding: 20px 16px; }
  /* finding 7: postcards become a swipe strip on phones (full 16:9 pictures, the next card peeks in, edge to edge) */
  .frames[data-scroll-x] { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; grid-auto-rows: auto; gap: 10px;
    margin-inline: calc(-1 * var(--gut)); padding: 0 var(--gut) 6px; scroll-padding-inline: var(--gut);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .frames::-webkit-scrollbar { display: none; }
  .frame { scroll-snap-align: start; }
  .f-wide, .frames > .frame:first-child { grid-column: auto; }
  .frame-btn { height: auto; padding: 6px; }
  .frame-btn:hover { transform: none; }
  .frame-btn::before { inset: 4px; }
  .frame-btn img, .frames > .frame:first-child .frame-btn img { height: auto; aspect-ratio: 16 / 9; }
  .plate { left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 4px 8px; font-size: 13px; line-height: 1.25; }
  .gal-hint { display: flex; }
  /* join steps: number and title share a row */
  .craft { gap: 44px; }
  .craft-arrow { bottom: -36px; }
  .step { padding: 18px 16px 20px; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 12px 12px; }
  .step > :not(.step-n):not(.h3):not(.craft-arrow) { grid-column: 1 / -1; }
  .step .btn, .step .step-done { justify-self: start; }
  .step-n { width: 44px; height: 44px; font-size: 24px; }
  .join-extra { grid-template-columns: minmax(0, 1fr); }
  .page { padding: 48px 20px 28px; }
  .rules li { font-size: 17px; }
  .ladder li:nth-child(n) { margin-left: 0; }
  .lb-prev, .lb-next { top: auto; bottom: 64px; }
  .lb-prev { left: 16px; } .lb-next { right: 16px; }
  .lb-close { top: 16px; right: 16px; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
  .cta-art { display: none; }
  .held { display: none; }

  /* phones: scrolling hotbar plus a Bedrock-style "more" slot that opens the inventory menu */
  .navhome { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 14px), transparent); }
  .navhome .hotbar a { width: 52px; height: 52px; }
  /* finding 9: five section slots fit without scrolling (Status, Features, Ranks, Join, Discord); the Menu sheet keeps all nine */
  .navhome { overflow: visible; -webkit-mask-image: none; mask-image: none; flex: none; }
  .navhome .hotbar li:nth-child(1), .navhome .hotbar li:nth-child(5), .navhome .hotbar li:nth-child(6), .navhome .hotbar li:nth-child(7), .navhome .hotbar li:nth-child(8) { display: none; }
  .navhome .hotbar .num { display: none; } /* 2·3·4·7·9 read as a bug on touch screens; the Menu sheet keeps 1-9 */
  .inv-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; flex: none; width: 58px; height: 54px; padding: 0; color: #fff; cursor: pointer; background: #3A3F4C; border: 2px solid #000; box-shadow: inset 2px 2px 0 rgb(255 255 255 / .16), inset 0 -3px 0 #1C1F26; }
  .inv-btn svg.ui { width: 20px; height: 20px; }
  .inv-txt { font: 700 13px/1 var(--f-mono); letter-spacing: .04em; }
}
@media (max-width: 419px) {
  .topbar-in { gap: 6px; }
  .topbar .panel-btn { padding: 4px 10px 8px; }
  .topbar .panel-btn svg.px { display: none; }
  /* C1: "My panel" reads "Panel" on small phones (<=419px); label-in-name holds ("Panel" is inside "My panel") */
  /* the full "My panel" stays the accessible name (visually hidden, not display:none); the short visible word has empty alt text */
  .topbar .panel-btn { position: relative; }
  .topbar .panel-btn .acct-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .topbar .panel-btn::after { content: "Panel"; content: "Panel" / ""; }
  [data-acct] { min-width: 64px; }
  .live-pill { padding: 0 8px; gap: 6px; }
}
/* C4: the pill stays 13px on small phones; the bar makes room with tighter gaps and a slimmer Panel button */
@media (max-width: 400px) {
  .topbar-in, .topbar-tools { gap: 4px; }
  .live-pill { padding: 0 6px; gap: 5px; }
  .topbar .panel-btn { padding-inline: 8px; }
  [data-acct] { min-width: 58px; }
}
/* safety net: if a status text is ever longer than the room left, the pill text ellipsizes instead of overflowing */
.topbar-tools { min-width: 0; flex: 0 1 auto; }
.live-pill { min-width: 0; flex: 0 1 auto; }
.live-pill [data-live="pill"] { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 380px) {
  .hero h1 { font-size: 34px; }
  .hero .lede { font-size: 16px; }
  .motd { font-size: 15px; }
  .entry-name { font-size: 18px; }
  .brand span { font-size: 17px; }
}

/* Phones, signed in: brand + status + theme + staff + bell + avatar must share ONE row (the nav is row two).
   The pill drops the word "online" visually (kept for screen readers), tools pack tighter and the theme/staff/bell
   squares slim to 40px wide (still 44px tall). Before this the bar wrapped to 3 rows once the staff link and bell appeared. */
@media (max-width: 480px) {
  .live-pill .pill-w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .topbar-in { column-gap: 6px; }
  .topbar-tools { gap: 2px; }
  .topbar .theme-toggle, .topbar .nav-staff.btn, .topbar .nav-bell.btn { width: 40px; min-width: 40px; padding: 0; }
}
@media (max-width: 360px) {
  .topbar-in { column-gap: 4px; }
  .live-pill { padding: 0 6px; gap: 4px; }
}
/* 320px phones: 5 hotbar slots + Menu overflowed the viewport by 4px; 48px slots still clear the 44px target size */
@media (max-width: 340px) {
  .navhome .hotbar a { width: 48px; height: 48px; }
  .dock-row { gap: 6px; }
}

/* =====================================================================================================================
   CHRONICLE LAYER (brand v3). Everything below re-skins the components above into the engraved-parchment chronicle.
   Layout rules above still apply; this layer changes surfaces, type and ornament, plus the new plate components.
   ===================================================================================================================== */

/* ---------- base ---------- */
body { background: var(--bg) var(--tex) repeat; background-size: 768px 768px; }
::selection { background: rgb(215 160 64 / .38); color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.display { font-family: var(--f-display); font-weight: 700; letter-spacing: .02em; }
.skip { background: #18130D; color: #F4EAD2; box-shadow: 0 0 0 2px #D7A040; }

/* ---------- ornament system ---------- */
/* gilded frame: a 9-slice SVG (filigree corners + double gold rule) on the panel's background layer */
.panel::before {
  background: var(--panel-fill);
  border: 26px solid transparent;
  border-image: var(--frame) 40 / 26px stretch;
  box-shadow: var(--drop);
  clip-path: none;
}
[data-theme="night"] .panel::before { box-shadow: var(--drop), inset 0 0 0 1px rgb(232 180 74 / .06); }
[data-theme="day"] .panel { box-shadow: none; }
@media (max-width: 399px) {
  .panel::before { border-width: 14px; border-image: var(--frame-lite) 10 / 14px stretch; }
}
/* ink-socket: slots become recessed sockets with a thin gold ring */
.slot { background: var(--slot); box-shadow: inset 0 0 0 1px var(--slot-ring), inset 0 0 0 3px var(--slot), inset 0 0 0 4px rgb(0 0 0 / .14), inset 0 4px 10px rgb(0 0 0 / .22); }
/* section divider: double rule with the title's diamond */
.ink-rule, .sec::before { display: block; height: 24px; background: url(/assets/chronicle/rule.svg) center / contain no-repeat; }
.sec::before { content: ""; width: min(360px, 72%); margin: 0 auto clamp(28px, 4vw, 52px); }
.sec-cta::before { display: none; }
/* gem marker (teal from the title) */
.gem { display: inline-block; width: 9px; height: 9px; flex: none; transform: rotate(45deg); background: linear-gradient(135deg, #8FF7EE, var(--gem-t) 55%, #0B3F3B); box-shadow: 0 0 0 1px var(--inkline); }

/* ---------- buttons ---------- */
.btn {
  --ring: var(--sec-btn-ring);
  font: 700 16px/1.15 var(--f-body); letter-spacing: .01em;
  border: 1px solid var(--inkline); border-radius: 3px;
  box-shadow: inset 0 0 0 1px var(--ring), inset 0 1px 0 1px var(--bhi), inset 0 -3px 0 var(--be);
  padding: 6px 20px 9px;
}
/* r6 UX-16: ghost buttons stay borderless in Night too (the night edge used to out-specify .btn-ghost); the header's
   icon tools keep their dark edge, the Night twin of Daylight's slot ring */
[data-theme="night"] .btn:not(.btn-ghost), [data-theme="night"] .topbar .btn-ghost { border-color: #050302; }
.btn:hover { background: var(--bbh); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 0 0 1px var(--ring), inset 0 -1px 0 var(--be); }
.btn-primary { --bb: var(--leaf); --bbh: var(--leaf-h); --bi: #2A1806; --be: #7A4C10; --bhi: rgb(255 246 214 / .75); --ring: rgb(255 240 190 / .35); text-shadow: 0 1px 0 rgb(255 240 200 / .45); }
.btn-primary svg.ui { color: #2A1806; }
.btn-discord { --ring: rgb(255 255 255 / .16); }
.btn-sub { color: #3E2608; border-left: 1px solid rgb(42 24 6 / .35); text-shadow: none; }
.btn.is-copied { --bb: #0F6F68; --bbh: #0F6F68; --bi: #F2FFFD; --be: #0A4A45; --bhi: rgb(255 255 255 / .2); text-shadow: none; }
.btn.is-copied .btn-sub, .btn.is-copied svg.ui { color: #DDF7F4; }
.btn-ghost { border-color: transparent; box-shadow: none; }
.btn-ghost:active { box-shadow: none; }
.btn-soon { --bb: var(--sec-btn); --bbh: var(--sec-btn); --bi: var(--ink-2); --be: var(--sec-btn-edge); --bhi: var(--sec-btn-hi); }
.btn-soon:hover, .btn-soon:active { box-shadow: inset 0 0 0 1px var(--ring), inset 0 1px 0 1px var(--bhi), inset 0 -3px 0 var(--be); }
kbd { color: #F4EAD2; background: #2A2117; box-shadow: inset 0 -3px 0 #0F0B07, 0 0 0 1px #8A5A14; border-radius: 2px; }

/* ---------- top bar ---------- */
:root, [data-theme="night"] { --hero-ink: #EEE2C6; --hero-ink-2: #CDBB96; --hero-shadow: rgb(0 0 0 / .5); --pill-bg: rgb(24 19 13 / .78); --pill-bg-h: rgb(42 33 23 / .92); --pill-ring: rgb(215 160 64 / .45); }
[data-theme="day"] { --hero-ink: #2B2118; --hero-ink-2: #4E3C2A; --hero-shadow: transparent; --pill-bg: rgb(255 250 236 / .66); --pill-bg-h: rgb(255 250 236 / .92); --pill-ring: rgb(122 76 16 / .42); }
.brand img { box-shadow: 0 0 0 1px #2B2118, 0 0 0 3px #C9973E, 0 0 0 4px #2B2118; border-radius: 2px; }
.brand span { font: 700 21px/1 var(--f-display); letter-spacing: .06em; text-shadow: none; color: var(--hero-ink); }
.topnav a { text-shadow: none; font-weight: 700; }
.topnav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold-t); }
.live-pill { box-shadow: inset 0 0 0 1px var(--pill-ring); border-radius: 3px; }
.acct { box-shadow: inset 0 0 0 1px var(--slot-ring); border-radius: 3px; }
.acct img { box-shadow: 0 0 0 1px var(--outline); }
.acct[aria-current="page"], .panel-btn[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold-t), inset 0 0 0 1px var(--slot-ring); }
.dot { transform: rotate(45deg); box-shadow: 0 0 0 1px rgb(0 0 0 / .45); }
[data-state="online"] .dot { box-shadow: 0 0 0 1px rgb(0 0 0 / .45), 0 0 8px var(--ok); }

/* ---------- hero: the engraved plate with the title breaking its top frame ---------- */
.hero { display: block; min-height: 0; overflow: clip; padding: 84px 0 clamp(20px, 3vw, 40px); }
/* desktop: the hero fills the first screen, so the fixed hotbar sits over hero space instead of over Chapter II's
   eyebrow and title (they peeked out under the dock at 1440x900 / 1536x864 / 1920x1080) */
@media (min-width: 1101px) { .hero { min-height: min(100svh, 1200px); } }
.hero::after { content: none; }
.hero .wrap { max-width: calc(1400px + 2 * var(--gut)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: center; }
.hero-plate { position: relative; margin: 0; container-type: inline-size; min-width: 0; }
.rv { position: relative; isolation: isolate; aspect-ratio: 1672 / 941; filter: var(--plate-drop); }
.rv > img, .rv > picture, .rv > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-real { opacity: 0; visibility: hidden; transition: opacity var(--dur-x) var(--ease), visibility 0s linear var(--dur-x); }
.rv-real img, img.rv-real { box-shadow: inset 0 0 0 1px #2B2118; outline: 1px solid rgb(215 160 64 / .9); outline-offset: -5px; }
.rv.is-real .rv-real { opacity: 1; visibility: visible; transition: opacity var(--dur-x) var(--ease), visibility 0s; }
.rv-hero { margin-top: 10.5cqw; }
.rv > img.hero-title { position: absolute; z-index: 3; inset: auto; left: 50%; top: 0; width: 44%; height: auto; object-fit: contain; transform: translate(-50%, -52%); filter: drop-shadow(0 4px 6px rgb(18 10 4 / .55)) drop-shadow(0 0 22px rgb(91 63 176 / .35)); pointer-events: none; }

/* plate captions + the gilded reveal toggle */
.pl-cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin-top: 12px; padding: 0 4px; }
.pl-t { min-width: 0; font: 600 15px/1.35 var(--f-body); color: var(--ink-2); text-wrap: pretty; }
.pl-no { font: 700 14px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.pl-kind { font-style: italic; font-weight: 400; color: var(--ink-3); }
.pl-acts { display: inline-flex; align-items: center; gap: 6px; }
.rv-btn {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px 1px 12px; flex: none;
  font: 700 13px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  background: var(--sec-btn); border: 1px solid var(--inkline); border-radius: 3px; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--sec-btn-ring), inset 0 -2px 0 var(--sec-btn-edge);
  transition: background-color var(--dur-1) linear;
}
[data-theme="night"] .rv-btn { border-color: #050302; }
.rv-btn:hover { background: var(--sec-btn-h); }
.rv-gem { width: 10px; height: 10px; transform: rotate(45deg); background: transparent; box-shadow: inset 0 0 0 1.5px var(--gold-t); transition: background-color var(--dur-2) linear, box-shadow var(--dur-2) linear; }
.rv-btn[aria-pressed="true"] { background: var(--leaf); color: #2A1806; box-shadow: inset 0 0 0 1px rgb(255 240 190 / .4), inset 0 -2px 0 #7A4C10; }
.rv-btn[aria-pressed="true"] .rv-gem { background: linear-gradient(135deg, #8FF7EE, var(--gem-t) 55%, #0B3F3B); box-shadow: 0 0 0 1px #2B2118, 0 0 10px rgb(46 230 214 / .8); }
.rv-btn.is-loading .rv-gem { animation: blink .6s steps(2) infinite; }

.hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.hero h1 { font: 800 clamp(36px, 9.6vw, 50px)/1.04 var(--f-display); letter-spacing: .015em; color: var(--ink); text-shadow: none; max-width: 16ch; text-wrap: balance; }
[data-theme="day"] .hero h1 { text-shadow: none; }
.hero h1::after { content: ""; display: block; width: 220px; max-width: 70%; height: 20px; margin: 12px auto 0; background: url(/assets/chronicle/rule.svg) center / contain no-repeat; }
.hero .lede { color: var(--ink-2); text-shadow: none; }
[data-theme="night"] .lede { text-shadow: none; }
@media (min-width: 1101px) {
  .hero { padding-top: 92px; }
  .hero-grid { grid-template-columns: minmax(0, 37fr) minmax(0, 63fr); gap: clamp(28px, 3vw, 52px); }
  .hero-plate { grid-column: 2; grid-row: 1; }
  .hero-in { grid-column: 1; grid-row: 1; align-items: flex-start; text-align: left; }
  .hero h1 { font-size: clamp(40px, 3.5vw, 58px); max-width: 12ch; }
  .hero h1::after { margin-left: 0; background-position: left center; }
  .hero .lede { margin-top: 12px; max-width: 40ch; font-size: 18px; }
  .hero .mp { width: 100%; margin-top: 22px; }
  .hero .mp-actions { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero .mp-actions .btn-lg { min-height: 52px; }
  .hero h1::after { width: 180px; height: 16px; margin-top: 10px; }
  .rv > img.hero-title { width: 46%; }
}
@media (min-width: 1101px) and (max-height: 960px) {
  .hero { padding-top: 80px; }
  .hero .tip { display: none; }
  .hero h1::after { display: none; }
  .mp-steps { margin-top: 4px; min-height: 40px; }
}
@media (min-width: 1101px) and (max-height: 880px) {
  .hero { padding-top: 80px; }
  .hero .hero-in h1 { font-size: clamp(36px, 3vw, 48px); max-width: 14ch; }
  .hero .lede { font-size: 17px; margin-top: 8px; }
  .hero .mp { margin-top: 14px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .hero-grid { gap: 26px; }
  .hero-plate { width: min(100%, 920px); margin-inline: auto; }
  .hero .mp { width: min(640px, 100%); }
}
@media (max-width: 760px) {
  .hero { padding: 72px 0 12px; }
  .rv-hero { aspect-ratio: 720 / 1080; margin: 2cqw auto 0; width: min(100%, calc(58svh * 2 / 3)); }
  .hero-plate .pl-cap { flex-wrap: nowrap; justify-content: space-between; text-align: left; margin-top: 8px; width: min(100%, calc(58svh * 2 / 3 + 40px)); margin-inline: auto; }
  .hero-plate .pl-t { font-size: 14px; line-height: 1.3; }
  .hero-plate .pl-no { display: block; margin-bottom: 3px; font-size: 13px; }
  .hero-plate .pl-dot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hero-plate .rv-btn { padding-inline: 10px 12px; font-size: 12px; }
  .hero-grid { gap: 16px; }
  .rv > img.hero-title { width: 74%; top: 2.6%; transform: translate(-50%, 0); }
  .hero h1 { font-size: clamp(32px, 9.4vw, 44px); }
  .hero h1::after { margin-top: 8px; }
  .pl-cap { justify-content: center; text-align: center; }
}

/* the server card as a parchment card (the server-list row inside it stays in-game) */
.mp {
  color: var(--ink); text-align: left;
  background: var(--panel-fill);
  border: 24px solid transparent; border-image: var(--frame) 40 / 24px stretch;
  padding: 2px 4px 6px; box-shadow: var(--drop);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
@media (max-width: 399px) { .mp { border-width: 14px; border-image: var(--frame-lite) 10 / 14px stretch; padding: 4px 4px 6px; } }
.mp-head { font: 700 13px/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.mp-head span:first-child { color: var(--ink); }
.entry { background: #0E0B08; box-shadow: inset 0 0 0 1px #7A5A2A, 0 0 0 1px #0A0704; border-radius: 2px; }
.entry-name { font-family: var(--f-pixel); }
.motd, .count { font-family: var(--f-pixel); }
.entry-foot { color: var(--ink-2); }
.entry-foot b { color: var(--ok); }
.addr-label { color: var(--ink-2); font: 700 12px/1 var(--f-display); letter-spacing: .18em; text-transform: uppercase; }
.addr-field { color: #F4EAD2; background: #0E0B08; box-shadow: inset 0 0 0 1px #7A5A2A; border-radius: 2px; }
.mp-steps { color: var(--ink-2); }
.mp-steps:hover { color: var(--ink); }
.mp-steps b { color: var(--gold-ink); background: transparent; box-shadow: inset 0 0 0 1px currentColor; border-radius: 50%; }
.mp-steps .ms:last-child b { color: #F2FFFD; background: #0F6F68; box-shadow: none; }
.mp-steps .ms:not(:last-child)::after { width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold-t); }
@media (max-width: 760px) {
  .entry-meta { border-top-color: #3A2E1E; }
}
.tip { color: var(--ink-2); background: transparent; box-shadow: none; padding: 0; }
.tip-k { color: var(--gold-ink); background: transparent; box-shadow: inset 0 0 0 1px var(--rule-2); font-family: var(--f-display); }

/* ---------- sections ---------- */
#features, #map, #join { background: var(--band), var(--hatch), var(--tex-2) 0 0 / 768px 768px repeat, var(--bg-2); box-shadow: inset 0 1px 0 var(--rule-2), inset 0 4px 0 -2px var(--rule), inset 0 -1px 0 var(--rule-2), inset 0 -4px 0 -2px var(--rule); }
.eyebrow { gap: 10px; font: 700 13px/1 var(--f-display); letter-spacing: .2em; color: var(--ink-2); flex-wrap: wrap; row-gap: 8px; }
.chap { color: var(--gold-ink); }
.chap-sep { width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold-t); }
.key { width: 30px; height: 30px; margin-right: 4px; font: 700 13px/1 var(--f-mono); color: #2A1806; background: var(--leaf); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); box-shadow: none; }
[data-theme="day"] .key { color: #2A1806; text-shadow: none; }
.sec h2 { font-weight: 800; letter-spacing: .015em; font-size: clamp(32px, 4vw, 54px); line-height: 1.08; }
.sec h2, [data-theme="night"] .sec h2 { text-shadow: none; }
[data-theme="night"] .sec h2 { text-shadow: 0 2px 0 rgb(0 0 0 / .45); }
/* chapter openers: one gilded drop cap per section intro */
.sec-lede::first-letter { font-family: 'Cinzel', Georgia, serif; font-weight: 800; color: var(--gold-ink); }
/* a raised initial (sits on the first line): ledes are one to three lines, a sunk cap left holes in one-liners */
.sec-lede::first-letter { font-size: 2.1em; line-height: .8; margin-right: .04em; }
.h3 { color: var(--ink); }

/* ---------- status ---------- */
.stat-n, [data-theme="night"] .stat-n { text-shadow: none; }
.board li::before { color: var(--gold-ink); }
.bar { background: var(--slot); box-shadow: inset 0 0 0 1px var(--slot-ring); border-radius: 2px; }
.bar i { inset: 2px auto 2px 2px; background: var(--leaf); border-radius: 1px; }
.countdown span { box-shadow: inset 0 0 0 1px var(--slot-ring), inset 0 4px 10px rgb(0 0 0 / .18); border-radius: 2px; }
.countdown b { color: var(--ink); text-shadow: none; }
.countdown i, [data-theme="day"] .countdown i { color: var(--ink-3); text-shadow: none; }

/* ---------- features ---------- */
.inv-label { font: 700 14px/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--label); }
.item-btn { background: var(--card); border-radius: 2px; box-shadow: inset 0 0 0 1px var(--rule-2), 0 1px 0 rgb(0 0 0 / .08); }
.item-btn:hover, .item.open .item-btn { background: var(--card-hi); box-shadow: inset 0 0 0 1px var(--gold-t), 0 6px 14px -8px rgb(0 0 0 / .4); }
[data-theme="night"] .item-btn:hover, [data-theme="night"] .item.open .item-btn { background: #33281C; }
.item-btn .slot::after { background: var(--slot-hover); }
.chat-sum { background: var(--panel); box-shadow: inset 0 0 0 1px var(--rule-2); border-radius: 3px; }
.chat-sum:hover { background: var(--card); }
.chat { border-radius: 2px; box-shadow: 0 0 0 1px #7A5A2A; }
[data-theme="day"] .chat { background: rgb(30 23 16 / .9); }
.cmds-copy .h3 { font-family: var(--f-display); letter-spacing: .04em; }

/* ---------- ranks ---------- */
.xp-scale { color: var(--ink-3); }
.tier-glyph { border-radius: 50%; background: radial-gradient(circle at 50% 38%, #3A2E1E, #120D08 72%); box-shadow: 0 0 0 1px #0A0704, 0 0 0 3px #C9973E, 0 0 0 4px #4A300A; }
.tier[aria-selected="true"] .tier-glyph { box-shadow: 0 0 0 1px #0A0704, 0 0 0 3px #F6D77E, 0 0 0 5px #8A5A14, 0 0 18px 2px color-mix(in srgb, var(--c) 55%, transparent); }
.tier:hover { background: var(--ghost-h); }
.sup-title { font-weight: 700; }

/* ---------- map ---------- */
.map-stage { background: transparent; box-shadow: none; overflow: visible; aspect-ratio: 1672 / 941; }
.map-stage > .rv { position: absolute; inset: 0; aspect-ratio: auto; }
.map-stage iframe { z-index: 4; border-radius: 2px; box-shadow: 0 0 0 1px #2B2118, 0 0 0 4px #C9973E, 0 0 0 5px #2B2118; }
.map-poster { image-rendering: auto; }
.map-cta { z-index: 3; bottom: 9%; background: rgb(24 19 13 / .9); box-shadow: 0 0 0 1px #0A0704, inset 0 0 0 1px rgb(215 160 64 / .6); border-radius: 3px; }
.map-cta p { color: #D9CBA8; }
.map-bar { padding-top: 8px; }
.map-bar .pl-cap { margin-top: 0; padding: 0; flex: 1 1 320px; justify-content: flex-start; }
.map-cap { font: inherit; color: inherit; }
.wp-h { font: 700 14px/1.3 var(--f-display); letter-spacing: .12em; text-transform: uppercase; }
.waypoints .h3 { font-family: var(--f-display); letter-spacing: .04em; }

/* ---------- gallery: plates of Aurora Isle ---------- */
.plates { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; gap: clamp(22px, 2.6vw, 36px) clamp(18px, 2vw, 28px); }
.plates .frame { min-width: 0; }
.pl-card { position: relative; margin: 0; display: flex; flex-direction: column; height: 100%; }
.pl-card .pl-cap { margin-top: 10px; align-items: center; flex-wrap: wrap; gap: 8px 10px; justify-content: space-between; }
.pl-card .pl-t { flex: 1 1 100%; font-size: 15px; }
.pl-card .pl-no { display: block; margin-bottom: 5px; }
.pl-card .pl-dot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pl-card .pl-kind { white-space: nowrap; }
.pl-acts { flex: none; }
.pl-card .rv-btn { padding-inline: 10px 12px; letter-spacing: .1em; }
.pl-render .rv { filter: none; }
.pl-render .rv-art { box-shadow: 0 0 0 1px #2B2118, 0 0 0 4px #C9973E, 0 0 0 5px #2B2118, var(--drop); border-radius: 1px; }
.pl-render .rv { margin: 5px; }
.pl-no-r { color: var(--teal); }
[data-theme="night"] .pl-no-r { color: var(--teal); }
.plates .frame-btn { display: grid; place-items: center; position: static; flex: none; height: auto; padding: 0; background: var(--sec-btn); overflow: visible; color: var(--ink); border: 1px solid var(--inkline); box-shadow: inset 0 0 0 1px var(--sec-btn-ring), inset 0 -2px 0 var(--sec-btn-edge); width: 44px; min-height: 44px; }
[data-theme="night"] .plates .frame-btn { border-color: #050302; }
.plates .frame-btn:hover { transform: none; background: var(--sec-btn-h); }
.plates .frame-btn::before { content: none; }
.plates .frame-btn svg.ui { width: 18px; height: 18px; }
@media (max-width: 1100px) and (min-width: 761px) { .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .plates[data-scroll-x] { grid-auto-columns: 86%; gap: 16px; padding-bottom: 10px; }
  .plates .frame-btn { padding: 0; }
  .pl-card .pl-cap { text-align: left; }
  .pl-card .pl-kind { white-space: normal; }
}
/* lightbox: real renders in a gilded frame */
.lightbox { border: 2px solid transparent; background: linear-gradient(#18130D, #18130D) padding-box, var(--leaf) border-box; color: #EEE2C6; }
.lightbox::backdrop { background: rgb(14 10 6 / .9); }
.lb-cap { font: 700 15px/1.3 var(--f-display); letter-spacing: .06em; }
.lb-count { color: #BFAE8C; }
.lightbox .btn-icon { color: #EEE2C6; background: rgb(24 19 13 / .86); box-shadow: inset 0 0 0 1px rgb(215 160 64 / .7); }
.lightbox .btn-icon:hover { background: rgb(58 46 30 / .95); }

/* ---------- join ---------- */
.step-n { color: var(--ink); text-shadow: none; font-weight: 800; border-radius: 50%; }
.slot-result { color: #2A1806; background: var(--leaf); box-shadow: 0 0 0 1px #2B2118, inset 0 0 0 2px rgb(255 240 190 / .45); }
.step-n.slot-result { color: #2A1806; }
.craft-arrow { color: var(--gold-t); }
.jx-safe li::before { width: 7px; height: 7px; top: .62em; transform: rotate(45deg); background: var(--gem-t); box-shadow: 0 0 0 1px var(--inkline); }
.jx-safe h3 svg { color: var(--gold-t); }

/* ---------- rules: an open codex ---------- */
.book {
  position: relative; gap: 0; padding: clamp(12px, 1.6vw, 20px);
  background: radial-gradient(120% 90% at 50% 0%, #5A3A1C, #3A2410 70%), #3A2410;
  border-radius: 6px;
  box-shadow: 0 0 0 1px #1A0F06, inset 0 0 0 2px #8A5A14, inset 0 0 0 4px #3A2410, inset 0 0 0 5px #C9973E, 0 28px 50px -24px rgb(30 18 6 / .7);
}
.page {
  padding: 46px clamp(22px, 3.4vw, 46px) 40px; color: #2B2118;
  background: linear-gradient(rgb(255 248 228 / .35), rgb(255 248 228 / .35)), url(/assets/chronicle/parchment-768.webp) 0 0 / 768px 768px, #F1E4C4;
  box-shadow: inset 0 0 0 1px rgb(122 84 34 / .35), inset 0 0 40px rgb(122 84 34 / .18);
}
[data-theme="night"] .page { background: linear-gradient(rgb(255 248 228 / .3), rgb(255 248 228 / .3)), url(/assets/chronicle/parchment-768.webp) 0 0 / 768px 768px, #EDE0C0; }
.page:first-child { box-shadow: inset 0 0 0 1px rgb(122 84 34 / .35), inset -34px 0 30px -26px rgb(90 58 20 / .55); border-radius: 3px 0 0 3px; }
.page:last-child { box-shadow: inset 0 0 0 1px rgb(122 84 34 / .35), inset 34px 0 30px -26px rgb(90 58 20 / .55); border-radius: 0 3px 3px 0; }
.page::before { content: ""; position: absolute; left: 50%; top: 14px; width: 120px; height: 14px; transform: translateX(-50%); background: url(/assets/chronicle/rule.svg) center / contain no-repeat; opacity: .9; }
.page-no { top: 16px; right: 22px; font: 700 12px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: #6B5038; }
.rules li { padding-left: 46px; }
.rules li::before { content: counter(r, upper-roman); left: 0; top: -1px; width: 38px; height: 28px; place-items: center start; font: 800 19px/1 'Cinzel', Georgia, serif; color: #8E1F1F; background: none; }
.rules strong { color: #1B1208; }
.book-h { font: 800 28px/1.1 var(--f-display); letter-spacing: .02em; color: #2B2118; }
.ladder li { background: rgb(122 84 34 / .08); box-shadow: inset 0 0 0 1px rgb(122 84 34 / .32); border-radius: 2px; color: #2B2118; }
.ladder li:nth-child(4) { background: rgb(142 31 31 / .08); box-shadow: inset 0 0 0 1px rgb(142 31 31 / .38); }
.lad-n { border-radius: 50%; color: #F4EAD2; background: #6B4423; font-weight: 800; box-shadow: 0 0 0 1px #2B2118, 0 0 0 3px rgb(201 151 62 / .7); }
.ladder li:nth-child(4) .lad-n { background: #8E1F1F; }
.page > p:not(.page-no) { color: #3A2C1E; }
@media (max-width: 900px) {
  .page:first-child, .page:last-child { box-shadow: inset 0 0 0 1px rgb(122 84 34 / .35); border-radius: 3px; }
  .page:first-child { margin-bottom: 10px; }
}

/* ---------- discord CTA ---------- */
.cta::after { right: -12%; top: -40%; background: radial-gradient(closest-side, rgb(167 139 250 / .2), rgb(46 230 214 / .06) 62%, transparent); }
[data-theme="day"] .cta::after { background: radial-gradient(closest-side, rgb(91 63 176 / .1), transparent); }
.sup-card .btn-soon { --bb: #241A2E; --bbh: #241A2E; --bi: #E4DCF2; --be: #120C18; --bhi: rgb(255 255 255 / .08); --ring: color-mix(in oklab, var(--c) 45%, transparent); }
.cta-logo { filter: drop-shadow(0 18px 26px rgb(30 18 6 / .4)); }
.toast { border-radius: 2px; }

/* ---------- footer ---------- */
.foot { background: var(--band), var(--hatch), var(--tex-2) 0 0 / 768px 768px repeat, var(--bg-2); box-shadow: inset 0 1px 0 var(--rule-2), inset 0 4px 0 -2px var(--rule); }
.foot-brand img { box-shadow: 0 0 0 1px #2B2118, 0 0 0 3px #C9973E, 0 0 0 4px #2B2118; border-radius: 2px; }
.foot-name { font-weight: 800; letter-spacing: .04em; }
.foot-h { font: 700 12px/1 var(--f-display); letter-spacing: .2em; color: var(--gold-ink); }
.foot-legal { border-top: 1px solid var(--rule-2); }

/* ---------- the hotbar: a gilded bar, gem selection marker ---------- */
.hotbar ol { padding: 4px; gap: 2px; background: linear-gradient(180deg, #2E2418, #18130D); border-radius: 3px; box-shadow: 0 0 0 1px #0A0704, 0 0 0 3px #C9973E, 0 0 0 4px #4A300A, 0 14px 30px -10px rgb(0 0 0 / .6); }
.hotbar a { color: #F4EAD2; background: rgb(238 226 198 / .05); box-shadow: inset 0 0 0 1px rgb(201 151 62 / .32), inset 0 3px 8px rgb(0 0 0 / .35); border-radius: 2px; }
.hotbar a:hover { background: rgb(232 180 74 / .16); }
.hotbar .num { color: #D9CBA8; }
.hotbar a[aria-current="true"] { background: rgb(232 180 74 / .14); }
.hotbar a[aria-current="true"]::after { inset: -4px; border-radius: 3px; box-shadow: 0 0 0 1px #0A0704, inset 0 0 0 2px #F6D77E, inset 0 0 0 3px #8A5A14, 0 0 16px rgb(46 230 214 / .45); }
.hotbar a[aria-current="true"]::before { content: ""; position: absolute; z-index: 4; left: 50%; top: -10px; width: 10px; height: 10px; margin-left: -5px; transform: rotate(45deg); background: linear-gradient(135deg, #8FF7EE, var(--gem-t) 55%, #0B3F3B); box-shadow: 0 0 0 1px #0A0704, 0 0 10px rgb(46 230 214 / .9); pointer-events: none; }
.hotbar a:focus-visible { outline-color: #2EE6D6; }
.menu .hotbar a[aria-current="true"]::before { content: none; }
.menu .hotbar a { border-radius: 3px; box-shadow: inset 0 0 0 1px var(--rule-2); }
.menu .hotbar .num { color: var(--ink-3); }
.menu-title { font-weight: 800; letter-spacing: .04em; }
@media (max-width: 1100px) {
  .dock { background: linear-gradient(180deg, rgb(42 33 23 / .97), rgb(24 19 13 / .98)); box-shadow: 0 -1px 0 #0A0704, 0 -3px 0 #C9973E, 0 -4px 0 #4A300A; }
  .xpstrip { top: -14px; }
}
@media (max-width: 760px) {
  .inv-btn { color: #F4EAD2; background: #2A2117; border: 1px solid #0A0704; border-radius: 3px; box-shadow: inset 0 0 0 1px rgb(201 151 62 / .6), inset 0 -3px 0 #0F0B07; }
}
/* the gilded ring needs 4px of air: at the narrowest phones keep the bar inside the dock padding (slots stay ≥44px) */
@media (max-width: 380px) {
  .navhome { margin-inline: 0; padding-inline: 0; }
}
@media (max-width: 340px) {
  .navhome .hotbar a { width: 44px; height: 44px; }
}

/* =====================================================================================================================
   CHRONICLE PASS 2: "printed in the same book as the plates". The engraved ornament pack (assets/chronicle/orn/):
   baroque filigree corners with a teal gem, the winged-gem divider, illuminated drop caps, ink vignettes per chapter and
   the engraved cloud band. Panels read as printed sheets with ink-hatched shadows; the page gets burnt edges and, on
   large screens, a gilded page border. Overrides the pass-1 layer above (class names and JS hooks unchanged).
   ===================================================================================================================== */
:root {
  --c-tl: url(/assets/chronicle/orn/corner-tl-176.webp);
  --c-tr: url(/assets/chronicle/orn/corner-tr-176.webp);
  --c-bl: url(/assets/chronicle/orn/corner-bl-176.webp);
  --c-br: url(/assets/chronicle/orn/corner-br-176.webp);
  --divider: url(/assets/chronicle/orn/divider.webp);
  --cs: clamp(44px, 4.4vw, 64px);          /* filigree corner width on panels */
  --vig-w: clamp(92px, 8.4vw, 124px);      /* chapter vignette width */
  --ink-plate: #17110B;                    /* warm ink-black of the in-game layer */
}
:root, [data-theme="night"] {
  --g1: rgb(226 176 76 / .78);             /* outer gold rule */
  --g2: rgb(226 176 76 / .32);             /* inner gold rule */
  --burn: rgb(0 0 0 / .34);                /* burnt sheet edge */
  --hatch-ink: rgb(0 0 0 / .62);
  --hatch-w: 1px;
  --sheet: linear-gradient(rgb(70 54 36 / .52), rgb(70 54 36 / .52)), url(/assets/chronicle/vellum-768.webp) 0 0 / 768px 768px, #251D14;
  --slip: linear-gradient(rgb(84 66 44 / .5), rgb(84 66 44 / .5)), url(/assets/chronicle/vellum-768.webp) 0 0 / 768px 768px, #2C2318;
  --slip-h: linear-gradient(rgb(104 82 54 / .5), rgb(104 82 54 / .5)), url(/assets/chronicle/vellum-768.webp) 0 0 / 768px 768px, #352A1D;
  --slip-rule: rgb(226 176 76 / .3);
  --page-burn: rgb(0 0 0 / .5);
  --vig-ink: rgb(43 33 24 / .9);
  --cloud-ink: rgb(238 226 198 / .1);
  --divider-o: .92;
}
[data-theme="day"] {
  --g1: rgb(138 90 20 / .78);
  --g2: rgb(138 90 20 / .36);
  --burn: rgb(140 88 30 / .15);
  --hatch-ink: rgb(74 48 18 / .42);
  --sheet: linear-gradient(rgb(255 250 236 / .52), rgb(255 250 236 / .52)), url(/assets/chronicle/parchment-768.webp) 0 0 / 768px 768px, #F4EAD2;
  --slip: linear-gradient(rgb(255 251 240 / .62), rgb(255 251 240 / .62)), url(/assets/chronicle/parchment-768.webp) 0 0 / 768px 768px, #F6EDD8;
  --slip-h: linear-gradient(rgb(255 253 246 / .8), rgb(255 253 246 / .8)), url(/assets/chronicle/parchment-768.webp) 0 0 / 768px 768px, #FBF4E2;
  --slip-rule: rgb(122 84 34 / .34);
  --page-burn: rgb(120 70 22 / .26);
  --vig-ink: rgb(43 33 24 / .86);
  --cloud-ink: rgb(58 40 22 / .3);
  --divider-o: 1;
}
@media (max-width: 760px) { :root { --cs: 38px; --vig-w: 84px; } }
@media (max-width: 399px) { :root { --cs: 30px; } }

/* ---------- the page: an old printed leaf (burnt edges) ---------- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 45; pointer-events: none;
  background: radial-gradient(140% 110% at 50% 45%, transparent 64%, var(--page-burn) 100%);
}
/* large screens: a gilded page border, rules down both edges, filigree corners at the top and bottom of the page */
@media (min-width: 1280px) {
  body { position: relative; }
  body::after {
    --pc: 64px;
    content: ""; position: absolute; inset: 8px; z-index: 44; pointer-events: none;
    background:
      var(--c-tl) 0 0 / var(--pc) auto no-repeat, var(--c-tr) 100% 0 / var(--pc) auto no-repeat,
      var(--c-bl) 0 100% / var(--pc) auto no-repeat, var(--c-br) 100% 100% / var(--pc) auto no-repeat,
      linear-gradient(var(--g1), var(--g1)) 1px 0 / 1px 100% no-repeat, linear-gradient(var(--g2), var(--g2)) 5px 0 / 1px 100% no-repeat,
      linear-gradient(var(--g1), var(--g1)) calc(100% - 1px) 0 / 1px 100% no-repeat, linear-gradient(var(--g2), var(--g2)) calc(100% - 5px) 0 / 1px 100% no-repeat,
      linear-gradient(var(--g1), var(--g1)) 0 1px / 100% 1px no-repeat, linear-gradient(var(--g2), var(--g2)) 0 5px / 100% 1px no-repeat,
      linear-gradient(var(--g1), var(--g1)) 0 calc(100% - 1px) / 100% 1px no-repeat, linear-gradient(var(--g2), var(--g2)) 0 calc(100% - 5px) / 100% 1px no-repeat;
  }
}
@media (min-width: 1500px) { body::after { --pc: 84px; inset: 12px; } }

/* ---------- printed sheets: every panel = parchment / vellum sheet, double gold rule, filigree corners ---------- */
.panel::before, .mp {
  border: 0; border-image: none;
  background:
    var(--c-tl) 0 0 / var(--cs) auto no-repeat, var(--c-tr) 100% 0 / var(--cs) auto no-repeat,
    var(--c-bl) 0 100% / var(--cs) auto no-repeat, var(--c-br) 100% 100% / var(--cs) auto no-repeat,
    linear-gradient(var(--g1), var(--g1)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--g1), var(--g1)) 0 100% / 100% 1px no-repeat,
    linear-gradient(var(--g1), var(--g1)) 0 0 / 1px 100% no-repeat, linear-gradient(var(--g1), var(--g1)) 100% 0 / 1px 100% no-repeat,
    linear-gradient(var(--g2), var(--g2)) 0 4px / 100% 1px no-repeat, linear-gradient(var(--g2), var(--g2)) 0 calc(100% - 4px) / 100% 1px no-repeat,
    linear-gradient(var(--g2), var(--g2)) 4px 0 / 1px 100% no-repeat, linear-gradient(var(--g2), var(--g2)) calc(100% - 4px) 0 / 1px 100% no-repeat,
    linear-gradient(90deg, var(--burn), transparent) 0 0 / 56px 100% no-repeat, linear-gradient(270deg, var(--burn), transparent) 100% 0 / 56px 100% no-repeat,
    linear-gradient(180deg, var(--burn), transparent) 0 0 / 100% 56px no-repeat, linear-gradient(0deg, var(--burn), transparent) 0 100% / 100% 56px no-repeat,
    var(--panel-glow, linear-gradient(transparent, transparent)),
    var(--sheet);
}
.panel::before { box-shadow: none; }
[data-theme="night"] .panel::before { box-shadow: 0 0 0 1px #0A0704; }
/* ink-hatched shadow: engraved cross-strokes offset down-right, instead of a soft web shadow */
.panel::after, .mp::after, .rv::before, .item-btn::before, .book::before {
  content: ""; position: absolute; z-index: -2; inset: 7px -7px -8px 7px; pointer-events: none;
  background: repeating-linear-gradient(135deg, var(--hatch-ink) 0 var(--hatch-w), transparent var(--hatch-w) 4px);
}
.mp, .book { isolation: isolate; }
.mp::after { z-index: -1; }
.cta::after { inset: 7px -7px -8px 7px; width: auto; height: auto; top: 7px; right: -7px; }
.cta { overflow: visible; --panel-glow: radial-gradient(48% 70% at 84% 40%, rgb(167 139 250 / .2), rgb(46 230 214 / .06) 60%, transparent 100%); }
[data-theme="day"] .cta { --panel-glow: radial-gradient(48% 70% at 84% 40%, rgb(91 63 176 / .12), transparent 100%); }
.cta-art { overflow: hidden; }

/* ---------- chapter headings: vignette, eyebrow, Cinzel title, winged-gem divider, illuminated intro ---------- */
.sec::before { content: none; }
.sec-head { position: relative; max-width: 880px; margin-inline: auto; text-align: center; padding-top: calc(var(--vig-w) * .92 + 18px); }
.sec-head .eyebrow { justify-content: center; }
.sec-head h2 { margin-inline: auto; max-width: 20ch; }
.sec-head h2::after, .hubhead h1::after, .cta h2::after, .hero .lede::after {
  content: ""; display: block; width: min(440px, 88%); aspect-ratio: 900 / 121; margin: 12px auto 0;
  background: var(--divider) center / contain no-repeat; opacity: var(--divider-o);
}
.sec-head .sec-lede { margin: 18px auto 0; max-width: 62ch; text-align: left; }
/* the vignette: an ink engraving used as a mask, so the ink follows the theme; at night it sits on a parchment roundel */
.sec-head::after, header.hubhead::after {
  content: ""; position: absolute; top: 0; left: 50%; width: var(--vig-w); aspect-ratio: 1; translate: -50% 0;
  background-color: var(--vig-ink);
  -webkit-mask: var(--vig) center / contain no-repeat; mask: var(--vig) center / contain no-repeat;
  pointer-events: none;
}
[data-theme="night"] .sec-head::before, [data-theme="night"] header.hubhead::before {
  content: ""; position: absolute; top: calc(var(--vig-w) * -.06); left: 50%; width: calc(var(--vig-w) * 1.12); aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 248 228 / .55), rgb(255 248 228 / 0) 70%), url(/assets/chronicle/parchment-768.webp) 30% 40% / 384px 384px, #E9D9B4;
  box-shadow: inset 0 0 0 1px #6B4410, inset 0 0 0 3px #E8C06A, inset 0 0 0 4px #6B4410, inset 0 0 22px rgb(122 74 24 / .45), 0 0 0 1px #0A0704, 0 10px 22px -10px rgb(0 0 0 / .8);
  pointer-events: none;
}
[data-theme="night"] .sec-head::after, [data-theme="night"] header.hubhead::after { width: calc(var(--vig-w) * .8); top: calc(var(--vig-w) * .1); }
#status .sec-head { --vig: url(/assets/chronicle/orn/vig-helm-240.webp); }
#features .sec-head { --vig: url(/assets/chronicle/orn/vig-chest-240.webp); }
#ranks .sec-head { --vig: url(/assets/chronicle/orn/vig-arms-240.webp); }
#map .sec-head { --vig: url(/assets/chronicle/orn/vig-compass-240.webp); }
#gallery .sec-head { --vig: url(/assets/chronicle/orn/vig-tome-240.webp); }
#join .sec-head { --vig: url(/assets/chronicle/orn/vig-scroll-240.webp); }
#latest .sec-head { --vig: url(/assets/chronicle/orn/vig-tome-240.webp); }
#gallery .sec-head::after { transform: scaleX(-1); }

/* illuminated drop cap: the gilded aurora frame is decoration (alt text ""), the real letter stays in the sentence for
   screen readers and copy/paste; it is only hidden visually */
[data-initial] { display: flow-root; }
[data-initial]::before {
  content: attr(data-initial); content: attr(data-initial) / "";
  float: left; width: 1.8em; height: 1.8em; margin: .1em .3em .02em -.04em;
  font: 700 2.55em/1.84em 'Cinzel', Georgia, serif; text-align: center; letter-spacing: 0;
  color: #FBF1D6; text-shadow: 0 2px 0 #1A0F06, 0 0 12px rgb(46 230 214 / .55), 0 0 2px #1A0F06;
  /* r7 B: the dropcap-168.webp tile that was here is never painted ([data-initial]::before is content: none below,
     every browser) but Chromium still fetched it with the head ornaments: 15 KB before LCP on every hub page */
}
[data-initial]::first-letter { font-size: 0; }
.sec-lede::first-letter { font-size: 0; margin: 0; }

/* ---------- hero: a composed title page ---------- */
.hero { padding-top: clamp(96px, 8.6vw, 132px); }
@media (min-width: 761px) {
.is-loaded .hero::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: min(100%, 860px); pointer-events: none;
  background-color: var(--cloud-ink);
  -webkit-mask: url(/assets/chronicle/orn/clouds-band.webp) 62% 0 / max(1240px, 104%) auto no-repeat;
  mask: url(/assets/chronicle/orn/clouds-band.webp) 62% 0 / max(1240px, 104%) auto no-repeat;
}
}
@media (prefers-reduced-motion: no-preference) { .is-loaded .hero::before { animation: inkin 1.2s var(--ease) both; } }
@keyframes inkin { from { opacity: 0; } }
.hero-eyebrow { margin-bottom: 14px; }
.hero .lede { position: relative; text-align: left; }
.hero .lede::after { clear: both; width: min(320px, 86%); margin: 18px 0 0; background-position: left center; }
@media (max-width: 1100px) { .hero .lede::after { margin-inline: auto; background-position: center; } .hero-eyebrow { justify-content: center; } }
.hero .rv-hero { filter: none; }
.rv { filter: drop-shadow(0 14px 18px rgb(30 18 6 / .28)); }
[data-theme="night"] .rv { filter: drop-shadow(0 14px 22px rgb(0 0 0 / .55)); }
.rv::before { z-index: -1; inset: 2.2% -1.4% -2.6% 1.6%; }
.rv-hero::before { inset: 2% -1% -2.2% 1.2%; }
.pl-render .rv::before { content: none; }

/* the server card: a parchment sheet with the in-game server-list row mounted in it like a plate */
.mp { border: 0; border-image: none; padding: 26px 26px 22px; box-shadow: none; position: relative; }
.entry { position: relative; margin: 4px 2px 0; padding: 10px; background: var(--ink-plate); border-radius: 1px;
  box-shadow: 0 0 0 1px #0A0704, 0 0 0 4px var(--ink-plate), 0 0 0 5px rgb(215 160 64 / .85), 0 0 0 6px #0A0704; }
.entry::after { content: ""; position: absolute; inset: -14px; z-index: 1; pointer-events: none;
  background: var(--c-tl) 0 0 / 26px auto no-repeat, var(--c-tr) 100% 0 / 26px auto no-repeat, var(--c-bl) 0 100% / 26px auto no-repeat, var(--c-br) 100% 100% / 26px auto no-repeat; }
.entry-cap { margin: 13px 2px 0; text-align: right; font: italic 400 14px/1.3 var(--f-body); color: var(--ink-2); }
.entry-cap::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; vertical-align: 2px; transform: rotate(45deg); background: var(--gem-t); box-shadow: 0 0 0 1px var(--inkline); }
.entry-foot { margin-top: 4px; }
/* the address: an engraved ink plaque with brass rim and rivets (still mono, still select-all) */
.addr-field {
  position: relative; padding: 12px 34px; text-align: center; letter-spacing: .02em;
  color: #F2D58A; text-shadow: 0 -1px 0 #000, 0 1px 0 rgb(255 225 150 / .14);
  background:
    radial-gradient(circle at 50% 40%, #FFF0B8 0 1.2px, #C9973E 1.8px 2.8px, #4A300A 3.3px, transparent 3.8px) 12px 50% / 8px 8px no-repeat,
    radial-gradient(circle at 50% 40%, #FFF0B8 0 1.2px, #C9973E 1.8px 2.8px, #4A300A 3.3px, transparent 3.8px) calc(100% - 12px) 50% / 8px 8px no-repeat,
    linear-gradient(180deg, #241B12, #120D08);
  border-radius: 3px;
  box-shadow: 0 0 0 1px #0A0704, 0 0 0 3px #B8863A, 0 0 0 4px #0A0704, inset 0 2px 8px rgb(0 0 0 / .7), inset 0 0 0 1px rgb(246 215 126 / .16);
}
.addr { margin-top: 18px; }
.addr-label { text-align: center; }
/* Join the Discord: a violet aurora seal in a gold rim (no flat blurple) */
.btn-discord {
  --bb: var(--discord); --bbh: var(--discord-h);
  --bi: #FBF6FF; --be: var(--discord-edge); --bhi: rgb(226 212 255 / .35); --ring: rgb(246 215 126 / .55);
  text-shadow: 0 1px 0 rgb(18 8 48 / .7);
}
.btn-discord, .btn-discord:hover { background: var(--bb); }
.btn-discord:hover { background: var(--bbh); }
.btn-discord { box-shadow: inset 0 0 0 1px var(--ring), inset 0 1px 0 1px var(--bhi), inset 0 -3px 0 var(--be), 0 0 0 1px #0A0704, 0 0 0 3px #C9973E, 0 0 0 4px #2B1A06, 0 0 22px -6px rgb(46 230 214 / .55); border-color: transparent; }
.btn-discord:active { box-shadow: inset 0 0 0 1px var(--ring), inset 0 -1px 0 var(--be), 0 0 0 1px #0A0704, 0 0 0 3px #C9973E, 0 0 0 4px #2B1A06; }
.btn-discord svg.px { filter: drop-shadow(0 0 4px rgb(46 230 214 / .6)); }
.mp-actions { gap: 14px; margin-top: 16px; }
.btn-primary { box-shadow: inset 0 0 0 1px var(--ring), inset 0 1px 0 1px var(--bhi), inset 0 -3px 0 var(--be), 0 0 0 1px #2B1A06; }
@media (min-width: 1101px) {
  .hero .hero-in { padding-top: 6px; }
  .hero .mp { margin-top: 20px; }
}
@media (min-width: 1101px) and (max-height: 960px) {
  .hero { padding-top: clamp(96px, 7.6vw, 116px); }
  .hero .mp-steps { display: none; }
  .hero .lede::after { margin-top: 12px; width: 260px; }
}

/* ---------- the hotbar's name tag (held item / hover label) in the chronicle system ---------- */
.held { font: 700 13px/1.2 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: #F4EAD2; text-shadow: none;
  padding: 6px 14px 6px; border: 0; border-radius: 2px; background: var(--ink-plate);
  box-shadow: 0 0 0 1px #0A0704, 0 0 0 2px #C9973E, 0 0 0 3px #4A300A, 0 10px 18px -8px rgb(0 0 0 / .6); }
@media (hover: hover) and (min-width: 761px) {
  .navhome .hotbar a:hover .lbl, .navhome .hotbar a:focus-visible .lbl {
    font: 700 13px/1.2 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: #F4EAD2; bottom: calc(100% + 18px);
    padding: 6px 12px; border: 0; border-radius: 2px; background: var(--ink-plate);
    box-shadow: 0 0 0 1px #0A0704, 0 0 0 2px #C9973E, 0 0 0 3px #4A300A;
  }
}

/* ---------- features: printed item slips with gilded sockets ---------- */
.item-btn {
  position: relative; background: var(--slip); border-radius: 1px;
  box-shadow: inset 0 0 0 1px var(--slip-rule), inset 0 0 0 4px transparent, inset 0 0 18px var(--burn);
}
.item-btn::before { inset: 4px -4px -5px 4px; z-index: -1; }
.item-btn:hover, .item.open .item-btn, .item-btn:focus-visible {
  background: var(--c-tl) 0 0 / 30px auto no-repeat, var(--c-br) 100% 100% / 30px auto no-repeat, var(--slip-h);
  box-shadow: inset 0 0 0 1px var(--g1), inset 0 0 18px var(--burn);
}
[data-theme="night"] .item-btn:hover, [data-theme="night"] .item.open .item-btn { background: var(--c-tl) 0 0 / 30px auto no-repeat, var(--c-br) 100% 100% / 30px auto no-repeat, var(--slip-h); }
.item-name { font: 700 15px/1.25 var(--f-display); letter-spacing: .03em; }
.item-btn .slot, .step-n, .toast-slot {
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #3A2C1C, #140E08 70%);
  box-shadow: 0 0 0 1px #0A0704, 0 0 0 3px #D7A040, 0 0 0 4px #6B4410, inset 0 3px 8px rgb(0 0 0 / .7), inset 0 0 0 1px rgb(246 215 126 / .22);
}
.item-btn .slot { margin: 4px; width: 56px; height: 56px; }
.item-btn .slot::after { border-radius: 50%; inset: 0; background: radial-gradient(closest-side, rgb(46 230 214 / .3), transparent); }
.item-btn svg.px { width: 40px; height: 40px; }
.step-n { color: #F4EAD2; }
@media (max-width: 760px) {
  .item-btn .slot { margin: 2px; width: 38px; height: 38px; }
  .item-btn svg.px { width: 28px; height: 28px; }
  .item-name { font-size: 13px; letter-spacing: .01em; }
  .item-btn:hover, .item.open .item-btn, .item-btn:focus-visible { background: var(--c-tl) 0 0 / 22px auto no-repeat, var(--c-br) 100% 100% / 22px auto no-repeat, var(--slip-h); }
}
.inv-label { text-align: center; }
.inv-label::before, .inv-label::after { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 12px; vertical-align: 2px; transform: rotate(45deg); background: var(--gold-t); }

/* ---------- rules: gilded corner protectors on the codex ---------- */
.book::before { inset: 10px -10px -12px 10px; z-index: -1; }
.book::after { content: ""; position: absolute; inset: -10px; z-index: 3; pointer-events: none;
  background: var(--c-tl) 0 0 / 76px auto no-repeat, var(--c-tr) 100% 0 / 76px auto no-repeat, var(--c-bl) 0 100% / 76px auto no-repeat, var(--c-br) 100% 100% / 76px auto no-repeat; }
@media (max-width: 760px) { .book::after { inset: -6px; background-size: 44px auto; } }

/* ---------- discord CTA ---------- */
.cta h2::after { margin-left: 0; background-position: left center; width: min(360px, 80%); }

/* ---------- footer: a book colophon ---------- */
.foot { text-align: center; }
.foot-in { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 22px; }
.foot-crest { width: 92px; height: auto; filter: drop-shadow(0 10px 14px rgb(30 18 6 / .35)); }
.foot-brand { flex-direction: column; gap: 6px; padding-top: 0; }
.foot-brand > img { display: none; }
.foot-name { font: 800 26px/1.1 var(--f-display); letter-spacing: .1em; }
.foot-brand::after { content: ""; display: block; width: min(380px, 78vw); aspect-ratio: 900 / 121; margin: 10px auto 0; background: var(--divider) center / contain no-repeat; opacity: var(--divider-o); }
.foot-nav { justify-content: center; text-align: center; }
.foot-col a { justify-content: center; }
.foot-h { font: 700 12px/1 var(--f-display); letter-spacing: .24em; }
.foot-legal { width: 100%; font: 600 13px/1.6 var(--f-display); letter-spacing: .05em; border-top: 0; padding-top: 18px; position: relative; }
.foot-legal::before { content: ""; position: absolute; top: 0; left: 50%; width: min(520px, 90%); height: 1px; translate: -50% 0; background: linear-gradient(90deg, transparent, var(--g1), transparent); }
.foot-legal a { font-family: var(--f-body); letter-spacing: 0; }

/* ---------- the in-game layer (rank lore, supporter cards, tooltips): warm ink plates set into the page ---------- */
.lore-side { border-left-color: rgb(215 160 64 / .4); }
@media (max-width: 760px) { .lore-side { border-top-color: rgb(215 160 64 / .4); } }
.ls-stat { background: rgb(246 215 126 / .05); box-shadow: inset 0 0 0 1px rgb(215 160 64 / .42); }
.lore-card, .sup-card {
  position: relative;
  background:
    var(--c-tl) 0 0 / 34px auto no-repeat padding-box, var(--c-tr) 100% 0 / 34px auto no-repeat padding-box,
    var(--c-bl) 0 100% / 34px auto no-repeat padding-box, var(--c-br) 100% 100% / 34px auto no-repeat padding-box,
    radial-gradient(120% 90% at 50% 0%, rgb(246 215 126 / .06), transparent 70%) padding-box,
    linear-gradient(var(--tip-bg), var(--tip-bg)) padding-box,
    linear-gradient(180deg, var(--tip-b1), var(--tip-b2)) border-box;
}
.lore-card { padding: 24px 30px 26px; }
.sup-card { padding: 26px 28px 26px; }
.sup-card { --tip-b1: #D7A040; --tip-b2: color-mix(in oklab, var(--c) 70%, #000); }
.xp-level { font: 800 44px/1 var(--f-display); color: #F6D77E; text-shadow: 0 2px 0 #3A2408, 0 0 14px rgb(46 230 214 / .45); }
[data-theme="day"] .xp-level { color: #8A5A14; text-shadow: 0 1px 0 rgb(255 248 228 / .8); }
.xp-bar { height: 20px; background: #17110B; box-shadow: 0 0 0 1px #0A0704, 0 0 0 3px #C9973E, 0 0 0 4px #4A300A; }
.xp-fill { background: linear-gradient(180deg, #C9FFF7 0 22%, #2EE6D6 22% 66%, #0F8F86 66%); box-shadow: 0 0 16px rgb(46 230 214 / .35); }
.bar i { background: linear-gradient(180deg, #C9FFF7 0 34%, #2EE6D6 34% 70%, #0F8F86 70%); }
.sup-pips-row i { background: color-mix(in oklab, #2EE6D6, #8B5CF6 calc(var(--i) * 4%)); }
.plate, .lightbox .btn-icon { background: rgb(23 17 11 / .9); }
/* the F3 coordinates readout: in-game layer, warm ink instead of slate grey */
.f3 li { background: rgb(23 17 11 / .9); color: #EEE2C6; box-shadow: inset 0 0 0 1px rgb(215 160 64 / .22); }
.f3 li:nth-child(odd) { background: rgb(36 27 18 / .9); }

/* ---------- hub pages (panel, leaderboards, guide, staff): the same chapter-head system ---------- */
header.hubhead { position: relative; text-align: center; padding-top: calc(var(--vig-w) * .92 + clamp(30px, 3.6vw, 48px)); }
header.hubhead::before, header.hubhead::after { margin-top: clamp(30px, 3.6vw, 48px); }
header.hubhead .eyebrow { justify-content: center; }
header.hubhead h1 { margin-inline: auto; max-width: 22ch; }
header.hubhead .sec-lede { margin: 18px auto 0; max-width: 62ch; text-align: left; }
header.hubhead[data-vig="helm"] { --vig: url(/assets/chronicle/orn/vig-helm-240.webp); }
header.hubhead[data-vig="arms"] { --vig: url(/assets/chronicle/orn/vig-arms-240.webp); }
header.hubhead[data-vig="tome"] { --vig: url(/assets/chronicle/orn/vig-tome-240.webp); }
header.hubhead[data-vig="scroll"] { --vig: url(/assets/chronicle/orn/vig-scroll-240.webp); }
header.hubhead[data-vig="chest"] { --vig: url(/assets/chronicle/orn/vig-chest-240.webp); }
/* r7 B: on hub pages the head's ornaments (the divider under the title, the vignette above the eyebrow, the footer
   divider) are fetched once the page's main panel is painted (hub.js sets body[data-orn] on its LCP entry, else 800 ms
   after the first .panel lands, 5 s at most). Not /guide/: perf-boot already defers its ornaments, and flipping an
   inherited custom property on <body> there restyles all ~6,800 Codex elements (a 150 ms task at 4x CPU, r7_trace). Before that
   they were ~60 KB competing with hub.js and the /api/* data on a slow link. Their boxes keep their size (the divider
   is a sized ::after, the vignette is absolutely placed), so nothing moves when they appear. No JS: drawn as before.
   The vignette needs both: Chromium fetches a pseudo's images even while it is content: none (that is how the dead
   dropcap tile was fetched), and --vig: none alone would paint an unmasked ink square. */
/* (set on the divider hosts themselves, not on <body>: an inherited property flipped on <body> restyles every element
   of the page, 1,100 on /player/; here only these few and the vignette head are invalidated) */
.js .hubpage:not([data-page="guide"]):not([data-orn]) :is(.hubhead h1, .sec-head h2, .cta h2, .dl-h2, .foot, .foot-brand) { --divider: none; }
.js .hubpage:not([data-page="guide"]):not([data-orn]) header.hubhead { --vig: none; }
.js .hubpage:not([data-page="guide"]):not([data-orn]) header.hubhead::after { content: none; }
/* vignette clearance: the night roundel is 1.06 × the vignette tall, keep the eyebrow clear of it */
.sec-head { padding-top: calc(var(--vig-w) * 1.08 + 16px); }
header.hubhead { padding-top: calc(var(--vig-w) * 1.08 + 16px + clamp(30px, 3.6vw, 48px)); }
/* corner scale follows the panel: key home panels get the full filigree, dense hub cards a smaller one, stat tiles a small one */
.panel.card, .g-card, .g-step, .g-help, .waypoints { --cs: clamp(36px, 3.3vw, 48px); }
.g-q, .lbtop .panel, .facts .panel, .st-stat.panel, .sup-loyal { --cs: clamp(26px, 2.2vw, 32px); }
/* drop-capped intros wrap to two or three lines so the illuminated initial never hangs below a one-line sentence */
.sec-head .sec-lede, header.hubhead .sec-lede { max-width: 48ch; }
@media (max-width: 760px) { .sec-head .sec-lede, header.hubhead .sec-lede { max-width: none; } }
/* guide: section titles carry the filigree rule, step numbers sit in gilded sockets, the address is a brass plaque */
.g-h2::after { content: ""; display: block; width: min(300px, 70%); aspect-ratio: 900 / 121; margin-top: 8px; background: var(--divider) left center / contain no-repeat; opacity: var(--divider-o); }
.g-n.slot { border-radius: 50%; color: #F4EAD2; text-shadow: 0 1px 0 #000; font-weight: 700;
  background: radial-gradient(circle at 50% 38%, #3A2C1C, #140E08 70%);
  box-shadow: 0 0 0 1px #0A0704, 0 0 0 3px #D7A040, 0 0 0 4px #6B4410, inset 0 3px 8px rgb(0 0 0 / .7); }
.g-n.slot::after { content: none; }
.guide .g-addr-field { display: inline-block; padding: 10px 18px;
  color: #F2D58A; text-shadow: 0 -1px 0 #000; border: 0; border-radius: 3px;
  background: linear-gradient(180deg, #241B12, #120D08);
  box-shadow: 0 0 0 1px #0A0704, 0 0 0 3px #B8863A, 0 0 0 4px #0A0704, inset 0 2px 8px rgb(0 0 0 / .7);
}
/* desktop: the whole hero spread ends above the hotbar dock (no crowding at the fold) */
@media (min-width: 1101px) {
  .hero .mp { padding: 18px 24px 16px; margin-top: 14px; }
  .hero .entry { margin-top: 0; }
  .hero .entry-cap { margin-top: 8px; }
  .hero .entry-foot { margin-top: 2px; }
  .hero .addr { margin-top: 10px; }
  .hero .mp-actions { margin-top: 10px; gap: 10px; }
  .hero .mp-actions .btn { min-height: 48px; }
  .hero .lede::after { margin-top: 10px; width: 220px; }
}
.slot-result.step-n { color: #F4EAD2; }
.slot-result.step-n svg, .step-n svg { color: #F4EAD2; }

/* player hub: advancement toasts and the guild title in the in-game ink layer */
.advs li { background: #17110B; box-shadow: 0 0 0 1px #0A0704, 0 0 0 2px rgb(215 160 64 / .55), inset 0 0 0 1px rgb(246 215 126 / .1); }
.advs .slot { border-radius: 50%; background: radial-gradient(circle at 50% 38%, #3A2C1C, #140E08 70%); box-shadow: 0 0 0 1px #0A0704, 0 0 0 2px #D7A040, inset 0 3px 8px rgb(0 0 0 / .7); }
.advs .at { color: #F6D77E; }
.advs .ad { color: #E6DCC4; }
.gtitle .gtag::before { width: .3em; height: .3em; margin-right: .3em; vertical-align: .22em; transform: rotate(45deg); box-shadow: 0 0 0 1px var(--ink), 0 0 0 3px rgb(215 160 64 / .6); }
/* server card: corners scaled to the card and the head line kept clear of the filigree */
.mp { --cs: clamp(38px, 3.4vw, 50px); }
.mp-head { padding-inline: calc(var(--cs) * .5 - 18px); }
.hero .mp, .mp { padding-top: calc(var(--cs) * .5 + 8px); }
@media (max-width: 420px) {
  .addr-field { padding: 11px 18px; font-size: 14px; letter-spacing: 0; background-position: 7px 50%, calc(100% - 7px) 50%, 0 0; }
}
/* phones: the cloud band (desktop-only rule above) is never requested: the portrait plate fills the hero; saves 191 KB */
/* the in-game chat box: warm ink plate with gilded keyline + small corners; copied state in teal, not Minecraft green */
.chat { padding: 16px 14px 12px; background: var(--c-tl) 0 0 / 30px auto no-repeat, var(--c-tr) 100% 0 / 30px auto no-repeat, var(--c-bl) 0 100% / 30px auto no-repeat, var(--c-br) 100% 100% / 30px auto no-repeat, rgb(23 17 11 / .94);
  box-shadow: 0 0 0 1px #0A0704, 0 0 0 3px rgb(201 151 62 / .9), 0 0 0 4px #2B1A06; isolation: isolate; }
.chat::before { content: ""; position: absolute; z-index: -1; inset: 9px -9px -10px 9px; pointer-events: none; background: repeating-linear-gradient(135deg, var(--hatch-ink) 0 var(--hatch-w), transparent var(--hatch-w) 4px); }
.chat-lines button { color: #E6DCC4; }
.chat-lines span { color: #CFC3A6; }
.chat-lines button:hover { background: rgb(246 215 126 / .08); }
.chat-lines button:hover code { color: #F6D77E; }
.chat-lines button.is-copied code, .chat-out { color: #6FE3D6; }
.chat-out { border-top-color: rgb(215 160 64 / .22); }
.chat-out:empty::before { color: #B3A78E; }
/* item slips cast their own hatched shadow */
.item-btn { isolation: isolate; }
/* hatched shadows UNDER their sheet: inside an isolated element, negative-z pseudos paint above the element's own
   background, so the sheet moves to ::after (painted after the ::before hatch) and the element itself is transparent */
.mp, .item-btn, .chat { isolation: isolate; }
.mp::before, .item-btn::before, .chat::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(135deg, var(--hatch-ink) 0 var(--hatch-w), transparent var(--hatch-w) 4px);
}
.mp::before { inset: 7px -7px -8px 7px; }
.item-btn::before { inset: 4px -4px -5px 4px; }
.mp::after, .item-btn::after, .chat::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--sheet-bg); box-shadow: var(--sheet-sh, none); }
.mp { --sheet-bg:
    var(--c-tl) 0 0 / var(--cs) auto no-repeat, var(--c-tr) 100% 0 / var(--cs) auto no-repeat,
    var(--c-bl) 0 100% / var(--cs) auto no-repeat, var(--c-br) 100% 100% / var(--cs) auto no-repeat,
    linear-gradient(var(--g1), var(--g1)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--g1), var(--g1)) 0 100% / 100% 1px no-repeat,
    linear-gradient(var(--g1), var(--g1)) 0 0 / 1px 100% no-repeat, linear-gradient(var(--g1), var(--g1)) 100% 0 / 1px 100% no-repeat,
    linear-gradient(var(--g2), var(--g2)) 0 4px / 100% 1px no-repeat, linear-gradient(var(--g2), var(--g2)) 0 calc(100% - 4px) / 100% 1px no-repeat,
    linear-gradient(var(--g2), var(--g2)) 4px 0 / 1px 100% no-repeat, linear-gradient(var(--g2), var(--g2)) calc(100% - 4px) 0 / 1px 100% no-repeat,
    linear-gradient(90deg, var(--burn), transparent) 0 0 / 56px 100% no-repeat, linear-gradient(270deg, var(--burn), transparent) 100% 0 / 56px 100% no-repeat,
    linear-gradient(180deg, var(--burn), transparent) 0 0 / 100% 56px no-repeat, linear-gradient(0deg, var(--burn), transparent) 0 100% / 100% 56px no-repeat,
    var(--sheet);
  background: none; }
.mp::after { z-index: -1; }
.item-btn, .item-btn:hover, .item.open .item-btn, .item-btn:focus-visible,
[data-theme="night"] .item-btn:hover, [data-theme="night"] .item.open .item-btn { background: none; box-shadow: none; }
.item-btn { --sheet-bg: var(--slip); --sheet-sh: inset 0 0 0 1px var(--slip-rule), inset 0 0 18px var(--burn); }
.item-btn:hover, .item.open .item-btn, .item-btn:focus-visible {
  --sheet-bg: var(--c-tl) 0 0 / 30px auto no-repeat, var(--c-br) 100% 100% / 30px auto no-repeat, var(--slip-h);
  --sheet-sh: inset 0 0 0 1px var(--g1), inset 0 0 18px var(--burn); }
@media (max-width: 760px) {
  .item-btn:hover, .item.open .item-btn, .item-btn:focus-visible { --sheet-bg: var(--c-tl) 0 0 / 22px auto no-repeat, var(--c-br) 100% 100% / 22px auto no-repeat, var(--slip-h); }
}
.chat { background: none; --sheet-bg: var(--c-tl) 0 0 / 30px auto no-repeat, var(--c-tr) 100% 0 / 30px auto no-repeat, var(--c-bl) 0 100% / 30px auto no-repeat, var(--c-br) 100% 100% / 30px auto no-repeat, rgb(23 17 11 / .96); }
/* audit: no 12px small caps, no one-word last lines in chapter intros */
.foot-h, .addr-label, .page-no { font-size: 13px; }
.sec-lede { text-wrap: pretty; }
/* focus inside the dark in-game plates stays ≥3:1 in the daylight theme too (teal gem ring, as at night) */
.chat :focus-visible, .entry :focus-visible, .lore-card :focus-visible, .sup-card :focus-visible, .addr-field:focus-visible { outline-color: #2EE6D6; }
/* r6 UX-56: in Daylight the chat, lore and supporter plates are cream sheets (a later layer), so their rings use the
   theme focus ink (violet, ≥3:1 on cream); the server-list entry and the address plaque stay dark, so they keep teal */
[data-theme="day"] :is(.chat, .lore-card, .sup-card) :focus-visible, [data-theme="day"] .lore-card:focus-visible { outline-color: var(--focus); }
/* the hotbar's teal ring: in the Daylight Menu sheet the slots are cream cards (violet ring there); on the floating
   desktop hotbar the ring tucks into the bar's own dark rim instead of landing 6px out on the cream page */
[data-theme="day"] .menu .hotbar a:focus-visible { outline-color: #5B3FB0; }
@media (min-width: 1101px) { [data-theme="day"] .navhome .hotbar a:focus-visible { outline-offset: 1px; } }

/* ---------- final polish: 44px targets on narrow phones ---------- */
@media (max-width: 419px) {
  /* ten rank tabs fold into two rows of five so each tab stays >= 44px wide */
  .tiers { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 6px; }
  .tier { min-width: 44px; min-height: 44px; }
}
.foot-col a { min-width: 44px; }
@media (max-width: 419px) {
  /* caret follows the picked tier's column in the 5-wide grid: column = sel mod 5 */
  .js .lores::before { left: calc((mod(var(--sel, 6), 5) + .5) / 5 * 100% - 16px); }
}

/* ---------- mobile polish (2026-11-13) ---------- */
@media (max-width: 760px) {
  /* the hero plate leaves room for the headline above the fold (plate keeps its 2:3 shape, nothing cropped) */
  .rv-hero { width: min(100%, calc(min(50svh, 100svh - 340px) * 2 / 3)); }
  .hero-plate .pl-cap { width: min(100%, calc(min(50svh, 100svh - 340px) * 2 / 3 + 72px)); }
  /* the illuminated initial spans two lines on phones instead of hanging past short intros */
  [data-initial]::before { font-size: 2.15em; margin: .08em .26em 0 -.02em; }
}
@media (max-width: 480px) {
  /* footer address: the edition drops to its own line without a stray leading dot */
  .foot-addr .nobr { display: block; margin-top: 2px; }
  .foot-addr .fa-sep { display: none; }
}
/* empty-server card: the grid track never grows past the panel (overflowed 13px at 320 when nobody was online) */
@media (max-width: 380px) { .quiet-cta { flex-wrap: wrap; justify-content: center; row-gap: 2px; white-space: normal; } }

/* =====================================================================================================================
   POLISH-10 (round 1, home lane): craft pass over the Chronicle system. Overrides the layers above; class names and JS
   hooks unchanged. Sections: S1 initials, S2/S3 chapter heads + breaks, S4 colophon, S5 header, S6 buttons, then home.
   ===================================================================================================================== */

/* ---------- S1 manuscript initials ----------
   The REAL first letter is styled (::first-letter), so the word stays whole for screen readers and copy/paste and no
   duplicate letter is drawn. Default (every page, no JS needed): a RAISED gilded initial, two lines tall and sunk one
   line, so it never hangs beside a one- or two-line sentence. When a paragraph really runs to 3+ lines at the current
   width, app.js adds .cap-drop: a true gilded drop cap exactly three lines deep (no tile).
   Browsers without initial-letter get a plain gilded letter. */
[data-initial] { display: block; }
[data-initial]::before { content: none; }
[data-initial]::first-letter, .sec-lede[data-initial]::first-letter {
  font: 800 1.12em/1 'Cinzel', Georgia, serif; letter-spacing: 0; margin: 0 .02em 0 0;
  color: var(--gold-ink); text-shadow: 0 1px 0 rgb(26 15 6 / .85);
}
[data-theme="day"] [data-initial]::first-letter { text-shadow: 0 1px 0 rgb(255 248 228 / .9); }
@supports (initial-letter: 2) or (-webkit-initial-letter: 2) {
  [data-initial]::first-letter, .sec-lede[data-initial]::first-letter {
    -webkit-initial-letter: 2 1; initial-letter: 2 1; font-size: 1em; line-height: inherit; margin: 0 .1em 0 0;
  }
  [data-initial].cap-drop::first-letter {
    -webkit-initial-letter: 3; initial-letter: 3; margin: 0 .16em 0 0; padding: 0;
    color: var(--gold-ink); text-shadow: 0 2px 0 rgb(26 15 6 / .9), 0 0 1px rgb(26 15 6 / .9), 0 0 18px rgb(232 180 74 / .22);
  }
  [data-theme="day"] [data-initial].cap-drop::first-letter { text-shadow: 0 2px 0 rgb(255 248 228 / .95), 0 0 1px rgb(122 76 16 / .5); }
}

/* ---------- S2 + S3 chapter heads and chapter breaks ----------
   One continuous printed leaf: the full-bleed tinted bands (and their edge-to-edge hairlines, which crossed the gilded
   page border) are gone. Each chapter opens with a smaller gilt-tooled vignette on a short double rule instead.
   Rhythm comes from one token: --sec-y (68px desktop / 36px phone each side = 136 / 72 between chapters).
   Big chapters (features, ranks, gallery) keep the centred title page; status, map, join and rules use an editorial
   split head on desktop (vignette + title on the left, the intro in a ruled column on the right). */
:root { --sec-y: clamp(36px, 4.8vw, 68px); --vig-w: clamp(60px, 5.2vw, 76px); }
#features, #map, #join { background: none; box-shadow: none; }
.sec-head { max-width: 900px; padding-top: calc(var(--vig-w) + 14px); margin-bottom: clamp(28px, 3.4vw, 44px); }
header.hubhead { padding-top: calc(var(--vig-w) + 14px + clamp(30px, 3.6vw, 48px)); }
.sec-head h2, header.hubhead h1 { max-width: 24ch; }
.sec-head h2::after, .hubhead h1::after, .cta h2::after { width: min(340px, 80%); margin-top: 10px; }
.sec-head .eyebrow, header.hubhead .eyebrow { margin-bottom: 10px; }
/* the vignette: ink on daylight parchment, gilt tooling at night (no roundel sticker) */
.sec-head::after, header.hubhead::after { width: var(--vig-w); top: 0; }
[data-theme="night"] .sec-head::after, [data-theme="night"] header.hubhead::after { width: var(--vig-w); top: 0; background-color: rgb(226 178 82 / .92); }
/* the chapter rule the vignette sits on (both themes) */
.sec-head::before, header.hubhead::before, [data-theme="night"] .sec-head::before, [data-theme="night"] header.hubhead::before {
  content: ""; position: absolute; top: calc(var(--vig-w) / 2 - 3px); left: 50%; translate: -50% 0; width: min(620px, 94%); height: 6px;
  border-radius: 0; box-shadow: none; aspect-ratio: auto;
  background:
    linear-gradient(90deg, transparent, var(--g1)) 0 0 / calc(50% - var(--vig-w) * .78) 1px no-repeat,
    linear-gradient(270deg, transparent, var(--g1)) 100% 0 / calc(50% - var(--vig-w) * .78) 1px no-repeat,
    linear-gradient(90deg, transparent, var(--g2)) 24% 5px / calc(38% - var(--vig-w) * .78) 1px no-repeat,
    linear-gradient(270deg, transparent, var(--g2)) 76% 5px / calc(38% - var(--vig-w) * .78) 1px no-repeat;
}
header.hubhead::before, header.hubhead::after { margin-top: clamp(30px, 3.6vw, 48px); }
/* intro under a centred title: the box shrinks to its longest line, so the ragged-left text sits optically centred */
.sec-head .sec-lede, header.hubhead .sec-lede { width: fit-content; max-width: min(56ch, 100%); margin-inline: auto; }
/* split chapter heads, all seven home chapters at ≥1101 and on phones (p11r2 HOME folded four later copies into this
   one rule): crest left, eyebrow + title beside it, the chapter rule under the whole head. Wide screens put the lede
   beside the title block behind a hairline; phones run it full width under the head. Plain id lists (not :is()) keep
   the below-the-fold heads out of the inline critical CSS (tools/perf_css.py). */
@media (max-width: 760px), (min-width: 1101px) {
  #status .sec-head, #features .sec-head, #ranks .sec-head, #latest .sec-head, #map .sec-head, #gallery .sec-head, #join .sec-head { display: grid; max-width: none; margin-inline: 0; padding-top: 0; text-align: left; }
  #status .sec-head::after, #features .sec-head::after, #ranks .sec-head::after, #latest .sec-head::after, #map .sec-head::after, #gallery .sec-head::after, #join .sec-head::after { position: static; translate: none; grid-column: 1; grid-row: 1 / span 2; }
  #status .sec-head::before, #features .sec-head::before, #ranks .sec-head::before, #latest .sec-head::before, #map .sec-head::before, #gallery .sec-head::before, #join .sec-head::before {
    top: auto; bottom: 0; left: 0; translate: none; width: 100%; height: 6px;
    background:
      linear-gradient(90deg, var(--g1), var(--g1) 60%, transparent) 0 0 / 100% 1px no-repeat,
      linear-gradient(90deg, var(--g2), transparent 70%) 0 5px / 100% 1px no-repeat;
  }
  #status .sec-head .eyebrow, #features .sec-head .eyebrow, #ranks .sec-head .eyebrow, #latest .sec-head .eyebrow, #map .sec-head .eyebrow, #gallery .sec-head .eyebrow, #join .sec-head .eyebrow { grid-column: 2; justify-content: flex-start; margin-bottom: 6px; }
  #status .sec-head h2, #features .sec-head h2, #ranks .sec-head h2, #latest .sec-head h2, #map .sec-head h2, #gallery .sec-head h2, #join .sec-head h2 { grid-column: 2; margin-inline: 0; max-width: none; }
}
@media (min-width: 1101px) {
  #status .sec-head, #features .sec-head, #ranks .sec-head, #latest .sec-head, #map .sec-head, #gallery .sec-head, #join .sec-head {
    grid-template-columns: var(--vig-w) minmax(min-content, 1fr) minmax(0, 40ch); column-gap: clamp(22px, 2.4vw, 40px);
    align-items: end; padding-bottom: 16px;
  }
  #status .sec-head::after, #features .sec-head::after, #ranks .sec-head::after, #latest .sec-head::after, #map .sec-head::after, #gallery .sec-head::after, #join .sec-head::after { align-self: start; margin-top: 2px; }
  #status .sec-head h2, #features .sec-head h2, #ranks .sec-head h2, #latest .sec-head h2, #map .sec-head h2, #gallery .sec-head h2, #join .sec-head h2 { white-space: nowrap; }
  #status .sec-head h2::after, #features .sec-head h2::after, #ranks .sec-head h2::after, #latest .sec-head h2::after, #map .sec-head h2::after, #gallery .sec-head h2::after, #join .sec-head h2::after { margin-left: 0; margin-top: 6px; background-position: left center; width: min(230px, 70%); }
  #status .sec-head .sec-lede, #features .sec-head .sec-lede, #ranks .sec-head .sec-lede, #latest .sec-head .sec-lede, #map .sec-head .sec-lede, #gallery .sec-head .sec-lede, #join .sec-head .sec-lede {
    grid-column: 3; grid-row: 1 / span 2; align-self: center; width: auto; max-width: none; margin: 0; padding-block: 6px;
    padding-left: clamp(22px, 2.2vw, 34px); box-shadow: inset 1px 0 0 var(--g2); text-align: left; text-wrap: pretty;
  }
  /* the side lede is short meta text: never a three-line drop cap there */
  #status .sec-head .sec-lede.cap-drop::first-letter, #features .sec-head .sec-lede.cap-drop::first-letter, #ranks .sec-head .sec-lede.cap-drop::first-letter, #latest .sec-head .sec-lede.cap-drop::first-letter, #map .sec-head .sec-lede.cap-drop::first-letter, #gallery .sec-head .sec-lede.cap-drop::first-letter, #join .sec-head .sec-lede.cap-drop::first-letter {
    font: inherit; color: inherit; text-shadow: none; margin: 0; padding: 0; float: none; line-height: inherit; letter-spacing: inherit;
    -webkit-initial-letter: normal; initial-letter: normal; }
}
.sec-head .sec-lede, header.hubhead .sec-lede { max-width: min(50ch, 100%); text-wrap: balance; }
@media (max-width: 760px) { .sec-head .sec-lede, header.hubhead .sec-lede { width: auto; max-width: none; text-wrap: pretty; } }

/* ---------- S6 Discord buttons: a deep violet enamel seal in a gold rim (the gem accent), never blurple ----------
   One shared class: hero, Discord chapter, hub "Log in with Discord" / "Open the Discord" all inherit it. */
:root, [data-theme="night"], [data-theme="day"] {
  --discord: linear-gradient(180deg, rgb(255 246 220 / .08), transparent 42%), radial-gradient(120% 150% at 50% -40%, rgb(139 108 230 / .38), transparent 62%), linear-gradient(180deg, #2E1C55 0%, #21133F 56%, #170C2D 100%);
  --discord-h: linear-gradient(180deg, rgb(255 246 220 / .12), transparent 42%), radial-gradient(120% 150% at 50% -40%, rgb(160 130 245 / .5), transparent 62%), linear-gradient(180deg, #382366 0%, #29184D 56%, #1C0F36 100%);
  --discord-edge: #0D0620;
}
.btn-discord, .btn-discord:hover { color: #F6EBD0; text-shadow: 0 1px 0 rgb(10 4 24 / .8); }
.btn-discord {
  --bi: #F6EBD0; --ring: rgb(246 215 126 / .34); --bhi: rgb(226 212 255 / .16);
  box-shadow: inset 0 0 0 1px var(--ring), inset 0 1px 0 1px var(--bhi), inset 0 -3px 0 var(--be),
    0 0 0 1px #0A0704, 0 0 0 3px #C9973E, 0 0 0 4px #2B1A06;
}
.btn-discord:hover { box-shadow: inset 0 0 0 1px rgb(246 215 126 / .5), inset 0 1px 0 1px var(--bhi), inset 0 -3px 0 var(--be),
    0 0 0 1px #0A0704, 0 0 0 3px #E2B04C, 0 0 0 4px #2B1A06, 0 6px 18px -8px rgb(91 63 176 / .7); }
.btn-discord:active { box-shadow: inset 0 0 0 1px var(--ring), inset 0 -1px 0 var(--be), 0 0 0 1px #0A0704, 0 0 0 3px #C9973E, 0 0 0 4px #2B1A06; }
/* the Discord glyph is struck in gold, like the rest of the engraved kit; focus keeps the shared ring */
.btn-discord svg.px { filter: grayscale(1) sepia(1) saturate(2.6) hue-rotate(-8deg) brightness(1.18) contrast(1.05) drop-shadow(0 1px 0 rgb(10 4 24 / .8)); }
.btn-discord:focus-visible { outline-offset: 6px; }

/* ---------- S4 the colophon ----------
   A closing fleuron, then crest + name + brass address plaque on the left and three left-aligned link columns on a grid;
   a double gold rule and the disclaimer in the body face. No dead band: the hotbar steps aside at the end of the page
   (app.js), so the footer no longer reserves the dock's height. Same markup in index.html and build_hub_pages.py. */
.foot { text-align: left; background: none; box-shadow: none; padding: 0 0 clamp(30px, 3.4vw, 44px); }
.foot::before { content: ""; display: block; width: min(320px, 72%); aspect-ratio: 900 / 121; margin: 0 auto clamp(30px, 3.6vw, 48px);
  background: var(--divider) center / contain no-repeat; opacity: var(--divider-o); }
.foot-in { grid-template-columns: auto minmax(0, 1fr) auto; justify-items: stretch; align-items: start; gap: 28px clamp(24px, 3vw, 48px); }
.foot-crest { width: 88px; height: auto; margin-top: -4px; }
.foot-brand { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 4px; }
.foot-brand::after { content: none; }
.foot-name { font: 800 24px/1.1 var(--f-display); letter-spacing: .08em; color: var(--ink); }
.foot-addr { margin-top: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.foot-addr code { display: inline-block; margin-right: 10px; padding: 6px 12px; border-radius: 2px; font: 600 14px/1.3 var(--f-mono); letter-spacing: .01em;
  color: #F2D58A; background: linear-gradient(180deg, #241B12, #120D08); text-shadow: 0 -1px 0 #000;
  box-shadow: 0 0 0 1px #0A0704, 0 0 0 2px #B8863A, 0 0 0 3px #0A0704, inset 0 1px 6px rgb(0 0 0 / .6); }
.foot-addr .nobr { display: inline-block; margin-top: 6px; }
.foot-addr .fa-sep { display: none; }
.foot-nav { justify-content: end; text-align: left; grid-template-columns: repeat(3, max-content); gap: 0 clamp(36px, 4.4vw, 72px); }
.foot-col a { justify-content: flex-start; min-height: 44px; font-size: 15px; }
.foot-h { margin-bottom: 4px; font: 700 13px/1 var(--f-display); letter-spacing: .2em; color: var(--gold-ink); text-transform: uppercase; }
.foot-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 28px;
  margin-top: 4px; padding-top: 18px; text-align: left; font: 400 14px/1.55 var(--f-body); letter-spacing: 0; color: var(--ink-3); }
.foot-legal::before { left: 0; top: 0; width: 100%; height: 6px; translate: none;
  background: linear-gradient(90deg, transparent, var(--g1) 10%, var(--g1) 90%, transparent) 0 0 / 100% 1px no-repeat,
              linear-gradient(90deg, transparent, var(--g2) 18%, var(--g2) 82%, transparent) 0 5px / 100% 1px no-repeat; }
.foot-legal a { margin-block: -10px; font: 600 14px/1 var(--f-body); color: var(--ink-2); }
@media (max-width: 900px) {
  .foot-in { grid-template-columns: auto minmax(0, 1fr); }
  .foot-nav { grid-column: 1 / -1; justify-content: start; }
}
@media (max-width: 560px) {
  .foot-in { gap: 22px 16px; }
  .foot-crest { width: 60px; margin-top: 0; }
  .foot-name { font-size: 21px; }
  .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
  .foot-legal { flex-direction: column; align-items: flex-start; }
  .foot-col a { min-height: 44px; }
}

/* ---------- S5 the header: a gilt running head ----------
   Nav labels in the body face with a gold-leaf underline that draws from the centre on hover; the current page is
   marked in gold with a small gem under the label. Pill and panel button share one 44px rhythm. Below 1100 the pill
   keeps only "2/32" (the word stays for screen readers); on phones the tools row shrinks before it ever wraps, and the
   hub nav row is a deliberate, evenly spread band under a hairline. */
.topnav a { position: relative; letter-spacing: .01em; transition: color 120ms var(--ease); }
.topnav a:hover { background: none; color: var(--gold-ink); }
.topnav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 1px; background: currentColor;
  transform: scaleX(0); transition: transform 160ms var(--ease); pointer-events: none;
}
.topnav a:hover::after { transform: scaleX(1); }
.topnav a[aria-current="page"], .topbar .topnav a[aria-current="page"] { color: var(--gold-ink); box-shadow: none; }
.topnav a[aria-current="page"]::after {
  left: 50%; right: auto; bottom: 5px; width: 6px; height: 6px; translate: -50% 0; transform: rotate(45deg);
  background: linear-gradient(135deg, #8FF7EE, var(--gem-t) 55%, #0B3F3B); box-shadow: 0 0 0 1px var(--inkline);
}
[data-theme="day"] .topnav a:hover, [data-theme="day"] .topnav a[aria-current="page"] { color: #7A4C10; }
.live-pill { gap: 9px; font-weight: 600; letter-spacing: .01em; }
.live-pill:hover { box-shadow: inset 0 0 0 1px var(--g1); }
.topbar .theme-toggle:hover, .topbar .nav-staff:hover, .topbar .nav-bell:hover { background: var(--pill-bg-h); box-shadow: inset 0 0 0 1px var(--pill-ring); }
@media (max-width: 1099px) {
  .live-pill .pill-w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .topnav a::after { left: 7px; right: 7px; }
}
@media (max-width: 760px) {
  /* brand + tools stay on one row: the tools box shrinks (pill ellipsizes) instead of wrapping to a second row */
  .topbar.solid .topbar-tools { flex: 1 1 0; justify-content: flex-end; }
  .topbar.solid .topnav {
    display: flex; justify-content: space-between; gap: 0; width: auto; flex: 1 0 100%; margin: 2px 0 0; padding-top: 2px;
    box-shadow: inset 0 1px 0 var(--rule);
  }
  .topbar.solid .topnav a { flex: 0 1 auto; justify-content: center; padding: 0 6px; font-size: 14px; }
  .topbar.solid .topnav a::after { left: 6px; right: 6px; bottom: 7px; }
  .topbar.solid .topnav a[aria-current="page"]::after { left: 50%; right: auto; bottom: 4px; }
  .topbar .theme-toggle, .topbar .nav-staff.btn, .topbar .nav-bell.btn { width: 44px; min-width: 44px; }
  [data-acct]:has(.acct) { min-width: 44px; }
}
@media (max-width: 1099px) {
  /* signed in, the account slot is just the avatar: don't reserve the "My panel" width; icon tools are 44px squares */
  [data-acct]:has(.acct) { min-width: 44px; }
  .topbar .nav-staff.btn-icon, .topbar .nav-bell.btn-icon { width: 44px; min-width: 44px; }
}
@media (max-width: 340px) {
  .live-pill { padding: 0 5px; gap: 4px; }
  .topbar-tools { gap: 1px; }
}
@media (max-width: 420px) {
  /* five labels must fit 288px at 320: the type and side padding scale with the viewport, every target stays >= 44px */
  .topbar.solid .topnav a { min-width: 44px; padding-inline: clamp(2px, .9vw, 6px); font-size: clamp(12.5px, 3.75vw, 14px); }
}
@media (max-width: 420px) { .nav-bell .bell-n { right: 1px; } .live-pill { gap: 6px; } }

/* ---------- H1 + H2 the hero ----------
   Desktop: the headline gets real display scale (it is the page's message), the left column three clear groups
   (headline + lede / the server-list card / the address with ONE primary action), Discord sits beside Join Server as
   the secondary. Phones: the landscape plate (whole scene, rider included) under the title, which now stands on the
   page itself so "REALMS" is crisp; the address comes straight after the headline so it is above the fold at 390x844. */
@media (min-width: 1101px) {
  .hero-grid { grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); }
  .hero .hero-in h1 { font-size: clamp(54px, 4.9vw, 80px); line-height: .98; letter-spacing: .005em; max-width: 11ch; }
  .hero .lede { margin-top: 18px; font-size: 18px; }
  .hero .mp-actions { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; }
  .hero .mp-actions .btn-discord .btn-label { white-space: nowrap; }
}
@media (min-width: 1101px) and (max-height: 920px) {
  .hero .hero-in h1 { font-size: clamp(52px, 4.6vw, 72px); }
  .hero .lede::after { width: 200px; height: 14px; margin-top: 8px; }
}
@media (max-width: 760px) {
  .hero { padding-top: 70px; }
  .hero-grid { gap: 14px; }
  .rv-hero { aspect-ratio: 1672 / 941; width: 100%; margin: 25cqw 0 0; }
  .rv > img.hero-title { width: 50%; top: 0; transform: none; translate: -50% calc(-100% + 3px); }
  .hero-plate .pl-cap { width: 100%; margin-top: 8px; }
  .hero-plate .pl-no { display: inline; margin: 0; }
  .hero-plate .pl-dot { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .hero .hero-in h1 { font-size: clamp(32px, 9.4vw, 40px); }
  .hero h1::after { margin-top: 6px; height: 16px; }
  .hero .lede { margin-top: 8px; font-size: 16px; line-height: 1.5; }
  .hero .lede::after { display: none; }
  .hero .mp { display: flex; flex-direction: column; margin-top: 14px; }
  .hero .mp-head { order: -3; }
  .hero .addr { order: -2; margin-top: 2px; }
  .hero .mp-actions { order: -1; margin: 10px 0 16px; }
}
@media (min-width: 1101px) and (max-height: 880px) { .hero .lede::after { display: none; } .hero .mp { margin-top: 18px; } }

/* ---------- H3 status: players card ----------
   With a few players on, the heads sit in a two-up roster and the card closes with the real activity numbers and a
   join action (same facts as the quiet state), instead of a stretched empty field. */
.hud-players { display: flex; flex-direction: column; }
.hud-act { display: grid; gap: 14px; margin-top: 20px; }
.hud-act .mini { margin-top: 0; }
.hud-act .act-cta { justify-self: start; }
.hud-act[hidden] { display: none; }

/* ---------- H4 features: inventory tiles + the commands sheet ----------
   Tiles: the slot and the title share the top row (title never squeezed beside a 64px slot), the line runs the full tile
   width below in the body face at 15px. Titles stay at <= 2 lines at every width (probe: tools/tileprobe.mjs). */
@media (min-width: 761px) {
  .item-btn { grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 12px; row-gap: 10px; align-items: center; min-height: 0; padding: 14px 14px 16px; }
  .item-btn .slot { grid-row: auto; margin: 0; width: 48px; height: 48px; }
  .item-btn svg.px { width: 34px; height: 34px; }
  .item-name { font-size: 14.5px; line-height: 1.22; letter-spacing: .02em; padding-top: 0; text-wrap: balance; }
  .item-line { grid-column: 1 / -1; align-self: start; font: 400 15px/1.45 var(--f-body); color: var(--ink-2); }
  .inv-grid { gap: 10px; }
  /* commands: head across the top (title + hint on one line), the sheet full width below */
  .cmds { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cmds-copy { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; padding-bottom: 10px; box-shadow: inset 0 -1px 0 var(--g2); }
  .cmds-copy .h3 { font-size: clamp(22px, 2vw, 28px); }
  .cmds-copy p { margin: 0; }
}
/* narrow tiles (5-up below ~1300, 3-up tablets, 2-up phones): the slot sits above the title, so the title gets the
   whole tile width and never runs to three lines */
.inv-grid > .item { container-type: inline-size; }
@container (max-width: 236px) {
  .item-btn { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; justify-items: start; align-items: start; row-gap: 8px; }
  .item-btn .slot { grid-row: auto; }
  .item-name { align-self: start; }
}
@media (max-width: 760px) {
  .item-btn { padding: 10px 10px 12px; }
  .item-name { font-size: 13px; line-height: 1.25; text-wrap: balance; }
}
@media (max-width: 359px) { .item-name { font-size: 12.5px; letter-spacing: 0; } .item-btn { padding-inline: 7px; } .inv { padding-inline: 8px; } }
/* Cinzel's A carries a wide right side-bearing: pull the next letter in so "All" never reads "A ll" */
@supports (initial-letter: 2) or (-webkit-initial-letter: 2) {
  [data-initial="A"]::first-letter, .sec-lede[data-initial="A"]::first-letter, [data-initial="A"].cap-drop::first-letter { margin-right: -.02em; }
}
@media (max-width: 359px) { .inv-label { letter-spacing: .1em; } .inv-label::before, .inv-label::after { margin: 0 8px; } }
@media (max-width: 760px) { .item-btn { min-height: 0; align-content: start; } }

/* ---------- H5 + H6 ranks ladder, detail card and supporters: one system ----------
   The lore card stays the in-game layer (dark sheet, rank colour on the title) but speaks the house type: Cinzel title in
   the rank's own colour (no pixel face, no gradient), a rank-coloured underline, gold small-caps labels, body-face lines.
   Ladder levels are gold small caps. Supporter cards are gilded sheets with a gem-tinted crest band (VIP aurora teal,
   MVP amethyst); the monthly bonus is a row of gilt steps with gem marks at 12 and 24. Rank colours stay recognisable. */
.lore-card, .mc-tip.lore-card { --lore: #D8CCB2; --lore-dim: #C9A15A; }
.rank-title, .sup-card .rank-title {
  font: 800 30px/1.1 var(--f-display); letter-spacing: .03em; color: var(--cf); background: none;
  -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor;
  text-shadow: 0 2px 0 rgb(0 0 0 / .55); padding-bottom: 8px;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--c) 70%, transparent);
}
.rank-title .rg { color: var(--cf); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 60%, transparent)); }
.lore-sub { font: 600 15px/1.4 var(--f-body); letter-spacing: .01em; color: #E8DCC0; margin-top: 10px; }
.lore-h { font: 700 12.5px/1.3 var(--f-display); letter-spacing: .16em; color: #D4A64C; }
.lore-card .lore li, .sup-card .lore li { font-family: var(--f-body); }
.ls-l { font-family: var(--f-body); }
.ls-next { font: 500 15px/1.4 var(--f-body); }
.ls-next-r { font-family: var(--f-body); }
.ls-bonus { color: #F2D58A; }
.tier-lv { font: 700 12.5px/1 var(--f-display); letter-spacing: .14em; color: var(--gold-ink); }
[data-theme="day"] .tier-lv { color: #7A4C10; }
.tier-h { font-family: var(--f-body); font-size: 13px; }
.tier[aria-selected="true"] .tier-name { text-decoration: none; color: var(--gold-ink); }
[data-theme="day"] .tier[aria-selected="true"] .tier-name { color: #7A4C10; }
/* supporters */
.sup-card { --tip-b1: #D7A040; --tip-b2: #6B4612; --gem: var(--c); }
.sup-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gem) 70%, #F6D77E) 18%, color-mix(in srgb, var(--gem) 70%, #F6D77E) 82%, transparent);
  opacity: .85;
}
.sup-kind { font: 700 12.5px/1.3 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: #D4A64C; margin-top: 0; }
.sup-card .ls-stat { box-shadow: inset 0 0 0 1px rgb(215 160 64 / .45); background: rgb(246 215 126 / .04); }
.sup-card .lore li::before { background: #D4A64C; transform: rotate(45deg); }
.sup-card .lore code { color: #F4EAD2; }
.sup-pips-row i {
  background: linear-gradient(180deg, #F6D77E, #C9973E 55%, #8A5A14);
  box-shadow: inset 0 1px 0 rgb(255 248 220 / .55), 0 0 0 1px #2B1A06;
  opacity: calc(.45 + var(--i) * .023);
}
.sup-pips-row i:nth-child(12), .sup-pips-row i:nth-child(24) {
  background: linear-gradient(180deg, #C9FFF7, #2EE6D6 55%, #0F8F86); box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 0 0 1px #0A3A36; opacity: 1;
}
.sup-loyal-p strong { color: var(--gold-ink); }
[data-theme="day"] .sup-loyal-p strong { color: #7A4C10; }
@media (max-width: 760px) { .rank-title, .sup-card .rank-title { font-size: 26px; } }
.lore-card { --tip-b2: #6B4612; }
.sup-card .btn-soon { --bb: #221A12; --bbh: #221A12; --bi: #E8DCC0; --be: #0E0A06; --bhi: rgb(255 248 220 / .06); --ring: rgb(215 160 64 / .5); }
.xp-scale { font: 700 12px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
[data-theme="day"] .sup-loyal-h { color: #7A4C10; }

/* ---------- H7 map: the waypoints gazetteer ----------
   The grey F3-debug bars (a black slab in the day theme) become a ruled gazetteer: a real table, X Y Z headed at the top,
   place names in the body face, coordinates in tabular mono, hairline rules on the panel. */
.wp-table { width: 100%; border-collapse: collapse; margin-top: 4px; font-variant-numeric: tabular-nums; }
.wp-table th, .wp-table td { padding: 9px 0; box-shadow: inset 0 -1px 0 var(--rule); text-align: right; }
.wp-table thead th { padding: 0 0 7px; font: 700 12px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--label); box-shadow: inset 0 -1px 0 var(--g2); }
.wp-table thead th:first-child, .wp-table tbody th { text-align: left; }
.wp-table tbody th { font: 600 15.5px/1.3 var(--f-body); color: var(--ink); padding-right: 10px; }
.wp-table td { width: 4.6ch; padding-left: 10px; font: 600 14.5px/1.3 var(--f-mono); color: var(--ink-2); }
.wp-table tbody tr:last-child > * { box-shadow: none; }
.wp-table tbody tr { transition: background-color 120ms var(--ease); }
.wp-table tbody tr:hover { background: var(--ghost-h); }
.wp-h { margin-top: 22px; }

/* ---------- H8 join: card titles in the house display face (as Waypoints), the closing line a gilt label ---------- */
#join .h3 { font: 700 21px/1.2 var(--f-display); letter-spacing: .03em; }
#join .h3 .ui { vertical-align: -3px; }
.step-done { font: 700 13px/1.2 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); padding: 10px 14px 10px 12px; box-shadow: inset 0 0 0 1px var(--g2); }
[data-theme="day"] .step-done { color: #7A4C10; }
.step-done .ui { color: var(--teal); }
[data-theme="day"] .step-done .ui { color: #0E6F67; }
/* a plain gilt line, not a box: it must never read as a button */
.step-done { box-shadow: none; padding: 12px 0 2px; }

/* S5b: narrow bars must survive every pill state (not just "2/32"): the long labels lose their first word, and below
   900 a non-online pill is the state dot alone (label sr-only), so the signed-in staff bar fits at 768 and 320. */
@media (max-width: 1099px) { .live-pill .pill-v { text-transform: capitalize; } }
@media (max-width: 900px) {
  .live-pill:not([data-state="online"], [data-state="pending"]) { min-width: 44px; justify-content: center; padding-inline: 0; }
  .live-pill:not([data-state="online"], [data-state="pending"]) [data-live="pill"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 340px) {
  .topbar.solid .topbar-in { column-gap: 4px; }
  .topbar .panel-btn { padding-inline: 6px; }
}

/* =====================================================================================================================
   POLISH-10 ROUND 2 (HOME2 lane). Overrides the layers above; class names and JS hooks unchanged unless noted.
   R1 initials · R2 join ornaments · R3 plate legends · R4 gilded gauge + light-theme sheets · R5 ladder · R6 header ·
   R7 mobile hero · R8 rhythm · R9 commands · R10 Discord chapter.
   ===================================================================================================================== */

/* ---------- R1 manuscript initials ----------
   No initial at all on a lede shorter than three lines (the raised 2-line initial read as a detached letter + gap:
   "A ll of it"). /chronicle.js adds .cap-drop when the text really runs to 3+ lines at the current width: a gilded
   drop cap exactly three lines deep, baseline on the third line, the first line starting tight against it. */
[data-initial]::first-letter, .sec-lede[data-initial]::first-letter,
.sec-lede::first-letter {
  font: inherit; color: inherit; text-shadow: none; margin: 0; padding: 0; background: none;
  -webkit-initial-letter: normal; initial-letter: normal; float: none; line-height: inherit; letter-spacing: inherit;
}
.sec-head .sec-lede[data-initial], header.hubhead .sec-lede[data-initial] { margin-top: 18px; }
[data-initial].cap-drop::first-letter {
  font-family: 'Cinzel', Georgia, serif; font-weight: 800; color: var(--gold-ink); letter-spacing: 0;
  float: left; font-size: 3.62em; line-height: .78; margin: .07em .05em 0 -.02em;
  text-shadow: 0 2px 0 rgb(26 15 6 / .9), 0 0 1px rgb(26 15 6 / .9), 0 0 18px rgb(232 180 74 / .22);
}
[data-theme="day"] [data-initial].cap-drop::first-letter { color: #7A4C10; text-shadow: 0 2px 0 rgb(255 248 228 / .95), 0 0 1px rgb(122 76 16 / .5); }
@supports (initial-letter: 3) or (-webkit-initial-letter: 3) {
  [data-initial].cap-drop::first-letter {
    float: none; font-size: 1em; line-height: inherit; margin: 0 .02em 0 0;
    -webkit-initial-letter: 3; initial-letter: 3;
  }
  /* Cinzel's wide side-bearings: pull the next letter in so the first line starts within ~.1em of the ink */
  [data-initial="A"].cap-drop::first-letter, [data-initial="T"].cap-drop::first-letter,
  [data-initial="N"].cap-drop::first-letter { margin-right: 0; }
  [data-initial="S"].cap-drop::first-letter, [data-initial="C"].cap-drop::first-letter,
  [data-initial="E"].cap-drop::first-letter, [data-initial="R"].cap-drop::first-letter { margin-right: -.04em; }
}

/* ---------- R2 join: an engraved fleuron between the steps ----------
   The flat orange arrow becomes a printer's ornament: a short double gold rule, the teal gem lozenge on it and a gilt
   chevron tip with an ink outline. Stacked (phones/tablets) it turns to point down, smaller. */
.craft-arrow { width: 52px; height: 26px; right: -54px; margin-top: -13px; color: inherit; overflow: visible; }
.craft-arrow .co-rule { fill: none; stroke: #C9973E; stroke-width: 1.15; }
.craft-arrow .co-tip { fill: #E3B04F; stroke: #1A0F06; stroke-width: 1.2; stroke-linejoin: round; }
.craft-arrow .co-gem { fill: #1F9E95; stroke: #1A0F06; stroke-width: 1.2; stroke-linejoin: round; }
.craft-arrow .co-glint { fill: none; stroke: #BFFBF5; stroke-width: 1.1; stroke-linecap: round; opacity: .85; }
[data-theme="day"] .craft-arrow .co-rule { stroke: #8A5A14; }
[data-theme="day"] .craft-arrow .co-tip { fill: #D7A040; stroke: #4A2E08; }
[data-theme="day"] .craft-arrow .co-gem { fill: #178C84; stroke: #2B2118; }
@media (max-width: 900px) {
  .craft-arrow { width: 34px; height: 17px; right: auto; left: 50%; top: auto; bottom: -36px; margin: 0 0 0 -17px; transform: rotate(90deg); }
}
@media (max-width: 760px) { .craft-arrow { bottom: -33px; } }

/* ---------- R3 printed plate legends (gallery, hero Plate I, map Plate II) ----------
   A legend as a book prints it: the plate's Roman numeral in gilt Cinzel, the title in the body face at reading size,
   "illustration" in italic (it reads "in-game render" while the render is shown), then one quiet row of gilt
   text-buttons: the gem + "View in-game render" (a real toggle, aria-pressed) and "Enlarge". No boxed chips. */
.pl-legend .pl-no { font: 700 15px/1.2 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
[data-theme="day"] .pl-legend .pl-no { color: #7A4C10; }
.pl-legend .pl-t { font: 600 17px/1.35 var(--f-body); color: var(--ink); }
.pl-legend .pl-kind { font: italic 400 16px/1.35 var(--f-body); color: var(--ink-2); white-space: nowrap; }
.pl-legend .pl-kind-r { display: none; color: var(--teal); }
[data-theme="day"] .pl-legend .pl-kind-r { color: #0E6F67; }
.pl-legend:has([aria-pressed="true"]) .pl-kind:not(.pl-kind-r) { display: none; }
.pl-legend:has([aria-pressed="true"]) .pl-kind-r { display: inline; }
.map-frame:has(.pl-legend [aria-pressed="true"]) .pl-legend .pl-kind:not(.pl-kind-r) { display: none; }
/* gilt text-buttons */
.pl-legend .rv-btn, .pl-legend .pl-enlarge {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; min-width: 44px; width: auto; height: auto;
  padding: 0 8px; margin: 0; flex: none; position: static; overflow: visible;
  font: 700 14px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink);
  background: none; border: 0; border-radius: 2px; box-shadow: none; cursor: pointer; text-decoration: none;
}
[data-theme="day"] .pl-legend .rv-btn, [data-theme="day"] .pl-legend .pl-enlarge { color: #6A400C; }
.pl-legend .rv-btn { text-shadow: none; }
/* the label carries a hairline gold underline; hover draws it full and thicker */
.pl-legend .rv-btn, .pl-legend .pl-enlarge {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: background-color var(--dur-1) linear, text-decoration-color var(--dur-1) linear;
}
.pl-legend .rv-btn:hover, .pl-legend .pl-enlarge:hover {
  background: var(--ghost-h); transform: none; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: currentColor;
}
.pl-legend .pl-enlarge svg.ui { width: 16px; height: 16px; }
.pl-legend .rv-gem { width: 10px; height: 10px; }
.pl-legend .rv-btn[aria-pressed="true"] { color: var(--teal); background: none; box-shadow: none; }
[data-theme="day"] .pl-legend .rv-btn[aria-pressed="true"] { color: #0E6F67; }
.pl-legend .rv-btn[aria-pressed="true"]:hover { background: var(--ghost-h); }
.pl-legend .rv-btn[aria-pressed="true"] { text-decoration-color: currentColor; }
.pl-acts { gap: 4px 10px; flex-wrap: wrap; margin-left: -8px; }
/* gallery: two large plates per row so the art carries the chapter; legend under each plate */
@media (min-width: 761px) {
  .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(30px, 3.4vw, 48px) clamp(24px, 2.6vw, 40px); }
}
.pl-card .pl-cap.pl-legend { display: grid; justify-content: stretch; gap: 6px; margin-top: 14px; padding: 0 2px; text-align: left; }
.pl-card .pl-legend .pl-t { flex: none; font-size: 17px; }
.pl-card .pl-legend .pl-no { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.pl-card .pl-legend .pl-no::after { content: ""; flex: 1; height: 3px; max-width: 120px; border-block: 1px solid var(--g2); }
.pl-card .pl-legend .pl-kind { white-space: nowrap; }
@media (max-width: 760px) {
  .pl-card .pl-legend .pl-t { font-size: 16px; }
  .pl-legend .pl-kind { font-size: 15px; }
  .pl-legend .rv-btn, .pl-legend .pl-enlarge { font-size: 13px; letter-spacing: .04em; gap: 7px; padding-inline: 5px; }
  .pl-acts { gap: 0 2px; margin-left: -5px; flex-wrap: nowrap; }
  .pl-card .pl-legend .pl-no::after { max-width: 64px; }
}
/* hero Plate I and map Plate II legends: same voice, one line where it fits */
.hero-plate .pl-legend, .map-bar .pl-legend { align-items: center; }
.hero-plate .pl-legend .pl-t, .map-bar .pl-legend .pl-t { font-size: 16px; }
.map-bar .pl-legend .rv-btn, .hero-plate .pl-legend .rv-btn { margin-left: -8px; }
/* the swipe hint on phones: the join fleuron, small */
.gal-hint { font: italic 400 15px/1.4 var(--f-body); color: var(--ink-2); }
.gal-hint .gal-orn { position: static; width: 34px; height: 17px; margin: 0; transform: none; flex: none; }
@media (max-width: 380px) { .pl-acts { flex-wrap: wrap; } }

/* ---------- R4 · SHARED GILDED GAUGE  .gauge-gilt  (home rank ladder; HUB2: /player + /panel + leaderboard rows) ----------
   One progress bar for the whole site: a gold-leaf fill in an engraved track (double gold rim, ink ticks), with a small
   teal gem at the current point. Same look in both themes (track is ink at Night, sepia-washed parchment in Daylight).

   Markup (the fill child is optional but recommended so the fill can animate with transform):
     <span class="gauge-gilt" style="--fill:.42; --ticks:10" role="progressbar" aria-valuenow="42" ...>
       <span class="gauge-gilt-fill"></span>
     </span>
   Knobs (custom properties on the gauge or any ancestor):
     --fill     0..1 progress (required)          --ticks   number of equal segments; 1 = no inner ticks (default 1)
     --gauge-h  track height (default 14px)        --gem-fill position of the gem if it must differ from --fill
   Modifiers: .gauge-gilt--sm (8px, no gem — table rows), .gauge-gilt--nogem.
   Tokens: --gilt-leaf (fill), --gilt-track, --gilt-rim, --gilt-tick, --gilt-gem — override per page if needed. */
:root, [data-theme="night"] {
  --gilt-leaf: linear-gradient(180deg, #FBE7A6 0 18%, #E8B84E 18% 52%, #C08A2E 52% 80%, #8A5A14 80%);
  --gilt-sheen: linear-gradient(90deg, rgb(255 248 220 / 0) 0, rgb(255 248 220 / .28) 50%, rgb(255 248 220 / 0) 100%);
  --gilt-track: linear-gradient(180deg, #0E0A06, #1C150D 60%, #241B11);
  --gilt-rim: 0 0 0 1px #0A0704, 0 0 0 2.5px #C9973E, 0 0 0 3.5px #4A300A;
  --gilt-tick: rgb(10 7 4 / .78);
  --gilt-gem: linear-gradient(135deg, #BFFBF5 0 22%, #2EE6D6 22% 62%, #0F8F86 62%);
}
[data-theme="day"] {
  --gilt-track: linear-gradient(180deg, #C7B28A, #DCCBA6 55%, #E6D8B8);
  --gilt-rim: 0 0 0 1px #4A300A, 0 0 0 2.5px #B8862F, 0 0 0 3.5px #6B4612;
  --gilt-tick: rgb(58 36 10 / .62);
  --gilt-gem: linear-gradient(135deg, #A8F2EA 0 22%, #19A99F 22% 62%, #0B6F68 62%);
}
.gauge-gilt {
  --gauge-h: 14px;
  position: relative; display: block; height: var(--gauge-h); border-radius: 1px; overflow: visible;
  background: var(--gilt-track); box-shadow: var(--gilt-rim), inset 0 2px 3px rgb(0 0 0 / .35);
}
/* the gold leaf: child span (animatable) ... */
.gauge-gilt > .gauge-gilt-fill {
  position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--fill, 0));
  background: var(--gilt-sheen), var(--gilt-leaf); box-shadow: inset 0 -1px 0 rgb(58 36 10 / .5), 0 0 12px rgb(232 180 74 / .28);
}
/* ... or, with no child, the leaf is painted straight onto the track */
.gauge-gilt:not(:has(> .gauge-gilt-fill)) {
  background: var(--gilt-sheen) 0 0 / calc(var(--fill, 0) * 100%) 100% no-repeat, var(--gilt-leaf) 0 0 / calc(var(--fill, 0) * 100%) 100% no-repeat, var(--gilt-track);
}
/* ink ticks between segments, drawn over the leaf */
.gauge-gilt::before {
  content: ""; position: absolute; inset: -3px 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--ticks, 1) - 1px), var(--gilt-tick) calc(100% / var(--ticks, 1) - 1px) calc(100% / var(--ticks, 1) + 1px));
  background-position: 1px 0;
  -webkit-mask: linear-gradient(90deg, transparent 2px, #000 2px calc(100% - 2px), transparent calc(100% - 2px));
          mask: linear-gradient(90deg, transparent 2px, #000 2px calc(100% - 2px), transparent calc(100% - 2px));
}
/* the teal gem at the current point */
.gauge-gilt::after {
  content: ""; position: absolute; z-index: 2; top: 50%; left: calc(var(--gem-fill, var(--fill, 0)) * 100%);
  width: calc(var(--gauge-h) + 2px); height: calc(var(--gauge-h) + 2px); margin: calc((var(--gauge-h) + 2px) / -2) 0 0 calc((var(--gauge-h) + 2px) / -2);
  background: var(--gilt-gem); transform: rotate(45deg); border-radius: 1px;
  box-shadow: 0 0 0 1.5px #1A0F06, 0 0 0 3px #E3B04F, 0 0 0 4px #4A300A, 0 0 14px rgb(46 230 214 / .45);
}
.gauge-gilt--nogem::after, .gauge-gilt--sm::after { content: none; }
.gauge-gilt--sm { --gauge-h: 8px; --gilt-rim: 0 0 0 1px #0A0704, 0 0 0 2px #C9973E; }
[data-theme="day"] .gauge-gilt--sm { --gilt-rim: 0 0 0 1px #4A300A, 0 0 0 2px #B8862F; }
@media (prefers-reduced-motion: no-preference) {
  .gauge-gilt::after { transition: left 900ms cubic-bezier(.3, .7, .2, 1); }
}

/* home rank ladder on the gauge: segments = tiers - 1, gem rides the fill (0 until the bar is first seen) */
.xp-gauge { padding-inline: calc(100% / (2 * var(--n, 7))); position: relative; }
.xp-bar.gauge-gilt { --ticks: calc(var(--n, 7) - 1); --gauge-h: 16px; height: var(--gauge-h); background: var(--gilt-track); box-shadow: var(--gilt-rim), inset 0 2px 3px rgb(0 0 0 / .35); }
.xp-bar.gauge-gilt::after { --gem-fill: var(--fill, 1); }
.js .xp:not(.xp-seen) .xp-bar.gauge-gilt::after { --gem-fill: 0; }
.xp-bar.gauge-gilt .xp-fill { inset: 0; }
.xp-bar.gauge-gilt .xp-ticks { display: none; }
.xp-bar.gauge-gilt::before { inset: -4px 0; }

/* ---------- R5 the ladder marker: "Lv 6 · Legend" rides above the gem ---------- */
.xp-level {
  position: relative; display: inline-flex; align-items: baseline; gap: 0; white-space: nowrap;
  left: calc(var(--fill, 1) * 100%); translate: calc(var(--fill, 1) * -100%) 0;
  margin: 0 0 14px; padding: 5px 12px 6px; text-align: left;
  font: 700 14px/1.2 var(--f-display); letter-spacing: .12em; text-transform: uppercase; text-shadow: none;
  color: #F6D77E; background: rgb(23 17 11 / .9); border-radius: 2px;
  box-shadow: 0 0 0 1px #0A0704, 0 0 0 2px rgb(201 151 62 / .9);
}
.xp-gauge { text-align: left; }
.xp-level .xp-lv-sep { color: #C9973E; white-space: pre; }
.xp-level .xp-lv-n { color: #E8DCC0; }
.xp-level .xp-lv-name { color: #F6D77E; }
/* a notch under the marker points at the gem: the marker is shifted by fill × its width, so fill × width is the gem */
.xp-level::after {
  content: ""; position: absolute; top: 100%; left: clamp(10px, calc(var(--fill, 1) * 100%), calc(100% - 10px));
  width: 9px; height: 9px; margin: -4px 0 0 -4.5px; transform: rotate(45deg);
  background: inherit; box-shadow: 1px 1px 0 0 #0A0704, 2px 2px 0 0 rgb(201 151 62 / .9); clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
[data-theme="day"] .xp-level::after { box-shadow: 1px 1px 0 0 rgb(74 48 10 / .55), 2px 2px 0 0 rgb(184 134 47 / .55); }
[data-theme="day"] .xp-level .xp-lv-n { color: #4A3524; }
[data-theme="day"] .xp-level .xp-lv-name { color: #7A4C10; }
[data-theme="day"] .xp-level { color: #6A400C; background: rgb(255 250 236 / .9); box-shadow: 0 0 0 1px rgb(74 48 10 / .55), 0 0 0 2px rgb(184 134 47 / .55); text-shadow: none; }
[data-theme="day"] .xp-level .xp-lv-sep { color: #8A5A14; }
@media (prefers-reduced-motion: no-preference) { .xp-level { transition: left var(--dur-2) var(--ease), translate var(--dur-2) var(--ease); } }
@media (max-width: 760px) { .xp-level { font-size: 13px; padding: 4px 10px 5px; margin-bottom: 12px; } }
/* "Lv n" under each medallion: 13 px small caps, clear contrast */
.tier-lv { font-size: 13px; letter-spacing: .12em; }
[data-theme="day"] .tier-lv { color: #6A400C; }
.tier-lv-p { font-size: inherit; }
/* perk bullets: gem lozenges tinted with the rank colour */
.lore-card .lore li, .sup-card .lore li { padding-left: 20px; }
.lore-card .lore li::before, .sup-card .lore li::before {
  width: 7px; height: 7px; left: 2px; top: .58em; opacity: 1; transform: rotate(45deg); border-radius: 1px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cf) 70%, #fff) 0 25%, var(--c) 25% 65%, color-mix(in srgb, var(--c) 60%, #000) 65%);
  box-shadow: 0 0 0 1px rgb(10 7 4 / .8), 0 0 0 2px rgb(215 160 64 / .55);
}

/* ---------- R4 Daylight: no black slabs ----------
   The rank lore card stays the in-game inset, but as a framed ink plate set INTO the parchment panel: a warm vellum
   sheet (not black) inset from the panel edges with a double gold rule. VIP / MVP become parchment sheets (vellum at
   Night) with their gem accent rule; every colour inside is re-inked for the sheet. */
[data-theme="day"] .lore-card, [data-theme="day"] .mc-tip.lore-card {
  --tip-bg: rgb(52 40 26 / .96);
  margin-inline: clamp(0px, 1.6vw, 22px); width: auto;
  background:
    var(--c-tl) 0 0 / 30px auto no-repeat padding-box, var(--c-tr) 100% 0 / 30px auto no-repeat padding-box,
    var(--c-bl) 0 100% / 30px auto no-repeat padding-box, var(--c-br) 100% 100% / 30px auto no-repeat padding-box,
    linear-gradient(rgb(70 54 36 / .62), rgb(70 54 36 / .62)) padding-box,
    url(/assets/chronicle/vellum-768.webp) 0 0 / 768px 768px padding-box,
    linear-gradient(180deg, #C9973E, #6B4612) border-box;
  box-shadow: 0 0 0 2px rgb(244 234 210 / .9), 0 0 0 3px rgb(138 90 20 / .55), 0 10px 24px -14px rgb(58 36 10 / .55);
}
[data-theme="day"] .js .lores::before, [data-theme="day"] .lores::before { background: #C9973E; }
@media (max-width: 760px) { [data-theme="day"] .lore-card { margin-inline: 0; } }

[data-theme="day"] .sup-card {
  color: var(--ink);
  background:
    var(--c-tl) 0 0 / 34px auto no-repeat padding-box, var(--c-tr) 100% 0 / 34px auto no-repeat padding-box,
    var(--c-bl) 0 100% / 34px auto no-repeat padding-box, var(--c-br) 100% 100% / 34px auto no-repeat padding-box,
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--c) 9%, transparent), transparent 70%) padding-box,
    linear-gradient(rgb(255 250 236 / .55), rgb(255 250 236 / .55)) padding-box,
    url(/assets/chronicle/parchment-768.webp) 0 0 / 768px 768px padding-box,
    linear-gradient(180deg, #B8862F, #6B4612) border-box;
  box-shadow: 0 0 0 2px var(--panel), 0 14px 30px -18px rgb(58 36 10 / .55);
}
[data-theme="day"] .sup-card::before { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 75%, #3A2408) 18%, color-mix(in srgb, var(--c) 75%, #3A2408) 82%, transparent); opacity: .9; }
[data-theme="day"] .sup-card .rank-title { color: color-mix(in oklab, var(--c) 62%, #1E140A); text-shadow: none; box-shadow: 0 1px 0 color-mix(in srgb, var(--c) 55%, transparent); }
[data-theme="day"] .sup-card .rank-title .rg { color: color-mix(in oklab, var(--c) 80%, #1E140A); filter: none; }
[data-theme="day"] .sup-card .sup-kind, [data-theme="day"] .sup-card .lore-h { color: #6A400C; }
[data-theme="day"] .sup-card .lore { color: var(--ink); }
[data-theme="day"] .sup-card .lore code { color: #3A2408; background: rgb(122 84 34 / .1); padding: 0 .25em; border-radius: 2px; }
[data-theme="day"] .sup-card .ls-stat { background: rgb(255 251 240 / .55); box-shadow: inset 0 0 0 1px rgb(138 90 20 / .45); }
[data-theme="day"] .sup-card .ls-n { color: var(--ink); }
[data-theme="day"] .sup-card .ls-l { color: var(--ink-2); }
[data-theme="day"] .sup-card .btn-soon { --bb: #EADBB8; --bbh: #EADBB8; --bi: #4A3524; --be: #B9A276; --bhi: rgb(255 255 255 / .5); --ring: rgb(138 90 20 / .55); }
[data-theme="day"] .sup-card .btn-soon svg.ui { color: color-mix(in oklab, var(--c) 70%, #1E140A); }
[data-theme="day"] .sup-card :focus-visible { outline-color: #0B6F68; }
/* Night: VIP / MVP on vellum too (the sheet, not flat black) */
:root:not([data-theme="day"]) .sup-card {
  background:
    var(--c-tl) 0 0 / 34px auto no-repeat padding-box, var(--c-tr) 100% 0 / 34px auto no-repeat padding-box,
    var(--c-bl) 0 100% / 34px auto no-repeat padding-box, var(--c-br) 100% 100% / 34px auto no-repeat padding-box,
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--c) 10%, transparent), transparent 70%) padding-box,
    linear-gradient(rgb(52 40 26 / .6), rgb(52 40 26 / .6)) padding-box,
    url(/assets/chronicle/vellum-768.webp) 0 0 / 768px 768px padding-box,
    linear-gradient(180deg, var(--tip-b1), var(--tip-b2)) border-box;
}

/* ---------- R6 header: gilded monogram, quiet "Panel" ----------
   /chronicle.js swaps Discord's flat default avatar (/embed/avatars/N.png), an empty src or a broken image for
   <b class="acct-mono">: the name's first letter in Cinzel on a vellum disc with a gold rim. */
.acct-mono {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  font: 800 17px/1 var(--f-display); letter-spacing: 0; color: #F6D77E; text-shadow: 0 1px 0 #1A0F06;
  background: radial-gradient(circle at 50% 35%, #4A3A26, #1E160E 72%);
  box-shadow: 0 0 0 1px #0A0704, 0 0 0 2.5px #C9973E, 0 0 0 3.5px #4A300A, inset 0 1px 2px rgb(255 240 200 / .25);
}
[data-theme="day"] .acct-mono {
  color: #6A400C; text-shadow: 0 1px 0 rgb(255 250 236 / .9);
  background: radial-gradient(circle at 50% 35%, #FFF8E6, #E6D3AC 75%);
  box-shadow: 0 0 0 1px #4A300A, 0 0 0 2.5px #B8862F, 0 0 0 3.5px rgb(107 70 18 / .6), inset 0 1px 2px rgb(255 255 255 / .6);
}
.acct img { border-radius: 50%; box-shadow: 0 0 0 1px #0A0704, 0 0 0 2.5px #C9973E; }
/* signed-out "Panel" in the header: the same quiet gilt-rimmed slot as the other header tools (was a heavy white box) */
.topbar .panel-btn {
  --bb: transparent; --bbh: var(--ghost-h); --bi: var(--ink); --be: transparent; --bhi: transparent;
  background: transparent; color: var(--ink); border-radius: 3px; text-shadow: none;
  box-shadow: inset 0 0 0 1px var(--slot-ring, rgb(201 151 62 / .5));
  font: 700 13.5px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; padding-bottom: 4px;
}
.topbar .panel-btn:hover { background: var(--ghost-h); box-shadow: inset 0 0 0 1px var(--gold-ink); transform: none; }
.topbar .panel-btn:active { transform: none; }
.topbar .panel-btn svg.px { color: var(--gold-ink); }
/* Daylight: the icon-only header tools get the same hairline slot ring as the pill / Panel / account chip */
[data-theme="day"] .topbar .topbar-tools > .btn-ghost:not([hidden]) { box-shadow: inset 0 0 0 1px var(--slot-ring); border-radius: 3px; }

/* ---------- R7 phone hero: H1, address and Join Server above the dock ----------
   The title art now overlaps the plate's sky (as on desktop), the plate is a slightly wider crop, the legend is one
   line, and on phones the order is H1 → address + Join Server → the rest of the server card → the lede. */
@media (max-width: 760px) {
  .rv > img.hero-title { translate: -50% -56%; }
  .rv-hero { margin-top: 14.5cqw; aspect-ratio: 16 / 8; }
  .rv-hero picture, .rv-hero picture img, .rv-hero .rv-art img, .rv-hero .rv-real img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
  .hero-plate .pl-cap.pl-legend { flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; width: 100%; }
  .hero-plate .pl-legend .pl-t { font-size: 14px; line-height: 1.25; min-width: 0; }
  .hero-plate .pl-legend .pl-no { display: inline; font-size: 13px; margin: 0; white-space: nowrap; }
  .hero-plate .pl-legend .pl-dot { position: static; width: auto; height: auto; clip-path: none; overflow: visible; }
  .hero-plate .pl-legend .rv-btn { flex: none; font-size: 12px; letter-spacing: .06em; padding-inline: 6px; gap: 7px; margin-right: -6px; }
  .hero-grid { gap: 10px; }
  .hero .mp > .mp-head { order: 0; margin-top: 14px; }
}
/* short phones (360×740, 375×667 …): the lede moves under the server card so Join Server stays above the dock */
@media (max-width: 760px) and (max-height: 799px) {
  .hero-in > .lede { order: 2; margin-top: 18px; }
  .hero-in > .mp { order: 1; margin-top: 12px; }
  .hero-in > .tip { order: 3; }
}
/* the address never breaks mid-word on small phones: one line down to 340 px, then a clean break after "valkyriemc." */
@media (max-width: 399px) {
  .addr-field { padding-inline: 14px; font-size: clamp(12px, 3.6vw, 14px); overflow-wrap: normal; word-break: normal; }
}
@media (max-width: 760px) {
  .hero-plate .pl-legend .pl-no { display: block; margin-bottom: 2px; }
  .hero-plate .pl-legend .pl-dot { display: none; }
  .hero-plate .pl-legend .pl-name { white-space: nowrap; }
}

/* ---------- R8 section rhythm ----------
   Chapter to chapter: ≤ ~128 px at 1440 from the last content of one chapter to the next vignette, ≤ ~64 px on
   phones. One token again (--sec-y each side), and no extra trailing margins at the end of a chapter. */
:root { --sec-y: clamp(24px, 3.9vw, 56px); }
.sec > .wrap > :last-child, .sec > .wrap > :last-child > :last-child { margin-bottom: 0; }

/* ---------- R9 commands panel ----------
   The panel runs full width under its heading: 3 columns at ≥1200 px, 2 on tablets, 1 on phones. The footer no longer
   repeats the header's "click to copy" line: it is empty until a command is copied, then shows the copied state. */
.chat-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
@media (min-width: 1200px) { .chat-lines { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 18px; } }
@media (max-width: 760px) { .chat-lines { grid-template-columns: minmax(0, 1fr); } }
/* each line: the command in a fixed mono column, its meaning beside it, so the columns read full */
.chat-lines button { display: grid; grid-template-columns: 8.7em minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 9px 12px; }
.chat-lines span { font-size: 15px; line-height: 1.35; }
@media (min-width: 761px) and (max-width: 1199px) { .chat-lines button { grid-template-columns: 9.4em minmax(0, 1fr); } }
/* Daylight: the chat stays an in-game inset, as a warm vellum plate (same as the rank lore card), not a black slab */
[data-theme="day"] .chat {
  --sheet-bg: var(--c-tl) 0 0 / 30px auto no-repeat, var(--c-tr) 100% 0 / 30px auto no-repeat, var(--c-bl) 0 100% / 30px auto no-repeat, var(--c-br) 100% 100% / 30px auto no-repeat,
    linear-gradient(rgb(70 54 36 / .62), rgb(70 54 36 / .62)), url(/assets/chronicle/vellum-768.webp) 0 0 / 768px 768px, #34281A;
  --sheet-sh: 0 0 0 1px #C9973E, 0 0 0 3px rgb(244 234 210 / .9), 0 0 0 4px rgb(138 90 20 / .55), 0 12px 26px -16px rgb(58 36 10 / .55);
}
.chat-out:empty::before { content: none; }
.chat-out:empty { min-height: 0; margin: 0; padding: 0; border: 0; }
@media (max-width: 760px) { .chat-lines button { grid-template-columns: minmax(7.4em, auto) minmax(0, 1fr); column-gap: 10px; } }
/* 20 features: 4 per row on tablets (5 full rows) instead of 3 (a ragged last row of 2) */
@media (min-width: 761px) and (max-width: 1100px) { .inv-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- R10 Discord chapter: crest and toast as one heraldic figure ----------
   The advancement toast sits under the crest like the motto scroll under a shield: centred, its top edge tucked over
   the shield's tip, a teal gem where tip and toast meet, both on the same warm drop shadow, the toast in the
   chronicle's in-game ink with a gilt rim. It pops in once as the chapter scrolls into view (scroll-driven, no loop).
   The crest's shadow is no longer clipped flat. */
.cta-art { overflow: visible; display: grid; justify-items: center; gap: 0; padding-block: 4px 8px; }
.cta-art > .cta-logo { grid-row: 1; width: min(290px, 70%); filter: drop-shadow(0 18px 26px rgb(30 18 6 / .42)); }
[data-theme="night"] .cta-art > .cta-logo { filter: drop-shadow(0 18px 26px rgb(0 0 0 / .5)); }
.cta-art > .toast {
  grid-row: 2; align-self: start; justify-self: center; margin: calc(min(290px, 70%) * -.1) 0 0;
  background: linear-gradient(rgb(23 17 11 / .97), rgb(23 17 11 / .97)) padding-box, linear-gradient(180deg, #E3B04F, #6B4612) border-box;
  border: 2px solid transparent; border-radius: 3px;
  box-shadow: 0 0 0 1px #0A0704, 0 18px 26px -6px rgb(30 18 6 / .42);
  padding: 12px 20px 10px 10px; animation: none;
}
.cta-art > .toast .toast-t { color: #FFE27A; font-family: var(--f-display); font-weight: 700; letter-spacing: .04em; }
.cta-art > .toast .toast-d { color: #EEE2C6; }
.cta-art > .toast::before {
  content: ""; position: absolute; left: 50%; top: -8px; width: 12px; height: 12px; margin-left: -6px; transform: rotate(45deg);
  background: linear-gradient(135deg, #BFFBF5 0 22%, #2EE6D6 22% 62%, #0F8F86 62%); box-shadow: 0 0 0 1.5px #1A0F06, 0 0 0 3px #E3B04F;
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .js .cta-art > .toast { animation: toast-pop linear both; animation-timeline: view(); animation-range: entry 30% cover 38%; }
  }
}
@keyframes toast-pop { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
/* map Plate II legend: title line, then its control row (as in the gallery); "Open the live map" stays at the right */
.map-bar { flex-wrap: nowrap; align-items: center; }
.map-bar .pl-legend { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; flex: 1 1 auto; min-width: 0; }
.map-bar .pl-legend .rv-btn { margin-left: -8px; }
.map-bar > .btn { flex: none; }
@media (max-width: 560px) { .map-bar { flex-wrap: wrap; } .map-bar > .btn { width: 100%; justify-content: center; } }
/* the Discord chapter (a panel, no vignette) gets the same breathing room as the other chapter breaks */
#discord.sec-cta { padding-top: calc(var(--sec-y) * .9); }
/* "Most active, last 7 days" bars: the small gilded gauge (same tokens as .gauge-gilt--sm) */
.bar { height: 8px; background: var(--gilt-track); border-radius: 1px; box-shadow: 0 0 0 1px #0A0704, 0 0 0 2px #C9973E; }
[data-theme="day"] .bar { box-shadow: 0 0 0 1px #4A300A, 0 0 0 2px #B8862F; }
.bar i { inset: 0 auto 0 0; width: calc(100% * var(--w, 0)); background: var(--gilt-sheen), var(--gilt-leaf); border-radius: 0; }

/* =====================================================================================================================
   POLISH-10 ROUND 3 (HOME3 lane). Overrides the layers above; class names and JS hooks unchanged unless noted.
   ===================================================================================================================== */

/* ---------- R3·H1 Daylight: the commands ledger and the rank lore card are parchment sheets ----------
   In Daylight both read as printed sheets on the page (parchment, double gold rule, ink type). The in-game flavour
   survives only as small insets: the rank's name plate (ink cartouche in the rank colours) and the mono commands.
   Night keeps its ink plates. */
[data-theme="day"] .chat {
  --sheet-bg: var(--c-tl) 0 0 / 30px auto no-repeat, var(--c-tr) 100% 0 / 30px auto no-repeat, var(--c-bl) 0 100% / 30px auto no-repeat, var(--c-br) 100% 100% / 30px auto no-repeat,
    linear-gradient(rgb(255 251 240 / .5), rgb(255 251 240 / .5)), url(/assets/chronicle/parchment-768.webp) 0 0 / 768px 768px, #F6EDD8;
  --sheet-sh: 0 0 0 1px #B8862F, 0 0 0 3px rgb(255 250 236 / .9), 0 0 0 4px rgb(138 90 20 / .5), inset 0 0 22px var(--burn), 0 12px 26px -16px rgb(58 36 10 / .45);
  box-shadow: none;
}
[data-theme="day"] .chat-lines button { color: var(--ink); }
[data-theme="day"] .chat-lines code { color: #2B1A08; }
[data-theme="day"] .chat-lines span { color: #4E3C2A; }
[data-theme="day"] .chat-lines button:hover { background: rgb(184 134 47 / .12); }
[data-theme="day"] .chat-lines button:hover code { color: #7A4C10; }
[data-theme="day"] .chat-lines button.is-copied code, [data-theme="day"] .chat-out { color: #0B6F68; }
[data-theme="day"] .chat-out { border-top-color: rgb(138 90 20 / .28); }
/* a ledger hairline under each line (both themes): the columns read as ruled lists, not floating text */
.chat-lines li { box-shadow: inset 0 -1px 0 rgb(215 160 64 / .12); }
[data-theme="day"] .chat-lines li { box-shadow: inset 0 -1px 0 rgb(138 90 20 / .16); }

[data-theme="day"] .lore-card, [data-theme="day"] .mc-tip.lore-card {
  --lore: #3A2A1C; --lore-dim: #6A400C;
  color: var(--ink);
  margin-inline: 0;
  background:
    var(--c-tl) 0 0 / 34px auto no-repeat padding-box, var(--c-tr) 100% 0 / 34px auto no-repeat padding-box,
    var(--c-bl) 0 100% / 34px auto no-repeat padding-box, var(--c-br) 100% 100% / 34px auto no-repeat padding-box,
    radial-gradient(110% 70% at 18% 0%, color-mix(in srgb, var(--c) 10%, transparent), transparent 70%) padding-box,
    linear-gradient(rgb(255 250 236 / .55), rgb(255 250 236 / .55)) padding-box,
    url(/assets/chronicle/parchment-768.webp) 0 0 / 768px 768px padding-box,
    linear-gradient(180deg, #B8862F, #6B4612) border-box;
  box-shadow: 0 0 0 2px var(--panel), 0 0 0 3px rgb(138 90 20 / .4), 0 14px 30px -18px rgb(58 36 10 / .5);
}
/* the in-game inset: the rank's name plate keeps its own colours on ink */
[data-theme="day"] .lore-card .rank-title {
  display: inline-flex; align-items: center; padding: 7px 16px 8px 12px; margin-bottom: 2px;
  color: var(--cf); text-shadow: 0 2px 0 rgb(0 0 0 / .55);
  background: linear-gradient(rgb(23 17 11 / .96), rgb(23 17 11 / .96)) padding-box, linear-gradient(180deg, #E3B04F, #6B4612) border-box;
  border: 2px solid transparent; border-radius: 2px;
  box-shadow: 0 0 0 1px #0A0704, 0 6px 14px -8px rgb(30 18 6 / .6), inset 0 -2px 0 color-mix(in srgb, var(--c) 70%, transparent);
}
[data-theme="day"] .lore-card .lore-sub { color: var(--ink); }
[data-theme="day"] .lore-card .lore-h { color: #6A400C; }
[data-theme="day"] .lore-card .lore { color: #3A2A1C; }
[data-theme="day"] .lore-card .lore li::before { box-shadow: 0 0 0 1px rgb(58 36 10 / .75), 0 0 0 2px rgb(215 160 64 / .6); }
[data-theme="day"] .lore-card .lore-side { border-left-color: rgb(138 90 20 / .35); }
@media (max-width: 760px) { [data-theme="day"] .lore-card .lore-side { border-top-color: rgb(138 90 20 / .35); } }
[data-theme="day"] .lore-card .ls-stat { background: rgb(255 251 240 / .6); box-shadow: inset 0 0 0 1px rgb(138 90 20 / .45); }
[data-theme="day"] .lore-card .ls-n { color: var(--ink); }
[data-theme="day"] .lore-card .ls-l { color: #4E3C2A; }
[data-theme="day"] .lore-card .ls-bonus { color: #6A400C; }
[data-theme="day"] .lore-card .ls-bonus.ls-muted { color: #4E3C2A; }
[data-theme="day"] .lore-card .ls-next { color: #4E3C2A; }
[data-theme="day"] .lore-card .ls-next-r { color: color-mix(in oklab, var(--c, #7A4C10) 62%, #1E140A) !important; }
[data-theme="day"] .lore-card .ls-next-r .rg { filter: none; }
[data-theme="day"] .js .lores::before, [data-theme="day"] .lores::before { background: #B8862F; }

/* ---------- R3·H2 short phones + 320: Join Server clears the dock, the address stays on one line ----------
   Under ~700 px of height (375×667, 320×640 …) the plate takes a wider crop and the stack tightens, so H1 + address +
   Join Server sit above the dock. Under 360 px wide the address plaque drops its rivets and side padding so the
   whole hostname fits one line at 12 px mono. Same plate-hero-800.webp (LCP unchanged). */
@media (max-width: 760px) and (max-height: 700px) {
  .rv-hero { aspect-ratio: 16 / 6.3; margin-top: 12.5cqw; }
  .rv-hero picture, .rv-hero picture img, .rv-hero .rv-art img, .rv-hero .rv-real img { object-position: 50% 60%; }
  .hero-plate .pl-cap.pl-legend { margin-top: 3px; }
}
@media (max-width: 359px) {
  .hero .addr-field {
    padding-inline: 8px; letter-spacing: -.01em; white-space: nowrap;
    background: linear-gradient(180deg, #241B12, #120D08);
  }
}
@media (max-width: 760px) and (max-height: 700px) {
  .hero .mp { padding-top: 18px; }
  .hero-in > .mp { margin-top: 8px; }
}
/* 320–359: the Plate I legend becomes numeral + toggle on one row, the plate name under it (they collided), and the
   hero Join button drops its copy glyph so "Join Server | Copy address" keeps its side padding */
@media (max-width: 359px) {
  .hero-plate .pl-cap.pl-legend { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 6px; row-gap: 0; }
  .hero-plate .pl-legend .pl-t { display: contents; }
  .hero-plate .pl-legend .pl-no { grid-column: 1; grid-row: 1; margin: 0; }
  .hero-plate .pl-legend .rv-btn { grid-column: 2; grid-row: 1; min-height: 44px; margin-block: -6px -4px; }
  .hero-plate .pl-legend .pl-name { grid-column: 1 / -1; grid-row: 2; font: 600 14px/1.25 var(--f-body); color: var(--ink); }
  .hero .btn-primary.btn-lg > svg.ui { display: none; }
}

/* ---------- R3·F6 monthly bonus: gilt steps, the milestones crowned with a gem (no neon blocks) ---------- */
.sup-pips-row { padding-top: 10px; height: 58px; }
.sup-pips-row i { position: relative; border-radius: 1px 1px 0 0; }
.sup-pips-row i:nth-child(12), .sup-pips-row i:nth-child(24) {
  background: linear-gradient(180deg, #FBE7A6, #E8B84E 30%, #C08A2E 70%, #8A5A14);
  box-shadow: inset 0 1px 0 rgb(255 248 220 / .7), 0 0 0 1px #2B1A06, 0 0 0 2px rgb(232 184 78 / .55), 0 0 10px rgb(232 184 78 / .35);
  opacity: 1;
}
.sup-pips-row i:nth-child(12)::after, .sup-pips-row i:nth-child(24)::after {
  content: ""; position: absolute; left: 50%; top: -9px; width: 8px; height: 8px; margin-left: -4px; transform: rotate(45deg);
  background: linear-gradient(135deg, #BFFBF5 0 22%, #2EE6D6 22% 62%, #0F8F86 62%);
  box-shadow: 0 0 0 1px #1A0F06, 0 0 0 2px #E3B04F;
}
[data-theme="day"] .sup-pips-row i:nth-child(12), [data-theme="day"] .sup-pips-row i:nth-child(24) {
  box-shadow: inset 0 1px 0 rgb(255 248 220 / .7), 0 0 0 1px #4A300A, 0 0 0 2px rgb(184 134 47 / .5);
}
[data-theme="day"] .sup-pips-row i:nth-child(12)::after, [data-theme="day"] .sup-pips-row i:nth-child(24)::after {
  background: linear-gradient(135deg, #A8F2EA 0 22%, #19A99F 22% 62%, #0B6F68 62%); box-shadow: 0 0 0 1px #2B2118, 0 0 0 2px #B8862F;
}
/* the "12" label sits under the 12th step (it was centred on the row, half a step to the right) */
.sup-pips-scale { position: relative; }
.sup-pips-scale > span:nth-child(2) { position: absolute; left: calc((100% + 3px) * 11.5 / 24 - 1.5px); translate: -50% 0; }

/* ---------- R3·F7 map on phones: the plate stays visible ----------
   The "Load the live 3D map" ink box covered almost all of Plate II on phones. There it becomes a bar under the plate
   (button full width + its note), and the plate legend reads like the gallery's (numeral line, left-aligned). */
@media (max-width: 760px) {
  .map-stage { aspect-ratio: auto; display: flex; flex-direction: column; }
  .map-stage > .rv { position: relative; inset: auto; aspect-ratio: 1672 / 941; }
  .map-stage:has(iframe) { aspect-ratio: 1672 / 941; }
  .map-cta {
    position: static; transform: none; width: 100%; max-width: none; margin: 12px 0 0; padding: 0;
    background: none; box-shadow: none; border-radius: 0; gap: 8px;
  }
  .map-cta .btn { width: 100%; justify-content: center; }
  .map-cta p { font: 500 13px/1.4 var(--f-mono); color: var(--ink-2); }
  .map-bar .pl-legend { text-align: left; align-items: flex-start; }
  .map-bar .pl-legend .pl-t { text-align: left; }
  .map-bar .pl-legend .pl-no { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
  .map-bar .pl-legend .pl-no::after { content: ""; flex: none; width: 64px; height: 3px; border-block: 1px solid var(--g2); }
  .map-bar .pl-legend .pl-dot { display: none; }
}
/* phones: plate → its legend → Load the live 3D map → Open the live map (the legend belongs under its plate) */
@media (max-width: 760px) {
  .map-stage:not(:has(iframe)), .map-bar { display: contents; }
  .map-stage > .rv { order: 1; }
  .map-bar > .pl-legend { order: 2; margin-top: 10px; }
  .map-cta { order: 3; margin-top: 14px; }
  .map-bar > .btn { order: 4; margin-top: 10px; width: 100%; justify-content: center; }
  .map-stage:has(iframe) { order: 1; position: relative; display: block; }
}

/* ---------- R3·F8 Discord chapter on tablets/phones: the crest + toast figure leads the chapter ----------
   Below 900 px the crest was hidden and the toast floated alone under the buttons. Now the heraldic figure (crest,
   toast tucked over its tip) heads the chapter like the other chapters' vignettes, smaller. */
@media (max-width: 900px) {
  .cta-art { order: -1; display: grid; margin: 0 auto 6px; }
  .cta-art > .cta-logo { display: block; width: min(176px, 48vw); }
  .cta-art > .toast { margin-top: -18px; align-self: start; }
}
@media (max-width: 380px) { .cta-art > .toast { padding: 10px 14px 9px 9px; } }
/* the head below the figure centres on the same axis (as every other chapter head on phones); the lede stays ragged-right */
@media (max-width: 900px) {
  .cta-copy > .eyebrow { justify-content: center; }
  .cta-copy > h2 { text-align: center; text-wrap: balance; }
  .cta h2::after { margin-inline: auto; background-position: center; }
  .cta-actions { justify-content: center; }
}

/* ---------- R3·F9/F10 footer ----------
   Daylight: the address chip is a vellum plaque with the gilt rim (it was the only black slab in a parchment footer);
   Night keeps the ink chip. Phones: crest + name on one line, the address plaque full width under them (one line
   down to 320), "Start playing" and "Explore" side by side and "Community" as a ruled inline band beneath — no
   ragged third row. */
[data-theme="day"] .foot-addr code {
  color: #3A2408; text-shadow: none;
  background: linear-gradient(rgb(255 251 240 / .55), rgb(255 251 240 / .55)), url(/assets/chronicle/parchment-768.webp) 0 0 / 768px 768px, #F3E7CC;
  box-shadow: 0 0 0 1px #8A5A14, 0 0 0 2px #E8C77A, 0 0 0 3px rgb(138 90 20 / .55), inset 0 1px 3px rgb(58 36 10 / .18);
}
@media (max-width: 560px) {
  .foot-in { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .foot-crest { width: 52px; }
  .foot-brand, .foot-brand > div { display: contents; }
  .foot-name { align-self: center; }
  .foot-addr { grid-column: 1 / -1; margin-top: -6px; font-size: 14px; }
  .foot-addr code { display: block; width: fit-content; max-width: 100%; margin: 0 0 8px; padding: 7px 10px; font-size: clamp(12px, 3.6vw, 14px); white-space: nowrap; }
  .foot-addr .nobr { margin-top: 0; }
  .foot-nav { align-self: start; }
  .foot-col:nth-child(3) { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--rule); }
  .foot-col:nth-child(3) ul { display: flex; flex-wrap: wrap; gap: 0 22px; }
}
@media (max-width: 359px) { .foot-h { letter-spacing: .12em; white-space: nowrap; } .foot-nav { column-gap: 14px; } }
[data-theme="day"] .foot-col:nth-child(3) { border-top-color: rgb(138 90 20 / .3); }

/* ---------- R3·F11 no orphans in display lines (card titles, quiet states, plate names) ---------- */
.quiet-lead, .feat h3, .card h3, .panel h3, .sup h3, .lore-sub, .pl-name, .rank-title, .empty-note, .foot-name { text-wrap: balance; }

/* ---------- R3·H4 lightbox below 900: close top-right, arrows in the picture's lower corners (never on the caption) ---------- */
@media (max-width: 900px) {
  .lb-prev, .lb-next { bottom: auto; top: calc(10px + (min(1400px, 100vw - 32px) - 24px) * 9 / 16 - 58px); }
  .lb-prev { left: 18px; } .lb-next { right: 18px; }
  .lb-close { top: 18px; right: 18px; }
  .lb-cap { align-items: baseline; font-size: 14px; letter-spacing: .04em; text-wrap: balance; }
}
/* the lightbox is always an ink frame: its focus ring is the Night teal in both themes (Daylight violet is ~2.3:1 on ink) */
.lightbox, .dock, .hotbar { --focus: #2EE6D6; --focus-glow: 0 0 0 6px rgb(46 230 214 / .18); }

/* menu: the two links that leave the site carry the small external mark (tells "Discord" the server apart from slot 9) */
.menu .btn > svg.ext { width: 14px; height: 14px; margin-left: -2px; opacity: .72; }
/* 320–374: "Leaderboards" was cut to "Leaderbo…" — slimmer side padding, 20 px glyphs, 8 px gutters: every label whole */
@media (max-width: 374px) {
  .menu-in { padding-inline: 12px; }
  .menu-extra { gap: 8px; }
  .menu-extra .btn svg.px { width: 20px; height: 20px; }
}

/* ---------- R3·H5 rank tabs 761–960: "Newco…", "Resid…", "Ascen…" were cut. The names drop to 14 px with the
   tabs' side padding removed, so every rank name reads whole. ---------- */
@media (min-width: 761px) and (max-width: 960px) {
  .tiers .tier { padding-inline: 0; }
  .tiers .tier-name { font-size: 14px; letter-spacing: -.015em; overflow: visible; text-overflow: clip; }
}
@media (min-width: 761px) and (max-width: 820px) { .tiers .tier-name { font-size: 13px; letter-spacing: -.01em; } }
/* 320–359: the 16-character names (e.g. OfficialWASD at 17 px) lost their last letter in the online list */
@media (max-width: 359px) { .pname { font-size: 15.5px; letter-spacing: -.01em; } .board .pname { font-size: 15px; } }

/* =====================================================================================================================
   POLISH-10 ROUND 4 (HOME4 lane). Overrides the layers above; class names and JS hooks unchanged unless noted.
   ===================================================================================================================== */
/* H1: the hero sits on the same container edges as the header and every chapter (no wider 1400px hero wrap) */
.hero .wrap { max-width: calc(var(--maxw) + 2 * var(--gut)); }
@media (min-width: 1101px) {
  .hero-grid { grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); }
  .hero .mp-actions { grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); }
}
/* 1101–1279: the column is too narrow for Join Server + its "Copy address" sub beside Discord: stack them */
@media (min-width: 1101px) and (max-width: 1279px) { .hero .mp-actions { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
/* H2: the server card's head line starts and ends past the filigree corners */
@media (min-width: 900px) { .mp-head { padding-inline: calc(var(--cs) * .92); } }
/* H3: ledes. Under a centred chapter title a short lede (no drop cap = fewer than 3 lines) is centred and balanced, so
   the block can't drift left inside a fit-content box that ignores balancing; a drop-cap lede fills its measure
   (pretty, not balance) so its ragged right edge stays close to the box. The hero lede never ends on one word. */
.sec-head .sec-lede:not(.cap-drop) { text-align: center; text-wrap: balance; }
.sec-head .sec-lede.cap-drop { text-wrap: pretty; }
.hero .lede { text-wrap: balance; }
@media (min-width: 1101px) {
  /* two-sentence short ledes: one sentence per line instead of a balanced break mid-sentence */
  #status .sec-lede .updated, #rules .sec-lede .lede-2 { display: block; }
}
/* H5: the shy dock (app.js): slides away while it would cover a hero control; stays focusable (no visibility:hidden,
   also under reduced motion), and comes back the moment focus enters it */
.dock.is-shy:not(:focus-within) { translate: 0 calc(100% + 40px); pointer-events: none; }
.dock.is-shy:not(:focus-within) > * { pointer-events: none; }
/* r7 A1: the first frames. app.js (run after the LCP paint on this BOOT page) is what measures the hero, so until it
   has (data-dock), the dock waits in its shy position: it never covers Join Server / Join the Discord / the address
   while the page loads, at any size (it covered them for ~0.4 s locally, seconds on a slow phone). Where the hero
   leaves room, it then slides up into place. JS-only (no-JS keeps the dock in place), and focus still brings it in. */
.js .dock:not([data-dock]):not(:focus-within) { translate: 0 calc(100% + 40px); pointer-events: none; }
.js .dock:not([data-dock]):not(:focus-within) > * { pointer-events: none; }
.dock.no-tr { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .dock.is-shy:not(:focus-within) { translate: none; opacity: 0; }
  .js .dock:not([data-dock]):not(:focus-within) { translate: none; opacity: 0; }
}
/* H4: the two top status cards end on the same ruled colophon line. The quiet (nobody on) state fills its card: the
   lead group at the top, the join action, then the foot pinned to the bottom under a gilt hairline that lines up with
   the leaderboard's foot, so the space above it reads as the card's margin, not a gap. */
.hud-players, .hud-spot { display: flex; flex-direction: column; }
.hud-players .hud-foot, .hud-spot .hud-foot {
  margin-top: auto; padding-top: 12px; border-top: 0; min-height: 0;
  background: linear-gradient(90deg, var(--g2), transparent 85%) 0 0 / 100% 1px no-repeat;
}
.hud-players .quiet, .hud-players .hud-act { margin-bottom: 20px; }
@media (min-width: 1101px) {
  /* both feet start on the same line: the leaderboard's foot is two lines at this width, so give the players' foot
     the same two-line box (the second line is the "since" fact on its own line) */
  .hud-players .hud-foot, .hud-spot .hud-foot { min-height: calc(2 * 1.45em + 12px); }
}
/* H6a: the selected-rank card has no colour wash in Daylight (the Legend pink radial read as a stain); the rank keeps
   its colour in the name plate, the rule under it and the bullets */
[data-theme="day"] .lore-card, [data-theme="day"] .mc-tip.lore-card {
  background:
    var(--c-tl) 0 0 / 34px auto no-repeat padding-box, var(--c-tr) 100% 0 / 34px auto no-repeat padding-box,
    var(--c-bl) 0 100% / 34px auto no-repeat padding-box, var(--c-br) 100% 100% / 34px auto no-repeat padding-box,
    linear-gradient(rgb(255 250 236 / .55), rgb(255 250 236 / .55)) padding-box,
    url(/assets/chronicle/parchment-768.webp) 0 0 / 768px 768px padding-box,
    linear-gradient(180deg, #B8862F, #6B4612) border-box;
}
/* H6b: supporter "Coming soon" = a sealed plate, not a disabled input: engraved hatching inside a double gilt rule, the
   lock pressed into a wax seal in the rank's colour, the words set in the display caps. No bevel, no hover lift. */
#supporters .sup-card .btn-soon {
  --soon-bg: rgb(20 14 9 / .5); --soon-hatch: rgb(215 160 64 / .09); --soon-rim: rgb(215 160 64 / .6); --soon-rim2: rgb(215 160 64 / .28); --soon-ink: #EADFC6;
  min-height: 54px; gap: 14px; padding: 6px 18px;
  font: 700 14px/1 var(--f-display); letter-spacing: .18em; text-transform: uppercase; color: var(--soon-ink); text-shadow: none;
  background: repeating-linear-gradient(135deg, var(--soon-hatch) 0 1px, transparent 1px 6px), var(--soon-bg);
  border: 0; border-radius: 2px; transform: none;
  box-shadow: inset 0 0 0 1px var(--soon-rim), inset 0 0 0 4px transparent, inset 0 0 0 5px var(--soon-rim2);
}
#supporters .sup-card .btn-soon:hover, #supporters .sup-card .btn-soon:active {
  background: repeating-linear-gradient(135deg, var(--soon-hatch) 0 1px, transparent 1px 6px), var(--soon-bg);
  box-shadow: inset 0 0 0 1px var(--soon-rim), inset 0 0 0 5px var(--soon-rim2); transform: none;
}
#supporters .sup-card .btn-soon svg.ui {
  box-sizing: content-box; flex: none; width: 15px; height: 15px; padding: 7px; border-radius: 50%; color: #FFF3DC;
  background: radial-gradient(circle at 36% 30%, color-mix(in oklab, var(--c) 72%, #FFF 14%), color-mix(in oklab, var(--c) 58%, #1A0F06) 72%);
  box-shadow: 0 0 0 1px #1A0F06, 0 0 0 2.5px color-mix(in oklab, var(--c) 35%, #C9973E), 0 2px 3px rgb(0 0 0 / .45);
  filter: none;
}
[data-theme="day"] #supporters .sup-card .btn-soon {
  --soon-bg: rgb(244 232 204 / .55); --soon-hatch: rgb(122 84 34 / .11); --soon-rim: rgb(138 90 20 / .7); --soon-rim2: rgb(138 90 20 / .32); --soon-ink: #4A3220;
}
/* F1: tablets. 900–1100 gets the two-column spread (headline + server card left, plate right) so the first viewport has
   the H1 and the join action, not just the plate; 761–899 stays stacked with a smaller plate, a centred lede and the
   phone order inside the card (address + actions first, the server-list row after). */
@media (min-width: 900px) and (max-width: 1100px) {
  .hero { padding-top: 92px; }
  .hero-grid { grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); gap: 28px; align-items: center; }
  .hero-plate { grid-column: 2; grid-row: 1; width: 100%; margin-inline: 0; }
  .hero-in { grid-column: 1; grid-row: 1; align-items: flex-start; text-align: left; }
  .hero .hero-in h1 { font-size: clamp(44px, 4.9vw, 54px); line-height: 1; max-width: 11ch; }
  .hero h1::after { margin-left: 0; background-position: left center; width: 170px; height: 16px; margin-top: 10px; }
  .hero .lede { margin-top: 12px; font-size: 17px; max-width: 36ch; }
  .hero .lede::after { display: none; }
  .hero .mp { display: flex; flex-direction: column; width: 100%; margin-top: 16px; padding: 18px 20px 14px; }
  .hero .mp-head { order: -3; }
  .hero .addr { order: -2; margin-top: 2px; }
  .hero .mp-actions { order: -1; margin: 10px 0 14px; }
  .hero .addr-field { white-space: nowrap; font-size: 16px; padding-inline: 28px; }
  .hero .mp-actions { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; }
  .hero .mp-actions .btn { min-height: 50px; }
  .hero .mp-steps, .hero .tip { display: none; }
  .hero .entry-cap { margin-top: 8px; }
  .hero .addr { margin-top: 10px; }
  .hero-plate .pl-cap { margin-top: 10px; }
}
@media (min-width: 761px) and (max-width: 899px) {
  .hero-plate { width: min(100%, 600px); margin-inline: auto; }
  .hero .lede { text-align: center; margin-inline: auto; max-width: 52ch; }
  .hero .lede::after { display: none; }
  .hero .mp { display: flex; flex-direction: column; width: min(560px, 100%); margin-top: 18px; }
  .hero .mp-head { order: -3; }
  .hero .addr { order: -2; margin-top: 2px; }
  .hero .mp-actions { order: -1; margin: 10px 0 16px; }
}
@media (min-width: 900px) and (max-width: 1100px) { .hero .mp-actions .btn { padding-inline: 14px; gap: 10px; } }
@media (min-width: 900px) and (max-width: 1023px) { .hero .mp-actions { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 900px) and (max-width: 1100px) {
  .hero .entry { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
  .hero .entry-icon { width: 48px; height: 48px; }
}
/* 320–359: "Multiplayer" and "Java Edition 26.3" don't fit side by side; set them as two centred lines, not a wrap */
@media (max-width: 359px) { .hero .mp-head { flex-direction: column; align-items: center; gap: 6px; } .hero .mp-head span { white-space: nowrap; } }

/* ---------- r6 UX-64: the two hero CTAs answer the pointer with a clear tint, not just a 1px lift ----------
   Gold leaf brightens to a lit leaf with a warm halo; the violet Discord seal lifts its aurora and glows. */
.btn-primary { --bbh: linear-gradient(180deg, #FFF1C4 0%, #F2C460 50%, #A8711C 100%); }
.btn-primary:not(.is-copied):hover {
  box-shadow: inset 0 0 0 1px rgb(255 250 228 / .6), inset 0 1px 0 1px rgb(255 252 238 / .9), inset 0 -3px 0 #7A4C10,
    0 0 0 1px #2B1A06, 0 0 0 3px rgb(246 215 126 / .42), 0 10px 20px -10px rgb(122 76 16 / .85);
}
:root, [data-theme="night"], [data-theme="day"] {
  --discord-h: linear-gradient(180deg, rgb(255 246 220 / .16), transparent 46%), radial-gradient(120% 160% at 50% -40%, rgb(176 146 255 / .72), transparent 64%), linear-gradient(180deg, #43297A 0%, #311C5C 56%, #22123F 100%);
}
.btn-discord:hover {
  box-shadow: inset 0 0 0 1px rgb(246 215 126 / .62), inset 0 1px 0 1px rgb(226 212 255 / .3), inset 0 -3px 0 var(--be),
    0 0 0 1px #0A0704, 0 0 0 3px #F0C25E, 0 0 0 4px #2B1A06, 0 10px 24px -8px rgb(123 91 214 / .85);
}

/* r6 UX-26: the join strip wraps (2+1 or stacked) at most widths, which left a connector diamond dangling at the end of
   a line; the numbered gems already set the sequence, so the strip drops the in-line diamonds and spaces the steps */
.mp-steps .ms:not(:last-child)::after { content: none; }
.mp-steps { column-gap: 18px; }

/* r6 UX-28: keyboard order = visual order in the hero card.
   Tablets (761–1100): the card keeps its desktop (DOM) order — server entry, then address, Join, Discord — instead of
   lifting the address and buttons above the entry; the buttons sit above the fold there either way.
   Phones (≤760): the address and buttons lead (above the fold, clear of the hotbar), so focus follows the visual order
   with reading-flow (Chromium; elsewhere the DOM order applies). */
@media (min-width: 761px) and (max-width: 1100px) {
  .hero .mp-head, .hero .addr, .hero .mp-actions { order: 0; }
  .hero .addr { margin-top: 12px; }
  .hero .mp-actions { margin: 12px 0 0; }
  .hero .mp-steps { margin-top: 12px; }
}
@media (max-width: 760px) { .hero .mp { reading-flow: flex-visual; } }

/* r6 P-S1: tablets 900-1100. The landscape plate was centred against a much taller left column (~150-370 px of bare
   parchment under it). Here the plate switches to the upright engraving (same plate, its own frame; render crop to
   match), sized so the plate + legend run the height of the headline + server card, top-aligned with the H1. */
@media (min-width: 900px) and (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) clamp(300px, 22vw + 110px, 340px); align-items: start; gap: clamp(28px, 4vw, 44px); }
  .hero-plate { align-self: start; }
  .rv-hero { aspect-ratio: 720 / 1080; width: 100%; margin: 6px 0 0; }
  .rv-hero picture, .rv-hero picture img, .rv-hero .rv-art img, .rv-hero .rv-real img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
  .rv > img.hero-title { width: 76%; top: 2.4%; transform: translate(-50%, 0); translate: none; }
  .hero-plate .pl-cap.pl-legend { flex-wrap: wrap; justify-content: flex-start; row-gap: 4px; margin-top: 12px; }
  .hero-plate .pl-legend .pl-t { flex: 1 1 100%; font-size: 15px; line-height: 1.35; }
  .hero-plate .pl-legend .rv-btn { margin-left: -8px; }
}
/* r6 P-S1: small desktops 1101-1280 — the 40/60 split squeezed the server card (name wrapped, buttons stacked), making
   the left column ~300 px taller than the plate; 46/54 keeps the card on its desktop layout and the plate centred
   with even margins. */
@media (min-width: 1101px) and (max-width: 1280px) {
  .hero-grid { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); }
}
/* r6 P-S2: truth rule — the hero plate's legend names it an illustration (or in-game render) at every width. On phones the
   kind drops to its own line under the plate name, beside the render toggle. */
@media (max-width: 760px) {
  .hero-plate .pl-legend .pl-kind { display: block; font-size: 13px; line-height: 1.3; }
  .hero-plate .pl-legend:not(:has([aria-pressed="true"])) .pl-kind-r,
  .hero-plate .pl-legend:has([aria-pressed="true"]) .pl-kind:not(.pl-kind-r) { display: none; }
}

/* r6 P-S3: on the full-width HUD bar (761-1100) the held-item name tag sits inside the bar's bottom strip, under the
   slots, instead of floating above the bar over page text and buttons (it covered "Join the Discord" at 1024x768) */
@media (min-width: 761px) and (max-width: 1100px) {
  .held { bottom: calc(6px + env(safe-area-inset-bottom)); padding: 2px 10px; font-size: 11px; line-height: 14px; letter-spacing: .18em;
    color: #E9C77B; background: none; box-shadow: none; }
}
/* r7 A2: on the floating desktop hotbar (≥1101) the name tag floated 46px above the bar for 1.3 s, over the cards
   scrolling past. It now lives in a nameplate ledge under the slots, part of the bar (same plate, same gilt ring, its
   top edge tucked under the frame), like the 761-1100 strip: the ledge is always there, the name lights up in it on a
   section change and fades. Nothing of the dock ever reaches past its resting box. */
@media (min-width: 1101px) {
  .dock { bottom: 8px; }
  .dock-row { z-index: 1; }
  .held { order: 2; align-self: stretch; box-sizing: border-box; height: 25px; margin: -3px 22px 0; padding: 6px 12px 0;
    font-size: 12px; line-height: 15px; letter-spacing: .18em; text-align: center; overflow: hidden; text-overflow: ellipsis;
    color: #F6D77E; opacity: 0; visibility: hidden; transition: opacity var(--dur-3) linear, visibility 0s linear var(--dur-3);
    background: linear-gradient(180deg, #18130D, #120E09); border-radius: 0 0 3px 3px;
    box-shadow: 0 0 0 1px #0A0704, 0 0 0 3px #C9973E, 0 0 0 4px #4A300A, 0 10px 22px -10px rgb(0 0 0 / .6); }
  /* p11 Q2: the ledge only shows while it names a slot (hover, focus, or the section you just reached); its box keeps
     its place while hidden, so nothing shifts. app.js writes the hovered/focused slot's name into it. */
  .held.show { opacity: 1; visibility: visible; transition: opacity 80ms linear, visibility 0s; }
  .held:empty { visibility: hidden; }
  .navhome .hotbar a:hover .lbl, .navhome .hotbar a:focus-visible .lbl { position: absolute; width: 1px; height: 1px;
    padding: 0; overflow: hidden; clip: rect(0 0 0 0); background: none; box-shadow: none; }
}
/* 2026-11-23: six nav links (Download joined). Signed in, the header also carries the avatar, bell and staff squares, so
   from 761 to 1359 px the Discord link steps out of the bar for signed-in visitors: they signed in with Discord, and the
   footer and the page bodies still link it. Signed-out visitors always see it. */
@media (min-width: 761px) and (max-width: 1359px) {
  .topbar:has([data-acct] .acct) .topnav a[href^="https://discord"] { display: none; }
}
/* up to 1359 px the pill reads "0/32" (the word "online" stays for screen readers) instead of ellipsizing to "0/32 o…" */
@media (max-width: 1359px) {
  .live-pill .pill-w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* phones, hub pages: six links can't share the nav row (Download joined 2026-11-23), so "Home" steps out there; the
   crest at the left of the bar is the home link ("Valkyrie Realms home"). Below 360 the row tightens a little more. */
@media (max-width: 760px) {
  .topbar.solid .topnav a[href="/"] { display: none; }
}
@media (max-width: 374px) {
  .topbar.solid .topnav a { padding-inline: 3px; font-size: 13.5px; }
}

/* ── p11 H2: the realm's pulse while nobody is on ─────────────────────────────────────────────────────────────── */
/* hero card: the header pill keeps the one online count; the entry shows the pulse line instead of a second 0/32 */
/* p11r2 #1: hidden in place (visibility), so the ping bars and the MOTD column never move when the pulse arrives */
.entry[data-quiet] .count { visibility: hidden; }
/* the "?" placeholder is narrower than a digit: hold one digit's width so the count never nudges the ping bars */
.entry .count [data-live="online"] { display: inline-block; min-width: 1ch; text-align: right; }
.entry-foot { text-wrap: pretty; }
.entry-foot:has(.pulse-heads) { display: flex; align-items: center; gap: 10px; }
.entry-foot .pulse-heads { display: inline-flex; flex: none; padding-left: 2px; }
.entry-foot .pulse-heads .head { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: -3px;
  background: #15100A; box-shadow: 0 0 0 1px #C9973E, 0 0 0 2px #0A0704; }
.entry-foot .pulse-heads .head img { width: 20px; height: 20px; }
.entry-foot .pulse-heads .head:last-child { margin-right: 0; }
.entry-foot .pulse-t { min-width: 0; text-wrap: balance; }
/* p11r2 #1 (desktop CLS 0.029 -> 0): the hero status line is reserved at its live height before live.json answers,
   so the pulse line (2 lines) never pushes the address plaque and buttons down. Its content is always ONE span (or
   heads + one span), so the flex box never splits mixed text into items. Phones drop the "h played" bit (the numbers
   strip carries it) to stay at 2 lines; below 360 the line takes 3. */
.hero .entry-foot { display: flex; align-items: center; gap: 10px; min-height: calc(2 * 1.4em); }
.entry-foot .ef-t { min-width: 0; }
@media (max-width: 420px) { .entry-foot .pb-opt { display: none; } }
@media (max-width: 359px) { .hero .entry-foot { min-height: calc(3 * 1.4em); } }
/* status section: the people who were just here lead (heads, names, how long ago) */
.quiet-recent { width: 100%; }
.quiet-k { margin: 0 0 10px; font: 700 13px/1.2 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.recent { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 8px; }
.recent li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 5px 10px 5px 5px; background: var(--ghost-h);
  box-shadow: inset 0 0 0 1px var(--rule); border-radius: 2px; }
.recent .head { flex: none; width: 40px; height: 40px; }
.recent .head img { width: 32px; height: 32px; }
.recent .rn { display: grid; min-width: 0; line-height: 1.25; }
.recent .rn b { color: var(--ink); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent .ra { font: 500 13px/1.3 var(--f-mono); color: var(--ink-3); }
.quiet-last[hidden], .quiet-recent[hidden] { display: none; }
@media (max-width: 420px) {
  .recent { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .recent li { gap: 8px; padding: 4px 8px 4px 4px; }
  .recent .head { width: 34px; height: 34px; }
  .recent .head img { width: 26px; height: 26px; }
  .recent .rn b { font-size: 15px; }
  .recent .ra { font-size: 12px; }
}

/* ── p11 H3: numbers strip (Live section) ─────────────────────────────────────────────────────────────────────── */
.numbers { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); margin: 0 0 18px; padding: 0;
  background: linear-gradient(90deg, transparent, var(--g1) 12%, var(--g1) 88%, transparent) 0 0 / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, var(--g2) 18%, var(--g2) 82%, transparent) 0 4px / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, var(--g2) 18%, var(--g2) 82%, transparent) 0 calc(100% - 4px) / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, var(--g1) 12%, var(--g1) 88%, transparent) 0 100% / 100% 1px no-repeat; }
.numbers[hidden], .numbers > [hidden] { display: none; }
.numbers[data-count="4"] { --n: 4; }
.numbers[data-count="3"] { --n: 3; }
.numbers[data-count="2"] { --n: 2; }
.numbers > div { display: flex; flex-direction: column-reverse; align-items: center; justify-content: flex-end; gap: 6px;
  padding: 18px 12px 16px; text-align: center; min-width: 0; }
.numbers > div + div { box-shadow: inset 1px 0 0 var(--rule); }
.numbers dt { font: 700 12.5px/1.25 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); text-wrap: balance; }
.numbers dd { margin: 0; font: 600 clamp(32px, 3.2vw, 44px)/1 var(--f-num); color: var(--ink); font-variant-numeric: tabular-nums;
  letter-spacing: -.01em; }
[data-theme="night"] .numbers dd { text-shadow: 3px 3px 0 #000; }
.numbers [data-n="uptime"] dd { color: var(--xp-ink); }
.numbers [data-n="age"][title] { cursor: help; }
/* phones: the four numbers stay one row (p11r2 HOME); below 375 px a 2 x 2 block (the odd last one spans) */
@media (max-width: 760px) {
  .numbers { margin-bottom: 14px; }
  .numbers > div { padding: 10px 4px 8px; gap: 4px; }
  .numbers dd { font-size: 24px; }
  .numbers dt { font-size: 10.5px; letter-spacing: .06em; }
}
@media (max-width: 374px) {
  .numbers { --n: 2 !important; }
  .numbers > div + div { box-shadow: none; }
  .numbers > .n-wide { grid-column: 1 / -1; }
  .numbers dd { font-size: 26px; }
  .numbers dt { font-size: 11px; }
}

/* ── p11 H4: copy-address slot in the phone dock (replaces the Join slot; Menu keeps all nine sections) ────────── */
.dock-copy { display: none; }
@media (max-width: 760px) {
  .navhome .hotbar li:has(> a[href="#join"]) { display: none; }
  .dock-copy { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; flex: none;
    width: 54px; height: 54px; padding: 0; cursor: pointer; color: #2A1806; border: 1px solid #0A0704; border-radius: 3px;
    background: linear-gradient(180deg, #F6D77E 0%, #D7A040 55%, #A8711C 100%);
    box-shadow: inset 0 0 0 1px rgb(255 246 214 / .55), inset 0 -3px 0 #7A4C10; -webkit-tap-highlight-color: transparent; }
  .dock-copy svg.ui { width: 20px; height: 20px; }
  .dock-copy .inv-txt { font: 700 12px/1 var(--f-mono); letter-spacing: .02em; }
  .dock-copy:active { box-shadow: inset 0 0 0 1px rgb(255 246 214 / .55), inset 0 -1px 0 #7A4C10; translate: 0 1px; }
  .dock-copy.is-copied { color: #F4EAD2; background: linear-gradient(180deg, #1F9E95, #0F6F68); box-shadow: inset 0 0 0 1px rgb(191 251 245 / .4), inset 0 -3px 0 #08403C; }
}

/* ── p11 C-NAV + H4: hub header copy chip (>= 761 px) and the phone "More" drawer (<= 760 px) ─────────────────── */
.addr-chip, .nav-more { display: none; }
@media (min-width: 761px) {
  .hubpage .addr-chip { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; min-height: 44px;
    min-width: 44px; padding: 0 12px; font: 700 13px/1 var(--f-mono); letter-spacing: .02em; color: var(--ink); white-space: nowrap;
    background: transparent; border: 0; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--slot-ring); cursor: pointer;
    transition: background-color var(--dur-1) linear, box-shadow var(--dur-1) linear; }
  .hubpage .addr-chip:hover { background: var(--ghost-h); box-shadow: inset 0 0 0 1px var(--gold-ink); }
  .hubpage .addr-chip svg.ui { width: 18px; height: 18px; color: var(--gold-ink); }
  .hubpage .addr-chip.is-copied { box-shadow: inset 0 0 0 1px var(--teal); }
  .hubpage .addr-chip.is-copied svg.ui { color: var(--teal); }
}
/* below 1600 px the chip is a 44 px square (the label stays for screen readers; title + toast say what it copied) */
@media (min-width: 761px) and (max-width: 1599px) {
  .hubpage .addr-chip { width: 44px; padding: 0; }
  .hubpage .addr-chip .btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* 761-1023 px, hub pages: the copy chip takes the room the Live map link had (the footer and home's map section keep it) */
@media (min-width: 761px) and (max-width: 1023px) {
  .hubpage .topbar .topnav a[href^="https://valkyriemap"] { display: none; }
}
/* signed in = the bell shows (on /guide/ guide.js paints the avatar late, so "My panel" may still be there): the
   Discord link steps out 761-1359 as for the avatar, and below 1024 the account button reads its short label */
@media (min-width: 761px) and (max-width: 1359px) {
  .topbar:has(.nav-bell:not([hidden])) .topnav a[href^="https://discord"] { display: none; }
}
@media (min-width: 761px) and (max-width: 1023px) {
  .topbar:has(.nav-bell:not([hidden])) .panel-btn { padding-inline: 10px; }
  .topbar:has(.nav-bell:not([hidden])) .panel-btn .acct-label { font-size: 0; }
  .topbar:has(.nav-bell:not([hidden])) .panel-btn .acct-label::after { content: "Panel"; font-size: 13.5px; }
}
@media (max-width: 419px) {
  .topbar:has(.nav-bell:not([hidden])) [data-acct] .panel-btn { width: 44px; min-width: 44px; padding: 0; overflow: hidden; }
  .topbar:has(.nav-bell:not([hidden])) [data-acct] .panel-btn svg.px { display: block; width: 24px; height: 24px; margin: 0; }
  .topbar:has(.nav-bell:not([hidden])) [data-acct] .panel-btn .acct-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .topbar:has(.nav-bell:not([hidden])) [data-acct] { min-width: 44px; }
}
/* 1100-1199: the brand is the crest alone (as below 1100; its aria-label keeps the name): with six links, the copy
   chip and a signed-in avatar the bar overflowed 8-57 px here (tools/navbudget.mjs) */
@media (min-width: 1100px) and (max-width: 1199px) { .brand span { display: none; } }
/* the pill is a link: never narrower than a 44 px target, even when only its state dot shows */
.live-pill { min-width: 44px; justify-content: center; }
@media (max-width: 760px) {
  /* the second header row: the first pages + More; the drawer lists everything, Join/Vote/Rules and the address */
  .hubpage .topbar.solid .topnav a[href^="https://"] { display: none; }
  .hubpage .nav-more { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; min-height: 44px;
    min-width: 44px; padding: 0 10px; font: 700 14px/1 var(--f-body); color: var(--ink); cursor: pointer; background: none; border: 0;
    border-radius: 3px; box-shadow: inset 0 0 0 1px var(--slot-ring); }
  .hubpage .nav-more svg.ui { width: 18px; height: 18px; color: var(--gold-ink); }
  .hubpage .nav-more:hover { background: var(--ghost-h); }
}
@media (max-width: 400px) {
  .hubpage .topbar.solid .topnav a[href="/download/"] { display: none; }
  .hubpage .nav-more { padding: 0 8px; font-size: 13px; }
}
.hubmenu { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 100%; max-height: min(90svh, 680px); margin: 0; padding: 0;
  overflow: auto; overscroll-behavior: contain; border: 0; color: var(--ink); background: transparent; }
.hubmenu::backdrop { background: rgb(10 7 4 / .55); }
.hubmenu-in { position: relative; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); background: var(--panel-fill);
  box-shadow: 0 -1px 0 var(--outline), inset 0 1px 0 #C9973E, inset 0 4px 0 var(--panel), inset 0 5px 0 rgb(201 151 62 / .45),
    0 -18px 40px -16px rgb(0 0 0 / .6); }
.hubmenu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.hubmenu-t { font: 700 15px/1.2 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.hubmenu-x { width: 44px; min-width: 44px; padding: 0; }
.hubmenu-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hubmenu-links a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; min-width: 0; color: var(--ink);
  text-decoration: none; font: 700 15px/1.2 var(--f-body); background: var(--ghost-h); box-shadow: inset 0 0 0 1px var(--rule); border-radius: 2px; }
.hubmenu-links a > span:not(.sr-only) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hubmenu-links a:hover { box-shadow: inset 0 0 0 1px var(--gold-ink); }
.hubmenu-links a[aria-current="page"] { color: var(--gold-ink); box-shadow: inset 0 0 0 1px var(--gold-ink); }
.hubmenu-links svg.px { width: 24px; height: 24px; flex: none; }
.hubmenu-addr { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; box-shadow: inset 0 1px 0 var(--rule); }
.hubmenu-addr-l { display: flex; justify-content: space-between; gap: 8px; font: 700 12.5px/1.2 var(--f-display); letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); }
.hubmenu-addr-l span { letter-spacing: .06em; }
.hubmenu-addr code { display: block; padding: 10px 12px; font: 500 15px/1.3 var(--f-mono); color: var(--ink); text-align: center;
  overflow-wrap: anywhere; background: var(--slot); box-shadow: inset 0 0 0 1px var(--slot-ring); }
.hubmenu-addr .btn { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .hubmenu:popover-open .hubmenu-in { animation: hubmenu-in var(--dur-3) var(--ease); }
  @keyframes hubmenu-in { from { translate: 0 24px; opacity: 0; } }
}

/* ── p11 H5: Latest from the realm (teasers + Next up) and the Town square (rules + vote) ─────────────────────── */
.latest { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); gap: clamp(16px, 2vw, 24px); align-items: stretch; }
.latest:has(> .latest-posts[hidden]) { grid-template-columns: minmax(0, 560px); justify-content: center; }
.latest-posts { display: grid; min-width: 0; }
.teasers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.teasers li { display: flex; min-width: 0; }
.teaser { position: relative; display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 16px 16px 18px; color: var(--ink);
  text-decoration: none; background: var(--panel-fill); border-radius: 3px;
  box-shadow: inset 0 0 0 1px var(--rule), inset 0 2px 0 rgb(201 151 62 / .55); transition: box-shadow var(--dur-1) linear, translate var(--dur-1) var(--ease); }
.teaser:hover { box-shadow: inset 0 0 0 1px var(--gold-ink), inset 0 2px 0 #C9973E; }
@media (prefers-reduced-motion: no-preference) { .teaser:hover { translate: 0 -2px; } }
.t-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 600 13px/1 var(--f-mono); color: var(--ink-3); }
.t-cat { padding: 5px 8px; font-size: 12px; letter-spacing: .02em; }
.t-cat[data-cat="fix"] { color: #7FD4CB; }
.t-cat[data-cat="addition"] { color: #9BE07A; }
.t-cat[data-cat="event"], .t-cat[data-cat="community"] { color: #E7A6F2; }
.t-cat[data-cat="economy"] { color: #F6D77E; }
.t-cat[data-cat="worlds"] { color: #8FC3FF; }
[data-theme="day"] .t-cat[data-cat="fix"] { color: #08564F; }
[data-theme="day"] .t-cat[data-cat="addition"] { color: #275A0E; }
[data-theme="day"] .t-cat[data-cat="event"], [data-theme="day"] .t-cat[data-cat="community"] { color: #7A2C8C; }
[data-theme="day"] .t-cat[data-cat="economy"] { color: #7A4C10; }
[data-theme="day"] .t-cat[data-cat="worlds"] { color: #1D4F8C; }
.t-title { font: 700 18px/1.25 var(--f-body); color: var(--ink); text-wrap: balance; }
.teaser:hover .t-title { color: var(--gold-ink); }
.t-sum { font-size: 15px; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.all-link { justify-self: start; align-self: flex-start; display: inline-flex; align-items: center; gap: .3em; min-height: 44px; font: 700 15px/1.2 var(--f-body); color: var(--gold-ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.all-link:hover { text-decoration-thickness: 2px; }
.next-up { display: flex; flex-direction: column; min-width: 0; padding: 24px 24px 14px; }
.next-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.next-i { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; margin: 0 -8px;
  color: var(--ink); text-decoration: none; border-radius: 3px; }
a.next-i:hover { background: var(--ghost-h); }
a.next-i:hover .next-t b { color: var(--gold-ink); }
.next-day { display: grid; place-items: center; align-content: center; gap: 2px; width: 52px; height: 56px; background: var(--slot); box-shadow: inset 0 0 0 1px var(--slot-ring); border-radius: 2px; }
.next-day i { font: 700 11px/1 var(--f-display); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.next-day b { font: 600 22px/1 var(--f-num); color: var(--ink); font-variant-numeric: tabular-nums; }
.next-t { display: grid; gap: 3px; min-width: 0; }
.next-t b { font: 700 16px/1.3 var(--f-body); }
.next-t > span { font-size: 14px; line-height: 1.4; color: var(--ink-3); }
.next-s { font-size: 14px; color: var(--ink-3); }
.next-foot { margin-top: auto; padding-top: 8px; }
@media (max-width: 1100px) {
  .latest { grid-template-columns: minmax(0, 1fr); }
  .teasers { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .teaser { display: grid; grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .latest { grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); }
}
.square { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); margin-top: clamp(16px, 2vw, 24px); }
.square > .panel { display: flex; flex-direction: column; gap: 12px; padding: clamp(18px, 2.4vw, 28px); }
.square .hud-h { margin-bottom: 2px; }
.sq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: sq; }
.sq-list li { position: relative; padding-left: 34px; font-size: 16px; line-height: 1.5; color: var(--ink-2); counter-increment: sq; }
.sq-list li::before { content: counter(sq); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; display: grid; place-items: center;
  font: 600 14px/1 var(--f-num); color: var(--gold-ink); background: var(--slot); box-shadow: inset 0 0 0 1px var(--slot-ring); }
.sq-list strong { color: var(--ink); }
.sq-vote p { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.sq-vote .btn { align-self: start; margin-top: auto; }
@media (max-width: 760px) { .square { grid-template-columns: minmax(0, 1fr); } }

/* ── p11 H1: the trailer (a third plate control beside illustration ↔ render, and a framed Chronicle player) ───── */
.hero-plate .pl-acts { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.tr-play { width: 0; height: 0; flex: none; border-block: 5px solid transparent; border-left: 8px solid currentColor; margin-left: 2px; }
.tr-btn .tr-play { color: var(--gold-ink); }
.tr-btn .tr-len { font-family: var(--f-mono); font-weight: 600; letter-spacing: 0; }
/* ≥ 761: legend = title row, then the two plate controls (they wrap under each other in the narrow 900-1100 plate) */
@media (min-width: 761px) {
  .hero-plate .pl-cap.pl-legend { flex-wrap: wrap; }
  .hero-plate .pl-acts { flex: 1 1 100%; min-width: 0; flex-wrap: wrap; justify-content: flex-start; column-gap: 18px; row-gap: 0; }
}
/* phones: the legend keeps its one row (title + render toggle); the trailer is a chip on the plate's lower right */
.tr-chip { position: absolute; z-index: 3; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 0 14px 0 12px; font: 700 13px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: #F6E7C1; cursor: pointer;
  background: rgb(14 10 6 / .78); border: 1px solid #0A0704; border-radius: 3px; box-shadow: inset 0 0 0 1px rgb(201 151 62 / .75);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.tr-chip .tr-play { color: #F6D77E; }
.tr-chip .tr-len { font: 600 12px/1 var(--f-mono); letter-spacing: 0; color: #D9C9A3; }
.tr-chip:hover { background: rgb(14 10 6 / .9); }
@media (min-width: 761px) { .tr-chip { display: none; } }
@media (max-width: 359px) { .tr-chip { gap: 7px; padding-inline: 10px; font-size: 0; letter-spacing: 0; } .tr-chip .tr-len { font-size: 13px; } }
@media (max-width: 760px) { .hero-plate .pl-acts .tr-btn { display: none; } .hero-plate .pl-acts { display: contents; } } /* phones: the legend is exactly as before (title + render toggle) */
.trailer { width: min(1280px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; overflow: hidden;
  color: #F4EAD2; background: #0E0A06; border: 0; border-radius: 2px;
  box-shadow: inset 0 0 0 1px #6B4410, inset 0 0 0 3px #C9973E, inset 0 0 0 4px #3A2408, 0 0 0 1px #0A0704, 0 30px 80px -20px rgb(0 0 0 / .9); }
.trailer::backdrop { background: rgb(6 4 2 / .9); }
.tr-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 14px 12px 22px; }
.tr-hgroup { min-width: 0; }
.tr-title { font: 700 17px/1.25 var(--f-display); letter-spacing: .08em; color: #F6D77E; }
.tr-meta { margin-top: 3px; font-size: 14px; line-height: 1.4; color: #BFAE8C; }
.tr-close { flex: none; width: 48px; min-width: 48px; min-height: 48px; padding: 0; color: #F4EAD2; }
.tr-close:hover { background: rgb(201 151 62 / .16); }
.tr-stage { padding: 0 6px 6px; }
.tr-stage video:focus-visible { outline: 2px solid #F6D77E; outline-offset: -4px; }
.tr-stage video { display: block; width: 100%; height: auto; max-height: calc(100dvh - 24px - 84px); aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
.trailer.is-vert { width: min(440px, calc(100vw - 16px)); }
.trailer.is-vert .tr-stage video { aspect-ratio: 9 / 16; }
.trailer.is-vert .tr-meta { display: none; }
@media (max-width: 760px) {
  .tr-head { padding: 8px 8px 8px 14px; }
  .tr-title { font-size: 15px; }
  .hero-plate .pl-acts { gap: 6px; }
}
@media (prefers-reduced-motion: no-preference) { .trailer[open] { animation: lbin 160ms var(--ease); } }

/* ── p11 Phase 3: home IA re-cut (starter commands, one-line supporters, 3 waypoints, short join, promises) ─────── */
.cmds-copy { display: grid; gap: 8px; align-content: start; }
.cmds-copy p { margin-top: 0; }
.cmds-copy .all-link { margin-top: 4px; }
.sup-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: clamp(18px, 2.4vw, 28px); padding: 14px 18px;
  font-size: 16px; line-height: 1.5; color: var(--ink-2); background: var(--ghost-h); box-shadow: inset 0 0 0 1px var(--rule); border-radius: 3px; }
.sup-line > span:not(.sup-gems) { flex: 1 1 420px; min-width: 0; }
.sup-line strong { color: var(--ink); }
.sup-gems { display: inline-flex; gap: 4px; flex: none; }
.sup-gems svg.rg { width: 24px; height: 24px; }
.sup-line .all-link { flex: none; }
.waypoints .all-link { margin-top: 10px; }
.join-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 20px; padding: 16px 20px;
  background: var(--ghost-h); box-shadow: inset 0 0 0 1px var(--rule); border-radius: 3px; }
.join-more p { flex: 1 1 360px; min-width: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.join-more strong { color: var(--ink); }
.join-more-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.square > .promises { position: relative; gap: 0; box-shadow: inset 0 0 0 1px #6B4410, inset 0 0 0 3px rgb(201 151 62 / .9), inset 0 0 0 4px #6B4410, 0 10px 24px -14px rgb(0 0 0 / .7); }
.pr-title { font: 700 15px/1.2 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); text-align: center; }
.pr-title::after { content: ""; display: block; width: 180px; max-width: 60%; height: 14px; margin: 8px auto 0; background: url(/assets/chronicle/rule.svg) center / contain no-repeat; }
.pr-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.pr-list li { position: relative; padding-left: 24px; font: 400 16px/1.45 var(--f-body); color: var(--ink-2); }
.pr-list li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px; transform: rotate(45deg);
  background: linear-gradient(135deg, #F6D77E, #C9973E 60%, #7A4C10); box-shadow: 0 0 0 1px #3A2408; }
.pr-list strong { color: var(--ink); }
.pr-sign { margin-top: 14px; text-align: right; font: italic 400 17px/1.3 var(--f-display); letter-spacing: .04em; color: var(--gold-ink); }
@media (max-width: 760px) {
  .join-more { padding: 14px; }
  .join-more-acts, .join-more-acts .btn { width: 100%; }
  .sup-line { padding: 12px 14px; font-size: 15px; }
}

/* ── p11 Phase 3: home rhythm (targets: desktop ≤ 7,500 px, phone ≤ 9,000 px; tools/homeprobe heights.js) ───────── */
/* one-line chapter titles and ledes on desktop, a tighter beat between chapters */
body:not(.hubpage) { --sec-y: clamp(20px, 1.8vw, 26px); } /* p11r2 #2: was clamp(26px, 3.4vw, 50px) */
body:not(.hubpage) .sec-head { margin-bottom: clamp(18px, 1.8vw, 24px); }
body:not(.hubpage) .sec-head h2 { max-width: 30ch; }
body:not(.hubpage) .sec-head .sec-lede { margin-top: 12px; }
@media (min-width: 1101px) { body:not(.hubpage) .sec-head .sec-lede { max-width: min(72ch, 100%); } }
/* the square: promises · rules · vote side by side */
@media (min-width: 1101px) { .square { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.15fr) minmax(0, .85fr); } }
@media (max-width: 1100px) and (min-width: 761px) { .square { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .square > .promises { grid-column: 1 / -1; } .promises .pr-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; } }
/* gallery: compact legends (plate no. inline, one row of controls) */
.plates .pl-card .pl-no { display: inline; margin: 0; }
.plates .pl-card .pl-dot { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
.plates .pl-card .pl-cap { margin-top: 8px; row-gap: 4px; }
.plates .pl-card .pl-t { line-height: 1.35; }
@media (max-width: 760px) {
  body:not(.hubpage) { --vig-w: 50px; }
  body:not(.hubpage) .sec h2 { font-size: clamp(26px, 7.4vw, 32px); }
  body:not(.hubpage) .sec-head .sec-lede { font-size: 16px; }
  /* starter commands: one tight row each */
  .cmds .chat-lines button { min-height: 44px; padding: 6px 8px; gap: 10px; }
  .cmds .chat-lines span { font-size: 14px; line-height: 1.3; }
  /* latest: a swipe rail instead of three stacked cards */
  .teasers { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 10px; overflow-x: auto;
    scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 2px; }
  .teasers::-webkit-scrollbar { display: none; }
  .teasers li { scroll-snap-align: start; }
  /* join: compact steps */
  .craft { gap: 30px; }
  .step { padding: 14px 14px 16px; }
  /* town square */
  .cta { padding: 20px 16px; }
  .square > .panel { padding: 16px; }
}
@media (min-width: 1101px) {
  /* gallery: three plates a row (two rows, not three) */
  .plates { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(26px, 2.6vw, 40px) clamp(20px, 2vw, 30px); }
  .plates .pl-card .pl-legend .pl-t { font-size: 16px; }
}
@media (min-width: 1101px) { .cta { padding: clamp(26px, 3vw, 44px); } }
@media (max-width: 760px) {
  /* features: phone tiles are one row each (slot + name); the line is in the tooltip, as before */
  .inv-grid .item-btn { grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: auto; align-items: center; justify-items: stretch;
    row-gap: 0; column-gap: 10px; min-height: 56px; padding: 8px 10px 8px 8px; }
  .inv-grid .item-btn .slot { width: 36px; height: 36px; }
  .inv-grid .item-btn svg.px { width: 28px; height: 28px; }
  .inv-grid .item-name { align-self: center; }
  /* town square: the advancement toast is decoration; the actions come first on phones */
  .cta .cta-art { display: none; }
}
/* waypoints: three rows now, so the guide link sits at the panel foot instead of leaving a hole under it */
.waypoints { display: flex; flex-direction: column; }
.wp-tip { margin-top: 14px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.wp-tip kbd { font: 700 13px/1 var(--f-mono); padding: 3px 6px; color: var(--ink); background: var(--slot); box-shadow: inset 0 0 0 1px var(--slot-ring); border-radius: 2px; }
.waypoints .wp-all { margin-top: auto; padding-top: 14px; }
/* gallery legends: the controls row sits on a common baseline even when a title wraps */
.plates .pl-card .pl-cap.pl-legend { flex: 1 0 auto; grid-template-rows: auto 1fr; }
.plates .pl-card .pl-acts { align-self: end; }
/* phone hero legend: the render toggle never pulls into the title (it touched "spawn" at 360) */
@media (max-width: 760px) { .hero-plate .pl-cap.pl-legend { flex-wrap: wrap; row-gap: 2px; } .hero-plate .pl-legend .rv-btn { margin-left: 0; flex: none; } .hero-plate .pl-legend .pl-t { flex: 1 1 auto; min-width: auto; } }
/* footer: one plain line under the address, so the brand column isn't an empty well beside five rows of links */
.foot-tag { margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 760px) { .foot-tag { margin-top: 6px; font-size: 14px; } }
@media (max-width: 560px) { .foot-tag { grid-column: 1 / -1; margin-top: -4px; } } /* the brand block is display:contents here */

/* ---------- p11r2 HOME #1 · no shifts while the page is still arriving ----------
   On a slow phone Chrome paints the hero and header before their HTML has fully arrived. The server card's phone
   layout puts the address and buttons first with `order`, so when they were parsed (after the entry) they slid in
   ABOVE the already painted card head and pushed it down: CLS 0.005-0.05 in 1 of 4 throttled phone loads. Likewise
   the header tools grew leftwards as the account button arrived (0.004). Each block stays invisible until its last
   child exists, then appears once, in place (layout-shift ignores invisible boxes). Without :has() nothing changes. */
.hero .mp:not(:has(> .mp-steps)), .topbar-tools:not(:has(> [data-acct])) { visibility: hidden; }

/* ---------- p11r2 HOME #2-#4 · "The realm, right now" in three blocks ----------
   One adventurer list (online heads / recent rows carry their 7-day hours; the separate "Most active" board is gone),
   the Adventurer-of-the-week plaque in the board's old column, and the server vitals (TPS, 30-day uptime, week
   progress to the resource reset) as one panel of three gilded gauges instead of three cards + a countdown slab. */
.hud-players { grid-column: span 8; }
.hud-spot { grid-column: span 4; }
.hud > .panel.hud-spot { padding-bottom: 18px; }
/* the online count sits in the card's title row */
.hud-players .hud-h h3 { margin-right: auto; }
.hud-h .big-count { font-size: clamp(36px, 3vw, 46px); line-height: 1; }
.hud-h .big-count .of { font-size: .5em; }
/* online heads: name + "21.7 h in 7 days"; recent rows: "6 min ago · 8.0 h" (gold hours scan as a column) */
.heads .pwho { display: grid; min-width: 0; line-height: 1.25; }
.heads .ph, .recent .ra { font: 500 13.5px/1.3 var(--f-body); font-variant-numeric: tabular-nums; }
.heads .ph { color: var(--ink-3); white-space: nowrap; }
.recent .rh { color: var(--gold-ink); font-weight: 700; white-space: nowrap; }
.recent .rh::before { content: " · "; color: var(--ink-3); font-weight: 500; }
/* #3: nobody on, people just were: a small true "0 online now" under "Last seen in the realm" */
.quiet-now { display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 0; font: 600 14px/1.3 var(--f-mono); color: var(--ink-2); }
.quiet-now b { color: var(--ink); }
.quiet-now .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--xp-ink); box-shadow: 0 0 0 2px rgb(111 227 214 / .2); }
.quiet-now[hidden], .quiet-lead[hidden] { display: none; }

/* #4: the plaque. A gilt-rimmed brass plate with a trophy crest; names stay in the body face (case-sensitive) */
.spot { flex: 1; display: grid; align-content: center; padding: 18px 0 16px; }
.spot-plate {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px;
  padding: 20px 18px 18px 16px; color: var(--ink); text-decoration: none; border-radius: 2px;
  background: radial-gradient(120% 90% at 0 0, rgb(255 226 150 / .12), transparent 60%), var(--ghost-h);
  box-shadow: var(--gilt-rim);
}
.spot-plate:hover { background-color: rgb(232 180 74 / .06); }
.spot-plate:hover .spot-name { text-decoration: underline; text-underline-offset: 3px; }
.spot-crest {
  position: absolute; top: -14px; left: 50%; translate: -50% 0; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; color: var(--gold-ink); background: var(--panel);
  box-shadow: 0 0 0 1.5px #C9973E, 0 0 0 3px var(--panel);
}
.spot-crest svg { width: 16px; height: 16px; }
.spot-head { width: 68px; height: 68px; box-shadow: inset 0 0 0 1px var(--slot-ring), 0 0 0 2px #C9973E, 0 0 0 3px rgb(74 48 10 / .8); }
.spot-head img { width: 56px; height: 56px; image-rendering: pixelated; }
.spot-who { display: grid; gap: 4px; min-width: 0; }
.spot-name { font: 700 21px/1.2 var(--f-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spot-guild { font: 700 13px/1.2 var(--f-mono); color: var(--gold-ink); }
.spot-guild[hidden] { display: none; }
.spot-h { font-size: 15px; line-height: 1.35; color: var(--ink-2); }
.spot-h b { font: 600 19px/1 var(--f-num); color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.spot[data-state="none"] .spot-head img { opacity: .6; filter: grayscale(.5); }
.spot[data-state="none"] .spot-name { color: var(--ink-2); }
.spot[data-state="none"] .spot-h { font-size: 14px; text-wrap: balance; }

/* vitals: one slim panel, three ruled cells (label + value on a line, the gauge, one short note) */
.hud > .panel.hud-vitals { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; }
.vital { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; align-content: start; gap: 8px 12px; padding: 16px 22px; min-width: 0; }
.vital + .vital { box-shadow: inset 1px 0 0 var(--rule); }
.vital-k { font: 700 13px/1.3 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.vital-v { font: 600 clamp(22px, 1.9vw, 26px)/1 var(--f-num); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vital-tps .vital-v > [data-live] { color: var(--xp-ink); }
.hud[data-state="unknown"] .vital-tps .vital-v > [data-live] { color: var(--ink-3); }
.vital-u { font: 700 13px/1 var(--f-mono); color: var(--ink-2); }
.vital-v.cd b { font-weight: 600; }
.vital-v.cd i { font: 700 14px/1 var(--f-mono); font-style: normal; color: var(--ink-3); margin-left: 1px; }
.vital-g { grid-column: 1 / -1; --gauge-h: 10px; margin: 2px 3px; }
.vital-s { grid-column: 1 / -1; font-size: 14px; line-height: 1.4; color: var(--ink-3); }
.vital-s b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

@media (min-width: 1101px) {
  .hud-players .heads { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .hud-players .heads li { gap: 10px; padding: 5px 8px 5px 5px; }
  .hud-players .heads .head { width: 40px; height: 40px; }
  .hud-players .heads .head img { width: 32px; height: 32px; }
  .hud-players .heads .pname { font-size: 16px; }
}
/* wide card: the activity counts and the join button share a row */
@media (min-width: 861px) {
  .quiet, .hud-act { grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; }
  .quiet > * { grid-column: 1 / -1; }
  .quiet > .quiet-n { grid-column: 1; }
  .quiet > .quiet-cta { grid-column: 2; align-self: center; margin-top: 0; }
  .hud-act { align-items: center; }
  .hud-act .act-cta { justify-self: end; }
}
@media (max-width: 1100px) {
  .hud-players { grid-column: span 7; }
  .hud-spot { grid-column: span 5; }
  .vital { grid-template-columns: minmax(0, 1fr); padding: 14px 18px; }
}
@media (max-width: 860px) {
  .hud-players, .hud-spot { grid-column: 1 / -1; }
  .spot { padding: 16px 0 18px; }
}

/* ---------- p11r2 HOME #2 · features: phones keep 10 tiles + a disclosure; the six commands are one chip row ---------- */
.inv-more-row { display: none; }
.cmds { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: clamp(28px, 3.4vw, 44px); }
.cmds .cmds-copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding-bottom: 10px; box-shadow: inset 0 -1px 0 var(--g2); }
.cmds .cmds-copy .h3 { font-size: clamp(20px, 1.8vw, 24px); }
.cmds .cmds-copy p { margin: 0; color: var(--ink-2); flex: 1 1 22ch; }
.cmds .cmds-copy .all-link { margin: 0; }
.cmd-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.cmd-chips button {
  display: flex; align-items: baseline; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 8px 12px;
  color: var(--ink-2); background: var(--slot); box-shadow: inset 0 0 0 1px var(--slot-ring), inset 0 3px 8px rgb(0 0 0 / .16);
  border-radius: 3px; white-space: nowrap; transition: box-shadow .15s, background-color .15s;
}
.cmd-chips code { font: 700 16px/1 var(--f-mono); color: var(--gold-ink); }
.cmd-chips span { font: 500 14px/1.2 var(--f-body); overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 100%; }
.cmd-chips button:hover { box-shadow: inset 0 0 0 1px #C9973E, inset 0 3px 8px rgb(0 0 0 / .16); }
.cmd-chips button.is-copied { box-shadow: inset 0 0 0 2px var(--xp-ink); }
.cmd-chips button.is-copied span { color: var(--ink); }
.cmds .chat-out { min-height: 1.4em; margin: -4px 0 0; font-size: 14px; color: var(--ink-2); }
.cmds .chat-out:empty { display: none; }
@media (max-width: 1100px) { .cmd-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- p11r2 HOME #2 · plates: prev/next for the phone swipe row; waypoints as three chips ---------- */
.gal-nav { display: none; }
.wp-chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wp-chips li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 12px;
  background: var(--ghost-h); box-shadow: inset 0 0 0 1px var(--rule); border-radius: 2px; }
.wp-n { font: 600 15.5px/1.3 var(--f-body); color: var(--ink); }
.wp-c { display: inline-flex; gap: 10px; font: 600 14.5px/1.3 var(--f-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wp-c span { min-width: 4ch; text-align: right; }
.waypoints .wp-all { margin-top: 14px; }
@media (max-width: 1100px) {
  .wp-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wp-chips li { flex-direction: column; align-items: flex-start; gap: 2px; }
  .wp-c span { min-width: 0; text-align: left; }
}

/* ---------- p11r2 HOME #2 · desktop height pass (≥1101): same blocks, less air ----------
   Chapter heads: a shorter flourish and rule gap; the town square's title on one line with a wider text column;
   feature tiles with the slot beside the title and a 14px line; tighter rank card, plate rows and commands gap. */
@media (min-width: 1101px) {
  .cta { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); padding: 30px 44px; }
  .cta h2 { white-space: nowrap; max-width: none; }
  .cta-copy > p[data-initial] { max-width: 62ch; }
  .item-btn { grid-template-columns: 40px minmax(0, 1fr); row-gap: 8px; padding: 12px 14px 13px; }
  .item-btn .slot { width: 40px; height: 40px; }
  .item-btn svg.px { width: 30px; height: 30px; }
  .item-line { font-size: 14px; line-height: 1.42; }
  .inv { padding-block: 14px 16px; }
  .xp { padding-block: 22px 24px; }
  .lore-card { padding: 18px 26px 20px; }
  .plates { row-gap: 26px; }
  .cmds { margin-top: 26px; }
  .map-grid { grid-template-columns: minmax(0, 1fr) 460px; }
  .numbers > div { padding-block: 12px 10px; }
  .foot-crest { width: 66px; }
  .square { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) minmax(0, .72fr); }
}

/* ---------- p11r2 HOME #2 · phones (≤760): same facts, less scroll ----------
   Every cut is listed in REPORT-r2-home.md: repeats and air go, nothing a new player needs. */
@media (max-width: 760px) {
  /* chapter heads: the split head (see "split chapter heads") scaled down. The crest stands beside eyebrow + title (it
     had its own 60 px row, and the flourish under the title another 44); the lede follows full width. */
  body:not(.hubpage) { --sec-y: 14px; }
  body:not(.hubpage) .sec-head { grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; align-items: center; margin-bottom: 12px; padding-bottom: 12px; }
  body:not(.hubpage) .sec-head::after { align-self: center; width: 46px; margin: 0; }
  body:not(.hubpage) .sec-head .eyebrow { flex-wrap: nowrap; gap: 8px; white-space: nowrap; font-size: 12px; letter-spacing: .13em; }
  body:not(.hubpage) .sec-head .eyebrow .chap-sep { flex: none; }
  body:not(.hubpage) :is(.sec-head, .cta-copy) .eyebrow .key { width: 24px; height: 24px; font-size: 11.5px; }
  body:not(.hubpage) .sec-head h2 { margin-block: 0; }
  body:not(.hubpage) .sec-head h2::after { display: none; }
  body:not(.hubpage) .sec-head .sec-lede { grid-column: 1 / -1; width: auto; max-width: none; margin: 8px 0 0; text-align: left; }
  .ph-opt { display: none; } /* words that only fit wider ("Uptime, last 30 days", "…, picked automatically") */

  /* hero: the "As it appears in your server list" caption, and the three-step strip that repeats chapter VIII */
  .hero .entry-cap, .hero .mp-steps { display: none; }

  /* status: the players card's counts on one line; the recent list keeps its 4 latest (8 wider) */
  .hud-players .hud-h h3 { letter-spacing: .1em; }
  .heads { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
  .heads li { gap: 8px; padding: 4px 8px 4px 4px; }
  .heads .head { width: 34px; height: 34px; }
  .heads .head img { width: 26px; height: 26px; }
  .heads .pname { font-size: 15px; }
  .heads .ph, .recent .ra { font-size: 12.5px; }
  .recent li:nth-child(n+5) { display: none; }
  .hud-act { gap: 12px; margin-top: 14px; }
  .hud-act .mini, .quiet .quiet-n { display: flex; flex-wrap: wrap; gap: 4px 12px; }
  .hud-act .mini > div, .quiet .quiet-n > div { display: flex; align-items: baseline; gap: 6px; padding: 0; background: none; box-shadow: none; white-space: nowrap; }
  :is(.hud-act .mini, .quiet .quiet-n) dt { font-size: 11px; letter-spacing: .02em; }
  :is(.hud-act .mini, .quiet .quiet-n) dd { margin: 0; font-size: 16px; }
  .quiet .quiet-cta { margin-top: 12px; }
  .hud-spot .hud-foot, .hud-players > .hud-foot { font-size: 13.5px; line-height: 1.4; }
  /* a slimmer plaque (same head, name, hours and rule line) */
  .hud > .panel.hud-spot { padding-bottom: 14px; }
  .spot { padding: 10px 0 8px; }
  .spot-plate { gap: 14px; padding: 12px 12px 10px 10px; }
  .spot-head { width: 52px; height: 52px; }
  .spot-head img { width: 42px; height: 42px; }
  .spot-name { font-size: 19px; }
  /* vitals: health and uptime side by side, the countdown full width under them. The uptime note (a 24 h / 7 day
     split) goes; the health note hides while the hero line already says "Online for …" (app.js sets .is-dup) */
  .hud > .panel.hud-vitals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vital { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 16px; }
  .hud-vitals :is(.vital-tps, .vital-up) { grid-template-columns: minmax(0, 1fr); }
  .hud-vitals .vital-up { box-shadow: inset 1px 0 0 var(--rule); }
  .hud-vitals .vital-reset { grid-column: 1 / -1; box-shadow: inset 0 1px 0 var(--rule); }
  .vital-k { font-size: 12px; letter-spacing: .1em; }
  .vital-v { font-size: 24px; }
  .hud-vitals :is(.vital-tps, .vital-up) .vital-v { font-size: 21px; }
  .vital-s { font-size: 13.5px; }
  .vital-up .vital-s, .vital-tps.is-dup .vital-s { display: none; }

  /* features: the first 10 tiles + "Show all 20 features"; the commands three a row, the command over its meaning */
  .js .inv-grid[data-cut] > .item:nth-child(n+11) { display: none; }
  .inv-more-row:not([hidden]) { display: flex; justify-content: center; margin-top: 12px; }
  .inv-more { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; font: 700 15px/1 var(--f-body);
    color: var(--ink); background: var(--ghost-h); box-shadow: inset 0 0 0 1px var(--g2), 0 0 0 1px rgb(0 0 0 / .2); border-radius: 2px; }
  .inv-more:hover { background: var(--card); }
  .inv-more svg { width: 16px; height: 16px; rotate: 90deg; transition: rotate .2s; }
  .inv-more[aria-expanded="true"] svg { rotate: -90deg; }
  .cmds { margin-top: 22px; gap: 10px; }
  .cmds .cmds-copy { padding-bottom: 8px; }
  .cmd-chips button { flex-direction: column; align-items: flex-start; gap: 3px; min-height: 52px; padding: 7px 10px; }
  .cmd-chips code { font-size: 15px; }
  .cmd-chips span { font-size: 12.5px; }

  /* ranks: tabs are the gem with its level beside it (44 px tall); the two stat boxes one line each ("21 homes");
     supporter gems beside the line instead of on their own row */
  .xp { padding-block: 16px 18px; }
  .xp-scale { margin-top: 6px; }
  .tiers .tier { flex-direction: row; justify-content: center; gap: 5px; padding-block: 6px; }
  .tiers .tier-glyph { margin-bottom: 0; }
  .ls-stats { gap: 8px; margin-bottom: 12px; }
  .ls-stat { display: flex; align-items: baseline; gap: 8px; padding: 8px 10px; }
  .ls-n { font-size: 22px; }
  .ls-l { margin-top: 0; }
  .sup-line { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: 12px; }
  .sup-line .sup-gems { flex-direction: column; grid-row: 1 / span 2; padding-top: 2px; }
  .sup-line > span:not(.sup-gems), .sup-line .all-link { grid-column: 2; }

  /* map: "Open the live map" is the way in on a phone (the inline WebGL embed is heavy and fiddly there) */
  .map-stage .map-cta { display: none; }
  .wp-intro { margin-bottom: 10px; }
  .wp-chips { gap: 6px; }
  .wp-chips li { padding: 8px; }
  .wp-n { font-size: 14px; }
  .wp-c { gap: 6px; font-size: 12.5px; }

  /* plates: one swipe row with visible prev/next */
  .gal-nav { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
  .gal-nav .gal-hint { display: flex; flex: 1; justify-content: center; margin: 0; text-align: center; }
  .gal-nav .gal-sw { display: inline-flex; align-items: center; gap: 6px; }
  .gal-step { flex: none; display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); background: var(--ghost-h);
    box-shadow: inset 0 0 0 1px var(--g2); border-radius: 50%; }
  .gal-step svg { width: 18px; height: 18px; }
  .gal-step:disabled { opacity: .35; cursor: default; }
  .gal-step:not(:disabled):hover { background: var(--card); }

  /* join: tighter steps (the arrows shrink with the gap); step III's "Welcome to the realm" badge repeats its title;
     the two follow-up links side by side, their labels may wrap */
  .craft { gap: 30px; }
  .craft-arrow { bottom: -24px; }
  .step { padding: 14px 14px 16px; gap: 10px 12px; }
  .step-result .step-done { display: none; }
  .join-more-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .join-more-acts .btn { min-width: 0; min-height: 48px; padding: 6px 10px; justify-content: center; white-space: normal; text-align: center; line-height: 1.2; }
  .join-more-acts .btn .btn-label { white-space: normal; }

  /* town square: chapter-size title; "Copy server address" goes from the Discord card (the page's third copy
     button); the signature line is decoration; the vote card is one row */
  .cta { padding: 22px 18px 24px; }
  .cta h2.display { font-size: clamp(26px, 7.4vw, 30px); }
  .cta h2::after, .cta-actions [data-copy], .promises .pr-sign { display: none; }
  .cta-actions { margin-top: 20px; }
  .square > .panel { gap: 10px; padding: 16px; }
  .square > .panel.sq-vote { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; }
  .sq-vote > .hud-h { grid-column: 1 / -1; }
  .sq-vote > p { margin: 0; font-size: 15px; }
  .sq-vote > .btn { margin: 0; align-self: center; }
  .foot-in { row-gap: 18px; }
}
@media (min-width: 375px) and (max-width: 760px) {
  /* footer: Community joins the other two link columns (it was a ruled row under them) */
  .foot-in .foot-nav { grid-template-columns: repeat(3, minmax(0, max-content)); gap: 0 12px; justify-content: space-between; }
  .foot-in .foot-col:nth-child(3) { grid-column: auto; padding-top: 0; border-top: 0; }
  .foot-in .foot-col:nth-child(3) ul { display: grid; }
  .foot-in .foot-col a { font-size: 14.5px; }
  .foot-in .foot-h { letter-spacing: .1em; white-space: nowrap; }
}
@media (max-width: 419px) {
  /* the numbered key already says which chapter; the spelled-out "Chapter VIII" goes so the label fits */
  body:not(.hubpage) :is(.sec-head, .cta-copy) .eyebrow :is(.chap, .chap-sep) { display: none; }
}
@media (max-width: 380px) { .gal-nav .gal-sw { display: none; } }
@media (max-width: 374px) {
  /* the recent row's hours take their own line */
  .recent .rh { display: block; }
  .recent .rh::before { content: none; }
}
@media (max-width: 359px) {
  .cmd-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
}
@media (max-width: 339px) { .join-more-acts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- p11r2 HOME #6 · the header status pill is never squeezed ----------
   The bar's content box stops at 1240 px (home) whatever the screen, so wider screens add no room. tools/pillfit.mjs
   (761-1920 every 20 px, signed out/in, home + hub pages, 7 players online) found the pill cut to "7/3…" or to its dot
   alone at 761-800, 1201-1260 and 1360-1920, and the account button running past the bar at ≥1800. Each rule below
   gives back exactly the room one of those ranges lacked; pillfit is the gate. */
/* nav icons never fit next to the six links + tools (they cost ~216 px, the bar is capped): text links everywhere */
@media (min-width: 1800px) {
  .topnav a { padding: 0 10px; }
  .topnav a svg.px { display: none; }
}
/* the word "online" needs ~60 px: shown from 1440 on home when signed out; hub pages (address chip) and signed-in bars
   (staff + bell + avatar) read "7/32" (the word stays for screen readers) */
@media (max-width: 1439px) {
  .live-pill .pill-w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
.hubpage .live-pill .pill-w, .topbar:has(.nav-bell:not([hidden])) .live-pill .pill-w {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
}
/* signed in, the Discord link steps out up to 1439 (was 1359); the footer, home's Discord chapter and the drawer keep it */
@media (min-width: 761px) and (max-width: 1439px) {
  .topbar:has(.nav-bell:not([hidden])) .topnav a[href^="https://discord"] { display: none; }
}
/* the crest-only brand runs to 1279 (was 1199) */
@media (min-width: 1100px) and (max-width: 1279px) { .brand span { display: none; } }
/* 761-860: tighter links and bar gap; the account button reads "Panel" signed out too (it already did signed in) */
@media (min-width: 761px) and (max-width: 860px) {
  .topbar-in { gap: 8px; }
  .topnav a { padding-inline: 4px; font-size: 13.5px; }
  .topbar .panel-btn { padding-inline: 10px; }
  .topbar .panel-btn .acct-label { font-size: 0; }
  .topbar .panel-btn .acct-label::after { content: "Panel"; font-size: 13.5px; }
}
@media (min-width: 761px) and (max-width: 800px) { .topbar-in { gap: 6px; } .topbar-tools { gap: 4px; } }
/* hub pages, signed in: the address chip stays a 44 px square and the staff link icon-only at every width (their labels
   only appear on screens where the bar is already full), and the links pack 2 px tighter from 1440 */
.hubpage .topbar:has(.nav-bell:not([hidden])) .addr-chip { width: 44px; padding: 0; }
.hubpage .topbar:has(.nav-bell:not([hidden])) .addr-chip .btn-label,
.topbar .nav-staff .nav-staff-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.topbar .nav-staff.btn { min-width: 44px; justify-content: center; }
@media (min-width: 1440px) { .hubpage .topbar:has(.nav-bell:not([hidden])) .topnav a { padding-inline: 8px; } }
/* small phones, signed in, before the avatar arrives (hub pages): the account square is the icon alone; the short
   "Panel" word (::after, <=419) overflowed it as a clipped "PAN"; and below 360 the pill packs 8 px tighter so "7/32" fits */
@media (max-width: 419px) {
  .topbar:has(.nav-bell:not([hidden])) [data-acct] .panel-btn::after { content: none; }
}
@media (max-width: 359px) {
  .topbar:has(.nav-bell:not([hidden])) .live-pill { padding-inline: 5px; gap: 4px; }
  body .topbar.solid:has(.nav-bell:not([hidden])) .topbar-in { column-gap: 6px; } /* beats hub.css's 12 px */
}
/* p11r2 HOME #6 (critique 1): a post title with a long domain ("…valkyriemc.unknownprojects.net") wraps inside its card */
.teaser .t-title { overflow-wrap: anywhere; }

/* ── p12 phone breathing room (Zach, iPhone Pro Max 430-440 px: "some stuff still looks crammed") ─────────────────
   Most phone rules above stop at 419/420 px, so the big phones got tablet-ish rows squeezed into 430 px. */
/* ranks: ten gems in one row left ~38 px per tab, the level digit collided with the next gem: two rows of five up to 760 */
@media (min-width: 420px) and (max-width: 760px) {
  .tiers { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 6px; }
  .tier { min-width: 44px; min-height: 44px; }
  .js .lores::before { left: calc((mod(var(--sel, 6), 5) + .5) / 5 * 100% - 16px); }
}
/* a tapped rank kept its grey hover square on touch screens: hover tint only where there is a real pointer */
@media (hover: none) { .tier:hover { background: transparent; } }

/* hero server card on phones */
@media (max-width: 760px) {
  /* the MOTD gets the card's full width under the icon + name, at one size that fits the game's two lines */
  .hero .entry { grid-template-columns: 48px minmax(0, 1fr); align-items: center; row-gap: 8px; }
  .hero .entry-text { display: contents; }
  .hero .entry-name { grid-column: 2; align-self: center; }
  .hero .motd { grid-column: 1 / -1; margin-top: 0; container-type: inline-size; }
  .hero .motd-ok > .m1, .hero .motd-ok > .m2 { white-space: nowrap; font-size: clamp(12.5px, calc(100cqi / 22.2), 17px); }
  /* "Players online" with nothing after it read as a gap: say it in words while nobody is on */
  .hero .entry[data-quiet] .entry-meta::before { content: "Nobody on right now"; content: "Nobody on right now" / ""; }
  /* the pulse line: heads on their own row, the text centred under them, clear of the gilded corners */
  .hero .entry-foot:has(.pulse-heads) { flex-direction: column; gap: 6px; margin-top: 12px; padding-inline: 18px; text-align: center; }
  .hero .entry-foot .pulse-t, .hero .entry-foot .ef-t { text-wrap: balance; }
  .hero .entry-foot .pb { white-space: nowrap; }
  .hero .entry-foot { min-height: calc(24px + 6px + 2 * 1.4em); justify-content: center; }
  .hero .mp { padding-bottom: 26px; }
}
/* small phones: the two MOTD lines can't fit at a readable size, so each part takes its own line (no dangling "|") */
@media (max-width: 374px) {
  .hero .motd-ok > .m1, .hero .motd-ok > .m2 { white-space: normal; font-size: 14px; }
  .hero .motd-ok .m-sep { display: none !important; }
  .hero .motd-ok .m-7, .hero .motd-ok .m-b { display: block !important; }
}
@media (max-width: 359px) { .hero .entry-foot { min-height: calc(24px + 6px + 3 * 1.4em); } }
@media (max-width: 760px) {
  /* while nobody is on, the label says so and the empty count makes no room */
  .hero .entry[data-quiet] .count { display: none; }
  .hero .entry-meta::before { white-space: nowrap; }
  .hero .mp-head span { white-space: nowrap; }
  .hero .count { white-space: nowrap; }
  .hero .entry-foot { text-align: center; }
}
@media (min-width: 321px) and (max-width: 374px) { .hero .mp-head { font-size: 12.5px; letter-spacing: .02em; } }

/* "in numbers" strip: four columns made the labels wrap to three lines of tiny caps; phones read it as 2 x 2 */
@media (max-width: 560px) {
  .numbers { --n: 2 !important; }
  .numbers > div { padding: 14px 8px 12px; }
  .numbers > div + div { box-shadow: none; }
  .numbers > div:nth-child(even of :not([hidden])) { box-shadow: inset 1px 0 0 var(--rule); }
  .numbers > div:nth-child(n + 3 of :not([hidden])) { border-top: 1px solid var(--rule); }
  .numbers dd { font-size: 28px; }
  .numbers dt { font-size: 11.5px; letter-spacing: .08em; }
}
/* join chapter: the two follow-up buttons each wrapped to two lines side by side; on phones they stack */
@media (max-width: 560px) {
  .join-more-acts { grid-template-columns: minmax(0, 1fr); }
  .join-more-acts .btn .btn-label { white-space: nowrap; }
}

/* trailer on phones: the box hugs the picture (no black side bars), and the focus ring sits outside the video,
   where iOS can't paint the picture over it */
.tr-stage video:focus-visible { outline-offset: 2px; }
.tr-stage { padding: 0 8px 8px; }
.trailer.is-vert { width: min(440px, calc(100vw - 16px), calc((100dvh - 24px - 72px - 8px) * 9 / 16 + 16px)); }
/* six starter commands: three tight columns on phones became two roomy ones */
@media (max-width: 560px) {
  .cmd-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cmd-chips button { min-height: 58px; padding: 9px 12px; }
}

/* ---- /hub.css (bundled by tools/perf_css.py; edit /hub.css, never this file) ---- */
/* Valkyrie Realms · Player hub (panel, profiles, leaderboards)
   Loaded after style.css: same tokens, same inventory bevels, same pixel type. */

/* ---------- shell ---------- */
.hubpage { min-height: 100svh; display: flex; flex-direction: column; }
.hubpage main { flex: 1; }
/* Hub pages use the solid sticky variant of the shared header (C1); everything else about the header lives in style.css. */
.hubpage .topbar.solid { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg-2) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 2px 0 var(--outline), inset 0 -2px 0 var(--rule); }
.hubpage .topbar.solid .topbar-in { min-height: 68px; gap: 12px; }
.hubpage .topbar.solid { --hero-ink: var(--ink); --hero-shadow: transparent; }
.hubpage .foot { padding-bottom: 40px; margin-top: 56px; }

.hubhead { padding-block: clamp(28px, 4vw, 52px) clamp(18px, 2.4vw, 28px); } /* block only: .wrap owns the side padding */
.hubhead h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.04; color: var(--ink); text-shadow: .05em .05em 0 var(--shadow-text); text-wrap: balance; }
.hubhead .sec-lede { margin-top: 10px; }
.hubhead .eyebrow { margin-bottom: 12px; }

/* ---------- grid + cards ---------- */
.hgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start; }
.hgrid > * { min-width: 0; }
.s12 { grid-column: span 12; } .s8 { grid-column: span 8; } .s7 { grid-column: span 7; } .s6 { grid-column: span 6; }
.s5 { grid-column: span 5; } .s4 { grid-column: span 4; }
.card { padding: 22px 22px 20px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-h h2, .card-h h3 { display: flex; align-items: center; gap: 10px; font: 700 18px/1.25 var(--f-body); color: var(--label); }
.card-h h2 svg.px, .card-h h3 svg.px { width: 28px; height: 28px; }
.card-foot { margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.muted { color: var(--ink-3); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.stretch { align-self: stretch; }
.colstack { display: flex; flex-direction: column; gap: 16px; }
.colstack > * { grid-column: auto; }

/* ---------- player card ---------- */
.pcard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px 28px; align-items: center; padding: 24px; }
.pbody { position: relative; width: 132px; height: 200px; display: grid; place-items: end center; padding-bottom: 8px; background: var(--slot); box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi), 0 0 0 2px var(--outline); overflow: hidden; }
.pbody img { width: auto; height: 180px; image-rendering: pixelated; filter: drop-shadow(4px 4px 0 rgb(0 0 0 / .35)); }
.pbody .dotline { position: absolute; top: 8px; left: 8px; }
.pname-big { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font: 600 clamp(30px, 3.4vw, 44px)/1.05 var(--f-display); color: var(--ink); text-shadow: .05em .05em 0 var(--shadow-text); overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip svg { width: 18px; height: 18px; }
/* Tier names are painted as a --cf -> --c gradient (inline per tier). Those raw stops fail AA on the day theme (1.0-3.3:1) and
   Veteran's end stop fails at night (4.27:1), so text uses theme-safe stops: night = --cf -> --c lifted 40% toward white,
   day = --c darkened to 38% / 30%. Measured on the rendered backdrops (ladder rows #B8B8B8 day / #393D46 night, chips #E2E2E2 /
   #14161B), every tier is >= 4.8:1 (qa/lane-hub/tiercheck.py). */
.chip.tierchip, .ladder2 li { --t1: var(--cf); --t2: color-mix(in srgb, var(--c) 60%, #fff); }
[data-theme="day"] .chip.tierchip, [data-theme="day"] .ladder2 li { --t1: color-mix(in srgb, var(--c) 38%, #000); --t2: color-mix(in srgb, var(--c) 30%, #000); }
.chip.tierchip { color: var(--t1, var(--ink)); }
.chip.tierchip b, .ladder2 b { color: var(--t1, var(--ink)); }
@supports (color: color-mix(in srgb, red 50%, blue)) and ((background-clip: text) or (-webkit-background-clip: text)) {
  .chip.tierchip b, .ladder2 b { background: linear-gradient(90deg, var(--t1), var(--t2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
/* guild chip on a profile: links to the guild page, tag in the guild's colour */
a.chip.gchip { color: var(--ink); text-decoration: none; box-shadow: inset 3px 0 0 var(--g); min-height: 32px; }
a.chip.gchip b { font-family: var(--f-mono); color: var(--ink); }
a.chip.gchip:hover, a.chip.gchip:focus-visible { background: color-mix(in srgb, var(--g) 16%, transparent); }
.chip.staff { color: #FF7B7B; } .chip.donor { color: var(--gold-ink); } .chip.builder { color: var(--link); }
[data-theme="day"] .chip.staff { color: #8E1515; }
.chip.on { color: var(--ok); } .chip.off { color: var(--ink-3); }
.chip .dot { width: 8px; height: 8px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.facts div { padding: 10px 12px; background: var(--ghost-h); box-shadow: inset 0 0 0 2px var(--rule); min-width: 0; }
.facts dt { font: 700 13px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { margin-top: 4px; font: 600 21px/1.2 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facts dd small { font: 500 13px/1 var(--f-mono); color: var(--ink-2); margin-left: 4px; }
.facts .f-on dd { display: flex; align-items: center; gap: 10px; color: var(--ok); }
.facts .f-on dd .dot { box-shadow: 0 0 0 2px rgb(0 0 0 / .35), 0 0 10px var(--ok); }
.pside { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 210px; align-self: start; }
.duser { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--ghost-h); box-shadow: inset 0 0 0 2px var(--rule); }
.duser img { width: 40px; height: 40px; box-shadow: 0 0 0 2px var(--outline); }
.duser p { font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duser small { display: block; font: 500 13px/1.3 var(--f-mono); color: var(--ink-3); }
.field { display: grid; gap: 6px; }
.field label, .field .lbl2 { font: 700 13px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.select, .input {
  min-height: 44px; width: 100%; padding: 8px 12px; font: 700 15px/1.2 var(--f-body); color: #FFFFFF;
  background: #000000; border: 2px solid #A0A0A0; border-radius: 0; appearance: none;
}
.select { padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, #E0E0E0 50%), linear-gradient(135deg, #E0E0E0 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px; background-repeat: no-repeat; cursor: pointer; }
.input::placeholder { color: #8F8F8F; }
.select:focus-visible, .input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: #FFFFFF; }

/* rank progress */
.rankrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: end; margin-top: 22px; }
.rankrow .lbl3 { font: 700 15px/1.3 var(--f-body); color: var(--ink-2); }
.rankrow .lbl3 b { color: var(--ink); }
.rankrow .left { font: 700 14px/1 var(--f-mono); color: var(--xp-ink); white-space: nowrap; }
.perks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.perks li { list-style: none; padding: 4px 8px; font: 500 13px/1.3 var(--f-mono); color: var(--ink-2); background: var(--ghost-h); box-shadow: inset 0 0 0 2px var(--rule); }
.perks { padding: 0; }

/* ---------- location ---------- */
.where { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; margin-bottom: 14px; }
.where-w { font: 600 24px/1.15 var(--f-display); color: var(--ink); }
.where-c { font: 700 15px/1.3 var(--f-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.where-c b { color: var(--ink); font-weight: 700; }
.where-src { grid-column: 1 / -1; font-size: 14px; color: var(--ink-3); }
.mapbox { position: relative; aspect-ratio: 16 / 10; background: #0B0D12 var(--tex) repeat; background-size: 64px 64px; box-shadow: 0 0 0 2px var(--outline), inset 0 0 0 2px rgb(255 255 255 / .06); overflow: hidden; }
.mapbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapbox .mapcover { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; padding: 20px; text-align: center; color: #E8E8EE; background: radial-gradient(ellipse at center, rgb(10 12 18 / .35), rgb(10 12 18 / .85)); }
.mapcover p { max-width: 42ch; font-size: 15px; color: #C9CDD6; }
.mapcover .pin { width: 56px; height: 56px; }
.maptools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.maptools .btn { min-height: 44px; padding: 4px 14px 8px; font-size: 15px; }
.sharerow { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 12px 14px; background: var(--ghost-h); box-shadow: inset 0 0 0 2px var(--rule); }
.sharerow p { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.sharerow b { color: var(--ink); display: block; }

/* pixel switch */
.switch { position: relative; flex: none; width: 76px; height: 44px; padding: 0; border: 2px solid #000; background: #4A4F5C; box-shadow: inset 2px 2px 0 rgb(0 0 0 / .45); cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 34px; height: 34px; background: #C6C6C6; box-shadow: inset 2px 2px 0 #FFFFFF, inset -2px -2px 0 #555555, 0 0 0 2px #000; transition: transform var(--dur-2) var(--ease); }
.switch[aria-checked="true"] { background: var(--prim); }
.switch[aria-checked="true"]::after { transform: translateX(32px); }
.switch::before { content: ""; position: absolute; inset: -4px; }
.switch:disabled { opacity: .6; cursor: progress; }
/* C4 (#12): style.css sets code at .9em, which is 12.6px inside 14px hub notes. */
.hubpage main :is(code, kbd) { font-size: max(13px, .9em); }

/* vitals */
.vitals { display: grid; gap: 14px; }
.hearts-row { display: flex; flex-wrap: wrap; gap: 2px; }
.hearts-row svg { width: 22px; height: 22px; }
.food-row { display: flex; flex-wrap: wrap; gap: 2px; }
.food-row i { width: 18px; height: 18px; background: var(--c, #C8762E); box-shadow: inset -3px -3px 0 rgb(0 0 0 / .3), 0 0 0 2px #000; clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.food-row i.e { --c: #3A2A1E; }
.food-row i.h { background: linear-gradient(90deg, #3A2A1E 50%, #C8762E 50%); }
.xplv { display: flex; align-items: center; gap: 12px; }
.xplv b { font: 700 30px/1 var(--f-display); color: var(--xp); text-shadow: 2px 0 #000, -2px 0 #000, 0 2px #000, 0 -2px #000; min-width: 2ch; }
.kv { display: grid; gap: 8px; margin: 0; }
.kv div { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; background: var(--ghost-h); box-shadow: inset 0 0 0 2px var(--rule); }
.kv svg.px { width: 24px; height: 24px; }
.kv dt { font-weight: 700; font-size: 15px; color: var(--ink); }
.kv dt small { display: block; font: 500 13px/1.3 var(--f-mono); color: var(--ink-3); font-weight: 500; }
.kv dd { font: 700 14px/1.2 var(--f-mono); color: var(--ink-2); text-align: right; }
.kv dd .btn { min-height: 44px; padding: 2px 12px 6px; font-size: 14px; }
.kv dd .btn svg.px { width: 20px; height: 20px; }

/* ---------- stat tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
/* Value gets the whole top row; the #n leaderboard badge sits on the label row so it can never cover a digit (audit #1b). */
.tile { position: relative; container-type: inline-size; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "slot tv tv" "slot tl rk"; column-gap: 12px; row-gap: 4px; align-items: center; padding: 12px; background: var(--card); box-shadow: inset 2px 2px 0 var(--card-hi), inset -2px -2px 0 var(--card-lo), 0 0 0 2px var(--outline); }
.tile .slot { grid-area: slot; width: 40px; height: 40px; }
.tile .slot svg.px { width: 28px; height: 28px; }
/* 24px, eased down only when an 11-character value ($123,456.78) would not fit beside the slot. */
.tile .tv { grid-area: tv; min-width: 0; font: 600 24px/1.1 var(--f-display); font-size: clamp(18px, calc((100cqi - 52px) / 6), 24px); color: var(--ink); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .tl { grid-area: tl; min-width: 0; font: 700 13px/1.25 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.tile .rk { grid-area: rk; justify-self: end; padding: 3px 6px; font: 700 13px/1 var(--f-mono); color: #1B1300; background: var(--gold); box-shadow: 0 0 0 2px #000; }
.tile .rk.r2 { background: #D8DDE6; } .tile .rk.r3 { background: #E0A26A; } .tile .rk.rn { background: var(--slot); color: var(--ink-2); box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi); }
.splits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 18px; }
.split h3 { font: 700 13px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }

/* bars list (skills, ores, mobs) */
.blist { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.blist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; }
.blist .bn { font-weight: 700; font-size: 15px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blist .bv { font: 700 14px/1 var(--f-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lvl { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 6px; margin-right: 8px; font: 700 14px/1 var(--f-mono); color: var(--xp); background: #0F140C; box-shadow: 0 0 0 2px #000; text-shadow: 1px 1px 0 #000; }

/* challenges */
.chal { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.chal li { padding: 12px 14px; background: var(--ghost-h); box-shadow: inset 0 0 0 2px var(--rule); }
.chal .ct { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; color: var(--ink); }
.chal .cp { font: 700 14px/1.2 var(--f-mono); color: var(--ink-2); white-space: nowrap; }
.chal .cw { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.chal li.done { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ok) 55%, transparent); }
.chal li.done .cp { color: var(--ok); }

/* activity */
.spark { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end; gap: 3px; height: 120px; padding: 8px; background: #0B0D12; box-shadow: 0 0 0 2px var(--outline), inset 0 0 0 2px rgb(255 255 255 / .05); }
[data-theme="day"] .spark { background: #2B2B2B; }
.spark i { display: block; height: max(2px, calc(var(--h, 0) * 100%)); background: linear-gradient(180deg, #C8FF8A 0 4px, var(--xp) 4px); box-shadow: inset -2px 0 0 rgb(0 0 0 / .25); position: relative; }
.spark i.z { background: rgb(255 255 255 / .1); box-shadow: none; }
.spark i.today { background: linear-gradient(180deg, #FFF0A0 0 4px, var(--gold) 4px); }
.spark.hours i { background: linear-gradient(180deg, #9AF1FF 0 4px, #3CC8E8 4px); }
.spark-x { display: flex; justify-content: space-between; margin-top: 8px; font: 700 13px/1 var(--f-mono); color: var(--ink-3); letter-spacing: .04em; }
.actsum { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 12px; font-size: 15px; color: var(--ink-2); }
.actsum b { color: var(--ink); font-family: var(--f-mono); }

/* money */
.purse { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.purse div { padding: 12px 14px; background: var(--ghost-h); box-shadow: inset 0 0 0 2px var(--rule); }
.purse dt { font: 700 13px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.purse dd { margin-top: 4px; font: 600 26px/1.1 var(--f-display); color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.tx { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.tx li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 8px 2px; border-bottom: 2px solid var(--rule); }
.tx .tk { font-weight: 700; font-size: 15px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx .tm { font: 700 14px/1.3 var(--f-mono); text-align: right; font-variant-numeric: tabular-nums; }
.tx .tm.pos { color: var(--ok); } .tx .tm.neg { color: var(--err); }
.tx .td { grid-column: 1 / -1; font: 500 13px/1.2 var(--f-mono); color: var(--ink-3); }

/* advancements (vanilla toast look) */
.advs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.advs li { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 8px 12px 8px 8px; background: #212126; box-shadow: 0 0 0 2px #000, inset 2px 2px 0 #55555F, inset -2px -2px 0 #0d0d10; }
.advs .slot { grid-row: span 2; width: 44px; height: 44px; background: #14161B; box-shadow: inset 2px 2px 0 #08090C, inset -2px -2px 0 #3A404D; }
.advs .slot svg.px { width: 28px; height: 28px; }
.advs .at { font: 700 15px/1.2 var(--f-body); color: #FFFF55; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.advs .ad { font: 400 14px/1.35 var(--f-body); color: #E6E6E6; }
.advmeter { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.advmeter b { font: 600 34px/1 var(--f-display); color: var(--ink); }
.advmeter span { font: 700 14px/1 var(--f-mono); color: var(--ink-2); }

/* pets / homes / logins */
.rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rows li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 8px 10px; background: var(--ghost-h); box-shadow: inset 0 0 0 2px var(--rule); }
.rows .slot { grid-row: span 2; width: 40px; height: 40px; }
.rows .slot svg.px { width: 26px; height: 26px; }
.rows .rn { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Deaths: the outcome chip must never be ellipsised away on narrow phones; let the row wrap it onto its own line. */
#p-deaths .rows .rn { white-space: normal; overflow: visible; }
#p-deaths .rows .rn .chip { display: inline-flex; margin-top: 4px; }
.rows .rd { grid-column: 2; font: 500 13px/1.35 var(--f-mono); color: var(--ink-3); overflow-wrap: anywhere; }
.rows .ra { grid-row: 1 / span 2; grid-column: 3; display: flex; align-items: center; gap: 8px; }
.rows .ra .btn { min-height: 44px; padding: 2px 12px 6px; font-size: 14px; }
.rows li.dead { opacity: .62; }
.fav { color: var(--gold-ink); }
.tabs2 { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- empty / gate states ---------- */
.gate { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: center; padding: clamp(24px, 3.4vw, 44px); }
.gate h1, .gate h2 { font: 600 clamp(28px, 3vw, 40px)/1.08 var(--f-display); color: var(--ink); text-shadow: .05em .05em 0 var(--shadow-text); overflow-wrap: anywhere; }
.gate p { margin-top: 12px; color: var(--ink-2); font-size: 17px; max-width: 56ch; }
.gate .btn { margin-top: 22px; }
.gate .nf-go { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.gate .nf-go .btn { margin-top: 0; }
.gate-login { align-self: center; }
.gate-login > :first-child { margin-top: 0; }
.gate .gate-fine { font-size: 14px; color: var(--ink-3); }
.gate-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.gate-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 12px 8px 8px; background: var(--ghost-h); box-shadow: inset 0 0 0 2px var(--rule); font-weight: 700; color: var(--ink); }
.gate-list .slot { width: 44px; height: 44px; }
.gate-list .slot svg.px { width: 28px; height: 28px; }
.gate-list small { display: block; font: 400 14px/1.35 var(--f-body); color: var(--ink-3); }
.steps2 { margin: 16px 0 0; padding-left: 22px; color: var(--ink-2); display: grid; gap: 8px; }
.steps2 code { color: var(--ink); background: var(--slot); padding: 1px 6px; box-shadow: inset 0 0 0 2px var(--slot-lo); }
.notice { margin-bottom: 16px; padding: 12px 16px; font-size: 15px; color: var(--ink); background: color-mix(in srgb, var(--warn) 14%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--warn) 55%, transparent); }
.notice.err { background: color-mix(in srgb, var(--err) 14%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--err) 55%, transparent); }

/* skeleton */
.skel { background: var(--ghost-h); box-shadow: inset 0 0 0 2px var(--rule); min-height: 18px; }
.skel.h1 { height: 220px; } .skel.h2 { height: 320px; } .skel.h3 { height: 160px; }
@media (prefers-reduced-motion: no-preference) {
  .skel { animation: skel 1.2s steps(6) infinite alternate; }
  @keyframes skel { from { opacity: .55; } to { opacity: 1; } }
}

/* ---------- toasts: top-right under the header, solid cards ---------- */
.toasts { position: fixed; top: 80px; right: 16px; z-index: 60; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast2 { pointer-events: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: start; padding: 12px 8px 12px 14px; background: #212126; color: #FFFFFF; box-shadow: 0 0 0 2px #000, inset 2px 2px 0 #55555F, inset -2px -2px 0 #0d0d10, 0 14px 30px rgb(0 0 0 / .35); }
.toast2 .tt { font: 700 15px/1.3 var(--f-body); color: #FFFF55; }
.toast2.err .tt { color: #FF8080; }
.toast2 .td2 { grid-column: 1; font: 400 14px/1.35 var(--f-body); color: #E6E6E6; }
.toast2 .x { grid-row: 1 / span 2; grid-column: 2; width: 44px; height: 44px; min-height: 44px; margin: -6px -2px 0 0; color: #FFFFFF; }
.toast2 .x:hover { background: rgb(255 255 255 / .1); }

/* ---------- leaderboards ---------- */
.lbtop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.lbtop div { padding: 14px 16px; }
.lbtop dt { font: 700 13px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.lbtop dd { margin-top: 6px; font: 600 30px/1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.lbbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.btabs { display: flex; flex-wrap: wrap; gap: 6px; }
.btab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px 6px 8px; font: 700 15px/1 var(--f-body); color: var(--ink); background: var(--slot); border: 0; box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi); cursor: pointer; }
.btab svg.px { width: 26px; height: 26px; }
/* desktop: the eight boards (p11 adds Guilds) are one even row of hotbar slots (icon over label) instead of a 5 + 2 wrap; tablets get 4 per row */
@media (min-width: 761px) {
  .btabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); flex: 1 1 100%; }
  .btab { justify-content: center; }
}
@media (min-width: 1100px) {
  .btabs { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
  .btab { flex-direction: column; gap: 6px; min-height: 72px; padding: 10px 4px 9px; font-size: 13px; line-height: 1.15; text-align: center; }
  .btab svg.px { width: 28px; height: 28px; }
}
.btab:hover { background: color-mix(in srgb, var(--slot) 80%, #fff); }
.btab[aria-selected="true"] { color: #FFFFFF; background: var(--prim); box-shadow: inset 2px 2px 0 rgb(255 255 255 / .22), inset -2px -2px 0 var(--prim-edge), 0 0 0 2px #000; }
/* Stats card: Survival / Minigames tabs (two slots, never the 7-board grid) */
.stabs, .stabs.btabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.stabs .btab { flex: 0 0 auto; flex-direction: row; justify-content: flex-start; gap: 8px; min-height: 44px; padding: 4px 16px 6px 8px; font-size: 15px; }
.stabs .btab svg.px { width: 26px; height: 26px; }
[role="tabpanel"][hidden] { display: none; }
.seg { display: inline-flex; padding: 2px; background: #000; box-shadow: 0 0 0 2px #000; }
.seg button { min-height: 44px; padding: 0 14px; font: 700 14px/1 var(--f-mono); color: #CFCFCF; background: transparent; border: 0; cursor: pointer; }
.seg button[aria-pressed="true"] { color: #000; background: #E8E8E8; box-shadow: inset -2px -2px 0 #8B8B8B; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; margin-bottom: 16px; }
.pod { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; min-width: 0; color: var(--ink); text-decoration: none; }
.pod:hover { text-decoration: none; }
.pod:hover .pod-name { text-decoration: underline; }
.pod img { width: 72px; height: 72px; image-rendering: pixelated; box-shadow: 0 0 0 2px #000; }
.pod.p1 img { width: 96px; height: 96px; }
.pod-name { max-width: 100%; font: 700 17px/1.2 var(--f-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-val { font: 700 15px/1 var(--f-mono); color: var(--ink-2); }
.pod-step { width: 100%; display: grid; place-items: center; font: 600 34px/1 var(--f-display); color: #1B1300; background: var(--gold); box-shadow: 0 0 0 2px #000, inset 4px 4px 0 rgb(255 255 255 / .45), inset -4px -4px 0 rgb(0 0 0 / .22); }
.pod.p1 .pod-step { height: 110px; } .pod.p2 .pod-step { height: 80px; background: #D8DDE6; } .pod.p3 .pod-step { height: 60px; background: #E0A26A; }
.lbrows { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.lbrows li > a, .lbrows li > div { display: grid; grid-template-columns: 44px 40px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 8px 12px 8px 6px; color: var(--ink); text-decoration: none; background: var(--ghost-h); box-shadow: inset 0 0 0 2px var(--rule); }
.lbrows li > a:hover { background: color-mix(in srgb, var(--ghost-h) 100%, var(--ink) 6%); text-decoration: none; }
.lbrows li > a:hover .pname { text-decoration: underline; }
.lbrows .pos { grid-row: span 2; font: 600 20px/1 var(--f-display); color: var(--gold-ink); text-align: center; }
.lbrows .head { grid-row: span 2; width: 40px; height: 40px; }
.lbrows .head img { width: 28px; height: 28px; }
.lbrows .val { font: 700 15px/1 var(--f-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.lbrows li.me > a { box-shadow: inset 0 0 0 2px var(--xp); }
.lbrows .youtag { margin-left: 8px; padding: 2px 6px; font: 700 13px/1 var(--f-mono); color: #000; background: var(--xp); vertical-align: 2px; }
.searchbox { position: relative; }
.searchbox .input { padding-left: 40px; }
.searchbox svg.ui { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #A0A0A0; pointer-events: none; }
.sresults { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.sresults a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; color: var(--ink); font-weight: 700; text-decoration: none; background: var(--ghost-h); }
.sresults a:hover { box-shadow: inset 0 0 0 2px var(--rule); }
.sresults img { width: 28px; height: 28px; image-rendering: pixelated; }
.sresults small { margin-left: auto; font: 500 13px/1 var(--f-mono); color: var(--ink-3); }
.lbside { position: sticky; top: 88px; }
.onlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.onlist a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; color: var(--ink); font-weight: 700; text-decoration: none; background: var(--ghost-h); }
.onlist img { width: 28px; height: 28px; image-rendering: pixelated; }
.onlist small { margin-left: auto; font: 500 13px/1 var(--f-mono); color: var(--ink-3); }
.ladder2 { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ladder2 li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 10px 6px 6px; background: var(--ghost-h); }
.ladder2 svg { width: 24px; height: 24px; color: var(--t1); filter: drop-shadow(0 0 5px color-mix(in srgb, var(--c) 70%, transparent)); }
.ladder2 b { font-weight: 700; }
.ladder2 span { font: 700 13px/1 var(--f-mono); color: var(--ink-2); }
.ladder2 li.cur { box-shadow: inset 0 0 0 2px var(--c); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .s7, .s5, .s8, .s4 { grid-column: span 12; }
  .lbside { position: static; }
  .pcard { grid-template-columns: auto minmax(0, 1fr); }
  .pside { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .pside > * { flex: 1 1 220px; }
}
@media (max-width: 900px) {
  .s6 { grid-column: span 12; }
  .gate { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hubpage .topbar.solid .topbar-in { flex-wrap: wrap; min-height: 0; padding-block: 8px; row-gap: 4px; }
  .pod-name { white-space: normal; overflow-wrap: anywhere; font-size: 14px; }
  .lbside { position: static; }
  .toasts { top: 118px; left: 8px; right: 8px; width: auto; }
  .card { padding: 18px 16px; }
  .pcard { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; gap: 16px; }
  .pbody { width: 100%; height: 170px; }
  .pbody img { height: 150px; }
  .lbtop { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .lbtop div { padding: 10px; }
  .lbtop dd { font-size: 22px; }
  .pod img { width: 56px; height: 56px; }
  .pod.p1 img { width: 72px; height: 72px; }
  .pod.p1 .pod-step { height: 80px; } .pod.p2 .pod-step { height: 58px; } .pod.p3 .pod-step { height: 44px; }
  .pod-step { font-size: 26px; }
  /* #10: period toggle directly above ONE scrolling row of board chips that bleeds to the card edge. The fades follow the
     scroll position (hub.js sets --fade-l/--fade-r); 4px of inner room keeps the 3px focus ring from being clipped. */
  .lbbar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 14px; }
  .lbbar .seg { order: -1; align-self: flex-start; }
  .btabs { --fade-l: 0px; --fade-r: 28px; flex-wrap: nowrap; margin: -4px -16px; padding: 4px 16px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-padding-inline: 32px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent); }
  .btabs::-webkit-scrollbar { display: none; }
  .btab { flex: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tv tv" "tl rk"; align-content: start; column-gap: 8px; padding: 10px; }
  .tile .slot { display: none; }
  .tile .tv { font-size: 21px; font-size: clamp(16px, calc(100cqi / 6.2), 21px); }
  .sharerow { align-items: flex-start; }
  .purse dd { font-size: 22px; }
  .where { grid-template-columns: minmax(0, 1fr); }
  .rows li { grid-template-columns: 40px minmax(0, 1fr); }
  .rows .ra { grid-column: 2; grid-row: auto; margin-top: 6px; }
}

/* ---------- new player guide (/guide/): static content on the hub shell, same panels, slots and type ---------- */
.g-jump { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; }
.g-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font: 700 15px/1 var(--f-body); color: var(--ink); text-decoration: none; background: var(--slot); box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi); }
.g-jump a:hover { filter: brightness(1.12); }
.guide { display: grid; gap: clamp(44px, 6vw, 72px); padding-top: clamp(24px, 3vw, 36px); }
.g-sec { scroll-margin-top: 88px; min-width: 0; }
.g-h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; color: var(--ink); text-shadow: .05em .05em 0 var(--shadow-text); text-wrap: balance; margin-bottom: 10px; }
[data-theme="night"] .g-h2 { text-shadow: 3px 3px 0 #000; }
.g-lede { max-width: 66ch; font-size: 18px; line-height: 1.55; color: var(--ink-2); margin-bottom: 22px; text-wrap: pretty; }
.g-lede strong, .g-card strong, .g-step strong, .g-q strong { color: var(--ink); }
.guide code { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.g-addr { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; padding: 16px 18px 16px 22px; margin-bottom: 16px; }
.g-addr-field { font: 700 clamp(17px, 2vw, 22px)/1.3 var(--f-mono); color: var(--ink); overflow-wrap: anywhere; user-select: all; }
.g-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.g-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.g-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.g-tall { grid-row: span 3; } /* the rank table sits beside the three short money cards instead of leaving a gap */
.g-card { padding: 22px 24px 22px; min-width: 0; }
.g-card > * + * { margin-top: 10px; }
.g-card p, .g-card li { color: var(--ink-2); }
.g-small { font-size: 15px; line-height: 1.45; color: var(--ink-3) !important; }
.g-note { margin-top: 16px; max-width: 80ch; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.g-note strong { color: var(--ink); }
.g-mini { counter-reset: m; display: grid; gap: 8px; }
.g-mini li { counter-increment: m; position: relative; padding-left: 36px; }
.g-mini li::before { content: counter(m); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; display: grid; place-items: center; font: 600 16px/1 var(--f-display); color: var(--ink); background: var(--slot); box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi); }
.g-list { display: grid; gap: 6px; }
.g-list li { position: relative; padding-left: 16px; }
.g-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--gold-ink); }
.g-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.g-step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px 22px; }
.g-step:last-child:nth-child(odd) { grid-column: 1 / -1; }
.g-n { width: 48px; height: 48px; font: 600 26px/1 var(--f-display); color: #FFFFFF; text-shadow: 2px 2px 0 #3F3F3F; }
.g-step h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.g-step p { margin-top: 6px; color: var(--ink-2); }
.g-cmd { font: 700 15px/1.2 var(--f-mono); padding: 3px 8px 4px; background: var(--slot); box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi); }
.g-ranks { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.g-ranks th, .g-ranks td { text-align: left; padding: 7px 10px 7px 0; border-bottom: 2px solid var(--rule); }
.g-ranks thead th { font: 700 13px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.g-ranks tbody th { font-weight: 700; color: var(--ink); }
.g-ranks td { color: var(--ink-2); font-family: var(--f-mono); }
.g-faq { display: grid; gap: 10px; max-width: 900px; }
.g-q > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 20px 12px 22px; font: 700 18px/1.35 var(--f-body); color: var(--ink); cursor: pointer; list-style: none; }
.g-q > summary::-webkit-details-marker { display: none; }
.g-q > summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; font: 700 20px/1 var(--f-mono); color: var(--ink); background: var(--slot); box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi); }
.g-q[open] > summary::after { content: "\2212"; }
.g-q > summary:hover { color: var(--link); }
.g-q > p { padding: 0 22px 20px; max-width: 72ch; color: var(--ink-2); line-height: 1.6; }
.g-help { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px; padding: clamp(22px, 3vw, 36px); }
.g-help p { margin-top: 6px; max-width: 60ch; color: var(--ink-2); font-size: 18px; }
.g-help-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) {
  .g-two, .g-grid, .g-steps { grid-template-columns: minmax(0, 1fr); }
  .g-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-step:last-child:nth-child(odd) { grid-column: auto; }
  .g-tall { grid-row: auto; }
}
/* five header links on the hub pages' phone row: tighter padding so Discord isn't cut off at 375-414px */
@media (max-width: 760px) { .hubpage .topnav a { padding: 0 7px; } }
@media (max-width: 400px) { .hubpage .topnav a { padding: 0 5px; font-size: 13px; } }
@media (max-width: 600px) {
  .g-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .g-card, .g-step { padding: 18px 18px; }
  .g-step { gap: 14px; }
  .g-n { width: 40px; height: 40px; font-size: 22px; }
  .g-q > summary { font-size: 17px; padding-inline: 18px 14px; }
  .g-q > p { padding: 0 18px 18px; }
  .g-addr { padding: 14px 16px; }
  .g-addr .btn, .g-help-actions .btn { width: 100%; }
  .g-help-actions { width: 100%; }
}

/* =====================================================================
   PANEL v2 (PLAYER lane): claims, wallet chart, votes, guild, deaths, standing, support, inbox, privacy, header bell
   ===================================================================== */
.hubpage [hidden] { display: none !important; } /* .btn/.card displays must never beat [hidden] */
.anchor { display: block; height: 0; scroll-margin-top: 96px; }
.hgrid > [id^="p-"], .colstack > [id^="p-"] { scroll-margin-top: 96px; }
.pjump { display: flex; flex-wrap: wrap; gap: 6px; }
.pjump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font: 700 14px/1 var(--f-mono); color: var(--ink-2); text-decoration: none; background: var(--ghost-h); box-shadow: inset 0 0 0 2px var(--rule); }
.pjump a:hover { color: var(--ink); box-shadow: inset 0 0 0 2px var(--link); }
.v2skel { height: 120px; }
.v2h3 { margin: 20px 0 10px; font: 700 13px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.card-h [data-v2-chip]:empty { display: none; }
.chip.warn { color: var(--warn); }
.quote { margin-top: 8px; padding: 8px 12px; font-size: 15px; color: var(--ink-2); background: var(--ghost-h); box-shadow: inset 3px 0 0 var(--link); overflow-wrap: anywhere; }
.more { margin-top: 12px; }
.more > summary { list-style: none; display: inline-flex; min-height: 44px; }
.more > summary::-webkit-details-marker { display: none; }
.more[open] > summary { margin-bottom: 10px; }
.small { font-size: 18px !important; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* claims */
.meter2 { margin-bottom: 16px; }
.meter2 .lbl3 { margin-bottom: 8px; font-size: 15px; color: var(--ink-2); }
.meter2 .lbl3 b { color: var(--ink); }
.claims { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 10px; }
.claim { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 4px 14px; align-items: start; padding: 12px; background: var(--ghost-h); box-shadow: inset 0 0 0 2px var(--rule); }
.claimsvg { width: 96px; height: 96px; background: color-mix(in srgb, var(--ok) 6%, var(--slot)); box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi); }
.claimsvg .main { fill: color-mix(in srgb, var(--ok) 22%, transparent); stroke: var(--ok); stroke-width: 2; }
.claimsvg .sub { fill: color-mix(in srgb, var(--gold) 26%, transparent); stroke: var(--gold-ink); stroke-width: 1.5; stroke-dasharray: 3 2; }
.claim-b { min-width: 0; }
.claim-t { font-size: 15px; color: var(--ink-2); }
.claim-t b { color: var(--ink); }
.claim-c { margin-top: 2px; font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; }
.claim-s { margin-top: 2px; font-size: 13px; color: var(--gold-ink); font-weight: 700; }
.trust { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; margin-top: 8px; font-size: 13px; }
.trust div { display: contents; }
.trust dt { font: 700 12px/1.5 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.trust dd { color: var(--ink-2); overflow-wrap: anywhere; }
.claim-a { display: flex; flex-direction: column; gap: 6px; }
.claim-a .btn { min-height: 44px; padding: 2px 12px 6px; font-size: 14px; }

/* wallet charts */
.chartfig { margin: 0 0 14px; }
.chartfig figcaption { margin-bottom: 8px; font-size: 14px; color: var(--ink-2); }
.chartfig .pos { color: var(--ok); } .chartfig .neg { color: var(--err); }
.flow, .bankline { display: block; width: 100%; height: 120px; background: var(--ghost-h); box-shadow: inset 0 0 0 2px var(--rule); }
.bankline { height: 80px; }
.flow .zero { stroke: var(--rule); stroke-width: 2; vector-effect: non-scaling-stroke; }
.flow .in { fill: var(--ok); } .flow .out { fill: var(--err); }
.purse3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.purse3 dd { font-size: 20px; overflow-wrap: anywhere; }
.purse dd.pos { color: var(--ok); } .purse dd.neg { color: var(--err); }
.card-foot .pos { color: var(--ok); } .card-foot .neg { color: var(--err); }
.flowcats { margin-bottom: 4px; }
@media (max-width: 360px) { .purse { grid-template-columns: minmax(0, 1fr); } .purse dd { overflow-wrap: anywhere; } }
@media (max-width: 560px) { .purse3 { grid-template-columns: 1fr; } .purse3 div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; } .purse3 dd { margin-top: 0; } }
.bankline .area { fill: color-mix(in srgb, var(--gold) 22%, transparent); }
.bankline .line { fill: none; stroke: var(--gold-ink); stroke-width: 2.5; }
.spark-x { display: flex; justify-content: space-between; margin-top: 4px; font: 500 12px/1 var(--f-mono); color: var(--ink-3); }
.votesum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.votesum dd { font-size: 22px; }

/* guild */
.ghead { margin-bottom: 14px; padding: 12px 14px; background: color-mix(in srgb, var(--g) 12%, transparent); box-shadow: inset 4px 0 0 var(--g); }
.gname { font: 600 22px/1.15 var(--f-display); color: var(--ink); overflow-wrap: anywhere; }
/* guild colours are player-picked (#f2f2f2 vanished on the day theme): the tag stays ink, the colour is a swatch */
.gtag { font-family: var(--f-mono); font-weight: 800; color: var(--ink); white-space: nowrap; }
.gtag::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: 1px; background: var(--g, var(--link)); box-shadow: 0 0 0 1px var(--ink); }
.gdesc { margin-top: 6px; color: var(--ink-2); overflow-wrap: anywhere; }
.gmembers .slot img { width: 32px; height: 32px; image-rendering: pixelated; }
.gmembers .rn a { color: var(--ink); }
.ghero { box-shadow: inset 0 4px 0 var(--g); }
.ghero .eyebrow svg.ui { width: 18px; height: 18px; }
.gtitle { margin: 6px 0 4px; font: 600 clamp(30px, 4vw, 52px)/1.05 var(--f-display); color: var(--ink); overflow-wrap: anywhere; }
.ghero .facts { margin-top: 16px; }
.ghero .gl a { color: var(--link); overflow-wrap: anywhere; }
.glist { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.glist a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: baseline; min-height: 44px; padding: 8px 12px; color: var(--ink); text-decoration: none; background: var(--ghost-h); box-shadow: inset 4px 0 0 var(--g); }
.glist a:hover .gn { color: var(--link); }
.glist .gn { font-weight: 700; overflow-wrap: anywhere; }
.glist small { grid-column: 1 / -1; font: 500 13px/1.2 var(--f-mono); color: var(--ink-3); }

/* standing, support, tickets */
.puns { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pun, .ticket { padding: 12px 14px; background: var(--ghost-h); box-shadow: inset 0 0 0 2px var(--rule); overflow-wrap: anywhere; }
.pun-t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 6px; color: var(--ink); }
.pun-m { margin-top: 6px; font: 500 13px/1.4 var(--f-mono); color: var(--ink-3); }
.appeal { margin-top: 10px; }
.appeal > summary { list-style: none; display: inline-flex; min-height: 44px; }
.appeal > summary::-webkit-details-marker { display: none; }
.v2form { display: grid; gap: 14px; margin-top: 12px; }
.v2form textarea.input { min-height: 112px; padding-block: 10px; resize: vertical; font: 500 16px/1.5 var(--f-body); }
.v2form .btn { justify-self: start; }
.count { font: 500 12px/1 var(--f-mono); color: var(--ink-3); text-align: right; }
.reqstate { font-size: 15px; color: var(--ink-2); }
.reqstate:empty { display: none; }
.reqstate[data-state="done"] { color: var(--ok); }
.reqstate[data-state="error"], .reqstate[data-state="denied"], .reqstate[data-state="expired"] { color: var(--err); }
#p-support .card-foot a, .ticket a { color: var(--link); }

/* notifications */
.nt-tools { display: flex; justify-content: flex-end; margin: -6px 0 8px; }
.nts { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 4px; }
.nt a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; min-height: 52px; padding: 8px 10px; color: var(--ink-2); text-decoration: none; background: var(--ghost-h); }
.nt a:hover { box-shadow: inset 0 0 0 2px var(--link); }
.nt .slot { width: 40px; height: 40px; }
.nt .slot svg { width: 24px; height: 24px; }
.nt-b { display: grid; min-width: 0; }
.nt-t { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-d { font-size: 14px; overflow-wrap: anywhere; }
.nt-w { font: 500 12px/1.2 var(--f-mono); color: var(--ink-3); white-space: nowrap; align-self: start; padding-top: 4px; }
.nt.unread a { background: color-mix(in srgb, var(--link) 10%, var(--ghost-h)); box-shadow: inset 4px 0 0 var(--link); }
.nt.unread .nt-t::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: middle; background: var(--link); }

/* privacy */
.privs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.privs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 12px; background: var(--ghost-h); box-shadow: inset 0 0 0 2px var(--rule); }
.pv-t { font-weight: 700; color: var(--ink); }
.pv-d { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.privnote p { font-size: 16px; }

/* header: staff link + bell (shown by hub.js/app.js, which also add .btn) */
.nav-staff.btn, .nav-bell.btn { min-height: 44px; gap: 6px; padding-inline: 10px; }
.nav-bell { position: relative; }
.nav-bell.btn { min-width: 44px; justify-content: center; }
/* the count is a corner badge so the bell stays one 44px square and the status pill keeps its room;
   fixed dark red in both themes: white on #B42318 is 6.5:1 (var(--err) is a light coral in night) */
.bell-n { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; font: 800 11px/18px var(--f-mono); color: #fff; text-align: center; background: #B42318; box-shadow: 0 0 0 2px #0a0b10; pointer-events: none; }
.gmembers .rn a { display: inline-flex; align-items: center; min-height: 44px; }
/* the nav already fills a 1440 bar: the staff link is icon-only (sr-only label + title) so the status pill keeps its text */
@media (max-width: 1799px) {
  .nav-staff-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nav-staff.btn { min-width: 44px; justify-content: center; }
}
@media (max-width: 760px) {
  .claim { grid-template-columns: 72px minmax(0, 1fr); }
  .claimsvg { width: 72px; height: 72px; }
  .claim-a { grid-column: 1 / -1; flex-direction: row; }
  .nt a { grid-template-columns: 40px minmax(0, 1fr); }
  .nt-w { grid-column: 2; padding-top: 0; }
  .votesum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .votesum dd { font-size: 18px; }
  .nav-staff-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 420px) {
  .rows li:has(.ra .btn + .btn) { grid-template-columns: 40px minmax(0, 1fr); }
  .rows li:has(.ra .btn + .btn) .ra { grid-row: auto; grid-column: 1 / -1; justify-content: flex-start; }
}
/* v2 wallet: activity lines wrap instead of cutting enchant names off */
.v2 .tx .tk { white-space: normal; overflow-wrap: anywhere; }
/* public guild page: leader + member/playtime name links are full 44px targets */
.ghero .gl a, .ghero ~ .card .blist .bn a, .ghero ~ .card .rn a { display: inline-flex; align-items: center; min-height: 44px; }
/* support card: the Discord ticket link is a full tap target, not a 38px inline line */
#p-support .card-foot a { display: inline-flex; align-items: center; min-height: 44px; }
/* badge sits off the glyph: the bell shifts left while a count shows, the badge hugs the corner (no glyph overlap) */
.nav-bell:has(.bell-n:not([hidden])) > svg { transform: translateX(-5px); }
.nav-bell .bell-n { top: 3px; right: -3px; min-width: 17px; height: 17px; font-size: 10.5px; line-height: 17px; padding: 0 3px; }

/* card-header chips (e.g. "Gold badge = #1 on that leaderboard") may wrap: nowrap pushed the profile page 31px wide at 320px */
.card-h .chip { white-space: normal; max-width: 100%; line-height: 1.25; }

/* =====================================================================================================================
   CHRONICLE LAYER (brand v3): hub pages read as quiet chronicle ledgers. Parchment / vellum panels, thin gold rules,
   Cinzel only for headings; numbers stay JetBrains Mono. JS hooks and class names are untouched.
   ===================================================================================================================== */
.hubpage .topbar.solid { background: color-mix(in srgb, var(--bg) 90%, transparent); box-shadow: 0 1px 0 var(--rule-2), 0 4px 0 -2px var(--rule), 0 10px 24px -18px rgb(0 0 0 / .5); }
.hubhead h1, .gate h1, .gate h2 { font-weight: 800; letter-spacing: .015em; text-shadow: none; }
[data-theme="night"] .hubhead h1 { text-shadow: 0 2px 0 rgb(0 0 0 / .45); }
.card-h h2, .card-h h3 { font: 700 17px/1.25 var(--f-display); letter-spacing: .05em; color: var(--label); }
.split h3, .facts dt, .lbtop dt, .tile .tl, .field label, .field .lbl2 { color: var(--ink-3); }
/* small stat panels: the light frame, so the corner ornaments never touch the numbers */
/* pass 2: stat tiles use the shared engraved corners (style.css), no SVG frame */
.lbtop div { padding: 18px 22px; }
.facts div, .perks li, .duser, .gate-list li, .skel { box-shadow: inset 0 0 0 1px var(--rule); border-radius: 2px; }
.facts div { background: var(--ghost-h); }
/* fields: parchment wells (light) / ink wells (dark) with a gold ring */
.select, .input { color: var(--ink); background-color: var(--slot); border: 1px solid var(--slot-ring); border-radius: 3px; box-shadow: inset 0 2px 6px rgb(0 0 0 / .14); }
.select { background-image: linear-gradient(45deg, transparent 50%, var(--gold-t) 50%), linear-gradient(135deg, var(--gold-t) 50%, transparent 50%); }
.input::placeholder { color: var(--ink-3); opacity: 1; }
.select:focus-visible, .input:focus-visible { border-color: var(--focus); box-shadow: inset 0 2px 6px rgb(0 0 0 / .14), var(--focus-glow); }
.searchbox svg.ui { color: var(--ink-3); }
/* switch: brass track, parchment knob, teal when on */
.switch { border: 1px solid var(--inkline); border-radius: 22px; background: var(--slot); box-shadow: inset 0 0 0 1px var(--slot-ring), inset 0 2px 6px rgb(0 0 0 / .25); }
.switch::after { top: 4px; left: 4px; width: 34px; height: 34px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 1px var(--inkline), inset 0 1px 0 rgb(255 246 214 / .7); }
.switch[aria-checked="true"] { background: var(--prim); }
.switch[aria-checked="true"]::after { transform: translateX(30px); }
/* board tabs: parchment sockets, the chosen one gilded */
.btab { border-radius: 3px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule-2); }
.btab:hover { background: var(--card-hi); }
[data-theme="night"] .btab:hover { background: #33281C; }
.btab[aria-selected="true"] { color: #2A1806; background: var(--leaf); box-shadow: 0 0 0 1px var(--inkline), inset 0 0 0 1px rgb(255 240 190 / .45), inset 0 -3px 0 #7A4C10; }
.seg { padding: 3px; gap: 3px; background: var(--slot); border-radius: 4px; box-shadow: inset 0 0 0 1px var(--slot-ring); }
.seg button { color: var(--ink-2); border-radius: 2px; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { color: #2A1806; background: var(--leaf); box-shadow: 0 0 0 1px var(--inkline), inset 0 -2px 0 #7A4C10; }
/* podium: gold, silver and bronze leaf plinths */
.pod img { box-shadow: 0 0 0 1px var(--inkline), 0 0 0 3px #C9973E, 0 0 0 4px var(--inkline); }
.pod-step { font-family: var(--f-display); font-weight: 800; color: #2A1806; background: var(--leaf); border-radius: 3px 3px 0 0; box-shadow: 0 0 0 1px var(--inkline), inset 0 0 0 1px rgb(255 246 214 / .45), inset 0 -4px 0 rgb(0 0 0 / .18); }
.pod.p2 .pod-step { background: linear-gradient(180deg, #F2EFE8, #C9C4B8 55%, #8E887B); }
.pod.p3 .pod-step { background: linear-gradient(180deg, #F0BE8A, #C98A4E 55%, #7E4A1F); }
.tile .rk { color: #2A1806; background: var(--leaf); border-radius: 2px; box-shadow: 0 0 0 1px var(--inkline); }
.tile .rk.r2 { background: linear-gradient(180deg, #F2EFE8, #B9B3A6); } .tile .rk.r3 { background: linear-gradient(180deg, #F0BE8A, #B3773F); }
.tile .rk.rn { color: var(--ink-2); background: var(--slot); box-shadow: inset 0 0 0 1px var(--slot-ring); }
.lbrows li > a, .lbrows li > div { border-radius: 2px; }
.lbrows li.me > a { box-shadow: inset 0 0 0 2px var(--gold-t); }
.lbrows .youtag { color: #2A1806; background: var(--leaf); border-radius: 2px; }
/* toasts and notices */
.toast2 { color: #EEE2C6; background: #221B13; border-radius: 3px; box-shadow: 0 0 0 1px #0A0704, inset 0 0 0 1px rgb(215 160 64 / .6), 0 18px 30px -12px rgb(0 0 0 / .6); }
.toast2 .tt { color: #F6D77E; }
.toast2 .td2 { color: #D9CBA8; }
.notice { border-radius: 3px; }
.hubhead h1 { font-size: clamp(30px, 3.8vw, 52px); }
/* Cinzel has no true lowercase: values with units ("107 h", "6 days") and case-sensitive names (Minecraft names, guild
   names) stay in the body face, so "OfficialWASD" and "RuiN" keep their case. Digits keep the JetBrains Mono rule. */
.facts dd, .where-w, .tile .tv, .purse dd, .advmeter b, .lbtop dd, .lbrows .pos { font-family: var(--f-num); font-weight: 700; }
.pname-big, .gname, .gtitle { font-family: var(--f-num); font-weight: 800; letter-spacing: -.005em; }
/* bevelled HUD cards → ruled ledger cells */
.tile, .pbody, .mapbox { border-radius: 2px; }
.tile { background: var(--card); box-shadow: inset 0 0 0 1px var(--rule-2), 0 1px 0 rgb(0 0 0 / .06); }
.pbody { box-shadow: 0 0 0 1px var(--inkline), 0 0 0 3px #C9973E, 0 0 0 4px var(--inkline); }
.duser img { box-shadow: 0 0 0 1px var(--inkline); }
.g-jump a, .g-cmd, .claimsvg { border-radius: 3px; box-shadow: inset 0 0 0 1px var(--slot-ring), inset 0 2px 5px rgb(0 0 0 / .12); }
.g-jump a:hover { background: var(--card-hi); }
.g-mini li::before { border-radius: 50%; font-family: var(--f-num); color: #2A1806; background: var(--leaf); box-shadow: 0 0 0 1px var(--inkline); }
.g-q > summary::after { border-radius: 50%; color: var(--gold-ink); background: transparent; box-shadow: inset 0 0 0 1px var(--slot-ring); }

/* =====================================================================================================================
   POLISH-10 · HUB lane (round 1). Everything below is scoped to hub pages; shared classes stay HOME's.
   ===================================================================================================================== */
/* ---------- guild heraldry (p11 C1): generated coats of arms (hub.js heraldry() / api/vrweb/heraldry.py) ---------- */
.harms { display: block; flex: none; height: auto; overflow: visible; filter: drop-shadow(0 6px 6px rgb(20 12 4 / .3)); }
.harms-mark { display: inline-block; vertical-align: middle; filter: none; }
.harms .ha-t { font-family: 'Cinzel', Georgia, serif; font-weight: 700; letter-spacing: .06em; }
.harms .ha-t.ha-tb { font-family: var(--f-body); font-weight: 800; letter-spacing: .02em; } /* case-sensitive tags: body face */
.harms-blank { opacity: .92; }
[data-theme="night"] .harms { filter: drop-shadow(0 6px 8px rgb(0 0 0 / .55)); }
[data-theme="night"] .harms-mark { filter: none; }
/* rank glyphs beside every guild rank (crown, crossed swords, shield, sapling) */
svg.rk-g { width: 16px; height: 16px; flex: none; margin-right: 6px; vertical-align: -3px; color: var(--ink-3); }
svg.rk-leader { color: var(--gold-ink); }
.gjoin { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: 99px; font: 700 12.5px/1.2 var(--f-body);
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule-2); background: transparent; }
.gjoin.is-open { color: var(--gold-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold-ink) 55%, transparent); }

/* ---------- the Guild Register (/guild/) ---------- */
.greg { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 560px)); }
.greg li { min-width: 0; display: flex; }
.greg-card { flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center;
  min-height: 176px; padding: 26px 24px 24px 28px; color: var(--ink); text-decoration: none;
  transition: translate var(--dur-2) var(--ease), filter var(--dur-2) var(--ease); }
.greg-card > .harms { width: 104px; align-self: center; }
.greg-b { display: grid; gap: 6px; min-width: 0; }
.greg-n { font: 800 clamp(22px, 2vw, 28px)/1.1 var(--f-num); letter-spacing: -.005em; color: var(--ink); overflow-wrap: anywhere; }
.greg-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font: 700 14px/1.3 var(--f-mono); color: var(--ink-2); }
.greg-d { font-size: 15px; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.greg-m { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-3); }
.greg-m b { font: 700 15px/1 var(--f-num); color: var(--ink); }
.greg-go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--gold-ink);
  box-shadow: inset 0 0 0 1px var(--slot-ring); transition: translate var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease); }
.greg-go svg.ui { width: 18px; height: 18px; }
.greg-card:hover { translate: 0 -3px; }
.greg-card:hover .greg-n { color: var(--link); }
.greg-card:hover .greg-go, .greg-card:focus-visible .greg-go { translate: 3px 0; background-color: var(--slot-hover); }
.greg-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
/* the "Found your own guild" card closes the grid: a blank shield waiting for its arms */
.greg .gfound-li.is-lone { grid-column: 1 / -1; }
.gfound { grid-template-columns: auto minmax(0, 1fr); align-items: start; background-image: none; box-shadow: inset 0 0 0 1.5px var(--rule-2);
  outline: 1.5px dashed color-mix(in srgb, var(--gold-ink) 45%, transparent); outline-offset: -9px; }
.gfound > .harms { width: 92px; margin-top: 4px; }
.gfound h2.greg-n { font: 700 clamp(20px, 2vw, 24px)/1.2 var(--f-display); letter-spacing: .03em; }
.gf-cmd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
.gf-cmd code { font: 700 15px/1.4 var(--f-mono); color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); padding: 2px 8px; border-radius: 2px;
  box-shadow: inset 0 0 0 1px var(--rule); }
.gf-gets { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); font-size: 15px; color: var(--ink-2); }
.gf-gets li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gf-gets svg { width: 18px; height: 18px; flex: none; margin: 0; color: var(--gold-ink); }
.gf-gets code { font: 700 14px/1 var(--f-mono); }
.gfound .more-link { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.gfound.greg-card:hover { translate: none; }
.gempty { display: grid; justify-items: center; gap: 12px; padding: 40px 24px 36px; text-align: center; }
.gempty > .harms { width: 120px; }
.gempty h2 { font: 700 24px/1.2 var(--f-display); color: var(--ink); }
.gempty p { max-width: 52ch; }

/* ---------- one guild (/guild/<name>): the banner hangs where other hub pages have their vignette ---------- */
header.hubhead.gpage-head { padding-top: clamp(30px, 3.6vw, 48px); }
[data-theme] header.hubhead.gpage-head::before, header.hubhead.gpage-head::after { content: none; }
.gpage-head .garms { display: block; width: clamp(150px, 15vw, 200px); margin: 0 auto 18px; }
.gpage-head .garms .harms { width: 100%; }
.gpage-head .gtitle { margin: 0 auto; max-width: 24ch; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; }
.gpage-head .gtag-h { font: 700 .5em/1 var(--f-mono); color: var(--ink-3); letter-spacing: 0; white-space: nowrap; vertical-align: .18em; }
.gpage-head .eyebrow svg.ui { width: 18px; height: 18px; }
.gfacts { padding: 20px 22px; }
.gfacts .facts { margin-top: 0; }
.gfacts .gl a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--link); overflow-wrap: anywhere; }
.gl-h { width: 24px; height: 24px; image-rendering: pixelated; box-shadow: 0 0 0 1px var(--inkline); flex: none; }
.gfacts .facts dd { overflow: visible; white-space: normal; }
.gtop li { grid-template-columns: 28px minmax(0, 1fr) auto; }
.gpos { font: 700 14px/1 var(--f-num); color: var(--gold-ink); text-align: center; }
.gtop li:first-child .gpos { color: #2A1806; background: var(--leaf); border-radius: 2px; padding: 4px 0; box-shadow: 0 0 0 1px var(--inkline); }
.gtop .bn a, .gpage-head ~ .wrap .rn a { display: inline-flex; align-items: center; min-height: 44px; }
.gback { display: flex; justify-content: center; margin-top: 8px; }
/* panel guild card: the banner beside the name instead of a colour bar */
.ghead > .harms { width: 64px; }
.ghead { display: flex; gap: 16px; align-items: flex-start; box-shadow: inset 0 0 0 1px var(--rule); background: color-mix(in srgb, var(--g) 8%, transparent); padding: 14px 16px; }
.ghead .gname .gtag { font: 700 14px/1 var(--f-mono); color: var(--ink-3); }
.ghead .gtag::before { display: none; }

/* ---------- designed error / API-down state ---------- */
.errgate .eyebrow { color: var(--err); }
.gpage-head .glede { margin: 18px auto 0; max-width: 52ch; text-align: center; font-size: 18px; line-height: 1.55; color: var(--ink-2); text-wrap: balance; }
/* the two guild cards share a row height so the shorter one doesn't leave a ragged hole */
body[data-page="guild"] .hgrid { align-items: stretch; }
body[data-page="guild"] .hgrid > .gback, body[data-page="guild"] .hgrid > .gfacts { align-self: start; }
@media (max-width: 560px) {
  .greg-card { grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 22px 18px 20px 20px; min-height: 0; }
  .greg-card > .harms { width: 76px; align-self: start; }
  .gfound > .harms { width: 64px; }
  .greg-go { display: none; }
}

/* ---------- leaderboards ---------- */
/* phones: the seven boards re-flow into two rows of hotbar slots (4 + 3, icon over label), so every board is visible
   and reachable without a hidden horizontal scroll (audit U3). Scoped to the board bar: the profile's stat tabs keep theirs. */
@media (max-width: 760px) {
  .lbbar .btabs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; overflow: visible;
    -webkit-mask-image: none; mask-image: none; }
  .lbbar .btab { grid-column: span 3; flex-direction: column; justify-content: center; gap: 5px; min-height: 64px; padding: 9px 2px 8px;
    font-size: 13px; line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
  .lbbar .btab svg.px { width: 24px; height: 24px; }
  .lbbar .seg { align-self: stretch; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lbbar .seg button { padding: 0 6px; }
  .lbbar .btab svg.ui { width: 22px; height: 22px; }
}
/* "top N + show all": the fold button reads as the list's last line, centred under the rows */
.lbmore { display: flex; width: 100%; justify-content: center; gap: 10px; margin-top: 12px; }
.lbmore svg.ui { width: 16px; height: 16px; rotate: 90deg; }
.lbrows { counter-reset: none; }
/* rail: guilds as gilded lozenge rows; the "all guilds" link is a full target with a chevron */
.glist { margin: 0; gap: 6px; }
.glist a { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 2px;
  box-shadow: inset 0 0 0 1px var(--rule); background: var(--ghost-h); }
.glist a:hover { box-shadow: inset 0 0 0 1px var(--rule-2); }
.glist .harms-mark { width: 26px; margin: 0 2px; }
.glist .gn { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.glist .gt { font: 700 13px/1 var(--f-mono); color: var(--ink-3); white-space: nowrap; }
.glist small { grid-column: auto; font: 500 13px/1.2 var(--f-mono); color: var(--ink-3); white-space: nowrap; }
.more-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--link); font-weight: 700; }
.more-link svg.ui { width: 16px; height: 16px; transition: translate var(--dur-2) var(--ease); }
.more-link:hover svg.ui { translate: 3px 0; }

/* ---------- player profile: identity card ---------- */
/* next-tier unlocks: a titled ledger of perk slips (body face, gilded lozenge bullets) instead of mono admin tags */
.unlocks { grid-column: 1 / -1; margin-top: 10px; padding: 14px 16px 12px; border-radius: 2px; background: var(--ghost-h); box-shadow: inset 0 0 0 1px var(--rule); }
.unlocks-h { display: flex; align-items: center; gap: 8px; font: 700 13px/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.unlocks-h b { color: var(--ink); letter-spacing: .06em; }
.unlocks-h svg { width: 20px; height: 20px; color: var(--c); }
.unlocks .perks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); gap: 6px 18px; margin: 10px 0 0; }
.unlocks .perks li { position: relative; padding: 2px 0 2px 20px; font: 400 15px/1.4 var(--f-body); color: var(--ink); background: none; box-shadow: none; }
.unlocks .perks li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; rotate: 45deg; background: var(--leaf); box-shadow: 0 0 0 1px var(--inkline); }
.rbonus { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.4; color: var(--ink); }
.rbonus svg.px { width: 24px; height: 24px; flex: none; }
.rb-l { margin-right: 4px; font-weight: 700; color: var(--gold-ink); }
/* phones: the skin sits beside the name and badges (no 170px stage before any data); facts and rank run full width */
@media (max-width: 760px) {
  .pcard { grid-template-columns: 92px minmax(0, 1fr); column-gap: 16px; row-gap: 0; align-items: start; }
  .pcard > div:not(.pbody):not(.pside) { display: contents; }
  .pcard .pbody { grid-row: span 2; width: 92px; height: 128px; padding-bottom: 6px; }
  .pcard .pbody img { height: 112px; }
  .pcard .pname-big { align-self: end; font-size: clamp(24px, 7vw, 32px); overflow-wrap: anywhere; }
  .pcard .chips { align-self: start; margin-top: 8px; }
  .pcard .facts, .pcard .rankrow, .pcard .pside { grid-column: 1 / -1; }
  .pcard .facts { margin-top: 16px; }
  .pcard .pside { margin-top: 16px; }
}

/* ---------- panel: logged-out sign-in sheet (U5) ---------- */
.gate-sheet { align-items: stretch; gap: 0; padding: 0; }
.gate-sheet .gate-login { align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(26px, 3.4vw, 44px); }
.gate-sheet .gate-h { font-size: clamp(26px, 2.6vw, 34px); }
.gate-sheet .gate-login > p:first-of-type { margin-top: 10px; }
.gate-sheet .notice { margin-top: 20px; }
.gate-how { margin-top: auto; padding-top: 8px; width: 100%; }
.gate-how-h { margin-top: 18px !important; padding-top: 16px; border-top: 1px solid var(--rule); font: 700 13px/1.2 var(--f-body) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3) !important; }
.gate-how .steps2 { margin-top: 10px; font-size: 15px; }
.gate-sheet .gate-list { padding: clamp(22px, 3vw, 36px); border-left: 1px solid var(--rule); background: color-mix(in srgb, var(--ghost-h) 60%, transparent); }
@media (max-width: 900px) {
  .gate-sheet .gate-list { border-left: 0; border-top: 1px solid var(--rule); }
}

/* ---------- panel (logged in) ---------- */
/* desktop: the location card fills its row so the map grows instead of leaving a hole beside the vitals/challenges stack */
@media (min-width: 1000px) {
  .hgrid > .colstack:has(> [data-loc-card]) { align-self: stretch; }
  .colstack > [data-loc-card] { flex: 1 1 auto; display: flex; flex-direction: column; }
  [data-loc-card] .mapbox { flex: 1 0 auto; }
  /* the notification ledger scrolls inside its card once it outgrows the column beside it */
  .nt-scroll { max-height: 34rem; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-gutter: stable;
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent); }
  .nt-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
}
.gpurse { grid-template-columns: 1fr 1fr; }
.gpurse > div:first-child { grid-column: 1 / -1; }
.gcard-go { margin-top: 14px; }
/* phones: the nine panel jump links sit on an even 3 × 3 grid instead of 4 + 4 + an orphan */
@media (max-width: 760px) {
  .pjump { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pjump a { justify-content: center; padding: 0 6px; }
}
/* legibility floor: row meta (pets, guild members, staff rows) and rail captions are reading text → 14px;
   13px stays only on uppercase mono/Cinzel labels */
.rows .rd, .glist small, .glist .gt { font-size: 14px; }
.rows .rd .mono { font-size: inherit; }
.ladder2 span { font-size: 14px; }
/* the profile's guild chip is a standalone link: the link is a 44px target, the chip inside keeps the 32px chip look
   (negative block margin, so the chip row doesn't grow) */
a.gchip-hit { display: inline-flex; align-items: center; min-height: 44px; margin-block: -6px; text-decoration: none; color: var(--ink); }
.gchip-hit .chip.gchip { color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g) 55%, var(--rule)); min-height: 32px; gap: 6px; }
.chip.gchip svg.harms-mark { width: 18px; height: auto; margin: 0 0 0 -3px; }
.gchip-hit .chip.gchip b { font-family: var(--f-mono); color: var(--ink); }
a.gchip-hit:hover .chip.gchip { background: color-mix(in srgb, var(--g) 16%, transparent); }
a.gchip-hit:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* register: guild cards fill the row (they sat in 560px tracks, 96px narrower than the "Raise your own banner" card) */
/* two columns from 860 px: the "Found your own guild" card then spans the row whenever it would sit alone (hub.js is-lone) */
.greg { grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
@media (min-width: 860px) { .greg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* guild page, phones: the leader's name gets the full row instead of breaking mid-name ("OfficialW / ASD") */
@media (max-width: 560px) {
  .gfacts .facts > div:has(.gl), .gfacts .facts > div:has(.gl) ~ div { grid-column: 1 / -1; }
  .gfacts .gl a { overflow-wrap: normal; }
}

/* =====================================================================================================================
   POLISH ROUND 2 (HUB2). Everything below is scoped to .hubpage so it can never leak into the home page.
   ===================================================================================================================== */

/* ---------- U1 · one gauge: every hub bar is the shared .gauge-gilt (style.css R4). Only placement + leaf tints here ----
   Tints re-colour the leaf on the same metal: silver (ores), garnet (mobs). The track, rim, ink ticks and gem stay shared. */
.hubpage .gauge-gilt--silver { --gilt-leaf: linear-gradient(180deg, #F7F9FB 0 18%, #B6BDC6 18% 52%, #7C838E 52% 80%, #454B54 80%); }
.hubpage .gauge-gilt--garnet { --gilt-leaf: linear-gradient(180deg, #F7BCAA 0 18%, #C4513A 18% 52%, #8F2B1A 52% 80%, #5B1508 80%); }
.hubpage .blist .gauge-gilt { grid-column: 1 / -1; margin: 8px 2px 2px; }
.hubpage .chal .gauge-gilt { margin: 12px 2px 2px; }
.hubpage .chal .ct { align-items: baseline; }
.hubpage .lbrows .gauge-gilt { grid-column: 3 / -1; margin: 9px 2px 2px; }
.hubpage .rankrow .rk-gauge { grid-column: 1 / -1; margin: 8px 4px 4px; }
.hubpage .xplv .gauge-gilt { flex: 1; margin-right: 8px; }
.hubpage .adv-gauge { margin: 6px 4px 20px; }
.hubpage .claim-gauge { margin: 6px 4px 2px; }

/* ---------- V1 leaderboards ---------- */
/* hero figures: a composed ledger row in the home status-tile voice (Cinzel label, big figure, mono unit) */
.hubpage .lbfig { gap: 14px; margin-bottom: 22px; }
.hubpage .lbfig > div { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 22px 26px 20px; }
.hubpage .lbfig dt { font: 700 14px/1.3 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.hubpage .lbfig dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; font: inherit; }
.hubpage .lf-n { font: 600 clamp(40px, 3.6vw, 54px)/1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.hubpage .lf-u { font: 700 14px/1.2 var(--f-mono); color: var(--ink-2); }
/* board tabs: labels read at 14px on desktop (13px floor on phones) */
@media (min-width: 1100px) { .hubpage .lbbar .btab { font-size: 14px; letter-spacing: .005em; } }
/* "You're #n on …": a gilt ribbon with notched tails, not a teal admin box */
.hubpage .lbyou { display: flex; justify-content: center; margin: 2px 0 26px; filter: drop-shadow(0 0 .6px #2B2118) drop-shadow(0 0 .6px #2B2118) drop-shadow(0 5px 6px rgb(0 0 0 / .18)); }
.hubpage .lbyou-in { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; max-width: 100%; padding: 8px 40px;
  font: 500 16px/1.3 var(--f-body); color: #2A1806; text-align: center; text-wrap: balance;
  background: linear-gradient(180deg, #FAE6A6 0%, #E4B358 52%, #C18A33 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 50%, 100% 100%, 0 100%, 18px 50%); }
.hubpage .lbyou-in::before { content: ""; position: absolute; inset: 4px 22px; border-block: 1px solid rgb(43 33 24 / .38); pointer-events: none; }
.hubpage .lbyou-in b { font-family: var(--f-num); font-weight: 800; }
.hubpage .lbyou svg.px { width: 24px; height: 24px; flex: none; }
/* podium: engraved metal-leaf plinths (gold I, silver II, bronze III) on one bronze stage rail */
.hubpage .podium { gap: 18px; padding-bottom: 8px; margin-bottom: 22px;
  background: linear-gradient(180deg, #B07A2A, #6B430C) bottom / 100% 7px no-repeat; box-shadow: inset 0 -1px 0 var(--inkline); }
.hubpage .pod { gap: 6px; }
.hubpage .pod-step { --m1: #FCEAB0; --m2: #E4B354; --m3: #AC7422; --m4: #6E450E; position: relative; margin-top: 16px; border-radius: 1px 1px 0 0;
  --gloss: linear-gradient(104deg, transparent 22%, rgb(255 255 255 / .26) 34%, rgb(255 255 255 / .06) 44%, transparent 52%, transparent 70%, rgb(255 255 255 / .12) 78%, transparent 84%);
  --metal: linear-gradient(90deg, rgb(0 0 0 / .16), transparent 12%, transparent 88%, rgb(0 0 0 / .22)), linear-gradient(180deg, var(--m1) 0%, var(--m2) 36%, var(--m3) 80%, var(--m4) 100%);
  background: var(--gloss), var(--metal);
  box-shadow: 0 0 0 1px var(--inkline), inset 0 1px 0 rgb(255 250 232 / .8), inset 0 -3px 0 rgb(0 0 0 / .22), 0 12px 18px -14px rgb(0 0 0 / .6); }
/* U2 · silver is polished steel with the same value range as gold and bronze (bright cap, deep foot, specular gloss), not a
   flat grey slab; its engraving is a cool blue-black so the numeral reads cut into the metal */
.hubpage .pod.p2 .pod-step { --m1: #F3F6F9; --m2: #B9C1CC; --m3: #7A828F; --m4: #3E444E;
  background: var(--gloss), linear-gradient(90deg, rgb(0 0 0 / .18), transparent 12%, transparent 88%, rgb(0 0 0 / .24)),
    linear-gradient(180deg, #F3F6F9 0%, #BCC4CF 24%, #8A929F 46%, #CDD4DD 60%, #98A0AC 80%, #4A515C 100%); }
.hubpage .pod.p3 .pod-step { --m1: #F8D0A2; --m2: #D69455; --m3: #985B2B; --m4: #5A3214; }
.hubpage .pod.p2 .pod-num { color: rgb(22 28 38 / .84); text-shadow: 0 1px 0 rgb(246 250 255 / .75), 0 -1px 0 rgb(0 0 0 / .3); }
.hubpage .pod.p2 .pod-step::after { border-color: rgb(22 28 38 / .5); outline-color: rgb(22 28 38 / .22); }
/* the cornice: a slightly wider moulded cap on each plinth */
.hubpage .pod-step::before { content: ""; position: absolute; left: -7px; right: -7px; top: -11px; height: 11px; border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--m1), var(--m2) 55%, var(--m3)); box-shadow: 0 0 0 1px var(--inkline), inset 0 1px 0 rgb(255 250 232 / .75), inset 0 -2px 0 rgb(0 0 0 / .22); }
/* the engraved panel: an ink rule with a fine second rule inside it */
.hubpage .pod-step::after { content: ""; position: absolute; inset: 12px 14px 14px; border: 1px solid rgb(43 26 6 / .5);
  outline: 1px solid rgb(43 26 6 / .22); outline-offset: -5px; box-shadow: 0 1px 0 rgb(255 250 232 / .45), inset 0 1px 0 rgb(255 250 232 / .4); pointer-events: none; }
.hubpage .pod-num { position: relative; z-index: 1; font: 800 36px/1 'Cinzel', Georgia, serif; letter-spacing: .06em; color: rgb(43 26 6 / .86);
  text-shadow: 0 1px 0 rgb(255 248 222 / .7), 0 -1px 0 rgb(0 0 0 / .28); }
.hubpage .pod.p1 .pod-num { font-size: 44px; }
.hubpage .pod-you { margin: 0; padding: 3px 8px; font: 700 13px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; }
.hubpage .pod-val { font-family: var(--f-mono); }
@media (max-width: 760px) {
  .hubpage .podium { gap: 12px; }
  .hubpage .pod-step::before { left: -5px; right: -5px; top: -8px; height: 8px; }
  .hubpage .pod-step { margin-top: 12px; }
  .hubpage .pod-step::after { inset: 7px 8px 9px; outline-offset: -4px; }
  .hubpage .pod-num { font-size: 24px; } .hubpage .pod.p1 .pod-num { font-size: 30px; }
  .hubpage .lbfig { gap: 8px; }
  .hubpage .lbfig > div { gap: 6px; padding: 14px 12px 12px; }
  .hubpage .lbfig dt { font-size: 12px; letter-spacing: .08em; text-wrap: balance; }
  .hubpage .lf-n { font-size: 28px; }
  .hubpage .lf-u { font-size: 13px; }
  .hubpage .lbyou-in { padding: 8px 30px; font-size: 15px; }
}
.hubpage .pod-you { color: #2A1806; background: var(--leaf); border-radius: 2px; box-shadow: 0 0 0 1px var(--inkline), inset 0 1px 0 rgb(255 246 214 / .5); }
[data-theme="night"] .hubpage .pod-step { filter: brightness(.92); }
/* phones: label on top, figure on the bottom line, so the three numbers share a baseline when a label wraps */
@media (max-width: 760px) { .hubpage .lbfig > div { justify-content: space-between; } }

/* ---------- running-head breadcrumb (guild page, profile) ---------- */
.hubpage .crumbs { display: flex; justify-content: center; margin: 0 0 14px; }
.hubpage .crumbs ol { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 4px; margin: 0; padding: 0; list-style: none; }
.hubpage .crumbs li { display: inline-flex; align-items: center; gap: 4px; min-width: 0;
  font: 700 13px/1.2 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.hubpage .crumbs li + li::before { content: ""; width: 7px; height: 7px; margin: 0 10px 0 6px; rotate: 45deg; flex: none;
  background: var(--leaf); box-shadow: 0 0 0 1px var(--inkline); }
.hubpage .crumbs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; color: var(--gold-ink); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(50% + .8em) / 0 1px no-repeat; transition: background-size var(--dur-2, .2s) var(--ease, ease); }
.hubpage .crumbs a:hover { background-size: 100% 1px; }
.hubpage .crumbs a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
/* the current page keeps its own case (Minecraft and guild names are case-sensitive): body face, no caps */
.hubpage .crumbs [aria-current] { font: 700 15px/1.2 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--ink); overflow-wrap: anywhere; }

/* ---------- V2 guild page ---------- */
/* the guild's own words read at lede size, centred under the title */
.hubpage .gpage-head .glede { margin: 18px auto 0; max-width: 46ch; font-size: 19px; line-height: 1.55; text-align: center; text-wrap: balance; }
.hubpage .gpage-head .glede { color: var(--ink-2); font-family: var(--f-body); }
.hubpage .gpage-head .crumbs { margin-bottom: 18px; }
/* fact labels everywhere on the hub: Cinzel small caps at 13px (were 13px mono caps that read as admin labels) */
.hubpage .facts dt { font: 700 13px/1.25 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
/* one centred charter column on desktop: facts, roster and the way back share the banner's axis */
@media (min-width: 1100px) {
  .hubpage .hgrid > .gfacts, .hubpage .hgrid > .groster-card, .hubpage .hgrid > .gback { grid-column: 3 / span 8; }
}
.hubpage .gr-note { margin: -4px 0 12px; font-size: 15px; color: var(--ink-2); }
.hubpage .groster .pname { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; white-space: normal; }
.hubpage .groster .gr-nm { overflow-wrap: anywhere; }
.hubpage .gr-role { font: 700 13px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.hubpage .gr-lead { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px 4px 6px; border-radius: 2px;
  font: 700 12px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: #2A1806; background: var(--leaf);
  box-shadow: 0 0 0 1px var(--inkline), inset 0 1px 0 rgb(255 246 214 / .55); }
.hubpage .gr-lead svg.ui { width: 14px; height: 14px; }
.hubpage .gr-lead svg.rk-g { color: #2A1806; margin: 0; vertical-align: 0; }
.hubpage .groster li.is-leader > a { box-shadow: inset 0 0 0 1px var(--rule-2), inset 3px 0 0 var(--gold-t); }
/* rank seals: gold / silver / bronze leaf medallions for the top three (rows and the profile's stat tiles share them) */
.hubpage .seal { display: inline-grid; place-items: center; justify-self: center; width: 34px; height: 34px; border-radius: 50%;
  font: 800 16px/1 var(--f-num); color: #2A1806; text-shadow: 0 1px 0 rgb(255 248 222 / .6);
  background: radial-gradient(circle at 50% 38%, #FCEAB0 0 30%, #E4B354 58%, #9A6418 100%);
  box-shadow: 0 0 0 1px var(--inkline), inset 0 0 0 3px rgb(255 240 190 / .35), inset 0 0 0 4px rgb(74 48 10 / .45), 0 2px 3px rgb(0 0 0 / .2); }
.hubpage .seal.s2 { background: radial-gradient(circle at 50% 38%, #FFFFFF 0 30%, #D6D1C6 58%, #8C867A 100%); }
.hubpage .seal.s3 { background: radial-gradient(circle at 50% 38%, #F8D0A2 0 30%, #CF8C4E 58%, #7E4A1F 100%); }
@media (max-width: 760px) {
  .hubpage .crumbs li { font-size: 12px; letter-spacing: .1em; }
  .hubpage .gpage-head .glede { font-size: 17px; }
  .hubpage .seal { width: 30px; height: 30px; font-size: 15px; }
}
/* the centred facts strip: the leader cell gets the room a Minecraft name needs (it broke "OfficialWAS / D") */
@media (min-width: 1100px) {
  .hubpage .gfacts .facts { grid-template-columns: minmax(0, .75fr) minmax(0, 1fr) minmax(max-content, 1.35fr) minmax(0, 1fr); }
  .hubpage .gfacts .gl a { overflow-wrap: normal; white-space: nowrap; }
}

/* ---------- V3 profile ---------- */
.hubpage .pcrumbs .crumbs { justify-content: flex-start; margin: 0 0 -6px; }
.hubpage .pcrumbs .crumbs ol { justify-content: flex-start; }
/* progress line: tier → tier left, hours to go right (one line from 360px), gauge, then the gauge's two ends */
.hubpage .rankrow { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 10px 16px; }
.hubpage .rankrow .lbl3 { font: 700 16px/1.3 var(--f-body); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hubpage .rankrow .rk-arrow { margin: 0 4px; color: var(--gold-ink); font-weight: 400; }
.hubpage .rankrow .left { font: 700 14px/1.3 var(--f-mono); color: var(--gold-ink); }
.hubpage .rk-ends { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; margin-top: -2px;
  font: 700 13px/1.3 var(--f-mono); color: var(--ink-3); }
.hubpage .rk-ends span:last-child { text-align: right; }
/* vitals: the in-game XP level reads in gilt on the same gauge (was neon teal on black) */
.hubpage .xplv { gap: 16px; }
.hubpage .xplv b { font: 700 30px/1 var(--f-display); color: var(--gold-ink); text-shadow: none; }
/* stat-tile leaderboard badges → gilded rank seals (gold / silver / bronze medallions, parchment ring below #3) */
.hubpage .tile .rk { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 7px; border-radius: 17px;
  font: 800 14px/1 var(--f-num); letter-spacing: 0; color: #2A1806; text-shadow: 0 1px 0 rgb(255 248 222 / .6);
  background: radial-gradient(circle at 50% 38%, #FCEAB0 0 28%, #E4B354 60%, #9A6418 100%);
  box-shadow: 0 0 0 1px var(--inkline), inset 0 0 0 3px rgb(255 240 190 / .35), inset 0 0 0 4px rgb(74 48 10 / .4), 0 2px 3px rgb(0 0 0 / .18); }
.hubpage .tile .rk.r2 { background: radial-gradient(circle at 50% 38%, #FFFFFF 0 28%, #D6D1C6 60%, #8C867A 100%); }
.hubpage .tile .rk.r3 { background: radial-gradient(circle at 50% 38%, #F8D0A2 0 28%, #CF8C4E 60%, #7E4A1F 100%); }
.hubpage .tile .rk.rn { color: var(--ink); text-shadow: none; background: var(--card-hi); box-shadow: 0 0 0 1px var(--slot-ring), inset 0 0 0 3px var(--card), inset 0 0 0 4px var(--rule-2); }
.hubpage .tile { row-gap: 6px; }
/* skill levels: a parchment socket with a gilt figure (was a neon teal chip on black) */
.hubpage .lvl { min-width: 34px; height: 26px; border-radius: 2px; font: 800 14px/1 var(--f-num); color: var(--gold-ink); text-shadow: none;
  background: var(--slot); box-shadow: inset 0 0 0 1px var(--slot-ring), inset 0 2px 4px rgb(0 0 0 / .12); }
/* latest advancements: one framed in-game inset (an ink plate with a gold rim) instead of loose black slabs */
.hubpage .advs { gap: 6px; margin: 4px; padding: 10px; border-radius: 2px; background: #17110B;
  box-shadow: 0 0 0 1px var(--inkline), 0 0 0 3px #C9973E, 0 0 0 4px var(--inkline), inset 0 0 22px rgb(0 0 0 / .55); }
.hubpage .advs li { padding: 8px 12px 8px 8px; border-radius: 1px; background: #241C13; box-shadow: inset 0 0 0 1px rgb(215 160 64 / .26); }
.hubpage .advs .slot { background: #120D08; border-radius: 2px; box-shadow: inset 0 0 0 1px rgb(215 160 64 / .4); }
.hubpage .advs .at { color: #F6D77E; }
.hubpage .advs .ad { color: #E2D6BA; }
@media (max-width: 400px) { .hubpage .rankrow .lbl3 { font-size: 15px; } .hubpage .rankrow .left { font-size: 13px; } }
.hubpage .split h3 { font: 700 13px/1.25 var(--f-display); letter-spacing: .12em; color: var(--label); }

/* ---------- V4 panel: the map card ---------- */
/* the card's own ground is the engraved map plate, never a black void */
.hubpage .mapbox { background: #2A2116; box-shadow: 0 0 0 1px var(--inkline), 0 0 0 3px #C9973E, 0 0 0 4px var(--inkline); margin: 4px; }
.hubpage .mapbox iframe { z-index: 1; opacity: 1; transition: opacity .45s var(--ease, ease); background: #0B0D12; }
.hubpage .mapbox iframe.is-pending { opacity: 0; }
.hubpage .mapposter { padding: 0; background: none; color: var(--ink); }
.hubpage .mapposter .mp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: sepia(.15) saturate(.92); }
[data-theme="night"] .hubpage .mapposter .mp-img { filter: sepia(.3) brightness(.62) saturate(.85); }
/* the call to action sits on a parchment cartouche in the middle of the plate */
.hubpage .mp-body { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px; max-width: min(440px, calc(100% - 32px)); padding: 18px 24px 18px;
  border-radius: 2px; background: color-mix(in srgb, var(--card) 93%, transparent); backdrop-filter: blur(2px);
  box-shadow: 0 0 0 1px var(--inkline), 0 0 0 3px #C9973E, 0 0 0 4px var(--inkline), 0 14px 30px -12px rgb(0 0 0 / .55); }
.hubpage .mapposter .pin { width: 40px; height: 40px; }
.hubpage .mapposter p { margin: 0; max-width: 38ch; color: var(--ink-2); }
.hubpage .mapposter .mp-t { font-size: 16px; line-height: 1.45; color: var(--ink); text-wrap: balance; }
.hubpage .mapposter .mp-s { font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; }
.hubpage .mapposter .mp-k { display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--err, #A3301F); }
.hubpage .mapposter .mp-k svg.ui { width: 16px; height: 16px; }
.hubpage .mapposter .mp-xyz { font-size: 17px; font-weight: 700; color: var(--ink); }
.hubpage .mapposter .mp-cap { position: absolute; z-index: 1; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 2px; font: 600 12px/1.2 var(--f-mono);
  color: #F3E6C4; background: rgb(23 17 11 / .78); }
.hubpage .mapposter .mp-cap span { color: #CBB98F; }
.hubpage .mp-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--rule-2); border-top-color: var(--gold-t); animation: mpspin .9s linear infinite; }
@keyframes mpspin { to { rotate: 1turn; } }
@media (prefers-reduced-motion: reduce) { .hubpage .mp-spin { animation-duration: 3s; } .hubpage .mapbox iframe { transition: none; } }
@media (max-width: 520px) {
  .hubpage .mapbox { aspect-ratio: 4 / 5; }
  .hubpage .mp-body { padding: 14px 16px; }
  .hubpage .mapposter .mp-t { font-size: 15px; }
  .hubpage .mapposter .mp-cap { font-size: 11px; }
}

/* ---------- V4 panel: the sticky contents rail ---------- */
.hubpage { --hdr-h: 64px; }
.hubpage .pjump { position: sticky; top: calc(var(--hdr-h) + 8px); z-index: 30; display: block; padding: 6px; border-radius: 2px;
  background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1px var(--inkline), inset 0 0 0 1px var(--rule-2), 0 10px 22px -16px rgb(0 0 0 / .55); }
.hubpage .pj-list { display: flex; flex-wrap: wrap; gap: 4px; }
.hubpage .pj-list a { position: relative; flex: 1 1 auto; justify-content: center; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font: 700 14px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); text-decoration: none;
  background: none; box-shadow: none; border-radius: 2px; }
.hubpage .pj-list a:hover { color: var(--ink); background: var(--ghost-h); box-shadow: none; }
.hubpage .pj-list a[aria-current] { color: var(--ink); background: var(--ghost-h); }
.hubpage .pj-list a[aria-current]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 3px; border-radius: 1px; background: var(--leaf); box-shadow: 0 0 0 1px var(--inkline); }
.hubpage .pj-list a:focus-visible, .hubpage .pj-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hubpage .pj-toggle { display: none; }
/* every jump target clears the header + the rail */
.hubpage .hgrid > [id^="p-"], .hubpage .colstack > [id^="p-"], .hubpage .anchor { scroll-margin-top: calc(var(--hdr-h) + 84px); }
@media (max-width: 999px) {
  .hubpage .pjump { padding: 0; }
  .hubpage .pj-toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: 2px;
    background: none; color: var(--ink); font: 700 16px/1.2 var(--f-body); text-align: left; cursor: pointer; }
  .hubpage .pj-k { font: 700 12px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
  .hubpage .pj-toggle b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hubpage .pj-chev { width: 16px; height: 16px; rotate: 90deg; transition: rotate .2s var(--ease, ease); }
  .hubpage .pj-toggle[aria-expanded="true"] .pj-chev { rotate: -90deg; }
  .hubpage .pj-list { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); padding: 6px; flex-direction: column; gap: 2px;
    border-radius: 2px; background: var(--card); box-shadow: 0 0 0 1px var(--inkline), inset 0 0 0 1px var(--rule-2), 0 16px 30px -12px rgb(0 0 0 / .5); }
  .hubpage .pj-toggle[aria-expanded="true"] + .pj-list { display: flex; }
  .hubpage .pj-list a { justify-content: flex-start; font-size: 14px; }
  .hubpage .pj-list a[aria-current]::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
  .hubpage .hgrid > [id^="p-"], .hubpage .colstack > [id^="p-"], .hubpage .anchor { scroll-margin-top: calc(var(--hdr-h) + 72px); }
}
.hubpage .mapposter .mp-cap { white-space: nowrap; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; }

/* ---------- V7 phone pass (320–420) ---------- */
@media (max-width: 420px) {
  /* roster rows: the name gets the whole first line (role seal wraps under it), hours + gauge share the second */
  .hubpage .groster li > a { grid-template-columns: 34px 32px minmax(0, 1fr) auto; column-gap: 8px; padding-right: 10px; }
  .hubpage .groster .pos { font-size: 17px; }
  .hubpage .groster .seal { width: 28px; height: 28px; font-size: 14px; }
  .hubpage .groster .head { width: 32px; height: 32px; }
  .hubpage .groster .head img { width: 24px; height: 24px; }
  .hubpage .groster .pname { grid-column: 3 / -1; grid-row: 1; gap: 2px 8px; }
  .hubpage .groster .gr-nm { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
  .hubpage .groster .val { grid-column: 4; grid-row: 2; margin-top: 6px; }
  .hubpage .groster .gauge-gilt { grid-column: 3; grid-row: 2; align-self: center; margin: 6px 2px 0; }
  .hubpage .gr-lead { padding: 3px 6px 3px 5px; font-size: 11px; letter-spacing: .1em; }
  /* profile identity: a 12-character name fits on one line next to the skin at 320 */
  .hubpage .pcard .pname-big { font-size: clamp(21px, 6.6vw, 32px); }
  /* profile facts: a date wraps instead of turning into "Nov 2, 2…" */
  .hubpage .pcard .facts dd { white-space: normal; overflow: visible; font-size: 19px; }
  .hubpage .pod-name { font-size: 13px; letter-spacing: -.01em; }
}
@media (max-width: 360px) { .hubpage .podium { gap: 6px; } }

/* ======================================================================================================================
   R3 · HUB3 — one label voice, quiet tallies, filled grids (polish-10 round 3)
   ==================================================================================================================== */
/* F3 · card-head counts are a quiet engraved tally (Cinzel, a gilt lozenge), not a mono admin tag */
.hubpage .tally { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; font: 700 13px/1.25 var(--f-display);
  letter-spacing: .1em; color: var(--label); white-space: nowrap; }
.hubpage .tally::before { content: ""; flex: none; width: 6px; height: 6px; rotate: 45deg; background: var(--gold-t);
  box-shadow: 0 0 0 1px var(--inkline); }
.hubpage .tally:empty { display: none; }
.hubpage .tally:has(.tally-medal)::before { content: none; }
/* the legend shows the medal itself */
.hubpage .tally-medal { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 800 12px/1 var(--f-num);
  letter-spacing: 0; color: #2A1806; background: radial-gradient(circle at 50% 38%, #FFF3C4 0 28%, #E2B04F 60%, #8A5A14 100%);
  box-shadow: 0 0 0 1px var(--inkline), inset 0 0 0 2px rgb(255 246 214 / .35); }
@media (max-width: 560px) { .hubpage .tally { white-space: normal; } }
/* r7 A4: on phones the Stats card's medal key drops under the heading and wrapped as "…on that / leaderboard"; it now
   sets as two even lines ("Medal = your place / on that leaderboard"), the medal centred on the pair */
@media (max-width: 560px) { .hubpage .tally-key { text-wrap: balance; } }

/* F4 · sub-heads and form labels share the fact-label voice (Cinzel small caps), not mono caps */
.hubpage .v2h3, .hubpage .field label, .hubpage .field .lbl2 { font: 700 13px/1.25 var(--f-display); letter-spacing: .12em;
  text-transform: none; color: var(--label); }
.hubpage .v2h3 { display: flex; align-items: center; gap: 12px; margin: 24px 0 12px; }
.hubpage .v2h3::after { content: ""; flex: 1; height: 1px; background: var(--rule-2); }

/* F5 · favourite pet: the heart glyph from the icon set, not a unicode star */
.hubpage .fav { display: inline-flex; vertical-align: -3px; margin-right: 6px; }
.hubpage .fav svg { width: 16px; height: 16px; }

/* L3 · nobody online: a composed empty state with a way in */
.hubpage .quiet-on { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px;
  background: var(--card-hi, var(--ghost-h)); box-shadow: inset 0 0 0 1px var(--rule-2); border-radius: 2px; }
.hubpage .quiet-on .qo-ic { display: grid; place-items: center; width: 40px; height: 40px; background: var(--slot); border-radius: 2px;
  box-shadow: inset 0 0 0 1px var(--slot-ring); }
.hubpage .quiet-on .qo-ic svg { width: 26px; height: 26px; }
.hubpage .quiet-on p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.hubpage .quiet-on b { display: block; font: 700 15px/1.3 var(--f-display); letter-spacing: .06em; color: var(--ink); }

/* P3 · stat tiles: explicit columns per width, and the last row's tiles widen so the grid never ends on a hole.
   Each width band is a closed range so a wider band's spans never leak into a narrower grid. */
.hubpage .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (min-width: 1101px) {
  .hubpage .tiles > .tile:last-child:nth-child(5n+1) { grid-column: span 5; }
  .hubpage .tiles > .tile:last-child:nth-child(5n+2), .hubpage .tiles > .tile:nth-last-child(2):nth-child(5n+1) { grid-column: span 3; }
  .hubpage .tiles > .tile:last-child:nth-child(5n+2) { grid-column: span 2; }
  .hubpage .tiles > .tile:last-child:nth-child(5n+3), .hubpage .tiles > .tile:nth-last-child(2):nth-child(5n+2) { grid-column: span 2; }
  .hubpage .tiles > .tile:last-child:nth-child(5n+4) { grid-column: span 2; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .hubpage .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hubpage .tiles > .tile:last-child:nth-child(4n+1) { grid-column: span 4; }
  .hubpage .tiles > .tile:last-child:nth-child(4n+2), .hubpage .tiles > .tile:nth-last-child(2):nth-child(4n+1) { grid-column: span 2; }
  .hubpage .tiles > .tile:last-child:nth-child(4n+3) { grid-column: span 2; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .hubpage .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hubpage .tiles > .tile:last-child:nth-child(3n+1) { grid-column: span 3; }
  .hubpage .tiles > .tile:last-child:nth-child(3n+2) { grid-column: span 2; }
}
@media (max-width: 760px) {
  .hubpage .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hubpage .tiles > .tile:last-child:nth-child(2n+1) { grid-column: span 2; }
}

/* P1 · identity: the skin plinth stands beside the name (top-aligned), not floating mid-card */
@media (min-width: 761px) { .hubpage .pcard > .pbody { align-self: start; margin-top: 4px; } }
/* P2 · the folded tail of a long stat list */
.hubpage .blist-more { margin-top: 10px; }
.hubpage .blist-more > summary { min-height: 44px; font-size: 14px; }
.hubpage .blist-more[open] > summary { margin-bottom: 8px; }

/* PN2 · activity charts: a gilt-rimmed plate with quarter guides and gold-leaf columns (hours in polished steel), today in
   the teal of the gauge gem. Replaces the last near-black slab with neon bars. */
.hubpage .spark { --sp-guide: rgb(232 180 74 / .14); height: 132px; gap: 3px; padding: 10px 10px 0; border-radius: 1px;
  background: linear-gradient(0deg, transparent calc(25% - 1px), var(--sp-guide) calc(25% - 1px) 25%, transparent 25% calc(50% - 1px), var(--sp-guide) calc(50% - 1px) 50%, transparent 50% calc(75% - 1px), var(--sp-guide) calc(75% - 1px) 75%, transparent 75%) content-box, var(--gilt-track);
  box-shadow: var(--gilt-rim), inset 0 2px 4px rgb(0 0 0 / .35); margin: 4px; }
[data-theme="day"] .hubpage .spark { --sp-guide: rgb(58 36 10 / .16); }
.hubpage .spark i { border-radius: 1px 1px 0 0; background: linear-gradient(90deg, #8A5A14, #E8B84E 30%, #FBE7A6 50%, #C08A2E 74%, #6E450E);
  box-shadow: inset 0 0 0 1px rgb(58 36 10 / .45); }
.hubpage .spark i.z { height: 2px; background: var(--rule-2); box-shadow: none; }
.hubpage .spark i.today { background: linear-gradient(90deg, #0B6F68, #2EE6D6 45%, #BFFBF5 55%, #0F8F86); box-shadow: inset 0 0 0 1px rgb(10 40 38 / .55), 0 0 10px rgb(46 230 214 / .3); }
.hubpage .spark.hours i:not(.z) { background: linear-gradient(90deg, #454B54, #9AA2AD 30%, #F3F6F9 50%, #8A929F 74%, #3E444E); }
.hubpage .spark-x { margin: 10px 4px 0; }

/* PN4 · map/copy buttons inside rows are quiet gilt-outlined tools, so a column of rows doesn't become a column of slabs */
.hubpage .btn.btn-row { min-height: 40px; padding: 0 12px; gap: 6px; font-size: 14px; color: var(--gold-ink); background: transparent;
  border: 0; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--rule-2); }
.hubpage .btn.btn-row:hover { background: var(--ghost-h); box-shadow: inset 0 0 0 1px var(--gold-t); transform: none; }
.hubpage .btn.btn-row svg { width: 20px; height: 20px; }
.hubpage .btn.btn-icon.btn-row { width: 40px; padding: 0; justify-content: center; }

/* PN5 · unread notifications: a gilt edge and lozenge, not a teal wash */
.hubpage .nt.unread a { background: color-mix(in srgb, var(--gold-t) 9%, var(--ghost-h)); box-shadow: inset 3px 0 0 var(--gold-t), inset 0 0 0 1px var(--rule-2); }
.hubpage .nt.unread .nt-t::before { width: 7px; height: 7px; margin: 0 10px 0 2px; rotate: 45deg; background: var(--gold-t); box-shadow: 0 0 0 1px var(--inkline); }

/* PN6 · privacy switches: the off knob is pewter on the left, the on knob gold leaf on the right over the teal track —
   state reads by position and metal, not colour alone */
.hubpage .switch::after { background: linear-gradient(180deg, #ECE7DC, #B9B1A2 60%, #8A8274); }
.hubpage .switch[aria-checked="true"]::after { background: var(--leaf); }
.hubpage .nt a:hover { box-shadow: inset 0 0 0 1px var(--gold-t); }
.hubpage .nt.unread a:hover { box-shadow: inset 3px 0 0 var(--gold-t), inset 0 0 0 1px var(--gold-t); }

/* wallet charts sit on the same gilt-rimmed plate as the activity charts */
.hubpage .flow, .hubpage .bankline { width: calc(100% - 8px); margin: 4px; border-radius: 1px; background: var(--gilt-track);
  box-shadow: var(--gilt-rim), inset 0 2px 4px rgb(0 0 0 / .35); }
.hubpage .flow .zero { stroke: var(--rule-2); }
.hubpage .bankline .area { fill: color-mix(in srgb, var(--gold-t) 30%, transparent); }
[data-theme="night"] .hubpage .bankline .line { stroke: #E8B84E; }

/* L2 · segmented switches (All time / This week, report filters) speak in the body face like the tabs beside them */
.hubpage .seg button { font: 700 15px/1 var(--f-body); letter-spacing: 0; }

/* F6 · names in fact strips are ink with a gilt rule (a name, not a web link) in both themes */
.hubpage .gfacts .gl a, .hubpage .ghero .gl a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, var(--gold-t) 70%, transparent); }
.hubpage .gfacts .gl a:hover, .hubpage .ghero .gl a:hover { color: var(--gold-ink); text-decoration-color: var(--gold-t); text-decoration-thickness: 2px; }

/* P4/PN7 · in Daylight the advancement toasts are pressed into the page (vellum slips, gilt frame, oxblood-ink titles)
   instead of a night-black slab; Night keeps the in-game toast window */
[data-theme="day"] .hubpage .advs { background: color-mix(in srgb, #8A5A14 10%, transparent); box-shadow: var(--gilt-rim, inset 0 0 0 1px rgb(138 90 20 / .5)); }
[data-theme="day"] .hubpage .advs li { background: #FBF3E0; box-shadow: inset 0 0 0 1px rgb(138 90 20 / .38), 0 1px 0 rgb(58 36 10 / .12); }
[data-theme="day"] .hubpage .advs .slot { background: #EFE2C4; box-shadow: inset 0 0 0 1px rgb(138 90 20 / .5); }
[data-theme="day"] .hubpage .advs .at { color: #6E2A12; }
[data-theme="day"] .hubpage .advs .ad { color: var(--ink-2); }

/* hub heads: the lede fills its centred measure (balance left a short, left-hugging block under a centred title) */
.hubpage header.hubhead .sec-lede { text-wrap: pretty; }
/* signed-out panel: "Not linked yet?" in the fact-label voice */
.hubpage .gate-how-h { font: 700 13px/1.2 var(--f-display) !important; letter-spacing: .12em; text-transform: none; color: var(--label) !important; }

/* =====================================================================================================================
   POLISH-10 ROUND 4 (HUB4)
   ===================================================================================================================== */
/* U3 · pet species portraits sit in the same ink socket as every other row icon; the heart gets its key in the card foot */
.hubpage .petrows .slot svg.px { width: 30px; height: 30px; }
.hubpage .pet-key { display: flex; align-items: center; gap: 6px; }
.hubpage .pet-key .fav { margin: 0; vertical-align: 0; }

/* U4 · nothing real is ellipsised: a coordinate tuple and short phrases stay whole, the row wraps between them;
   advancement titles wrap instead of "The City at the End of the Ga…" */
.hubpage .tuple, .hubpage .nw { white-space: nowrap; }
.hubpage .advs .at { white-space: normal; overflow: visible; text-overflow: clip; text-wrap: pretty; }
/* U8 · one icon-button style in every row (homes, deaths, claims): a framed 44 px square beside an equally framed Map */
.hubpage .btn.btn-row { min-height: 44px; }
.hubpage .btn.btn-icon.btn-row { width: 44px; min-width: 44px; }
.hubpage .btn.btn-secondary.btn-row { box-shadow: inset 0 0 0 1px var(--rule-2); }
.hubpage .btn.btn-secondary.btn-row:hover { box-shadow: inset 0 0 0 1px var(--gold-t); }
.hubpage .ra { display: flex; gap: 8px; align-items: center; }

/* U2 · stat tiles: one anatomy (socket + medal on top, the number, its label) so every tile in a row has the same
   rhythm with or without a medal, and rows are always full: hub.js deals the tiles into balanced rows for each column
   budget (--k7/--k5/--k4/--k2 = the size of this tile's row) and the container picks the budget. No spans, no holes. */
.hubpage .tiles { container: tiles / inline-size; display: flex; flex-wrap: wrap; gap: 10px; grid-template-columns: none; }
.hubpage .tiles > .tile { --k: var(--k2, 2); flex: 1 1 calc((100% - (var(--k) - 1) * 10px) / var(--k) - 1px); min-width: 0; grid-column: auto;
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "slot . rk" "tv tv tv" "tl tl tl";
  grid-template-rows: 40px auto auto; align-content: start; align-items: center; row-gap: 8px; column-gap: 8px; padding: 14px; }
@container tiles (min-width: 600px) { .hubpage .tiles > .tile { --k: var(--k4, 4); } }
@container tiles (min-width: 820px) { .hubpage .tiles > .tile { --k: var(--k5, 5); } }
@container tiles (min-width: 1100px) { .hubpage .tiles > .tile { --k: var(--k7, 7); } }
.hubpage .tiles > .tile .slot { display: grid; grid-area: slot; }
.hubpage .tiles > .tile .rk { grid-area: rk; align-self: center; justify-self: end; }
.hubpage .tiles > .tile { container-type: normal; }
/* one number size per grid (sized from the grid, not the tile, so a wider tile in a shorter row doesn't shout) */
.hubpage .tiles > .tile .tv { grid-area: tv; align-self: end; font-size: clamp(18px, calc(100cqi / 14.5), 22px); line-height: 1.05; }
@container tiles (min-width: 820px) { .hubpage .tiles > .tile .tv { font-size: 24px; } }
.hubpage .tiles > .tile .tl { grid-area: tl; align-self: start; font-size: 13px; line-height: 1.3; letter-spacing: .04em; text-wrap: balance; }

/* U1 · skills read as two columns once the card is wide enough, so twelve skills no longer make the tallest card on the
   page; the balancer then deals Skills / Advancements / Pets into level columns */
.hubpage article[aria-labelledby="sk-h"] { container: skills / inline-size; }
@container skills (min-width: 400px) { .hubpage .blist { grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .hubpage .blist li { column-gap: 8px; } .hubpage .blist .bv { font-size: 13px; } }
@container skills (min-width: 480px) { .hubpage .blist { column-gap: 28px; } .hubpage .blist li { column-gap: 12px; } .hubpage .blist .bv { font-size: 14px; } }

/* U6 · unlock perks: balanced columns that size to their text (no 5 + 1 orphan, no wrapped "potions stack up to 1 hour
   10 min"); 1 column on phones, 2 from 500 px of card, 3 from 820 px. Tracks are auto, so a tight card wraps, never overflows. */
.hubpage .unlocks { container: unlocks / inline-size; }
.hubpage .unlocks .perks { grid-template-columns: minmax(0, 1fr); justify-content: start; column-gap: 40px; }
@container unlocks (min-width: 500px) { .hubpage .unlocks .perks { grid-template-columns: repeat(var(--pc2, 2), auto); } }
@container unlocks (min-width: 820px) { .hubpage .unlocks .perks { grid-template-columns: repeat(var(--pc3, 3), auto); } }

/* U5 · panel identity: the Discord chip wears the header's gilded monogram (not Discord's pink default tile), and on desktop
   the account controls run as one bar along the foot of the card (no floating Log out over a 250 px hole) */
.hubpage .av-mono { width: var(--av, 40px); height: var(--av, 40px); font-size: calc(var(--av, 40px) * .52); }
.hubpage .duser .av-mono, .hubpage .gate-list .av-mono { box-shadow: 0 0 0 1px #0A0704, 0 0 0 2px #C9973E; }
[data-theme="day"] .hubpage .duser .av-mono, [data-theme="day"] .hubpage .gate-list .av-mono { box-shadow: 0 0 0 1px #4A300A, 0 0 0 2px #B8862F; }
@media (min-width: 1101px) {
  .hubpage .pcard:has(> .pside) { grid-template-columns: auto minmax(0, 1fr); }
  .hubpage .pcard > .pside { grid-column: 1 / -1; flex-direction: row; align-items: flex-end; gap: 12px; min-width: 0;
    padding-top: 20px; box-shadow: inset 0 1px 0 var(--rule); }
  .hubpage .pcard > .pside .duser { flex: 1 1 auto; height: 48px; padding: 4px 10px; }
  .hubpage .pcard > .pside .duser .av-mono { --av: 36px; }
  .hubpage .pcard > .pside .field { flex: 0 1 280px; }
  .hubpage .pcard > .pside > .btn { flex: none; min-width: 160px; }
}

/* U7 · wallet day chart: HTML columns on the gilt plate; in above the line, out below, capped scale with cut marks */
.hubpage .flowc { margin: 4px; outline-offset: 3px; }
.hubpage .flow-plot { --ph: 120px; position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 2px;
  height: calc(var(--ph) + 36px); padding: 18px 4px; border-radius: 1px; background: var(--gilt-track); box-shadow: var(--gilt-rim), inset 0 2px 4px rgb(0 0 0 / .35); }
.hubpage .flow-plot::before { content: ""; position: absolute; left: 4px; right: 4px; top: calc(18px + var(--ph) * var(--zero) / 100%); height: 1px; background: var(--rule-2); }
.hubpage .fd { position: relative; height: var(--ph); cursor: crosshair; }
.hubpage .fd i { position: absolute; left: 0; right: 0; height: calc(var(--ph) * var(--h)); border-radius: 1px; }
.hubpage .fd .in { bottom: calc(var(--ph) * (1 - var(--zero) / 100%)); background: var(--ok); }
.hubpage .fd .out { top: calc(var(--ph) * var(--zero) / 100%); background: var(--err); }
.hubpage .fd i.cut::after { content: ""; position: absolute; left: -1px; right: -1px; height: 7px;
  background: repeating-linear-gradient(-35deg, transparent 0 2px, rgb(255 248 230 / .95) 2px 4px); }
.hubpage .fd .in.cut::after { top: 9px; } .hubpage .fd .out.cut::after { bottom: 9px; }
.hubpage .fd i b { position: absolute; left: 50%; translate: -50% 0; z-index: 1; font: 700 11px/1 var(--f-mono); color: var(--ink); white-space: nowrap; }
.hubpage .fd .in b { bottom: calc(100% + 4px); }
.hubpage .fd .out b { top: calc(100% + 4px); }
.hubpage .fd.on::before { content: ""; position: absolute; inset: -14px -1px; border-radius: 1px; background: color-mix(in srgb, var(--gold-t) 20%, transparent); box-shadow: inset 0 0 0 1px var(--gold-t); }
.hubpage .flowc .spark-x { margin-top: 6px; }
.hubpage .flow-read { min-height: 2.8em; margin: 6px 0 0; padding-top: 6px; box-shadow: inset 0 1px 0 var(--rule); font: 500 13px/1.4 var(--f-mono); color: var(--ink-2); }
.hubpage .flowc:focus-visible { outline: 2px solid var(--focus, var(--gold-ink)); }
.hubpage .chartfig .nil, .hubpage .tx .tm.nil, .hubpage .purse .nil { color: var(--ink-3); }

/* U10 · leaderboard summary figures: the three tiles share their rows (subgrid), so a label that wraps to two lines on a
   phone pushes all three numbers down together and they sit on one baseline */
.hubpage .lbfig { grid-template-rows: auto auto; }
.hubpage .lbfig > div { display: grid; grid-row: span 2; grid-template-rows: subgrid; align-content: start; justify-content: stretch; }
.hubpage .lbfig > div dt { align-self: end; }
.hubpage .lbfig > div dd { align-self: start; }

/* U11 · async hub views never drag the footer through the viewport. With the server-rendered heads
   (api/vrweb/hub_heads.py) the guild page CLS goes 0.41 → 0 (390) and 0.25 → 0.003 (1440). */
/* (the skeleton takes the shape of the view that will replace it, so nothing below jumps; no min-height hole) */
.hubpage[data-page=guild] main:not(:has(.gpage-head)) [data-view] > .skel:not(:first-child),
.hubpage[data-page=player][data-missing] [data-view] > .skel:not(:first-child) { display: none; }
/* the register (and a missing guild): one row of guild cards + the banner call-out, measured 1440 → 320 */
.hubpage[data-page=guild] main:not(:has(.gpage-head)) [data-view] > .skel:first-child { grid-column: 1 / -1; height: 337px; }
/* a missing player: the single not-found panel */
.hubpage[data-page=player][data-missing] [data-view] > .skel:first-child { grid-column: 1 / -1; height: 240px; }
@media (max-width: 1000px) {
  .hubpage[data-page=guild] main:not(:has(.gpage-head)) [data-view] > .skel:first-child { height: 377px; }
  .hubpage[data-page=player][data-missing] [data-view] > .skel:first-child { height: 355px; }
}
@media (max-width: 800px) { .hubpage[data-page=guild] main:not(:has(.gpage-head)) [data-view] > .skel:first-child { height: 600px; } }
/* a found player: the profile is never shorter than ~1.6 viewports (measured 2219 px at 1440, 5084 px at 412), but the
   three-block skeleton is: at 1440x900 it left the footer in view, and the render pushed it out (0.034-0.048 CLS).
   While the skeleton stands, the view reaches the bottom of the viewport, so the footer starts below the fold. */
.hubpage[data-page=player]:not([data-missing]) [data-view]:has(> .skel) { min-height: 100vh; }
@media (max-width: 480px) { .hubpage[data-page=player][data-missing] [data-view] > .skel:first-child { height: 410px; } }
@media (max-width: 359px) { .hubpage[data-page=guild] main:not(:has(.gpage-head)) [data-view] > .skel:first-child { height: 757px; } }

/* A1 · empty-state lines inside cards ("No tickets yet…", "Nothing listed…", "You're not in a guild yet…") use the card
   note size, not 17 px body copy beside 14-15 px notes */
.hubpage .card p.muted:not(.card-foot) { font-size: 15px; line-height: 1.5; }
/* "Show N more" under a bar list starts on the list's left edge (the ghost button's padding hung it 20 px in) */
.hubpage .blist-more > summary { margin-left: -12px; padding-inline: 12px; }

/* loop 3 · phones ≤ 400 px: wallet 30-day totals stack label over value, so "+$447,099.47" never splits at the
   decimal point; vote-site names wrap at their dots/hyphens instead of being clipped with an ellipsis */
@media (max-width: 400px) {
  .hubpage .purse3 div { display: block; }
  .hubpage .purse3 dd { margin-top: 4px; white-space: nowrap; overflow-wrap: normal; }
}
.hubpage .rows .rn.wraps { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
/* vote summary: label and number rows shared (subgrid) so a two-line label never knocks a number off the baseline;
   the streak unit is set small beside its number like the profile's day streak */
.hubpage .votesum { grid-template-rows: auto auto; }
.hubpage .votesum > div { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
.hubpage .votesum dt { align-self: end; }
.hubpage .votesum dd small { font: 600 13px/1 var(--f-mono); color: var(--ink-3); }
/* A4 · the guild leader link keeps its 44 px target but bleeds it into the fact's padding, so its name sits on the same
   line as Members / Founded / Total playtime (it hung 10 px low) */
.hubpage .facts dd.gl { margin-block: -5px -14px; }

/* =====================================================================
   R6 · round-6 audit fixes (HUB6)
   ===================================================================== */
/* UX-01 / UX-19 · a Minecraft name (≤ 16 chars) is never ellipsised on a board, a roster, a profile list or a row:
   it wraps (at its underscores first: hub.js nameHTML adds <wbr>) and the row grows a line. */
.hubpage .lbrows .pname, .hubpage .groster .gr-nm, .hubpage .blist .bn, .hubpage .rows .rn, .hubpage .pod-name {
  min-width: 0; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.hubpage .lbrows .pname { line-height: 1.25; }
/* phones: the board row reads like the guild roster — the name owns the whole first line, value + gauge share the
   second, and the rank/head columns tighten (UX-01: at 320 the old grid left a name 64 px) */
@media (max-width: 480px) {
  .hubpage .lbrows:not(.groster) li > a { grid-template-columns: 34px 32px minmax(0, 1fr) auto; column-gap: 8px; padding-right: 10px; }
  .hubpage .lbrows:not(.groster) .pos { font-size: 17px; }
  .hubpage .lbrows:not(.groster) .head { width: 32px; height: 32px; }
  .hubpage .lbrows:not(.groster) .head img { width: 24px; height: 24px; }
  .hubpage .lbrows:not(.groster) .pname { grid-column: 3 / -1; grid-row: 1; }
  .hubpage .lbrows:not(.groster) .val { grid-column: 4; grid-row: 2; margin-top: 6px; }
  .hubpage .lbrows:not(.groster) .gauge-gilt { grid-column: 3; grid-row: 2; align-self: center; margin: 6px 2px 0; }
}
.hubpage .onlist .on-nm { min-width: 0; overflow-wrap: anywhere; }
/* the favourite heart stays beside a long pet name instead of sitting alone on the line above it */
.hubpage .petrows .rn { display: flex; align-items: center; gap: 6px; }
.hubpage .petrows .rn .pn { min-width: 0; overflow-wrap: anywhere; }
/* UX-11 · the guild roster's Leader seal stays at the site's 12 px floor on phones (was 11 px) */
@media (max-width: 414px) { .hubpage .groster .gr-lead { font-size: 12px; letter-spacing: .08em; } }
/* UX-14 · every Online-now row is a full 44 px target */
.hubpage .onlist a { min-height: 44px; }
/* UX-17 · the hub chapter heads are centred (eyebrow, title, divider), so their one- or two-line lede is too */
.hubpage header.hubhead .sec-lede { text-align: center; margin-inline: auto; }
/* a gilded drop cap on centred text leaves the initial stranded from its word: once chronicle.js sets .cap-drop, set the
   lede ragged-left inside its fit-content box so it still sits optically centred */
.hubpage header.hubhead .sec-lede.cap-drop { text-align: left; }
@media (max-width: 760px) { .hubpage header.hubhead .sec-lede { max-width: 40ch; } }
/* UX-22 · phones: the eight board chips (p11 adds Guilds) sit on an even 4 + 4 grid */
@media (max-width: 760px) {
  .hubpage .lbbar .btabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hubpage .lbbar .btab { grid-column: auto; }
}
/* UX-21 · loading: the first skeleton slab says what is happening (and holds still so the words stay readable) */
.hubpage .skel:has(.skel-msg) { display: grid; place-items: center; animation: none; }
.hubpage .skel-msg { margin: 0; padding: 12px 16px; font: 600 15px/1.4 var(--f-body); letter-spacing: .01em; color: var(--ink-2); text-align: center; }
.hubpage .skel-msg::before { content: "◆ "; content: "◆ " / ""; color: var(--gold-ink); }
/* UX-51 · the half-width cards: one container. Phones/tablets: a plain stack in authored order. Two-column screens: hub.js
   deals each card to a column and pins it on a 2 px row grid (inline grid-column / grid-row), and the DOM follows the
   cards' top edges, so focus order is reading order. */
.hubpage .balgrid { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hubpage .balgrid > * { min-width: 0; }
@media (min-width: 901px) {
  .hubpage .balgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .hubpage .balgrid.is-bal { grid-auto-rows: 2px; row-gap: 0; margin-bottom: -16px; }
  .hubpage .balgrid.is-bal > * { align-self: start; }
}
.hubpage .balgrid > [id^="p-"], .hubpage .hgrid [id^="p-"] { scroll-margin-top: calc(var(--hdr-h) + 84px); }
@media (max-width: 999px) { .hubpage .balgrid > [id^="p-"], .hubpage .hgrid [id^="p-"] { scroll-margin-top: calc(var(--hdr-h) + 72px); } }
/* UX-31 · the rail lists every card in page order; the one-line desktop rail folds side cards into their row's entry */
@media (min-width: 1360px) {
  .hubpage .pj-list a[data-pj-sub] { display: none; }
  .hubpage .pj-list { flex-wrap: nowrap; gap: 0; }
  .hubpage .pj-list a { flex: 1 1 auto; padding: 0 6px; font-size: 12.5px; letter-spacing: .06em; white-space: nowrap; }
  .hubpage .pj-list a[aria-current]::after { left: 6px; right: 6px; }
}
/* 1000-1359: sixteen entries don't fit one line, so the sheet uses the phone's "On this sheet" menu (same rules as ≤ 999) */
@media (min-width: 1000px) and (max-width: 1359px) {
  .hubpage .pjump { padding: 0; }
  .hubpage .pj-toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: 2px;
    background: none; color: var(--ink); font: 700 16px/1.2 var(--f-body); text-align: left; cursor: pointer; }
  .hubpage .pj-k { font: 700 12px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
  .hubpage .pj-toggle b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hubpage .pj-chev { width: 16px; height: 16px; rotate: 90deg; transition: rotate .2s var(--ease, ease); }
  .hubpage .pj-toggle[aria-expanded="true"] .pj-chev { rotate: -90deg; }
  .hubpage .pj-list { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); padding: 6px; flex-direction: column; gap: 2px;
    border-radius: 2px; background: var(--card); box-shadow: 0 0 0 1px var(--inkline), inset 0 0 0 1px var(--rule-2), 0 16px 30px -12px rgb(0 0 0 / .5); }
  .hubpage .pj-toggle[aria-expanded="true"] + .pj-list { display: flex; }
  .hubpage .pj-list a { justify-content: flex-start; font-size: 14px; }
  .hubpage .pj-list a[aria-current]::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
}
/* the open menu lists all twenty cards: two columns where there is room, scrolling inside the viewport if it must */
@media (max-width: 1359px) {
  .hubpage .pj-list { flex-wrap: nowrap; max-height: calc(100svh - var(--hdr-h) - 80px); overflow-y: auto; overscroll-behavior: contain; }
  .hubpage .pj-list a[data-pj-sub] { padding-left: 30px; font-weight: 600; }
}
@media (max-width: 1359px) {
  .hubpage .pj-toggle[aria-expanded="true"] + .pj-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column;
    grid-template-rows: repeat(var(--pj-rows, 10), auto); column-gap: 8px; }
}
@media (max-width: 599px) {
  .hubpage .pj-list a { min-height: 44px; padding-inline: 10px; font-size: 13px; letter-spacing: .06em; }
  .hubpage .pj-list a[data-pj-sub] { padding-left: 22px; }
}
@media (max-width: 359px) {
  .hubpage .pj-list { padding: 4px; }
  .hubpage .pj-toggle[aria-expanded="true"] + .pj-list { column-gap: 2px; }
  .hubpage .pj-list a { padding-inline: 8px; font-size: 12.5px; letter-spacing: .02em; }
  .hubpage .pj-list a[data-pj-sub] { padding-left: 16px; }
}
/* UX-39 · stuck, the rail sits flush under the sticky header (no 8 px slot for the page to scroll through) */
.hubpage .pjump { top: var(--hdr-h); }
/* UX-42 / UX-25 · meta lines: each part stays whole (\"Valkyrie Home\", \"8,085 kills\") and carries its own leading dot; the
   line is pulled 1.1em left and that strip is clipped, so the dot that would start a wrapped line is never seen. */
.hubpage .dots { display: flex; flex-wrap: wrap; margin-left: -1.1em; clip-path: inset(-4px -4px -4px 1.1em); }
.hubpage .dots > span { white-space: nowrap; }
.hubpage .dots > span::before { content: "·"; content: "·" / ""; display: inline-block; width: 1.1em; text-align: center; }
/* UX-43 · hearts run in rows of ten, like the game's HUD (15 hearts: 10 + 5, never 13 + an orphaned 2) */
.hubpage .hearts-row.two { display: grid; grid-template-columns: repeat(10, 22px); gap: 2px; }
@media (max-width: 359px) { .hubpage .hearts-row.two { grid-template-columns: repeat(10, 20px); } .hubpage .hearts-row.two svg { width: 20px; height: 20px; } }
.hubpage .dots > .w, .hubpage .dots > span:has(> .w) { white-space: normal; min-width: 0; }
.hubpage .card-h h2 .dots { display: inline-flex; min-width: 0; }
/* a labelled line (\"House plans: Spruce Cabin ×13 · …\"): no dot straight after the label (the slot keeps its width, so a
   wrapped first item still clears the clipped strip) */
.hubpage .card-foot .dots > span:nth-child(2)::before { content: ""; }
/* UX-24 · small-caps chips keep a duration as written (\"3d 7h\", not \"3D 7H\") */
/* (the chip face, Cinzel, has no lower case at all, so the duration switches to the mono face the timers use elsewhere) */
.hubpage .tally .dur, .hubpage .chip .dur { font: 600 .95em/1 var(--f-mono); text-transform: none; font-variant: normal; letter-spacing: 0; color: var(--ink); }
/* UX-23 · stat numbers: full digits, the compact form only on ≤ 414 px screens (the full one stays for screen readers) */
.hubpage .n-cmp { display: none; }
@media (max-width: 414px) {
  .hubpage .n-cmp { display: inline; }
  .hubpage .n-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* UX-30 · the chosen tab keeps its gilt when the pointer rests on it (night hover rule out-ranked it: dark label on dark) */
.btab[aria-selected="true"]:hover, [data-theme="night"] .btab[aria-selected="true"]:hover { color: #2A1806; background: var(--leaf); }
/* UX-38 · one bordered fold for the three stat lists */
.hubpage .st-fold { margin-top: 14px; }
.hubpage .st-fold[aria-expanded="true"] svg.ui { rotate: -90deg; }
/* UX-50 · the notification ledger fades and says so only while there is more below */
.hubpage .nt-cue { display: none; }
@media (min-width: 1000px) {
  .hubpage .nt-scroll:not([data-more]) { -webkit-mask-image: none; mask-image: none; }
  .hubpage .nt-scroll[data-more] + .nt-cue { display: flex; align-items: center; gap: 6px; margin: 4px 0 10px; font: 600 13px/1.2 var(--f-body); color: var(--ink-3); }
  .hubpage .nt-cue .ui { width: 14px; height: 14px; rotate: 90deg; }
}
/* UX-32 · field errors live at the field: red edge + message straight under it */
.hubpage .input[aria-invalid="true"], .hubpage .select[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
.hubpage .ferr { display: flex; align-items: flex-start; gap: 6px; margin: 0; font: 600 14px/1.35 var(--f-body); color: var(--err); }
.hubpage .ferr svg.ui { flex: none; width: 14px; height: 14px; margin-top: 2px; }

/* ---------- /download/ (pages/download.html): the official client. Reuses .panel/.card, .craft steps, .jx panels,
   .chips, .g-q questions and a .pl-card plate; only the layout glue lives here. ---------- */
.dl { padding-bottom: clamp(16px, 2vw, 28px); } /* + the footer's own 56px = the ~75-100px the other hub pages end on; 48-88px here left a void (2026-11-23) */
.dl-top { align-items: center; }
.dl-get { padding: clamp(22px, 3vw, 34px); }
.dl-get-h, .dl-card-h, .dl .step .h3, .dl .jx .h3, .dl-help .h3 { font: 700 21px/1.2 var(--f-display); letter-spacing: .03em; color: var(--ink); }
.dl-get-h { font-size: clamp(24px, 2.4vw, 30px); }
.dl-facts { margin-top: 8px; font: 600 16px/1.4 var(--f-body); color: var(--ink-2); text-wrap: balance; }
.dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.dl-ext { font: 700 .86em/1 var(--f-mono); opacity: .85; white-space: nowrap; }
.dl-actions .btn { white-space: normal; text-align: center; }
.dl-notes { display: grid; gap: 8px; margin-top: 20px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.dl-notes li, .dl-list li { position: relative; padding-left: 18px; }
.dl-notes li::before, .dl-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gem-t); box-shadow: 0 0 0 1px var(--inkline); }
.dl-plate { height: auto; }
.dl-sec { margin-top: clamp(48px, 6vw, 84px); }
.dl-h2 { text-align: center; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; color: var(--ink); text-wrap: balance; margin-bottom: clamp(22px, 2.8vw, 34px); }
.dl-h2::after { content: ""; display: block; width: min(320px, 70%); aspect-ratio: 900 / 121; margin: 12px auto 0; background: var(--divider) center / contain no-repeat; opacity: var(--divider-o); }
.dl-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dl-link { margin: 0; }
.dl-link code { font-size: 14px; }
.dl .join-extra { margin-top: 32px; }
.dl-voice h3 .px { width: 26px; height: 26px; }
.dl-inside { align-items: stretch; }
.dl-inside .card > p { margin-top: 8px; color: var(--ink-2); line-height: 1.55; }
.dl-inside .card > p strong, .dl-notes strong { color: var(--ink); }
.dl-list { display: grid; gap: 4px; margin-top: 10px; color: var(--ink-2); }
.dl-chips { margin-top: 14px; }
.dl-chips .chip { white-space: normal; line-height: 1.25; }
.dl-faq { margin-inline: auto; }
/* "See it before you play": the living-menu film (rendered from the client's own menu shader) + four in-game captures.
   Captures and film wear the gilded render frame, never the engraved-plate legend kind "illustration". */
.dl-film { max-width: 1100px; margin: 0 auto; }
.dl-frame { position: relative; aspect-ratio: 16 / 9; background: #0C0A1E; box-shadow: 0 0 0 1px #2B2118, 0 0 0 4px #C9973E, 0 0 0 5px #2B2118, var(--drop); border-radius: 1px; }
.dl-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.dl-film-cap { margin-top: 16px; }
.dl-film .pl-cap.pl-legend { display: flex; flex-wrap: nowrap; align-items: flex-start; justify-content: space-between; gap: 10px 20px; padding-inline: 4px; }
.dl-film .pl-legend .pl-no { display: block; margin-bottom: 4px; }
.dl-film .pl-legend .pl-kind { white-space: normal; } /* the long kind line must wrap on phones (nowrap widened 390 by 48px) */
.dl-film .pl-legend .pl-t { min-width: 0; }
.dl-play { flex: none; gap: 8px; }
.dl-play svg.ui { width: 16px; height: 16px; }
.dl-play .dl-i-play, .dl-play[data-paused="true"] .dl-i-pause { display: none; }
.dl-play[data-paused="true"] .dl-i-play { display: inline; }
.dl-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; max-width: 1100px; margin: 36px auto 0; padding: 0; list-style: none; }
.dl-shot { margin: 0; }
.dl-shot-a { position: relative; display: block; aspect-ratio: 16 / 9; color: #EEE2C6; box-shadow: 0 0 0 1px #2B2118, 0 0 0 4px #C9973E, 0 0 0 5px #2B2118, var(--drop); border-radius: 1px; background: #0C0A1E; }
.dl-shot-a img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dl-zoom { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 34px; height: 34px; background: rgb(24 19 13 / .82); box-shadow: inset 0 0 0 1px rgb(215 160 64 / .7); opacity: .9; transition: opacity var(--dur-2) linear, background-color var(--dur-2) linear; }
.dl-zoom svg.ui { width: 16px; height: 16px; }
.dl-shot-a:hover .dl-zoom, .dl-shot-a:focus-visible .dl-zoom { opacity: 1; background: rgb(58 46 30 / .95); }
.dl-shot-a:focus-visible { outline: 3px solid var(--focus, #2EE6D6); outline-offset: 7px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .dl-shot-a { transition: transform var(--dur-2) var(--ease); }
  .dl-shot-a:hover { transform: translateY(-3px); }
}
.dl-shot-cap { margin-top: 14px; padding-inline: 2px; line-height: 1.4; }
.dl-shot-t { display: block; font: 700 17px/1.25 var(--f-display); letter-spacing: .04em; color: var(--ink); }
.dl-shot-s { display: block; margin-top: 3px; font: 500 15px/1.4 var(--f-body); color: var(--ink-2); }
html.lb-lock { overflow: hidden; }
.dl-see-note { margin: 22px auto 0; max-width: 1100px; text-align: center; font: italic 400 15px/1.5 var(--f-body); color: var(--ink-3); }
@media (max-width: 1100px) { .dl-shots { gap: 28px 24px; } }
@media (max-width: 640px) {
  .dl-shots { grid-template-columns: minmax(0, 1fr); }
  .dl-film .pl-cap.pl-legend { flex-wrap: wrap; }
}
.dl-help { max-width: 900px; margin: 24px auto 0; }
@media (max-width: 1100px) and (min-width: 901px) {
  .dl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-steps > li:nth-child(2) .craft-arrow { display: none; }
}
@media (max-width: 900px) { .dl-steps { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .dl-actions .btn, .dl-help .btn { width: 100%; }
  .dl-actions .btn-lg { padding-inline: 12px; gap: 8px; font-size: 16px; }
}

/* =====================================================================================================================
   p11 HUB · C2 Leaderboards v2: records strip, period notes, a podium on every board, the Guilds board, "you" rows
   ===================================================================================================================== */
/* "Records of the realm": three engraved plaques, each a fact the tracked hours prove */
.hubpage .lbrec { display: grid; gap: 12px; margin: 0 0 22px; }
.hubpage .lbrec-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 18px; }
.hubpage .lbrec-h h2 { margin: 0; font: 700 clamp(19px, 1.8vw, 22px)/1.2 var(--f-display); letter-spacing: .06em; color: var(--ink); }
.hubpage .lbrec-h p { margin: 0; font-size: 14px; color: var(--ink-3); }
.hubpage .lbrec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.hubpage .lbrec-c { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ic l" "ic v" "who who" "when when";
  column-gap: 12px; row-gap: 2px; align-items: center; padding: 18px 20px 16px; min-width: 0; }
.hubpage .lbrec-ic { grid-area: ic; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; align-self: center;
  background: radial-gradient(circle at 35% 30%, #FCEAB0, #E4B354 45%, #AC7422 85%); box-shadow: 0 0 0 1px var(--inkline), inset 0 0 0 3px rgb(255 246 214 / .35); }
.hubpage .lbrec-ic svg.px { width: 26px; height: 26px; }
.hubpage .lbrec-l { grid-area: l; font: 700 13px/1.25 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--label, var(--ink-3)); }
.hubpage .lbrec-v { grid-area: v; font-size: 15px; color: var(--ink-2); }
.hubpage .lbrec-v b { font: 800 28px/1.1 var(--f-num); color: var(--ink); margin-right: 2px; }
.hubpage .lbrec-who { grid-area: who; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; padding-top: 8px;
  border-top: 1px solid var(--rule); font-weight: 700; color: var(--link); text-decoration: none; min-width: 0; }
.hubpage .lbrec-who span { overflow-wrap: anywhere; }
.hubpage .lbrec-who:hover span { text-decoration: underline; }
.hubpage .lbrec-who img { width: 24px; height: 24px; image-rendering: pixelated; box-shadow: 0 0 0 1px var(--inkline); flex: none; }
.hubpage .lbrec-when { grid-area: when; font: 500 13px/1.3 var(--f-mono); color: var(--ink-3); }
/* one line under the bar that says what the window is (or why a board has none) */
.hubpage .lbnote { display: flex; align-items: flex-start; gap: 10px; margin: -4px 0 18px; padding: 10px 14px; font-size: 15px; line-height: 1.45; color: var(--ink-2);
  border-left: 3px solid var(--gold-t); background: color-mix(in srgb, var(--ink) 4%, transparent); }
.hubpage .lbnote svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.hubpage .lbnote svg.px { width: 22px; height: 22px; margin-top: 0; }
.lbbar .seg button:disabled { opacity: .45; cursor: not-allowed; }
/* a place nobody holds yet still stands on the podium, unclaimed */
.hubpage .pod.is-open { color: var(--ink-3); }
.hubpage .pod-empty { display: grid; place-items: center; width: 72px; height: 72px; border: 2px dashed var(--rule-2); border-radius: 2px; color: var(--ink-3); }
.hubpage .pod.p1 .pod-empty { width: 96px; height: 96px; }
.hubpage .pod-empty svg.ui { width: 28px; height: 28px; opacity: .7; }
.hubpage .pod.is-open .pod-name { font-weight: 600; }
.hubpage .pod.is-open .pod-val { font-family: var(--f-body); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.hubpage .pod.is-open .pod-step { filter: saturate(.35) brightness(1.04); opacity: .8; }
.hubpage .pod-val small { display: block; margin-top: 4px; font: 500 13px/1 var(--f-body); color: var(--ink-3); }
/* the Guilds board: arms on the podium and in the rows */
.hubpage .podium.is-guild .harms { width: 64px; }
.hubpage .podium.is-guild .pod.p1 .harms { width: 80px; }
.hubpage .lbrows.is-guild .head { display: grid; place-items: center; }
.hubpage .lbrows.is-guild .harms-mark { width: 26px; height: auto; }
.hubpage .lbrows .gt { font: 700 13px/1 var(--f-mono); color: var(--ink-3); white-space: nowrap; }
.hubpage .lbrows .pmeta { display: inline-block; margin-left: 10px; font: 500 13px/1 var(--f-body); color: var(--ink-3); }
/* rows after the podium: a deliberate ledger (engraved numerals, ruled lines), and a gap before a far-down "you" row */
.hubpage .lbrows:not(.groster) { gap: 0; border-top: 1px solid var(--rule); }
.hubpage .lbrows:not(.groster) > li { border-bottom: 1px solid var(--rule); }
.hubpage .lbrows:not(.groster) > li > a { padding-block: 10px; }
.hubpage .lbrows:not(.groster) .pos { font-size: 18px; color: var(--gold-ink); }
.hubpage .lbrows:not(.groster) .pos::after { content: "."; content: "." / ""; opacity: .55; }
.hubpage .lbrows li.lbgap { display: flex; justify-content: center; padding: 2px 0; border-bottom: 1px solid var(--rule); color: var(--ink-3); font: 700 18px/1 var(--f-body); letter-spacing: .3em; }
.hubpage .lbyou.is-off .lbyou-in { background: linear-gradient(180deg, #F3E6C8 0%, #E4D3A8 100%); }
/* "Find a player" typeahead: a listbox under the field; the active option is gilt-ruled, the match is marked */
.hubpage .sresults[role="listbox"] { max-height: 340px; overflow: auto; padding: 4px;
  box-shadow: inset 0 0 0 1px var(--rule-2); border-radius: 2px; }
.hubpage .sresults [role="option"] { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; cursor: pointer;
  font-weight: 700; color: var(--ink); border-radius: 2px; overflow-wrap: anywhere; }
.hubpage .sresults [role="option"]:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.hubpage .sresults [role="option"][aria-selected="true"] { background: color-mix(in srgb, var(--gold-t) 22%, transparent); box-shadow: inset 3px 0 0 var(--gold-t); }
.hubpage .sresults [role="option"] mark { background: none; color: inherit; text-decoration: underline; text-decoration-color: var(--gold-t); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hubpage .sresults .sr-none { cursor: default; font-weight: 500; color: var(--ink-3); }
.hubpage .sresults img { flex: none; }
.hubpage .lbbar .btab svg.ui { width: 26px; height: 26px; }
@media (min-width: 761px) and (max-width: 1099px) { .hubpage .lbbar .btab svg.ui { width: 24px; height: 24px; } }
@media (max-width: 640px) {
  .hubpage .lbrec-list { gap: 10px; }
  .hubpage .lbrec-c { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ic l l" "ic v when" "ic who who"; column-gap: 12px; padding: 14px 16px 10px; }
  .hubpage .lbrec-ic { width: 40px; height: 40px; align-self: start; margin-top: 2px; }
  .hubpage .lbrec-v b { font-size: 24px; }
  .hubpage .lbrec-who { margin-top: 2px; padding-top: 0; border-top: 0; }
  .hubpage .lbrec-when { justify-self: end; align-self: center; text-align: right; }
}

/* =====================================================================================================================
   p11 HUB · C5 the player profile on phones: section bar, phone folds, the breakdown switch, the Guild card
   ===================================================================================================================== */
/* every section the bar can jump to clears the sticky header + the bar */
.hubpage .balgrid [id^="p-"], .hubpage [data-view] > [id^="p-"] { scroll-margin-top: calc(var(--hdr-h) + 72px); }
/* the profile's bar has at most six entries: one line everywhere (phones scroll it sideways), never the "On this sheet" menu */
.hubpage .pjump.is-prof .pj-toggle { display: none; }
.hubpage .pjump.is-prof .pj-list { position: static; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 2px; padding: 0; background: none; box-shadow: none;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-padding-inline: 24px; }
.hubpage .pjump.is-prof .pj-list::-webkit-scrollbar { display: none; }
.hubpage .pjump.is-prof .pj-list a { flex: 1 0 auto; justify-content: center; }
.hubpage .pjump.is-prof .pj-list a[aria-current]::after { left: 12px; right: 12px; top: auto; bottom: 6px; width: auto; height: 3px; }
@media (max-width: 999px) {
  .hubpage .pjump.is-prof { padding: 4px; }
  .hubpage .pjump.is-prof .pj-list a { padding: 0 12px; font-size: 12.5px; letter-spacing: .08em; }
}
/* phone folds (hub.js mf / mfoldBtn): the button only exists for phones */
.hubpage .mfold { display: none; }
@media (max-width: 640px) {
  .hubpage :not(.is-unfolded) > [data-mfold] { display: none; }
  .hubpage .mfold { display: flex; width: 100%; justify-content: center; gap: 10px; min-height: 44px; margin-top: 10px; }
  .hubpage .mfold svg.ui { width: 16px; height: 16px; rotate: 90deg; transition: rotate .2s var(--ease, ease); }
  .hubpage .mfold[aria-expanded="true"] svg.ui { rotate: -90deg; }
  .hubpage .unlocks .mfold { margin-top: 6px; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) { .hubpage .mfold svg.ui { transition: none; } }
/* the three breakdowns share one place on phones, picked with a switch */
.hubpage .split-seg { display: none; }
@media (max-width: 640px) {
  .hubpage .split-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 18px 0 0; }
  .hubpage .split-seg button { justify-content: center; }
  .hubpage .split-seg + .splits { margin-top: 12px; }
  .hubpage .split-seg + .splits > .split:not([data-on]) { display: none; }
  .hubpage .splits > .split h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* the Guild card on a profile */
.hubpage .pguild .pg-b { display: flex; gap: 18px; align-items: flex-start; }
.hubpage .pguild .harms { width: 84px; }
.hubpage .pguild .pg-t { min-width: 0; display: grid; gap: 6px; padding-top: 4px; }
.hubpage .pguild .pg-n { margin: 0; font: 700 clamp(19px, 2vw, 22px)/1.2 var(--f-display); letter-spacing: .03em; overflow-wrap: anywhere; }
.hubpage .pguild .pg-n a { color: var(--ink); text-decoration: none; }
.hubpage .pguild .pg-n a:hover { text-decoration: underline; }
.hubpage .pguild .gt { font: 700 14px/1 var(--f-mono); color: var(--ink-3); }
.hubpage .pguild .pg-r { margin: 0; display: flex; align-items: center; font: 700 13px/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.hubpage .pguild .pg-d { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hubpage .pguild .gcard-go { margin: 16px 0 0; }
@media (max-width: 640px) { .hubpage .pguild .harms { width: 64px; } .hubpage .pguild .pg-b { gap: 14px; } .hubpage .pguild .gcard-go .btn { width: 100%; justify-content: center; } }
@media (max-width: 640px) {
  /* compact stat tiles: a 32 px socket row instead of 40, so four rows of tiles fit where three did */
  .hubpage .tiles > .tile { grid-template-rows: 32px auto auto; row-gap: 6px; padding: 12px; }
  .hubpage .tiles > .tile .slot { width: 32px; height: 32px; }
  .hubpage .tiles > .tile .slot svg.px { width: 24px; height: 24px; }
  .hubpage .tiles > .tile .rk { min-width: 30px; height: 30px; }
}
/* the profile bar scrolls sideways on phones: fade the edge that has more entries (hub.js sets --fade-l / --fade-r) */
.hubpage .pjump.is-prof .pj-list { --fade-l: 0px; --fade-r: 0px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%); }
.hubpage .st-none { margin: 18px 0 0; }
.hubpage .pguild .pg-n a { display: inline-block; padding-block: 10px; margin-block: -10px; }

/* critique (p11): /leaderboards/ DOM order is stats, records, Find a player, board, rail, so phones (one column) get the
   search right above the board instead of ~2,300 px below it, and focus order follows reading order. From 1101 px the
   search sits at the top of the right rail beside the board (rows: stats, records, find | board, rail | board). Row 4
   is 1fr so the board's extra height lands under the rail, never between the search and the rail. */
@media (min-width: 1101px) {
  .hgrid.lbgrid { grid-template-rows: auto auto auto 1fr; }
  .hgrid.lbgrid > .lbtop { grid-row: 1; }
  .hgrid.lbgrid > .lbrec { grid-row: 2; }
  .hgrid.lbgrid > .lbboard { grid-column: 1 / span 8; grid-row: 3 / span 2; }
  .hgrid.lbgrid > .lbfind { grid-column: 9 / span 4; grid-row: 3; }
  .hgrid.lbgrid > .lbside { grid-column: 9 / span 4; grid-row: 4; }
}
@media (max-width: 360px) {
  /* 320-360: a record's value and its date can't share a line ("44.0 h" + "Nov 9 - Nov 15, 2026"): the date drops under it */
  .hubpage .lbrec-c { grid-template-areas: "ic l l" "ic v v" "ic when when" "ic who who"; }
  .hubpage .lbrec-v { white-space: nowrap; }
  .hubpage .lbrec-when { justify-self: start; text-align: left; margin-top: 2px; }
  /* the period switch stays one line per button */
  .lbbar .seg button { padding: 0 4px; font-size: 13px; letter-spacing: 0; white-space: nowrap; }
}

/* =====================================================================================================================
   p11 r2 HUB · C-SPOT "Adventurer of the week": the gilded plaque over the leaderboard, the ribbon on the identity card
   ===================================================================================================================== */
.hubpage .lbspot { margin: 0 0 20px; }
.hubpage .lbspot-in { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 4px 20px;
  min-height: 96px; padding: 12px 18px 12px 12px; color: var(--ink); text-decoration: none; border: 2px solid transparent; border-radius: 3px;
  background: linear-gradient(180deg, var(--card-hi), var(--card)) padding-box, var(--leaf-x) border-box;
  box-shadow: 0 0 0 1px var(--inkline), 0 12px 20px -16px rgb(0 0 0 / .6); }
/* a fine engraved rule inside the gilt, as on the plates' frames */
.hubpage .lbspot-in::after { content: ""; position: absolute; inset: 5px; border: 1px solid var(--rule-2); border-radius: 1px; pointer-events: none; }
.hubpage .lbspot-in:hover { text-decoration: none; }
.hubpage .lbspot-in:hover .lbspot-n { text-decoration: underline; text-decoration-color: var(--gold-t); text-underline-offset: 4px; }
/* the head sits in a gilt medallion */
.hubpage .lbspot-seal { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FCEAB0, #E4B354 45%, #AC7422 85%); box-shadow: 0 0 0 1px var(--inkline), inset 0 0 0 3px rgb(255 246 214 / .4); }
.hubpage .lbspot-seal img { width: 48px; height: 48px; image-rendering: pixelated; box-shadow: 0 0 0 1px var(--inkline), 0 0 0 2px rgb(255 246 214 / .55); }
.hubpage .lbspot-b { display: grid; gap: 4px; min-width: 0; }
.hubpage .lbspot-k { font: 700 13px/1.2 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
/* a Minecraft name is case-sensitive: body face, never the caps-only display face */
.hubpage .lbspot-n { font: 800 clamp(21px, 2vw, 26px)/1.15 var(--f-body); color: var(--ink); overflow-wrap: anywhere; }
.hubpage .lbspot-s { font-size: 15px; line-height: 1.3; color: var(--ink-2); }
.hubpage .lbspot-g { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.hubpage .lbspot-g .harms-mark { width: 22px; height: auto; flex: none; }
/* the week's hours: an engraved figure on the right, read before the sentence around it */
.hubpage .lbspot-v { display: grid; justify-items: end; gap: 4px; padding-left: 20px; border-left: 1px solid var(--rule-2); }
.hubpage .lbspot-v b { font: 800 clamp(30px, 2.8vw, 38px)/1 var(--f-num); color: var(--ink); letter-spacing: -.01em; }
.hubpage .lbspot-v span { font: 700 12px/1.2 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.hubpage .lbspot-go { display: grid; place-items: center; color: var(--gold-ink); }
.hubpage .lbspot-go svg { width: 22px; height: 22px; }
.hubpage .lbspot-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 14px; margin: 4px 2px 0;
  font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.hubpage .lbspot-race { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer;
  font: 700 14px/1 var(--f-body); color: var(--link); }
.hubpage .lbspot-race:hover { text-decoration: underline; }
.hubpage .lbspot-race svg { width: 16px; height: 16px; }
@media (max-width: 560px) {
  /* phones: the seal beside a stack of title, name and the week's figure; the plain sentence is left to the line below */
  .hubpage .lbspot-in { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 2px 12px; padding: 10px 12px 12px 10px; }
  .hubpage .lbspot-seal { grid-row: span 2; width: 58px; height: 58px; }
  .hubpage .lbspot-seal img { width: 40px; height: 40px; }
  .hubpage .lbspot-k { font-size: 12px; letter-spacing: .08em; }
  .hubpage .lbspot-n { font-size: 20px; overflow-wrap: normal; word-break: normal; min-width: 0; }
  .hubpage .lbspot-s { font-size: 14px; }
  .hubpage .lbspot-s.is-plain { display: none; }
  .hubpage .lbspot-v { grid-column: 2; display: flex; align-items: baseline; justify-content: start; gap: 6px; padding: 4px 0 0; border: 0; }
  .hubpage .lbspot-v b { font-size: 24px; }
  .hubpage .lbspot-v span { font-size: 12px; letter-spacing: .08em; }
  .hubpage .lbspot-go { display: none; }
  .hubpage .lbspot-f { margin-top: 2px; }
}
/* the profile ribbon: the leaderboard's notched gilt ribbon, small, first in the chip row */
.hubpage .chips .aotw { flex-basis: 100%; display: flex; align-items: center; min-height: 44px; text-decoration: none; filter: drop-shadow(0 0 .5px #2B2118) drop-shadow(0 0 .5px #2B2118); }
.hubpage .aotw-in { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 28px; font: 700 13px/1.2 var(--f-display);
  letter-spacing: .1em; text-transform: uppercase; color: #2A1806; background: linear-gradient(180deg, #FAE6A6 0%, #E4B358 52%, #C18A33 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%, 12px 50%); }
.hubpage .aotw-in b { font: 800 15px/1 var(--f-num); letter-spacing: 0; text-transform: none; white-space: nowrap; }
.hubpage .aotw-in svg.px { width: 20px; height: 20px; flex: none; }
.hubpage .aotw:hover .aotw-in > span { text-decoration: underline; }
@media (max-width: 400px) { .hubpage .aotw-in { padding-inline: 20px; letter-spacing: .06em; font-size: 12px; gap: 6px; } }
@media (max-width: 360px) { .hubpage .lbspot-k { letter-spacing: .04em; } }

/* =====================================================================================================================
   p11 r2 HUB #2 · /panel/ on phones: the profile's sticky section rail, and the sheet's reference cards folded shut
   ===================================================================================================================== */
/* ≤ 999: the panel's bar is the profile's one-line rail (scrolls sideways, current entry kept in view, edges fade),
   never the "On this sheet" menu; every card stacks here, so side cards are entries of their own */
@media (max-width: 999px) {
  .hubpage .pjump { padding: 4px; }
  .hubpage .pjump .pj-toggle { display: none; }
  .hubpage .pjump .pj-list, .hubpage .pjump .pj-toggle[aria-expanded="true"] + .pj-list { position: static; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 2px;
    max-height: none; padding: 0; background: none; box-shadow: none; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    scrollbar-width: none; scroll-padding-inline: 24px; --fade-l: 0px; --fade-r: 0px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%); }
  .hubpage .pjump .pj-list::-webkit-scrollbar { display: none; }
  .hubpage .pjump .pj-list a, .hubpage .pjump .pj-list a[data-pj-sub] { flex: 1 0 auto; justify-content: center; padding: 0 12px; font-size: 12.5px; font-weight: 700;
    letter-spacing: .08em; white-space: nowrap; }
  .hubpage .pjump .pj-list a[aria-current]::after { left: 12px; right: 12px; top: auto; bottom: 6px; width: auto; height: 3px; }
}

/* the folded card: the header row is the button (the stretched hit area covers the whole row, chip and chevron included) */
.hubpage .sf-chev { display: none; }
@media (max-width: 640px) {
  .hubpage .card.sf > .card-h { position: relative; flex-wrap: nowrap; }
  .hubpage .card.sf > .card-h h2 { flex: 1 1 auto; min-width: 0; }
  .hubpage .sf-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; margin: -6px 0; padding: 0; border: 0; background: none;
    font: inherit; letter-spacing: inherit; color: inherit; text-align: left; cursor: pointer; }
  .hubpage .sf-btn::after { content: ""; position: absolute; inset: -10px -12px; z-index: 1; }
  .hubpage .sf-btn:focus-visible { outline: none; }
  .hubpage .card.sf > .card-h:has(.sf-btn:focus-visible) { outline: 3px solid var(--focus); outline-offset: 6px; border-radius: 2px; }
  .hubpage .card.sf > .card-h > :not(h2) { flex: none; }
  .hubpage .sf-chev { display: grid; place-items: center; width: 24px; height: 24px; color: var(--ink-3); }
  .hubpage .sf-chev svg { width: 16px; height: 16px; rotate: -90deg; transition: rotate .2s var(--ease, ease); }
  .hubpage .card.sf-shut .sf-chev svg { rotate: 90deg; }
  .hubpage .card.sf:hover > .card-h .sf-chev { color: var(--ink); }
  .hubpage .card.sf-shut { padding-block: 16px; }
  .hubpage .card.sf-shut > .card-h { margin-bottom: 0; }
  .hubpage .card.sf-shut > :not(.card-h) { display: none !important; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) { .hubpage .sf-chev svg { transition: none; } }
/* a folded card's header says what is inside (shown only while it is shut) */
.hubpage .sf-sum { display: none; }
@media (max-width: 640px) {
  .hubpage .card.sf-shut .sf-sum { display: inline-flex; }
  /* Votes: the button stays beside its site (the trophy is decoration; the card's title says what these are) */
  .hubpage #p-votes .rows li { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 8px 8px 12px; }
  .hubpage #p-votes .rows .slot { display: none; }
  .hubpage #p-votes .rows .rn, .hubpage #p-votes .rows .rd { grid-column: 1; }
  .hubpage #p-votes .rows .ra { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  /* Notifications: the latest three, then "Show 5 more"; the paged "Show 8 more" waits until those are open */
  .hubpage [data-v2="notifications"] .nt-scroll:not(:has(.is-unfolded)) ~ [data-ntmore] { display: none; }
  .hubpage .wnotes { margin-top: 4px; }
}
/* the wallet chart's hint matches the device: touch screens tap a day (the keyboard hint stays for pointers) */
.hubpage .fr-tap { display: none; }
@media (hover: none) and (pointer: coarse) { .hubpage .fr-ptr { display: none; } .hubpage .fr-tap { display: inline; } }
@media (max-width: 640px) {
  /* Earned / Spent / Net: one ledger box of three lines instead of three stacked boxes (wraps by itself when narrow) */
  .hubpage .purse3 { gap: 0; padding: 4px 14px; background: var(--ghost-h); box-shadow: inset 0 0 0 2px var(--rule); }
  .hubpage .purse3 div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; padding: 10px 0; background: none; box-shadow: none; }
  .hubpage .purse3 div + div { box-shadow: inset 0 1px 0 var(--rule); }
  .hubpage .purse3 dd { margin-top: 0; font-size: 20px; }
  /* the account row: Public profile and Log out share a line */
  .hubpage .pcard > .pside { flex-direction: row; flex-wrap: wrap; }
  .hubpage .pcard > .pside > .duser, .hubpage .pcard > .pside > .field { flex: 1 1 100%; }
  .hubpage .pcard > .pside > .btn { flex: 1 1 0; min-width: 0; padding-inline: 12px; }
}
@media (max-width: 640px) {
  /* Stats: each breakdown shows its top four on a phone; the one "Show the full lists" button opens the rest (when a list
     has no button, i.e. six rows or fewer, every row shows) */
  .hubpage #stp-survival:has([data-sfold-more][aria-expanded="false"]) .blist > li:nth-child(n+5) { display: none; }
  /* the map plate's call to action sits tighter on a phone */
  .hubpage .mp-body { gap: 8px; padding: 14px 16px; }
  .hubpage .mapposter .pin { width: 32px; height: 32px; }
}
@media (max-width: 640px) {
  /* a folded header never breaks its title: when the summary doesn't fit beside it, the summary takes a second line
     (right-aligned, like every value on the sheet) and the chevron stays pinned on the right */
  .hubpage .card.sf > .card-h { flex-wrap: wrap; row-gap: 6px; padding-right: 34px; }
  .hubpage .card.sf > .card-h h2 { flex: 0 1 auto; white-space: nowrap; }
  .hubpage .card.sf > .card-h > :not(h2):not(.sf-chev) { margin-left: auto; }
  .hubpage .card.sf > .card-h > .sf-chev { position: absolute; right: 0; top: 50%; translate: 0 -50%; }
}
/* the engraved plate is a poster until the live map is asked for: square on a phone (the call to action fits with room to
   spare from 360 px), and the tall 4:5 frame the live map needs once it loads */
@media (min-width: 360px) and (max-width: 520px) {
  .hubpage .mapbox:not(:has(iframe)) { aspect-ratio: 1 / 1; }
}
@media (max-width: 640px) {
  /* folded headers: a touch tighter, so most summaries sit beside their title */
  .hubpage .card.sf > .card-h { padding-right: 28px; column-gap: 10px; row-gap: 2px; }
  .hubpage .card.sf > .card-h h2 { font-size: 16px; letter-spacing: .03em; gap: 8px; }
  .hubpage .card.sf > .card-h .sf-sum, .hubpage .card.sf > .card-h .tally { letter-spacing: .05em; }
}
/* p11 r2 HUB #3 · mobile LCP: the panels' filigree corners (4 x ~10 KB, style.css --c-*) join the head ornaments' hold.
   Lighthouse bills every byte that lands before the LCP, and on /player/<name> all four corners landed first. They are
   now fetched once the main panel has painted (hub.js sets body[data-orn] on that LCP entry, else 800 ms after the first
   panel). Only on the pages hub.js draws (static pages such as /download/ keep their corners from the first paint), and
   scoped to the pseudo-elements that draw them, so lifting the hold restyles nothing else. */
.js .hubpage:is([data-page="leaderboards"], [data-page="player"], [data-page="guild"], [data-page="panel"]):not([data-orn]) .panel::before,
.js .hubpage:is([data-page="leaderboards"], [data-page="player"], [data-page="guild"], [data-page="panel"]):not([data-orn])::after { --c-tl: none; --c-tr: none; --c-bl: none; --c-br: none; }

/* =====================================================================================================================
   p11 r2 HUB #4 · the guild page: Guild hall, small-guild roster cards, the guild's Chronicle
   ===================================================================================================================== */
/* desktop: the hall spans the charter, then the roster and the Chronicle side by side (the roster keeps the centred
   column when there is no Chronicle) */
@media (min-width: 1100px) {
  .hubpage .hgrid.has-chron > .gfacts, .hubpage .hgrid.has-chron > .gback { grid-column: 2 / span 10; }
  .hubpage .hgrid.has-chron > .groster-card { grid-column: 2 / span 6; }
  .hubpage .hgrid.has-chron > .gchron-card { grid-column: 8 / span 4; }
  .hubpage .ghall .facts { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(max-content, 1.3fr) minmax(0, 1fr); }
  .hubpage .ghall.has-land .facts { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(max-content, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 761px) and (max-width: 1099px) {
  .hubpage .ghall.has-land .facts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hubpage .ghall.has-land .facts > div { grid-column: span 2; }
  .hubpage .ghall.has-land .facts > div:nth-child(n+4) { grid-column: span 3; }
}
.hubpage .ghall { padding: 18px 22px 22px; }
.hubpage .ghall .card-h { margin-bottom: 14px; }
.hubpage .ghall .facts > div { display: flex; flex-direction: column; }
.hubpage .ghall .facts dd.gf-sub { margin-top: auto; padding-top: 6px; font: 500 14px/1.3 var(--f-body); color: var(--ink-2); white-space: normal; }
.hubpage .ghall .gf-cap { display: block; padding-top: 8px; }
.hubpage .ghall .gf-cap .gauge-gilt { margin: 0; }
.hubpage .ghall .gf-of { font: 600 .72em/1 var(--f-body); color: var(--ink-2); }
/* roster, 1 to 3 public members: one card each, in one row that the cards fill */
.hubpage .gcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); }
.hubpage .gcards.n2 { --n: 2; }
.hubpage .gcards.n3 { --n: 3; }
.hubpage .gcards a { display: grid; justify-items: center; align-content: start; gap: 6px; height: 100%; padding: 18px 12px 16px; text-align: center;
  color: var(--ink); text-decoration: none; background: var(--ghost-h); border-radius: 2px; box-shadow: inset 0 0 0 1px var(--rule);
  transition: box-shadow var(--dur-1) linear, background-color var(--dur-1) linear; }
.hubpage .gcards a:hover { box-shadow: inset 0 0 0 1px var(--gold-ink); background: var(--slot-hover); }
.hubpage .gcards li.is-leader a { box-shadow: inset 0 0 0 1px var(--rule-2), inset 0 3px 0 var(--gold-t); }
.hubpage .gcards .head { width: 72px; height: 72px; margin-bottom: 4px; }
.hubpage .gcards .head img { width: 56px; height: 56px; }
.hubpage .gcards .gc-nm { max-width: 100%; font: 700 18px/1.25 var(--f-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hubpage .gcards .gc-v { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.hubpage .gcards .gc-v b { font: 700 19px/1 var(--f-num); color: var(--ink); }
.hubpage .gcards .gc-j { font-size: 14px; color: var(--ink-3); }
/* a lone member: the card lies on its side (head left, words right) so one card doesn't stand as a tall empty column */
.hubpage .gcards.n1 a { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; column-gap: 18px; text-align: left; }
.hubpage .gcards.n1 .head { grid-row: 1 / span 4; margin: 0; }
@media (max-width: 560px) {
  /* phones: each card becomes a row (head, name and rank, hours) so two or three members never squeeze into columns */
  .hubpage .gcards { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hubpage .gcards a { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; column-gap: 14px; row-gap: 2px; padding: 12px 14px; text-align: left; }
  .hubpage .gcards .head { grid-row: 1 / span 4; width: 56px; height: 56px; margin: 0; }
  .hubpage .gcards .head img { width: 44px; height: 44px; }
  .hubpage .gcards li.is-leader a { box-shadow: inset 0 0 0 1px var(--rule-2), inset 3px 0 0 var(--gold-t); }
}
/* the guild's Chronicle: a ruled timeline, newest first, each line marked by its own icon in a small gilt lozenge */
.hubpage .gchron-card { padding-bottom: 18px; }
.hubpage .gchron { list-style: none; margin: 0; padding: 0; position: relative; }
.hubpage .gchron::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 1px; background: var(--rule-2); }
.hubpage .gchron li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; min-height: 52px; padding: 6px 0; }
.hubpage .gchron li + li { box-shadow: inset 0 1px 0 var(--rule); }
.hubpage .gch-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 2px; background: var(--slot); box-shadow: inset 0 0 0 1px var(--slot-ring); }
.hubpage .gch-ic svg.px { width: 24px; height: 24px; }
.hubpage .gch-ic svg.ui { width: 18px; height: 18px; color: var(--gold-ink); }
.hubpage .gch-t { font-size: 16px; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.hubpage .gch-t a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; font-weight: 700; }
.hubpage .gchron time { font: 600 14px/1.2 var(--f-body); color: var(--ink-3); white-space: nowrap; }
.hubpage .gch-founded .gch-ic { background: var(--leaf); box-shadow: 0 0 0 1px var(--inkline); }
.hubpage .gch-founded .gch-ic svg.ui { color: #2A1806; }
@media (max-width: 400px) {
  .hubpage .gchron li { grid-template-columns: 36px minmax(0, 1fr); }
  .hubpage .gchron time { grid-column: 2; margin-top: -2px; }
}
/* every card's rank line is the same height (the leader's gilt seal is taller than a plain rank), so hours line up */
.hubpage .gcards .gr-lead, .hubpage .gcards .gr-role { min-height: 24px; }
.hubpage .gcards .gr-role { display: inline-flex; align-items: center; gap: 5px; }
@media (max-width: 560px) {
  /* the leader keeps a full row for the name; playtime and land share the next one */
  .hubpage .ghall.has-land .facts > div.gf-gl ~ div { grid-column: auto; }
}
@media (max-width: 400px) { .hubpage .ghall .facts dd:not(.gf-sub) { font-size: 19px; white-space: nowrap; } .hubpage .ghall .facts dd.gl { white-space: normal; } }
/* narrow phones: the Founded date may take two lines rather than be cut ("Nov 4, 20…") */
@media (max-width: 359px) { .hubpage .ghall .facts dd:not(.gf-sub) { white-space: normal; } }
/* the not-found / private gates: the large buttons shrink to the panel at 320 instead of running past its edge */
@media (max-width: 400px) { .gate .nf-go { align-items: stretch; } .gate .nf-go .btn { min-width: 0; white-space: normal; text-align: left; } }
/* r2 critique, /panel/ at 320: the map poster's body and its big button fit the plate (the button's nowrap label made the
   body wider than the plate), the caption drops its aside, and notification titles take up to two lines, not an ellipsis */
@media (max-width: 359px) {
  .hubpage .mp-body { width: calc(100% - 20px); max-width: none; padding: 12px; }
  .hubpage .mp-body .btn { max-width: 100%; min-width: 0; white-space: normal; padding-inline: 12px; font-size: 15px; }
}
@media (max-width: 400px) { .hubpage .mapposter .mp-cap span { display: none; } }
@media (max-width: 560px) {
  .hubpage .nt-t { white-space: normal; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; }
}

/* ---- /staff.css (bundled by tools/perf_css.py; edit /staff.css, never this file) ---- */
/* Valkyrie Realms · Staff panel (/staff/). Builds on style.css tokens + hub.css components (Hotbar HUD).
   Scoped to .staff / .st-* so it never collides with hub pages. Numbers use --f-mono (VR Digits rule). */
/* [hidden] must win over component display rules (.btn is inline-flex) */
.staff [hidden], .st-dialog [hidden] { display: none !important; }

.staff { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.staff .hgrid > *, .st-view { min-width: 0; }
.staff .hgrid { gap: 16px; }

/* ---------- tab bar (deep-linkable ?tab=) ---------- */
.st-tabs { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.st-tablist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.st-tab { position: relative; text-decoration: none; }
.st-tab:hover { text-decoration: none; }
.st-tab[aria-current="page"] { color: #FFFFFF; background: var(--prim); box-shadow: inset 2px 2px 0 rgb(255 255 255 / .22), inset -2px -2px 0 var(--prim-edge), 0 0 0 2px #000; }
.st-tab:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.st-badge { min-width: 24px; height: 24px; padding: 0 6px; display: inline-grid; place-items: center; font: 700 13px/1 var(--f-mono); color: #000; background: #FFB547; box-shadow: 0 0 0 2px #000; }
.st-badge[hidden] { display: none; }
.st-who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.st-role svg { width: 18px; height: 18px; }
.st-role[data-role="owner"], .st-role[data-role="admin"] { color: #FF7B7B; }
.st-role[data-role="mod"] { color: var(--link); }
[data-theme="day"] .st-role[data-role="owner"], [data-theme="day"] .st-role[data-role="admin"] { color: #8E1515; }

/* ---------- stat tiles ---------- */
.st-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.st-stat { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 2px 12px; align-items: center; padding: 16px; color: var(--ink); text-decoration: none; }
.st-stat:hover { text-decoration: none; }
.st-stat:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.st-stat .slot { grid-row: span 3; width: 44px; height: 44px; }
.st-stat .slot svg.px { width: 28px; height: 28px; }
.st-stat-v { font: 700 30px/1 var(--f-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.st-stat-l { font: 700 14px/1.2 var(--f-body); color: var(--label); }
.st-stat-s { font-size: 14px; line-height: 1.3; }

/* ---------- pills (state) ---------- */
.st-pill { display: inline-flex; vertical-align: middle; align-items: center; gap: 6px; padding: 3px 8px 4px; font: 700 13px/1.1 var(--f-mono); letter-spacing: .02em; white-space: nowrap; color: var(--ink); background: var(--ghost-h); box-shadow: inset 0 0 0 2px var(--rule); }
.st-pill::before { content: ""; width: 8px; height: 8px; background: currentColor; flex: none; }
.st-pill[data-s="ok"], .st-pill[data-s="done"], .st-pill[data-s="approved"], .st-pill[data-s="resolved"] { color: var(--ok); }
.st-pill[data-s="active"], .st-pill[data-s="bad"], .st-pill[data-s="error"], .st-pill[data-s="denied"], .st-pill[data-s="open"] { color: var(--err); }
.st-pill[data-s="warn"], .st-pill[data-s="pending"], .st-pill[data-s="running"], .st-pill[data-s="claimed"] { color: var(--warn); }
.st-pill[data-s="expired"], .st-pill[data-s="revoked"], .st-pill[data-s="logged"], .st-pill[data-s="idle"], .st-pill[data-s="expired_req"] { color: var(--ink-3); }
.chip.st-mini { padding: 3px 7px 4px; font-size: 13px; }

/* ---------- facts, feeds, rows ---------- */
.st-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px 18px; margin: 0 0 6px; }
.st-facts > div { min-width: 0; padding: 10px 12px; background: var(--ghost-h); box-shadow: inset 0 0 0 2px var(--rule); }
.st-facts dt { font: 700 13px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.st-facts dd { margin: 6px 0 0; color: var(--ink); overflow-wrap: anywhere; }
.st-sub { display: block; margin-top: 3px; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.st-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-feed li { display: grid; gap: 4px; padding: 10px 12px; background: var(--ghost-h); box-shadow: inset 0 0 0 2px var(--rule); min-width: 0; }
.st-feed-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ink); }
.st-feed-d { color: var(--ink-2); overflow-wrap: anywhere; }
.st-feed-m { font-size: 14px; }
.st-rows li { grid-template-columns: 40px minmax(0, 1fr) auto; }
.st-rows li > .st-head { grid-row: span 2; }
.st-r1 { font-weight: 700; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.st-r2 { grid-column: 2; font-size: 14px; }
.st-rows li > .btn { grid-row: 1 / span 2; grid-column: 3; }
.st-online { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.st-online li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 10px; background: var(--ghost-h); min-width: 0; }
.st-world { margin-left: auto; font: 500 13px/1 var(--f-mono); }
.st-head { flex: none; image-rendering: pixelated; background: #2a2a30; box-shadow: 0 0 0 2px #000; }
.st-plink { display: inline-flex; align-items: center; min-height: 24px; font-weight: 700; color: var(--link); overflow-wrap: anywhere; }
.st-empty { margin-top: 0; }
.st-empty p + p { margin-top: 4px; font-size: 14px; }
.st-quote { margin: 4px 0 10px; padding: 12px 14px; color: var(--ink); background: var(--ghost-h); box-shadow: inset 4px 0 0 var(--prim); overflow-wrap: anywhere; white-space: pre-wrap; }
.st-h3 { margin: 18px 0 10px; font: 700 13px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.st-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

/* ---------- tables (become label/value cards under 760px) ---------- */
.st-table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.st-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.st-table th, .st-table td { padding: 9px 10px; text-align: left; vertical-align: top; border-bottom: 2px solid var(--rule); overflow-wrap: break-word; }
.st-table td.num, .st-table td.mono, .st-table td .st-plink, .st-table td .st-pill { white-space: nowrap; }
.st-table td .st-plink { overflow-wrap: normal; }
.st-table td:is([data-l="When"], [data-l="Filed"], [data-l="Started"], [data-l="Ended"]) { white-space: nowrap; }
.st-table thead th { font: 700 13px/1.2 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.st-table tbody th { font-weight: 700; color: var(--ink); }
.st-table tbody th .st-head, .st-table td .st-head { vertical-align: middle; margin-right: 8px; }
.st-table .num { text-align: right; }
.st-table tr.st-watched td { background: color-mix(in srgb, var(--warn) 10%, transparent); }
.st-table tr.st-rb td { opacity: .62; }
.st-rowacts { white-space: nowrap; }
.st-rowacts .btn { min-height: 44px; padding: 2px 12px 6px; font-size: 14px; }
.st-rowacts .btn + .btn { margin-left: 6px; }
.st-duty td.num { position: relative; min-width: 64px; }
.st-bar { position: absolute; left: 6px; right: 6px; bottom: 4px; height: 4px; background: linear-gradient(90deg, var(--prim) var(--w), transparent var(--w)); }

/* ---------- search, filters, actions ---------- */
.st-search { display: flex; gap: 10px; flex-wrap: wrap; }
.st-search .searchbox { flex: 1 1 260px; }
.st-search .input { width: 100%; }
.st-results a { min-height: 44px; }
.st-res-m { margin-left: auto; font: 500 13px/1 var(--f-mono); color: var(--ink-3); }
.st-nores { padding: 8px; }
.st-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; align-items: end; margin-bottom: 16px; }
.st-filters .input, .st-filters .select { width: 100%; min-width: 0; }
.st-filter-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.st-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.st-locked { margin-top: 8px; font-size: 14px; }
.btn.st-danger { --bb: #B3261E; --bbh: #CC3A31; --bi: #FFFFFF; --be: #6E120D; --bhi: rgb(255 255 255 / .22); }
.st-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.st-pager [aria-disabled="true"] { opacity: .45; pointer-events: none; }
.st-seg { flex-wrap: wrap; }
.st-segb { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; font: 700 14px/1 var(--f-mono); color: #CFCFCF; text-decoration: none; }
.st-segb:hover { color: #FFFFFF; text-decoration: none; }
.st-segb[aria-current="true"], .st-segb[aria-selected="true"] { color: #000; background: #E8E8E8; box-shadow: inset -2px -2px 0 #8B8B8B; }
.st-segb:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- player card ---------- */
.st-phead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px 18px; align-items: center; margin-bottom: 16px; }
.st-pname .pname-big { font-size: clamp(28px, 3vw, 40px); }
.st-pchips { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.st-pwatch { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.st-pwatch [aria-pressed="true"] { --bb: var(--prim); --bbh: var(--prim-h); --bi: #FFFFFF; --be: var(--prim-edge); }

/* ---------- map / co ---------- */
.st-co-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.st-co-h .st-actions { margin-top: 0; align-items: center; }

/* ---------- alerts watch list ---------- */
.st-watch { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 6px; }
.st-watch li { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 8px; background: var(--ghost-h); min-width: 0; }
.st-watch li .btn { margin-left: auto; }
.st-addwatch { display: flex; gap: 8px; }
.st-addwatch .input { flex: 1; min-width: 0; }

/* ---------- admin ---------- */
.st-ctl { display: grid; gap: 14px; margin-top: 16px; }
.st-ctl-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.st-ctl .select, .st-ctl .input { width: 100%; min-width: 0; }
.st-ctl [hidden] { display: none; }
.st-hint { font-size: 14px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 10px; }
.st-log { margin: 0; padding: 12px; max-height: 220px; overflow: auto; font: 500 13px/1.5 var(--f-mono); color: #E6E6E6; background: #141418; box-shadow: inset 0 0 0 2px #000; white-space: pre-wrap; overflow-wrap: anywhere; }
.st-mods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.st-mods li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; background: var(--ghost-h); box-shadow: inset 0 0 0 2px var(--rule); min-width: 0; }
.st-mods li > span { min-width: 0; overflow-wrap: anywhere; }

/* ---------- radios (decision templates, control action) ---------- */
.st-radios { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-radios legend { margin-bottom: 8px; font: 700 13px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.st-radio { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; min-height: 44px; background: var(--ghost-h); box-shadow: inset 0 0 0 2px var(--rule); cursor: pointer; }
.st-radio input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--prim); }
.st-radio:has(input:checked) { box-shadow: inset 0 0 0 2px var(--prim); }
.st-radio:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.st-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.st-inline legend { width: 100%; }
.st-chiprad { grid-template-columns: 20px auto; align-items: center; padding: 8px 14px 8px 10px; font-weight: 700; color: var(--ink); }
.st-chiprad input { margin: 0; }
.st-switchrow { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }

/* ---------- dialog ---------- */
.st-dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; color: var(--ink); background: var(--panel, #24242a); overflow: hidden; }
.st-dialog::backdrop { background: rgb(0 0 0 / .62); }
.st-dlg-in { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; max-height: calc(100dvh - 48px); }
.st-dlg-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 12px 8px 20px; }
.st-dlg-h h2 { font: 600 26px/1.1 var(--f-display); color: var(--ink); text-shadow: .05em .05em 0 var(--shadow-text); }
.st-dtarget { display: flex; align-items: center; gap: 10px; padding: 0 20px 6px; color: var(--ink); }
.st-dlg-b { display: grid; gap: 14px; padding: 8px 20px 16px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.st-dlg-b .notice { margin: 0; }
.st-dlg-f { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 2px solid var(--rule); }
.st-ta { width: 100%; min-height: 80px; resize: vertical; font: 400 16px/1.45 var(--f-body); padding-top: 10px; padding-bottom: 10px; }
.st-dsum { color: var(--ink); overflow-wrap: anywhere; }
.st-result p { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; padding: 12px; background: var(--ghost-h); box-shadow: inset 0 0 0 2px var(--rule); }
.st-confirm2 { margin: 0; }
.st-dialog .field label { color: var(--ink-3); }

/* ---------- gate ---------- */
.st-gate { grid-template-columns: minmax(0, 1fr); max-width: 760px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .st-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .staff .hgrid > .s7, .staff .hgrid > .s6, .staff .hgrid > .s5, .staff .hgrid > .s8, .staff .hgrid > .s4 { grid-column: span 12; }
  .st-phead { grid-template-columns: auto minmax(0, 1fr); }
  .st-pwatch { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 760px) {
  .st-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .st-stat { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .st-stat .slot { display: none; }
  /* every tab visible on phones: a 3-column grid instead of a hidden horizontal scroller */
  .st-table-wrap { overflow: visible; margin: 0; padding: 0; }
  .st-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .st-table, .st-table tbody, .st-table tr, .st-table td, .st-table tbody th { display: block; width: 100%; }
  .st-table tr { margin-bottom: 10px; padding: 6px 10px; background: var(--ghost-h); box-shadow: inset 0 0 0 2px var(--rule); }
  .st-table td, .st-table tbody th { position: relative; display: block; min-height: 32px; padding: 6px 0 6px 106px; border: 0; text-align: left; white-space: normal; }
  .st-table td::before, .st-table tbody th::before { content: attr(data-l); position: absolute; left: 0; top: 7px; width: 96px; font: 700 13px/1.4 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
  .st-table td[data-l=""] { padding-left: 0; }
  .st-table td[data-l=""]::before { display: none; }
  .st-table .num { text-align: left; }
  .st-duty td.num { min-width: 0; }
  .st-bar { left: 106px; right: auto; width: calc(100% - 106px); }
  .st-rowacts { white-space: normal; display: flex !important; flex-wrap: wrap; gap: 6px; }
  .st-rowacts .btn + .btn { margin-left: 0; }
  .st-dialog { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; }
  .st-dlg-in { max-height: 92dvh; }
}
@media (max-width: 420px) {
  .st-stat-v { font-size: 24px; }
  .st-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-filters .st-filter-btns { grid-column: 1 / -1; }
  .st-addwatch { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .switch::after { transition: none; }
}

.st-alts { gap: 8px; }
.st-altlink { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 12px; }

/* ---------- CHRONICLE LAYER (brand v3): quiet ledger surfaces; class names and hooks unchanged ---------- */
.st-tab { border-radius: 3px; }
.st-tab[aria-current="page"] { color: #2A1806; background: var(--leaf); box-shadow: 0 0 0 1px var(--inkline), inset 0 0 0 1px rgb(255 240 190 / .45), inset 0 -3px 0 #7A4C10; }
.st-badge { color: #2A1806; background: var(--leaf); border-radius: 2px; box-shadow: 0 0 0 1px var(--inkline); }
.st-head { background: #2A2117; box-shadow: 0 0 0 1px var(--inkline), 0 0 0 2px rgb(201 151 62 / .6); }
.st-quote { box-shadow: inset 3px 0 0 var(--gold-t); border-radius: 2px; }
.st-segb { color: var(--ink-2); border-radius: 2px; }
.st-segb:hover { color: var(--ink); }
.st-segb[aria-current="true"], .st-segb[aria-selected="true"] { color: #2A1806; background: var(--leaf); box-shadow: 0 0 0 1px var(--inkline), inset 0 -2px 0 #7A4C10; }
.st-log { color: #E6DCC4; background: #15100A; box-shadow: inset 0 0 0 1px rgb(215 160 64 / .45); border-radius: 2px; }
.st-dialog { background: var(--panel); border: 1px solid var(--inkline); border-radius: 4px; box-shadow: 0 0 0 3px #C9973E, 0 0 0 4px var(--inkline), 0 30px 60px -20px rgb(0 0 0 / .7); }
.st-dialog::backdrop { background: rgb(14 10 6 / .78); }
.st-dlg-h h2 { font-weight: 800; letter-spacing: .015em; text-shadow: none; }
/* pass 2: stat tiles use the shared engraved corners (style.css), no SVG frame */
/* polish-10: an empty reason reads as a deliberate muted note, not a stray dash */
.st-noreason { color: var(--ink-3); font-style: italic; }
/* polish-10: the login gate is a centred sign-in sheet (login + what's inside), like the player panel's */
.st-gate-sheet { max-width: 1080px; margin-inline: auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.st-gate:not(.st-gate-sheet) { margin-inline: auto; }
.st-gate-sheet .gate-login .btn { margin-top: 0; }
.st-gate-sheet .gate-login p { margin-bottom: 22px; }
@media (max-width: 900px) { .st-gate-sheet { grid-template-columns: minmax(0, 1fr); } }
/* polish-10: player facts as a deliberate ledger (4 + 3 with the admin IP tile spanning two; 3 + 3 without it) */
.st-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.st-facts .st-pill { white-space: normal; max-width: 100%; }
@media (min-width: 1100px) {
  .st-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .st-facts > div:last-child:nth-child(odd) { grid-column: auto; }
  .st-facts[data-n="7"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .st-facts[data-n="7"] > div:nth-child(7) { grid-column: span 2; }
}
/* long tables fold behind a full-width "Show all N" bar */
.st-more { display: flex; width: 100%; justify-content: center; gap: 10px; margin-top: 12px; }
.st-more svg.ui { width: 16px; height: 16px; rotate: 90deg; }
.st-table tr:focus { outline: 3px solid var(--focus); outline-offset: -3px; }
/* phones: stacked table cells wrap their mono values too (td.mono kept nowrap from the desktop rule and a long
   "Where" (world x y z) pushed the alerts tab to 436px at 390) */
@media (max-width: 760px) {
  .st-table td.mono, .st-table td.num, .st-table td:is([data-l="When"], [data-l="Filed"], [data-l="Started"], [data-l="Ended"]) { white-space: normal; overflow-wrap: anywhere; }
}
/* admin schedule: two facts share the card width instead of two narrow tiles */
.st-facts.st-facts2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* filter buttons never wrap into a stack beside the inputs: Filter + Clear stay on one line, on the input baseline */
.st-filter-btns { flex-wrap: nowrap; align-items: center; min-width: max-content; }
.st-filters { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.st-filters:has(> :nth-child(7)) { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) auto; }
.st-filters:has(> :nth-child(7)) > .st-filter-btns { grid-column: -2 / -1; }
@media (max-width: 760px) {
  .st-filters:has(> :nth-child(7)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-filters:has(> :nth-child(7)) > .st-filter-btns { grid-column: 1 / -1; }
}

/* ---------- polish round 2 (HUB2 V5) ---------- */
/* KPI tiles: the home status-tile voice — a big Cinzel figure, a Cinzel small-caps label, a quiet note; aligned to the
   top so a tile without a note (Open appeals) no longer sits lower than its neighbours */
.hubpage .st-stat { grid-template-rows: auto auto 1fr; align-items: start; align-content: start; row-gap: 6px; padding: 18px 18px 16px; }
.hubpage .st-stat .slot { grid-row: 1 / span 3; align-self: start; }
.hubpage .st-stat-v { font: 600 34px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.hubpage .st-stat-l { font: 700 13px/1.25 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.hubpage .st-stat-s { font-size: 14px; line-height: 1.35; color: var(--ink-3); }
.hubpage .st-stat:hover .st-stat-l { color: var(--ink); }
/* status chips: the same parchment socket as every .chip on the site, with the site's diamond status mark */
.hubpage .st-pill { gap: 8px; padding: 5px 10px 6px; border-radius: 3px; background: var(--slot); box-shadow: inset 0 0 0 1px var(--slot-ring); font: 700 13px/1.1 var(--f-mono); }
.hubpage .st-pill::before { width: 7px; height: 7px; rotate: 45deg; box-shadow: 0 0 0 1px rgb(0 0 0 / .35); }
.hubpage .st-pill[data-s="expired"]::before, .hubpage .st-pill[data-s="revoked"]::before, .hubpage .st-pill[data-s="logged"]::before,
.hubpage .st-pill[data-s="idle"]::before, .hubpage .st-pill[data-s="expired_req"]::before { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.hubpage .st-mini { padding: 3px 7px; font-size: 12px; border-radius: 3px; }
/* system notices: a parchment note with an engraved kicker and a gilt rule, not a yellow admin box */
.hubpage .st-sys { display: grid; gap: 6px; margin: 2px 0 14px; padding: 14px 16px 14px 18px; border-radius: 2px; background: var(--ghost-h);
  box-shadow: inset 0 0 0 1px var(--rule-2), inset 3px 0 0 var(--gold-t); }
.hubpage .st-sys[data-tone="warn"] { box-shadow: inset 0 0 0 1px var(--rule-2), inset 3px 0 0 var(--warn); }
.hubpage .st-sys-k { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 700 13px/1.2 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.hubpage .st-sys-k svg.ui { width: 16px; height: 16px; color: var(--gold-ink); }
.hubpage .st-sys[data-tone="warn"] .st-sys-k svg.ui { color: var(--warn); }
.hubpage .st-sys-b { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 760px) {
  .hubpage .st-stat-v { font-size: 28px; }
  .hubpage .st-stat-l { font-size: 12px; letter-spacing: .08em; }
}
@media (max-width: 760px) { .hubpage .st-stats > .st-stat:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ======================================================================================================================
   R3 · HUB3 staff (U3): equal-height pairs, a one-line ledger for staff actions, aligned KPI tiles, name links in ink
   ==================================================================================================================== */
.hubpage .hgrid > .st-eq { align-self: stretch; }
.hubpage .st-stat-s { align-self: end; }
/* latest staff actions: one ruled ledger line per action (state · what + who · reason · by/when) instead of tall cards */
@media (min-width: 901px) {
  .hubpage .st-ledger { gap: 0; box-shadow: inset 0 0 0 1px var(--rule-2); border-radius: 2px; }
  .hubpage .st-ledger li { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: 16px;
    padding: 12px 16px; background: transparent; box-shadow: none; border-radius: 0; }
  .hubpage .st-ledger li + li { border-top: 1px solid var(--rule-2); }
  .hubpage .st-ledger li:nth-child(even) { background: var(--ghost-h); }
  .hubpage .st-ledger .st-feed-m { grid-column: 3; justify-self: end; text-align: right; }
}
/* player names are ink with a gilt rule (a name, not a web link); the rule thickens on hover */
.hubpage .st-plink { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gold-t) 70%, transparent);
  text-decoration-thickness: 1px; text-underline-offset: 4px; }
.hubpage .st-plink:hover { color: var(--gold-ink); text-decoration-color: var(--gold-t); text-decoration-thickness: 2px; }

/* table heads speak in the fact-label voice (Cinzel small caps), not mono caps */
.hubpage .st-table thead th { font: 700 13px/1.25 var(--f-display); letter-spacing: .12em; text-transform: none; color: var(--label); }
.hubpage .st-table th, .hubpage .st-table td { border-bottom-width: 1px; border-bottom-color: var(--rule-2); }
@media (min-width: 761px) { .hubpage .st-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--ghost-h) 70%, transparent); } }
/* S4 · audit log on phones: a compact entry (when + state on one line, what · staff → player on the next, then the detail)
   instead of a six-row label/value card per entry */
@media (max-width: 760px) {
  .hubpage .st-audit tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 2px; padding: 10px 12px;
    margin-bottom: 8px; box-shadow: inset 0 0 0 1px var(--rule-2); }
  .hubpage .st-audit td { width: auto; min-height: 0; padding: 0; border: 0; }
  .hubpage .st-audit td::before { content: none; }
  .hubpage .st-audit td[data-l="When"] { grid-column: 1; grid-row: 1; font: 600 13px/1.5 var(--f-mono); color: var(--ink-3); }
  .hubpage .st-audit td[data-l="State"] { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
  .hubpage .st-audit td[data-l="What"] { grid-column: 1; grid-row: 2; }
  .hubpage .st-audit td[data-l="Player"] { grid-column: 1; grid-row: 3; }
  .hubpage .st-audit td[data-l="Player"]::before { content: "on "; position: static; width: auto; font: 400 14px/1.4 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
  .hubpage .st-audit td[data-l="Staff"] { grid-column: 2; grid-row: 3; justify-self: end; font-size: 14px; color: var(--ink-2); }
  .hubpage .st-audit td[data-l="Staff"]::before { content: "by "; position: static; width: auto; font: inherit; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
  .hubpage .st-audit td[data-l="Detail"] { grid-column: 1 / -1; grid-row: 4; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
}

/* admin: server control stands as tall as the right-hand stack; the log takes the extra height instead of leaving a hole */
@media (min-width: 901px) {
  .hubpage .hgrid > .st-ctl { align-self: stretch; display: flex; flex-direction: column; }
  .hubpage .st-ctl > .st-log { flex: 1 1 0; min-height: 220px; max-height: none; }
}
.hubpage .st-segb { font: 700 15px/1 var(--f-body); letter-spacing: 0; }

/* duty: the weekly bar is gold leaf on a faint gilt track (was a teal hairline); the staff cell keeps head + name on one line */
.hubpage .st-bar { height: 4px; border-radius: 1px; background: linear-gradient(90deg, #E2B04F 0 var(--w), color-mix(in srgb, var(--gold-t) 16%, transparent) var(--w)); }
.hubpage .st-duty tbody th { white-space: nowrap; }
/* map tools: seven fields and the Look up button share one row on wide screens */
@media (min-width: 1100px) {
  .hubpage .st-filters:has(> :nth-child(8)) { grid-template-columns: repeat(7, minmax(0, 1fr)) auto; }
  .hubpage .st-filters:has(> :nth-child(8)) > .st-filter-btns { grid-column: auto; }
}

/* alerts: four filters and the Filter button share one row; the watch list rides along beside the long table */
@media (min-width: 1100px) {
  .hubpage .st-filters.st-f4 { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
}
@media (min-width: 901px) {
  .hubpage .hgrid > .st-sticky { position: sticky; top: calc(var(--hdr-h, 72px) + 16px); }
}
.hubpage .st-table .st-head { display: inline-block; }

/* polish-10 round 4 · U9: the five KPI tiles never leave a hole. 1101 px up: one row of five; tablets: 3 + 2 with the
   second row's two tiles sharing the full width; phones keep 2 + 2 + 1 (the last one spans, rule above). */
@media (min-width: 761px) and (max-width: 1100px) {
  .hubpage .st-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hubpage .st-stats > .st-stat { grid-column: span 2; }
  .hubpage .st-stats > .st-stat:nth-child(n + 4) { grid-column: span 3; }
}

/* (staff v2 U2 replaced the shared-cell tab overlay with a fixed-height sticky strip: see the end of this file) */
}

/* R5 · F4 the "On duty now" card beside the Server card (one row from 1101 px): the card is a column and its empty
   state takes the rest of the row's height, its text centred in it (an empty state, like the hub's not-found panels), so the pair ends on one line with no dead band under
   "Nobody is on duty." (was ~70 px of bare card). A list of staff on duty keeps its rows at the top. */
@media (min-width: 1101px) {
  .hubpage .hgrid > .st-eq:has(> .st-empty:last-child) { display: flex; flex-direction: column; }
  .hubpage .hgrid > .st-eq > .st-empty:last-child { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center;
    text-align: center; }
}

/* ======================================================================================================================
   polish-10 round 6 (STAFF6)
   ====================================================================================================================== */
/* UX-18 · the staff lede is the only hub lede that reaches three lines on phones, so chronicle.js gave it the gilded
   three-line drop cap while every other hub head (and its twin, the panel gate) keeps a plain initial. The hub heads
   are centred title blocks, not manuscript prose: keep the staff initial plain at every width. */
body[data-page="staff"] header.hubhead .sec-lede[data-initial].cap-drop::first-letter {
  float: none; font: inherit; color: inherit; letter-spacing: inherit; text-shadow: none; margin: 0; padding: 0;
  -webkit-initial-letter: normal; initial-letter: normal;
}
/* UX-30 · Night: `[data-theme=night] .btab:hover` (0,3,0) out-ranked the current tab, so the pointer resting on the
   tab you just clicked swapped its gold leaf for the dark hover tile under the dark label (~1.3:1). The current tab
   stays gilded on hover (a brighter leaf is its hover state). */
.hubpage .st-tab[aria-current="page"], .hubpage .st-tab[aria-current="page"]:hover { color: #2A1806; background: var(--leaf); }
.hubpage .st-tab[aria-current="page"]:hover { background: var(--leaf-h); }
/* UX-37 · "Hide automatic kicks": a checkbox row between the filters and the table (and under the history heading) */
.st-autobar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: -4px 0 12px; font-size: 15px; }
.st-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; color: var(--ink); cursor: pointer; }
.st-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--gold-t); cursor: pointer; }
.st-check input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
/* UX-40 · audit filters: the auto-fit grid let Filter + Clear run 2-21 px past the card's content edge (1024-1440).
   Explicit tracks instead: one row of six fields + the buttons when there is room, else 4 + (2 fields | buttons),
   else 2 columns; the buttons always end on the content edge. */
.hubpage .st-filters.st-f-audit { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hubpage .st-filters.st-f-audit > .st-filter-btns { grid-column: span 2; justify-self: end; min-width: 0; }
@media (min-width: 1400px) {
  .hubpage .st-filters.st-f-audit { grid-template-columns: repeat(6, minmax(0, 1fr)) auto; }
  .hubpage .st-filters.st-f-audit > .st-filter-btns { grid-column: auto; }
}
@media (max-width: 760px) {
  .hubpage .st-filters.st-f-audit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hubpage .st-filters.st-f-audit > .st-filter-btns { grid-column: 1 / -1; justify-self: start; }
}
/* UX-47 · phones. (1) The 3×3 tab grid was 199 px of icon-over-label tiles before any content: label-only tabs, one
   44 px line each (the icons repeat the labels; desktop keeps them) → ~148 px. (2) Alert rows were five-row
   label/value cards (~250 px each): a compact entry like the audit log's (when · VL, player, check + detail, place). */
@media (max-width: 440px) {
}
@media (max-width: 760px) {
  .hubpage .st-alerts tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 2px; padding: 10px 12px;
    margin-bottom: 8px; box-shadow: inset 0 0 0 1px var(--rule-2); }
  .hubpage .st-alerts tr.st-watched { box-shadow: inset 0 0 0 1px var(--warn); }
  .hubpage .st-alerts td { width: auto; min-height: 0; padding: 0; border: 0; text-align: left; }
  .hubpage .st-alerts td::before { content: none; }
  .hubpage .st-alerts td[data-l="When"] { grid-column: 1; grid-row: 1; font: 600 13px/1.5 var(--f-mono); color: var(--ink-3); }
  .hubpage .st-alerts td[data-l="VL"] { grid-column: 2; grid-row: 1; justify-self: end; font-size: 14px; }
  .hubpage .st-alerts td[data-l="VL"]::before { content: "VL "; position: static; width: auto; font: inherit; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
  .hubpage .st-alerts td[data-l="Player"] { grid-column: 1 / -1; grid-row: 2; }
  .hubpage .st-alerts td[data-l="Check"] { grid-column: 1 / -1; grid-row: 3; font-size: 15px; }
  .hubpage .st-alerts td[data-l="Where"] { grid-column: 1 / -1; grid-row: 4; font-size: 13px; color: var(--ink-3); }
}
/* UX-49 · backup log lines: 14 px mono, wrap between words and after "/" only (staff.js logLine keeps segments whole) */
.hubpage .st-feed-d.st-logline { font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.hubpage .st-logline .st-tok { white-space: nowrap; }
/* UX-48 · CoreProtect lookup: the auto-fit grid gave X/Y/Z the same width as the selects, so "Player (optional)" wrapped
   to two lines at 1280-1440 and Look up floated mid-row at 900-1024. Fitted tracks: one row ≥1240 (narrow X/Y/Z),
   World X Y Z | Radius Time Player [Look up] in between, 2 columns ≤760. "optional" is a quiet suffix on one line. */
.st-opt { margin-left: 4px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-3); white-space: nowrap; }
.hubpage .st-filters.st-co { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hubpage .st-filters.st-co > .st-filter-btns { grid-column: auto; justify-self: end; min-width: 0; }
@media (min-width: 1240px) {
  .hubpage .st-filters.st-co { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, .7fr)) repeat(2, minmax(0, 1.1fr)) minmax(0, 1.3fr) auto; }
}
@media (max-width: 760px) {
  .hubpage .st-filters.st-co { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hubpage .st-filters.st-co > .st-filter-btns { grid-column: 1 / -1; justify-self: start; }
}

/* ======================================================================================================================
   Staff side v2 (UI lane)
   ====================================================================================================================== */
/* U1 · honest results: `uncertain` (may have run) is amber like a warning, never green or red */
.st-pill[data-s="uncertain"] { color: var(--warn); }
.hubpage .st-pill[data-s="uncertain"]::before { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }
/* the amber toast: done-with-a-warning and may-have-happened (the card stays the solid dark toast in both themes) */
.toast2.st-warn { box-shadow: 0 0 0 1px #0A0704, inset 0 0 0 1px rgb(240 176 74 / .75), inset 4px 0 0 #F0B04A, 0 18px 30px -12px rgb(0 0 0 / .6); }
.toast2.st-warn .tt { color: #FFC56B; }
.hubpage .st-result .st-sys { margin: 10px 0 0; }
.hubpage .st-result .st-sys p { display: block; padding: 0; background: none; box-shadow: none; }
.hubpage .st-result .st-sys .st-sys-k { display: inline-flex; }

/* U2 · layout: a compact title bar instead of the hero, and one sticky row of tabs (a scroller on phones) */
.hubpage[data-page="staff"] .hubhead { padding-block: 0; }
.hubpage .st-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding-top: clamp(14px, 2vw, 24px); }
.hubpage .st-title { margin: 0; font: 800 clamp(24px, 2.4vw, 30px)/1.1 var(--f-display); letter-spacing: .03em; color: var(--ink); }
.hubpage .st-top .st-who { margin: 0; font-size: 14px; }
.hubpage .st-top .st-pulse { margin: 0 0 0 auto; }
.hubpage .staff { gap: 14px; }
.hubpage .staff > .st-tabs { position: sticky; top: var(--hdr-h, 64px); z-index: 30; display: block; height: 56px; margin-inline: calc(-1 * var(--gut));
  padding: 6px var(--gut); background: color-mix(in srgb, var(--bg) 94%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--rule-2), 0 10px 18px -16px rgb(0 0 0 / .55); }
.hubpage .st-tabs-skel { height: 44px; margin: 0; }
.hubpage .st-tablist { display: flex; flex-wrap: nowrap; gap: 4px; height: 44px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  overscroll-behavior-x: contain; scroll-padding-inline: 24px; }
.hubpage .st-tablist::-webkit-scrollbar { display: none; }
.hubpage .st-tablist > li { flex: none; }
.hubpage .st-tab { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 10px; border-radius: 3px; white-space: nowrap;
  font: 700 15px/1 var(--f-body); color: var(--ink-2); background: none; box-shadow: none; }
.hubpage .st-tab svg.px { width: 24px; height: 24px; flex: none; }
.hubpage .st-tab:hover { color: var(--ink); background: var(--ghost-h); }
.hubpage .st-tab[aria-current="page"] { color: #2A1806; background: var(--leaf); box-shadow: 0 0 0 1px var(--inkline), inset 0 0 0 1px rgb(255 240 190 / .45), inset 0 -3px 0 #7A4C10; }
.hubpage .st-tab:focus-visible { outline-offset: -3px; }
.hubpage .st-tab .st-badge { min-width: 22px; height: 22px; font-size: 12.5px; }
.hubpage .st-tab[aria-current="page"] .st-badge { color: #F6E7C0; background: #2A1806; box-shadow: none; }
/* the anchored jump targets (#p-*) clear the site header AND the sticky tab strip */
.hubpage .staff .hgrid [id^="p-"], .hubpage .staff [id] { scroll-margin-top: calc(var(--hdr-h, 64px) + 72px); }
@media (max-width: 1240px) {
  /* scroller hint: the strip fades out at the edge it can still scroll to */
  .hubpage .st-tablist { -webkit-mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .hubpage .st-tablist[data-end] { -webkit-mask: none; mask: none; }
}
@media (max-width: 760px) {
  .hubpage .st-top { padding-top: 12px; }
  .hubpage .st-title { font-size: 22px; }
  .hubpage .st-tab { padding: 0 12px 0 8px; font-size: 14.5px; gap: 6px; }
  .hubpage .st-tab svg.px { width: 22px; height: 22px; }
}

/* U3 · live strip in the title bar */
.hubpage .st-pulse { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 12px; border-radius: 3px; font: 600 14px/1.3 var(--f-body);
  color: var(--ink-2); background: var(--ghost-h); box-shadow: inset 0 0 0 1px var(--rule-2); font-variant-numeric: tabular-nums; }
.hubpage .st-pulse-dot { width: 9px; height: 9px; flex: none; transform: rotate(45deg); background: var(--ok); box-shadow: 0 0 0 1px rgb(0 0 0 / .45), 0 0 7px var(--ok); }
.hubpage .st-pulse[data-state="stale"] { color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 70%, transparent); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.hubpage .st-pulse[data-state="stale"] .st-pulse-dot { background: var(--warn); box-shadow: 0 0 0 1px rgb(0 0 0 / .45); }
.hubpage .st-pulse[data-state="stale"] b { color: var(--warn); }
[data-theme="day"] .hubpage .st-pulse[data-state="stale"] b { color: #7A4C10; }
.hubpage .st-pulse-sep { color: var(--ink-3); }
@media (max-width: 760px) {
  .hubpage .st-top .st-pulse { margin-left: 0; width: 100%; font-size: 14px; }
}

/* U4 · wording: VL legend, technical detail, quiet missing reasons, last decided appeal */
.hubpage .st-legend { margin: 10px 0 0; font-size: 14px; line-height: 1.5; }
.hubpage .st-legend b { color: var(--ink-2); font-family: var(--f-mono); }
.hubpage .st-alerts abbr { text-decoration: none; cursor: help; }
.hubpage .st-tech { margin-top: 2px; font-size: 14px; }
.hubpage .st-tech summary { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-3); cursor: pointer; list-style: none; }
.hubpage .st-tech summary::-webkit-details-marker { display: none; }
.hubpage .st-tech summary::before { content: "+"; width: 14px; font: 700 14px/1 var(--f-mono); color: var(--gold-ink); }
.hubpage .st-tech[open] summary::before { content: "−"; }
.hubpage .st-tech summary:hover { color: var(--ink); }
.hubpage .st-tech code { display: block; max-width: 36ch; padding: 4px 8px; overflow-wrap: anywhere; white-space: normal; color: var(--ink-2); background: var(--ghost-h); border-radius: 2px; }
.hubpage .st-noreason { color: var(--ink-3); font-style: normal; }
.hubpage .st-lastdec { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 12px 0 0; font-size: 14px; }
.hubpage .st-lastdec a { display: inline-flex; align-items: center; min-height: 32px; }
.hubpage .st-empty code { font-size: .92em; }
/* the phone alert card has no column labels: its VL number carries its own short label */
.hubpage .st-vl-k { display: none; }
@media (max-width: 760px) { .hubpage .st-alerts .st-vl-k { display: inline; font-size: 13px; color: var(--ink-3); } }

/* U5 · reports workflow */
.hubpage .st-act-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--rule-2); }
.hubpage .st-act-k { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.hubpage .st-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 10px; padding: 10px 12px; border-radius: 2px; background: var(--ghost-h); box-shadow: inset 0 0 0 1px var(--rule-2); }
.hubpage .st-result .st-next p { display: block; padding: 0; background: none; box-shadow: none; }
.hubpage .st-rowacts { white-space: normal; }
.hubpage .st-rowacts .btn { margin: 2px 4px 2px 0; }
.hubpage .st-radio .st-head { display: inline-block; vertical-align: middle; margin: -2px 8px 0 0; }
.hubpage .st-radio:has(input:disabled) { opacity: .6; }
.hubpage .st-reports .st-rowacts { min-width: 200px; }

/* U6 · players overview lists */
.hubpage .st-ov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .hubpage .st-ov-grid { grid-template-columns: 1fr; } }
.hubpage .st-ov { list-style: none; margin: 0; padding: 0; }
.hubpage .st-ov li + li { border-top: 1px solid var(--rule-2); }
.hubpage .st-ov-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "h n c" "h m m"; gap: 2px 10px; align-items: center; min-height: 48px; padding: 8px 6px; color: var(--ink); text-decoration: none; border-radius: 2px; }
.hubpage .st-ov-row:hover { background: var(--ghost-h); }
.hubpage .st-ov-row > :first-child { grid-area: h; align-self: start; margin-top: 2px; }
.hubpage .st-ov-n { grid-area: n; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.hubpage .st-ov-n b { overflow-wrap: anywhere; }
.hubpage .st-ov-rank { font-size: 14px; }
.hubpage .st-ov-c { grid-area: c; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 6px; }
.hubpage .st-ov-m { grid-area: m; font-size: 14px; }
.hubpage .st-ov-x { margin-left: 8px; color: var(--ink-2); }
.hubpage .st-ov-count { font-size: 14px; margin-left: 6px; }
.hubpage .st-risk { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 2px; font: 700 14px/1 var(--f-body); cursor: help; white-space: nowrap; }
.hubpage .st-risk-hi { color: #fff; background: #A3302A; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .35); }
.hubpage .st-risk-md { color: #2A1806; background: #E2A53A; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .3); }
.hubpage .st-risk-lo { color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--rule-2); }
@media (max-width: 520px) {
  .hubpage .st-ov-row { grid-template-areas: "h n" "h c" "h m"; grid-template-columns: 28px minmax(0, 1fr); }
  .hubpage .st-ov-c { justify-content: flex-start; }
  .hubpage .st-ov-x { display: block; margin: 2px 0 0; }
}
.hubpage .st-ov-x::before { content: "· "; }
@media (max-width: 520px) { .hubpage .st-ov-x::before { content: none; } }

/* U7 · player page */
.hubpage .st-xyz { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.hubpage .st-xyz-l { display: inline-flex; gap: 10px; font-size: 14px; }
.hubpage .st-xyz-l a { display: inline-flex; align-items: center; min-height: 32px; }
.hubpage .st-did { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; }
@media (max-width: 760px) { .hubpage .st-facts > .st-fact-wide { grid-column: 1 / -1; } }
.hubpage .st-did .mono { white-space: nowrap; }
.hubpage .st-copy { min-height: 32px; padding: 0 10px; font-size: 14px; }
.hubpage .st-ipbox { margin: 12px 0 0; }
.hubpage .st-ipbox summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; cursor: pointer; font-weight: 700; color: var(--ink-2); }
.hubpage .st-ipbox[open] summary { color: var(--ink); }
.hubpage .st-ipbox p { margin: 4px 0 0; }
.hubpage .st-unconf { margin-left: 4px; padding: 0 5px; border-radius: 2px; font-size: 12px; font-weight: 700; color: var(--warn); box-shadow: inset 0 0 0 1px currentColor; }
[data-theme="day"] .hubpage .st-unconf { color: #7A4C10; }
.hubpage .st-linkbtn { min-height: 32px; padding: 0 8px; font-size: 14px; }
.hubpage .st-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; margin-top: 12px; }
.hubpage .st-pv .st-seg { width: max-content; max-width: 100%; overflow-x: auto; }
.hubpage .st-pvpanel > .hgrid { margin: 0; }
.hubpage .st-partial { margin: 0 0 12px; }
.hubpage .st-mbar { display: none; }
@media (max-width: 760px) {
  .hubpage .st-mbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--panel, var(--bg)); box-shadow: 0 -1px 0 var(--rule-2), 0 -8px 24px rgb(0 0 0 / .35); }
  .hubpage .st-mbar .btn { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 8px; }
  body.hubpage.st-has-mbar { padding-bottom: 72px; }
  .hubpage .st-pv .st-seg { width: 100%; }
}
.hubpage .st-ipbox summary { list-style: none; }
.hubpage .st-ipbox summary::-webkit-details-marker { display: none; }
.hubpage .st-ipbox summary::before { content: "+"; width: 14px; font: 700 15px/1 var(--f-mono); color: var(--gold-ink); }
.hubpage .st-ipbox[open] summary::before { content: "−"; }

/* U8 · grouped alerts; the watch list is first in the DOM (phones) and moved to the right column on desktop */
@media (min-width: 901px) { .hubpage .hgrid > .st-sticky { top: calc(var(--hdr-h, 72px) + 56px + 16px); } }
@media (min-width: 901px) { .hubpage .st-al-grid > .st-al-watch { order: 2; } }
.hubpage .st-al-main .card-h .st-seg { margin-left: auto; }
.hubpage .st-agroups { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
/* FU6 · compact group cards: head | title (the expand toggle) / meta | More. ~2 lines on desktop and phones */
.hubpage .st-agroup { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "h t a" "h m a" "r r r";
  column-gap: 10px; align-items: center; padding: 6px 8px 8px 12px; border-radius: 2px; background: var(--ghost-h); box-shadow: inset 0 0 0 1px var(--rule-2); }
.hubpage .st-agroup[hidden] { display: none; }
.hubpage .st-agroup.st-watched { box-shadow: inset 3px 0 0 var(--gold-ink), inset 0 0 0 1px var(--rule-2); }
.hubpage .st-agroup > .st-head { grid-area: h; align-self: start; margin-top: 6px; }
.hubpage .st-ag-t { grid-area: t; display: flex; align-items: baseline; gap: 6px; min-height: 32px; margin: 0; padding: 4px 0; border: 0; background: none;
  color: var(--ink); font: inherit; line-height: 1.4; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.hubpage .st-ag-t:hover b, .hubpage .st-ag-t:focus-visible b { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }
.hubpage .st-ag-caret { flex: none; width: 0; height: 0; border-block: 5px solid transparent; border-left: 7px solid var(--gold-ink); transform: translateY(-1px); transition: transform .12s; }
.hubpage .st-ag-t[aria-expanded="true"] .st-ag-caret { transform: translateY(-1px) rotate(90deg); }
.hubpage .st-ag-c { color: var(--ink-2); }
.hubpage .st-ag-m { grid-area: m; margin: 0 0 0 13px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.hubpage .st-ag-a { grid-area: a; display: flex; align-items: center; gap: 4px; }
.hubpage .st-ag-a .btn { min-height: 36px; padding: 0 10px; font-size: 14px; }
.hubpage .st-ag-rows { grid-area: r; margin-top: 8px; }
.hubpage .st-ag-rows[hidden] { display: none; }
/* overflow menu (details popover) */
.hubpage .st-menu { position: relative; }
.hubpage .st-menu > summary { list-style: none; gap: 4px; }
.hubpage .st-menu > summary::-webkit-details-marker { display: none; }
.hubpage .st-menu > summary svg.ui { width: 14px; height: 14px; }
.hubpage .st-menu[open] > summary { background: var(--ghost-h); box-shadow: inset 0 0 0 1px var(--gold-ink); }
.hubpage .st-menu-pop { position: absolute; z-index: 25; right: 0; top: calc(100% + 4px); display: grid; min-width: 220px; max-width: min(300px, 86vw);
  padding: 6px; background: var(--panel, var(--bg)); box-shadow: 0 0 0 1px var(--gold-ink), 0 10px 28px rgba(0, 0, 0, .35); }
.hubpage .st-menu-pop > a, .hubpage .st-menu-pop > button { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border: 0; background: none;
  color: var(--ink); font: 600 15px/1.2 var(--f-body); text-align: left; text-decoration: none; cursor: pointer; }
.hubpage .st-menu-pop > a:hover, .hubpage .st-menu-pop > button:hover, .hubpage .st-menu-pop > a:focus-visible, .hubpage .st-menu-pop > button:focus-visible { background: var(--ghost-h); color: var(--gold-ink); }
.hubpage .st-menu-note { margin: 0; padding: 6px 12px 8px; font-size: 14px; line-height: 1.4; border-bottom: 1px solid var(--rule-2); margin-bottom: 4px; }
@media (max-width: 760px) {
  .hubpage .st-agroup { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t a" "m m" "r r"; padding: 4px 6px 6px 10px; }
  .hubpage .st-agroup > .st-head { display: none; }
  .hubpage .st-ag-xyz { display: none; }
  .hubpage .st-ag-a .st-menu > summary { width: 40px; padding: 0; justify-content: center; }
  .hubpage .st-ag-a .st-menu-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hubpage .st-ag-a .st-menu > summary svg.ui { width: 16px; height: 16px; }
  .hubpage .st-al-watch .muted:first-of-type { display: none; }
}

/* U9 · block history: grouped rows, compact phone rows (2 lines each) so a page stays within ~3 screens */
.hubpage .st-co-w { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.hubpage .st-co-a { font-weight: 700; }
.hubpage .st-co-a[data-a="bad"] { color: #FF8F7F; }
.hubpage .st-co-a[data-a="ok"] { color: #8EDC7A; }
@media (min-width: 761px) { .hubpage .st-cotable td { padding-top: 7px; padding-bottom: 7px; } }
[data-theme="day"] .hubpage .st-co-a[data-a="bad"] { color: #9A2A22; }
[data-theme="day"] .hubpage .st-co-a[data-a="ok"] { color: #2F6B2A; }
.hubpage .st-pager .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.hubpage .st-co .st-hint { margin-top: 4px; }
@media (max-width: 760px) {
  .hubpage .st-cotable tbody tr { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "what who" "where when"; gap: 2px 10px; padding: 8px 10px; }
  .hubpage .st-cotable tbody tr[hidden] { display: none !important; }
  .hubpage .st-cotable td { display: block; padding: 0 !important; border: 0 !important; }
  .hubpage .st-cotable td::before { content: none !important; display: none !important; }
  .hubpage .st-cotable td[data-l="What"] { grid-area: what; }
  .hubpage .st-cotable td[data-l="Player"] { grid-area: who; text-align: right; }
  .hubpage .st-cotable td[data-l="Where"] { grid-area: where; font-size: 14px; color: var(--ink-2); }
  .hubpage .st-cotable td[data-l="When"] { grid-area: when; font-size: 13px; color: var(--ink-3); text-align: right; }
}

/* U10 · duty: everyone listed (0 h rows muted), online dot, phone cards of 4 lines instead of an 11-row table card */
.hubpage .st-du-who { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hubpage .st-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 2px var(--ink-3); }
.hubpage .st-dot.on { background: #5BD16B; box-shadow: 0 0 0 1px rgb(0 0 0 / .4), 0 0 6px #5BD16B; }
.hubpage .st-duty tr.st-zero .mono, .hubpage .st-duty-cards .st-zero .mono { color: var(--ink-3); }
.hubpage .st-duty-cards { display: none; list-style: none; margin: 0; padding: 0; }
@media (max-width: 760px) {
  .hubpage .st-duty-desk { display: none; }
  .hubpage .st-duty-cards { display: grid; gap: 8px; }
  .hubpage .st-duty-cards li { padding: 10px 12px; border-radius: 2px; background: var(--ghost-h); box-shadow: inset 0 0 0 1px var(--rule-2); }
  .hubpage .st-duty-cards p { margin: 0; }
  .hubpage .st-dc-1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .hubpage .st-dc-2, .hubpage .st-dc-3 { display: flex; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; margin-top: 6px !important; font-size: 14px; }
  .hubpage .st-dc-3 { font-size: 13px; }
  .hubpage .st-spark { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; height: 22px; align-items: end; margin-top: 6px !important; }
  .hubpage .st-spark span { height: var(--h); min-height: 2px; background: var(--gold-ink); border-radius: 1px 1px 0 0; opacity: .85; }
}

/* U11 · audit: source chips, filters disclosure (phones), access log */
.hubpage .st-src { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; white-space: nowrap; }
.hubpage .st-src::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--ink-3); }
.hubpage .st-src[data-src="web"]::before { border-radius: 50%; background: #6FA8FF; }
.hubpage .st-src[data-src="game"]::before { transform: rotate(45deg); background: #8EDC7A; }
.hubpage .st-src[data-src="system"]::before { background: var(--ink-3); }
.hubpage .st-fdisc > summary { display: none; }
.hubpage .st-acc-routes { margin: 0 0 12px; max-width: 100%; overflow-x: auto; }
@media (max-width: 760px) {
  .hubpage .st-fdisc { margin-bottom: 12px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--rule-2); }
  .hubpage .st-fdisc > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; font-weight: 700; cursor: pointer; list-style: none; }
  .hubpage .st-fdisc > summary::-webkit-details-marker { display: none; }
  .hubpage .st-fdisc > summary::after { content: "+"; margin-left: auto; font: 700 16px/1 var(--f-mono); color: var(--gold-ink); }
  .hubpage .st-fdisc[open] > summary::after { content: "−"; }
  .hubpage .st-fdisc > form { padding: 0 12px 12px; }
}
.st-pill[data-s="requested"] { color: var(--warn); }

/* U12 · admin: 32px+ radio targets, disabled actions, friendly lists with raw text tucked away */
.hubpage .st-chiprad { min-height: 40px; cursor: pointer; }
.hubpage .st-radio input[type="radio"] { width: 20px; height: 20px; }
.hubpage .st-chiprad:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.hubpage .st-rawlog, .hubpage .st-bk + .st-tech { margin-top: 12px; }
.hubpage .st-mods .st-sub { max-width: 60ch; }

/* FU6 · compact rows (player Activity, Block history last 24 h): one line on desktop, two on phones; repeats folded "×N" */
.hubpage .st-crows { list-style: none; margin: 0; padding: 0; display: grid; }
.hubpage .st-crows > li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 14px; min-height: 40px;
  padding: 3px 10px; border-bottom: 1px solid var(--rule-2); }
.hubpage .st-crows > li:nth-child(even) { background: color-mix(in srgb, var(--ghost-h) 70%, transparent); }
.hubpage .st-cr-t { min-width: 0; color: var(--ink); overflow-wrap: anywhere; line-height: 1.4; }
.hubpage .st-cr-n { color: var(--gold-ink); font-weight: 700; }
.hubpage .st-cr-m { font-size: 14px; white-space: nowrap; }
.hubpage .st-cr-ms { display: none; }
.hubpage .st-cr-xyz { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; white-space: nowrap; }
.hubpage .st-cr-xyz a { display: inline-flex; align-items: center; min-height: 32px; }
@media (max-width: 760px) {
  .hubpage .st-crows > li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t m" "x x"; padding: 4px 8px; column-gap: 10px; align-items: baseline; }
  .hubpage .st-cr-t { grid-area: t; }
  .hubpage .st-cr-m { grid-area: m; }
  .hubpage .st-cr-m[data-short] .st-cr-ml { display: none; }
  .hubpage .st-cr-m[data-short] .st-cr-ms { display: inline; }
  .hubpage .st-cr-xyz { grid-area: x; gap: 12px; }
  .hubpage .st-cr-xyz:empty { display: none; }
}

/* FU7 · access log on phones: 3 lines per entry (what ×N | when / target · by staff / detail) */
.hubpage .st-access .st-cr-n { color: var(--gold-ink); font-weight: 700; }
.hubpage .st-acc-s { display: none; }
@media (max-width: 760px) {
  .hubpage .st-access tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 2px; padding: 8px 12px;
    margin-bottom: 6px; box-shadow: inset 0 0 0 1px var(--rule-2); }
  .hubpage .st-access td { width: auto; min-height: 0; padding: 0; border: 0; }
  .hubpage .st-access td::before { content: none; }
  .hubpage .st-access td[data-l="What"] { grid-column: 1; grid-row: 1; }
  .hubpage .st-access td[data-l="When"] { grid-column: 2; grid-row: 1; justify-self: end; font-size: 14px; color: var(--ink-3); text-align: right; white-space: nowrap; }
  .hubpage .st-access .st-acc-l { display: none; }
  .hubpage .st-access .st-acc-s { display: inline; }
  .hubpage .st-acc-routes { flex-wrap: nowrap; width: 100%; }
  .hubpage .st-acc-routes .st-segb { flex: none; white-space: nowrap; }
  .hubpage .st-access td[data-l="Target"] { grid-column: 1; grid-row: 2; font-size: 14px; }
  .hubpage .st-access td[data-l="Target"][data-empty] { display: none; }
  .hubpage .st-access td[data-l="Staff"] { grid-column: 2; grid-row: 2; justify-self: end; font-size: 14px; color: var(--ink-2); }
  .hubpage .st-access tr[data-notarget] td[data-l="Staff"] { grid-column: 1 / -1; justify-self: start; }
  .hubpage .st-access td[data-l="Staff"]::before { content: "by "; position: static; width: auto; font: inherit; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
  .hubpage .st-access td[data-l="Detail"] { grid-column: 1 / -1; grid-row: 3; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
  .hubpage .st-access td[data-l="Detail"][data-empty] { display: none; }
}

/* FU8 · polish: module id in small mono beside the friendly name; player + Activity sub-tabs scroll sideways on phones */
.hubpage .st-modid { font-size: 14px; font-weight: 400; color: var(--ink-3); }
@media (max-width: 760px) {
  .hubpage .st-pv .st-seg, .hubpage .st-pvpanel .card-h .st-seg { flex-wrap: nowrap; width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .hubpage .st-pv .st-segb, .hubpage .st-pvpanel .card-h .st-segb { flex: none; white-space: nowrap; }
  .hubpage .st-pv .st-segb:focus-visible, .hubpage .st-pvpanel .card-h .st-segb:focus-visible { outline-offset: -3px; }
}

/* FU5 · inventory history: cause chips (count in small mono) + pager; chips scroll sideways on phones */
.hubpage .st-snap-f { margin: 0 0 12px; }
.hubpage .st-segn { font-size: 13px; font-weight: 500; opacity: .8; }
@media (max-width: 760px) {
  .hubpage .st-snap-f { flex-wrap: nowrap; width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .hubpage .st-snap-f .st-segb { flex: none; white-space: nowrap; }
  .hubpage .st-snap-f .st-segb:focus-visible { outline-offset: -3px; }
}
@media (max-width: 760px) {
  /* FU5: one snapshot = 2 lines (Cause · Items | When / World · Restored) instead of a 5-row card */
  .hubpage .st-snaps thead { display: none; }
  .hubpage .st-snaps tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "c w" "x r"; column-gap: 10px; row-gap: 2px;
    padding: 6px 10px; margin: 0; border-bottom: 1px solid var(--rule-2); box-shadow: none; background: none; }
  .hubpage .st-snaps tr:nth-child(even) { background: color-mix(in srgb, var(--ghost-h) 70%, transparent); }
  .hubpage .st-snaps td { display: block; width: auto; min-height: 0; padding: 0; border: 0; text-align: left; }
  .hubpage .st-snaps td::before { content: none; }
  .hubpage .st-snaps td[data-l="Cause"] { grid-area: c; }
  .hubpage .st-snaps td[data-l="When"] { grid-area: w; justify-self: end; font-size: 14px; color: var(--ink-3); white-space: nowrap; }
  .hubpage .st-snaps td[data-l="Items"] { grid-area: x; font-size: 14px; color: var(--ink-2); }
  .hubpage .st-snaps td[data-l="Items"]::after { content: " items"; font-family: var(--f-body); }
  .hubpage .st-snaps td[data-l="World"] { display: none; }
  .hubpage .st-snaps td[data-l="Restored"] { grid-area: r; justify-self: end; font-size: 14px; }
  .hubpage .st-snaps td[data-l="Restored"]:has(> .muted) { visibility: hidden; }
}
/* disabled pager buttons look disabled (Inventory history / Activity used the disabled attribute, not aria-disabled) */
.st-pager .btn:disabled, .hubpage .st-pager .btn:disabled { opacity: .45; cursor: not-allowed; }

/* P1 (p11): Admin · Website (last 30 days): first-party counts, a row per event with a 30-day strip */
.hubpage .st-web .st-web-k { margin-left: 8px; font: 600 13px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.hubpage .st-web-t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hubpage .st-web-t th, .hubpage .st-web-t td { padding: 9px 6px; text-align: left; vertical-align: top; border-top: 1px solid var(--rule); }
.hubpage .st-web-t thead th { border-top: 0; padding-top: 0; font: 700 12px/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.hubpage .st-web-t tbody th { font-weight: 600; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.hubpage .st-web-t .num { text-align: right; white-space: nowrap; width: 1%; }
.hubpage .st-web-t td.num { font-weight: 700; color: var(--ink); }
.hubpage .st-web-t tr.is-zero td.num, .hubpage .st-web-t tr.is-zero th { color: var(--ink-3); font-weight: 500; }
.hubpage .st-web-d { width: 96px; padding-left: 12px !important; }
.hubpage .st-web-spark { display: block; width: 96px; height: 20px; margin-top: 2px; fill: var(--gold-ink); }
.hubpage .st-web-spark rect.z { fill: var(--rule); }
.hubpage .st-web .st-sub { font-weight: 400; font-size: 13px; }
@media (max-width: 420px) { .hubpage .st-web-d { display: none; } }
/* r2 critique (HUB #5): on phones the status pill flows as one sentence. As a flex row, "Plugin not reporting" and
   "last report 1 h 8 min ago" each wrapped inside their own narrow column. */
@media (max-width: 560px) {
  .hubpage .st-top .st-pulse { display: block; width: 100%; margin: 0; padding: 6px 12px; }
  .hubpage .st-pulse-dot { display: inline-block; margin: 0 10px 0 2px; vertical-align: 1px; }
  .hubpage .st-pulse b { white-space: nowrap; }
}
