/* ==========================================================================
   WAYSIDE DM, night road / neon HUD
   Type: Oswald (display) + Golos Text (body). Accent: electric blue.
   ========================================================================== */

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('./fonts/golos-text-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('./fonts/golos-text-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('./fonts/oswald-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('./fonts/oswald-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #050a14;
  --bg-deep: #030711;
  --surface: #091322;
  --surface-2: #0d1a2d;
  --surface-3: #11213a;
  --line: #1a2b45;
  --line-soft: rgba(124, 192, 255, .12);
  --text: #eef4ff;
  --muted: #93a7c8;
  --muted-2: #6c81a5;
  --blue: #2f8cff;
  --blue-soft: #7cc0ff;
  --blue-deep: #1660c4;
  --ok: #3ddc97;
  --danger: #ff5d6c;
  --btn-ink: #04101f;
  --display: 'Oswald', 'Arial Narrow', system-ui, sans-serif;
  --text-font: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1240px;
  --gutter: clamp(1.1rem, 5vw, 4rem);
  --head-h: 72px;
  --r-sm: 2px;
  --r-md: 14px;
  --r-pill: 999px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, .84, .28, 1);
  --shadow-glow: 0 0 0 1px rgba(47, 140, 255, .22), 0 18px 50px rgba(0, 0, 0, .45);
  scroll-padding-top: calc(var(--head-h) + 16px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(60% 45% at 78% 8%, rgba(47, 140, 255, .10), transparent 70%),
    radial-gradient(45% 40% at 8% 55%, rgba(22, 96, 196, .08), transparent 72%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--text-font);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-soft); text-decoration: none; }
a:hover { color: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-family: ui-monospace, 'Cascadia Mono', 'Consolas', monospace; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: .015em;
  text-transform: uppercase;
}

p { margin: 0; }

::selection { background: var(--blue); color: var(--btn-ink); }

:focus-visible {
  outline: 3px solid var(--blue-soft);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: .7rem 1.1rem;
  background: var(--blue);
  color: var(--btn-ink);
  border-radius: var(--r-sm);
  font-weight: 700;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; color: var(--btn-ink); }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.copy-area {
  position: fixed;
  left: -9999px;
  top: 0;
  opacity: 0;
  pointer-events: none;
}
.inline-code {
  padding: .1rem .4rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(47, 140, 255, .08);
  color: var(--blue-soft);
  white-space: nowrap;
}

/* ---------- buttons ---------- */

.btn {
  --btn-bg: var(--blue);
  --btn-fg: var(--btn-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 46px;
  padding: .72rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: .94rem;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover {
  color: var(--btn-fg);
  background: #58a4ff;
  box-shadow: 0 8px 26px rgba(47, 140, 255, .28);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: rgba(47, 140, 255, .08);
  border-color: rgba(124, 192, 255, .45);
  color: #fff;
}
.btn-danger {
  --btn-bg: transparent;
  --btn-fg: var(--danger);
  border-color: rgba(255, 93, 108, .45);
}
.btn-danger:hover { background: rgba(255, 93, 108, .12); color: #ffd7db; }
.btn-sm { min-height: 38px; padding: .45rem .9rem; font-size: .86rem; }
.btn-lg { min-height: 54px; padding: .9rem 1.7rem; font-size: 1rem; }

.link-button {
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.link-button.danger { color: var(--danger); font-size: .85rem; }
.link-arrow { display: inline-block; margin-top: .75rem; font-weight: 600; }
.link-arrow:hover { color: #fff; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: .35rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: .85rem;
  color: var(--muted);
}
.pill-muted { opacity: .8; }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--head-h);
  background: rgba(5, 10, 20, .78);
  border-bottom: 1px solid rgba(26, 43, 69, .7);
  backdrop-filter: blur(14px);
}
.head-inner {
  height: var(--head-h);
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--text);
  flex: none;
}
.brand:hover { color: #fff; }
.brand img { width: 42px; height: 42px; filter: drop-shadow(0 0 10px rgba(47, 140, 255, .22)); }
.brand-text {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: .14em;
  line-height: 1;
}
.brand-text b { color: var(--blue); font-weight: 600; }

.site-nav {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
}
.site-nav a {
  padding: .55rem .7rem;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
  transition: color .16s var(--ease), background .16s var(--ease);
}
.site-nav a:hover, .site-nav a.is-active { color: #fff; background: rgba(47, 140, 255, .08); }

.head-actions {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-left: .4rem;
}
.head-link { color: var(--muted); font-size: .9rem; font-weight: 600; }
.head-link:hover { color: #fff; }
.head-user {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--blue-soft);
  font-weight: 700;
  font-size: .9rem;
}
.inline-form { display: inline-flex; margin: 0; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  padding: 11px 10px;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: clamp(620px, 91vh, 880px);
  display: flex;
  align-items: center;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(62% 78% at 82% 16%, rgba(47, 140, 255, .17), transparent 64%),
    radial-gradient(48% 55% at 6% 92%, rgba(22, 96, 196, .08), transparent 72%),
    var(--bg);
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 192, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 192, 255, .055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(80% 80% at 78% 12%, #000 0%, transparent 72%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15%;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(47, 140, 255, .5) 0 26px, transparent 26px 52px);
  opacity: .45;
}
.hero-fade { display: none; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .62fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 4rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 1rem;
  color: var(--blue-soft);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.lane {
  width: 34px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 8px, transparent 8px 13px);
  flex: none;
}

.hero h1 {
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 1.6vw, 1.1rem);
  font-size: clamp(3.1rem, 9.2vw, 7.4rem);
  font-weight: 700;
  letter-spacing: .015em;
  line-height: .92;
  margin: 0 0 1.2rem;
}
.hero h1 em {
  color: var(--blue);
  font-style: normal;
  text-shadow: 0 0 32px rgba(47, 140, 255, .35);
}
.hero-mark {
  width: clamp(64px, 8vw, 100px);
  height: auto;
  flex: none;
  filter: drop-shadow(0 0 26px rgba(47, 140, 255, .45));
}
.hero-lead {
  max-width: 46ch;
  color: #c6d5ee;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.6;
  margin-bottom: 1.8rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.8rem; }

.ip-box {
  display: flex;
  align-items: center;
  gap: .9rem;
  flex-wrap: wrap;
  max-width: 490px;
  padding: .8rem .9rem .8rem 1rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--blue);
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, rgba(13, 26, 45, .92), rgba(9, 19, 34, .68));
}
.ip-label {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ip-box code {
  font-size: .98rem;
  color: #fff;
  letter-spacing: .02em;
}
.ip-box .btn { margin-left: auto; }

.hero-side { display: grid; gap: .9rem; align-content: end; }
.status-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(9, 19, 34, .82);
  backdrop-filter: blur(10px);
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted-2);
  box-shadow: 0 0 0 5px rgba(108, 129, 165, .12);
}
.status-card.is-online .status-dot { background: var(--ok); box-shadow: 0 0 0 5px rgba(61, 220, 151, .14); animation: pulse 2.4s infinite; }
.status-card.is-offline .status-dot { background: var(--danger); box-shadow: 0 0 0 5px rgba(255, 93, 108, .14); }
.status-label { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.status-value { font-weight: 700; font-size: .95rem; }
.status-meta { font-family: var(--display); font-size: 1.25rem; letter-spacing: .04em; color: var(--blue-soft); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--line);
}
.hero-stats > div {
  padding: .85rem .55rem;
  background: rgba(9, 19, 34, .82);
  text-align: center;
}
.hero-stats dt {
  order: 2;
  color: var(--muted);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-stats dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.1;
  color: #fff;
}
.hero-stats > div { display: flex; flex-direction: column; gap: .1rem; }
.hero-note { color: var(--muted); font-size: .84rem; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(61, 220, 151, .12); }
  50% { box-shadow: 0 0 0 8px rgba(61, 220, 151, .04); }
}

/* ---------- sections ---------- */

.section { padding: clamp(3.6rem, 8vw, 6.4rem) 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(13, 26, 45, .5), rgba(5, 10, 20, 0));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head { max-width: 760px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  margin-bottom: .8rem;
}
.section-head .lead { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.12rem); max-width: 62ch; }
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  max-width: none;
}
.section-head-row .lead.wide { max-width: 40ch; margin: 0; }

.lead { color: var(--muted); }

/* ---------- modes ---------- */

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: clamp(1.3rem, 2.4vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.mode-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), transparent 70%);
  opacity: .5;
}
.mode-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 192, 255, .38);
}
.mode-card-accent {
  border-color: rgba(47, 140, 255, .42);
  background: linear-gradient(180deg, rgba(22, 96, 196, .13), var(--surface) 70%);
}
.mode-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--blue-soft);
  background: rgba(47, 140, 255, .06);
  margin-bottom: .4rem;
}
.mode-tag {
  color: var(--muted-2);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.mode-card h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.mode-card p { color: var(--muted); font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: auto 0 0; padding: .6rem 0 0; }
.chips li {
  padding: .18rem .55rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: .74rem;
}

/* ---------- arenas ---------- */

.arena-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.arena-list li {
  display: grid;
  grid-template-columns: 64px minmax(150px, .9fr) minmax(0, 1.3fr) 70px;
  align-items: center;
  gap: 1rem;
  padding: 1rem .4rem;
  border-bottom: 1px solid var(--line);
  transition: background .16s var(--ease), padding-left .16s var(--ease);
}
.arena-list li:hover { background: rgba(47, 140, 255, .05); padding-left: .9rem; }
.arena-num { font-family: var(--display); color: var(--muted-2); font-size: 1.1rem; letter-spacing: .08em; }
.arena-name { font-family: var(--display); font-size: clamp(1.15rem, 2vw, 1.45rem); text-transform: uppercase; letter-spacing: .04em; }
.arena-desc { color: var(--muted); font-size: .9rem; }
.arena-tag {
  justify-self: end;
  padding: .1rem .5rem;
  border: 1px solid rgba(47, 140, 255, .4);
  border-radius: var(--r-sm);
  color: var(--blue-soft);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
}

/* ---------- connect ---------- */

.connect-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.steps li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(9, 19, 34, .6);
}
.step-num {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47, 140, 255, .45);
  border-radius: 50%;
  color: var(--blue-soft);
  font-family: var(--display);
  font-size: 1.25rem;
}
.steps h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.steps p { color: var(--muted); font-size: .93rem; }

.connect-card {
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px dashed rgba(124, 192, 255, .35);
  border-radius: var(--r-md);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(47, 140, 255, .12), transparent 60%),
    rgba(9, 19, 34, .72);
  text-align: center;
}
.connect-label { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.connect-ip {
  margin: .5rem 0 1.1rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  letter-spacing: .05em;
  color: #fff;
}
.connect-card hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
.connect-card .link-arrow { font-size: .9rem; }

/* ---------- accordion ---------- */

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  position: relative;
  padding: 1.1rem 3rem 1.1rem .2rem;
  cursor: pointer;
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  letter-spacing: .03em;
  text-transform: uppercase;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: '+';
  position: absolute;
  right: .4rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue-soft);
  font-family: var(--text-font);
  font-size: 1.4rem;
  font-weight: 300;
  transition: transform .2s var(--ease);
}
.accordion details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.accordion details p { padding: 0 3rem 1.3rem .2rem; color: var(--muted); max-width: 78ch; }

/* ---------- forum preview ---------- */

.forum-split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.forum-intro h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: .9rem; }
.forum-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.2rem 0 1.4rem; }
.forum-intro .lead { max-width: 52ch; }

.latest-panel {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(9, 19, 34, .72);
  overflow: hidden;
}
.latest-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.latest-head a { letter-spacing: .02em; text-transform: none; }
.latest-list { display: grid; }
.latest-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .3rem 1rem;
  padding: .95rem 1.1rem;
  border-bottom: 1px solid var(--line);
  transition: background .16s var(--ease);
}
.latest-item:last-child { border-bottom: 0; }
.latest-item:hover { background: rgba(47, 140, 255, .06); }
.latest-item h3 { font-size: 1.02rem; line-height: 1.25; letter-spacing: .02em; }
.latest-item h3 a { color: var(--text); }
.latest-item h3 a:hover { color: var(--blue-soft); }
.latest-item p { color: var(--muted-2); font-size: .78rem; }
.latest-item .cat { align-self: start; }
.latest-empty { padding: 1.4rem 1.1rem; color: var(--muted); font-size: .9rem; }
.latest-skeleton { height: 62px; padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); }
.latest-skeleton span { display: block; height: 8px; border-radius: 4px; background: rgba(124, 192, 255, .09); margin-bottom: 7px; }
.latest-skeleton span:nth-child(1) { width: 64%; }
.latest-skeleton span:nth-child(2) { width: 38%; }
.latest-skeleton span:nth-child(3) { width: 22%; }

/* ---------- support band ---------- */

.support-band {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(80% 100% at 20% 0%, rgba(47, 140, 255, .14), transparent 60%),
    linear-gradient(180deg, rgba(13, 26, 45, .65), rgba(5, 10, 20, .2));
}
.support-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.support-mark { width: clamp(88px, 10vw, 120px); filter: drop-shadow(0 0 30px rgba(47, 140, 255, .35)); }
.support-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: .7rem; }
.support-copy .lead { max-width: 60ch; }
.support-meta { display: grid; gap: .7rem; }
.support-meta p {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: .5rem;
  margin: 0;
  padding: .55rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(9, 19, 34, .7);
}
.support-meta b { font-family: var(--display); font-size: 1.3rem; color: #fff; }
.support-meta span { color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- footer ---------- */

.site-foot {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 4vw, 3rem) 0 1.4rem;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.foot-brand { display: flex; align-items: center; gap: .8rem; }
.foot-brand img { width: 52px; height: 52px; }
.foot-title { font-family: var(--display); letter-spacing: .12em; font-size: 1.05rem; }
.foot-title b { color: var(--blue); }
.foot-note { color: var(--muted-2); font-size: .8rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.foot-links a { color: var(--muted); font-size: .86rem; }
.foot-links a:hover { color: #fff; }
.foot-community { display: flex; gap: .5rem; flex-wrap: wrap; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(26, 43, 69, .6);
  color: var(--muted-2);
  font-size: .76rem;
}

/* ---------- forum: list ---------- */

.forum-hero, .form-hero, .topic-hero {
  padding: clamp(2.4rem, 6vw, 4.2rem) 0 clamp(1.6rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(70% 120% at 85% 0%, rgba(47, 140, 255, .12), transparent 62%),
    linear-gradient(180deg, rgba(13, 26, 45, .55), rgba(5, 10, 20, 0));
}
.forum-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.forum-head h1 { font-size: clamp(2.3rem, 6vw, 4rem); margin-bottom: .4rem; }
.forum-head .lead { max-width: 60ch; }

.forum-tabs {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}
.forum-tab {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 40px;
  padding: .4rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: .86rem;
  font-weight: 600;
  transition: border-color .16s var(--ease), color .16s var(--ease), background .16s var(--ease);
}
.forum-tab span {
  min-width: 20px;
  padding: 0 .3rem;
  border-radius: var(--r-pill);
  background: rgba(124, 192, 255, .1);
  color: var(--blue-soft);
  font-size: .72rem;
  text-align: center;
}
.forum-tab:hover { color: #fff; border-color: rgba(124, 192, 255, .4); }
.forum-tab.is-active { color: var(--btn-ink); background: var(--blue); border-color: var(--blue); }
.forum-tab.is-active span { background: rgba(4, 16, 31, .18); color: var(--btn-ink); }

.forum-list { padding-top: clamp(1.2rem, 3vw, 2rem); }
.topic-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 32px;
  gap: 1rem;
  align-items: center;
  padding: 1.05rem .8rem 1.05rem .2rem;
  border-bottom: 1px solid var(--line);
  transition: background .16s var(--ease), padding-left .16s var(--ease);
}
.topic-row:hover { background: rgba(47, 140, 255, .05); padding-left: .7rem; }
.topic-votes {
  font-family: var(--display);
  font-size: 1.35rem;
  text-align: center;
  color: var(--blue-soft);
  line-height: 1;
}
.topic-votes span { display: block; margin-top: .15rem; color: var(--muted-2); font-family: var(--text-font); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.topic-cat { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin-bottom: .25rem; }
.topic-body h3 { font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.25; text-transform: none; letter-spacing: 0; }
.topic-body h3 a { color: var(--text); }
.topic-body h3 a:hover { color: var(--blue-soft); }
.topic-meta { margin-top: .25rem; color: var(--muted-2); font-size: .8rem; }
.topic-arrow { color: var(--muted-2); font-size: 1.2rem; justify-self: end; }
.topic-row:hover .topic-arrow { color: var(--blue-soft); }

.cat {
  display: inline-flex;
  align-items: center;
  padding: .1rem .5rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cat-complaints { color: #ffb3ba; background: rgba(255, 93, 108, .1); border-color: rgba(255, 93, 108, .3); }
.cat-support { color: #9fd2ff; background: rgba(47, 140, 255, .12); border-color: rgba(47, 140, 255, .32); }
.cat-general { color: #b9c8e4; background: rgba(147, 167, 200, .12); border-color: rgba(147, 167, 200, .3); }
.cat-suggestions { color: #ffe08a; background: rgba(255, 200, 0, .1); border-color: rgba(255, 200, 0, .3); }

.tag {
  padding: .05rem .4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.tag-pin { color: var(--blue-soft); border-color: rgba(47, 140, 255, .35); }
.tag-lock { color: var(--muted-2); }

.empty {
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  background: rgba(9, 19, 34, .5);
}
.empty-mark { font-size: 2.4rem; color: var(--blue-soft); margin-bottom: .6rem; }
.empty h3 { font-size: 1.6rem; margin-bottom: .4rem; }
.empty p { color: var(--muted); margin-bottom: 1.2rem; }

.forum-cta { padding-bottom: clamp(2rem, 5vw, 3rem); }
.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-left: 2px solid var(--blue);
  border-radius: var(--r-md);
  background: linear-gradient(90deg, rgba(47, 140, 255, .1), rgba(9, 19, 34, .6));
}
.cta-card h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: .3rem; }
.cta-card p { color: var(--muted); max-width: 66ch; }

/* ---------- forum: topic ---------- */

.crumbs { display: flex; gap: .5rem; align-items: center; color: var(--muted-2); font-size: .8rem; margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: #fff; }
.topic-head h1 { font-size: clamp(1.8rem, 4.6vw, 3.2rem); margin: .6rem 0 .5rem; text-transform: none; letter-spacing: 0; line-height: 1.12; }

.topic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: clamp(1.4rem, 4vw, 2.6rem);
  padding-top: clamp(1.4rem, 3vw, 2.2rem);
  align-items: start;
}
.topic-main { display: grid; gap: 1rem; min-width: 0; }
.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(9, 19, 34, .72);
  padding: clamp(1.1rem, 2.4vw, 1.7rem);
}
.first-post, .reply { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 1rem; }
.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47, 140, 255, .4);
  border-radius: 50%;
  background: rgba(47, 140, 255, .12);
  color: var(--blue-soft);
  font-family: var(--display);
  font-size: 1.1rem;
}
.reply-main { min-width: 0; }
.reply-main header { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; margin-bottom: .3rem; }
.reply-main header strong { font-size: .95rem; }
.reply-main header time { color: var(--muted-2); font-size: .76rem; }
.prose { color: #d8e3f6; overflow-wrap: anywhere; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

.replies { display: grid; gap: .8rem; }
.replies-title { font-size: 1.15rem; margin: .8rem 0 .2rem; color: var(--muted); letter-spacing: .08em; }
.reply { background: rgba(9, 19, 34, .55); }
.reply-admin { margin-top: .6rem; }
.empty-line { padding: .5rem 0; }

.complaint-card {
  border: 1px solid rgba(255, 93, 108, .3);
  border-left: 3px solid var(--danger);
  border-radius: var(--r-md);
  background: rgba(255, 93, 108, .06);
  padding: 1.1rem 1.3rem;
}
.complaint-card h2 { font-size: 1rem; letter-spacing: .1em; color: #ffb3ba; margin-bottom: .6rem; }
.complaint-card dl { display: grid; gap: .5rem; margin: 0; }
.complaint-card dl > div { display: grid; grid-template-columns: 130px 1fr; gap: .8rem; }
.complaint-card dt { color: var(--muted); font-size: .8rem; }
.complaint-card dd { margin: 0; overflow-wrap: anywhere; }

.topic-side { display: grid; gap: 1rem; position: sticky; top: calc(var(--head-h) + 16px); }
.side-card h2 { font-size: 1rem; letter-spacing: .08em; margin-bottom: .5rem; }
.side-card p { color: var(--muted); font-size: .9rem; margin-bottom: .8rem; }

.reply-form { display: grid; gap: .8rem; }
.notice {
  padding: 1rem 1.2rem;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  color: var(--muted);
  background: rgba(9, 19, 34, .5);
}
.moderate { display: grid; gap: .7rem; border-color: rgba(255, 93, 108, .3); }
.moderate h2 { font-size: 1rem; letter-spacing: .08em; }
.moderate p { color: var(--muted); font-size: .85rem; }
.moderate-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- forms / auth ---------- */

.form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
  gap: clamp(1.2rem, 3vw, 2rem);
  padding-top: clamp(1.4rem, 3vw, 2.2rem);
  align-items: start;
}
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; font-size: .86rem; font-weight: 600; color: var(--muted); }
.field em { color: var(--muted-2); font-style: normal; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(5, 10, 20, .65);
  color: var(--text);
  font-weight: 400;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(5, 10, 20, .9);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.form-error {
  padding: .7rem .9rem;
  border: 1px solid rgba(255, 93, 108, .4);
  border-radius: var(--r-sm);
  background: rgba(255, 93, 108, .1);
  color: #ffc9ce;
  font-size: .88rem;
}
.form-aside h2 { font-size: 1rem; letter-spacing: .08em; margin-bottom: .6rem; }
.form-aside ol { margin: 0 0 .8rem; padding-left: 1.2rem; color: var(--muted); font-size: .88rem; }
.form-aside li { margin-bottom: .35rem; }

.auth-wrap {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .7fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  max-width: 1000px;
  margin-inline: auto;
  padding: clamp(2.4rem, 7vw, 5rem) var(--gutter);
}
.auth-visual { text-align: center; }
.auth-visual img {
  width: min(300px, 70%);
  margin-inline: auto;
  filter: drop-shadow(0 0 44px rgba(47, 140, 255, .35));
}
.auth-visual p { max-width: 34ch; margin: 1.2rem auto 0; color: var(--muted); font-size: .9rem; }
.auth-card h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .9rem; }
.auth-card .form { margin-top: 1.1rem; }
.auth-card .muted.small { display: block; margin-top: 1rem; }

.error-wrap { grid-template-columns: auto minmax(0, 520px); justify-content: center; }
.error-code {
  font-family: var(--display);
  font-size: clamp(5rem, 16vw, 11rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(124, 192, 255, .35);
  user-select: none;
}

/* ---------- admin ---------- */

.tag-ok { color: #a9f3cf; border-color: rgba(61, 220, 151, .35); }
.tag-lock { color: var(--muted-2); }

.admin-hero {
  padding: clamp(2.2rem, 5vw, 3.6rem) 0 clamp(1.2rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(70% 120% at 90% 0%, rgba(47, 140, 255, .10), transparent 62%),
    linear-gradient(180deg, rgba(13, 26, 45, .5), rgba(5, 10, 20, 0));
}
.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.admin-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .4rem; }
.admin-head .lead { max-width: 70ch; }
.admin-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 1.4rem; }
.admin-tab {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: .35rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: .84rem;
  font-weight: 600;
}
.admin-tab:hover { color: #fff; border-color: rgba(124, 192, 255, .4); }
.admin-tab.is-active { color: var(--btn-ink); background: var(--blue); border-color: var(--blue); }
.admin-body { padding-top: clamp(1.4rem, 3vw, 2.2rem); padding-bottom: clamp(2rem, 5vw, 3rem); display: grid; gap: 1rem; }

.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--line); }
.stat { padding: .9rem 1rem; background: var(--surface); display: grid; gap: .1rem; }
.stat span { color: var(--muted-2); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.stat b { font-family: var(--display); font-size: 1.7rem; line-height: 1; }

.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .62fr); gap: 1rem; align-items: start; }
.admin-side { display: grid; gap: 1rem; }
.admin-panel { padding: 1.1rem 1.2rem; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .7rem; }
.panel-head h2 { font-size: 1rem; letter-spacing: .08em; }
.panel-head .count { color: var(--blue-soft); font-family: var(--text-font); font-size: .8rem; letter-spacing: 0; }
.admin-help p { color: var(--muted); font-size: .88rem; margin-bottom: .9rem; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.table th {
  padding: .45rem .5rem;
  text-align: left;
  color: var(--muted-2);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: .6rem .5rem; border-bottom: 1px solid rgba(26, 43, 69, .6); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr.is-deleted { opacity: .55; }
.table a { color: var(--text); font-weight: 600; }
.table a:hover { color: var(--blue-soft); }
.table-sub { display: block; color: var(--muted-2); font-size: .74rem; margin-top: .1rem; }
.table-compact th, .table-compact td { padding: .45rem .3rem; }
.table-actions { display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; }
.table-actions form { margin: 0; }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; color: var(--muted); font-size: .8rem; }

.mini-btn {
  min-height: 30px;
  padding: .2rem .55rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.mini-btn:hover { color: #fff; border-color: rgba(124, 192, 255, .4); background: rgba(47, 140, 255, .08); }
.mini-btn.danger { color: var(--danger); border-color: rgba(255, 93, 108, .35); }
.mini-btn.danger:hover { background: rgba(255, 93, 108, .1); color: #ffd7db; }

.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: .8rem;
  flex-wrap: wrap;
  padding: .9rem 1rem;
}
.filter-bar .field { flex: 1 1 180px; }
.filter-bar .field input, .filter-bar .field select { min-height: 40px; padding: .4rem .6rem; }
.filter-actions { display: flex; gap: .4rem; flex-wrap: wrap; }

.audit { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.audit li { display: grid; gap: .1rem; padding-bottom: .55rem; border-bottom: 1px solid rgba(26, 43, 69, .6); font-size: .82rem; }
.audit li:last-child { border-bottom: 0; padding-bottom: 0; }
.audit strong { font-weight: 600; }
.audit span { color: var(--muted); }
.audit time { color: var(--muted-2); font-size: .72rem; }

.account-wrap {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(1rem, 3vw, 1.6rem);
  max-width: 1000px;
  margin-inline: auto;
  padding: clamp(2.4rem, 6vw, 4rem) var(--gutter);
  align-items: start;
}
.account-card h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .5rem; }
.account-card h2 { font-size: 1.25rem; margin-bottom: .8rem; }
.account-meta { display: grid; gap: .45rem; margin: 1.2rem 0; }
.account-meta > div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .45rem; border-bottom: 1px solid rgba(26, 43, 69, .6); }
.account-meta dt { color: var(--muted); font-size: .82rem; }
.account-meta dd { margin: 0; font-weight: 600; }
.form-notice {
  padding: .7rem .9rem;
  border: 1px solid rgba(61, 220, 151, .4);
  border-radius: var(--r-sm);
  background: rgba(61, 220, 151, .09);
  color: #b7f5d8;
  font-size: .88rem;
}

@media (max-width: 1020px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-side { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-side { grid-template-columns: 1fr; }
  .account-wrap { grid-template-columns: 1fr; }
  .filter-bar .field { flex: 1 1 100%; }
}

/* ---------- reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (min-width: 901px) and (max-width: 1120px) {
  .site-nav a { padding: .45rem .5rem; font-size: .84rem; }
  .site-nav a[href="#modes"], .site-nav a[href="#arenas"], .site-nav a[href="#rules"],
  .site-nav a[href="/#modes"], .site-nav a[href="/#arenas"], .site-nav a[href="/#rules"] { display: none; }
  .head-actions { gap: .5rem; }
  .brand-text { font-size: 1rem; letter-spacing: .1em; }
  .head-user { max-width: 76px; }
}

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; align-items: start; }
  .hero-side { max-width: 520px; }
  .mode-grid { grid-template-columns: 1fr 1fr; }
  .mode-card:last-child { grid-column: 1 / -1; }
  .forum-split, .connect-grid { grid-template-columns: 1fr; }
  .support-inner { grid-template-columns: auto 1fr; }
  .support-meta { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .topic-layout { grid-template-columns: 1fr; }
  .topic-side { position: static; grid-template-columns: 1fr 1fr; }
  .form-wrap { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual img { width: min(220px, 55%); }
  .error-wrap { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 900px) {
  :root { --head-h: 64px; }
  .site-nav {
    position: fixed;
    inset: var(--head-h) 0 auto;
    display: grid;
    gap: 0;
    padding: .6rem var(--gutter) 1rem;
    background: rgba(5, 10, 20, .97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .site-nav a { padding: .85rem .2rem; font-size: 1rem; border-bottom: 1px solid rgba(26, 43, 69, .6); }
  body.nav-open .site-nav { opacity: 1; transform: none; pointer-events: auto; }
  body.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.nav-open .burger span:nth-child(2) { opacity: 0; }
  body.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .burger { display: block; }
  .head-actions { margin-left: auto; }
  .head-actions .btn-sm { display: none; }
  .head-user { display: none; }
  .head-link { display: inline-block; font-size: .82rem; }
  .hero { min-height: 0; padding-top: 2.4rem; }
  .hero-bg::before { background-size: 56px 56px; mask-image: radial-gradient(100% 70% at 50% 0%, #000 0%, transparent 76%); }
  .hero-bg::after { bottom: 8%; opacity: .3; }
  .hero h1 { font-size: clamp(2.7rem, 14vw, 4.4rem); }
  .hero-mark { width: 56px; }
  .ip-box { gap: .5rem; }
  .ip-box .btn { margin-left: 0; width: 100%; }
  .ip-box code { font-size: .9rem; overflow-wrap: anywhere; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .mode-grid { grid-template-columns: 1fr; }
  .mode-card:last-child { grid-column: auto; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .arena-list li { grid-template-columns: 42px 1fr auto; gap: .4rem .7rem; padding: .9rem .2rem; }
  .arena-desc { grid-column: 2 / -1; }
  .arena-tag { grid-row: 1; grid-column: 3; }
  .steps li { grid-template-columns: 42px 1fr; padding: .9rem; }
  .step-num { width: 38px; height: 38px; font-size: 1rem; }
  .support-inner { grid-template-columns: 1fr; }
  .support-mark { width: 84px; }
  .support-meta { grid-template-columns: repeat(3, 1fr); }
  .support-copy .form-actions .btn { width: 100%; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
  .forum-head { align-items: flex-start; }
  .topic-row { grid-template-columns: 44px minmax(0, 1fr); gap: .7rem; }
  .topic-arrow { display: none; }
  .topic-votes { font-size: 1.1rem; }
  .field-row { grid-template-columns: 1fr; }
  .topic-side { grid-template-columns: 1fr; }
  .first-post, .reply { grid-template-columns: 1fr; }
  .avatar { display: none; }
  .complaint-card dl > div { grid-template-columns: 1fr; gap: .1rem; }
  .cta-card { align-items: flex-start; }
  .auth-wrap { padding-inline: var(--gutter); }
}

@media (max-width: 420px) {
  .hero-actions .btn { width: 100%; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .latest-head { flex-direction: column; gap: .2rem; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
