: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: 92px;
  overflow-x: clip;
  max-width: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  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);
  font-stretch: normal;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transform: none;
}
#main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 100%;
}
/* height:auto keeps intrinsic ratio; cover media overrides below */
img {
  display: block;
  max-width: 100%;
  height: auto;
}
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));
  max-width: 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: 72px; 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 {
  box-sizing: border-box;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  object-fit: contain;
  object-position: center;
}
.logo-mark--footer {
  width: 28px;
  height: 28px;
  padding: 0;
}

/* Pack20 accents — always square, never stretched */
.pack-icon {
  display: block;
  width: var(--pack-size, 48px);
  height: var(--pack-size, 48px);
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
  aspect-ratio: 1 / 1;
}
.pack-icon--status {
  --pack-size: 18px;
  width: 18px;
  height: 18px;
}
.pack-icon--page {
  --pack-size: 56px;
  width: 56px;
  height: 56px;
}
.pack-icon--accent {
  --pack-size: 40px;
  width: 40px;
  height: 40px;
}
.pack-icon--subtle {
  opacity: 0.92;
}
.pack-icon--inline {
  --pack-size: 24px;
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
}
.page-head-row {
  display: flex;
  align-items: flex-start;
  gap: 14px 16px;
  max-width: 42em;
}
.page-head-row > div { min-width: 0; flex: 1; }
.page-head-row--sm { max-width: none; margin-bottom: 12px; }
.page-head-row--xs {
  align-items: center;
  gap: 8px;
  max-width: none;
  margin: 0;
}
.page-head-row h1 { margin-bottom: 8px; }
.page-head-row .lead,
.page-head-row .news-page-lead { margin: 0; }
.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,
.online-pill.is-maintenance b,
.join-status.is-stale,
.join-status.is-maintenance { color: var(--muted); }
.online-pill.is-stale .online-dot,
.online-pill.is-maintenance .online-dot,
.join-status.is-stale .online-dot,
.join-status.is-maintenance .online-dot {
  background: #9a8f7a;
  box-shadow: none;
  animation: none;
}
.online-pill.is-maintenance .online-dot,
.join-status.is-maintenance .online-dot {
  background: #e0a84a;
}
.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%;
  max-width: none;
  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-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.join-status-badge {
  text-transform: lowercase;
  letter-spacing: 0.02em;
}
.join-status.is-online .join-status-badge { color: var(--emerald); }
.join-status.is-maintenance .join-status-badge { color: #e0a84a; }
.join-status.is-stale .join-status-badge { color: #c4a574; }
.join-status-count { color: var(--ink); }
.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 {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  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;
}
.ip-value:hover { color: var(--acid); }
.ip-value:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}
.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-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--stone);
  box-shadow: none;
}
.btn-ghost:hover {
  border-color: var(--acid);
  color: var(--acid);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}
.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);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.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--icon {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(198, 242, 58, 0.08), transparent 65%),
    linear-gradient(160deg, #1a1714 0%, #0d0b09 100%);
}
.mode-card-media--icon .mode-card-icon,
.mode-card-media--icon .pack-icon {
  width: min(82%, 188px);
  height: min(82%, 188px);
  max-width: 188px;
  max-height: 188px;
  object-fit: contain;
}
.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;
}
.shop-head .page-head-row { max-width: none; flex: 1; align-items: center; }
.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;
  aspect-ratio: 16 / 9;
  min-height: 0;
  background:
    linear-gradient(135deg, #1f2a12 0%, #14110e 55%, #243018 100%);
  border-bottom: 3px solid #000;
  overflow: hidden;
}
.news-card--featured .news-card-media {
  aspect-ratio: 16 / 10;
  min-height: 0;
  border-bottom: 0;
  border-right: 3px solid #000;
}
.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.news-card--featured .news-card-media img {
  object-position: center 45%;
}
.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: 72px;
  height: 54px;
  flex-shrink: 0;
  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;
  object-position: center center;
  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%;
  aspect-ratio: 16 / 9;
  max-height: min(48vh, 420px);
  overflow: hidden;
  border-bottom: 3px solid #000;
  background: #14110e;
  margin-top: 64px;
}
.news-article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  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;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
  transition: transform .15s, border-color .15s;
}
.side-cta .side-cta-icon {
  grid-row: 1 / span 3;
  align-self: center;
  width: 40px;
  height: 40px;
}
.side-cta .pixel-label,
.side-cta strong,
.side-cta > span:last-child { grid-column: 2; }
.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; }

/* ——— Rules ——— */
.rules-page {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.rules-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 12% 0%, rgba(198, 242, 58, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 40% at 92% 18%, rgba(107, 79, 47, 0.18), transparent 60%),
    linear-gradient(180deg, transparent 70%, rgba(90, 85, 76, 0.12));
}
.rules-head {
  max-width: 38em;
  margin-bottom: 36px;
}
.rules-head h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 12px;
}
.rules-head .lead {
  margin: 0;
  color: var(--muted);
  max-width: 36em;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.5;
}
.rules-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 46rem;
}
.rule-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px 18px;
  align-items: start;
  padding: 18px 18px 18px 16px;
  background:
    linear-gradient(105deg, rgba(198, 242, 58, 0.035), transparent 42%),
    var(--bg-2);
  border: 2px solid #000;
  border-left: 3px solid var(--dirt);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.28);
  transition: border-left-color .18s var(--ease), transform .18s var(--ease);
}
.rule-item:nth-child(even) {
  border-left-color: var(--stone);
}
.rule-item:hover,
.rule-item:focus-within {
  border-left-color: var(--acid);
  transform: translateX(2px);
}
.rule-num {
  display: inline-grid;
  place-items: center;
  min-width: 2.75rem;
  padding: 9px 8px;
  font-family: var(--pixel);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--acid-ink);
  background: var(--acid);
  border: 2px solid #000;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
  user-select: none;
}
.rule-body { min-width: 0; padding-top: 2px; }
.rule-h {
  margin: 0 0 8px;
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.2;
  color: var(--ink);
}
.rule-text {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.5;
  font-weight: 400;
}
.rules-more {
  margin: 28px 0 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 14px;
}
.rules-more a {
  color: var(--acid);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rules-more-sep {
  margin: 0 0.35em;
  opacity: 0.55;
}
@media (max-width: 560px) {
  .rules-head { margin-bottom: 28px; }
  .rule-item {
    gap: 12px 14px;
    padding: 14px 12px 14px 10px;
  }
  .rule-num {
    min-width: 2.4rem;
    padding: 8px 6px;
    font-size: 9px;
  }
  .rule-h { margin-bottom: 6px; }
  .rule-text { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .rule-item { transition: none; }
  .rule-item:hover,
  .rule-item:focus-within { transform: none; }
}

/* ——— Offer (donate terms) ——— */
.offer-page {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.offer-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 42% at 88% 0%, rgba(198, 242, 58, 0.07), transparent 55%),
    radial-gradient(ellipse 48% 38% at 8% 22%, rgba(107, 79, 47, 0.2), transparent 58%),
    linear-gradient(180deg, transparent 72%, rgba(90, 85, 76, 0.1));
}
.offer-head {
  max-width: 38em;
  margin-bottom: 36px;
}
.offer-head h1 {
  font-size: clamp(28px, 4.6vw, 44px);
  margin-bottom: 12px;
}
.offer-head .lead {
  margin: 0;
  color: var(--muted);
  max-width: 36em;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.5;
}
.offer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 46rem;
}
.offer-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px 18px;
  align-items: start;
  padding: 18px 18px 18px 16px;
  background:
    linear-gradient(105deg, rgba(198, 242, 58, 0.03), transparent 40%),
    var(--bg-2);
  border: 2px solid #000;
  border-left: 3px solid var(--dirt);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.28);
  transition: border-left-color .18s var(--ease), transform .18s var(--ease);
}
.offer-item:nth-child(even) {
  border-left-color: var(--stone);
}
.offer-item:nth-child(3) {
  border-left-color: var(--warn);
}
.offer-item:hover,
.offer-item:focus-within {
  border-left-color: var(--acid);
  transform: translateX(2px);
}
.offer-num {
  display: inline-grid;
  place-items: center;
  min-width: 2.75rem;
  padding: 9px 8px;
  font-family: var(--pixel);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--acid-ink);
  background: var(--acid);
  border: 2px solid #000;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
  user-select: none;
}
.offer-body { min-width: 0; padding-top: 2px; }
.offer-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.2;
  color: var(--ink);
}
.offer-mark {
  flex-shrink: 0;
  color: var(--acid);
  opacity: 0.85;
}
.offer-text {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.5;
  font-weight: 400;
}
.offer-text a {
  color: var(--acid);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.offer-more {
  margin: 28px 0 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 14px;
}
.offer-more a {
  color: var(--acid);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.offer-more-sep {
  margin: 0 0.35em;
  opacity: 0.55;
}
@media (max-width: 560px) {
  .offer-head { margin-bottom: 28px; }
  .offer-item {
    gap: 12px 14px;
    padding: 14px 12px 14px 10px;
  }
  .offer-num {
    min-width: 2.4rem;
    padding: 8px 6px;
    font-size: 9px;
  }
  .offer-h { font-size: 16px; margin-bottom: 6px; }
  .offer-text { font-size: 14px; }
  .offer-more { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .offer-item { transition: none; }
  .offer-item:hover,
  .offer-item:focus-within { transform: none; }
}

/* ——— Privacy & cookies ——— */
.privacy-page {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.privacy-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 68% 44% at 18% 0%, rgba(198, 242, 58, 0.07), transparent 55%),
    radial-gradient(ellipse 46% 36% at 90% 24%, rgba(107, 79, 47, 0.2), transparent 58%),
    linear-gradient(180deg, transparent 72%, rgba(90, 85, 76, 0.1));
}
.privacy-head {
  max-width: 38em;
  margin-bottom: 36px;
}
.privacy-head h1 {
  font-size: clamp(28px, 4.6vw, 44px);
  margin-bottom: 12px;
}
.privacy-head .lead {
  margin: 0;
  color: var(--muted);
  max-width: 36em;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.5;
}
.privacy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 46rem;
}
.privacy-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px 18px;
  align-items: start;
  padding: 18px 18px 18px 16px;
  background:
    linear-gradient(105deg, rgba(198, 242, 58, 0.03), transparent 40%),
    var(--bg-2);
  border: 2px solid #000;
  border-left: 3px solid var(--dirt);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.28);
  transition: border-left-color .18s var(--ease), transform .18s var(--ease);
}
.privacy-item:nth-child(even) {
  border-left-color: var(--stone);
}
.privacy-item:nth-child(3) {
  border-left-color: var(--warn);
}
.privacy-item:hover,
.privacy-item:focus-within {
  border-left-color: var(--acid);
  transform: translateX(2px);
}
.privacy-num {
  display: inline-grid;
  place-items: center;
  min-width: 2.75rem;
  padding: 9px 8px;
  font-family: var(--pixel);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--acid-ink);
  background: var(--acid);
  border: 2px solid #000;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
  user-select: none;
}
.privacy-body { min-width: 0; padding-top: 2px; }
.privacy-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.2;
  color: var(--ink);
}
.privacy-mark {
  flex-shrink: 0;
  color: var(--acid);
  opacity: 0.85;
}
.privacy-text {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.5;
  font-weight: 400;
}
.privacy-text code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 0.1em 0.35em;
  color: var(--acid);
  background: rgba(198, 242, 58, 0.08);
  border: 1px solid rgba(198, 242, 58, 0.22);
  border-radius: 4px;
}
.privacy-more {
  margin: 28px 0 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 14px;
}
.privacy-more a {
  color: var(--acid);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.privacy-more-sep {
  margin: 0 0.35em;
  opacity: 0.55;
}
@media (max-width: 560px) {
  .privacy-head { margin-bottom: 28px; }
  .privacy-item {
    gap: 12px 14px;
    padding: 14px 12px 14px 10px;
  }
  .privacy-num {
    min-width: 2.4rem;
    padding: 8px 6px;
    font-size: 9px;
  }
  .privacy-h { font-size: 16px; margin-bottom: 6px; }
  .privacy-text { font-size: 14px; }
  .privacy-more { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .privacy-item { transition: none; }
  .privacy-item:hover,
  .privacy-item:focus-within { transform: none; }
}

.faq-head { margin-bottom: 28px; }
.faq-head h1 { margin-bottom: 8px; }
.faq-list { display: grid; gap: 14px; max-width: 42rem; }
.faq-item {
  padding: 14px 16px;
  border: 2px solid #000;
  background: var(--bg-2);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}
.faq-item dt {
  font: 700 16px/1.25 var(--display);
  color: var(--ink);
  margin-bottom: 6px;
}
.faq-item dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.faq-item a { color: var(--acid); text-decoration: underline; }
.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 label > .auth-label-row {
  display: flex;
  text-transform: none;
  letter-spacing: normal;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}
.auth-form label > .auth-label-row > span:first-child {
  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);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.auth-form input:focus {
  outline: none;
  border-color: var(--acid);
  box-shadow: inset 0 0 0 1px rgba(198, 242, 58, 0.35);
}
.auth-form .auth-field input:focus {
  border-color: transparent;
  box-shadow: none;
}
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }

/* ——— Shop /donate ——— */
.shop-page {
  --shop-gap: 16px;
  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;
  display: grid;
  gap: 24px;
  justify-items: stretch;
}
.shop-intro,
.shop-form,
.shop-empty {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  justify-self: stretch;
}
.shop-intro {
  margin: 0;
  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: none;
}
.shop-form { display: block; }
.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: var(--shop-gap);
  align-items: start;
  width: 100%;
}
.shop-rail {
  display: grid;
  grid-template-rows: auto auto;
  gap: var(--shop-gap);
  min-width: 0;
  width: 100%;
  align-content: start;
  align-self: start;
}
.shop-col-label {
  display: block;
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 1.25em;
  color: var(--muted);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.shop-rail > .shop-col-label {
  margin-bottom: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.shop-catalog {
  display: block;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}
.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: var(--shop-gap);
  align-items: stretch;
  min-width: 0;
}
.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: 112px;
  height: 112px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  align-self: center;
  padding: 6px;
  background:
    radial-gradient(ellipse at 50% 58%, rgba(198, 242, 58, 0.1) 0%, transparent 58%),
    #100e0c;
  border: 2px solid #000;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.shop-card-badge svg { display: block; }
.shop-card-icon {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
  /* Override global img { height: auto } so square slot never squashes */
  flex: 0 0 auto;
}
.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-rail--checkout {
  position: sticky;
  top: 92px;
}
.shop-checkout {
  display: grid;
  gap: var(--shop-gap);
  width: 100%;
  min-width: 0;
  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-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-legal {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.shop-legal a {
  color: var(--acid);
  text-decoration: underline;
}
.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;
  object-fit: contain;
  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-form label > .auth-label-row {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}
.auth-btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 3px 10px;
  border: 2px solid #000;
  border-radius: var(--radius);
  background: var(--bg-3);
  color: var(--ink);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
  transition: transform .12s var(--ease), box-shadow .12s, color .12s, background .12s;
}
.auth-btn-sm:hover {
  color: var(--acid-ink);
  background: var(--acid);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
}
.auth-btn-sm:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45);
}
.auth-forgot {
  flex-shrink: 0;
}
.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.auth-consent input[type="checkbox"] {
  width: auto;
  min-width: 18px;
  min-height: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--acid);
  cursor: pointer;
}
.auth-consent-text {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.4;
}
.auth-consent-text a {
  color: var(--acid);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-consent-text a:hover { color: #fff; }
.auth-field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: 0;
  border: 2px solid #000;
  border-radius: var(--radius);
  background: #14110e;
  overflow: hidden;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.auth-field:focus-within {
  border-color: var(--acid);
  box-shadow: inset 0 0 0 1px rgba(198, 242, 58, 0.35);
}
.auth-field input {
  border: 0;
  border-radius: 0;
  background: transparent;
  min-height: 44px;
}
.auth-eye {
  min-width: 76px;
  padding: 0 10px;
  border: 0;
  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;
}
.auth-eye:hover {
  color: var(--acid);
  background: #1f1a14;
}
.auth-eye:focus-visible {
  outline: none;
  color: var(--acid);
  background: #1f1a14;
}
.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;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.auth-switch a.auth-btn-sm {
  color: var(--ink);
}
.auth-switch a.auth-btn-sm:hover {
  color: var(--acid-ink);
}
.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); }
.prose h2 {
  font: 700 20px/1.2 var(--display);
  margin: 1.4em 0 0.5em;
  color: var(--ink);
}
.prose p { color: var(--muted); max-width: 42em; }
.prose a { color: var(--acid); text-decoration: underline; }
.user-line { font: 700 28px/1 var(--display); }
.lead { color: var(--muted); max-width: 36em; }

.site-footer {
  margin-top: auto;
  flex-shrink: 0;
  position: relative;
  border-top: 2px solid #000;
  background:
    linear-gradient(180deg, rgba(198, 242, 58, 0.045), transparent 42%),
    linear-gradient(105deg, rgba(107, 79, 47, 0.16) 0%, transparent 42%, rgba(90, 85, 76, 0.1) 100%),
    #120f0c;
  box-shadow: inset 0 1px 0 rgba(198, 242, 58, 0.1);
}
.site-footer::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--dirt) 12%,
    var(--acid) 48%,
    var(--stone) 78%,
    transparent 100%
  );
  opacity: 0.55;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 28px 40px;
  align-items: start;
  padding: 30px 0 26px;
  color: var(--muted);
  font-size: 13px;
}
.footer-col--brand {
  display: grid;
  gap: 0;
  align-content: start;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 700 18px/1 var(--display);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.footer-tag {
  margin: 0;
  max-width: 28em;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  column-gap: 22px;
  row-gap: 8px;
  align-content: start;
  padding-top: 2px;
}
.footer-links a {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color .18s var(--ease);
}
.footer-links a:hover { color: var(--acid); }
.footer-links a:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(61, 214, 140, 0.32);
  background: rgba(61, 214, 140, 0.06);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.footer-social a:hover {
  color: var(--acid-ink);
  border-color: var(--acid);
  background: var(--acid);
}
.footer-social a:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
}
.footer-social-btn {
  width: 36px;
  height: 36px;
  padding: 0 !important;
  justify-content: center;
  border-radius: 2px;
}
.footer-social-btn .social-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  line-height: 0;
}
.footer-social-btn .social-svg {
  display: block;
}
.footer-social a.footer-social-btn--discord {
  color: #c8d0ff;
  border-color: rgba(88, 101, 242, 0.55);
  background:
    linear-gradient(160deg, rgba(88, 101, 242, 0.22), rgba(198, 242, 58, 0.08) 70%),
    rgba(24, 28, 48, 0.85);
  box-shadow:
    0 0 0 1px rgba(198, 242, 58, 0.12),
    0 0 12px rgba(88, 101, 242, 0.28);
  animation: discord-glow 2.4s ease-in-out infinite;
}
.footer-social a.footer-social-btn--discord:hover {
  color: #fff;
  border-color: #5865f2;
  background: #5865f2;
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.45);
}
.social-icon--discord .social-online-dot {
  position: absolute;
  right: -3px;
  bottom: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  border: 1.5px solid #120f0c;
  box-shadow: 0 0 6px rgba(198, 242, 58, 0.85);
  animation: social-dot-pulse 1.6s ease-in-out infinite;
}
.footer-social a.footer-social-btn--telegram {
  color: #7ad4ff;
  border-color: rgba(42, 171, 238, 0.4);
  background: rgba(42, 171, 238, 0.08);
}
.footer-social a.footer-social-btn--telegram:hover {
  color: #041018;
  border-color: #2aabee;
  background: #2aabee;
}
.footer-social a.footer-social-btn--vk {
  color: #8eb8ff;
  border-color: rgba(0, 119, 255, 0.4);
  background: rgba(0, 119, 255, 0.08);
}
.footer-social a.footer-social-btn--vk:hover {
  color: #041018;
  border-color: #0077ff;
  background: #0077ff;
}
@keyframes discord-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(198, 242, 58, 0.1),
      0 0 10px rgba(88, 101, 242, 0.22);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(198, 242, 58, 0.28),
      0 0 18px rgba(88, 101, 242, 0.42);
  }
}
@keyframes social-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.75; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-social a.footer-social-btn--discord,
  .social-icon--discord .social-online-dot {
    animation: none;
  }
}
.footer-social a.footer-topcraft {
  padding: 0;
  border: none;
  background: transparent;
  line-height: 0;
  align-self: center;
}
.footer-social a.footer-topcraft:hover {
  color: inherit;
  border: none;
  background: transparent;
  opacity: 0.88;
}
.footer-social a.footer-topcraft img,
.footer-social a.footer-topcraft .footer-topcraft-img {
  display: block;
  width: 88px;
  height: 31px;
  object-fit: contain;
}
.footer-social a.footer-topcraft .footer-topcraft-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 0 10px;
  border: 2px solid #000;
  background: linear-gradient(180deg, #c6f23a 0%, #9bc422 100%);
  color: #12100e;
  font-family: "Chakra Petch", "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}
.footer-ip {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  align-self: start;
  min-width: 11.5rem;
  padding: 10px 12px;
  border: 2px solid #000;
  background:
    linear-gradient(180deg, rgba(198, 242, 58, 0.09), transparent 72%),
    var(--bg-2);
  box-shadow:
    inset 0 0 0 1px rgba(198, 242, 58, 0.2),
    2px 2px 0 rgba(0, 0, 0, 0.35);
  user-select: all;
}
.footer-ip-label {
  font: 600 9px/1 var(--pixel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acid);
  opacity: 0.9;
}
.footer-ip-value {
  font: 700 14px/1.2 var(--display);
  letter-spacing: 0.02em;
  color: var(--ink);
  word-break: break-all;
}

.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 - 72px);
  margin-top: 72px;
  border-top: 2px solid #000;
  position: relative;
}
.app-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  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: fixed;
  top: calc(72px + 10px + env(safe-area-inset-top, 0px));
  left: max(12px, env(safe-area-inset-left, 0px));
  z-index: 45;
}
.app-nav-toggle span {
  width: 18px;
  height: 2px;
  background: #fff;
  display: block;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.app-nav-toggle[aria-expanded="true"] {
  background: var(--acid);
}
.app-nav-toggle[aria-expanded="true"] span { background: var(--acid-ink); }
.app-nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.app-nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}
.app-sidebar-backdrop {
  display: none;
}
.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-cats {
  margin: 0 0 12px;
  padding: 0 0 0 18px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.cookie-cats strong { color: var(--ink); }
.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);
}
.nav-user {
  font-size: 13px;
  font-weight: 600;
  color: var(--acid);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.totp-panel {
  max-width: 480px;
  width: 100%;
  margin-inline: auto;
}
.totp-panel > h2,
.totp-panel > p {
  text-align: center;
}
.totp-recommend {
  color: #e0a84a;
  font-size: 14px;
  margin: 0 0 12px;
  text-align: center;
}
.totp-howto {
  margin: 0 auto 14px;
  padding-left: 1.25rem;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted, #888);
  text-align: left;
}
.totp-howto li { margin: 0 0 6px; }
.totp-howto a { color: var(--acid); }
.totp-setup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 12px 0 16px;
  text-align: center;
}
.totp-qr {
  border: 2px solid #000;
  background: #fff;
  border-radius: var(--radius);
}
.totp-secret {
  font-size: 13px;
  color: var(--muted);
  word-break: break-all;
  text-align: center;
}
.totp-secret code {
  color: var(--text);
  font-size: 12px;
}
.totp-backup-once {
  max-width: 480px;
  width: 100%;
  margin: 0 auto 20px;
  border-color: var(--acid);
  text-align: center;
}
.totp-backup-once h2 {
  font-size: 18px;
  margin: 0 0 8px;
}
.totp-backup-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.totp-backup-list code {
  display: block;
  padding: 8px 10px;
  border: 2px solid #000;
  background: var(--bg-3);
  font-size: 13px;
  letter-spacing: 0.06em;
}

@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;
  }
  .footer-grid {
    gap: 16px;
    padding: 22px 0 18px;
  }
  .footer-brand {
    font-size: 17px;
    margin-bottom: 6px;
  }
  .footer-tag { font-size: 12px; }
  .footer-social { margin-top: 10px; }
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding-top: 0;
  }
  .footer-ip {
    min-width: 0;
    width: fit-content;
    max-width: 100%;
  }
  .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-rail--checkout { position: static; }
  .shop-banner { height: 120px; }
  .shop-wrap { margin-top: -44px; }
  .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;
    aspect-ratio: 16 / 9;
  }
  .news-card--featured .news-card-media img {
    object-position: center 42%;
  }
  .ops-health-meta { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .wrap {
    width: min(calc(100% - 24px), var(--max));
    max-width: var(--max);
  }
  .section { padding: 52px 0; }
  .page-hero { padding: 96px 0 48px; }
  .shop-page { padding-bottom: 48px; }
  .shop-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .shop-intro h1 { font-size: clamp(28px, 9vw, 40px); }
  .shop-card { min-height: 0; }
  .shop-card-badge { width: 96px; height: 96px; aspect-ratio: 1 / 1; }
  .shop-card-body { padding-right: 22px; }
  .shop-checkout { padding: 16px 14px; }
  .shop-pay { width: 100%; min-height: 52px; }
  .auth-page { padding: 88px 0 36px; align-items: flex-start; }
  .auth-wrap { width: min(calc(100% - 24px), 440px); }
  .auth-card { padding: 18px 14px 14px; }
  .auth-form { padding: 14px; }
  .auth-form input,
  .auth-form select,
  .auth-form textarea,
  .app-panel input,
  .app-panel select,
  .app-panel textarea {
    font-size: 16px; /* prevent iOS zoom */
  }
  .auth-eye { min-width: 68px; min-height: 44px; font-size: 10px; }
  .auth-btn-sm {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
  }
  .auth-consent { align-items: flex-start; }
  .auth-consent input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin-top: 2px;
  }
  .logo { gap: 8px; font-size: 15px; }
  .logo-mark { width: 44px; height: 44px; padding: 0; }
  .header-inner { min-height: 64px; gap: 10px; }
  .nav-toggle {
    display: flex;
    width: 44px;
    height: 44px;
  }
  .nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 55;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    /* Non-scrolling top inset — padding on the scroller itself lets links slide under X */
    padding: calc(64px + env(safe-area-inset-top, 0px)) 0 0;
    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);
    overflow: hidden;
    box-sizing: border-box;
  }
  .nav.is-open { display: flex; }
  .nav-panel {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    /* flex-start: center+overflow clips top links (Кабинет/Админ) on tall menus */
    justify-content: flex-start;
    gap: 18px;
    width: min(100%, 320px);
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 20px 24px max(40px, env(safe-area-inset-bottom));
  }
  .nav-panel > a {
    font: 700 26px/1.15 var(--display);
    letter-spacing: 0.02em;
    color: var(--ink);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
  }
  .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;
    min-height: 48px;
    align-self: center;
  }
  .nav-panel .lang {
    margin-top: 4px;
  }
  .nav-panel .lang a {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    font-size: 13px;
  }
  .nav-panel .nav-ghost {
    font: 700 16px/1 var(--display);
    color: var(--muted);
    min-height: 44px;
    padding: 10px 14px;
  }
  .nav-panel .nav-user {
    max-width: 100%;
    white-space: normal;
  }
  .nav-close {
    display: none; /* header toggle morphs to X (z-index above overlay) */
  }
  .nav-toggle { display: flex; }
  body.nav-open { overflow: hidden; }
  .online-pill { display: none; }
  .inv-grid { grid-template-columns: 1fr; }
  .join-panel { padding: 16px 14px 14px; width: 100%; }
  .join-name { font-size: clamp(30px, 11vw, 44px); }
  .join-claim { font-size: 15px; }
  .join-actions { flex-direction: column; }
  .join-actions .btn { width: 100%; }
  .ip-value {
    font-size: clamp(15px, 4.8vw, 24px);
    letter-spacing: 0.01em;
  }
  .ip-slot { padding: 12px; }
  .mode-card-body h3 { font-size: 22px; }
  .news-list li { grid-template-columns: 48px 1fr; gap: 10px; }
  .flash-stack {
    right: 10px;
    left: 10px;
    top: 72px;
    width: auto;
  }
  .cookie-consent {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 16px 16px max(16px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 0 rgba(0, 0, 0, 0.35);
  }
  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .cookie-actions button {
    min-height: 48px;
    width: 100%;
  }
  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 6px 2px;
  }
  .footer-social a {
    min-height: 44px;
    padding: 10px 14px;
  }
  .footer-social-btn {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0 !important;
  }
  .footer-social a.footer-topcraft {
    min-height: 0;
    padding: 0;
  }
  .footer-ip {
    width: 100%;
    max-width: 100%;
  }
  .order-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .inline-status {
    flex-wrap: wrap;
    align-items: stretch;
  }
  .inline-status select {
    flex: 1 1 100%;
    min-width: 0;
    min-height: 48px;
  }
  .inline-status .btn {
    flex: 1 1 auto;
    min-height: 48px;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero-actions .btn { width: 100%; min-height: 48px; }
  .thread-msg header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .ops-health-meta { grid-template-columns: 1fr; }
  .ops-health-count { font-size: clamp(28px, 10vw, 40px); word-break: break-word; }
  .bar-row {
    grid-template-columns: 64px 1fr 32px;
    gap: 6px;
  }
  .spark { gap: 4px; height: 84px; overflow-x: auto; }
  .spark-col span { font-size: 8px; }
  .totp-backup-list { grid-template-columns: 1fr; }
  .totp-setup { align-items: center; }
  .totp-qr { max-width: min(180px, 100%); height: auto; }
  .admin-quill-shell { max-width: 100%; overflow-x: auto; }
  .admin-quill-shell .ql-toolbar.ql-snow {
    flex-wrap: wrap;
  }
  .code-block, .app-panel pre {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* App shell: sidebar → drawer */
  .app-layout {
    grid-template-columns: 1fr;
    margin-top: 64px;
    min-height: calc(100svh - 64px);
  }
  .app-nav-toggle { display: flex; }
  .app-nav-toggle[aria-expanded="true"] {
    left: calc(min(280px, 100vw - 48px) + 10px);
    top: calc(64px + 12px + env(safe-area-inset-top, 0px));
  }
  .app-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 42;
    background: rgba(10, 8, 6, 0.62);
    border: 0;
    padding: 0;
    cursor: pointer;
  }
  .app-sidebar-backdrop[hidden] { display: none !important; }
  .app-sidebar {
    position: fixed;
    top: calc(64px + env(safe-area-inset-top, 0px));
    /* Slide via left (not transform) so sticky label + scroll text stay crisp on iOS */
    left: calc(-1 * min(280px, calc(100vw - 48px)) - 8px);
    bottom: 0;
    width: min(280px, calc(100vw - 48px));
    z-index: 44;
    border-right: 2px solid #000;
    border-bottom: 0;
    /* Label sticky: pad only sides/bottom; top pad lives on sticky label */
    padding: 0 14px max(20px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transform: none;
    transition: left .22s var(--ease);
    box-shadow: 4px 0 0 rgba(0, 0, 0, 0.35);
    background-clip: padding-box;
  }
  .app-sidebar.is-open { left: 0; }
  .app-sidebar .app-sidebar-label {
    position: sticky;
    top: 0;
    z-index: 1;
    margin: 0 -14px 12px;
    padding: 18px 14px 12px;
    background: #120f0c;
    border-bottom: 1px solid var(--line);
  }
  .admin-shell .app-sidebar .app-sidebar-label {
    background: #0e120c;
  }
  body.app-nav-open { overflow: hidden; }
  .app-nav {
    display: grid;
    gap: 4px;
  }
  .app-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 2px solid transparent;
  }
  .app-nav a.is-active {
    border-color: #000;
    background: rgba(198, 242, 58, 0.1);
  }
  .app-main {
    padding: 64px 14px 48px;
    max-width: 100%;
    min-width: 0;
  }
  .app-page-head h1 { font-size: clamp(24px, 8vw, 34px); }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-tile { padding: 14px 12px; }
  .stat-tile strong { font-size: 22px; word-break: break-word; }
  .app-panel { padding: 14px; overflow-x: auto; }
}

@media (max-width: 430px) {
  .wrap {
    width: min(calc(100% - 20px), var(--max));
    max-width: var(--max);
  }
  .logo-text { max-width: 11ch; }
  .join-hero-inner { padding: 80px 0 36px; }
  .section-head h2, .shop-head h2, .join-how h2, .patch-board h2 {
    font-size: clamp(24px, 8vw, 34px);
  }
  .stat-grid { grid-template-columns: 1fr; }
  .shop-card-title { font-size: 18px; }
  .shop-summary-row { font-size: 13px; }
  .auth-card-head h1 { font-size: 26px; }
  .cookie-actions { grid-template-columns: 1fr; }
  .news-card-media,
  .news-card--featured .news-card-media {
    aspect-ratio: 16 / 9;
  }
  .news-article-cover {
    max-height: min(40vh, 280px);
  }
  .news-teaser-item {
    grid-template-columns: 72px 1fr;
  }
  .team-person {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }
  .team-person-photo { width: 64px; height: 64px; }
  .bar-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .bar-row b { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  .online-dot { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .nav-toggle span { transition: none; }
  .app-nav-toggle span { transition: none; }
  .app-sidebar { transition: none; }
}

/* ——— Team roster ——— */
.team-head {
  max-width: 36em;
  margin-bottom: 36px;
}
.team-head .lead {
  color: var(--muted);
  max-width: 34em;
  margin: 12px 0 0;
}
.team-roster {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.team-person {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px 24px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.team-person-photo {
  width: 96px;
  height: 96px;
  border: 2px solid #000;
  background: var(--bg-3);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.team-person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-person-initial {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--acid);
  line-height: 1;
}
.team-person-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 8px;
}
.team-person-meta h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
}
.team-role {
  font-family: var(--pixel);
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}
.team-role--founder { color: var(--acid); }
.team-person-body p {
  color: var(--muted);
  max-width: 40em;
  margin: 0 0 12px;
}
.team-person-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.team-person-links a {
  color: var(--acid);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.team-person-links a:hover { color: var(--ink); }
@media (max-width: 560px) {
  .team-person {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px 16px;
    padding: 22px 0;
  }
  .team-person-photo {
    width: 72px;
    height: 72px;
  }
}
