:root {
  --bg-dark: #141711;
  --bg-mid: #20251b;
  --bg-soft: #2b3023;
  --panel: rgba(38, 43, 32, .97);
  --panel-2: rgba(27, 32, 25, .98);
  --panel-light: rgba(151, 193, 87, .1);
  --line: rgba(183, 153, 103, .3);
  --line-strong: rgba(169, 205, 105, .52);
  --text: #f1ead9;
  --muted: #c0b59b;
  --accent: #a2c85d;
  --accent-deep: #6f963b;
  --accent-soft: #d0dfa0;
  --green: #a2c85d;
  --green-deep: #6f963b;
  --danger: #e18a70;
  --shadow: 4px 4px 0 rgba(0, 0, 0, .38), 0 16px 34px rgba(0, 0, 0, .25);
  --radius-xl: 10px;
  --radius-lg: 7px;
  --radius-md: 5px;
  --radius-sm: 3px;
  --max-width: 1220px;
  --pixel-shadow: 4px 4px 0 rgba(0, 0, 0, .34);
}

html { scroll-behavior: smooth; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 50% -14%, rgba(133, 158, 76, .14), transparent 72%),
    repeating-linear-gradient(0deg, rgba(223, 209, 177, .018) 0 1px, transparent 1px 32px),
    linear-gradient(180deg, #1d261b 0 12%, #171a14 12%, #211c15 72%, #171a14);
}
body::before { display: block; opacity: .13; background-image: linear-gradient(rgba(229, 217, 187, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(229, 217, 187, .14) 1px, transparent 1px); background-size: 32px 32px; mix-blend-mode: normal; }
body::after, .floating-icon-layer, .halloween-fx, .halloween-banner,
.halloween-event-card, .haunt-gate, .jumpscare-overlay, .halloween-fall,
.halloween-moon, .halloween-fog, .cobweb, .blood-drip, .blood-vignette,
.ground-mist, .lightning, .spooky-face, .spooky-sub, .spooky-blink { display: none !important; }

.auth-screen { padding: clamp(24px, 6vh, 60px) 18px; }
.auth-layout { align-items: stretch; }
.panel, .status-panel, .age-gate-modal__panel {
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(57, 61, 44, .98), rgba(31, 36, 28, .99));
  box-shadow: var(--pixel-shadow), 0 14px 28px rgba(0, 0, 0, .2);
}
.panel::before { opacity: .42; background: linear-gradient(135deg, rgba(202, 171, 111, .1), transparent 45%); }
.auth-panel, .application-panel { padding: clamp(22px, 3vw, 36px); }
.eyebrow { color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3 { font-family: inherit; letter-spacing: -.035em; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 2rem); }
.lead { color: #d0c6ad; }
.topbar { border-bottom: 2px solid var(--line); background: rgba(23, 28, 21, .92); }
.topnav a { color: var(--muted); }
.topnav a:hover { color: var(--accent); }
.hero-header { border-bottom: 2px solid var(--line); background: linear-gradient(180deg, rgba(131, 158, 72, .12), transparent 72%); }
.header-content { padding-top: clamp(36px, 6vw, 76px); padding-bottom: clamp(38px, 6vw, 72px); }
.hero-brand-wrap .logo { image-rendering: pixelated; border-radius: 5px; box-shadow: 4px 4px 0 rgba(0, 0, 0, .38), 0 0 0 2px var(--line); }
.hero-header h1 { color: #f4f9f8; text-shadow: none; }
.server-chip, .info-card, .status-pill, .stats-tile, .note-card, .info-row,
.player-card, .highlight-card, .live-chat-row, .announcement-banner {
  border-color: var(--line);
  background-color: rgba(22, 26, 19, .72);
  box-shadow: inset 0 2px 0 rgba(236, 219, 179, .04), 2px 2px 0 rgba(0, 0, 0, .2);
}
.server-chip strong, .info-card strong, .stats-tile strong { color: #eef8f5; }
.btn, button, input, select, textarea { font-family: inherit; }
.btn { border-radius: 4px; box-shadow: 2px 3px 0 rgba(0, 0, 0, .34); }
.btn.primary, button:not(.secondary) { border: 2px solid rgba(205, 220, 148, .3); border-radius: 4px; background: linear-gradient(180deg, #9bbd58, #6f943d); color: #11190b; box-shadow: 0 3px 0 #455c2c; }
.btn.primary:hover, button:not(.secondary):hover { filter: brightness(1.07); }
.btn.secondary, button.secondary { border: 2px solid var(--line); border-radius: 4px; background: linear-gradient(180deg, #514a38, #38372c); color: var(--text); box-shadow: 0 3px 0 #24251f; }
.btn.secondary:hover, button.secondary:hover { border-color: var(--line-strong); color: var(--accent-soft); }
input, select, textarea, .field input, .field select, .field textarea { border: 2px solid var(--line); border-radius: 4px; background: #171b14; color: var(--text); }
input:focus, select:focus, textarea:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(162, 200, 93, .2); border-color: var(--accent); box-shadow: none; }
input::placeholder, textarea::placeholder { color: #988f79; }
.site-footer { color: var(--muted); border-top-color: var(--line); }
.status-fill { background: linear-gradient(90deg, #6d913b, #b3ce68); }
.status-dot.online { background: var(--accent); box-shadow: 0 0 0 3px rgba(162, 200, 93, .16); }
.map-frame { border: 2px solid var(--line); border-radius: 5px; box-shadow: 4px 4px 0 rgba(0, 0, 0, .3); }
.inline-server-icon { border-radius: 4px; image-rendering: pixelated; box-shadow: 2px 2px 0 rgba(0, 0, 0, .35); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid rgba(162, 200, 93, .55); outline-offset: 3px; }

@media (max-width: 760px) {
  .auth-screen { padding: 20px 12px 40px; }
  .topbar { flex-wrap: wrap; }
  .topnav { order: 3; width: 100%; overflow-x: auto; margin: 0; }
  .header-content { padding-inline: 18px; }
  .server-chip-row { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
