/* ==========================================================================
   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. Header and menu ----------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--stone-9); color: var(--on-dark); border-bottom: 1px solid var(--stone-7); }
.site-header__inner { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; color: var(--on-dark); text-decoration: none; flex: none; }
.brand:hover { color: var(--gold); }
.brand__logo { width: 36px; height: 36px; }
.brand__name { font-family: var(--font-pixel); font-size: .75rem; line-height: 1; padding-top: 2px; }

.nav { display: none; align-self: stretch; }
.nav ul { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; }
.nav a { position: relative; display: flex; align-items: center; gap: .4rem; height: 100%; padding: 0 .85rem; color: var(--on-dark-2); font-size: .9375rem; font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--on-dark); }
.nav a[aria-current] { color: var(--on-dark); }
.nav a[aria-current]::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: -1px; height: 3px; background: var(--gold); }
.nav__count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 1px solid var(--gold); color: var(--gold); font-size: .6875rem; font-weight: 600; }

.site-header__actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.site-header__discord { display: none !important; }

.ip-chip { display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: 0 .75rem; border: 1px solid var(--stone-6); border-radius: var(--r); background: transparent; color: var(--on-dark); font-size: .875rem; font-weight: 600; white-space: nowrap; transition: border-color .15s; }
.ip-chip:hover, .ip-chip.is-copied { border-color: var(--gold); }
.ip-chip__dot { width: 8px; height: 8px; border: 2px solid var(--gold); }
.ip-chip__ip { display: none; font-family: var(--font-mono); font-weight: 500; }
.ip-chip .swap { color: var(--on-dark-3); }

.cart-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: 0 .5rem 0 .75rem; border: 1px solid var(--gold); border-radius: var(--r); background: transparent; color: var(--on-dark); font-size: .875rem; font-weight: 600; }
.cart-btn:hover { background: var(--stone-8); }
.cart-btn__label { display: none; }
.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: .8125rem; font-variant-numeric: tabular-nums; }
.cart-btn.is-bumped .cart-btn__count { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.25); } }

/* Account: "Log in" when logged out, the player's Minecraft head when logged in (main.js) */
.header-account { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-width: 44px; min-height: 44px; padding: 0 .65rem; border: 1px solid var(--stone-6); border-radius: var(--r); color: var(--on-dark); font-size: .875rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: border-color .15s; }
.header-account:hover { border-color: var(--gold); color: var(--on-dark); }
.header-account span:not(.avatar) { display: none; }
.header-account.is-in { padding: 0 .5rem; }
.header-account .avatar { border-color: var(--gold); background: var(--stone-9); color: var(--on-dark); }
@media (min-width: 1100px) { .header-account span:not(.avatar) { display: inline; } .header-account.is-in span:not(.avatar) { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; } }

.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--stone-6); border-radius: var(--r); background: transparent; color: var(--on-dark); }
.site-header__back { margin-left: auto; }

@media (min-width: 420px) { .cart-btn__label { display: inline; } }
@media (max-width: 379px) {
  .site-header__inner { gap: .5rem; }
  .brand__name { display: none; }
  .ip-chip--compact .ip-chip__short { display: none; }
}
@media (min-width: 960px) {
  .nav { display: block; margin-left: .75rem; }
  .menu-btn { display: none; }
  .ip-chip__ip { display: inline; }
  .ip-chip__short { display: none; }
  .ip-chip.is-copied .ip-chip__ip { display: none; }
  .site-header__discord { display: inline-flex !important; }
}
/* Seven items + IP + cart: between 960 and 1100 px the items tighten instead of overflowing the bar */
@media (min-width: 960px) and (max-width: 1099px) {
  .nav { margin-left: .25rem; }
  .nav a { padding: 0 .6rem; font-size: .875rem; }
  .nav a[aria-current]::after { left: .6rem; right: .6rem; }
  .site-header__inner { gap: .75rem; }
}
.nav a { white-space: nowrap; }

.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; }

/* 6. Footer and dock ----------------------------------------------------- */
.site-footer { margin-top: auto; background: var(--night); color: var(--on-dark-2); font-size: .9375rem; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer__grid { display: grid; gap: 2.25rem 2rem; padding-block: 48px 36px; }
.site-footer__brand .brand { color: var(--on-dark); }
.site-footer__brand p { margin: .9rem 0 1.1rem; max-width: 34ch; }
.site-footer__title { margin-bottom: .6rem; font-family: var(--font-pixel); font-size: .5625rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.site-footer__col ul { margin: 0; padding: 0; list-style: none; }
.site-footer__col li a { display: inline-flex; align-items: center; gap: .4rem; min-height: 34px; }
.site-footer__dc { margin-top: .75rem; }
.soon-tag { color: var(--on-dark-3); font-size: .8125rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; border-top: 1px solid var(--stone-7); }
.site-footer__legal { color: var(--on-dark-3); font-size: .8125rem; max-width: 70ch; }
.site-footer__mini { display: flex; gap: 1.25rem; margin: 0; padding: 0; list-style: none; font-size: .875rem; }
.site-footer__mini a { display: inline-flex; min-height: 44px; align-items: center; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; font-size: .8125rem; }
.site-footer__links a { display: inline-flex; min-height: 44px; align-items: center; }
@media (min-width: 900px) { .site-footer__links { margin-left: auto; } }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } .site-footer__brand { grid-column: auto; } }

.music-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .8rem; border: 1px solid var(--stone-7); border-radius: var(--r); background: transparent; color: var(--on-dark-2); font-size: .875rem; }
.music-toggle:hover { border-color: var(--stone-6); color: var(--on-dark); }
.music-toggle .i { width: 18px; height: 18px; }
.music-toggle__on { display: none; }
.music-toggle[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.music-toggle[aria-pressed="true"] .music-toggle__on { display: block; }
.music-toggle[aria-pressed="true"] .music-toggle__off { display: none; }

.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; gap: .5rem; padding: .55rem var(--gutter) calc(.55rem + env(safe-area-inset-bottom)); background: var(--stone-9); border-top: 1px solid var(--stone-7); transform: translateY(110%); visibility: hidden; transition: transform .2s ease, visibility 0s linear .2s; }
.dock.is-visible { transform: none; visibility: visible; transition: transform .2s ease; }
.dock__ip { flex: 1; min-width: 0; }
.dock__ip .btn__ip { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 429px) { .dock__dc span { display: none; } }
@media (min-width: 960px) { .dock { display: none; } }
body.has-dock .site-footer { padding-bottom: 72px; }
@media (min-width: 960px) { body.has-dock .site-footer { padding-bottom: 0; } }

/* 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; } }

/* 404 */
.notfound { display: grid; justify-items: start; gap: 1rem; padding-block: clamp(40px, 8vw, 96px); }
.notfound__code { font-family: var(--font-pixel); font-size: clamp(2.5rem, 2rem + 4vw, 4.5rem); line-height: 1; color: var(--bronze); }
.notfound p { color: var(--ink-2); max-width: 52ch; }

/* Grid columns don't widen for single-line text */
.hero__grid > *, .page-band__grid > *, .modes-band__grid > *, .mode-hero__grid > *, .store-band__grid > *, .join__grid > *,
.modes-home__grid > *, .community__grid > *, .ranks-home__grid > *, .status-faq > *, .mode-ledger__row > *, .mode-split > *,
.checkout__grid > *, .buy-faq > *, .before-join > *, .mode-foot > * { min-width: 0; }

/* Subtle block entrance (JS only, and not with reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
  .reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.wiki-see { margin-top: clamp(40px, 5vw, 64px); padding-top: 1rem; border-top: 1px solid var(--line); }
.facts :not(pre) > code { border-color: var(--stone-7); background: var(--stone-8); color: var(--on-dark); }
.channel .cmd { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "code copy" "desc copy"; gap: .1rem .75rem; }
.channel .cmd:first-child { border-top: 1px solid var(--line); }
.channel .cmd:last-child { border-bottom: 1px solid var(--line); }

/* 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); }
