:root {
  --bg: #1a1714;
  --bg-2: #221e19;
  --bg-3: #2a241c;
  --ink: #f2ebe0;
  --muted: #a89b88;
  --line: rgba(242, 235, 224, 0.14);
  --line-hard: rgba(0, 0, 0, 0.55);
  --acid: #c6f23a;
  --acid-ink: #1a2208;
  --emerald: #3dd68c;
  --dirt: #6b4f2f;
  --stone: #5a554c;
  --warn: #ff7a4d;
  --ok: #6dff9a;
  --max: 1120px;
  --display: "Chakra Petch", "Segoe UI", sans-serif;
  --font: "Rubik", system-ui, sans-serif;
  --pixel: "Press Start 2P", monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --radius: 2px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(198, 242, 58, 0.06), transparent 55%),
    var(--bg);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
#main {
  flex: 1 0 auto;
  width: 100%;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1.05;
}
p { margin-top: 0; }
.wrap { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { position: fixed; left: 12px; top: 12px; z-index: 99; padding: 10px; background: #fff; color: #000; }
.muted { color: var(--muted); }

.pixel-label, .eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--acid);
  font-family: var(--pixel);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ——— Header ——— */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .25s, border-color .25s, box-shadow .25s;
  border-bottom: 2px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(26, 23, 20, 0.94);
  border-color: var(--line);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px;
}
.header-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 18px/1 var(--display);
  letter-spacing: 0.02em;
  min-width: 0;
}
.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}
.logo-mark--footer {
  width: 28px;
  height: 28px;
}
.logo-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.online-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px;
  background: var(--bg-3);
  border: 2px solid #000;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
  font-size: 12px; font-weight: 600; color: var(--muted);
  white-space: nowrap;
}
.online-pill b { color: var(--emerald); }
.online-dot {
  width: 8px; height: 8px; border-radius: 0;
  background: var(--emerald);
  box-shadow: 0 0 0 2px rgba(61, 214, 140, 0.25);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
.online-pill.is-stale b,
.join-online.is-stale { color: var(--muted); }
.online-pill.is-stale .online-dot,
.join-online.is-stale .online-dot {
  background: #9a8f7a;
  box-shadow: none;
  animation: none;
}
.online-stale-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #c4a574;
  margin-left: 2px;
}
@keyframes pulse-dot {
  50% { opacity: 0.55; }
}

.nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.nav-panel { display: contents; }
.nav-close { display: none; }
.nav > a, .nav-panel > a, .nav-ghost {
  color: var(--muted); font-size: 13px; font-weight: 600;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.nav > a:hover, .nav-panel > a:hover, .nav-ghost:hover { color: var(--ink); }
.nav-discord { color: var(--emerald) !important; }
/* Higher specificity than `.nav > a { background: none }` — otherwise
   only dark acid-ink text + border remain on the translucent header. */
.nav > a.nav-cta,
.nav-panel > a.nav-cta {
  padding: 8px 14px;
  color: var(--acid-ink);
  background: var(--acid);
  border: 2px solid #000;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
  font-weight: 700;
}
.nav > a.nav-cta:hover,
.nav-panel > a.nav-cta:hover {
  color: var(--acid-ink);
  background: #d8ff52;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
}
.nav > a.nav-cta:focus-visible,
.nav-panel > a.nav-cta:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.nav > a.nav-cta:active,
.nav-panel > a.nav-cta:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}
.lang { display: inline-flex; border: 2px solid #000; box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35); }
.lang a { padding: 4px 8px; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--bg-2); }
.lang a.is-active { background: var(--acid); color: var(--acid-ink); }
.inline-form { margin: 0; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 2px solid #000; background: var(--bg-2);
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
  position: relative;
  z-index: 60;
}
.nav-toggle span {
  width: 18px; height: 2px; background: #fff; display: block;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] {
  background: var(--acid);
  border-color: #000;
}
.nav-toggle[aria-expanded="true"] span { background: var(--acid-ink); }
.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.flash-stack { position: fixed; right: 14px; top: 80px; z-index: 60; width: min(340px, calc(100% - 28px)); }
.flash {
  padding: 12px; margin-bottom: 8px;
  border: 2px solid #000; background: var(--bg-2);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
}
.flash-success { border-left: 4px solid var(--ok); }
.flash-error { border-left: 4px solid var(--warn); }

/* ——— Join hero ——— */
.join-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 3px solid #000;
}
.join-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
  filter: saturate(0.85) contrast(1.05);
}
.join-hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(26, 23, 20, 0.92) 0%, rgba(26, 23, 20, 0.72) 42%, rgba(26, 23, 20, 0.35) 100%),
    linear-gradient(0deg, rgba(26, 23, 20, 0.9) 0%, transparent 45%);
}
.join-hero-inner {
  position: relative; z-index: 1;
  padding: 96px 0 48px;
}
.join-panel {
  width: min(100%, 560px);
  padding: 22px 22px 20px;
  background: rgba(34, 30, 25, 0.92);
  border: 3px solid #000;
  box-shadow:
    6px 6px 0 rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(198, 242, 58, 0.12);
  border-radius: var(--radius);
}
.join-panel-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 8px;
}
.join-panel-top .pixel-label { margin: 0; }
.join-online {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.join-name {
  font-size: clamp(36px, 7vw, 56px);
  margin-bottom: 8px;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
}
.join-claim {
  margin: 0 0 18px;
  color: #d9d0c0;
  font-size: 16px;
  max-width: 34em;
}

.ip-slot {
  display: grid;
  gap: 10px;
  padding: 14px;
  margin-bottom: 14px;
  background: #14110e;
  border: 2px solid #000;
  box-shadow: inset 0 0 0 2px rgba(198, 242, 58, 0.18);
}
.ip-slot-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center;
}
.ip-slot-meta .pixel-label { margin: 0; }
.ip-edition { font-size: 12px; font-weight: 600; color: var(--muted); }
.ip-value {
  margin: 0;
  font: 700 clamp(22px, 4.5vw, 32px)/1.1 var(--display);
  letter-spacing: 0.02em;
  word-break: break-all;
  color: var(--ink);
  user-select: all;
}
.btn-copy { width: 100%; min-height: 52px; font-size: 15px; }

.join-actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
}
.join-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 16px;
  border: 2px solid #000;
  border-radius: var(--radius);
  font-family: var(--display);
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
  transition: transform .15s var(--ease), box-shadow .15s;
}
.btn-acid { background: var(--acid); color: var(--acid-ink); }
.btn-ink { background: var(--bg-3); color: var(--ink); }
.btn-acid:hover, .btn-ink:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}
.btn-acid:active, .btn-ink:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.section { padding: 72px 0; }
.section-stone {
  background: var(--bg-2);
  border-block: 3px solid #000;
}
.section-head { max-width: 36em; margin-bottom: 28px; }
.section-head h2, .shop-head h2, .join-how h2, .patch-board h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 10px;
}
.section-head p, .shop-head p { color: var(--muted); max-width: 36em; margin-bottom: 0; }

/* ——— Mode cards ——— */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.mode-card {
  display: grid;
  background: var(--bg-2);
  border: 3px solid #000;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s var(--ease), box-shadow .18s;
}
a.mode-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
}
.mode-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0d0b09;
  border-bottom: 2px solid #000;
}
.mode-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.mode-card-media .tag {
  position: absolute; left: 10px; top: 10px;
}
.mode-card-body { padding: 14px 14px 16px; }
.mode-card-body h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  margin-bottom: 8px;
}
.mode-card-body p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mode-card-meta {
  font-size: 12px; font-weight: 700; color: var(--acid);
}

.tag {
  display: inline-flex;
  padding: 4px 8px;
  border: 2px solid #000;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-3);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}
.tag-online { color: var(--acid-ink); background: var(--acid); }
.tag-soon { color: #fff; background: var(--warn); }

/* ——— Inventory shop ——— */
.shop-head {
  display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 22px;
}
.inv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.inv-slot {
  display: grid;
  gap: 8px;
  padding: 16px 14px;
  background:
    linear-gradient(180deg, #2f2920 0%, #221e19 100%);
  border: 3px solid #000;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.06),
    inset -2px -2px 0 rgba(0, 0, 0, 0.35),
    3px 3px 0 rgba(0, 0, 0, 0.4);
  transition: transform .15s, border-color .15s;
}
.inv-slot:hover {
  transform: translate(-1px, -1px);
  border-color: var(--acid);
}
.inv-slot-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: #14110e;
  border: 2px solid #000;
  font: 700 14px/1 var(--display);
  color: var(--acid);
}
.inv-slot strong { font-family: var(--display); font-size: 18px; }
.inv-slot small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.inv-price {
  margin-top: 4px;
  font: 700 22px/1 var(--display);
  color: var(--acid);
}
.shop-cta { margin-top: 4px; }

/* ——— How to join ——— */
.join-how { display: grid; gap: 24px; }
.join-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.join-steps li {
  display: grid; gap: 12px;
  padding: 18px 16px;
  background: var(--bg);
  border: 3px solid #000;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
}
.join-steps b {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--acid);
  color: var(--acid-ink);
  border: 2px solid #000;
  font: 700 16px/1 var(--display);
}
.join-steps strong { display: block; font-size: 16px; margin-bottom: 6px; font-family: var(--display); }
.join-steps span { color: var(--muted); font-size: 13px; word-break: break-all; }

/* ——— News + CTAs ——— */
.dual-cta {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  align-items: stretch;
}
.patch-board, .side-cta {
  padding: 20px 18px;
  background: var(--bg-2);
  border: 3px solid #000;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
}
.patch-board h2 a:hover { color: var(--acid); }
.news-list { list-style: none; margin: 16px 0 0; padding: 0; border-top: 2px solid #000; }
.news-list li {
  display: grid; grid-template-columns: 56px 1fr; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: #ddd4c4;
  font-size: 14px;
}
.news-list time {
  color: var(--acid);
  font: 700 12px/1.3 var(--display);
}

/* —— News cards / article —— */
.news-page-lead {
  max-width: 42ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.news-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 3px solid #000;
  background: var(--bg-2);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: transform .15s, border-color .15s;
  color: inherit;
}
.news-card:hover {
  transform: translate(-2px, -2px);
  border-color: var(--acid);
}
.news-card--featured {
  grid-column: 1 / -1;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: 1fr;
}
.news-card-media {
  position: relative;
  min-height: 140px;
  background:
    linear-gradient(135deg, #1f2a12 0%, #14110e 55%, #243018 100%);
  border-bottom: 3px solid #000;
  overflow: hidden;
}
.news-card--featured .news-card-media {
  min-height: 220px;
  border-bottom: 0;
  border-right: 3px solid #000;
}
.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 140px;
}
.news-card--featured .news-card-media img { min-height: 220px; }
.news-card-media--empty {
  display: grid;
  place-items: center;
}
.news-card-fallback {
  font: 700 28px/1 var(--display);
  color: var(--acid);
  letter-spacing: 0.04em;
  opacity: 0.85;
}
.news-card-body {
  display: grid;
  gap: 8px;
  padding: 16px 14px 18px;
  align-content: start;
}
.news-card-body time {
  color: var(--acid);
  font: 700 11px/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.news-card-body h2 {
  margin: 0;
  font: 700 clamp(18px, 2.4vw, 26px)/1.15 var(--display);
}
.news-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.news-card-more {
  margin-top: 6px;
  font: 700 12px/1 var(--display);
  color: var(--acid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-teaser {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px solid #000;
}
.news-teaser-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 4px 0;
  color: inherit;
  transition: color .15s;
}
.news-teaser-item:hover strong { color: var(--acid); }
.news-teaser-thumb {
  width: 64px;
  height: 48px;
  border: 2px solid #000;
  background: #1a2210;
  overflow: hidden;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}
.news-teaser-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-teaser-thumb--empty {
  background:
    repeating-linear-gradient(-45deg, #1a2210, #1a2210 6px, #243018 6px, #243018 12px);
}
.news-teaser-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.news-teaser-copy time {
  color: var(--acid);
  font: 700 11px/1 var(--display);
}
.news-teaser-copy strong {
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.25;
}

.news-article { padding-bottom: 72px; }
.news-article:not(:has(.news-article-cover)) .news-article-inner {
  padding-top: 112px;
}
.news-article-cover {
  width: 100%;
  max-height: min(52vh, 420px);
  overflow: hidden;
  border-bottom: 3px solid #000;
  background: #14110e;
  margin-top: 64px;
}
.news-article-cover img {
  width: 100%;
  height: min(52vh, 420px);
  object-fit: cover;
  display: block;
}
.news-article-inner {
  max-width: 760px;
  padding-top: 36px;
}
.news-article-head {
  margin: 12px 0 28px;
}
.news-article-head time {
  display: block;
  margin-bottom: 10px;
  color: var(--acid);
  font: 700 12px/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.news-article-head h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.1;
}
.news-prose {
  color: #ddd8c8;
  font-size: 16px;
  line-height: 1.65;
}
.news-prose p { margin: 0 0 1em; }
.news-prose h2, .news-prose h3 {
  margin: 1.4em 0 0.5em;
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.2;
}
.news-prose h2 { font-size: 1.45em; }
.news-prose h3 { font-size: 1.2em; }
.news-prose ul, .news-prose ol { margin: 0 0 1em; padding-left: 1.25em; }
.news-prose li { margin-bottom: 0.35em; }
.news-prose a { color: var(--acid); text-decoration: underline; }
.news-prose blockquote {
  margin: 0 0 1em;
  padding: 12px 14px;
  border-left: 4px solid var(--acid);
  background: rgba(198, 242, 58, 0.06);
  color: #e8e2d4;
}
.news-prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1em 0;
  border: 3px solid #000;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}

/* Admin news + Quill */
.news-admin-form { margin-bottom: 18px; }
.news-admin-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.news-admin-thumb {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border: 2px solid #000;
  background: #1a2210;
  flex-shrink: 0;
}
.news-admin-thumb--empty {
  display: inline-block;
  background:
    repeating-linear-gradient(-45deg, #1a2210, #1a2210 6px, #243018 6px, #243018 12px);
}
.news-editor-field {
  display: grid;
  gap: 8px;
}
.news-editor-field > span {
  color: var(--muted);
  font-size: 13px;
}
.admin-quill-shell {
  border: 2px solid #000;
  background: #14110e;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.admin-quill-shell .ql-toolbar.ql-snow {
  border: 0;
  border-bottom: 2px solid #000;
  background: #1a2210;
}
.admin-quill-shell .ql-container.ql-snow {
  border: 0;
  min-height: 160px;
  font-family: inherit;
  font-size: 14px;
  color: #e8e2d4;
}
.admin-quill-shell .ql-editor.ql-blank::before {
  color: #7a7468;
  font-style: normal;
}
.admin-quill-shell .ql-snow .ql-stroke { stroke: #c9c0b0; }
.admin-quill-shell .ql-snow .ql-fill { fill: #c9c0b0; }
.admin-quill-shell .ql-snow .ql-picker { color: #c9c0b0; }
.admin-quill-shell .ql-snow.ql-toolbar button:hover,
.admin-quill-shell .ql-snow.ql-toolbar button.ql-active {
  color: var(--acid);
}
.admin-quill-shell .ql-snow.ql-toolbar button:hover .ql-stroke,
.admin-quill-shell .ql-snow.ql-toolbar button.ql-active .ql-stroke {
  stroke: var(--acid);
}

.side-ctas { display: grid; gap: 10px; }
.side-cta {
  display: grid; gap: 6px;
  transition: transform .15s, border-color .15s;
}
.side-cta:hover {
  transform: translate(-1px, -1px);
  border-color: var(--acid);
}
.side-cta strong { font-family: var(--display); font-size: 20px; }
.side-cta > span:last-child { color: var(--muted); font-size: 13px; }
.side-cta-discord { border-color: #1f4d38; background: #1a2a22; }

/* ——— Inner pages ——— */
.page-hero { padding: 112px 0 72px; }
.note { color: var(--warn); font-size: 14px; }

/* ——— Auth form fields (shared with panels) ——— */
.auth-form label > span:first-child, fieldset legend {
  display: block; margin-bottom: 8px; color: var(--muted);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.auth-form input {
  width: 100%; min-height: 48px; padding: 0 12px;
  border: 2px solid #000; background: #14110e; border-radius: var(--radius);
}
.auth-form input:focus {
  outline: none;
  border-color: var(--acid);
  box-shadow: inset 0 0 0 1px rgba(198, 242, 58, 0.35);
}
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }

/* ——— Shop /donate ——— */
.shop-page {
  position: relative;
  padding: 0 0 56px;
  overflow: clip;
}
.shop-banner {
  position: relative;
  height: clamp(140px, 18vw, 220px);
  border-bottom: 3px solid #000;
  background: #14110e;
  overflow: hidden;
}
.shop-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.9) contrast(1.05);
}
.shop-banner-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 23, 20, 0.2) 0%, rgba(26, 23, 20, 0.78) 62%, var(--bg) 100%),
    linear-gradient(90deg, rgba(26, 23, 20, 0.45) 0%, transparent 28%, transparent 72%, rgba(26, 23, 20, 0.35) 100%);
  pointer-events: none;
}
.shop-wrap {
  position: relative;
  z-index: 1;
  margin-top: -64px;
  padding-bottom: 8px;
}
.shop-intro {
  width: 100%;
  max-width: none;
  margin: 0 0 24px;
  padding: 16px 18px;
  background: rgba(26, 23, 20, 0.88);
  border: 3px solid #000;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
}
.shop-intro h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 10px;
}
.shop-intro .lead {
  color: var(--muted);
  margin: 0;
  font-size: 16px;
  max-width: 42em;
}
.shop-form { display: block; }
.shop-layout {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 340px);
  gap: 20px;
  align-items: start;
}
.shop-catalog {
  display: grid;
  gap: 12px;
  min-width: 0;
  align-content: start;
}
.shop-catalog-legend {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 14px;
  align-items: stretch;
}
.shop-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 8px 14px;
  align-items: start;
  height: 100%;
  min-height: 132px;
  padding: 16px 14px 14px;
  cursor: pointer;
  background:
    linear-gradient(180deg, #2f2920 0%, #221e19 100%);
  border: 3px solid #000;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.06),
    inset -2px -2px 0 rgba(0, 0, 0, 0.35),
    3px 3px 0 rgba(0, 0, 0, 0.4);
  transition: transform .15s var(--ease), border-color .15s, box-shadow .15s;
}
.shop-card:hover {
  transform: translate(-1px, -1px);
  border-color: var(--stone);
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.06),
    inset -2px -2px 0 rgba(0, 0, 0, 0.35),
    4px 4px 0 rgba(0, 0, 0, 0.45);
}
.shop-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.shop-card:has(input:focus-visible) {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
}
.shop-card:has(input:checked) {
  border-color: var(--acid);
  box-shadow:
    inset 0 0 0 1px rgba(198, 242, 58, 0.35),
    inset 2px 2px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(198, 242, 58, 0.2),
    3px 3px 0 rgba(0, 0, 0, 0.45);
}
.shop-card-badge {
  grid-row: 1 / span 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: #14110e;
  border: 2px solid #000;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.05);
}
.shop-card-badge svg { display: block; }
.shop-card-body {
  display: grid;
  gap: 4px;
  align-content: start;
  min-width: 0;
  min-height: 0;
  padding-right: 22px;
}
.shop-card-title {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
}
.shop-card-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.shop-card-price {
  grid-column: 2;
  justify-self: start;
  align-self: end;
  margin-top: 4px;
  padding: 4px 10px;
  font: 700 16px/1 var(--display);
  color: var(--acid-ink);
  background: var(--acid);
  border: 2px solid #000;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}
.shop-card--premium .shop-card-price {
  background: #5ec8ff;
  color: #082030;
}
.shop-card--case .shop-card-price {
  background: #c4a574;
  color: #1a140c;
}
.shop-card--unban .shop-card-price {
  background: var(--emerald);
  color: #082018;
}
.shop-card-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border: 2px solid #000;
  background: #14110e;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.06);
}
.shop-card:has(input:checked) .shop-card-check {
  background: var(--acid);
}
.shop-card:has(input:checked) .shop-card-check::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid var(--acid-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.shop-checkout {
  position: sticky;
  top: 84px;
  align-self: start;
  display: grid;
  gap: 14px;
  padding: 18px 16px;
  background:
    linear-gradient(180deg, #2a241c 0%, #1e1a15 100%);
  border: 3px solid #000;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.05),
    4px 4px 0 rgba(0, 0, 0, 0.45);
}
.shop-checkout-title {
  margin: 0;
  font-size: 18px;
}
.shop-field {
  display: grid;
  gap: 8px;
}
.shop-field > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.shop-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 2px solid #000;
  background: #14110e;
  border-radius: var(--radius);
}
.shop-field input:focus {
  outline: none;
  border-color: var(--acid);
  box-shadow: inset 0 0 0 1px rgba(198, 242, 58, 0.35);
}
.shop-summary {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #14110e;
  border: 2px solid #000;
}
.shop-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  font-size: 14px;
  color: var(--muted);
}
.shop-summary-row strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
  text-align: right;
}
.shop-summary-total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.shop-summary-total b {
  font: 700 22px/1 var(--display);
  color: var(--acid);
}
.shop-pay {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
}
.shop-note {
  margin: 0;
  color: var(--warn);
  font-size: 13px;
  line-height: 1.45;
}
.shop-empty {
  padding: 28px 20px;
  border: 3px solid #000;
  background: var(--bg-2);
  color: var(--muted);
}

/* ——— Auth (login / register) ——— */
body.is-auth .site-footer {
  display: none;
  margin-top: 0;
}
.auth-page {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: 96px 0 48px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(26, 23, 20, 0.72) 0%, rgba(26, 23, 20, 0.88) 100%),
    var(--auth-bg, none) center / cover no-repeat,
    var(--bg);
}
.auth-page-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 50% 20%, rgba(198, 242, 58, 0.08), transparent 60%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(0, 0, 0, 0.12) 3px,
      rgba(0, 0, 0, 0.12) 4px
    );
  pointer-events: none;
}
.auth-wrap {
  max-width: 440px;
  width: min(calc(100% - 32px), 440px);
  margin-inline: auto;
}
.auth-card {
  padding: 22px 20px 18px;
  border: 4px solid #000;
  background:
    linear-gradient(180deg, rgba(107, 79, 47, 0.18), transparent 42%),
    var(--bg-2);
  box-shadow:
    6px 6px 0 rgba(0, 0, 0, 0.55),
    inset 0 0 0 2px rgba(90, 85, 76, 0.45);
}
.auth-card-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  text-align: center;
}
.auth-logo {
  width: 48px;
  height: 48px;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.5));
}
.auth-card-brand .pixel-label {
  margin: 0;
  font-size: 8px;
}
.auth-card-head {
  text-align: center;
  margin-bottom: 18px;
}
.auth-card-head h1 {
  font-size: clamp(28px, 5vw, 34px);
  margin-bottom: 8px;
}
.auth-lead {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.auth-form {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 3px solid #000;
  background: #17140f;
  box-shadow: inset 0 0 0 1px rgba(90, 85, 76, 0.55);
}
.auth-field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: 0;
}
.auth-field input {
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
}
.auth-eye {
  min-width: 76px;
  padding: 0 10px;
  border: 2px solid #000;
  border-left: 2px solid #000;
  background: var(--bg-3);
  color: var(--muted);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.auth-eye:hover {
  color: var(--acid);
  background: #1f1a14;
}
.auth-eye:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: -2px;
  z-index: 1;
}
.auth-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  font-size: 15px;
}
.auth-switch {
  margin: 16px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.auth-switch a {
  color: var(--acid);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-switch a:hover { color: #d9ff5c; }
.auth-home {
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
}
.auth-home a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
}
.auth-home a:hover {
  color: var(--ink);
  border-bottom-color: var(--stone);
}
.orders { display: grid; gap: 8px; margin-top: 20px; }
.order-row {
  display: grid; grid-template-columns: 70px 1fr auto auto; gap: 12px;
  padding: 12px; border: 2px solid #000; background: var(--bg-2);
}
.prose ol { color: var(--muted); }
.user-line { font: 700 28px/1 var(--display); }
.lead { color: var(--muted); max-width: 36em; }

.site-footer {
  margin-top: auto;
  flex-shrink: 0;
  border-top: 3px solid #000;
  background: #120f0c;
}
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 24px;
  padding: 28px 0; color: var(--muted); font-size: 13px;
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink);
  font: 700 20px/1 var(--display);
  margin-bottom: 8px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.footer-links a:hover { color: var(--acid); }
.footer-ip {
  font: 700 15px/1.2 var(--display);
  color: var(--ink);
  padding: 8px 10px;
  border: 2px solid #000;
  background: var(--bg-2);
  align-self: start;
}

.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ——— App chrome (cabinet / admin) ——— */
.app-shell .site-footer {
  display: none;
  margin-top: 0;
}
.app-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100svh - 64px);
  margin-top: 64px;
  border-top: 2px solid #000;
}
.app-sidebar {
  border-right: 2px solid #000;
  background: #120f0c;
  padding: 24px 16px;
}
.app-sidebar-label {
  margin: 0 0 16px;
  color: var(--acid);
  font-family: var(--pixel);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.app-nav { display: grid; gap: 4px; }
.app-nav a {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px; font-weight: 600;
  border: 2px solid transparent;
}
.app-nav a:hover { color: var(--ink); background: rgba(242, 235, 224, 0.03); }
.app-nav a.is-active {
  color: var(--ink);
  border-color: #000;
  background: rgba(198, 242, 58, 0.1);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}
.app-main { padding: 32px 24px 56px; max-width: 1100px; }
.app-page-head { margin-bottom: 24px; }
.app-page-head h1 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 8px; }
.app-panel {
  display: grid; gap: 10px;
  padding: 16px; margin-bottom: 12px;
  border: 2px solid #000; background: var(--bg-2);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.stat-tile {
  padding: 16px 14px;
  border: 2px solid #000;
  background: var(--bg-2);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}
.stat-tile span {
  display: block; margin-bottom: 8px;
  color: var(--muted); font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.stat-tile strong { font: 700 26px/1 var(--display); }
.thread { display: grid; gap: 10px; margin-bottom: 22px; }
.thread-msg {
  padding: 14px 16px;
  border: 2px solid #000;
  background: #14110e;
}
.thread-msg.is-staff { border-left: 4px solid var(--acid); }
.thread-msg header {
  display: flex; justify-content: space-between; gap: 12px;
  margin-bottom: 8px; color: var(--muted); font-size: 12px;
}
.thread-msg p { margin: 0; white-space: pre-wrap; }
.inline-status { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.inline-status select { width: auto; min-width: 140px; }
.code-block {
  margin: 10px 0 0; padding: 12px;
  overflow: auto; font-size: 12px; color: #d9d0c0;
  background: #0d0b09; border: 2px solid #000;
}
.admin-shell .app-sidebar { background: #0e120c; }

/* —— Ops dashboard —— */
.ops-health {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
  padding: 18px 16px;
  border: 2px solid #000;
  background: var(--bg-2);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}
.ops-health.is-ok { border-left: 4px solid var(--emerald); }
.ops-health.is-warn { border-left: 4px solid var(--warn); }
.ops-health.is-neutral { border-left: 4px solid var(--stone); }
.ops-health-count {
  display: block;
  font: 700 clamp(32px, 5vw, 48px)/1 var(--display);
  margin: 6px 0 8px;
}
.ops-health-count small { font-size: 0.45em; color: var(--muted); }
.ops-health-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: center;
}
.ops-health-meta span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ops-health-meta b { font-size: 14px; }
.ops-kpi .stat-tile.is-alert strong { color: var(--warn); }
.ops-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.ops-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.bar-row {
  display: grid;
  grid-template-columns: 72px 1fr 36px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.bar-row span { color: var(--muted); font-weight: 600; }
.bar-track {
  height: 10px;
  background: #0d0b09;
  border: 2px solid #000;
  overflow: hidden;
}
.bar-track i {
  display: block;
  height: 100%;
  background: var(--acid);
  max-width: 100%;
}
.bar-track.is-fail i { background: var(--warn); }
.spark {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 96px;
  margin-top: 8px;
}
.spark-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  gap: 4px;
}
.spark-col i {
  display: block;
  width: 100%;
  min-height: 2px;
  background: var(--emerald);
  border: 1px solid #000;
}
.spark-col span { font-size: 9px; color: var(--muted); }
.ops-msg {
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 2px solid #000;
  background: #14110e;
}
.ops-msg.is-staff { border-left: 4px solid var(--acid); }
.ops-msg header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--muted);
}
.ops-msg p { margin: 0; white-space: pre-wrap; font-size: 14px; }
.ops-list { margin: 0 0 12px; padding-left: 18px; color: var(--muted); }
.ops-list li { margin-bottom: 6px; }
.ops-list strong { color: var(--ink); }
.muted { color: var(--muted); }

/* —— Cookie consent corner —— */
.cookie-consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  width: min(360px, calc(100vw - 32px));
  padding: 16px 16px 14px;
  border: 2px solid #000;
  background: var(--bg-2);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
  color: var(--ink);
}
.cookie-consent[hidden] { display: none !important; }
.cookie-consent h2 {
  font-size: 16px;
  margin-bottom: 8px;
}
.cookie-consent p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.cookie-consent a { color: var(--acid); text-decoration: underline; }
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cookie-actions button {
  min-height: 40px;
  padding: 8px 14px;
  border: 2px solid #000;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}
.cookie-accept {
  background: var(--acid);
  color: var(--acid-ink);
}
.cookie-decline {
  background: transparent;
  color: var(--ink);
}
.cookie-accept:focus-visible,
.cookie-decline:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 2px;
}

.auth-form textarea, .app-panel textarea, .app-panel input, .app-panel select,
.inline-status select {
  width: 100%; min-height: 48px; padding: 10px 12px;
  border: 2px solid #000; background: #14110e; border-radius: var(--radius);
}
.auth-form textarea, .app-panel textarea { min-height: 96px; resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.badge {
  display: inline-flex; align-items: center; padding: 4px 8px;
  border: 2px solid #000; font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--acid);
  background: var(--bg-3);
}

@media (max-width: 960px) {
  .mode-grid, .inv-grid, .join-steps, .dual-cta, .shop-layout, .footer-grid, .shop-head, .stat-grid,
  .ops-bars, .ops-split, .ops-health, .news-grid, .news-card--featured {
    grid-template-columns: 1fr;
  }
  .join-steps { grid-template-columns: 1fr; }
  .mode-grid { grid-template-columns: 1fr; }
  .inv-grid { grid-template-columns: 1fr 1fr; }
  .join-hero-inner { padding-top: 88px; }
  .shop-checkout { position: static; }
  .shop-banner { height: 120px; }
  .shop-wrap { margin-top: -44px; }
}
@media (max-width: 720px) {
  .shop-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .auth-page { padding: 88px 0 36px; align-items: flex-start; }
  .auth-card { padding: 18px 14px 14px; }
  .auth-form { padding: 14px; }
  .auth-eye { min-width: 68px; font-size: 10px; }
  .logo { gap: 8px; font-size: 16px; }
  .logo-mark { width: 32px; height: 32px; }
  .nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 55;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 72px 24px 40px;
    text-align: center;
    background:
      radial-gradient(ellipse 70% 45% at 50% 20%, rgba(198, 242, 58, 0.1), transparent 55%),
      rgba(26, 23, 20, 0.97);
    backdrop-filter: blur(10px);
  }
  .nav.is-open { display: flex; }
  .nav-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: min(100%, 320px);
    margin: 0 auto;
    text-align: center;
  }
  .nav-panel > a {
    font: 700 28px/1.1 var(--display);
    letter-spacing: 0.02em;
    color: var(--ink);
  }
  .nav-panel > a:hover { color: var(--acid); }
  .nav-panel > a.nav-discord { color: var(--emerald) !important; }
  .nav-panel > a.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    font: 700 16px/1 var(--display);
    padding: 14px 28px;
    min-width: 160px;
    align-self: center;
  }
  .nav-panel .lang {
    margin-top: 4px;
  }
  .nav-panel .nav-ghost {
    font: 700 16px/1 var(--display);
    color: var(--muted);
  }
  .nav-close {
    display: flex;
    position: absolute;
    top: max(14px, env(safe-area-inset-top));
    left: max(14px, env(safe-area-inset-left));
    right: auto;
    width: 44px;
    height: 44px;
    border: 2px solid #000;
    background: var(--bg-2);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 1;
  }
  .nav-close span {
    position: absolute;
    width: 18px;
    height: 2px;
    background: var(--ink);
  }
  .nav-close span:first-child { transform: rotate(45deg); }
  .nav-close span:last-child { transform: rotate(-45deg); }
  .nav-close:hover {
    background: var(--acid);
  }
  .nav-close:hover span { background: var(--acid-ink); }
  .nav-close:focus-visible {
    outline: 2px solid var(--acid);
    outline-offset: 3px;
  }
  .nav-toggle { display: flex; }
  body.nav-open { overflow: hidden; }
  .online-pill { display: none; }
  .inv-grid { grid-template-columns: 1fr; }
  .order-row { grid-template-columns: 1fr 1fr; }
  .app-layout { grid-template-columns: 1fr; }
  .app-sidebar {
    border-right: 0; border-bottom: 2px solid #000;
    padding: 16px;
  }
  .app-nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .app-nav a { border: 2px solid transparent; padding: 8px 10px; }
  .app-nav a.is-active { border-color: #000; }
  .app-main { padding: 24px 16px 48px; }
}
@media (max-width: 960px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .news-card--featured {
    grid-template-columns: 1fr;
  }
  .news-card--featured .news-card-media {
    border-right: 0;
    border-bottom: 3px solid #000;
  }
}

@media (prefers-reduced-motion: reduce) {
  .online-dot { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .nav-toggle span { transition: none; }
}
