/* =============================================================
   GHOSTLY LEGION — style.css
   A supernatural military faction from another realm.
   Table of contents:
   1.  Reset & base
   2.  Design tokens
   3.  Typography
   4.  Layout utilities
   5.  Atmospheric background layers
   6.  Buttons & UI primitives
   7.  Loading screen
   8.  Header & navigation
   9.  Hero
   10. About
   11. Gaming
   12. Haunted dropzone panel
   13. Squad humor
   14. Community
   15. Movie night
   16. Events
   17. Discord
   18. FAQ
   19. Final CTA
   20. Footer
   21. 404 page
   22. Reveal / scroll animations
   23. Accessibility & reduced motion
   24. Responsive
   ============================================================= */

/* ---------- 1. Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input,
textarea {
  font: inherit;
}

/* ---------- 1b. Self-hosted fonts (no external CDN at runtime) ---------- */
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/cinzel-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/rajdhani-500.woff2") format("woff2");
}

@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/rajdhani-600.woff2") format("woff2");
}

@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/rajdhani-700.woff2") format("woff2");
}

/* ---------- 2. Design tokens ---------- */
:root {
  /* core palette */
  --void-black: #030405;
  --shadow: #07090c;
  --dark-charcoal: #0c1014;
  --gunmetal: #151a20;
  --ghost-white: #edf4f7;
  --spectral-gray: #a8b3bb;

  /* supernatural accents — cold moonlight glow (matches the logo artwork),
     not a saturated neon teal */
  --spectral-cyan: #9fd2ff;
  --spectral-cyan-alt: #e4f1ff;
  --blood-red: #ff3b42;
  --electric-blue: #5869ff;
  --spirit-purple: #a276ff;
  --muted-gold: #dcb85b;

  /* semantic */
  --bg: var(--void-black);
  --surface: var(--shadow);
  --surface-raised: var(--dark-charcoal);
  --border-color: rgba(168, 179, 187, 0.14);
  --text: var(--ghost-white);
  --text-muted: var(--spectral-gray);
  --accent: var(--spectral-cyan);
  --accent-soft: var(--spectral-cyan-alt);
  /* secondary accents, each with a deliberate purpose instead of one flat hue */
  --accent-danger: var(--blood-red);      /* Warzone / combat / alerts */
  --accent-legendary: var(--muted-gold);  /* crown, easter eggs, prestige */
  --accent-discord: var(--electric-blue); /* Discord network/terminal */
  --accent-cinema: var(--spirit-purple);  /* Movie Night */

  /* typography — two display faces for the dual identity (epic/gothic + tactical/HUD),
     self-hosted so there is zero runtime dependency on external font CDNs */
  --font-epic: "Cinzel", Georgia, "Times New Roman", serif;
  --font-tactical: "Rajdhani", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-tactical);
  --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* layout */
  --container-w: min(1200px, 92vw);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --space-section: clamp(4.5rem, 9vw, 9rem);

  /* motion */
  --ease-cinematic: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 220ms;
  --dur-medium: 480ms;
  --dur-slow: 900ms;

  color-scheme: dark;
}

/* ---------- 3. Typography ---------- */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.08;
  margin: 0 0 0.6em;
  color: var(--text);
}

h1, h2 {
  font-family: var(--font-epic);
  font-weight: 700;
  letter-spacing: 0.02em;
}

h3, h4 {
  font-family: var(--font-tactical);
  font-weight: 700;
}

p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
  display: inline-block;
}

.section-title {
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  text-shadow: 0 0 28px rgba(159, 210, 255, 0.12);
}

.section-lede {
  max-width: 62ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.lang-nl {
  font-style: normal;
}

.glow-text {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(159, 210, 255, 0.55), 0 0 42px rgba(159, 210, 255, 0.25);
}

.text-center {
  text-align: center;
}

.sr-only,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. Layout utilities ---------- */
.container {
  width: var(--container-w);
  margin-inline: auto;
}

section {
  position: relative;
  padding-block: var(--space-section);
  scroll-margin-top: 84px;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ---------- 5. Atmospheric background layers ---------- */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.atmosphere__grain {
  position: absolute;
  inset: -10%;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 9s steps(6) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-2%, 2%); }
  40%  { transform: translate(2%, -1%); }
  60%  { transform: translate(-1%, -2%); }
  80%  { transform: translate(1%, 1%); }
  100% { transform: translate(0, 0); }
}

.atmosphere__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(159, 210, 255, 0.05), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(3, 4, 5, 0.9), transparent 60%),
    linear-gradient(180deg, rgba(3, 4, 5, 0.65), rgba(3, 4, 5, 0.1) 18%, rgba(3, 4, 5, 0.1) 80%, rgba(3, 4, 5, 0.9));
}

.atmosphere__scanlines {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background: repeating-linear-gradient(
    0deg,
    rgba(237, 244, 247, 0.6) 0px,
    rgba(237, 244, 247, 0.6) 1px,
    transparent 1px,
    transparent 3px
  );
}

.fog-layer {
  position: absolute;
  left: -20%;
  width: 140%;
  height: 60vh;
  background: radial-gradient(ellipse at center, rgba(159, 210, 255, 0.08), transparent 70%);
  filter: blur(40px);
  opacity: 0.5;
  will-change: transform;
}

.fog-layer--one {
  top: -10vh;
  animation: fog-drift-a 70s linear infinite;
}

.fog-layer--two {
  top: 35vh;
  background: radial-gradient(ellipse at center, rgba(159, 210, 255, 0.07), transparent 72%);
  animation: fog-drift-b 95s linear infinite;
}

.fog-layer--three {
  top: 75vh;
  background: radial-gradient(ellipse at center, rgba(162, 118, 255, 0.06), transparent 72%);
  animation: fog-drift-a 120s linear infinite reverse;
}

@keyframes fog-drift-a {
  0%   { transform: translateX(-6%) translateY(0); }
  50%  { transform: translateX(6%) translateY(2%); }
  100% { transform: translateX(-6%) translateY(0); }
}

@keyframes fog-drift-b {
  0%   { transform: translateX(8%) translateY(-1%); }
  50%  { transform: translateX(-8%) translateY(1%); }
  100% { transform: translateX(8%) translateY(-1%); }
}

.particle-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  bottom: -5%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--spectral-cyan);
  opacity: 0;
  box-shadow: 0 0 8px 2px rgba(159, 210, 255, 0.6);
  animation-name: particle-rise;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes particle-rise {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.6);
  }
  8% {
    opacity: 0.8;
  }
  92% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translate(var(--drift, 40px), -105vh) scale(1);
  }
}

.spirit-glimpse {
  position: absolute;
  width: min(32vw, 360px);
  aspect-ratio: 1 / 2;
  left: var(--gx, 70%);
  top: var(--gy, 20%);
  background: radial-gradient(ellipse 50% 42% at 50% 30%, rgba(237, 244, 247, 0.16), transparent 70%),
    radial-gradient(ellipse 70% 60% at 50% 75%, rgba(159, 210, 255, 0.08), transparent 75%);
  filter: blur(6px);
  opacity: 0;
  animation: spirit-fade 26s ease-in-out infinite;
  animation-delay: var(--delay, 4s);
}

@keyframes spirit-fade {
  0%, 92%, 100% { opacity: 0; transform: translateY(0) scale(0.96); }
  95% { opacity: 0.22; transform: translateY(-6px) scale(1); }
}

.pointer-glow {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--px, 50%) var(--py, 50%), rgba(159, 210, 255, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity var(--dur-medium) var(--ease-cinematic);
}

.pointer-glow.is-active {
  opacity: 1;
}

/* ---------- 6. Buttons & UI primitives ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.9em;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-cinematic),
    box-shadow var(--dur-fast) var(--ease-cinematic),
    background-color var(--dur-fast) var(--ease-cinematic),
    border-color var(--dur-fast) var(--ease-cinematic);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--spectral-cyan), var(--spectral-cyan-alt));
  color: var(--void-black);
  box-shadow: 0 0 0 0 rgba(159, 210, 255, 0.0);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 0 28px rgba(159, 210, 255, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(237, 244, 247, 0.03);
  color: var(--text);
  border-color: rgba(168, 179, 187, 0.35);
  backdrop-filter: blur(6px);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: rgba(159, 210, 255, 0.4);
  padding: 0.8em 1.6em;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(159, 210, 255, 0.08);
}

:focus-visible {
  outline: 2px solid var(--spectral-cyan);
  outline-offset: 3px;
}

.hud-tag {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--spectral-gray);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0.35em 0.9em;
  background: rgba(21, 26, 32, 0.5);
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  white-space: nowrap;
}

.hud-tag__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--spectral-cyan);
  box-shadow: 0 0 8px 1px rgba(159, 210, 255, 0.8);
  animation: dot-pulse 2.4s ease-in-out infinite;
}

.hud-tag--danger {
  color: var(--accent-danger);
  border-color: rgba(255, 59, 66, 0.4);
}

.hud-tag--danger .hud-tag__dot {
  background: var(--accent-danger);
  box-shadow: 0 0 8px 1px rgba(255, 59, 66, 0.8);
}

@keyframes dot-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.hud-tag--spectral {
  color: var(--accent);
  border-color: rgba(159, 210, 255, 0.4);
}

.hud-tag--spectral .hud-tag__dot {
  animation: dot-pulse 1.6s ease-in-out infinite;
}

.hud-tag__dot--blink {
  animation: dot-blink 3.4s steps(1, end) infinite;
}

@keyframes dot-blink {
  0%, 19%, 24%, 41%, 46%, 100% { opacity: 1; }
  20%, 23%, 42%, 45% { opacity: 0.15; }
}

/* Decorative "live signal" treatment for HUD tags: a faint flicker plus a
   light sweep crossing the tag, so status text reads as an active transmission
   rather than static decoration. */
.hud-tag--glitch {
  position: relative;
  overflow: hidden;
  animation: hud-flicker 6s ease-in-out infinite;
  animation-delay: var(--glitch-delay, 0s);
}

.hud-tag--glitch::after {
  content: "";
  position: absolute;
  inset: 0;
  left: -60%;
  width: 55%;
  background: linear-gradient(100deg, transparent, rgba(237, 244, 247, 0.16), transparent);
  animation: hud-scan 5.5s ease-in-out infinite;
  animation-delay: var(--glitch-delay, 0s);
  pointer-events: none;
}

@keyframes hud-flicker {
  0%, 85%, 100% { opacity: 1; }
  87% { opacity: 0.45; }
  89% { opacity: 1; }
  91% { opacity: 0.6; }
  93% { opacity: 1; }
}

@keyframes hud-scan {
  0% { left: -60%; }
  35% { left: 120%; }
  100% { left: 120%; }
}

.card {
  position: relative;
  padding: clamp(1.6rem, 2.6vw, 2.2rem);
  background: linear-gradient(165deg, rgba(21, 26, 32, 0.65), rgba(7, 9, 12, 0.75));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur-medium) var(--ease-cinematic),
    border-color var(--dur-medium) var(--ease-cinematic),
    box-shadow var(--dur-medium) var(--ease-cinematic);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at 20% 0%, rgba(159, 210, 255, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-medium) var(--ease-cinematic);
}

.card:hover,
.card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(159, 210, 255, 0.35);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}

.card:hover::before,
.card:focus-within::before {
  opacity: 1;
}

.card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(159, 210, 255, 0.35);
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5em;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- 7. Loading screen ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 42%, rgba(159, 210, 255, 0.1), transparent 60%),
    var(--void-black);
  transition: opacity 420ms var(--ease-cinematic), visibility 420ms var(--ease-cinematic);
}

.loader[hidden] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
}

.loader__emblem-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  margin-bottom: 0.3rem;
  animation: loader-emblem-in 640ms var(--ease-cinematic) both;
}

@keyframes loader-emblem-in {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

.loader__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(159, 210, 255, 0.4);
  animation: loader-ring-ping 2.2s ease-out infinite;
}

.loader__ring--two {
  animation-delay: 1.1s;
}

@keyframes loader-ring-ping {
  0% { transform: scale(0.72); opacity: 0.8; }
  80%, 100% { transform: scale(1.35); opacity: 0; }
}

.loader__emblem {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(159, 210, 255, 0.5);
  filter: drop-shadow(0 0 22px rgba(159, 210, 255, 0.55));
  animation: loader-pulse 1.8s ease-in-out infinite;
}

@keyframes loader-pulse {
  0%, 100% { opacity: 0.85; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1.03); }
}

.loader__brand {
  font-family: var(--font-epic);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 24px rgba(159, 210, 255, 0.35);
  margin: 0;
  animation: loader-emblem-in 640ms var(--ease-cinematic) 120ms both;
}

.loader__status {
  display: flex;
  align-items: center;
  gap: 0.15em;
  font-family: var(--font-tactical);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--spectral-gray);
  min-height: 1.4em;
  margin: 0;
}

.loader__status.is-found {
  color: var(--accent);
  text-shadow: 0 0 16px rgba(159, 210, 255, 0.5);
}

.loader__cursor {
  display: inline-block;
  width: 0.5em;
  height: 1em;
  margin-left: 0.1em;
  background: currentColor;
  animation: loader-cursor-blink 0.9s steps(1, end) infinite;
}

@keyframes loader-cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.loader__bar {
  position: relative;
  width: 220px;
  height: 3px;
  background: rgba(168, 179, 187, 0.18);
  overflow: hidden;
  border-radius: 3px;
}

.loader__bar-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--spectral-cyan-alt), var(--spectral-cyan));
  box-shadow: 0 0 12px rgba(159, 210, 255, 0.6);
  animation: loader-fill 1000ms var(--ease-cinematic) forwards;
}

@keyframes loader-fill {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ---------- 8. Header & navigation ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding-block: 1.1rem;
  transition: background-color var(--dur-medium) var(--ease-cinematic),
    border-color var(--dur-medium) var(--ease-cinematic),
    padding var(--dur-medium) var(--ease-cinematic);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(3, 4, 5, 0.82);
  backdrop-filter: blur(14px);
  border-color: var(--border-color);
  padding-block: 0.7rem;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-epic);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.brand__mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(159, 210, 255, 0.35);
}

.brand__fallback {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(159, 210, 255, 0.5);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: var(--accent);
  background: radial-gradient(circle at 50% 30%, rgba(159, 210, 255, 0.2), transparent 70%);
}

.brand__name span {
  display: block;
  font-size: 0.6em;
  color: var(--spectral-gray);
  letter-spacing: 0.3em;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2.1rem);
}

.nav-primary a {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-block: 0.3em;
  transition: color var(--dur-fast) var(--ease-cinematic);
}

.nav-primary a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1px;
  background: var(--accent);
  transition: width var(--dur-fast) var(--ease-cinematic);
}

.nav-primary a:hover,
.nav-primary a:focus-visible,
.nav-primary a.is-active {
  color: var(--text);
}

.nav-primary a:hover::after,
.nav-primary a:focus-visible::after,
.nav-primary a.is-active::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* The nav's own Discord CTA is only revealed inside the mobile off-canvas menu;
   on desktop the header__actions CTA (right side) is the single visible button. */
.nav-primary .btn-primary {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-sm);
}

.nav-toggle__bar {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform var(--dur-fast) var(--ease-cinematic),
    opacity var(--dur-fast) var(--ease-cinematic);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav-primary {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 82vw);
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 6rem 2.2rem 2.2rem;
    background: rgba(7, 9, 12, 0.98);
    border-left: 1px solid var(--border-color);
    transform: translateX(100%);
    transition: transform var(--dur-medium) var(--ease-cinematic);
  }

  .nav-primary.is-open {
    transform: translateX(0);
  }

  .nav-primary a {
    font-size: 0.95rem;
  }

  .header__actions .btn-primary {
    display: none;
  }

  .nav-primary .btn-primary {
    display: inline-flex;
    margin-top: 1rem;
  }
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 4, 5, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-medium) var(--ease-cinematic);
}

.nav-scrim.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- 9. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  overflow: hidden;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 20%, rgba(159, 210, 255, 0.1), transparent 60%),
    radial-gradient(ellipse 80% 60% at 20% 90%, rgba(162, 118, 255, 0.08), transparent 60%),
    linear-gradient(180deg, var(--void-black) 0%, var(--shadow) 45%, var(--void-black) 100%);
}

.hero__backdrop.has-image {
  background-image:
    radial-gradient(ellipse 60% 50% at 50% 10%, rgba(159, 210, 255, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(3, 4, 5, 0.55) 0%, rgba(3, 4, 5, 0.75) 55%, rgba(3, 4, 5, 0.97) 100%),
    var(--hero-img);
  background-size: cover;
  background-position: center 30%;
}

.hero__silhouette {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: min(38vw, 460px);
  opacity: 0.9;
  filter: drop-shadow(0 0 40px rgba(159, 210, 255, 0.25));
}

.hero__content {
  position: relative;
  max-width: 760px;
  z-index: 1;
}

.hero__status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.hero__title {
  font-size: clamp(2.8rem, 9vw, 6.4rem);
  margin-bottom: 0.3em;
}

.hero__title span {
  display: block;
}

.hero__title .ghostly {
  color: var(--text);
}

.hero__title .legion {
  color: var(--accent);
  text-shadow: 0 0 36px rgba(159, 210, 255, 0.45), 0 0 90px rgba(159, 210, 255, 0.2);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero__title .legion {
    background: linear-gradient(95deg, var(--spectral-cyan-alt) 0%, var(--spectral-cyan) 38%, var(--spectral-cyan) 58%, var(--blood-red) 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: -18px 0 40px rgba(159, 210, 255, 0.4), 18px 2px 46px rgba(255, 59, 66, 0.4);
  }
}

.hero__slogan {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--spectral-gray);
  margin-bottom: 1.6rem;
}

.hero__headline {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--text);
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 600;
  margin-bottom: 1.1rem;
  font-family: var(--font-body);
}

.hero__intro {
  max-width: 54ch;
  font-size: 1.02rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero__scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2.4rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--spectral-gray);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero__scroll-cue span {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scroll-cue 2.4s ease-in-out infinite;
}

@keyframes scroll-cue {
  0% { transform: scaleY(0.2); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.2); transform-origin: bottom; opacity: 0.4; }
}

/* ---------- 10. About ---------- */
.pillars {
  margin-top: 1rem;
}

.pillar-card {
  text-align: left;
}

.pillar-card__index {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
}

/* ---------- 11. Gaming ---------- */
.gaming__intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.gaming__focus {
  font-family: var(--font-tactical);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.06em;
}

@media (max-width: 860px) {
  .gaming__intro {
    grid-template-columns: 1fr;
  }
}

/* ---------- 12. Haunted dropzone panel ---------- */
.dropzone {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.6rem, 5vw, 4rem);
  border: 1px solid rgba(255, 59, 66, 0.22);
  background:
    radial-gradient(ellipse 70% 60% at 80% 0%, rgba(255, 59, 66, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 100%, rgba(159, 210, 255, 0.08), transparent 60%),
    linear-gradient(160deg, var(--gunmetal), var(--void-black) 70%);
}

.dropzone.has-image {
  background-image:
    linear-gradient(160deg, rgba(3, 4, 5, 0.55), rgba(3, 4, 5, 0.92)),
    var(--dropzone-img);
  background-size: cover;
  background-position: center;
}

.dropzone__title {
  font-family: var(--font-epic);
}

.dropzone__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.dropzone__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  max-width: 16ch;
}

.dropzone__text {
  max-width: 56ch;
}

/* ---------- 13. Squad humor ---------- */
.rules-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  counter-reset: rule;
}

.rules-list li {
  position: relative;
  padding: 1.1rem 1.3rem 1.1rem 3rem;
  background: rgba(21, 26, 32, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.96rem;
}

.rules-list li::before {
  counter-increment: rule;
  content: counter(rule, decimal-leading-zero);
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

@media (max-width: 700px) {
  .rules-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- 14. Community ---------- */
.community {
  position: relative;
}

.community__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(159, 210, 255, 0.07), transparent 65%);
}

.community__bg.has-image {
  background-image:
    linear-gradient(180deg, rgba(3, 4, 5, 0.85), rgba(3, 4, 5, 0.96)),
    var(--community-img);
  background-size: cover;
  background-position: center;
}

/* ---------- 15. Movie night ---------- */
.movie-night {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  border: 1px solid rgba(162, 118, 255, 0.25);
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(162, 118, 255, 0.18), transparent 65%),
    linear-gradient(180deg, var(--dark-charcoal), var(--void-black));
}

.movie-night.has-image {
  background-image:
    linear-gradient(180deg, rgba(3, 4, 5, 0.6), rgba(3, 4, 5, 0.94)),
    var(--movie-img);
  background-size: cover;
  background-position: center;
}

.movie-night__beam {
  position: absolute;
  top: -10%;
  left: 50%;
  width: 46%;
  height: 120%;
  transform: translateX(-50%) rotate(4deg);
  background: linear-gradient(180deg, rgba(237, 244, 247, 0.08), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

.movie-night__eyebrow {
  color: var(--spirit-purple);
}

.movie-night__title {
  font-family: var(--font-epic);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--spirit-purple);
  text-shadow: 0 0 30px rgba(162, 118, 255, 0.4);
}

.movie-night__lines {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 1rem;
}

/* ---------- 16. Events ---------- */
.events-grid {
  grid-template-columns: repeat(3, 1fr);
}

.event-chip {
  padding: 1.4rem 1.2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: rgba(21, 26, 32, 0.35);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-muted);
  transition: border-color var(--dur-fast), color var(--dur-fast);
}

.event-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 860px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
}

.events__empty {
  margin-top: 2.5rem;
  padding: 2rem;
  text-align: center;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
}

.events__empty strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  color: var(--blood-red);
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

/* ---------- 17. Discord ---------- */
.discord {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .discord {
    grid-template-columns: 1fr;
  }
}

.discord__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin: 1.6rem 0 2rem;
}

.discord__features li {
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.discord__features li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-discord);
  box-shadow: 0 0 8px rgba(88, 105, 255, 0.7);
}

.discord-terminal {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(88, 105, 255, 0.35);
  background: linear-gradient(165deg, rgba(21, 26, 32, 0.8), rgba(3, 4, 5, 0.95));
  padding: 1.8rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.discord-terminal--live::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -70%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(237, 244, 247, 0.06), transparent);
  animation: hud-scan 7s ease-in-out infinite;
  pointer-events: none;
}

.discord-terminal__bar {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.discord-terminal__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(168, 179, 187, 0.3);
}

.discord-terminal__title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-discord);
  margin-bottom: 1.3rem;
}

.discord-terminal__row {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding-block: 0.6rem;
  border-top: 1px solid var(--border-color);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.discord-terminal__row span:first-child {
  color: var(--text-muted);
}

.discord-terminal__row span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  color: var(--text);
}

.discord-terminal__row span:last-child::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.discord-terminal__row span.is-online {
  color: #3ddc84;
}

.discord-terminal__row span.is-online::before {
  animation: dot-pulse 2s ease-in-out infinite;
}

.discord-terminal__row span.is-open {
  color: var(--accent-danger);
}

.discord-terminal__row span.is-open::before {
  animation: dot-pulse 3.2s ease-in-out infinite;
}

.discord-terminal .btn {
  width: 100%;
  margin-top: 1.4rem;
}

/* ---------- 18. FAQ ---------- */
.faq-list {
  max-width: 780px;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0.2rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform var(--dur-fast) var(--ease-cinematic);
}

.faq-item__icon::before {
  width: 14px;
  height: 2px;
}

.faq-item__icon::after {
  width: 2px;
  height: 14px;
}

.faq-item__question[aria-expanded="true"] .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg) scale(0);
}

.faq-item__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur-medium) var(--ease-cinematic);
}

.faq-item__panel-inner {
  padding: 0 0.2rem 1.4rem;
}

.faq-item__panel-inner p {
  margin: 0;
}

/* ---------- 19. Final CTA ---------- */
.final-cta {
  position: relative;
  text-align: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 3rem);
  background:
    radial-gradient(ellipse 80% 70% at 50% 100%, rgba(159, 210, 255, 0.12), transparent 65%),
    linear-gradient(180deg, var(--shadow), var(--void-black));
}

.final-cta__spirits {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.final-cta__emblem {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.4rem;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(220, 184, 91, 0.45);
  opacity: 0.95;
  filter: drop-shadow(0 0 16px rgba(220, 184, 91, 0.55));
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-cinematic);
}

.final-cta__emblem:hover,
.final-cta__emblem:focus-visible {
  transform: scale(1.08);
}

.final-cta__content {
  position: relative;
  z-index: 1;
}

.final-cta__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.final-cta__sub {
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.final-cta__tags {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--spectral-gray);
}

/* ---------- 20. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding-block: 3rem 2rem;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 1.8rem;
}

.site-footer__nav a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--dur-fast);
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  color: var(--accent);
}

.site-footer__bottom {
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.78rem;
  color: var(--spectral-gray);
}

.site-footer__legal {
  max-width: 760px;
  font-size: 0.76rem;
  line-height: 1.6;
}

.site-footer__legal p {
  margin: 0 0 0.4em;
  color: var(--spectral-gray);
}

/* ---------- 21. 404 page ---------- */
.not-found {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 6rem 1.5rem;
}

.not-found__code {
  font-family: var(--font-epic);
  font-size: clamp(5rem, 18vw, 11rem);
  color: var(--accent);
  text-shadow: 0 0 50px rgba(159, 210, 255, 0.4);
  margin-bottom: 0.2em;
}

.not-found__title {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
}

.not-found__text {
  max-width: 48ch;
  margin-inline: auto;
}

.not-found__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.not-found__hud {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

/* ---------- 22. Reveal / scroll animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur-slow) var(--ease-cinematic),
    transform var(--dur-slow) var(--ease-cinematic);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur-slow) var(--ease-cinematic),
    transform var(--dur-slow) var(--ease-cinematic);
}

.reveal-stagger.in-view > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 90ms; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 180ms; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 270ms; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 360ms; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 450ms; }

.ghost-wisp-burst {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
}

.ghost-wisp-burst.is-active {
  opacity: 1;
  animation: wisp-burst-fade 3.2s ease-in-out forwards;
}

@keyframes wisp-burst-fade {
  0% { opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; }
}

.entry-ghost {
  position: fixed;
  right: 6%;
  bottom: 6vh;
  width: min(22vw, 200px);
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 22px rgba(159, 210, 255, 0.55));
  transform: translateY(40px) scale(0.86);
  will-change: transform, opacity, filter;
}

.entry-ghost.is-active {
  animation: entry-ghost-rise 4.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes entry-ghost-rise {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.84);
    filter: blur(1.5px) drop-shadow(0 0 14px rgba(159, 210, 255, 0.3));
  }
  16% {
    opacity: 0.95;
    transform: translateY(0) scale(1);
    filter: blur(0px) drop-shadow(0 0 26px rgba(159, 210, 255, 0.6));
  }
  65% {
    opacity: 0.75;
    transform: translateY(-120px) scale(1.04);
    filter: blur(0.5px) drop-shadow(0 0 22px rgba(159, 210, 255, 0.5));
  }
  100% {
    opacity: 0;
    transform: translateY(-240px) scale(1.12);
    filter: blur(5px) drop-shadow(0 0 10px rgba(159, 210, 255, 0.2));
  }
}

.toast-stack {
  position: fixed;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: min(420px, 92vw);
}

.toast {
  background: rgba(12, 16, 20, 0.95);
  border: 1px solid rgba(159, 210, 255, 0.35);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  animation: toast-in 260ms var(--ease-cinematic);
}

.toast.is-leaving {
  animation: toast-out 260ms var(--ease-cinematic) forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(12px); }
}

.easter-egg-banner {
  position: fixed;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  z-index: 400;
  background: var(--void-black);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform var(--dur-medium) var(--ease-cinematic);
  box-shadow: 0 0 30px rgba(159, 210, 255, 0.4);
}

.easter-egg-banner--legendary {
  border-color: var(--accent-legendary);
  color: var(--accent-legendary);
  box-shadow: 0 0 30px rgba(220, 184, 91, 0.45);
}

.easter-egg-banner.is-visible {
  transform: translateX(-50%) translateY(0);
}

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

  .fog-layer,
  .particle,
  .spirit-glimpse,
  .atmosphere__grain {
    animation: none !important;
    opacity: 0.12;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---------- 24. Responsive helpers ---------- */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  :root {
    font-size: 15px;
  }

  .hero {
    padding-top: 6.2rem;
  }

  .hero__silhouette {
    display: none;
  }
}
