@charset "UTF-8";

@font-face {
  font-family: "The Jjester";
  src: url("./fonts/TheJjester.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("./fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("./fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --obsidian: #161925;
  --obsidian-deep: #0f111a;
  --slate: #262a3a;
  --azure: #3f84e5;
  --azure-soft: #6ca4f2;
  --amber: #f09e39;
  --amber-gold: #f6e6b7;
  --cinnamon: #af6347;
  --malachite: #2e8b63;
  --brass: #c89b54;
  --bronze: #91744e;
  --alabaster: #dfe0e2;
  --paper: #ecebe6;
  --mist: #a4acc0;
  --font-display: "The Jjester", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--alabaster);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 10px 16px;
  background: var(--amber);
  color: var(--obsidian);
  font-weight: 700;
  border-radius: 4px;
  z-index: 100;
}

.skip:focus {
  top: 12px;
}

.shell {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Forged Bronze Sticky Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(22, 25, 37, 0.96) 0%, rgba(16, 18, 28, 0.94) 100%);
  border-bottom: 2px solid #6d553a;
  box-shadow:
    inset 0 -1px 0 rgba(246, 230, 183, 0.2),
    0 10px 28px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  display: block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(63, 132, 229, 0.4));
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  color: var(--alabaster);
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  transition: color 0.18s ease;
}

.brand-lockup:hover .brand-wordmark,
.brand-wordmark:hover {
  color: var(--amber-gold);
}

@keyframes flWispBreathe {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

.fl-wisp-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: flWispBreathe 3.8s ease-in-out infinite;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mist);
}

.main-nav a:hover {
  color: var(--amber-gold);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dev-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(200, 155, 84, 0.35);
  background: rgba(38, 42, 58, 0.65);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-gold);
}

.dev-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(240, 158, 57, 0.85);
}

/* ---------- MMORPG Forged Bronze Primitives (Brand Guide §8) ---------- */
.mmorpg-window {
  position: relative;
  background:
    radial-gradient(circle at 50% 0%, rgba(176, 138, 92, 0.12), transparent 62%),
    linear-gradient(180deg, #25201b 0%, #191613 55%, #141210 100%);
  border: 2px solid var(--bronze);
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(246, 230, 183, 0.45),
    inset 0 0 0 2px #32271d,
    inset 0 0 0 4px #120e0b,
    inset 0 0 24px rgba(0, 0, 0, 0.65),
    0 16px 36px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.mmorpg-window::before,
.mmorpg-window::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle at 35% 35%, #f6e6b7 0%, #9b7748 65%, #3d2c19 100%);
  border: 1px solid #24190e;
  transform: rotate(45deg);
  z-index: 4;
  pointer-events: none;
}

.mmorpg-window::before {
  bottom: 7px;
  left: 7px;
}

.mmorpg-window::after {
  bottom: 7px;
  right: 7px;
}

.mmorpg-titlebar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #5c4b39 0%, #3e3226 42%, #282018 100%);
  border-bottom: 2px solid #846946;
  box-shadow:
    inset 0 1px 0 rgba(246, 230, 183, 0.48),
    inset 0 -1px 0 #16110c,
    0 3px 10px rgba(0, 0, 0, 0.5);
}

.mmorpg-titlebar-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--amber-gold);
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.92);
}

.mmorpg-stud {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: linear-gradient(135deg, #fff1c2 0%, #c89b54 55%, #5b401e 100%);
  border: 1px solid #2b1e10;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.mmorpg-titlebar-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #d2c1a4;
  text-transform: uppercase;
}

.mmorpg-window-body {
  padding: 26px 26px 28px;
  position: relative;
}

.mmorpg-divider {
  height: 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(320px, 75%);
  margin: 18px auto 0;
}

.mmorpg-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #6d553a 18%,
    #c89b54 44%,
    transparent 47%,
    transparent 53%,
    #c89b54 56%,
    #6d553a 82%,
    transparent 100%
  );
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

.mmorpg-divider-emblem {
  position: relative;
  z-index: 2;
  width: 24px;
  height: 24px;
  display: block;
  filter: drop-shadow(0 0 6px rgba(63, 132, 229, 0.45));
}

.mmorpg-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  min-height: 48px;
  border-radius: 5px;
  border: 2px solid #9f7f50;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff8e8;
  text-shadow: 0 1.5px 2px rgba(0, 0, 0, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 243, 210, 0.48),
    inset 0 -2px 5px rgba(0, 0, 0, 0.52),
    inset 0 0 0 2px rgba(24, 18, 12, 0.72),
    0 5px 14px rgba(0, 0, 0, 0.54);
  transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.18s ease, filter 0.18s ease;
  overflow: hidden;
  isolation: isolate;
}

.mmorpg-btn::before {
  content: "";
  position: absolute;
  inset: 2px 2px 50% 2px;
  border-radius: 2px 2px 8px 8px;
  background: linear-gradient(180deg, rgba(255, 250, 236, 0.24) 0%, rgba(255, 250, 236, 0.02) 100%);
  pointer-events: none;
  z-index: 1;
}

.mmorpg-btn::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -8px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 210, 118, 0.78) 0%, rgba(240, 158, 57, 0) 72%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 1;
}

.mmorpg-btn-sm {
  padding: 8px 16px;
  min-height: 36px;
  font-size: 11.5px;
}

.mmorpg-btn-primary {
  background: linear-gradient(180deg, #c68432 0%, #8e5618 52%, #63380c 100%);
  border-color: #d9b067;
}

.mmorpg-btn-arcane {
  background: linear-gradient(180deg, #3c7dd1 0%, #24569b 52%, #16396b 100%);
  border-color: #8ba5c4;
}

.mmorpg-btn-neutral {
  background: linear-gradient(180deg, #5e4d3c 0%, #3f3327 52%, #292119 100%);
  border-color: #967a54;
}

.mmorpg-btn:hover:not(.is-disabled) {
  border-color: #f6d57a;
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 214, 0.65),
    inset 0 -10px 16px rgba(255, 198, 92, 0.24),
    inset 0 0 0 2px rgba(246, 213, 122, 0.3),
    0 8px 20px rgba(0, 0, 0, 0.64),
    0 0 16px rgba(240, 158, 57, 0.26);
}

.mmorpg-btn:hover:not(.is-disabled)::after {
  opacity: 1;
}

.mmorpg-btn:active:not(.is-disabled) {
  transform: translateY(1.5px);
  filter: brightness(0.95);
}

.mmorpg-btn.is-disabled {
  background: linear-gradient(180deg, #3c3a39 0%, #2a2827 52%, #1d1c1b 100%);
  border-color: #5b5752;
  color: #97928a;
  cursor: default;
}

/* ---------- Hero Section (Vista & Layered Parallax Ready) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(640px, 84vh, 840px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 88px 0 96px;
  overflow: hidden;
  border-bottom: 2px solid #59442e;
  background:
    radial-gradient(ellipse 80% 60% at 50% 35%, #232940 0%, #161925 65%, #0f111a 100%);
}

.hero-backdrop {
  position: absolute;
  inset: -32px;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hero-media-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero-layer-pattern {
  position: absolute;
  inset: -24px;
  will-change: transform;
}

.hero-layer-pattern--rozetka {
  background-image: url("./patterns/slavic-rozetka.svg");
  background-size: 168px 168px;
  opacity: 0.15;
}

.hero-layer-pattern--lattice {
  background-image: url("./patterns/wisp-blackstone-lattice.svg");
  background-size: 132px 132px;
  opacity: 0.12;
  mask-image: radial-gradient(ellipse 78% 68% at 72% 45%, #000 0%, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse 78% 68% at 72% 45%, #000 0%, transparent 74%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.hero-glow--azure {
  width: 480px;
  height: 480px;
  right: 8%;
  top: 14%;
  background: radial-gradient(circle, rgba(63, 132, 229, 0.28) 0%, rgba(63, 132, 229, 0) 70%);
}

.hero-glow--amber {
  width: 440px;
  height: 440px;
  left: 10%;
  bottom: 10%;
  background: radial-gradient(circle, rgba(240, 158, 57, 0.2) 0%, rgba(175, 99, 71, 0.08) 45%, transparent 72%);
}

.hero-motes {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.mote {
  position: absolute;
  border-radius: 50%;
}

.mote--amber {
  width: 5px;
  height: 5px;
  background: var(--amber);
  box-shadow: 0 0 14px 4px rgba(240, 158, 57, 0.55);
}

.mote--azure {
  width: 6px;
  height: 6px;
  background: var(--azure-soft);
  box-shadow: 0 0 18px 5px rgba(63, 132, 229, 0.65);
}

.mote--1 { left: 16%; top: 28%; }
.mote--2 { right: 20%; top: 30%; }
.mote--3 { right: 32%; bottom: 26%; width: 4px; height: 4px; }
.mote--4 { left: 26%; bottom: 24%; width: 4px; height: 4px; }
.mote--5 { right: 14%; bottom: 38%; }

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 68% 64% at 50% 48%, rgba(22, 25, 37, 0.45) 0%, rgba(15, 17, 26, 0.84) 100%),
    linear-gradient(180deg, rgba(15, 17, 26, 0.5) 0%, rgba(15, 17, 26, 0.15) 45%, rgba(15, 17, 26, 0.88) 100%);
}

.hero-content {
  text-align: center;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(72px, 11vw, 124px);
  line-height: 0.96;
  color: var(--alabaster);
  text-shadow:
    0 6px 28px rgba(0, 0, 0, 0.8),
    0 0 42px rgba(63, 132, 229, 0.18);
}

.hero-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(300px, 76%);
  margin: 18px 0 22px;
}

.hero-rule-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), var(--brass));
}

.hero-rule-line:last-child {
  background: linear-gradient(90deg, var(--brass), var(--amber), transparent);
}

.hero-rule-emblem {
  display: block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(63, 132, 229, 0.5));
}

.hero-subtitle {
  margin: 0 0 34px;
  max-width: 650px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
  color: #e4e7ee;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72);
}

/* Dynamic Tagline Word Flipper (Brand Guide v1.4 §1) */
.role-flip-slot {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  position: relative;
  vertical-align: baseline;
  perspective: 420px;
  color: var(--amber);
  font-weight: 700;
  border-bottom: 1.5px dashed rgba(240, 158, 57, 0.55);
  padding: 0 2px 1px;
  cursor: pointer;
  user-select: none;
  transition: width 0.34s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease;
}

.role-flip-slot:hover {
  border-bottom-color: var(--amber);
}

.role-flip-word {
  display: inline-block;
  white-space: nowrap;
  transform-origin: 50% 60%;
  will-change: transform, opacity;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}

.role-flip-word.flip-out {
  transform: rotateX(72deg) translateY(-34%);
  opacity: 0;
}

.role-flip-word.flip-in {
  transform: rotateX(-72deg) translateY(34%);
  opacity: 0;
  transition: none;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-note {
  margin: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  width: 100%;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}

.hero-scroll-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--amber-gold);
}

.hero-scroll-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Official Channels Strip (Right Under Hero) ---------- */
.social-strip {
  background: linear-gradient(180deg, #121520 0%, #161925 100%);
  border-bottom: 2px solid #59442e;
  box-shadow: inset 0 -1px 0 rgba(246, 230, 183, 0.16);
  padding: 24px 0;
}

.social-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Pillars Section (3-Column Desktop, Vertical Mobile) ---------- */
.pillars-section {
  padding: 88px 0 100px;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(38, 42, 58, 0.55) 0%, transparent 70%),
    var(--obsidian);
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 52px);
  line-height: 1.08;
  color: var(--alabaster);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.pillar-card {
  display: flex;
  flex-direction: column;
}

.pillar-card--azure {
  border-top-color: #4f8de6;
}

.pillar-card--malachite {
  border-top-color: #3e9e74;
}

.pillar-card--amber {
  border-top-color: #d99b44;
}

.pillar-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 22px 26px;
}

.pillar-card-body p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--mist);
}

.pillar-card-body p:last-child {
  margin-bottom: 0;
}

.pillar-media {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 220px;
  width: 100%;
  overflow: hidden;
  background: var(--obsidian-deep);
  border-bottom: 1px solid rgba(145, 116, 78, 0.4);
}

.pillar-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pillar-media--pattern {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-media--pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  opacity: 0.46;
}

.pattern--lattice {
  background:
    radial-gradient(circle at 50% 45%, rgba(63, 132, 229, 0.24) 0%, rgba(22, 25, 37, 0.94) 72%);
}

.pattern--lattice::before {
  background-image: url("./patterns/wisp-blackstone-lattice.svg");
  background-size: 96px 96px;
}

.pattern--astrolabe {
  background:
    radial-gradient(circle at 50% 45%, rgba(46, 139, 99, 0.24) 0%, rgba(22, 27, 34, 0.94) 74%);
}

.pattern--astrolabe::before {
  background-image: url("./patterns/clockwork-astrolabe.svg");
  background-size: 124px 124px;
}

.pattern--rozetka {
  background:
    radial-gradient(circle at 50% 45%, rgba(240, 158, 57, 0.22) 0%, rgba(28, 23, 22, 0.94) 74%);
}

.pattern--rozetka::before {
  background-image: url("./patterns/slavic-rozetka.svg");
  background-size: 128px 128px;
}

.pillar-pattern-sheen {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 25%, rgba(15, 17, 26, 0.72) 100%);
}

.pillar-pattern-plaque {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 26px;
  background: rgba(22, 25, 37, 0.84);
  border: 1.5px solid rgba(200, 155, 84, 0.55);
  border-radius: 4px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

.pillar-plaque-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--amber);
}

.pillar-plaque-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--alabaster);
}

.pillar-kicker {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--amber);
}

.pillar-kicker--azure {
  color: var(--azure-soft);
}

.pillar-kicker--malachite {
  color: #6de3a6;
}

.pillar-kicker--amber {
  color: var(--amber);
}

.pillar-heading {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: clamp(19px, 1.8vw, 22px);
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.015em;
  color: var(--alabaster);
}

.pillar-copy p:not(.pillar-kicker) {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--mist);
}

.pillar-copy p:last-child {
  margin-bottom: 0;
}

/* ---------- Warm Parchment Community Band (Brand Guide §8) ---------- */
.community-section {
  position: relative;
  padding: 96px 0 104px;
  background: var(--paper);
  color: var(--obsidian);
  border-top: 3px solid var(--bronze);
  border-bottom: 3px solid var(--bronze);
}

.eyebrow--light {
  color: #8c5210;
}

.section-title--light {
  color: var(--obsidian);
}

.section-lead--light {
  margin: 14px auto 0;
  max-width: 580px;
  font-size: 16px;
  color: #3a4052;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

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

.community-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: calc(100% - 42px);
}

.community-card-body h3 {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  color: var(--alabaster);
}

.community-card-body p {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--mist);
  flex: 1;
}

/* ---------- Footer (Groundcover Games Attribution + Icon Links) ---------- */
.site-footer {
  background: var(--obsidian-deep);
  padding: 48px 0 54px;
  color: var(--mist);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.brand-wordmark--footer {
  font-size: 30px;
  display: inline-block;
  margin-bottom: 8px;
}

.footer-credit,
.footer-meta {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--mist);
}

.footer-meta a {
  color: var(--alabaster);
}

.footer-meta a:hover {
  color: var(--amber-gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 5px;
  border: 1.5px solid #6b5539;
  background: linear-gradient(180deg, #27221c 0%, #171412 100%);
  color: var(--alabaster);
  box-shadow:
    inset 0 1px 0 rgba(246, 230, 183, 0.28),
    0 3px 10px rgba(0, 0, 0, 0.45);
  transition: border-color 0.16s ease, color 0.16s ease, transform 0.14s ease, box-shadow 0.18s ease;
}

.social-icon-link:hover {
  border-color: var(--amber);
  color: var(--amber-gold);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(246, 230, 183, 0.45),
    0 6px 14px rgba(0, 0, 0, 0.55),
    0 0 12px rgba(240, 158, 57, 0.22);
}

/* ---------- Fallback / 404 Pages ---------- */
.fallback-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 0;
}

.fallback-card {
  width: min(520px, 100%);
}

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

.fallback-body h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 46px;
  color: var(--alabaster);
}

.fallback-body p {
  margin: 0 0 18px;
  color: var(--mist);
}

.fallback-back {
  font-size: 14px;
  color: var(--amber-gold);
}

.fallback-back:hover {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .pillar-grid,
  .community-grid,
  .community-grid--three {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 720px) {
  .shell {
    width: calc(100% - 32px);
  }

  .header-inner {
    min-height: 68px;
  }

  .dev-pill {
    display: none;
  }

  .main-nav {
    gap: 18px;
    font-size: 13px;
  }

  .hero {
    padding: 68px 0 88px;
    min-height: 600px;
  }

  .hero-scroll {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 10px;
  }

  .pillars-section,
  .community-section {
    padding: 68px 0 76px;
  }

  .pillar-list {
    gap: 48px;
  }
}

@media (max-width: 480px) {
  .nav-cta {
    display: none;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .mmorpg-btn {
    width: 100%;
  }

  .eyebrow {
    font-size: 10.5px;
    letter-spacing: 0.11em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .mmorpg-btn,
  .social-icon-link,
  .role-flip-slot,
  .role-flip-word {
    transition: none !important;
    transform: none !important;
  }

  .fl-wisp-pulse {
    animation: none !important;
  }
}

@media print {
  .site-header,
  .hero-backdrop,
  .hero-scroll {
    display: none;
  }

  body,
  .pillars-section,
  .community-section,
  .site-footer {
    background: #fff;
    color: #000;
  }

  .mmorpg-window {
    box-shadow: none;
    background: #fff;
    color: #000;
    border-color: #333;
  }
}
