/* ==== Part 1 — components from the previous stylesheet (styles.css, kept verbatim except header/footer) ==== */
/* ==========================================================================
   AceV — the single stylesheet
   Direction: "stone and gold". The warm black comes from the spawn's deepslate,
   the antique gold and bronze from the logo, light stone replaces white.
   Nearly square corners, no shadows, dividers instead of cards.

   1. Tokens         5. Header and menu    9. Home
   2. Base           6. Footer and dock   10. Modes
   3. Typography     7. Overlays, toasts  11. Store and checkout
   4. Components     8. Server status     12. Wiki, rules, support, Discord, 404
                                          13. Forum and account
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
  /* Darks: header, bands, footer */
  --night: #14110d;
  --stone-9: #1c1813;
  --stone-8: #26201a;
  --stone-7: #3a3127;
  --stone-6: #5a4d3d;
  --on-dark: #f0e9db;     /* 14.6:1 on --stone-9 */
  --on-dark-2: #c2b69d;   /* 8.8:1 */
  --on-dark-3: #a89c84;   /* 6.5:1 */

  /* Lights: stone instead of white */
  --light: #ebe6dc;
  --light-2: #e2dbcd;
  --paper: #f7f4ee;       /* tables, forms and code only */
  --line: #d2c8b5;
  --line-2: #9a8a6c;      /* field borders: 3:1 */
  --ink: #1c1813;
  --ink-2: #3d3529;
  --muted: #5f5545;       /* 5.9:1 on --light */

  /* Gold and bronze from the logo */
  --gold: #d4b25e;        /* solid fill only on buttons, dark text 8.7:1 */
  --gold-2: #e0c271;
  --bronze: #b08945;      /* details and decorative borders */
  --bronze-ink: #6f4f1f;  /* links on light: 6:1 */

  --green: #2f9e44;
  --green-ink: #1d6b2e;
  --mc-green: #55ff55;
  --red: #d64541;
  --red-ink: #a3261f;
  --mc-red: #ff5555;

  --r: 3px;
  --r-2: 6px;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bricolage Grotesque", var(--font-sans);
  --font-pixel: "Press Start 2P", ui-monospace, monospace;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --container: 1160px;
  --gutter: 16px;
  --header-h: 60px;
  --band: 64px;

  --notch: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px));
}
@media (min-width: 640px) { :root { --gutter: 24px; --band: 80px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --band: 96px; } }

/* Fonts served from this site (Latin subsets, SIL OFL 1.1: public/fonts/LICENSE.txt) */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("/public/fonts/bricolage-grotesque.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/public/fonts/geist.woff2") format("woff2"); }
@font-face { font-family: "Press Start 2P"; font-style: normal; font-weight: 400; font-display: swap; src: url("/public/fonts/press-start-2p.woff2") format("woff2"); }

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--light);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.is-locked { overflow: hidden; }
main { flex: 1 0 auto; outline: none; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--bronze-ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.band--dark :focus-visible, .band--night :focus-visible, .site-header :focus-visible,
.site-footer :focus-visible, .mobile-menu :focus-visible, .dock :focus-visible, .drawer__head :focus-visible,
.modal :focus-visible { outline-color: var(--gold); }
::selection { background: var(--gold); color: var(--ink); }
[hidden] { display: none !important; }

.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 200; padding: .7rem 1rem; background: var(--gold); color: var(--ink); font-weight: 600; transform: translateY(-160%); transition: transform .15s; }
.skip-link:focus { transform: none; color: var(--ink); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.i { width: 20px; height: 20px; flex: none; }
.px { width: 32px; height: 32px; flex: none; color: currentColor; }

code, kbd { font-family: var(--font-mono); font-size: .9em; }
:not(pre) > code { padding: .05em .35em; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink); white-space: nowrap; }
.band--dark :not(pre) > code, .band--night :not(pre) > code { border-color: var(--stone-7); background: var(--stone-8); color: var(--on-dark); }

/* 3. Typography ---------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-optical-sizing: auto; font-weight: 700; letter-spacing: -.02em; color: inherit; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.45rem + 2.2vw, 3.1rem); line-height: 1.04; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.15rem); line-height: 1.1; }
h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }
p + p { margin-top: .85em; }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.55; max-width: 58ch; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* Pixel label: used sparingly, only where it carries information */
.label { display: inline-block; font-family: var(--font-pixel); font-size: .5625rem; line-height: 1.6; letter-spacing: .06em; text-transform: uppercase; color: var(--bronze-ink); }
.band--dark .label, .band--night .label { color: var(--gold); }

/* 4. Components ---------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.band { padding-block: var(--band); }
.band--tight { padding-block: calc(var(--band) * .6); }
.band--light2 { background: var(--light-2); }
.band--dark { background: var(--stone-9); color: var(--on-dark); }
.band--night { background: var(--night); color: var(--on-dark); }
.band--dark a:not(.btn), .band--night a:not(.btn) { color: var(--gold); }
.band--dark a:not(.btn):hover, .band--night a:not(.btn):hover { color: var(--on-dark); }
.band--dark .muted, .band--night .muted { color: var(--on-dark-3); }
.band--dark .lead, .band--night .lead { color: var(--on-dark-2); }


/* Buttons: solid gold only for the main action, outline for the rest */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 44px; padding: .55rem 1.05rem;
  border: 1px solid transparent; border-radius: var(--r);
  background: transparent; color: inherit;
  font-family: var(--font-sans); font-size: .9375rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn .i { width: 18px; height: 18px; }
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: inset 0 -3px 0 rgb(0 0 0 / .22); }
.btn--gold:hover { background: var(--gold-2); color: var(--ink); }
.btn--gold:active { box-shadow: inset 0 -1px 0 rgb(0 0 0 / .22); transform: translateY(1px); }
.btn--line { border-color: var(--line-2); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); color: var(--ink); }
.band--dark .btn--line, .band--night .btn--line, .site-header .btn--line, .site-footer .btn--line, .mobile-menu .btn--line, .dock .btn--line { border-color: var(--stone-6); color: var(--on-dark); }
.band--dark .btn--line:hover, .band--night .btn--line:hover, .site-header .btn--line:hover, .site-footer .btn--line:hover, .mobile-menu .btn--line:hover, .dock .btn--line:hover { border-color: var(--gold); color: var(--on-dark); }
.btn--sm { min-height: 40px; padding: .4rem .8rem; font-size: .875rem; }
.btn--lg { min-height: 50px; padding-inline: 1.3rem; font-size: 1rem; }
.btn--block { width: 100%; white-space: normal; text-align: center; }
.btn__ip { padding: .2rem .45rem; border-radius: 2px; background: rgb(0 0 0 / .12); font-family: var(--font-mono); font-size: .8125rem; font-weight: 500; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .5; cursor: not-allowed; }

.swap { display: inline-grid; width: 18px; height: 18px; flex: none; }
.swap .i { grid-area: 1 / 1; width: 18px; height: 18px; transition: opacity .15s; }
.swap .i-check, .is-copied .swap .i-copy { opacity: 0; }
.is-copied .swap .i-check { opacity: 1; }
.when-copied { display: none; }
.is-copied .when-copied { display: inline; }
.is-copied .when-idle { display: none; }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r); background: transparent; color: inherit; }
.icon-btn:hover { border-color: var(--ink); }
.band--dark .icon-btn, .mobile-menu .icon-btn, .drawer__head .icon-btn, .modal .icon-btn { border-color: var(--stone-6); }
.band--dark .icon-btn:hover, .mobile-menu .icon-btn:hover, .drawer__head .icon-btn:hover, .modal .icon-btn:hover { border-color: var(--gold); }

/* Text link with arrow: replaces secondary CTAs */
.go { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-weight: 600; text-decoration: none; }
.go .i { width: 17px; height: 17px; transition: transform .15s; }
.go:hover .i { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.25rem; margin-top: 1.5rem; }

/* Inline list with separators (instead of pills) */
.meta { display: flex; flex-wrap: wrap; gap: .25rem 0; margin: 0; padding: 0; list-style: none; font-size: .9375rem; }
.meta li { display: inline-flex; align-items: center; gap: .4rem; }
.meta li + li::before { content: ""; width: 4px; height: 4px; margin: 0 .7rem; background: var(--bronze); }
.meta .i { width: 16px; height: 16px; color: var(--bronze); }

/* Copyable field */
.copy-field { display: inline-flex; align-items: stretch; max-width: 100%; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper); }
.copy-field code { display: flex; align-items: center; min-width: 0; padding: 0 .85rem !important; border: 0 !important; background: none !important; font-size: .9375rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.copy-field__btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .85rem; border: 0; border-left: 1px solid var(--line-2); background: transparent; font-size: .875rem; font-weight: 600; }
.copy-field__btn:hover { background: var(--light-2); }

/* Commands, shown as chat lines */
.cmd-list { margin: 0; padding: 0; list-style: none; }
.cmd { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "code copy" "desc copy"; align-items: center; gap: .1rem .75rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.cmd:first-child { border-top: 0; }
.cmd__code { grid-area: code; justify-self: start; padding: 0 !important; border: 0 !important; background: none !important; font-size: .9375rem; font-weight: 700; color: var(--ink) !important; white-space: normal !important; overflow-wrap: anywhere; }
.cmd__desc { grid-area: desc; color: var(--muted); font-size: .9375rem; }
.cmd__copy { grid-area: copy; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid transparent; border-radius: var(--r); background: none; color: var(--muted); }
.cmd__copy:hover { border-color: var(--line-2); color: var(--ink); }
@media (min-width: 640px) {
  .cmd { grid-template-columns: minmax(170px, 34%) 1fr auto; grid-template-areas: "code desc copy"; gap: 1rem; }
}

/* Breadcrumb */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .2rem; margin: 0 0 1.25rem; padding: 0; list-style: none; font-size: .875rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: .2rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .2rem; opacity: .6; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; color: inherit; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); }
.band--dark .breadcrumb li, .band--dark .breadcrumb a { color: var(--on-dark-3) !important; }
.band--dark .breadcrumb [aria-current] { color: var(--on-dark); }

/* Inline note (payments not live, etc.) */
.note { display: flex; gap: .6rem; align-items: flex-start; padding-left: .9rem; border-left: 3px solid var(--bronze); font-size: .9375rem; }
.note .i { width: 18px; height: 18px; margin-top: 3px; color: var(--bronze-ink); }
.band--dark .note .i { color: var(--gold); }

/* Pixel icons in their stepped frame (outline only) */
.px-tile { position: relative; isolation: isolate; display: inline-grid; place-items: center; width: 52px; height: 52px; background: var(--bronze); clip-path: var(--notch); color: var(--ink); }
.px-tile::before { content: ""; position: absolute; inset: 2px; z-index: -1; background: var(--light); clip-path: var(--notch); }
.px-tile .px { width: 32px; height: 32px; }
.band--dark .px-tile { background: var(--gold); color: var(--on-dark); }
.band--dark .px-tile::before { background: var(--stone-9); }

/* Ranks: chat prefix colours */
.rank-tag { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; min-width: 64px; padding: .5rem .6rem; background: var(--tag, var(--line-2)); color: var(--tag-ink, var(--ink)); font-family: var(--font-pixel); font-size: .625rem; line-height: 1; clip-path: var(--notch); }
.rank-tag::before { content: ""; position: absolute; inset: 2px; z-index: -1; background: var(--tag-bg, var(--paper)); clip-path: var(--notch); }
.rank-tag--vip { --tag: #3f8a52; --tag-ink: #1d5a2c; }
.rank-tag--vipp { --tag: var(--bronze); --tag-ink: var(--ink); }
.rank-tag--legend { --tag: var(--ink); --tag-ink: var(--ink); }
.band--dark .rank-tag { --tag-bg: var(--stone-9); }
.band--dark .rank-tag--vip { --tag: #55c26b; --tag-ink: #7ee08f; }
.band--dark .rank-tag--vipp { --tag: var(--gold); --tag-ink: var(--gold); }
.band--dark .rank-tag--legend { --tag: var(--on-dark-2); --tag-ink: var(--on-dark); }

/* Server photos */
.shot { position: relative; margin: 0; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); }
.shot figcaption { display: flex; flex-wrap: wrap; gap: .3rem .7rem; align-items: baseline; margin-top: .6rem; font-size: .875rem; color: var(--muted); }
.band--dark .shot figcaption { color: var(--on-dark-3); }

/* Placeholder for screenshots still to come: clearly marked, easy to replace */
.shot--placeholder .shot__frame { display: grid; place-content: center; justify-items: center; gap: .75rem; aspect-ratio: 16 / 9; border: 2px dashed var(--stone-6); border-radius: var(--r); color: var(--on-dark-3); text-align: center; }
.shot--placeholder .shot__frame .px { width: 56px; height: 56px; color: var(--gold); }
.shot--placeholder .shot__frame p { font-family: var(--font-pixel); font-size: .5625rem; letter-spacing: .06em; text-transform: uppercase; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.table-wrap:focus-visible { outline-offset: 4px; }
table { border-collapse: collapse; }
.ledger { width: 100%; font-size: .9375rem; }
.ledger th, .ledger td { padding: .8rem .9rem .8rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.ledger thead th { padding-top: 0; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); }
.ledger tbody th { font-weight: 600; }
.ledger td:last-child, .ledger th:last-child { padding-right: 0; }
.band--dark .ledger th, .band--dark .ledger td { border-bottom-color: var(--stone-7); }
.band--dark .ledger thead th { color: var(--on-dark-3); border-bottom-color: var(--gold); }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; padding: .8rem 0; font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; list-style: none; cursor: pointer; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--bronze-ink); }
.faq__chev { width: 20px; height: 20px; transition: transform .2s; color: var(--bronze); }
.faq[open] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 2.5rem 1.2rem 0; color: var(--ink-2); }

/* Inline "see also" link list */
.see-also { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.see-also__title { font-weight: 600; }
.see-also a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }

/* Hotbar: the modes as the item bar */
.hotbar { display: inline-grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; max-width: 100%; background: var(--night); border: 1px solid var(--stone-7); }
.hotbar__slot { display: grid; justify-items: center; align-content: center; gap: .35rem; width: clamp(64px, 18vw, 92px); aspect-ratio: 1; border: 2px solid var(--stone-7); background: var(--stone-8); color: var(--on-dark-2) !important; font-size: .6875rem; font-weight: 500; text-decoration: none; transition: border-color .15s, color .15s; }
.hotbar__slot .px { width: 42%; height: auto; aspect-ratio: 1; color: var(--on-dark); }
.hotbar__slot:hover { border-color: var(--stone-6); color: var(--on-dark) !important; }
.hotbar__slot[aria-current] { border-color: var(--gold); color: var(--gold) !important; }
.hotbar__slot[aria-current] .px { color: var(--gold); }

/* 5. Mobile menu (kept: main.js drives it) */
.mobile-menu { position: fixed; inset: 0; z-index: 120; }
.mobile-menu__backdrop { position: absolute; inset: 0; background: rgb(10 8 6 / .6); opacity: 0; transition: opacity .2s; }
.mobile-menu__panel { position: absolute; inset: 0 0 0 auto; display: flex; flex-direction: column; gap: 1rem; width: min(400px, 100%); padding: .5rem var(--gutter) calc(1.25rem + env(safe-area-inset-bottom)); background: var(--stone-9); color: var(--on-dark); overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; }
.mobile-menu.is-open .mobile-menu__backdrop { opacity: 1; }
.mobile-menu.is-open .mobile-menu__panel { transform: none; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.mobile-menu__list { margin: 0; padding: 0; list-style: none; }
.mobile-menu__list a { display: flex; align-items: center; gap: .85rem; min-height: 54px; border-bottom: 1px solid var(--stone-7); color: var(--on-dark); font-family: var(--font-display); font-size: 1.1875rem; font-weight: 600; text-decoration: none; }
.mobile-menu__list a .i { color: var(--on-dark-3); }
.mobile-menu__list a[aria-current] { color: var(--gold); }
.mobile-menu__list a[aria-current] .i { color: var(--gold); }
.mobile-menu__arrow { margin-left: auto; width: 18px; height: 18px; }
.mobile-menu__actions { display: grid; gap: .6rem; margin-top: auto; }

/* 7. Overlays and toasts ------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: var(--gutter); }
.modal__backdrop, .drawer__backdrop { position: absolute; inset: 0; background: rgb(10 8 6 / .6); opacity: 0; transition: opacity .2s; }
.modal__panel { position: relative; width: min(620px, 100%); max-height: calc(100dvh - 2 * var(--gutter)); overflow: auto; padding: 1.25rem; border: 1px solid var(--stone-7); border-radius: var(--r-2); background: var(--stone-9); color: var(--on-dark); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.modal.is-open .modal__backdrop, .drawer.is-open .drawer__backdrop { opacity: 1; }
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.modal__head h2 { font-size: 1.25rem; }

.toast-region { position: fixed; z-index: 150; left: var(--gutter); right: var(--gutter); bottom: calc(16px + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: .5rem; pointer-events: none; }
body.dock-on .toast-region { bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .toast-region { left: auto; right: 24px; bottom: 24px; justify-items: end; } body.dock-on .toast-region { bottom: 24px; } }
.toast { display: flex; align-items: flex-start; gap: .7rem; width: min(380px, 100%); padding: .8rem .95rem; border: 1px solid var(--stone-6); border-left: 3px solid var(--gold); border-radius: var(--r); background: var(--stone-9); color: var(--on-dark); pointer-events: auto; animation: toast-in .2s ease both; }
.toast.is-leaving { animation: toast-out .2s ease both; }
.toast__icon { display: grid; place-items: center; width: 24px; height: 24px; flex: none; color: var(--gold); }
.toast__icon .i { width: 18px; height: 18px; }
.toast--error { border-left-color: var(--mc-red); }
.toast--error .toast__icon { color: var(--mc-red); }
.toast__title { font-weight: 600; line-height: 1.3; }
.toast__desc { color: var(--on-dark-2); font-size: .875rem; margin-top: .1rem; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

/* 8. Server status ------------------------------------------------------- */
.status-dot { position: relative; width: 10px; height: 10px; flex: none; background: var(--stone-6); }
[data-state="online"] .status-dot { background: var(--green); }
[data-state="offline"] .status-dot { background: var(--red); }
[data-state="loading"] .status-dot { animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .3; } }
[data-state="online"] [data-status-text] { color: var(--green-ink); }
[data-state="offline"] [data-status-text] { color: var(--red-ink); }
.band--dark [data-state="online"] [data-status-text], .srv[data-state="online"] [data-status-text] { color: var(--mc-green); }
.band--dark [data-state="offline"] [data-status-text], .srv[data-state="offline"] [data-status-text] { color: var(--mc-red); }

/* Ping bars, as in Minecraft's server list */
.ping { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.ping i { width: 3px; background: var(--stone-6); }
.ping i:nth-child(1) { height: 20%; } .ping i:nth-child(2) { height: 40%; } .ping i:nth-child(3) { height: 60%; } .ping i:nth-child(4) { height: 80%; } .ping i:nth-child(5) { height: 100%; }
[data-state="online"] .ping i { background: var(--mc-green); }
[data-state="offline"] .ping i, [data-state="error"] .ping i { background: var(--mc-red); opacity: .55; }
[data-state="loading"] .ping i { animation: ping-scan 1s steps(1) infinite; }
[data-state="loading"] .ping i:nth-child(2) { animation-delay: .2s; } [data-state="loading"] .ping i:nth-child(3) { animation-delay: .4s; }
[data-state="loading"] .ping i:nth-child(4) { animation-delay: .6s; } [data-state="loading"] .ping i:nth-child(5) { animation-delay: .8s; }
@keyframes ping-scan { 0%, 19% { background: var(--on-dark-2); } 20%, 100% { background: var(--stone-6); } }

/* 9. Home ----------------------------------------------------------------- */
.hero { background: var(--stone-9); color: var(--on-dark); }
.hero__grid { display: grid; }
.hero__media { position: relative; margin: 0; }
.hero__media img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero__media figcaption { position: absolute; left: var(--gutter); bottom: 12px; padding: .35rem .5rem; background: rgb(20 17 13 / .82); color: var(--on-dark-2); font-family: var(--font-pixel); font-size: .5rem; letter-spacing: .06em; text-transform: uppercase; }
.hero__text { padding: 32px var(--gutter) 40px; }
.hero__kicker { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .9375rem; color: var(--on-dark-3); }
.hero__kicker strong { color: var(--gold); font-weight: 600; }
.hero h1 { margin-top: .9rem; max-width: 17ch; }
.hero .lead { margin-top: 1rem; color: var(--on-dark-2); }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 47fr) minmax(0, 53fr); min-height: 600px; }
  .hero__text { order: -1; align-self: center; padding: 56px 48px 56px max(var(--gutter), calc((100vw - var(--container)) / 2)); }
  .hero__media img { aspect-ratio: auto; position: absolute; inset: 0; }
  .hero__media figcaption { left: 16px; bottom: 16px; }
}

/* The server entry in the multiplayer list */
.srv { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: .3rem .9rem; margin-top: 1.75rem; padding: .7rem .85rem; border: 2px solid var(--stone-6); background: var(--night); font-family: var(--font-pixel); font-size: .625rem; line-height: 1.7; max-width: 560px; }
.srv__icon { grid-row: span 2; width: 52px; height: 52px; }
.srv__name { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .6rem; color: #fff; font-size: .75rem; }
.srv__name [data-status-text] { font-size: .5rem; color: var(--on-dark-3); }
.srv__stats { grid-row: 1; grid-column: 3; display: flex; align-items: center; gap: .6rem; color: #aaa; white-space: nowrap; }
.srv__motd { grid-column: 2 / -1; color: #aaa; overflow-wrap: anywhere; }
.srv__motd [data-status-motd]:not([hidden]) + .srv__fallback { display: none; }
.srv__ip { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .45rem; padding-top: .6rem; border-top: 1px solid var(--stone-7); font-family: var(--font-mono); font-size: .9375rem; color: var(--on-dark); line-height: 1.3; }
.srv__ip-label { color: var(--on-dark-3); font-family: var(--font-sans); font-size: .8125rem; margin-right: .5rem; }
.hero__more { display: flex; flex-wrap: wrap; gap: .1rem 1.5rem; margin-top: .9rem; }
@media (max-width: 479px) { .srv { grid-template-columns: 40px minmax(0, 1fr) auto; } .srv__icon { width: 40px; height: 40px; } .srv__ip .btn { width: 100%; } }

/* Four things the base game doesn't have: a row of facts, not cards */
.facts { border-top: 1px solid var(--stone-7); background: var(--stone-9); color: var(--on-dark); }
.facts__list { display: grid; margin: 0; padding: 0; list-style: none; }
.facts__item { display: grid; grid-template-columns: auto 1fr; gap: .15rem .9rem; padding: 1.25rem 0; border-bottom: 1px solid var(--stone-7); }
.facts__item:last-child { border-bottom: 0; }
.facts__item .px { grid-row: span 2; width: 36px; height: 36px; color: var(--gold); }
.facts__item h3 { font-size: 1rem; letter-spacing: 0; }
.facts__item p { color: var(--on-dark-3); font-size: .9375rem; }
@media (min-width: 720px) { .facts__list { grid-template-columns: 1fr 1fr; column-gap: 2rem; } .facts__item:nth-last-child(2) { border-bottom: 0; } }
@media (min-width: 1100px) {
  .facts__list { grid-template-columns: repeat(4, 1fr); column-gap: 0; }
  .facts__item { padding: 1.6rem 1.5rem; border-bottom: 0; border-left: 1px solid var(--stone-7); }
  .facts__item:first-child { padding-left: 0; border-left: 0; }
}

/* How to join: numbered steps in a row, separated by lines */
.join__grid { display: grid; gap: 2rem 4rem; }
.join__head p { margin-top: .9rem; color: var(--muted); max-width: 34ch; }
.join__steps { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.join__step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: .25rem 1.25rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.join__n { grid-row: span 3; font-family: var(--font-pixel); font-size: 1.5rem; line-height: 1.2; color: var(--bronze); }
.join__step h3 { font-size: 1.1875rem; }
.join__step p { color: var(--ink-2); }
.join__step .copy-field, .join__step .go, .join__step .join__ver { margin-top: .6rem; justify-self: start; }
@media (min-width: 900px) {
  .join__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .join__head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
  .join__step { grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; }
  .join__n { grid-row: span 2; }
  .join__step .copy-field, .join__step .go, .join__step .join__ver { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
}

/* Modes on the home page: Survivalia photo and picker */
.modes-home__grid { display: grid; gap: 2rem 3.5rem; align-items: start; }
.modes-home__head h2 { max-width: 16ch; }
.modes-home__head p { margin-top: .8rem; color: var(--muted); }
@media (min-width: 960px) { .modes-home__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }

.mode-list { margin: 1.5rem 0 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.mode-list li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: .1rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.mode-list .px { grid-row: span 2; width: 36px; height: 36px; color: var(--ink); }
.mode-list h3 { font-size: 1.1875rem; }
.mode-list h3 a { color: var(--ink); text-decoration: none; }
.mode-list h3 a::after { content: ""; position: absolute; inset: 0; }
.mode-list h3 a:focus-visible { outline: none; }
.mode-list li:has(a:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.mode-list p { grid-column: 2; color: var(--muted); font-size: .9375rem; }
.mode-list li > .i { grid-row: 1 / span 2; grid-column: 3; color: var(--bronze); transition: transform .15s, color .15s; }
.mode-list li:hover > .i { transform: translateX(3px); color: var(--ink); }
.mode-list li:hover h3 a { text-decoration: underline; text-decoration-color: var(--bronze); text-decoration-thickness: 2px; }

/* Community */
.community__grid { display: grid; gap: 2.5rem 4rem; }
.community__text p { margin-top: .9rem; color: var(--on-dark-2); max-width: 48ch; }
.dc-count { display: flex; align-items: center; gap: .6rem; margin-top: 1.1rem !important; font-size: .9375rem; color: var(--on-dark) !important; }
.dc-count .status-dot { background: var(--green); }
.channel-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--stone-7); }
.channel-list li { display: flex; align-items: center; gap: .8rem; min-height: 52px; border-bottom: 1px solid var(--stone-7); color: var(--on-dark); }
.channel-list .i { width: 18px; height: 18px; color: var(--gold); }
.channel-list span { color: var(--on-dark-3); font-size: .875rem; margin-left: auto; }
@media (min-width: 900px) { .community__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; } }

/* Ranks on the home page */
.ranks-home__grid { display: grid; gap: 2rem 4rem; align-items: start; }
.ranks-home__head p { margin-top: .8rem; color: var(--muted); max-width: 40ch; }
@media (min-width: 900px) { .ranks-home__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.rank-rows { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.rank-row { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "tag price" "perks perks"; align-items: center; gap: .6rem 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.rank-row .rank-tag { grid-area: tag; justify-self: start; }
.rank-row__perks { grid-area: perks; color: var(--ink-2); font-size: .9375rem; }
.rank-row__price { grid-area: price; justify-self: end; white-space: nowrap; }
.rank-row__price strong { font-family: var(--font-display); font-size: 1.3rem; }
.rank-row__price span { color: var(--muted); font-size: .875rem; }
.rank-row__pop { display: block; margin-bottom: .2rem; color: var(--bronze-ink); font-size: .8125rem; font-weight: 600; }
@media (min-width: 640px) { .rank-row { grid-template-columns: 100px minmax(0, 1fr) auto; grid-template-areas: "tag perks price"; gap: 1.25rem; } }

/* Status + FAQ side by side */
.status-faq { display: grid; gap: 3rem 4rem; }
@media (min-width: 960px) { .status-faq { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.status-faq h2 { margin-bottom: 1.1rem; }
.status-kv { display: grid; grid-template-columns: auto 1fr; margin: 0; border-top: 2px solid var(--ink); }
.status-kv dt, .status-kv dd { margin: 0; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.status-kv dt { padding-right: 1.5rem; color: var(--muted); font-size: .9375rem; }
.status-kv dd { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.status-kv .num { font-family: var(--font-pixel); font-size: .75rem; font-weight: 400; }
.status-kv__max { color: var(--muted); }
.status-refresh { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; margin-left: auto; padding: 0 .6rem; border: 1px solid var(--line-2); border-radius: var(--r); background: none; font-size: .8125rem; font-weight: 500; }
.status-refresh:hover { border-color: var(--ink); }
.status-refresh .i { width: 15px; height: 15px; }
[data-status].is-refreshing .status-refresh .i { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-motd { margin-top: 1rem; padding-left: .8rem; border-left: 3px solid var(--bronze); font-family: var(--font-mono); font-size: .875rem; color: var(--ink-2); }
.status-error { margin-top: 1rem; color: var(--muted); font-size: .9375rem; }
.status-src { margin-top: 1rem; color: var(--muted); font-size: .875rem; }

.history { margin-top: 1.75rem; }
.history h3 { font-size: 1rem; }
.history > p { margin-top: .2rem; color: var(--muted); font-size: .875rem; }
.history__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: .9rem 0 0; padding: 0; list-style: none; }
.history__day { display: grid; justify-items: center; gap: .3rem; width: 100%; min-height: 70px; padding: .5rem .15rem; border: 1px solid var(--line); border-radius: var(--r); background: transparent; font-size: .75rem; color: var(--muted); }
button.history__day:hover { border-color: var(--ink); }
.history__day strong { color: var(--ink); font-size: .8125rem; }
.history__block { width: 14px; height: 14px; border: 2px solid var(--line-2); }
.history__day--on .history__block { border-color: var(--green); background: var(--green); }
.history__day--off .history__block { border-color: var(--red); background: var(--red); }
.history__legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: .8rem 0 0; padding: 0; list-style: none; font-size: .8125rem; color: var(--muted); }
.history__legend li { display: inline-flex; align-items: center; gap: .4rem; }
.history__key { width: 10px; height: 10px; border: 2px solid var(--line-2); }
.history__key--on { border-color: var(--green); background: var(--green); }
.history__key--off { border-color: var(--red); background: var(--red); }

.hours { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 1rem 0 0; padding: 0; list-style: none; }
@media (min-width: 520px) { .hours { grid-template-columns: repeat(8, 1fr); } }
.hours li { padding: .4rem .15rem; border: 1px solid var(--stone-7); text-align: center; font-size: .75rem; color: var(--on-dark-3); }
.hours li strong { display: block; color: var(--on-dark); font-size: .75rem; }
.hours .is-on { border-color: var(--mc-green); color: var(--mc-green); }
.hours .is-off { border-color: var(--mc-red); color: var(--mc-red); }
.day-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--stone-7); border: 1px solid var(--stone-7); }
.day-summary div { padding: .7rem; background: var(--stone-9); }
.day-summary dt { font-size: .75rem; color: var(--on-dark-3); }
.day-summary dd { margin: 0; font-weight: 600; }
.day-note { margin-top: 1rem; font-size: .8125rem; color: var(--on-dark-3); }

/* 10. Modes ------------------------------------------------------------- */
/* Title band of inner pages: compact, dark */
.page-band { padding-block: 28px 44px; }
.page-band__grid { display: grid; gap: 2rem 4rem; align-items: end; }
.page-band h1 { max-width: 20ch; }
.page-band .lead { margin-top: 1rem; }
@media (min-width: 960px) { .page-band { padding-block: 32px 56px; } .page-band__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

/* Modes overview */
.modes-band__grid { display: grid; gap: 2rem 4rem; align-items: center; }
.modes-band .hotbar { margin-top: 1.75rem; }
@media (min-width: 960px) { .modes-band__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }

.mode-ledger { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.mode-ledger__row { position: relative; display: grid; gap: 1rem 2.5rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.mode-ledger__visual .shot img { aspect-ratio: 16 / 10; }
.mode-ledger__icon { display: grid; place-items: center; aspect-ratio: 16 / 10; border: 1px solid var(--line); color: var(--ink); }
.mode-ledger__icon .px { width: 72px; height: 72px; }
.mode-ledger h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); }
.mode-ledger h2 a { color: var(--ink); text-decoration: none; }
.mode-ledger h2 a:hover { text-decoration: underline; text-decoration-color: var(--bronze); text-decoration-thickness: 2px; }
.mode-ledger__body > p { margin-top: .6rem; color: var(--ink-2); max-width: 52ch; }
.mode-ledger .meta { margin-top: .9rem; color: var(--muted); }
.mode-ledger__feats { margin: 1rem 0 0; padding: 0; list-style: none; columns: 2; column-gap: 1.5rem; font-size: .9375rem; }
.mode-ledger__feats li { break-inside: avoid; padding: .2rem 0 .2rem 1rem; position: relative; }
.mode-ledger__feats li::before { content: ""; position: absolute; left: 0; top: .75em; width: 5px; height: 5px; background: var(--bronze); }
@media (min-width: 860px) {
  .mode-ledger__row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
  .mode-ledger__icon { aspect-ratio: auto; height: 100%; min-height: 200px; }
}

/* Single mode page */
.mode-hero { padding-block: 28px 0; }
.mode-hero__grid { display: grid; gap: 2rem 4rem; align-items: end; }
.mode-hero h1 { font-size: clamp(2.5rem, 1.8rem + 3.4vw, 4.25rem); }
.mode-hero .h1-sub { display: block; margin-top: .5rem; font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); line-height: 1.25; letter-spacing: -.01em; color: var(--on-dark-2); font-weight: 600; max-width: 26ch; }
.mode-hero .lead { margin-top: 1.1rem; }
.mode-hero .meta { margin-top: 1.1rem; color: var(--on-dark-2); }
.mode-hero .meta .i { color: var(--gold); }
.mode-hero .actions { margin-top: 1.5rem; }
.mode-hero__visual { margin-top: 2.25rem; }
.mode-hero__visual .shot img { border-radius: 0; aspect-ratio: 21 / 9; }
.mode-hero__visual .shot--placeholder .shot__frame { aspect-ratio: auto; min-height: 220px; border-radius: 0; }
.mode-hero__visual figcaption { padding-bottom: 1rem; }
@media (max-width: 719px) { .mode-hero__visual .shot img { aspect-ratio: 16 / 10; } .mode-hero__visual .shot--placeholder .shot__frame { min-height: 160px; } }
@media (min-width: 960px) { .mode-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } .mode-hero__grid > :last-child { padding-bottom: .3rem; } }
.mode-hero__visual--placeholder { margin-top: 2rem; padding-bottom: 2.5rem; }

/* Survival: labels on the four areas of the aerial photo */
.shot__labels { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.shot__labels li { position: absolute; transform: translate(-50%, -50%); padding: .35rem .5rem; background: rgb(20 17 13 / .85); color: #fff; font-family: var(--font-pixel); font-size: .5rem; letter-spacing: .04em; white-space: nowrap; }
@media (min-width: 720px) { .shot__labels li { font-size: .5625rem; } }

/* Feature list: two columns of rows, no cards */
.feature-list { display: grid; margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.feature-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: .2rem 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.feature-list .px { grid-row: span 2; width: 36px; height: 36px; color: var(--ink); }
.feature-list h3 { font-size: 1.0625rem; }
.feature-list p { color: var(--ink-2); font-size: .9375rem; }
@media (min-width: 760px) { .feature-list { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }

/* Skyblock: growth path */
.path { margin: 0; padding: 0; list-style: none; counter-reset: path; max-width: 760px; }
.path li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: .2rem 1.25rem; padding-bottom: 1.75rem; counter-increment: path; }
.path li::before { content: counter(path); grid-row: span 3; display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--bronze); background: var(--light); font-family: var(--font-pixel); font-size: .75rem; color: var(--ink); position: relative; z-index: 1; }
.path li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line-2); }
.path h3 { font-size: 1.1875rem; padding-top: .55rem; }
.path p { color: var(--ink-2); }
.path p code { margin-left: .15rem; }

/* Creative and PvP: "tool, what it's for, command" tables */
.spec .ledger tbody th { width: 26%; font-family: var(--font-display); font-size: 1.0625rem; }
.spec .ledger td:last-child { white-space: nowrap; }
.spec__none { color: var(--muted); }
@media (max-width: 639px) {
  .spec .ledger thead { display: none; }
  .spec .ledger tr { display: grid; gap: .2rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .spec .ledger th, .spec .ledger td { padding: 0; border: 0; width: auto !important; white-space: normal !important; }
}

.mode-split { display: grid; gap: 2.5rem 4rem; }
@media (min-width: 960px) { .mode-split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.mode-split h2 { font-size: 1.375rem; margin-bottom: 1rem; }
.console { border-top: 2px solid var(--ink); }
.join-steps { margin: 0; padding: 0; list-style: none; counter-reset: j; border-top: 2px solid var(--ink); }
.join-steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: .15rem .9rem; padding: .9rem 0; border-bottom: 1px solid var(--line); counter-increment: j; color: var(--ink-2); font-size: .9375rem; }
.join-steps li::before { content: counter(j); grid-row: span 3; font-family: var(--font-pixel); font-size: .875rem; color: var(--bronze); padding-top: .2rem; }
.join-steps strong { color: var(--ink); }
.join-steps .copy-field { margin-top: .5rem; justify-self: start; }

.mode-foot { display: grid; gap: 1.75rem 3rem; align-items: center; }
.mode-foot h2 { font-size: 1.25rem; margin-bottom: .9rem; }
.mode-foot__ranks { padding-left: 1.25rem; border-left: 3px solid var(--gold); color: var(--on-dark-2); }
.mode-foot__ranks strong { color: var(--on-dark); }
.mode-foot__ranks .go { margin-top: .3rem; }
@media (min-width: 900px) { .mode-foot { grid-template-columns: auto minmax(0, 1fr); gap: 3rem 5rem; } }

/* Section titles and introduced tables */
.sec-title { max-width: 24ch; }
.sec-intro { margin: .6rem 0 1.5rem; max-width: 60ch; }
.sec-title + .feature-list { margin-top: 1.5rem; }

/* Overview rows without a screenshot */
.mode-ledger__row--text { grid-template-columns: 64px minmax(0, 1fr) !important; align-items: start !important; }
.mode-ledger__row--text .mode-ledger__icon { width: 64px; height: 64px; aspect-ratio: auto; min-height: 0; border: 0; }
.mode-ledger__row--text .mode-ledger__icon .px { width: 38px; height: 38px; }

/* Full-width photo in the header (Survival): fixed 16:9 so the labels stay on their areas */
.shot--full .shot__img { position: relative; }
.mode-hero__visual--survival .shot img { aspect-ratio: 16 / 9 !important; }

/* Skyblock: title on the left, path on the right */
.path-layout { display: grid; gap: 2rem 4rem; }
.path-layout__head p { margin-top: .8rem; max-width: 36ch; }
@media (min-width: 900px) { .path-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } .path-layout__head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }

.mode-foot__ranks { color: var(--ink-2) !important; }
.mode-foot__ranks strong { color: var(--ink) !important; }
.mode-foot__ranks .see-also { margin-top: .4rem; }

/* 11. Store and checkout ------------------------------------------------ */
.store-band__grid { display: grid; gap: 2rem 4rem; align-items: center; }
.store-band .note { margin-top: 1.5rem; color: var(--on-dark-2); }
@media (min-width: 960px) { .store-band__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }

.chat-preview { margin: 0; }
.chat-preview__screen { position: relative; }
.chat-preview img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; }
.chat-preview__log { position: absolute; left: 10px; right: 10px; bottom: 10px; display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.chat-preview__log li { padding: .4rem .55rem; background: rgb(0 0 0 / .6); color: #fff; font-family: var(--font-pixel); font-size: clamp(.5rem, .45rem + .3vw, .625rem); line-height: 1.7; text-shadow: 2px 2px 0 rgb(0 0 0 / .45); }
.pfx-vip { color: #55ff55; } .pfx-vipp { color: #55ffff; } .pfx-legend { color: #ffaa00; }
.chat-preview figcaption { margin-top: .6rem; color: var(--on-dark-3); font-size: .8125rem; }

/* Ranks table: it is the catalogue */
.ranks-table { width: 100%; table-layout: fixed; font-size: .9375rem; }
.ranks-table th, .ranks-table td { padding: .75rem .8rem; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.ranks-table tbody th { text-align: left; font-weight: 600; padding-left: 0; }
.ranks-table thead th { padding-top: 1.2rem; padding-bottom: 1.2rem; border-bottom: 2px solid var(--ink); vertical-align: top; }
.ranks-table thead th:first-child { text-align: left; padding-left: 0; vertical-align: bottom; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ranks-table .is-featured { background: var(--light-2); }
.ranks-table thead .is-featured { box-shadow: inset 0 3px 0 var(--gold); }
.plan-head { display: grid; justify-items: center; gap: .55rem; }
.plan-head__price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.plan-head__price span { font-family: var(--font-sans); font-size: .8125rem; font-weight: 500; color: var(--muted); }
.plan-head__pitch { font-size: .8125rem; font-weight: 400; color: var(--muted); line-height: 1.35; max-width: 20ch; }
.plan-head__pop { font-size: .75rem; font-weight: 600; color: var(--bronze-ink); }
.plan-head .btn { width: 100%; }
.yes, .no { display: inline-grid; place-items: center; width: 22px; height: 22px; }
.yes { color: var(--green-ink); }
.no { color: var(--line-2); }
.yes .i, .no .i { width: 16px; height: 16px; }
@media (max-width: 719px) {
  .ranks-table th, .ranks-table td { padding: .6rem .25rem; font-size: .8125rem; }
  .ranks-table col.col-perk { width: 34%; }
  .plan-head__pitch { display: none; }
  .plan-head__pop { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .plan-head__price { font-size: 1.05rem; }
  .plan-head .btn { min-height: 40px; padding: .3rem; font-size: .75rem; }
  .plan-head .btn .i { display: none; }
  .ranks-table .rank-tag { min-width: 0; padding: .45rem .35rem; font-size: .5rem; }
}

.buy-faq { display: grid; gap: 2rem 4rem; }
@media (min-width: 960px) { .buy-faq { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.buy-faq__head p { margin-top: .8rem; color: var(--muted); }

/* Cart drawer */
.drawer { position: fixed; inset: 0; z-index: 140; }
.drawer__panel { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--light); transform: translateX(100%); transition: transform .25s ease; }
@media (min-width: 600px) { .drawer__panel { left: auto; width: 440px; border-left: 2px solid var(--ink); } }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: .75rem var(--gutter); background: var(--stone-9); color: var(--on-dark); }
.drawer__head h2 { font-size: 1.25rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: .25rem var(--gutter); }
.drawer__foot { display: grid; gap: .8rem; padding: 1rem var(--gutter) calc(1rem + env(safe-area-inset-bottom)); border-top: 2px solid var(--ink); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; }
.drawer__total dd { margin: 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.drawer__note { display: flex; gap: .5rem; color: var(--muted); font-size: .8125rem; }
.drawer__note .i { width: 16px; height: 16px; margin-top: 2px; flex: none; }
.cart-empty { display: grid; justify-items: center; gap: .6rem; padding: 3rem 1rem; text-align: center; color: var(--muted); }
.cart-empty .px { width: 48px; height: 48px; }
.cart-item { display: grid; grid-template-columns: auto 1fr; gap: .7rem 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-item__price { color: var(--muted); font-size: .875rem; }
.cart-item__controls { grid-column: 1 / -1; display: flex; align-items: center; gap: .5rem; }
.cart-item__total { margin-left: auto; font-weight: 600; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r); }
.qty button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; }
.qty button:hover { background: var(--light-2); }
.qty button:disabled { color: var(--line-2); cursor: not-allowed; background: none; }
.qty button .i { width: 16px; height: 16px; }
.qty output { min-width: 30px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.remove-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid transparent; border-radius: var(--r); background: none; color: var(--muted); }
.remove-btn:hover { color: var(--red-ink); border-color: var(--red); }
.remove-btn .i { width: 18px; height: 18px; }

/* Checkout */
.checkout { padding-block: 28px var(--band); }
.checkout h1 { margin-top: 1.25rem; font-size: clamp(1.9rem, 1.5rem + 2vw, 2.75rem); }
.checkout .note { margin-top: 1.1rem; max-width: 720px; }
.checkout__grid { display: grid; gap: 1.5rem; margin-top: 2rem; align-items: start; }
.panel { padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper); }
.panel h2 { font-size: 1.25rem; margin-bottom: 1.1rem; }
@media (min-width: 960px) { .checkout__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem; } .checkout__summary { position: sticky; top: calc(var(--header-h) + 24px); order: 2; } }

.steps-indicator ol { display: flex; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.steps-indicator li { display: flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 500; color: var(--muted); }
.steps-indicator li + li::before { content: ""; width: clamp(14px, 4vw, 36px); height: 2px; background: var(--line-2); }
.steps-indicator__n { display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid var(--line-2); font-family: var(--font-pixel); font-size: .5rem; }
.steps-indicator .is-done .steps-indicator__n { border-color: var(--ink); background: var(--ink); color: var(--gold); }
.steps-indicator .is-done + li::before { background: var(--ink); }
.steps-indicator [aria-current] { color: var(--ink); }
.steps-indicator [aria-current] .steps-indicator__n { border-color: var(--bronze-ink); color: var(--ink); }
@media (max-width: 479px) { .steps-indicator li:not([aria-current]) .steps-indicator__t { display: none; } }

.field { display: grid; gap: .3rem; margin-bottom: 1.2rem; }
.field label { font-weight: 600; }
.field__hint { color: var(--muted); font-size: .875rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .65rem .9rem; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; font-size: 1rem; }
.field textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--gold); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red-ink); box-shadow: 0 0 0 1px var(--red-ink); }
.field input.is-valid { border-color: var(--green); }
.field input:disabled, .field textarea:disabled, .field select:disabled { background: var(--light-2); color: var(--muted); cursor: not-allowed; }
.field__error { display: flex; gap: .4rem; align-items: flex-start; color: var(--red-ink); font-size: .875rem; font-weight: 500; }
.field__error .i { width: 16px; height: 16px; margin-top: 2px; }
.error-summary { margin-bottom: 1.2rem; padding: .9rem 1rem; border-left: 3px solid var(--red-ink); background: var(--light); color: var(--red-ink); }
.error-summary:focus { outline: 3px solid var(--red-ink); outline-offset: 2px; }
.error-summary h3 { font-size: 1rem; }
.error-summary ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.error-summary a { color: var(--red-ink); font-weight: 600; }
.form-note { display: flex; justify-content: center; gap: .4rem; margin-top: .7rem; color: var(--muted); font-size: .875rem; }
.form-note .i { width: 16px; height: 16px; margin-top: 2px; }
.summary-list { margin: 0; padding: 0; list-style: none; }
.summary-item { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.summary-item__name { display: flex; align-items: center; gap: .6rem; }
.summary-item__qty { color: var(--muted); font-size: .875rem; }
.summary-item__price { font-weight: 600; white-space: nowrap; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin: 1rem 0 0; }
.summary-total dt { font-weight: 600; }
.summary-total dd { margin: 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.summary-foot { margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--line-2); color: var(--muted); font-size: .875rem; }
.checkout__state { max-width: 620px; margin: 2rem auto 0; text-align: center; }
.checkout__state .px { width: 56px; height: 56px; margin: 0 auto 1rem; color: var(--bronze-ink); }
.checkout__state h2 { font-size: 1.6rem; }
.checkout__state p { margin-top: .7rem; color: var(--ink-2); }
.checkout__state .actions { justify-content: center; }

/* 12. Wiki, rules, support, Discord, 404 -------------------------------- */
.doc-layout { display: grid; gap: 2rem; padding-block: 40px var(--band); }
.toc { display: none; }
@media (min-width: 1024px) {
  .doc-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 4rem; padding-top: 56px; align-items: start; }
  .toc { display: block; position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
}
.toc__title { margin-bottom: .6rem; font-family: var(--font-pixel); font-size: .5625rem; letter-spacing: .06em; text-transform: uppercase; color: var(--bronze-ink); }
.toc ol, .toc ul { margin: 0; padding: 0; list-style: none; }
.toc a { display: flex; align-items: center; gap: .6rem; min-height: 34px; padding: .25rem .75rem; border-left: 2px solid var(--line); color: var(--muted); font-size: .9375rem; text-decoration: none; }
.toc a:hover { color: var(--ink); border-left-color: var(--line-2); }
.toc a[aria-current] { color: var(--ink); font-weight: 600; border-left: 3px solid var(--bronze-ink); padding-left: calc(.75rem - 1px); }
.toc__n { font-family: var(--font-pixel); font-size: .5rem; color: var(--bronze-ink); }
.toc__group { margin-top: .9rem; }
.toc__group > a { font-weight: 600; color: var(--ink-2); }
.toc__group ul a { padding-left: 1.5rem; font-size: .875rem; min-height: 30px; }
.toc-mobile { margin-bottom: 1.25rem; }
@media (min-width: 1024px) { .toc-mobile { display: none; } }
.toc-mobile details { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.toc-mobile summary { display: flex; align-items: center; justify-content: space-between; min-height: 50px; font-weight: 600; cursor: pointer; list-style: none; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile details[open] summary .i { transform: rotate(180deg); }
.toc-mobile ol, .toc-mobile ul { margin: 0; padding: 0 0 .8rem; list-style: none; columns: 2; column-gap: 1rem; }
.toc-mobile a { display: flex; min-height: 40px; align-items: center; color: var(--ink-2); font-size: .9375rem; text-decoration: none; break-inside: avoid; }

/* Rules */
.facts-mini { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin: 0; }
.facts-mini div { display: grid; gap: .2rem; }
.facts-mini dt { color: var(--on-dark-3); font-size: .8125rem; }
.facts-mini dd { margin: 0; font-family: var(--font-pixel); font-size: 1rem; color: var(--gold); }
.rules { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.rule { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: .4rem 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.rule__num { font-family: var(--font-pixel); font-size: 1rem; line-height: 1.6; color: var(--bronze-ink); padding-top: .35rem; }
.rule:target .rule__num { color: var(--ink); }
.rule h2 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem); }
.rule p { margin-top: .4rem; color: var(--ink-2); max-width: 64ch; }
.rule__eg { margin-top: .5rem; color: var(--muted); font-size: .875rem; }
@media (min-width: 640px) { .rule { grid-template-columns: 72px minmax(0, 1fr); } .rule__num { font-size: 1.25rem; } }

.ladder-section { margin-top: clamp(48px, 6vw, 72px); }
.ladder-section > p { margin-top: .9rem; color: var(--ink-2); max-width: 64ch; }
.ladder { display: grid; margin: 1.5rem 0 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.ladder__step { display: grid; gap: .3rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.ladder__bar { display: flex; gap: 3px; margin-bottom: .3rem; }
.ladder__bar span { width: 18px; height: 8px; border: 2px solid var(--line-2); }
.ladder__step--1 .ladder__bar span:nth-child(-n+1), .ladder__step--2 .ladder__bar span:nth-child(-n+2), .ladder__step--3 .ladder__bar span:nth-child(-n+3) { border-color: var(--sev); background: var(--sev); }
.ladder__step--1 { --sev: var(--bronze); } .ladder__step--2 { --sev: #b8732a; } .ladder__step--3 { --sev: var(--red); }
.ladder__lvl { font-family: var(--font-pixel); font-size: .5rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ladder__step h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.15rem; }
.ladder__step h3 .i { color: var(--ink-2); }
.ladder__step p { color: var(--ink-2); font-size: .9375rem; }
@media (min-width: 760px) {
  .ladder { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .ladder__step { padding: 1.2rem 1.5rem 1.2rem 0; border-bottom: 0; }
  .ladder__step + .ladder__step { padding-left: 1.5rem; border-left: 1px solid var(--line); }
}
.help-cols { display: grid; gap: 1.5rem 3rem; margin-top: clamp(48px, 6vw, 72px); padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.help-cols h3 { display: flex; gap: .6rem; align-items: center; font-size: 1.2rem; }
.help-cols h3 .i { color: var(--bronze-ink); }
.help-cols p { margin-top: .5rem; color: var(--ink-2); }
@media (min-width: 760px) { .help-cols { grid-template-columns: 1fr 1fr; } }

/* Wiki */
.search { display: grid; gap: .5rem; }
.search__label { font-weight: 600; color: var(--on-dark); }
.search__box { position: relative; display: flex; align-items: center; }
.search__box > .i { position: absolute; left: .95rem; color: var(--muted); pointer-events: none; }
.search__box input { width: 100%; min-height: 54px; padding: .7rem 3.25rem .7rem 2.8rem; border: 2px solid var(--stone-6); border-radius: var(--r); background: var(--light); color: var(--ink); font-size: 1.0625rem; }
.search__box input:focus { outline: none; border-color: var(--gold); }
.search__box input::-webkit-search-cancel-button { display: none; }
.search__box kbd { position: absolute; right: .85rem; display: grid; place-items: center; min-width: 24px; height: 24px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: var(--r); color: var(--muted); font-size: .8125rem; }
.search__clear { position: absolute; right: .35rem; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); }
.search__clear:hover { color: var(--ink); }
.search__status { min-height: 1.4em; color: var(--on-dark-3); font-size: .875rem; }
.search__chips { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; font-size: .875rem; color: var(--on-dark-3); }
.search__chips button { min-height: 36px; padding: 0; border: 0; background: none; color: var(--gold); font-size: .875rem; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.search__chips button:hover { color: var(--on-dark); }

.wiki-cat + .wiki-cat { margin-top: clamp(48px, 6vw, 72px); }
.wiki-cat__head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.wiki-cat__head .px { width: 34px; height: 34px; color: var(--bronze-ink); }
.wiki-cat__head p { color: var(--muted); font-size: .9375rem; }
.wiki-entries { border-top: 2px solid var(--ink); }
.wiki-entry { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.wiki-entry h3 { font-size: 1.2rem; }
.wiki-entry > p { margin-top: .4rem; color: var(--ink-2); max-width: 64ch; }
.wiki-entry .copy-field, .wiki-entry .cmd-list { margin-top: .8rem; }
.wiki-entry .cmd-list { max-width: 760px; }
@media (min-width: 900px) {
  .wiki-entry { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: .3rem 2rem; align-items: start; }
  .wiki-entry > * { grid-column: 2; }
  .wiki-entry > h3 { grid-column: 1; grid-row: 1 / span 4; }
  .wiki-entry > :nth-child(2) { margin-top: 0; }
  .wiki-entry .copy-field { justify-self: start; }
}
.wiki-modes { margin: 0; padding: 0; list-style: none; }
.wiki-modes li { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; min-height: 56px; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.wiki-modes li:last-child { border-bottom: 0; }
.wiki-modes .px { width: 28px; height: 28px; }
.wiki-modes a { font-weight: 600; color: var(--ink); }
.wiki-modes a::after { content: ""; position: absolute; inset: 0; }
.wiki-modes p { color: var(--muted); font-size: .875rem; margin-left: auto; }
.wiki-empty { display: grid; justify-items: start; gap: .7rem; padding: 1.5rem 0; border-top: 2px solid var(--ink); }
.wiki-empty h2 { font-size: 1.3rem; }
.wiki-empty p { color: var(--ink-2); }
mark { background: var(--gold); color: var(--ink); padding: 0 .1em; }

/* Support */
.mini-status { display: grid; gap: .5rem; padding-left: 1.25rem; border-left: 3px solid var(--stone-6); }
.mini-status__label { color: var(--on-dark-3); font-size: .875rem; }
.mini-status__row { display: flex; align-items: center; gap: .6rem; }
.mini-status__row strong { font-family: var(--font-display); font-size: 1.3rem; }
.mini-status__players { margin-left: auto; color: var(--on-dark-3); font-size: .875rem; }
.mini-status__players .num { color: var(--on-dark); font-weight: 600; }
.mini-status .go { min-height: 36px; font-size: .9375rem; }

.channels { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.channel { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: .3rem 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.channel > .i { grid-row: span 3; width: 26px; height: 26px; margin-top: 4px; color: var(--bronze-ink); }
.channel h2 { font-size: 1.3rem; }
.channel p { color: var(--ink-2); max-width: 58ch; }
.channel .btn, .channel .go, .channel .cmd-list { justify-self: start; margin-top: .5rem; }
.channel .cmd-list { width: 100%; max-width: 560px; }
.channel--main h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
@media (min-width: 900px) {
  .channel { grid-template-columns: 48px minmax(0, 1fr) minmax(220px, auto); align-items: center; }
  .channel > .i { grid-row: span 2; }
  .channel .btn, .channel .go, .channel .cmd-list { grid-column: 3; grid-row: 1 / span 2; justify-self: end; margin: 0; }
  .channel .cmd-list { width: 320px; }
}

/* Discord */
.invite { display: grid; gap: .9rem; padding: 1.25rem; border: 2px solid var(--stone-6); background: var(--night); }
.invite__top { display: flex; align-items: center; gap: 1rem; }
.invite__logo { width: 64px; height: 64px; }
.invite__name { font-size: 1.4rem; }
.invite__sub { color: var(--on-dark-3); font-size: .9375rem; }
.invite__counts { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .875rem; color: var(--on-dark-2); }
.invite__counts span { display: inline-flex; align-items: center; gap: .4rem; }
.invite__counts .num { font-weight: 600; color: var(--on-dark); }
.invite__dot { width: 8px; height: 8px; background: var(--stone-6); }
.invite__dot--on { background: var(--green); }
.invite .copy-field { border-color: var(--stone-6); background: var(--stone-8); }
.invite .copy-field code { color: var(--on-dark) !important; }
.invite .copy-field__btn { border-left-color: var(--stone-6); color: var(--on-dark); }
.invite .copy-field__btn:hover { background: var(--stone-7); }

.dc-list { display: grid; margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.dc-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: .2rem 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.dc-item > .i { grid-row: span 2; width: 24px; height: 24px; margin-top: 2px; color: var(--bronze-ink); }
.dc-item h3 { font-size: 1.125rem; }
.dc-item p { color: var(--ink-2); }
@media (min-width: 860px) { .dc-list { grid-template-columns: 1fr 1fr; column-gap: 3.5rem; } }
.before-join { display: grid; gap: 1.5rem 4rem; }
.before-join ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--stone-7); }
.before-join li { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 0; border-bottom: 1px solid var(--stone-7); color: var(--on-dark-2); }
.before-join li strong { color: var(--on-dark); }
.before-join li .i { margin-top: 2px; color: var(--gold); }
.before-join .lead { margin-top: .9rem; }
@media (min-width: 900px) { .before-join { grid-template-columns: 1fr 1fr; align-items: center; } }

/* 13. Forum and account ------------------------------------------------- */
/* Forum bar: second navigation level, darker than the header */
.forum-bar { background: var(--stone-8); color: var(--on-dark); border-bottom: 1px solid var(--stone-7); }
.forum-bar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.25rem; min-height: 56px; padding-block: .5rem; }
.forum-bar__home { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; color: var(--on-dark); font-weight: 600; text-decoration: none; }
.forum-bar__home .i { color: var(--gold); }
.forum-bar__home:hover { color: var(--gold); }
.forum-search { position: relative; display: flex; align-items: center; flex: 1 1 220px; max-width: 420px; order: 3; }
.forum-search .i { position: absolute; left: .7rem; width: 17px; height: 17px; color: var(--on-dark-3); pointer-events: none; }
.forum-search input { width: 100%; min-height: 40px; padding: .4rem .75rem .4rem 2.2rem; border: 1px solid var(--stone-6); border-radius: var(--r); background: var(--stone-9); color: var(--on-dark); font-size: .9375rem; }
.forum-search input::placeholder { color: var(--on-dark-3); }
.forum-search input:focus { outline: none; border-color: var(--gold); }
.forum-bar__user { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.forum-bar__user > a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); font-weight: 600; text-decoration: none; }
.forum-bar__user > a:not(.btn):hover { color: var(--gold); }
.forum-bar :focus-visible { outline-color: var(--gold); }
@media (min-width: 760px) { .forum-search { order: 0; } }

/* Demo notice: always visible, not decorative */
.preview-note { background: var(--light-2); border-bottom: 1px solid var(--line); font-size: .875rem; color: var(--ink-2); }
.preview-note .container { display: flex; gap: .6rem; align-items: flex-start; padding-block: .65rem; }
.preview-note .i { width: 18px; height: 18px; margin-top: 2px; color: var(--bronze-ink); }
/* Logged in but the email isn't confirmed yet (forum.js) */
.verify-note { background: var(--light); }
.verify-note .container > .i { color: var(--red-ink); }
.verify-note__actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; vertical-align: middle; }
.verify-note__actions .post__btn { padding-left: 0; }

.forum-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
@media (min-width: 960px) { .forum-head__actions { justify-content: flex-end; } }

.forum-layout { display: grid; gap: 2.5rem 4rem; padding-block: 40px var(--band); }
@media (min-width: 1024px) { .forum-layout { grid-template-columns: minmax(0, 1fr) 280px; padding-top: 56px; } }
.forum-group + .forum-group { margin-top: 2.5rem; }
.forum-group__title { margin-bottom: .6rem; font-family: var(--font-pixel); font-size: .625rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--bronze-ink); }

.forum-table { width: 100%; font-size: .9375rem; }
.forum-table th, .forum-table td { padding: .9rem .75rem .9rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.forum-table thead th { vertical-align: bottom; padding-top: 0; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); }
.forum-table tbody th { font-weight: 400; }
.forum-table .fnum { width: 110px; text-align: center; color: var(--muted); }
.forum-table .flast { width: 170px; color: var(--muted); font-size: .875rem; }
.forum-table tbody tr.is-link:hover { background: var(--light-2); }
.fcat { display: flex; gap: .9rem; align-items: flex-start; }
.fcat > .i { margin-top: 3px; color: var(--bronze-ink); }
.fcat__name { font-size: 1.0625rem; }
.fcat__name a { color: var(--ink); text-decoration: none; }
.fcat__name a:hover { text-decoration: underline; text-decoration-color: var(--bronze); text-decoration-thickness: 2px; }
.fcat__name span { color: var(--ink); }
.fcat__desc { margin-top: .1rem; color: var(--muted); font-size: .875rem; }
@media (max-width: 719px) {
  .forum-table thead { display: none; }
  .forum-table tr { display: grid; grid-template-columns: 1fr auto; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .forum-table th, .forum-table td { padding: 0; border: 0; }
  .forum-table td.fnum { display: none; }
  .forum-table td.flast { grid-column: 1 / -1; width: auto; margin: .3rem 0 0 calc(20px + .9rem); }
}

.forum-side { display: grid; gap: 2rem; align-content: start; }
.forum-side h2 { margin-bottom: .6rem; font-size: 1.05rem; }
.forum-rules { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.forum-rules li { padding: .6rem 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: .9375rem; }
.see-also--stack { display: grid; gap: 0; }
.see-also--stack a { min-height: 40px; }

/* Thread list */
.forum-single { padding-block: 32px var(--band); }
.forum-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.forum-tabs { display: flex; gap: 1.25rem; }
.forum-tabs a { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-weight: 600; text-decoration: none; }
.forum-tabs a:hover { color: var(--ink); }
.forum-tabs a[aria-current] { color: var(--ink); }
.forum-tabs a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 3px; background: var(--bronze); }
.field--inline { display: flex; align-items: center; gap: .6rem; margin: 0; }
.field--inline label { font-weight: 500; color: var(--muted); font-size: .875rem; }
.field--inline select { width: auto; min-height: 44px; }

.thread-list { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.thread { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: .2rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.thread:hover { background: var(--light-2); }
.thread--pinned { border-bottom-color: var(--line-2); }
.thread__title { font-size: 1.0625rem; }
.thread__title a { color: var(--ink); text-decoration: none; }
.thread__title a::after { content: ""; position: absolute; inset: 0; }
.thread:has(a:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.thread__title a:focus-visible { outline: none; }
.thread:hover .thread__title a { text-decoration: underline; text-decoration-color: var(--bronze); text-decoration-thickness: 2px; }
.thread__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .6rem; margin-top: .15rem; color: var(--muted); font-size: .875rem; }
.thread__meta strong { color: var(--ink-2); font-weight: 600; }
.tflag { display: inline-flex; align-items: center; gap: .3rem; color: var(--bronze-ink); font-weight: 600; }
.tflag .i { width: 14px; height: 14px; }
.tflag--closed { color: var(--muted); }
.thread__count { display: grid; justify-items: end; padding-right: .5rem; line-height: 1.3; color: var(--muted); font-size: .8125rem; }
.thread__count strong { font-family: var(--font-pixel); font-size: .75rem; font-weight: 400; color: var(--ink); }
.role-staff { display: inline-flex; padding: .1rem .4rem; border: 1px solid var(--bronze); color: var(--bronze-ink); font-size: .75rem; font-weight: 600; }

.avatar { position: relative; overflow: hidden; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--bronze); background: var(--light-2); color: var(--ink); font-family: var(--font-pixel); font-size: .75rem; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.avatar--lg { width: 64px; height: 64px; font-size: 1rem; }

.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.5rem; }
.pager__info { margin-right: auto; color: var(--muted); font-size: .875rem; }

/* Thread */
.thread-head h1 { max-width: 30ch; font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.6rem); }
.thread-head__meta { margin-top: 1rem; color: var(--on-dark-2); }
.thread-head .label { margin-bottom: .4rem; }
.posts { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.post { display: grid; gap: .8rem 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.post__author { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .75rem; }
.post__author .avatar--lg { width: 44px; height: 44px; font-size: .75rem; }
.post__name { font-weight: 700; }
.post__role { display: flex; gap: .4rem; }
.post__role .rank-tag { min-width: 0; padding: .4rem .45rem; font-size: .5rem; }
.post__meta { display: flex; gap: .75rem; color: var(--muted); font-size: .8125rem; }
.post__meta a { color: var(--muted); font-weight: 600; text-decoration: none; }
.post__meta a:hover { color: var(--ink); }
.post__content { margin-top: .5rem; color: var(--ink); max-width: 70ch; }
.post__content blockquote { margin: 0 0 .8rem; padding: .5rem .9rem; border-left: 3px solid var(--line-2); background: var(--light-2); color: var(--ink-2); }
.post__actions { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .8rem; }
.post__btn { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: 0; border: 0; background: none; color: var(--muted); font-size: .875rem; font-weight: 600; text-decoration: none; }
.post__btn:hover { color: var(--ink); }
.post__btn .i { width: 16px; height: 16px; }
.post--staff .post__name { color: var(--bronze-ink); }
@media (min-width: 760px) {
  .post { grid-template-columns: 150px minmax(0, 1fr); }
  .post__author { flex-direction: column; align-items: flex-start; }
  .post__author .avatar--lg { width: 64px; height: 64px; font-size: 1rem; }
}

.reply { margin-top: 2.5rem; }
.reply h2 { font-size: 1.375rem; margin-bottom: 1rem; }
.editor__tools { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; background: var(--light-2); }
.editor__tools button { display: grid; place-items: center; min-width: 40px; height: 40px; border: 0; border-radius: 2px; background: none; color: var(--ink-2); font-size: .9375rem; }
.editor__tools button:hover { background: var(--paper); color: var(--ink); }
.editor__tools button .i { width: 17px; height: 17px; }
.editor__tools + textarea { border-top-left-radius: 0; border-top-right-radius: 0; }
.editor__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; }
.editor__foot .muted { font-size: .875rem; }

/* New thread */
.forum-form-wrap { display: grid; gap: 2.5rem 4rem; padding-block: 40px var(--band); }
@media (min-width: 1024px) { .forum-form-wrap { grid-template-columns: minmax(0, 1fr) 280px; } }
.forum-form { max-width: 760px; }
.forum-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.field--check { display: flex; align-items: flex-start; gap: .65rem; }
.field--check input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; accent-color: var(--bronze-ink); flex: none; }
.field--check label { font-weight: 500; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.field__row a { font-size: .875rem; }

/* Log in and sign up: lobby photo and form side by side */
.auth { display: grid; flex: 1; }
.auth__visual { position: relative; margin: 0; background: var(--stone-9); }
.auth__visual picture { display: block; }
.auth__visual img { width: 100%; height: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.auth__visual figcaption { display: flex; gap: .9rem; align-items: center; padding: 1rem var(--gutter); background: var(--stone-9); color: var(--on-dark-2); font-size: .9375rem; }
.auth__visual figcaption img { width: 48px; height: 48px; aspect-ratio: 1; flex: none; }
.auth__panel { display: flex; justify-content: center; padding: 32px var(--gutter) var(--band); }
.auth__inner { width: min(440px, 100%); }
.auth h1 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem); }
.auth__sub { margin: .6rem 0 1.5rem; color: var(--muted); }
.auth__sub a { font-weight: 600; }
.auth__form .btn--block { margin-top: .5rem; }
.auth__form .auth__sub { margin: 1.25rem 0 0; }
.auth__form .auth__sub a { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; }
.auth__form .auth__sub .i { width: 16px; height: 16px; }
.pass { position: relative; display: flex; }
.pass input { padding-right: 5.5rem; }
.pass__toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-height: 40px; padding: 0 .75rem; border: 0; border-radius: 2px; background: none; color: var(--bronze-ink); font-size: .875rem; font-weight: 600; }
.pass__toggle:hover { color: var(--ink); background: var(--light-2); }
@media (min-width: 960px) {
  .auth { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .auth__visual { display: flex; flex-direction: column; }
  .auth__visual picture { flex: 1; position: relative; min-height: 360px; }
  .auth__visual picture img { position: absolute; inset: 0; aspect-ratio: auto; }
  .auth__visual figcaption { padding: 1.25rem 2rem; }
  .auth__panel { align-items: center; padding: 48px 32px; }
}
.forum-layout > *, .forum-form-wrap > * { min-width: 0; }
.auth__back { margin-top: 1.25rem; }
.auth__back a { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; }
.auth__back .i { width: 16px; height: 16px; }

/* Forum states: loading, empty, error. A rule, not a box. */
.forum-state { padding: 1.4rem 0 1.6rem; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); color: var(--ink-2); }
.forum-state p + p { margin-top: .35rem; }
.forum-state__title { font-weight: 700; color: var(--ink); }
.forum-state__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: 1rem; }
.forum-state--error { border-top-color: var(--red-ink); }
.forum-state--error .forum-state__title { color: var(--red-ink); }
.forum-state--loading { display: flex; align-items: center; gap: .7rem; color: var(--muted); }
.forum-state--loading::before { content: ""; width: 10px; height: 10px; background: var(--bronze); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .forum-state--loading::before { animation: forum-blink 1s steps(2, jump-none) infinite; }
}
@keyframes forum-blink { from { opacity: 1; } to { opacity: .2; } }
.auth .forum-state { margin-top: .5rem; }

/* Bar: logged-in user */
.forum-me { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; color: var(--on-dark); font-weight: 600; text-decoration: none; }
.forum-me:hover { color: var(--gold); }
.forum-me .avatar { border-color: var(--gold); background: var(--stone-9); color: var(--on-dark); }
.forum-bar__out { min-height: 40px; padding: 0 .2rem; border: 0; background: none; color: var(--on-dark-3); font-size: .875rem; font-weight: 600; }
.forum-bar__out:hover { color: var(--on-dark); text-decoration: underline; }
.avatar--sm { width: 30px; height: 30px; border-width: 1px; font-size: .5625rem; }
.avatar--xl { width: 76px; height: 76px; border-width: 3px; border-color: var(--gold); background: var(--stone-8); color: var(--on-dark); font-size: 1.25rem; }
@media (max-width: 479px) { .forum-me span:not(.avatar) { display: none; } }

/* Index: latest activity */
.flast__title { display: block; overflow: hidden; color: var(--ink); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; text-decoration: none; }
.flast__title:hover { text-decoration: underline; }
.flast span { display: block; font-size: .8125rem; }
@media (max-width: 719px) { .flast__title { display: inline; max-width: none; white-space: normal; } .flast span { display: inline; margin-left: .4rem; } }

/* Section and search */
.forum-head__note { color: var(--on-dark-2); font-size: .9375rem; }
.thread__meta time { color: inherit; }
.thread__example { font-family: var(--font-pixel); font-size: .5rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.thread__excerpt { margin-top: .35rem; max-width: 72ch; color: var(--ink-2); font-size: .9375rem; }
.thread__where { margin-top: .2rem; color: var(--muted); font-size: .8125rem; }
.thread__where a { position: relative; z-index: 1; }
.forum-count { margin-bottom: .6rem; color: var(--muted); font-size: .875rem; }
.forum-search--page { flex: none; width: 100%; max-width: 560px; order: 0; gap: .5rem; }
.forum-search--page .i { left: .85rem; }
.forum-search--page input { min-height: 50px; padding-left: 2.5rem; font-size: 1rem; }
.forum-search--page .btn { flex: none; min-height: 50px; }
@media (min-width: 960px) { .forum-search--page { justify-self: end; } }

/* Thread */
.post { scroll-margin-top: calc(var(--header-h) + 16px); }
.post:focus { outline: none; }
.post:focus .post__body, .post:target .post__body { box-shadow: -14px 0 0 -10px var(--bronze); }
.post__name a { color: inherit; text-decoration: none; }
.post__name a:hover { text-decoration: underline; }
.post__meta time { color: var(--muted); }
.post__content p + p, .post__content blockquote + p, .post__content p + blockquote { margin-top: .8rem; }
.post__content blockquote p { margin: 0; }
.post__content a { overflow-wrap: anywhere; }
.post__report { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: .6rem; padding: .7rem 0 0; border-top: 1px dashed var(--line-2); }
.post__report .field--inline select { min-height: 40px; }
.thread-head__meta a { color: var(--on-dark); }
.thread-head__meta a:hover { color: var(--gold); }

.forum-gate { padding: 1.1rem 0 1.2rem; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.forum-gate__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: .9rem; }

/* Editor: Write / Preview */
.editor__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .4rem 1rem; }
.editor__tabs { display: flex; gap: 1rem; }
.editor__tabs button { position: relative; min-height: 36px; padding: 0; border: 0; background: none; color: var(--muted); font-size: .875rem; font-weight: 600; }
.editor__tabs button:hover { color: var(--ink); }
.editor__tabs button[aria-selected="true"] { color: var(--ink); }
.editor__tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--bronze); }
.editor__preview { min-height: 160px; margin: 0; padding: .65rem .9rem; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper); max-width: none; }
.editor__help { font-family: var(--font-mono); font-size: .75rem; }
.go--back:hover .i { transform: translateX(-3px); }
.forum-form-slot > .forum-gate, .forum-form-slot > .forum-state { max-width: 760px; }

.format-help { display: grid; margin: 0; border-top: 2px solid var(--ink); }
.format-help div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
.format-help dd { margin: 0; color: var(--ink-2); }

/* Profile */
.profile-head { display: flex; align-items: center; gap: 1.1rem; }
.profile-head h1 { overflow-wrap: anywhere; }
.profile-head__tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .55rem; }
.profile-head__tags .rank-tag { --tag-bg: var(--stone-8); }
.profile-head__tags .rank-tag--vip { --tag-ink: #8fd19e; }
.profile-head__tags .rank-tag--vipp { --tag-ink: var(--gold); }
.profile-head__tags .rank-tag--legend { --tag: var(--on-dark-2); --tag-ink: var(--on-dark); }
.profile-head__tags .role-staff { border-color: var(--gold); color: var(--gold); }
.profile-head__you { color: var(--on-dark-3); font-size: .875rem; }
.profile-facts { display: flex; flex-wrap: wrap; gap: .5rem 2.5rem; margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--stone-7); }
.profile-facts dt { color: var(--on-dark-3); font-size: .8125rem; }
.profile-facts dd { margin: 0; font-family: var(--font-pixel); font-size: .8125rem; line-height: 2; color: var(--on-dark); }

/* Fixes for narrow screens */
@media (max-width: 559px) {
  .mode-ledger__feats { columns: 1; }
  .mode-ledger__row--text { grid-template-columns: 48px minmax(0, 1fr) !important; column-gap: 1rem !important; }
  .mode-ledger__row--text .mode-ledger__icon { width: 48px; height: 48px; }
  .mode-ledger__row--text .mode-ledger__icon .px { width: 30px; height: 30px; }
}
.invite > *, .invite__top > * { min-width: 0; }
.invite .copy-field { display: flex; width: 100%; }
.invite .copy-field code { flex: 1; }

/* Payment mode (cart.js sets data-payments on <html>): only the active variant is shown.
   Without JavaScript, or before it runs, the "demo" variant stays visible. */
html:not([data-payments="tebex"]) [data-payments-only="tebex"],
html[data-payments="tebex"] [data-payments-only="demo"] { display: none !important; }
.note--warn { border-left-color: var(--red-ink); }
.note--warn .i { color: var(--red-ink); }
.checkout .note + .note { margin-top: .75rem; }

/* Store hidden until it launches: every link, section and FAQ about ranks or purchases
   carries data-store-section. Delete this rule to bring the store back
   (and remove noindex from store/ and checkout/, add /store/ to sitemap.xml). */
[data-store-section] { display: none !important; }

/* 14. Legal, news, events, appeals, drafts -------------------------------- */
/* Placeholder still to fill in: impossible to miss, never meant to go live */
.todo { padding: 0 .25em; background: #ffe066; color: var(--ink); outline: 1px dashed var(--red-ink); font-weight: 600; }

/* Long-form text: legal pages and news posts */
.prose { max-width: 70ch; }
.prose > section { padding-block: 1.5rem; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.prose > section:first-child { padding-top: 0; border-top: 0; }
.prose h2 { font-size: 1.35rem; margin-bottom: .7rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p, .prose ul + p, .prose p + ul, .prose .table-wrap + p { margin-top: .8rem; }
.prose ul { margin: .6rem 0 0; padding-left: 1.2rem; }
.prose li + li { margin-top: .35rem; }
.prose li::marker { color: var(--bronze); }
.prose .table-wrap { margin-top: 1rem; }
.page-legal .facts-mini dd { font-size: .75rem; line-height: 1.8; }

/* News */
.news-follow { align-self: end; }
.news-layout { display: grid; gap: 0; max-width: 820px; padding-block: 40px var(--band); }
.news-item { padding-block: 1.5rem 2rem; border-top: 2px solid var(--ink); }
.news-item + .news-item { border-top-width: 1px; border-top-color: var(--line); }
.news-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; color: var(--muted); font-size: .875rem; }
.news-item__tag { font-family: var(--font-pixel); font-size: .5rem; letter-spacing: .06em; text-transform: uppercase; color: var(--bronze-ink); }
.news-item h2 { margin: .4rem 0 .9rem; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); }
.news-item h2 a { color: inherit; text-decoration: none; }
.news-item h2 a:hover { text-decoration: underline; text-decoration-color: var(--bronze); text-decoration-thickness: 2px; }
.news-item kbd { padding: .05em .4em; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: var(--r); background: var(--paper); }

/* Events */
.events .forum-state { max-width: 680px; }
.event-list { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.event { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1.25rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.event__date { font-family: var(--font-pixel); font-size: .625rem; line-height: 1.8; color: var(--bronze-ink); }
.event__title { font-size: 1.2rem; }
.event__meta { margin: .2rem 0 .5rem; color: var(--muted); font-size: .875rem; }
@media (max-width: 559px) { .event { grid-template-columns: 1fr; gap: .4rem; } }

/* Reports and appeals, staff applications */
.appeal-cols { display: grid; gap: 2.5rem 4rem; }
@media (min-width: 900px) { .appeal-cols { grid-template-columns: 1fr 1fr; } }
.appeal-cols h2 { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; font-size: 1.5rem; }
.appeal-cols h2 .i { color: var(--bronze-ink); }
.appeal-cols h3 { margin: 1.5rem 0 .5rem; font-size: 1.05rem; }
.appeal-cols .muted { margin-top: 1rem; font-size: .9375rem; }
.check-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.check-list li { position: relative; padding: .55rem 0 .55rem 1.6rem; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.check-list li::before { content: ""; position: absolute; left: .2rem; top: 1.05rem; width: 8px; height: 8px; background: var(--bronze); }

/* Staff (draft) */
.staff-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
@media (min-width: 760px) { .staff-list { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.staff { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.staff__role { font-family: var(--font-pixel); font-size: .5625rem; letter-spacing: .06em; text-transform: uppercase; color: var(--bronze-ink); margin: .3rem 0 .4rem; }

/* Vote (draft) */
.vote-list { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); max-width: 760px; }
.vote { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.vote__n { font-family: var(--font-pixel); font-size: .75rem; color: var(--bronze-ink); }

/* Forum: account, editing, staff tools ------------------------------------ */
.forum-bar__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold); font-weight: 600; font-size: .875rem; text-decoration: none; }
.forum-bar__link:hover { color: var(--on-dark); }

.mod-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--stone-7); }
.mod-bar__label { margin-right: .4rem; font-family: var(--font-pixel); font-size: .5rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.mod-bar__move { display: flex; gap: .4rem; }
.mod-bar__move select { min-height: 40px; padding: 0 .6rem; border: 1px solid var(--stone-6); border-radius: var(--r); background: var(--stone-8); color: var(--on-dark); }
.mod-bar__danger, .band--dark .mod-bar__danger { border-color: var(--red) !important; color: var(--red-ink) !important; }
.band--dark .mod-bar__danger { color: var(--mc-red) !important; }
.post__btn--danger:hover { color: var(--red-ink); }
.post__edit { margin-top: .8rem; }
.post__edit .editor__foot { justify-content: flex-end; }

.account { display: grid; gap: 0; max-width: 760px; }
.account-block { padding: 1.5rem 0 1.75rem; border-top: 1px solid var(--line); }
.account-block:first-child { border-top: 2px solid var(--ink); }
.account-block h2 { margin-bottom: .8rem; font-size: 1.25rem; }
.account-block > p { color: var(--ink-2); }
.account-block > p + * { margin-top: 1rem; }
.account-block .copy-field { max-width: 360px; margin-top: .6rem; }
.account-block--danger { border-top: 2px solid var(--red-ink); }
.account-block--danger h2 { color: var(--red-ink); }
.account-facts { display: flex; flex-wrap: wrap; gap: .5rem 2.5rem; margin: 0 0 .8rem; }
.account-facts dt { color: var(--muted); font-size: .8125rem; }
.account-facts dd { margin: .15rem 0 0; font-weight: 600; }
.account-ok, .account-warn { margin-left: .4rem; font-size: .8125rem; font-weight: 600; }
.account-ok { color: var(--green-ink); }
.account-warn { color: var(--red-ink); }
.account-form { max-width: 440px; margin-top: 1rem; }
.account-form .btn { margin-top: .2rem; }

.report-list { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); max-width: 860px; }
.report { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.report__meta { display: flex; flex-wrap: wrap; gap: .2rem .9rem; color: var(--muted); font-size: .875rem; }
.report__meta strong { color: var(--ink); }
.report__where { margin-top: .4rem; }
.report__excerpt { margin: .6rem 0 0; padding: .5rem .9rem; border-left: 3px solid var(--line-2); background: var(--light-2); color: var(--ink-2); }
.report__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: .8rem; }

/* Home: latest news strip */
.news-strip { background: var(--light-2); border-bottom: 1px solid var(--line); }
.news-strip__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.5rem; min-height: 64px; padding-block: .6rem; }
.news-strip__label { font-family: var(--font-pixel); font-size: .5625rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--bronze-ink); }
.news-strip__item { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; flex: 1 1 280px; }
.news-strip__item time { color: var(--muted); font-size: .875rem; }
.news-strip__item a { color: var(--ink); font-weight: 600; }
.news-strip .go { margin-left: auto; }

/* Print: rules, wiki and legal pages on paper, black on white */
@media print {
  .site-header, .mobile-menu, .site-footer, .dock, .toast-region, .skip-link, .toc, .toc-mobile,
  .forum-bar, .preview-note, .search, .hotbar, .cmd__copy, .copy-field__btn, .actions, .btn, .music-toggle,
  .news-follow, .mod-bar, .post__actions, .reply, .editor, [data-store-section] { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .band, .band--dark, .band--night, .band--light2, .page-band, .news-strip { background: none !important; color: #000 !important; padding-block: 12pt; }
  .band--dark *, .page-band * { color: #000 !important; }
  .doc-layout { display: block; padding: 0; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  .rule, .wiki-entry, .prose > section, .news-item { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  img { max-width: 60% !important; }
  .todo { outline: none; background: none; }
}

/* Forum: mentions, follow, unread */
.mention { font-weight: 600; text-decoration: none; }
.mention:hover { text-decoration: underline; }
.thread--unread .thread__title a { font-weight: 800; }
.tflag--new { color: var(--green-ink); }
.tflag--new::before { content: ""; width: 8px; height: 8px; background: var(--green); }
.thread-head__follow { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin-top: 1.1rem; }
.thread-head__follow .muted { font-size: .875rem; }
.thread-head__follow .btn[aria-pressed="true"] { border-color: var(--gold); }
.thread-list--compact .thread { padding-block: .7rem; }
.thread-list--compact .avatar { width: 32px; height: 32px; font-size: .5625rem; }
.thread-list--compact .thread { grid-template-columns: 32px minmax(0, 1fr) auto; }

/* Leaderboards (draft) */
.leaderboards { max-width: 860px; }
.leaderboards > .note { margin-bottom: 1.5rem; }
.board-tabs { display: flex; gap: 1.5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.board-tabs button { position: relative; min-height: 48px; padding: 0; border: 0; background: none; color: var(--muted); font-weight: 600; }
.board-tabs button:hover { color: var(--ink); }
.board-tabs button[aria-selected="true"] { color: var(--ink); }
.board-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--bronze); }
.board__table td, .board__table th { vertical-align: middle; }
.board__pos { width: 48px; font-family: var(--font-pixel); font-size: .625rem; color: var(--muted); }
.board__num { text-align: right !important; font-variant-numeric: tabular-nums; }
.board__player { display: inline-flex; align-items: center; gap: .7rem; font-weight: 600; }
.board__top--1 .board__pos { color: var(--bronze-ink); }
.board__top--1 .board__player .avatar { border-color: var(--gold); }
.board__more { margin-top: .5rem; }
.board__updated { margin-top: 1rem; font-size: .8125rem; }
.join__ver code { white-space: nowrap; }
.modes-band__more { margin-top: 1.25rem; }
.board-sort { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin-bottom: 1rem; }
.board-sort__label { margin-right: .3rem; color: var(--muted); font-size: .875rem; }
.board-sort__btn { min-height: 40px; padding: 0 .9rem; border: 1px solid var(--line-2); border-radius: var(--r); background: transparent; color: var(--ink-2); font-size: .875rem; font-weight: 600; }
.board-sort__btn:hover { border-color: var(--ink); color: var(--ink); }
.board-sort__btn[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--light); }
.board__table .is-sorted { color: var(--ink); }
.board-tabs { flex-wrap: wrap; column-gap: 1.25rem; }
.board-tabs button { flex: none; }

/* Bedwars: formats table and party commands */
.bw-formats { max-width: 420px; margin: .6rem 0 0; }
.bw-formats td { font-family: var(--font-pixel); font-size: .75rem; }
.bw-friends { margin: 1.75rem 0 .3rem; font-size: 1.1rem; }
#formats .cmd-list { margin-top: .8rem; }
#formats > .muted { margin-top: .6rem; font-size: .875rem; }

/* Support: reports and appeals section (h3/h4 inside the section) */
#appeals .appeal-cols h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; font-size: 1.35rem; }
#appeals .appeal-cols h3 .i { color: var(--bronze-ink); }
#appeals .appeal-cols h4 { margin: 1.5rem 0 .5rem; font-size: 1.05rem; }
#appeals > .container + .container { margin-top: 1.5rem; }
/* Rules: pointer to Support at the end */
.rules-next { margin-top: clamp(48px, 6vw, 72px); padding-top: 1.5rem; border-top: 2px solid var(--ink); max-width: 70ch; }
.rules-next h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.rules-next p { color: var(--ink-2); }

/* Modes sub-tabs: Overview / Leaderboards, at the bottom of the title band */
.subnav { grid-column: 1 / -1; display: flex; gap: 1.75rem; margin-top: .5rem; border-bottom: 1px solid var(--stone-7); }
.subnav a { position: relative; display: inline-flex; align-items: center; min-height: 48px; color: var(--on-dark-2) !important; font-weight: 600; text-decoration: none; }
.subnav a:hover { color: var(--on-dark) !important; }
.subnav a[aria-current] { color: var(--on-dark) !important; }
.subnav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--gold); }
.modes-band .subnav { margin-top: 2rem; }

/* News and events: upcoming events at the top of the News page */
.events { scroll-margin-top: calc(var(--header-h) + 16px); }
.events__grid { display: grid; gap: 2rem 4rem; }
@media (min-width: 900px) { .events__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } }
.events h2 { margin-bottom: 1rem; font-size: 1.5rem; }
.events .forum-state { max-width: none; }
.events__kinds-title { margin-bottom: .6rem; font-size: 1.05rem; }
.events__kinds { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.events__kinds li { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: .9375rem; }
.events__kinds .i { margin-top: 2px; color: var(--bronze-ink); flex: none; }
.events__kinds strong { color: var(--ink); }



/* ==========================================================================
   Part 2 — "Quiet Gold" layer (redesign, November 2026)
   Same palette and fonts as Part 1. What changes: a fixed glass header with
   menus, photo heroes, calmer sections, and one motion system for every page.
   Motion uses opacity and the individual translate/scale properties only, so
   hover transforms still compose; it is all switched off under reduced motion
   (the global rule in Part 1 plus the block at the end of this part).
   New markup lives inside elements with class "av"; Part 1 keeps styling the
   forum, store, checkout and account internals rendered by the scripts.
   ========================================================================== */
:root{
  --ease-out:cubic-bezier(.16,1,.3,1);
  --ease-io:cubic-bezier(.65,0,.35,1);
  --ease-spring:cubic-bezier(.34,1.56,.64,1);
  --t-1:140ms;--t-2:240ms;--t-3:420ms;--t-4:760ms;--t-5:1100ms;
  --hdr:68px;--header-h:68px;
  --gutter:clamp(16px,4vw,40px);
  --sec:clamp(80px,9vw,128px);
  --fs-hero:clamp(2.6rem,1.25rem + 4.3vw,5rem);
  --fs-h1:clamp(2.3rem,1.5rem + 2.5vw,3.9rem);
  --fs-h2:clamp(1.85rem,1.35rem + 1.5vw,2.8rem);
  --fs-lead:clamp(1.0625rem,1rem + .3vw,1.2rem);
}

/* ---------- scope ---------- */
.av{font-family:var(--font-sans);line-height:1.6;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
/* resets at element weight (0,0,1): they beat the element rules of Part 1, never a class */
:where(.av) img{display:block;max-width:100%}
:where(.av) a{color:inherit;text-decoration:none}
:where(.av) a:hover{color:inherit}
:where(.av) :is(h1,h2,h3,h4){margin:0;font-family:var(--font-display);font-optical-sizing:auto;font-weight:700;letter-spacing:-.025em;text-wrap:balance}
:where(.av) p{margin:0;text-wrap:pretty}
:where(.av) p + p{margin-top:0}
:where(.av) :is(ul,ol){margin:0;padding:0;list-style:none}
:where(.av) figure{margin:0}
:where(.av) button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
.av :focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:var(--r)}
:is(.hdr,.hero,.phero,.shero,.dark,.night,.ftr,.dock,.mobile-menu,.menu) :focus-visible{outline-color:var(--gold)}
.wrap{width:100%;max-width:calc(var(--container) + var(--gutter)*2);margin-inline:auto;padding-inline:var(--gutter)}
.dark{background:var(--stone-9);color:var(--on-dark)}
.night{background:var(--night);color:var(--on-dark)}
.light{background:var(--light);color:var(--ink)}
.light2{background:var(--light-2);color:var(--ink)}
.dark .muted,.night .muted{color:var(--on-dark-3)}
.code{font-family:var(--font-mono);font-size:.88em;padding:.12em .45em;border-radius:var(--r);background:var(--paper);border:1px solid var(--line);color:var(--ink);white-space:nowrap}
.dark .code,.night .code{background:var(--stone-8);border-color:var(--stone-7);color:var(--on-dark)}

/* ---------- icons ---------- */
.px{width:28px;height:28px;fill:currentColor}
.chev{width:14px!important;height:14px!important;opacity:.7;transition:rotate var(--t-3) var(--ease-out)}

/* ---------- type ---------- */
.eyebrow{display:flex;width:fit-content;align-items:center;gap:10px;font-family:var(--font-pixel);font-size:10px;line-height:1.6;letter-spacing:.08em;text-transform:uppercase;color:var(--bronze-ink)}
.eyebrow::before{content:"";width:18px;height:2px;background:currentColor}
:is(.dark,.night,.hero,.phero,.shero,.tile--dark,.dcband) .eyebrow{color:var(--gold)}
.av .lead{font-size:var(--fs-lead);line-height:1.55;max-width:54ch;color:var(--ink-2)}
:is(.dark,.night,.hero,.phero,.shero,.band--dark,.lost) .lead{color:var(--on-dark-2)}
.h2{font-size:var(--fs-h2);line-height:1.04}

/* ---------- header ---------- */
.hdr{position:fixed;top:0;left:0;right:0;z-index:60;height:var(--hdr);color:var(--on-dark);isolation:isolate;view-transition-name:site-header}
.hdr::before{content:"";position:absolute;inset:0;z-index:-1;background:rgb(20 17 13/.82);-webkit-backdrop-filter:blur(16px) saturate(150%);backdrop-filter:blur(16px) saturate(150%);border-bottom:1px solid rgb(212 178 94/.14);opacity:0;transition:opacity var(--t-3) var(--ease-out)}
.hdr.is-scrolled::before,.hdr--solid::before{opacity:1}
@supports (animation-timeline:scroll()){
  .hdr:not(.hdr--solid)::before{animation:to-on linear both;animation-timeline:scroll(root);animation-range:0 220px;transition:none}
}
.hdr__in{height:100%;display:flex;align-items:center;gap:20px}
.hdr .brand{display:inline-flex;align-items:center;gap:10px;flex:none;color:var(--on-dark);text-decoration:none}
.hdr .brand:hover{color:var(--on-dark)}
.brand__logo{width:36px;height:36px;transition:rotate var(--t-4) var(--ease-spring),scale var(--t-4) var(--ease-spring)}
.brand:hover .brand__logo{rotate:-12deg;scale:1.06}
.hdr .brand__name{font-family:var(--font-pixel);font-size:12px;line-height:1;padding-top:3px}
.nav{display:flex;align-items:center;gap:2px;margin-left:12px}
.nav__item{position:relative}
.nav__item::after{content:"";position:absolute;left:0;right:0;top:100%;height:16px}
.nav__link{position:relative;display:inline-flex;align-items:center;gap:4px;height:40px;padding:0 12px;border-radius:var(--r);font-size:14.5px;font-weight:500;color:var(--on-dark-2);white-space:nowrap;transition:color var(--t-2) var(--ease-out)}
.nav__link:hover,.nav__item:focus-within>.nav__link,.nav__link[aria-current]{color:var(--on-dark)}
.nav__link::after{content:"";position:absolute;left:12px;right:12px;bottom:4px;height:2px;border-radius:1px;background:var(--gold);transform:scaleX(0);transform-origin:left;transition:transform var(--t-3) var(--ease-out)}
.nav__link:hover::after,.nav__link[aria-current]::after,.nav__item:focus-within>.nav__link::after{transform:scaleX(1)}
.nav__item:hover .chev,.nav__item:focus-within .chev{rotate:180deg}
.nav__count{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:4px;padding:0 5px;border:1px solid var(--gold);color:var(--gold);font-size:11px;font-weight:600}
.menu{position:absolute;top:calc(100% + 12px);left:-8px;z-index:5;min-width:280px;padding:8px;background:var(--stone-9);border:1px solid var(--stone-7);border-radius:var(--r-2);box-shadow:0 30px 70px -24px rgb(0 0 0/.75);opacity:0;visibility:hidden;translate:0 -8px;scale:.98;transform-origin:15% 0;transition:opacity var(--t-2) var(--ease-out),translate var(--t-3) var(--ease-out),scale var(--t-3) var(--ease-out),visibility 0s linear var(--t-3)}
.nav__item:hover>.menu,.nav__item:focus-within>.menu{opacity:1;visibility:visible;translate:none;scale:1;transition-delay:0s}
.nav__item:hover>.menu .menu__a,.nav__item:focus-within>.menu .menu__a{animation:rise .5s var(--ease-out) both}
.menu .menu__a:nth-child(2){animation-delay:25ms}.menu .menu__a:nth-child(3){animation-delay:50ms}.menu .menu__a:nth-child(4){animation-delay:75ms}.menu .menu__a:nth-child(5){animation-delay:100ms}.menu .menu__a:nth-child(6){animation-delay:125ms}
.menu--modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;width:560px}
.menu__a{display:flex;align-items:center;gap:12px;padding:10px;border-radius:var(--r);color:var(--on-dark);text-decoration:none;transition:background-color var(--t-2)}
.menu__a:hover{background:var(--stone-8);color:var(--on-dark)}
.menu__ic{width:40px;height:40px;display:grid;place-items:center;flex:none;border-radius:var(--r);background:var(--stone-8);border:1px solid var(--stone-7);color:var(--gold);transition:transform var(--t-3) var(--ease-spring),background-color var(--t-2)}
.menu__ic .px{width:20px;height:20px}
.menu__ic .i{width:19px;height:19px}
.menu__a:hover .menu__ic{transform:scale(1.08) rotate(-5deg);background:var(--stone-7)}
.menu__t{display:block;font-weight:600;font-size:14px;line-height:1.3}
.menu__s{display:block;font-size:12.5px;line-height:1.4;color:var(--on-dark-3)}
.menu__foot{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 20px;margin-top:4px;padding:12px 10px 4px;border-top:1px solid var(--stone-7);font-size:13px;color:var(--on-dark-3)}
.menu__foot .go{min-height:0;font-size:13.5px}
.hdr__actions{margin-left:auto;display:flex;align-items:center;gap:10px}
.menu-btn{display:none;width:44px;height:44px;place-items:center;border-radius:var(--r);border:1px solid rgb(240 233 219/.18);background:transparent;color:var(--on-dark);transition:border-color var(--t-2)}
.menu-btn:hover{border-color:var(--gold)}
/* account link: "Log in", or the player's head once logged in (main.js) */
.header-account{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:40px;height:40px;padding:0 14px;border:1px solid rgb(240 233 219/.22);border-radius:var(--r);background:rgb(240 233 219/.04);color:var(--on-dark);font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap;transition:border-color var(--t-2),background-color var(--t-2),transform var(--t-2) var(--ease-out)}
.header-account:hover{border-color:var(--gold);background:rgb(212 178 94/.1);color:var(--on-dark);transform:translateY(-1px)}
.header-account .i{width:17px;height:17px}
.header-account.is-in{padding:0 12px 0 6px}
.header-account .avatar{border-color:var(--gold);background:var(--stone-9);color:var(--on-dark)}
.header-account.is-in span:not(.avatar){max-width:9rem;overflow:hidden;text-overflow:ellipsis}
/* cart button (store page only; cart.js keeps the count) */
.cart-btn{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 6px 0 12px;border:1px solid var(--gold);border-radius:var(--r);background:transparent;color:var(--on-dark);font-size:14px;font-weight:600;transition:background-color var(--t-2)}
.cart-btn:hover{background:rgb(212 178 94/.12)}
.cart-btn .i{width:17px;height:17px}
.cart-btn__count{display:inline-grid;place-items:center;min-width:26px;height:26px;padding:0 5px;background:var(--gold);color:var(--ink);font-size:13px;font-variant-numeric:tabular-nums}
.cart-btn.is-bumped .cart-btn__count{animation:bump .45s var(--ease-spring)}
@keyframes bump{30%{transform:scale(1.25)}}
@media (max-width:560px){.cart-btn__label{display:none}}
/* app pages (forum, account, checkout): header always solid, content starts below it */
.has-solid-hdr main{padding-top:var(--hdr)}

/* ---------- buttons ---------- */
.btn{position:relative;isolation:isolate;overflow:hidden;gap:10px;min-height:48px;padding:0 20px;font-size:15px;line-height:1.1;transition:transform var(--t-2) var(--ease-out),box-shadow var(--t-2) var(--ease-out),background-color var(--t-2),border-color var(--t-2),color var(--t-2)}
.btn:active{transform:translateY(1px) scale(.985);transition-duration:var(--t-1)}
.btn--gold::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(105deg,transparent 30%,rgb(255 248 225/.55) 50%,transparent 70%);transform:translateX(-120%)}
.btn--gold:hover{transform:translateY(-2px);box-shadow:inset 0 -3px 0 rgb(0 0 0/.22),0 14px 30px -12px rgb(212 178 94/.7)}
.btn--gold:hover::after{animation:sheen .9s var(--ease-out)}
.btn--ghost{color:var(--on-dark);border-color:rgb(240 233 219/.22);background:rgb(240 233 219/.04);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.btn--ghost:hover{border-color:var(--gold);background:rgb(212 178 94/.1);color:var(--on-dark);transform:translateY(-2px)}
.btn--line:hover{background:rgb(28 24 19/.04);transform:translateY(-2px)}
:is(.band--dark,.dark,.night,.hero,.phero,.shero) .btn--line:hover{background:rgb(212 178 94/.08)}
.btn--ink{background:var(--stone-9);color:var(--on-dark)}
.btn--ink:hover{background:var(--stone-8);color:var(--on-dark);transform:translateY(-2px);box-shadow:0 14px 30px -14px rgb(28 24 19/.6)}
.btn--lg{min-height:56px;padding:0 26px;font-size:16px}
.btn--sm{min-height:40px;padding:0 14px;font-size:14px;gap:8px}
.btn--block{width:100%}
.btn__ip,.ipv{font-family:var(--font-mono);font-size:13px;font-weight:500;padding:5px 8px;border-radius:2px;background:rgb(28 24 19/.12)}

/* copy feedback (main.js puts .is-copied on the button for 2 s) */
.swap{position:relative;display:inline-block;width:18px;height:18px;flex:none}
.swap>svg{position:absolute;inset:0;width:18px;height:18px;transition:transform var(--t-3) var(--ease-spring),opacity var(--t-2) var(--ease-out)}
.swap .ic-ok{opacity:0;transform:scale(.3) rotate(-40deg)}
.is-copied .swap .ic-cp{opacity:0;transform:scale(.3) rotate(40deg)}
.is-copied .swap .ic-ok{opacity:1;transform:none}
.lbl{display:inline-grid;overflow:hidden}
.lbl>span{grid-area:1/1;display:block!important;transition:transform var(--t-3) var(--ease-out),opacity var(--t-2) var(--ease-out)}
.lbl .when-copied{opacity:0;transform:translateY(110%)}
.is-copied .lbl .when-idle{opacity:0;transform:translateY(-110%)}
.is-copied .lbl .when-copied{opacity:1;transform:none}

/* IP chip in the header */
.ip{position:relative;display:inline-flex;align-items:center;gap:10px;height:40px;padding:0 12px 0 14px;border:1px solid rgb(240 233 219/.2);border-radius:var(--r);background:rgb(240 233 219/.04);color:var(--on-dark);font-family:var(--font-mono);font-size:13.5px;transition:border-color var(--t-2),background-color var(--t-2),transform var(--t-1)}
.ip:hover,.ip.is-copied{border-color:var(--gold);background:rgb(212 178 94/.1)}
.ip:active{transform:scale(.97)}
.ip .swap,.ip .swap>svg{width:16px;height:16px}
.ip .live{background:var(--gold)}
.ip .live::after{animation-duration:3.2s}

/* live dot: green when the status check says online (main.js sets data-state) */
.live{position:relative;width:8px;height:8px;flex:none;border-radius:50%;background:var(--mc-green)}
.live::after{content:"";position:absolute;inset:0;border-radius:50%;background:inherit;animation:ping 2.2s var(--ease-out) infinite}
:is(.light,.light2) .live{background:var(--green)}
[data-state="loading"] .live,[data-state="error"] .live{background:var(--stone-6)}
[data-state="offline"] .live{background:var(--mc-red)}
:is([data-state="loading"],[data-state="error"],[data-state="offline"]) .live::after{animation:none}

/* links with arrow */
.av .go{display:inline-flex;align-items:center;gap:8px;min-height:0;font-weight:600;color:var(--bronze-ink);text-decoration:none;transition:color var(--t-2)}
.av .go>span{background:linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat;padding-bottom:2px;transition:background-size var(--t-3) var(--ease-out)}
.av .go:hover>span{background-size:100% 1px}
.av .go .i{width:18px;height:18px;transition:transform var(--t-3) var(--ease-out)}
.av .go:hover .i{transform:translateX(4px)}
:is(.dark,.night,.hero,.phero,.shero,.tile--dark,.dcband,.menu) .go{color:var(--gold)}
.av .go--quiet{color:var(--on-dark-2);font-weight:500;font-size:14px}
.av .go--quiet:hover{color:var(--on-dark)}

/* chips and tags */
.chip{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:3px 10px;border-radius:var(--r);border:1px solid rgb(240 233 219/.16);background:rgb(20 17 13/.35);color:var(--on-dark-2);font-size:12.5px;font-weight:600;line-height:1.2;white-space:nowrap;text-decoration:none}
.chip .i,.chip .px{width:14px;height:14px}
.chip--light{border-color:var(--line);background:var(--paper);color:var(--ink-2)}
a.chip{transition:border-color var(--t-2),color var(--t-2),background-color var(--t-2),transform var(--t-2) var(--ease-out)}
a.chip:hover{border-color:var(--gold);color:var(--on-dark);transform:translateY(-1px)}
a.chip--light:hover{border-color:var(--bronze);color:var(--ink)}
.chips{display:flex;flex-wrap:wrap;gap:8px}

/* ---------- heroes ---------- */
.hero{position:relative;isolation:isolate;overflow:hidden;min-height:min(52rem,100svh);display:flex;align-items:flex-end;padding:calc(var(--hdr) + 80px) 0 104px;background:var(--stone-9);color:var(--on-dark)}
.media{position:absolute;inset:0;z-index:-2;overflow:hidden;animation:media-in 1.8s var(--ease-out) both}
.media img{width:100%;height:100%;object-fit:cover;animation:kb 34s ease-in-out infinite alternate;will-change:transform}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgb(20 17 13/.9) 0%,rgb(20 17 13/.66) 32%,rgb(20 17 13/.12) 66%,rgb(20 17 13/.2) 100%),linear-gradient(0deg,var(--stone-9) 0%,rgb(28 24 19/0) 32%),linear-gradient(180deg,rgb(20 17 13/.65) 0%,rgb(20 17 13/0) 20%)}
.hero__c{max-width:880px}
.hero h1{font-size:var(--fs-hero);line-height:.98;letter-spacing:-.035em}
.hero .lead{margin-top:26px;max-width:50ch}
.av .actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:0}
.pill{display:flex;flex-wrap:wrap;width:fit-content;align-items:center;gap:6px 10px;min-height:36px;padding:6px 14px 6px 12px;border:1px solid rgb(240 233 219/.14);border-radius:var(--r);background:rgb(20 17 13/.45);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-size:13px;color:var(--on-dark-2)}
.pill strong{color:var(--on-dark);font-weight:600}
.pill .sep{width:1px;height:14px;background:rgb(240 233 219/.18)}
[data-state="online"] [data-status-text]{color:var(--on-dark)!important}
.cue{position:absolute;left:50%;bottom:28px;width:1px;height:52px;overflow:hidden;background:rgb(240 233 219/.14);transform:translateX(-50%)}
.cue::after{content:"";position:absolute;left:0;top:-40%;width:1px;height:40%;background:var(--gold);animation:cue 2.4s var(--ease-io) infinite}
/* page hero (inner pages) */
.phero{position:relative;isolation:isolate;overflow:hidden;padding:calc(var(--hdr) + 56px) 0 60px;background:var(--stone-9);color:var(--on-dark)}
.phero .media{left:36%}
.phero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,var(--stone-9) 36%,rgb(28 24 19/.7) 52%,rgb(28 24 19/.15) 78%,rgb(28 24 19/.3) 100%),linear-gradient(0deg,var(--stone-9) 0%,rgb(28 24 19/0) 45%),linear-gradient(180deg,rgb(20 17 13/.55) 0%,rgb(20 17 13/0) 25%)}
.phero--plain::before{background:radial-gradient(ellipse 70% 120% at 85% 0%,rgb(212 178 94/.10),transparent 60%)}
.phero__grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:32px 64px;align-items:end}
.phero h1{font-size:var(--fs-h1);line-height:1.02;letter-spacing:-.03em;max-width:16ch}
.phero .lead{margin-top:20px}
.phero__aside{justify-self:end;width:100%;max-width:420px}
.has-solid-hdr .phero{padding-top:48px}
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:22px;font-size:13px;color:var(--on-dark-3)}
.crumbs a{color:var(--on-dark-3);transition:color var(--t-2)}
.crumbs a:hover{color:var(--on-dark)}
.crumbs .i{width:12px;height:12px;opacity:.6}
.crumbs [aria-current]{color:var(--on-dark-2)}
/* old title bands (forum and account pages keep their markup): same look as .phero */
.page-band.band--dark{position:relative;isolation:isolate;padding-block:48px 56px;background:var(--stone-9)}
.page-band.band--dark::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse 70% 120% at 85% 0%,rgb(212 178 94/.10),transparent 60%)}
.page-band.band--dark h1{font-size:var(--fs-h1);line-height:1.02;letter-spacing:-.03em}

/* ---------- sections ---------- */
.sec{padding-block:var(--sec)}
.sec--tight{padding-block:calc(var(--sec)*.62)}
.head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:20px 64px;margin-bottom:clamp(36px,4vw,56px)}
.head h2{font-size:var(--fs-h2);line-height:1.04;max-width:17ch;margin-top:16px}
.head>p,.head__aside{max-width:44ch;color:var(--muted)}
:is(.dark,.night) :is(.head>p,.head__aside){color:var(--on-dark-2)}

/* image cards (modes) */
.mcard{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;min-height:380px;padding:24px;border-radius:var(--r-2);background:var(--stone-8);border:1px solid rgb(240 233 219/.08);color:var(--on-dark);text-decoration:none;transition:transform var(--t-3) var(--ease-out),border-color var(--t-3),box-shadow var(--t-3) var(--ease-out)}
.mcard:hover{color:var(--on-dark)}
.mcard__img,.mcard__img img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover}
.mcard__img img{position:static;filter:saturate(.92) brightness(.82);transform:scale(1.02);transition:transform 1.2s var(--ease-out),filter var(--t-3)}
.mcard::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgb(20 17 13/.1) 0%,rgb(20 17 13/0) 30%,rgb(20 17 13/.62) 60%,rgb(20 17 13/.95) 100%)}
.mcard:hover{transform:translateY(-6px);border-color:rgb(212 178 94/.55);box-shadow:0 34px 64px -30px rgb(0 0 0/.85)}
.mcard:hover .mcard__img img{transform:scale(1.08);filter:saturate(1.05) brightness(.95)}
.mcard__ic{position:absolute;top:20px;left:20px;width:46px;height:46px;display:grid;place-items:center;border-radius:var(--r);background:rgb(20 17 13/.55);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgb(240 233 219/.14);color:var(--gold)}
.mcard__ic .px{width:22px;height:22px}
.mcard__go{position:absolute;top:22px;right:22px;width:40px;height:40px;display:grid;place-items:center;border-radius:var(--r);background:var(--gold);color:var(--ink);opacity:0;translate:-6px 6px;scale:.7;transition:opacity var(--t-2) var(--ease-out),translate var(--t-3) var(--ease-spring),scale var(--t-3) var(--ease-spring)}
.mcard__go .i{width:18px;height:18px}
.mcard:hover .mcard__go,.mcard:focus-visible .mcard__go{opacity:1;translate:none;scale:1}
.mcard h3{font-size:28px;line-height:1.1;letter-spacing:-.03em}
.mcard p{margin-top:8px;font-size:15px;line-height:1.5;color:var(--on-dark-2);max-width:40ch}
.mcard__meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:14px;font-size:12.5px;font-weight:600;letter-spacing:.01em;color:var(--on-dark-3)}
.mcard__meta i{width:3px;height:3px;background:var(--gold);flex:none}

/* light tiles */
.tile{position:relative;display:flex;flex-direction:column;gap:14px;padding:28px;border-radius:var(--r-2);background:var(--paper);border:1px solid var(--line);color:var(--ink);text-decoration:none;transition:transform var(--t-3) var(--ease-out),border-color var(--t-3),box-shadow var(--t-3) var(--ease-out)}
a.tile:hover{color:var(--ink)}
.tile:hover{transform:translateY(-4px);border-color:var(--bronze);box-shadow:0 26px 50px -30px rgb(28 24 19/.4)}
.tile h3{font-size:21px;line-height:1.15}
.tile p{color:var(--muted);font-size:15px}
.tile__ic{width:48px;height:48px;display:grid;place-items:center;flex:none;border-radius:var(--r);background:var(--stone-9);color:var(--gold);transition:transform var(--t-3) var(--ease-spring)}
.tile__ic .px{width:24px;height:24px}
.tile__ic .i{width:22px;height:22px}
.tile:hover .tile__ic{transform:rotate(-6deg) scale(1.06)}
.tile--dark{background:var(--stone-8);border-color:var(--stone-7);color:var(--on-dark)}
a.tile--dark:hover{color:var(--on-dark)}
.tile--dark p{color:var(--on-dark-2)}
.tile--dark .tile__ic{background:var(--stone-9);border:1px solid var(--stone-7)}
.tile--dark:hover{border-color:rgb(212 178 94/.5)}
.tile__arrow{position:absolute;top:24px;right:24px;width:36px;height:36px;display:grid;place-items:center;border-radius:var(--r);border:1px solid var(--line);color:var(--ink-2);transition:transform var(--t-3) var(--ease-out),background-color var(--t-2),border-color var(--t-2),color var(--t-2)}
.tile__arrow .i{width:17px;height:17px}
.tile:hover .tile__arrow{transform:translate(3px,-3px);background:var(--stone-9);border-color:var(--stone-9);color:var(--gold)}
.tile--dark .tile__arrow{border-color:var(--stone-7);color:var(--on-dark-2)}
.tile--dark:hover .tile__arrow{background:var(--gold);border-color:var(--gold);color:var(--ink)}

/* rows */
.rows{margin-inline:-12px;border-top:1px solid var(--line)}
.row{position:relative;display:flex;align-items:center;gap:18px;padding:18px 12px;border-bottom:1px solid var(--line);border-radius:var(--r);isolation:isolate;color:inherit;text-decoration:none}
a.row:hover{color:inherit}
.row::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--r);background:var(--paper);transform:scaleX(.96);opacity:0;transition:transform var(--t-3) var(--ease-out),opacity var(--t-2)}
.row:hover::before{transform:none;opacity:1}
.row__ic{width:44px;height:44px;display:grid;place-items:center;flex:none;border-radius:var(--r);background:var(--stone-9);color:var(--gold);transition:transform var(--t-3) var(--ease-spring)}
.row:hover .row__ic{transform:scale(1.06) rotate(-4deg)}
.row__go{margin-left:auto;color:var(--line-2);transition:transform var(--t-3) var(--ease-out),color var(--t-2)}
.row:hover .row__go{transform:translateX(4px);color:var(--ink)}

/* command rows (new pages; the older lists keep .cmd-list from Part 1) */
.cmds{margin-inline:-12px;border-top:1px solid var(--line)}
.cmds .cmd{display:grid;grid-template-columns:minmax(150px,max-content) minmax(0,1fr) auto;grid-template-areas:none;align-items:center;gap:8px 24px;padding:12px;border-top:0;border-bottom:1px solid var(--line);border-radius:var(--r);transition:background-color var(--t-2)}
.cmds .cmd:hover{background:var(--paper)}
.cmds .cmd code{padding:0;border:0;background:none;font-family:var(--font-mono);font-size:14px;font-weight:600;color:var(--ink);white-space:normal}
.cmds .cmd p{margin:0;color:var(--muted);font-size:15px}
.cmds .cmd__copy{grid-area:auto;width:36px;height:36px;display:grid;place-items:center;border-radius:var(--r);border:1px solid var(--line);background:transparent;color:var(--ink-2);opacity:.55;transition:opacity var(--t-2),border-color var(--t-2),background-color var(--t-2)}
.cmds .cmd:hover .cmd__copy,.cmds .cmd__copy:focus-visible,.cmds .cmd__copy.is-copied{opacity:1;border-color:var(--line-2);background:var(--light)}
.cmds .cmd__copy.is-copied{color:var(--green-ink)}
@media (hover:none){.cmds .cmd__copy{opacity:1}}
@media (max-width:640px){.cmds .cmd{grid-template-columns:minmax(0,1fr) auto}.cmds .cmd p{grid-column:1;grid-row:2}.cmds .cmd__copy{grid-column:2;grid-row:1/span 2}}

/* notice */
.notice{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:var(--r-2);border:1px solid rgb(176 137 69/.45);background:rgb(212 178 94/.14);font-size:14px;line-height:1.55;color:var(--ink-2)}
.notice .i{width:18px;height:18px;margin-top:2px;color:var(--bronze-ink)}
:is(.dark,.night,.phero,.hero) .notice{color:var(--on-dark-2);background:rgb(212 178 94/.08);border-color:rgb(212 178 94/.35)}
:is(.dark,.night,.phero,.hero) .notice .i{color:var(--gold)}

/* ---------- footer ---------- */
.ftr{margin-top:auto;background:var(--night);color:var(--on-dark-2);padding:88px 0 28px;font-size:15px}
.ftr a{color:var(--on-dark-2);text-decoration:none}
.ftr__top{display:grid;grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,1fr));gap:48px}
.ftr .brand{display:inline-flex;align-items:center;gap:10px;color:var(--on-dark)}
.ftr .brand__name{font-family:var(--font-pixel);font-size:12px;line-height:1;padding-top:3px}
.ftr__brand p{margin-top:18px;max-width:36ch;color:var(--on-dark-3);font-size:14px;line-height:1.65}
.ftr__brand .actions{margin-top:22px}
.ftr__t{margin-bottom:18px!important;font-family:var(--font-pixel);font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:var(--gold)}
.ftr ul{display:grid;gap:11px}
.ftr__a{position:relative;display:inline-block;color:var(--on-dark-2);transition:color var(--t-2)}
.ftr__a::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:1px;background:var(--gold);transform:scaleX(0);transform-origin:right;transition:transform var(--t-3) var(--ease-out)}
.ftr__a:hover{color:var(--on-dark)}
.ftr__a:hover::after{transform:scaleX(1);transform-origin:left}
.ftr__bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 32px;margin-top:72px;padding-top:24px;border-top:1px solid rgb(240 233 219/.08);font-size:13px;color:var(--on-dark-3)}
.ftr__legal{max-width:62ch}
.ftr__links{display:flex;flex-wrap:wrap;gap:8px 22px}
.ftr__links a{color:var(--on-dark-3)}
.ftr__links a:hover{color:var(--on-dark)}
.music{display:inline-flex;align-items:center;gap:10px;height:36px;padding:0 12px;border:1px solid var(--stone-7);border-radius:var(--r);background:transparent;color:var(--on-dark-2);font-size:13px;transition:border-color var(--t-2),color var(--t-2)}
.music:hover{border-color:var(--gold);color:var(--on-dark)}
.music[aria-pressed="true"]{border-color:var(--gold);color:var(--gold)}
.eq{display:flex;align-items:flex-end;gap:2px;height:12px}
.eq i{width:2px;height:100%;background:currentColor;transform-origin:bottom;transform:scaleY(.3)}
.music:hover .eq i,.music[aria-pressed="true"] .eq i{animation:bar .9s ease-in-out infinite}
.eq i:nth-child(2){animation-delay:-.3s!important}.eq i:nth-child(3){animation-delay:-.6s!important}.eq i:nth-child(4){animation-delay:-.15s!important}

/* mobile dock: appears once the hero actions scroll away (main.js adds .is-visible) */
.dock{display:none}

/* ---------- mobile menu (markup and behaviour from main.js, new look) ---------- */
.mobile-menu__backdrop{background:rgb(10 8 6/.55);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);transition:opacity var(--t-3) var(--ease-out)}
.mobile-menu__panel{width:min(420px,100%);gap:0;padding:0 0 calc(16px + env(safe-area-inset-bottom));background:var(--stone-9);transition:transform var(--t-4) var(--ease-out)!important}
.mobile-menu__panel>*{flex-shrink:0}
.mobile-menu__top{height:var(--hdr);min-height:0;padding:0 16px;border-bottom:1px solid var(--stone-7)}
.mobile-menu__top .brand{display:inline-flex;align-items:center;gap:10px;color:var(--on-dark);text-decoration:none}
.mobile-menu__top .brand__logo{width:32px;height:32px}
.mobile-menu__top .brand__name{font-family:var(--font-pixel);font-size:12px;line-height:1;padding-top:3px}
.mobile-menu .icon-btn{width:44px;height:44px;border-color:rgb(240 233 219/.2)}
.mm-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:16px 16px 6px}
.mm-modes a{display:flex;align-items:center;gap:10px;min-height:52px;padding:8px 10px;border-radius:var(--r);background:var(--stone-8);border:1px solid var(--stone-7);color:var(--on-dark);font-size:14px;font-weight:600;text-decoration:none;transition:border-color var(--t-2),background-color var(--t-2)}
.mm-modes a:hover,.mm-modes a[aria-current]{border-color:rgb(212 178 94/.55);background:var(--stone-7)}
.mm-modes .px{width:18px;height:18px;color:var(--gold)}
.mobile-menu__list{padding:8px 12px}
.mobile-menu__list a{gap:14px;min-height:52px;padding:0 10px;border-bottom:0;border-radius:var(--r);font-family:var(--font-sans);font-size:16px;font-weight:500;transition:background-color var(--t-2)}
.mobile-menu__list a:hover{background:var(--stone-8);color:var(--on-dark)}
.mobile-menu__list a .i{color:var(--gold)}
.mobile-menu__list a[aria-current]{background:var(--stone-8);color:var(--on-dark)}
.mobile-menu__list a[aria-current]::before{content:"";width:3px;height:22px;margin-left:-10px;margin-right:-7px;background:var(--gold)}
.mobile-menu__arrow{color:var(--stone-6)}
.mobile-menu__actions{gap:10px;padding:16px;border-top:1px solid var(--stone-7)}
.mobile-menu.is-open .mm-modes a,.mobile-menu.is-open .mobile-menu__list li{animation:mslide .55s var(--ease-out) both}
.mobile-menu.is-open .mobile-menu__list li:nth-child(2){animation-delay:30ms}.mobile-menu.is-open .mobile-menu__list li:nth-child(3){animation-delay:60ms}.mobile-menu.is-open .mobile-menu__list li:nth-child(4){animation-delay:90ms}.mobile-menu.is-open .mobile-menu__list li:nth-child(5){animation-delay:120ms}.mobile-menu.is-open .mobile-menu__list li:nth-child(6){animation-delay:150ms}.mobile-menu.is-open .mobile-menu__list li:nth-child(7){animation-delay:180ms}.mobile-menu.is-open .mobile-menu__list li:nth-child(8){animation-delay:210ms}.mobile-menu.is-open .mobile-menu__list li:nth-child(9){animation-delay:240ms}.mobile-menu.is-open .mobile-menu__list li:nth-child(10){animation-delay:270ms}

/* toasts: same behaviour, softer entrance */
.toast{border-radius:var(--r-2);box-shadow:0 24px 50px -24px rgb(0 0 0/.7);animation:toast-in .42s var(--ease-out) both}
.toast.is-leaving{animation:toast-out .22s ease both}

/* ---------- motion ---------- */
@keyframes rise{from{opacity:0;translate:0 18px;filter:blur(6px)}to{opacity:1;translate:none;filter:none}}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes ln-up{from{translate:0 108%}to{translate:none}}
@keyframes media-in{from{opacity:0;scale:1.06}to{opacity:1;scale:1}}
@keyframes kb{from{transform:scale(1.03) translate3d(0,0,0)}to{transform:scale(1.13) translate3d(-1.6%,-1.2%,0)}}
@keyframes hdr-in{from{opacity:0;translate:0 -14px}to{opacity:1;translate:none}}
@keyframes to-on{to{opacity:1}}
@keyframes ping{0%{transform:scale(1);opacity:.7}80%,100%{transform:scale(3.2);opacity:0}}
@keyframes float{0%,100%{translate:0 0}50%{translate:0 -14px}}
@keyframes sheen{from{transform:translateX(-120%)}to{transform:translateX(120%)}}
@keyframes bar{0%,100%{transform:scaleY(.3)}50%{transform:scaleY(1)}}
@keyframes cue{to{top:100%}}
@keyframes draw{from{transform:scaleY(0)}}
@keyframes mslide{from{opacity:0;translate:24px 0}to{opacity:1;translate:none}}
@keyframes toast-in{from{opacity:0;translate:0 10px;scale:.97}to{opacity:1;translate:none;scale:1}}
.rv{animation:rise var(--t-4) var(--ease-out) both}
.fd{animation:fade var(--t-4) var(--ease-out) both}
.av .d1{animation-delay:80ms}.av .d2{animation-delay:160ms}.av .d3{animation-delay:240ms}.av .d4{animation-delay:320ms}.av .d5{animation-delay:400ms}.av .d6{animation-delay:480ms}.av .d7{animation-delay:560ms}.av .d8{animation-delay:640ms}
.ln{display:block;overflow:hidden;padding-bottom:.1em;margin-bottom:-.1em}
.ln>span{display:block;animation:ln-up 1s var(--ease-out) both}
/* scroll reveals where the browser has scroll-driven animations; elsewhere the content is simply there */
@supports (animation-timeline:view()){
  .sr,.sr2,.sr3{animation:rise linear both;animation-timeline:view()}
  .sr{animation-range:entry 0% entry 100%}
  .sr2{animation-range:entry 12% entry 100%}
  .sr3{animation-range:entry 24% entry 100%}
}
/* page-to-page cross-fade in browsers that support it; the header stays put */
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:.32s;animation-timing-function:var(--ease-out)}
@media (prefers-reduced-motion:reduce){
  @view-transition{navigation:none}
  .media img{animation:none!important}
}

/* ---------- responsive ---------- */
@media (max-width:1180px){
  .nav__link{padding:0 9px;font-size:14px}
  .nav__link::after{left:9px;right:9px}
}
@media (max-width:1080px){
  .nav{display:none}
  .menu-btn{display:inline-grid}
}
@media (max-width:900px){
  .ftr__top{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ftr__brand{grid-column:1/-1}
  .phero__grid{grid-template-columns:minmax(0,1fr)}
  .phero__aside{justify-self:start}
}
@media (max-width:760px){
  .header-account span:not(.avatar){display:none}
  .header-account{width:44px;min-width:44px;height:44px;padding:0}
  .header-account.is-in{padding:0}
  .hero{min-height:44rem;padding-bottom:88px}
  .phero .media{left:0;opacity:.35}
  .dock{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:55;display:flex;gap:8px;padding:8px;border-radius:var(--r-2);background:rgb(20 17 13/.88);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid var(--stone-7);box-shadow:0 20px 50px -20px rgb(0 0 0/.7);opacity:0;visibility:hidden;translate:0 24px;transition:opacity var(--t-3) var(--ease-out),translate var(--t-4) var(--ease-out),visibility 0s linear var(--t-4)}
  .dock.is-visible{opacity:1;visibility:visible;translate:none;transition-delay:0s}
  .dock .btn{flex:1;min-height:48px}
  .dock__dc{flex:0 0 auto!important}
  body.has-dock .ftr{padding-bottom:100px}
  .menu--modes{width:auto}
  .ftr{padding-top:64px}
}
@media (max-width:560px){
  .ftr__top{grid-template-columns:minmax(0,1fr)}
  .hdr .ip .ip__txt{display:none}
  .hdr .ip{padding:0 12px;gap:8px}
  .hdr__actions{gap:8px}
}
@media (max-width:379px){
  .hdr .brand__name{display:none}
}


/* ==========================================================================
   Part 3 — pages
   ========================================================================== */

/* ---------- home ---------- */
.head__aside{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.modes6{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.modes6 .mcard{min-height:400px}
.dcband{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:32px 48px;padding:clamp(28px,4vw,52px);border-radius:var(--r-2);background:var(--stone-9);color:var(--on-dark)}
.dcband__glyph{position:absolute;z-index:-1;right:-40px;top:-60px;width:320px;height:320px;color:rgb(212 178 94/.07);animation:float 10s ease-in-out infinite;pointer-events:none}
.dcband h2{font-size:clamp(30px,2.6vw,40px);line-height:1.05;max-width:16ch;margin-top:16px}
.dcband__p{margin-top:14px;max-width:48ch;color:var(--on-dark-2)}
.dcband__count{display:flex;align-items:center;gap:10px;margin-top:18px;font-size:14px;color:var(--on-dark-2)}
.dcband__count strong{color:var(--on-dark)}
.dcband__act{display:flex;flex-direction:column;align-items:flex-start;gap:16px}

/* ---------- modes overview ---------- */
.jump{min-height:40px;padding:0 14px 0 10px;font-size:14px;gap:10px}
.jump .px{width:18px;height:18px;color:var(--gold)}
.phero--modes{padding-bottom:0}
.phero--modes .subnav{margin-top:44px}
.subnav{display:flex;gap:28px;border-bottom:1px solid rgb(240 233 219/.1)}
.subnav a{position:relative;display:inline-flex;align-items:center;min-height:52px;color:var(--on-dark-3)!important;font-weight:600;font-size:15px;text-decoration:none;transition:color var(--t-2)}
.subnav a:hover,.subnav a[aria-current]{color:var(--on-dark)!important}
.subnav a::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--gold);transform:scaleX(0);transform-origin:left;transition:transform var(--t-3) var(--ease-out)}
.subnav a:hover::after{transform:scaleX(.4)}
.subnav a[aria-current]::after{transform:none}
.phero__cap{position:absolute;right:var(--gutter);bottom:84px;z-index:1;max-width:300px;font-size:13px;line-height:1.5;color:var(--on-dark-2);text-align:right}
.mrow{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:clamp(32px,5vw,80px);align-items:center;padding-block:56px;border-bottom:1px solid var(--line);scroll-margin-top:calc(var(--hdr) + 24px)}
.mrow:first-child{padding-top:0}
.mrow:last-child{border-bottom:0;padding-bottom:0}
.mrow:nth-child(even){grid-template-columns:minmax(0,5fr) minmax(0,7fr)}
.mrow:nth-child(even) .mrow__media{order:2}
.mrow__media{position:relative;aspect-ratio:16/10;border-radius:var(--r-2);overflow:hidden;background:var(--stone-8);isolation:isolate}
.mrow__media figcaption{position:absolute;left:14px;bottom:14px;z-index:1}
.mrow__idx{display:flex;align-items:center;gap:12px;font-family:var(--font-pixel);font-size:10px;color:var(--bronze-ink)}
.mrow__idx .px{width:30px;height:30px;color:var(--ink)}
.mrow h2{font-size:clamp(32px,3vw,46px);line-height:1.02;margin-top:18px}
.mrow .lead{margin-top:14px;font-size:17px}
.mrow .chip code{padding:0;border:0;background:none;font-size:12px;color:inherit}
/* photo cross-fades: 6 s per photo, a slow zoom underneath */
.xf{position:absolute;inset:0;animation:xfzoom 26s ease-in-out infinite alternate;transition:scale 1.2s var(--ease-out)}
.mrow__media:hover .xf{scale:1.04}
.xf>picture{position:absolute;inset:0;opacity:0}
.xf>picture:first-child{opacity:1}
.xf img{width:100%;height:100%;object-fit:cover}
@keyframes xfzoom{from{transform:scale(1)}to{transform:scale(1.06)}}
.xf--2>picture{animation:xf2 12s linear infinite both}
.xf--2>picture:nth-child(1){animation-delay:-.6s}.xf--2>picture:nth-child(2){animation-delay:5.4s}
@keyframes xf2{0%{opacity:0}5%{opacity:1}50%{opacity:1}55%{opacity:0}100%{opacity:0}}
.xf--3>picture{animation:xf3 18s linear infinite both}
.xf--3>picture:nth-child(1){animation-delay:-.6s}.xf--3>picture:nth-child(2){animation-delay:5.4s}.xf--3>picture:nth-child(3){animation-delay:11.4s}
@keyframes xf3{0%{opacity:0}3.4%{opacity:1}33.3%{opacity:1}36.7%{opacity:0}100%{opacity:0}}
.xf--4>picture{animation:xf4 24s linear infinite both}
.xf--4>picture:nth-child(1){animation-delay:-.6s}.xf--4>picture:nth-child(2){animation-delay:5.4s}.xf--4>picture:nth-child(3){animation-delay:11.4s}.xf--4>picture:nth-child(4){animation-delay:17.4s}
@keyframes xf4{0%{opacity:0}2.5%{opacity:1}25%{opacity:1}27.5%{opacity:0}100%{opacity:0}}
@media (prefers-reduced-motion:reduce){.xf,.xf>picture{animation:none!important}.xf>picture:not(:first-child){display:none}}

/* ---------- single mode page ---------- */
.shero{position:relative;isolation:isolate;overflow:hidden;padding:calc(var(--hdr) + 56px) 0 104px;background:var(--stone-9);color:var(--on-dark)}
.shero__bg{position:absolute;inset:-40px;z-index:-2;opacity:.22;filter:blur(36px) saturate(1.2)}
.shero__bg img{width:100%;height:100%;object-fit:cover}
.shero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgb(20 17 13/.6),rgb(28 24 19/.2) 30%,var(--stone-9) 100%)}
.shero__grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(32px,5vw,72px);align-items:center}
.shero__t{margin-top:18px}
.shero__t .ln{font-size:clamp(3.2rem,2rem + 5vw,6.2rem);line-height:.92;letter-spacing:-.045em}
.shero__sub{display:block;margin-top:14px;font-weight:600;font-size:clamp(20px,1.6vw,26px);line-height:1.2;letter-spacing:-.015em;color:var(--on-dark-2);max-width:22ch}
.shero .lead{margin-top:22px;max-width:48ch}
.map__frame{position:relative;aspect-ratio:16/9;border-radius:var(--r-2);overflow:hidden;background:var(--stone-8);border:1px solid rgb(212 178 94/.28);box-shadow:0 50px 100px -40px rgb(0 0 0/.9),0 0 0 6px rgb(212 178 94/.05);animation:media-in 1.6s var(--ease-out) .2s both}
.map__zoom{position:absolute;inset:0;animation:mapzoom 26s ease-in-out infinite alternate}
.map__zoom .xf{animation:none}
@keyframes mapzoom{from{transform:scale(1)}to{transform:scale(1.06)}}
.hs{position:absolute;display:flex;align-items:center;gap:8px;transform:translate(-50%,-50%);animation:rise .7s var(--ease-out) both}
.hs i{position:relative;width:10px;height:10px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 3px rgb(20 17 13/.6)}
.hs i::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--gold);animation:ping 2.4s var(--ease-out) infinite}
.hs b{padding:6px 8px;border-radius:var(--r);background:rgb(20 17 13/.82);font-family:var(--font-pixel);font-size:9px;font-weight:400;letter-spacing:.04em;color:var(--on-dark);transition:transform var(--t-3) var(--ease-spring),background-color var(--t-2)}
.hs:hover b{transform:scale(1.12);background:var(--stone-9)}
.hs:nth-of-type(1){animation-delay:.9s}.hs:nth-of-type(2){animation-delay:1s}.hs:nth-of-type(3){animation-delay:1.1s}.hs:nth-of-type(4){animation-delay:1.2s}
.hs:nth-of-type(2) i::after{animation-delay:.6s}.hs:nth-of-type(3) i::after{animation-delay:1.2s}.hs:nth-of-type(4) i::after{animation-delay:1.8s}
.map figcaption{margin-top:14px;font-size:13px;color:var(--on-dark-3)}
.feat{display:grid;gap:16px}
.feat--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.feat--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.cmdgrid{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:clamp(32px,6vw,96px);align-items:start}
.cmdgrid__p{margin-top:16px;color:var(--muted);max-width:34ch}
.page-mode .notice a{color:inherit}

/* ---------- server status ---------- */
.phero--status{padding-bottom:88px}
.phero--status .media{opacity:.7}
.stgrid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(32px,5vw,72px);align-items:center}
.stsrc{margin-top:22px;font-size:14px;color:var(--on-dark-3)}
.stsrc a{color:var(--gold);text-decoration:underline;text-underline-offset:.2em}
.scard{position:relative;overflow:hidden;padding:clamp(22px,3vw,32px);border-radius:var(--r-2);background:rgb(38 32 26/.92);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid var(--stone-7);box-shadow:0 50px 100px -40px rgb(0 0 0/.85);animation:rise .9s var(--ease-out) .2s both}
.scard::before{content:"";position:absolute;right:-120px;top:-120px;width:320px;height:320px;border-radius:50%;background:radial-gradient(circle,rgb(85 255 85/.12),transparent 65%);pointer-events:none;transition:opacity var(--t-3)}
.scard:not([data-state="online"])::before{opacity:0}
.scard__top{display:flex;align-items:center;gap:20px}
.scard__top .ping{margin-left:auto;align-self:flex-start}
.orb{position:relative;width:64px;height:64px;display:grid;place-items:center;flex:none;--c:var(--on-dark-3)}
[data-state="online"] .orb{--c:var(--mc-green)}
[data-state="offline"] .orb{--c:var(--mc-red)}
.orb i{position:absolute;inset:0;border-radius:50%;border:2px solid var(--c);opacity:0;animation:ring 2.7s var(--ease-out) infinite}
.orb i:nth-child(2){animation-delay:.9s}.orb i:nth-child(3){animation-delay:1.8s}
.orb b{width:22px;height:22px;border-radius:50%;background:var(--c);transition:background-color var(--t-3)}
[data-state="online"] .orb b{box-shadow:0 0 26px rgb(85 255 85/.55)}
[data-state="loading"] .orb i{animation-duration:1.1s}
[data-state="error"] .orb i,[data-state="offline"] .orb i{animation:none}
@keyframes ring{0%{transform:scale(.35);opacity:.85}100%{transform:scale(1.6);opacity:0}}
.sbig{font-family:var(--font-display);font-weight:700;font-size:clamp(32px,3.4vw,44px);line-height:1;letter-spacing:-.03em;color:var(--on-dark)}
[data-state="online"] .sbig{color:var(--on-dark)!important}
[data-state="offline"] .sbig{color:var(--mc-red)!important}
.smeta{margin-top:8px;font-size:14px;color:var(--on-dark-3)}
.sstats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin:28px 0 0;background:var(--stone-7);border:1px solid var(--stone-7);border-radius:var(--r);overflow:hidden}
.sstat{padding:18px;background:var(--stone-9)}
.sstat dt{font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--on-dark-3)}
.sstat dd{margin:8px 0 0;font-family:var(--font-display);font-weight:700;font-size:26px;letter-spacing:-.02em;color:var(--on-dark);display:flex;align-items:baseline;gap:8px}
.sstat dd small{font-family:var(--font-sans);font-size:14px;font-weight:500;color:var(--on-dark-3);letter-spacing:0}
.sstat dd.sstat__ip{font-family:var(--font-mono);font-size:15px;font-weight:600;letter-spacing:0;padding-top:8px}
.motd{margin-top:20px;padding:12px 14px;border-radius:var(--r);background:var(--night);font-family:var(--font-pixel);font-size:9.5px;line-height:1.8;color:var(--on-dark-2)}
.sterr{margin-top:20px;font-size:14px;color:var(--on-dark-2)}
.scard__foot{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:22px}
.scard.is-refreshing [data-status-refresh] .i{animation:spin .8s linear infinite}
@keyframes spin{to{rotate:360deg}}
.history__grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin:0;padding:0;list-style:none}
.history__grid li{display:block}
.history__day{position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;width:100%;padding:16px 8px;border-radius:var(--r-2);border:1px solid var(--line);background:var(--paper);font-size:13px;color:var(--muted);text-align:center;transition:border-color var(--t-2),transform var(--t-3) var(--ease-out),box-shadow var(--t-3);animation:rise .6s var(--ease-out) both}
button.history__day{cursor:pointer;font:inherit;font-size:13px}
button.history__day:hover{transform:translateY(-3px);border-color:var(--line-2);box-shadow:0 16px 30px -22px rgb(28 24 19/.5)}
.history__day strong{font-weight:600;color:var(--ink);font-size:14px}
.history__block{width:28px;height:28px;border-radius:var(--r);border:2px solid var(--line-2)}
.history__day--on .history__block{background:var(--green);border-color:var(--green)}
.history__day--off .history__block{background:var(--red);border-color:var(--red)}
.history__grid li:nth-child(2) .history__day{animation-delay:50ms}.history__grid li:nth-child(3) .history__day{animation-delay:100ms}.history__grid li:nth-child(4) .history__day{animation-delay:150ms}.history__grid li:nth-child(5) .history__day{animation-delay:200ms}.history__grid li:nth-child(6) .history__day{animation-delay:250ms}.history__grid li:nth-child(7) .history__day{animation-delay:300ms}
.history__legend{display:flex;flex-wrap:wrap;gap:8px 20px;margin:16px 0 0;padding:0;list-style:none;font-size:13px;color:var(--muted)}
.history__legend li{display:inline-flex;align-items:center;gap:8px}
.history__key{width:12px;height:12px;border-radius:2px;border:2px solid var(--line-2)}
.history__key--on{background:var(--green);border-color:var(--green)}
.history__key--off{background:var(--red);border-color:var(--red)}
.helpband{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px 40px}
.helpband .notice{max-width:68ch}

/* ---------- 404 ---------- */
.lost{position:relative;isolation:isolate;overflow:hidden;min-height:max(100svh,44rem);display:grid;place-items:center;padding:calc(var(--hdr) + 48px) 0 72px;background:var(--night);color:var(--on-dark);text-align:center}
.lost .media img{filter:saturate(.9)}
.lost::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse 60% 55% at 50% 52%,rgb(20 17 13/.55) 0%,rgb(20 17 13/.82) 60%,var(--night) 100%)}
.n404{display:flex;justify-content:center;gap:18px;font-family:var(--font-pixel);font-size:clamp(56px,7vw,104px);line-height:1;color:var(--gold);text-shadow:0 6px 0 var(--bronze-ink),0 18px 40px rgb(0 0 0/.6)}
.n404 span{display:block;animation:bob 3.6s ease-in-out infinite}
.n404 span:nth-child(2){animation-delay:-1.2s}.n404 span:nth-child(3){animation-delay:-2.4s}
@keyframes bob{0%,100%{translate:0 0}50%{translate:0 -14px}}
.lost h1{margin-top:44px;font-size:var(--fs-h1);line-height:1.02;letter-spacing:-.03em}
.lost .lead{margin:18px auto 0;max-width:52ch}
.lost__or{align-self:center;margin-right:6px;font-size:13px;color:var(--on-dark-3)}
.motes{position:absolute;inset:0;z-index:-1;pointer-events:none}
.motes i{position:absolute;bottom:-20px;width:6px;height:6px;background:var(--gold);opacity:0;animation:mote 9s linear infinite}
.motes i:nth-child(1){left:12%;animation-delay:0s}
.motes i:nth-child(2){left:24%;width:4px;height:4px;animation-delay:2.2s;animation-duration:11s}
.motes i:nth-child(3){left:41%;animation-delay:4.1s}
.motes i:nth-child(4){left:58%;width:4px;height:4px;animation-delay:1.3s;animation-duration:12s}
.motes i:nth-child(5){left:71%;animation-delay:3.4s}
.motes i:nth-child(6){left:86%;width:5px;height:5px;animation-delay:5.6s;animation-duration:10s}
.motes i:nth-child(7){left:33%;width:3px;height:3px;animation-delay:6.8s}
.motes i:nth-child(8){left:79%;width:3px;height:3px;animation-delay:7.5s;animation-duration:13s}
@keyframes mote{0%{translate:0 0;opacity:0}10%{opacity:.7}80%{opacity:.4}100%{translate:30px -900px;opacity:0}}
.page-404 .ftr{margin-top:0}

/* ---------- responsive (pages) ---------- */
@media (max-width:1100px){
  .modes6{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:1000px){
  .shero__grid,.cmdgrid,.stgrid{grid-template-columns:minmax(0,1fr)}
  .feat--3{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
  .mrow,.mrow:nth-child(even){grid-template-columns:minmax(0,1fr)}
  .mrow:nth-child(even) .mrow__media{order:0}
  .phero__cap{display:none}
  .dcband{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:700px){
  .modes6{grid-template-columns:minmax(0,1fr)}
  .modes6 .mcard{min-height:340px}
  .feat--3,.feat--2{grid-template-columns:minmax(0,1fr)}
  .hs b{display:none}
  .history__grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .phero--status .media{opacity:.3}
  .sstats{grid-template-columns:minmax(0,1fr)}
  .shero{padding-bottom:72px}
}


/* ==========================================================================
   Part 4 — pages that keep their previous content (wiki, rules, support,
   legal, Discord, bot, staff, news, leaderboards, store, forum, account,
   checkout): new title band and a few refinements, same markup and hooks.
   ========================================================================== */

/* title band turned into a photo hero; the content around it is unchanged */
.phero .crumbs a,.shero .crumbs a{color:var(--on-dark-3);text-decoration:none}
.phero .crumbs a:hover,.shero .crumbs a:hover{color:var(--on-dark)}
.phero--dim .media{opacity:.38}
.phero--dim::before{background:linear-gradient(90deg,var(--stone-9) 30%,rgb(28 24 19/.78) 60%,rgb(28 24 19/.55) 100%),linear-gradient(0deg,var(--stone-9) 0%,rgb(28 24 19/0) 45%),linear-gradient(180deg,rgb(20 17 13/.55) 0%,rgb(20 17 13/0) 25%)}
.phero.band--dark .phero__grid>*{min-width:0}
.phero .breadcrumb ol{margin-bottom:22px}
.phero .facts-mini{gap:1.25rem 2.25rem}
.phero .facts-mini div{padding:14px 18px;border:1px solid rgb(240 233 219/.12);border-radius:var(--r-2);background:rgb(20 17 13/.45);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.phero .subnav{grid-column:1/-1;margin-top:28px}
.phero .news-follow{margin:0}
.page-old .phero{padding-bottom:64px}
.page-old .phero h1{max-width:18ch}

/* side contents (rules, wiki, legal): the active entry slides in */
.toc a{position:relative;border-left-color:transparent!important;transition:color var(--t-2),padding-left var(--t-3) var(--ease-out)}
.toc a::before{content:"";position:absolute;left:-2px;top:6px;bottom:6px;width:2px;background:var(--line)}
.toc a::after{content:"";position:absolute;left:-2px;top:6px;bottom:6px;width:3px;background:var(--bronze);transform:scaleY(0);transition:transform var(--t-3) var(--ease-out)}
.toc a:hover{padding-left:1rem}
.toc a[aria-current]{padding-left:1rem;border-left-width:2px!important}
.toc a[aria-current]::after{transform:none}
.rule{transition:background-color var(--t-2)}
.rule__num{transition:color var(--t-2)}
.rule:hover .rule__num{color:var(--ink)}

/* buttons inside the older content get the new feel too */
.page-old .band .btn--gold:hover,.page-old .forum-single .btn--gold:hover{transform:translateY(-2px)}

/* forum and account: header is solid, the forum bar sits right under it */
.has-solid-hdr .forum-bar{position:relative;z-index:2}
.has-solid-hdr .page-band.band--dark{padding-block:40px 48px}
.page-band .forum-head__actions .btn--gold{box-shadow:inset 0 -3px 0 rgb(0 0 0/.22)}

/* log in and sign up */
.auth__visual{overflow:hidden;isolation:isolate}
.auth__visual picture{overflow:hidden}
.auth__visual picture img{animation:kb 34s ease-in-out infinite alternate}
.auth__visual::after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(0deg,var(--stone-9) 0%,rgb(28 24 19/0) 40%)}
.auth__visual figcaption{position:relative;z-index:1}
.auth h1{font-size:clamp(2rem,1.5rem + 1.6vw,2.8rem);letter-spacing:-.03em}
.auth__panel{animation:rise .7s var(--ease-out) .1s both}
@media (min-width:960px){.has-solid-hdr .auth{min-height:calc(100svh - var(--hdr))}}

/* checkout */
.page-checkout main>.container{padding-top:32px}
