/* ============================================
   TALES OF ARCANIA — Premium Fantasy RPG
   ============================================ */

:root {
  --black: #060608;
  --obsidian: #0c0c10;
  --stone: #141418;
  --stone-light: #1c1c24;
  --emerald: #0d4a3a;
  --emerald-bright: #1a7a5e;
  --cyan: #0a3d4a;
  --cyan-bright: #1a8a9e;
  --gold: #8a6b2a;
  --gold-bright: #c9a84c;
  --arcane: #4a6cf7;
  --purple: #7c3aed;
  --purple-glow: rgba(124, 58, 237, 0.4);
  --arcane-glow: rgba(74, 108, 247, 0.35);
  --gold-glow: rgba(201, 168, 76, 0.3);
  --text: #e8e6e3;
  --text-muted: #8a8890;
  --text-dim: #5a5860;
  --glass: rgba(12, 12, 16, 0.65);
  --glass-border: rgba(255, 255, 255, 0.06);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'Cinzel', serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-serif: 'Instrument Serif', serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --nav-height: 80px;
  --container: min(1280px, 92vw);
}

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

html {
  font-size: 16px;
  scroll-behavior: auto;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

body.no-cursor {
  cursor: auto;
}

body.no-cursor .cursor {
  display: none;
}

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

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

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0;
}

.section-header {
  margin-bottom: clamp(48px, 8vw, 96px);
  max-width: 720px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
}

.section-desc {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
}

/* ---- NOISE ---- */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ---- LOADER ---- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

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

.loader__inner {
  text-align: center;
}

.loader__rune {
  width: 40px;
  height: 40px;
  margin: 0 auto 2rem;
  border: 1px solid var(--gold-bright);
  transform: rotate(45deg);
  animation: loaderRune 2s var(--ease-in-out) infinite;
  opacity: 0.6;
}

.loader__rune--2 { animation-delay: 0.3s; width: 28px; height: 28px; margin-top: -3rem; }
.loader__rune--3 { animation-delay: 0.6s; width: 16px; height: 16px; margin-top: -2.2rem; }

@keyframes loaderRune {
  0%, 100% { transform: rotate(45deg) scale(1); opacity: 0.4; }
  50% { transform: rotate(225deg) scale(1.2); opacity: 1; }
}

.loader__text {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.loader__bar {
  width: 200px;
  height: 2px;
  background: var(--stone-light);
  margin: 0 auto 0.5rem;
  overflow: hidden;
  border-radius: 2px;
}

.loader__progress {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--purple), var(--arcane), var(--gold-bright));
  will-change: transform;
}

.loader__percent {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ---- CURSOR ---- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  mix-blend-mode: difference;
  will-change: transform;
}

.cursor__dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease;
}

.cursor__ring {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease-out-expo), height 0.4s var(--ease-out-expo), border-color 0.3s;
}

.cursor.is-hover .cursor__ring {
  width: 60px;
  height: 60px;
  border-color: var(--gold-bright);
}

.cursor.is-click .cursor__dot {
  transform: translate(-50%, -50%) scale(0.5);
}

/* ---- HUD ---- */
.hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
}

.hud__corner {
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: rgba(201, 168, 76, 0.15);
  border-style: solid;
  border-width: 0;
}

.hud__corner--tl { top: 24px; left: 24px; border-top-width: 1px; border-left-width: 1px; }
.hud__corner--tr { top: 24px; right: 24px; border-top-width: 1px; border-right-width: 1px; }
.hud__corner--bl { bottom: 24px; left: 24px; border-bottom-width: 1px; border-left-width: 1px; }
.hud__corner--br { bottom: 24px; right: 24px; border-bottom-width: 1px; border-right-width: 1px; }

.hud__scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  opacity: 0.5;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--nav-height);
  transition: background 0.3s ease;
}

.nav.is-scrolled {
  background: rgba(10, 10, 12, 0.92);
  border-bottom: 1px solid var(--glass-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
}

.nav__logo-mark {
  color: var(--gold-bright);
  font-size: 1.25rem;
}

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
  letter-spacing: 0.02em;
}

.nav__link:hover {
  color: var(--text);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav__mobile {
  position: fixed;
  inset: 0;
  top: var(--nav-height);
  background: var(--obsidian);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
  z-index: 499;
}

.nav__mobile.is-open {
  opacity: 1;
  visibility: visible;
}

.nav__mobile a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.nav__mobile a:hover {
  color: var(--gold-bright);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 100px;
  transition: background 0.4s, color 0.4s, box-shadow 0.4s, transform 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn--sm { padding: 0.625rem 1.25rem; font-size: 0.8125rem; }
.btn--lg { padding: 1rem 2rem; font-size: 0.9375rem; }

.btn--primary {
  background: linear-gradient(135deg, var(--purple), var(--arcane));
  color: #fff;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.25);
}

.btn--primary:hover {
  box-shadow: 0 4px 20px rgba(74, 108, 247, 0.3);
  transform: translate3d(0, -2px, 0);
}

.btn--ghost {
  background: rgba(12, 12, 16, 0.8);
  border: 1px solid var(--glass-border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(201, 168, 76, 0.3);
  background: rgba(201, 168, 76, 0.08);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__fog {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at 50% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 50%, rgba(26, 138, 158, 0.06) 0%, transparent 50%),
              linear-gradient(180deg, transparent 60%, var(--black) 100%);
  pointer-events: none;
}

.hero__stars {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 70%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 80%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,0.35) 0%, transparent 100%);
  pointer-events: none;
  animation: starTwinkle 8s ease-in-out infinite alternate;
}

@keyframes starTwinkle {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.hero__content {
  position: relative;
  z-index: 10;
  padding-top: var(--nav-height);
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.hero__title-line {
  display: block;
  font-size: clamp(3.5rem, 10vw, 8rem);
  letter-spacing: -0.03em;
}

.hero__title-line--accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--text) 0%, var(--gold-bright) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero__scroll-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-bright), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleX(0.5); transform-origin: left; }
  50% { opacity: 1; transform: scaleX(1); }
}

.hero__stats {
  position: absolute;
  bottom: 3rem;
  right: max(4vw, calc((100vw - var(--container)) / 2));
  z-index: 10;
  display: flex;
  gap: 3rem;
}

.hero__stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--gold-bright);
}

.hero__stat-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---- WORLD ---- */
.world {
  background: var(--obsidian);
  overflow: hidden;
}

.world__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.world__layer {
  position: absolute;
  inset: -20%;
  transform: translate3d(0, 0, 0);
}

.world__layer--1 {
  background: radial-gradient(ellipse at 30% 50%, rgba(13, 74, 58, 0.15) 0%, transparent 50%);
}

.world__layer--2 {
  background: radial-gradient(ellipse at 70% 30%, rgba(124, 58, 237, 0.08) 0%, transparent 40%);
}

.world__layer--3 {
  background: radial-gradient(ellipse at 50% 80%, rgba(10, 61, 74, 0.12) 0%, transparent 45%);
}

.world__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.world__card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--stone);
  border: 1px solid var(--glass-border);
  transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s;
}

.world__card:hover {
  transform: translate3d(0, -8px, 0);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.world__card-visual {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.world__card-visual--kingdom {
  background: linear-gradient(160deg, #1a2a4a 0%, #0d1525 40%, #2a1a3a 100%);
}
.world__card-visual--kingdom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: linear-gradient(180deg, transparent, rgba(201, 168, 76, 0.1));
  clip-path: polygon(20% 100%, 0% 40%, 15% 40%, 15% 20%, 25% 20%, 25% 0%, 35% 0%, 35% 15%, 45% 15%, 45% 0%, 55% 0%, 55% 15%, 65% 15%, 65% 0%, 75% 0%, 75% 20%, 85% 20%, 85% 40%, 100% 40%, 80% 100%);
}

.world__card-visual--forest {
  background: linear-gradient(180deg, #0a1a0a 0%, #0d2a1a 50%, #051005 100%);
}
.world__card-visual--forest::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(26, 122, 94, 0.3) 0%, transparent 60%);
}

.world__card-visual--ruins {
  background: linear-gradient(180deg, #1a1a2e 0%, #2a1a4a 50%, #0a0a15 100%);
}
.world__card-visual--ruins::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 30%;
  width: 40%;
  height: 50%;
  background: radial-gradient(circle, rgba(74, 108, 247, 0.4) 0%, transparent 70%);
  animation: ruinsGlow 4s ease-in-out infinite alternate;
}

.world__card-visual--depths {
  background: linear-gradient(180deg, #0a0510 0%, #150a20 50%, #050208 100%);
}
.world__card-visual--depths::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 80%, rgba(124, 58, 237, 0.25) 0%, transparent 50%);
}

@keyframes ruinsGlow {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.1); }
}

.world__card-content {
  padding: 1.75rem;
}

.world__card-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.world__card-content p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.world__quote {
  margin-top: 4rem;
  text-align: center;
  padding: 3rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: rgba(12, 12, 16, 0.85);
}

.world__quote blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.world__quote cite {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-bright);
  letter-spacing: 0.1em;
  font-style: normal;
}

/* ---- FEATURES ---- */
.features {
  background: var(--black);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature-card {
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: var(--stone);
  border: 1px solid var(--glass-border);
  transition: transform 0.5s var(--ease-out-expo), border-color 0.4s, box-shadow 0.5s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(124, 58, 237, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  transform: translate3d(0, -4px, 0);
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--gold-bright);
}

.feature-card__icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- DUNGEONS ---- */
.dungeons {
  background: var(--obsidian);
  overflow: hidden;
  padding-bottom: 0;
}

.dungeons__track-wrapper {
  overflow: hidden;
  padding-left: max(4vw, calc((100vw - var(--container)) / 2));
}

.dungeons__track {
  display: flex;
  gap: 2rem;
  padding-right: 4vw;
  padding-bottom: 4rem;
  transform: translate3d(0, 0, 0);
}

.dungeon-card {
  flex: 0 0 clamp(340px, 40vw, 480px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--stone);
  border: 1px solid var(--glass-border);
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s;
}

.dungeon-card:hover {
  transform: scale(1.01);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.dungeon-card__visual {
  height: 260px;
  position: relative;
}

.dungeon-card__visual--1 { background: linear-gradient(135deg, #1a1020 0%, #2a1530 50%, #0a0510 100%); }
.dungeon-card__visual--2 { background: linear-gradient(135deg, #2a1005 0%, #4a2010 50%, #1a0800 100%); }
.dungeon-card__visual--3 { background: linear-gradient(135deg, #0a1520 0%, #152a40 50%, #050a15 100%); }
.dungeon-card__visual--4 { background: linear-gradient(135deg, #051505 0%, #0a2a10 50%, #020802 100%); }
.dungeon-card__visual--5 { background: linear-gradient(135deg, #100520 0%, #200840 50%, #050210 100%); }

.dungeon-card__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%);
}

.dungeon-card__content {
  padding: 1.75rem;
}

.dungeon-card__diff {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.dungeon-card__diff--normal { background: rgba(26, 122, 94, 0.2); color: var(--emerald-bright); }
.dungeon-card__diff--hard { background: rgba(201, 168, 76, 0.15); color: var(--gold-bright); }
.dungeon-card__diff--mythic { background: rgba(124, 58, 237, 0.2); color: #a78bfa; }

.dungeon-card h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}

.dungeon-card__story {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.dungeon-card__meta {
  font-size: 0.8125rem;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dungeon-card__meta strong {
  color: var(--text-muted);
}

.dungeons__progress {
  padding-bottom: 3rem;
}

.dungeons__progress-bar {
  height: 2px;
  background: var(--stone-light);
  border-radius: 2px;
  overflow: hidden;
}

.dungeons__progress-bar span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--purple), var(--arcane));
  will-change: transform;
}

/* ---- BOSSES ---- */
.bosses {
  background: var(--black);
}

.bosses__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.boss-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--stone);
  border: 1px solid var(--glass-border);
  transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s;
}

.boss-card:hover {
  transform: translate3d(0, -8px, 0);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.boss-card__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(124, 58, 237, 0.6) 0%, transparent 100%),
    radial-gradient(2px 2px at 60% 70%, rgba(74, 108, 247, 0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 20%, rgba(201, 168, 76, 0.4) 0%, transparent 100%);
  animation: bossParticles 3s ease-in-out infinite;
}

.boss-card:hover .boss-card__particles {
  opacity: 1;
}

@keyframes bossParticles {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.boss-card__visual {
  height: 280px;
  position: relative;
}

.boss-card__visual--1 { background: linear-gradient(180deg, #0a1520 0%, #152535 40%, #0a1015 100%); }
.boss-card__visual--2 { background: linear-gradient(180deg, #1a1520 0%, #2a2040 40%, #100a15 100%); }
.boss-card__visual--3 { background: linear-gradient(180deg, #051005 0%, #0a2010 40%, #020502 100%); }

.boss-card__visual::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 70%;
  background: radial-gradient(ellipse at 50% 100%, rgba(124, 58, 237, 0.3) 0%, transparent 70%);
}

.boss-card__content {
  padding: 1.75rem;
  position: relative;
  z-index: 3;
}

.boss-card__tier {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.boss-card h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  margin: 0.5rem 0 0.75rem;
}

.boss-card__lore {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.boss-card__abilities {
  list-style: none;
  margin-bottom: 1.25rem;
}

.boss-card__abilities li {
  font-size: 0.8125rem;
  color: var(--text-dim);
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--glass-border);
  font-family: var(--font-mono);
}

.boss-card__abilities li::before {
  content: '◆ ';
  color: var(--purple);
  font-size: 0.5rem;
}

.boss-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

.boss-card__diff {
  color: var(--gold-bright);
  letter-spacing: 0.1em;
}

.boss-card__drops {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}

/* ---- RPG ---- */
.rpg {
  background: var(--obsidian);
}

.rpg__timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 4rem;
}

.rpg__line {
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--stone-light);
}

.rpg__line-progress {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top center;
  background: linear-gradient(180deg, var(--purple), var(--arcane));
  will-change: transform;
}

.rpg__step {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  padding-left: 0;
  position: relative;
}

.rpg__step-marker {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 50%;
  background: var(--stone);
  border: 2px solid var(--stone-light);
  color: var(--text-dim);
  transition: border-color 0.4s, color 0.4s, box-shadow 0.4s;
  z-index: 2;
}

.rpg__step.is-active .rpg__step-marker {
  border-color: var(--purple);
  color: var(--gold-bright);
}

.rpg__step-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.rpg__step-content p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.rpg__step-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.rpg__step-stats span {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  padding: 0.375rem 0.75rem;
  background: var(--stone);
  border-radius: 100px;
  color: var(--text-dim);
}

.rpg__classes {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--stone);
  border: 1px solid var(--glass-border);
}

.rpg__classes-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.rpg__class-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.rpg__class-tab {
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 100px;
  background: var(--obsidian);
  color: var(--text-muted);
  transition: background 0.3s, color 0.3s;
}

.rpg__class-tab.active,
.rpg__class-tab:hover {
  background: linear-gradient(135deg, var(--purple), var(--arcane));
  color: #fff;
}

.rpg__class-panel {
  display: none;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  animation: fadeIn 0.4s ease;
}

.rpg__class-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- COSMETICS ---- */
.cosmetics {
  position: relative;
  background: var(--black);
  overflow: hidden;
}

.cosmetics__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(124, 58, 237, 0.06) 0%, transparent 60%);
}

.cosmetics__showcase {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.cosmetics__orb {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
}

.cosmetics__orb-inner {
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.6), rgba(74, 108, 247, 0.3) 50%, transparent 70%);
  animation: orbPulse 4s ease-in-out infinite;
}

.cosmetics__orb-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 50%;
  animation: orbSpin 20s linear infinite;
}

.cosmetics__orb-ring::before {
  content: '✦';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-bright);
  font-size: 0.875rem;
}

.cosmetics__orb-particles {
  position: absolute;
  inset: -20%;
  background-image:
    radial-gradient(2px 2px at 30% 20%, rgba(201, 168, 76, 0.5) 0%, transparent 100%),
    radial-gradient(2px 2px at 70% 60%, rgba(124, 58, 237, 0.4) 0%, transparent 100%);
  animation: orbParticles 6s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

@keyframes orbSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbParticles {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

.cosmetics__items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.cosmetic-item {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--stone);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out-expo);
}

.cosmetic-item:hover {
  transform: translateY(-4px);
}

.cosmetic-item__glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cosmetic-item__glow--gold { background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%); }
.cosmetic-item__glow--cyan { background: radial-gradient(circle, rgba(26, 138, 158, 0.25) 0%, transparent 70%); }
.cosmetic-item__glow--emerald { background: radial-gradient(circle, rgba(26, 122, 94, 0.25) 0%, transparent 70%); }

.cosmetic-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.cosmetic-item p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
  position: relative;
}

/* ---- QUESTS ---- */
.quests {
  background: var(--obsidian);
}

.quest-map {
  position: relative;
  height: 500px;
  border-radius: var(--radius-lg);
  background: var(--stone);
  border: 1px solid var(--glass-border);
  overflow: hidden;
}

.quest-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(13, 74, 58, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(124, 58, 237, 0.1) 0%, transparent 40%),
    linear-gradient(180deg, var(--obsidian) 0%, var(--stone) 100%);
}

.quest-map__connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.quest-map__path {
  fill: none;
  stroke: rgba(201, 168, 76, 0.15);
  stroke-width: 2;
  stroke-dasharray: 8 4;
}

.quest-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  transition: transform 0.3s var(--ease-out-expo);
}

.quest-node:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.quest-node__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--stone-light);
  border: 2px solid var(--text-dim);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.quest-node.active .quest-node__dot,
.quest-node:hover .quest-node__dot {
  background: var(--purple);
  border-color: var(--gold-bright);
}

.quest-node__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.3s;
}

.quest-node.active .quest-node__label {
  color: var(--gold-bright);
}

.quest-detail {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  padding: 1.5rem;
  background: rgba(12, 12, 16, 0.92);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  z-index: 3;
}

.quest-detail h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.quest-detail p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.quest-detail__reward {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--gold-bright);
  letter-spacing: 0.05em;
}

/* ---- GALLERY ---- */
.gallery {
  background: var(--black);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: none;
  transition: transform 0.5s var(--ease-out-expo);
}

.gallery__item:hover {
  transform: scale(1.02);
  z-index: 2;
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item--tall {
  grid-row: span 2;
}

.gallery__img {
  width: 100%;
  height: 100%;
  transition: transform 0.6s var(--ease-out-expo);
}

.gallery__item:hover .gallery__img {
  transform: scale(1.05);
}

.gallery__img--1 { background: linear-gradient(135deg, #1a2a4a, #0d1525); }
.gallery__img--2 { background: linear-gradient(135deg, #2a1a4a, #150a25); }
.gallery__img--3 { background: linear-gradient(135deg, #0a2a1a, #051005); }
.gallery__img--4 { background: linear-gradient(135deg, #0a1520, #152535); }
.gallery__img--5 { background: linear-gradient(135deg, #100520, #200840); }
.gallery__img--6 { background: linear-gradient(135deg, #1a1520, #2a2040); }
.gallery__img--7 { background: linear-gradient(135deg, #2a1005, #1a0800); }
.gallery__img--8 { background: linear-gradient(135deg, #1a2a1a, #0a150a); }

.gallery__item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  font-size: 0.8125rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.8));
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out-expo);
}

.gallery__item:hover figcaption {
  transform: translateY(0);
}

/* ---- LIGHTBOX ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(6, 6, 8, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2rem;
  color: var(--text-muted);
  z-index: 2;
  transition: color 0.3s;
}

.lightbox__close:hover {
  color: var(--text);
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: var(--text-muted);
  z-index: 2;
  padding: 1rem;
  transition: color 0.3s;
}

.lightbox__prev { left: 2rem; }
.lightbox__next { right: 2rem; }

.lightbox__prev:hover,
.lightbox__next:hover {
  color: var(--gold-bright);
}

.lightbox__content {
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}

.lightbox__img {
  width: min(900px, 85vw);
  height: min(500px, 60vh);
  border-radius: var(--radius-lg);
  margin: 0 auto 1rem;
  transition: opacity 0.4s;
}

.lightbox__caption {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-muted);
}

/* ---- COMMUNITY ---- */
.community {
  background: var(--obsidian);
}

.community__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.community__stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-block {
  padding: 2rem;
  text-align: center;
  border-radius: var(--radius);
  background: var(--stone);
  border: 1px solid var(--glass-border);
}

.stat-block__value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--gold-bright);
  margin-bottom: 0.25rem;
}

.stat-block__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.discord-widget {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--stone);
  border: 1px solid var(--glass-border);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.discord-widget__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: #5865F2;
}

.discord-widget p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.server-map {
  position: relative;
  height: 100%;
  min-height: 280px;
  border-radius: var(--radius-lg);
  background: var(--stone);
  border: 1px solid var(--glass-border);
  overflow: hidden;
}

.server-map__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.server-map__pin {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--purple);
}

.server-map__pin--1 { top: 30%; left: 25%; }
.server-map__pin--2 { top: 50%; left: 45%; }
.server-map__pin--3 { top: 25%; left: 65%; }
.server-map__pin--4 { top: 65%; left: 55%; }

.server-map__label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* ---- FAQ ---- */
.faq {
  background: var(--black);
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
}

.faq__item summary {
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  cursor: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--gold-bright);
  transition: transform 0.4s var(--ease-out-expo);
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item summary:hover {
  color: var(--gold-bright);
}

.faq__answer {
  padding-bottom: 1.5rem;
  animation: faqOpen 0.4s var(--ease-out-expo);
}

.faq__answer p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq__answer code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--gold-bright);
  background: var(--stone);
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
}

@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- JOIN ---- */
.join {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--obsidian);
}

.join__particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(124, 58, 237, 0.4) 0%, transparent 100%),
    radial-gradient(2px 2px at 50% 50%, rgba(74, 108, 247, 0.3) 0%, transparent 100%),
    radial-gradient(2px 2px at 80% 70%, rgba(201, 168, 76, 0.3) 0%, transparent 100%);
  animation: joinParticles 10s ease-in-out infinite;
}

@keyframes joinParticles {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.join__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  animation: joinGlow 6s ease-in-out infinite alternate;
}

@keyframes joinGlow {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.join__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.join__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.join__title em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-bright);
}

.join__desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.join__ip {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(12, 12, 16, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  margin-bottom: 2rem;
}

.join__ip code {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--gold-bright);
  letter-spacing: 0.05em;
}

.join__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- FOOTER ---- */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--glass-border);
  background: var(--black);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-bright);
}

.footer__brand p {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

.footer__links {
  display: flex;
  gap: 2rem;
}

.footer__links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer__links a:hover {
  color: var(--text);
}

/* ---- MODAL ---- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, 0.94);
}

.modal__content {
  position: relative;
  width: min(900px, 92vw);
  z-index: 2;
}

.modal__close {
  position: absolute;
  top: -3rem;
  right: 0;
  font-size: 2rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.modal__close:hover {
  color: var(--text);
}

.modal__video {
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--stone);
  border: 1px solid var(--glass-border);
}

.modal__placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.modal__placeholder p {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.modal__placeholder span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---- REVEAL ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.split-text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .split-text .char {
    opacity: 1;
    transform: none;
  }

  html.lenis, html.lenis body {
    scroll-behavior: auto;
  }
}

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

  .bosses__grid {
    grid-template-columns: 1fr;
  }

  .cosmetics__showcase {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  .cursor {
    display: none;
  }

  button, .faq__item summary, .gallery__item {
    cursor: pointer;
  }

  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .hero__stats {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 2rem;
    gap: 1.5rem;
  }

  .world__grid {
    grid-template-columns: 1fr;
  }

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

  .community__grid {
    grid-template-columns: 1fr;
  }

  .hud__corner {
    width: 24px;
    height: 24px;
  }

  .hud__corner--tl, .hud__corner--tr { top: 12px; }
  .hud__corner--tl, .hud__corner--bl { left: 12px; }
  .hud__corner--tr, .hud__corner--br { right: 12px; }
  .hud__corner--bl, .hud__corner--br { bottom: 12px; }

  .quest-map {
    height: 400px;
  }

  .quest-node__label {
    display: none;
  }
}

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

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .community__stats {
    grid-template-columns: 1fr;
  }

  .cosmetics__items {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 180px;
  }

  .gallery__item--wide,
  .gallery__item--tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}
