:root {
  color-scheme: dark;
  --night-deep: #070d17;
  --night: #0b1322;
  --night-card: #101b2e;
  --night-card-2: #15233a;
  --ink: #faf3e4;
  --muted: #b7c4d6;
  --gold-bright: #ffeaad;
  --gold: #eab95f;
  --gold-deep: #b8822b;
  --emerald: #2aa382;
  --emerald-deep: #156e56;
  --line: rgba(234, 185, 95, 0.22);
  --line-soft: rgba(186, 206, 232, 0.14);
  --font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --font-sans: "Noto Sans Thai", "Segoe UI", Tahoma, system-ui, sans-serif;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--night-deep);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(42, 163, 130, 0.08), transparent 40%),
    radial-gradient(circle at 86% 14%, rgba(234, 185, 95, 0.09), transparent 36%),
    var(--night-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}
h1, h2, h3, p, figure { margin: 0; }
img { max-width: 100%; height: auto; }

.page-width {
  width: min(100% - 3rem, 76rem);
  margin-inline: auto;
}

/* ==================== STICKY GLASS HEADER ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 13, 23, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
}
.wordmark-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff6de;
}
.wordmark-text small {
  color: var(--gold);
  font-size: 0.76em;
  letter-spacing: 0.12em;
}
.crest {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  transform: rotate(45deg);
  color: var(--gold-bright);
  border: 1.5px solid var(--gold);
  border-radius: 0.28rem;
  background: linear-gradient(135deg, rgba(234, 185, 95, 0.28), rgba(21, 110, 86, 0.25));
  box-shadow: 0 0 18px rgba(234, 185, 95, 0.28);
  flex-shrink: 0;
}
.crest span {
  transform: rotate(-45deg);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
}
.crest--sm { width: 1.55rem; height: 1.55rem; }
.crest--sm span { font-size: 0.85rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}
.nav-link {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 600;
  transition: color 0.18s ease;
}
.nav-link:hover { color: var(--gold-bright); }
.nav-play {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 1.2rem;
  border-radius: 0.48rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1f1406;
  background: linear-gradient(180deg, #ffedb8 0%, #e4ae4f 100%);
  border: 1px solid #fff3cf;
  box-shadow: 0 4px 16px rgba(234, 185, 95, 0.28);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}
.nav-play:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 6px 22px rgba(234, 185, 95, 0.42);
}
.play-tri {
  width: 0.62rem;
  height: 0.72rem;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ==================== CINEMATIC HERO ==================== */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(39rem, 84svh, 55rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-art, .hero::before, .hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-art { z-index: -3; }
.hero-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 44%;
  transform: scale(1.015);
}
.hero::before {
  content: "";
  z-index: -2;
  background:
    radial-gradient(ellipse 48% 60% at 27% 52%, rgba(7, 13, 24, 0.56) 0%, rgba(7, 13, 24, 0.26) 58%, transparent 100%),
    radial-gradient(ellipse at 74% 38%, rgba(255, 226, 152, 0.14), transparent 48%),
    linear-gradient(90deg, rgba(6, 11, 20, 0.42) 0%, rgba(7, 13, 24, 0.28) 38%, rgba(9, 17, 30, 0.08) 64%, transparent 84%);
}
.hero::after {
  content: "";
  z-index: -1;
  background: linear-gradient(0deg, var(--night-deep) 0%, rgba(7, 13, 23, 0.72) 16%, transparent 40%);
}

/* Floating Golden Fireflies */
.hero-motes {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hero-motes span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8d6 0%, #f5c768 55%, transparent 100%);
  box-shadow: 0 0 10px 2px rgba(255, 217, 128, 0.65);
  opacity: 0;
  animation: moteFloat 9s ease-in-out infinite;
}
.hero-motes span:nth-child(1) { left: 12%; top: 68%; animation-delay: 0s; animation-duration: 10s; }
.hero-motes span:nth-child(2) { left: 26%; top: 44%; animation-delay: 1.8s; animation-duration: 8.5s; width: 4px; height: 4px; }
.hero-motes span:nth-child(3) { left: 42%; top: 72%; animation-delay: 3.1s; animation-duration: 11s; }
.hero-motes span:nth-child(4) { left: 54%; top: 32%; animation-delay: 0.9s; animation-duration: 9.5s; width: 6px; height: 6px; }
.hero-motes span:nth-child(5) { left: 68%; top: 62%; animation-delay: 4.2s; animation-duration: 8s; }
.hero-motes span:nth-child(6) { left: 79%; top: 26%; animation-delay: 2.3s; animation-duration: 10.5s; width: 4px; height: 4px; }
.hero-motes span:nth-child(7) { left: 88%; top: 58%; animation-delay: 5.1s; animation-duration: 9s; }
.hero-motes span:nth-child(8) { left: 34%; top: 22%; animation-delay: 6s; animation-duration: 12s; width: 3px; height: 3px; }
.hero-motes span:nth-child(9) { left: 61%; top: 80%; animation-delay: 2.8s; animation-duration: 9.2s; }
.hero-motes span:nth-child(10) { left: 92%; top: 36%; animation-delay: 1.2s; animation-duration: 11.4s; width: 4px; height: 4px; }

@keyframes moteFloat {
  0% { transform: translate(0, 14px) scale(0.6); opacity: 0; }
  25% { opacity: 0.9; }
  75% { opacity: 0.7; }
  100% { transform: translate(18px, -64px) scale(1.1); opacity: 0; }
}

.hero-inner {
  padding-block: 4.5rem 2.2rem;
}
.hero-copy {
  max-width: 36rem;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.36rem 0.9rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(17, 34, 48, 0.8);
  border: 1px solid rgba(42, 163, 130, 0.55);
  color: #b7f5e1;
  font-size: 0.86rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.status-dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: #3be8b0;
  box-shadow: 0 0 10px #3be8b0;
  animation: pulseDot 2.2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

.genre {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.55rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-shadow: 0 2px 10px rgba(4, 8, 16, 0.9);
}
.genre::before {
  content: "";
  width: 1.7rem;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero h1 {
  display: flex;
  align-items: baseline;
  gap: 0.16em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 7.2vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 10%, #fff1c9 56%, #dfa446 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 28px rgba(5, 9, 18, 0.85));
}
.hero h1 span {
  font-size: 0.46em;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #ffe79e 0%, #c88d32 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-description {
  max-width: 32rem;
  margin-top: 1.2rem;
  color: #e6ecf5;
  font-size: clamp(1.04rem, 1.45vw, 1.2rem);
  line-height: 1.8;
  text-shadow: 0 2px 14px rgba(4, 8, 16, 0.92), 0 1px 3px rgba(4, 8, 16, 0.9);
}
.hero-description strong { color: var(--gold-bright); font-weight: 700; }

.hero-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.95rem;
  margin-top: 1.65rem;
}
.play-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.55rem;
  padding: 0.85rem 1.85rem;
  border-radius: 0.6rem;
  color: #211507;
  font-size: 1.12rem;
  font-weight: 800;
  background: linear-gradient(180deg, #fff1c2 0%, #f1c368 55%, #d69838 100%);
  border: 1.5px solid #fff6db;
  box-shadow:
    0 10px 28px rgba(234, 185, 95, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -2px 0 rgba(126, 78, 16, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.play-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.48) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.6s ease;
}
.play-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 36px rgba(241, 195, 104, 0.48);
}
.play-button:hover::after { transform: translateX(130%); }
.play-button--sm { min-height: 3.1rem; padding: 0.7rem 1.45rem; font-size: 1rem; }
.play-button--lg { min-height: 3.85rem; padding: 0.95rem 2.35rem; font-size: 1.18rem; }
.play-icon {
  width: 0.78rem;
  height: 0.9rem;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.55rem;
  padding: 0.85rem 1.45rem;
  border-radius: 0.6rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #f4ebd8;
  background: rgba(14, 24, 41, 0.72);
  border: 1px solid rgba(234, 185, 95, 0.5);
  backdrop-filter: blur(8px);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.ghost-button:hover {
  background: rgba(234, 185, 95, 0.16);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
}
.hero-subnote {
  margin-top: 1rem;
  color: #b7c6d9;
  font-size: 0.9rem;
  text-shadow: 0 2px 10px rgba(4, 8, 16, 0.95);
}

/* Hero Metrics Strip */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  padding-bottom: 2rem;
}
.metric-item {
  padding: 0.95rem 1.15rem;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, rgba(16, 28, 48, 0.84), rgba(9, 17, 31, 0.92));
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.metric-item strong {
  color: var(--gold-bright);
  font-size: 1.22rem;
  font-weight: 800;
}
.metric-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ==================== SHARED SECTION HEADINGS ==================== */
.section {
  padding-block: clamp(3.5rem, 6.5vw, 5.5rem);
  position: relative;
}
.section-head {
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}
.eyebrow {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  margin-bottom: 0.5rem;
}
.section-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.28;
  color: #fff8e8;
}
.section-head h2 span {
  color: var(--gold);
}
.section-lead {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

/* ==================== 6-CLASS SHOWCASE ==================== */
.classes-section {
  background:
    radial-gradient(circle at 50% 10%, rgba(234, 185, 95, 0.08), transparent 55%),
    linear-gradient(180deg, var(--night-deep) 0%, #0b1425 100%);
}
.class-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
.class-tab {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, rgba(18, 30, 50, 0.9), rgba(11, 20, 35, 0.95));
  border: 1px solid var(--line-soft);
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.class-tab img {
  width: 46px;
  height: 46px;
  border-radius: 0.55rem;
  object-fit: cover;
  border: 1.5px solid rgba(234, 185, 95, 0.35);
  background: #17243b;
  flex-shrink: 0;
}
.class-tab-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.class-tab-text strong {
  font-size: 0.96rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.class-tab-text small {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}
.class-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(234, 185, 95, 0.6);
}
.class-tab.is-active {
  background: linear-gradient(180deg, rgba(35, 58, 86, 0.96), rgba(17, 32, 52, 0.98));
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 234, 173, 0.28);
}
.class-tab.is-active img {
  border-color: var(--gold-bright);
  box-shadow: 0 0 12px rgba(234, 185, 95, 0.45);
}
.class-tab.is-active small { color: var(--gold-bright); }

/* Spotlight Card */
.class-spotlight {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 2.2rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: 1.15rem;
  background:
    linear-gradient(135deg, rgba(22, 36, 60, 0.92) 0%, rgba(11, 20, 34, 0.97) 65%);
  border: 1.5px solid rgba(234, 185, 95, 0.42);
  box-shadow:
    0 24px 60px rgba(3, 7, 14, 0.65),
    inset 0 1px 0 rgba(255, 238, 190, 0.16);
  position: relative;
  overflow: hidden;
  --accent: #eab95f;
}
.class-spotlight[data-theme="swordsman"] { --accent: #f0b956; }
.class-spotlight[data-theme="mage"] { --accent: #b37cff; }
.class-spotlight[data-theme="bowman"] { --accent: #44d399; }
.class-spotlight[data-theme="bandit"] { --accent: #f26868; }
.class-spotlight[data-theme="healer"] { --accent: #63c7ff; }
.class-spotlight[data-theme="trader"] { --accent: #f5a64a; }

.spotlight-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  padding: 1.5rem 1rem;
  border-radius: 0.95rem;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 68%),
    linear-gradient(180deg, rgba(255, 248, 232, 0.06), rgba(9, 15, 26, 0.55));
  border: 1px solid rgba(234, 185, 95, 0.25);
}
.portrait-halo {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 42%, transparent) 0%, transparent 70%);
  filter: blur(22px);
  pointer-events: none;
}
.portrait-frame {
  position: relative;
  width: 214px;
  height: 214px;
  padding: 7px;
  border-radius: 1.1rem;
  background: linear-gradient(145deg, #fff1c6, #b6802b 45%, #2a3d5a 100%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0.8rem;
  background: #1a2538;
  transition: opacity 0.2s ease, transform 0.25s ease;
}
.portrait-frame img.is-swapping {
  opacity: 0.2;
  transform: scale(0.96);
}

.gender-switch {
  display: inline-flex;
  padding: 0.24rem;
  border-radius: 999px;
  background: rgba(7, 13, 24, 0.85);
  border: 1px solid rgba(234, 185, 95, 0.34);
  gap: 0.22rem;
}
.gender-btn {
  padding: 0.42rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.gender-btn.is-active {
  background: linear-gradient(180deg, #279c7c 0%, #156e56 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(21, 110, 86, 0.45);
}

.spotlight-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.spotlight-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.role-badge {
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #131c2b;
  background: var(--accent);
}
.weapon-badge {
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-bright);
  background: rgba(234, 185, 95, 0.14);
  border: 1px solid rgba(234, 185, 95, 0.36);
}
.spotlight-title {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  color: #fff8e8;
}
.spotlight-title small {
  font-family: var(--font-display);
  font-size: 0.52em;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.spotlight-desc {
  color: #d6e0ee;
  font-size: 1.02rem;
  line-height: 1.75;
}

.stat-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.4rem;
  padding: 0.9rem 1.05rem;
  border-radius: 0.75rem;
  background: rgba(7, 13, 24, 0.56);
  border: 1px solid var(--line-soft);
}
.stat-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.stat-row span {
  font-size: 0.83rem;
  color: var(--muted);
  font-weight: 600;
}
.stat-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}
.stat-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald), var(--accent));
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-showcase-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.skill-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}
.skill-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.65rem;
  background: rgba(11, 20, 35, 0.86);
  border: 1px solid var(--line-soft);
}
.skill-chip.is-ult {
  border-color: rgba(234, 185, 95, 0.55);
  background: linear-gradient(135deg, rgba(48, 34, 14, 0.65), rgba(14, 24, 42, 0.9));
}
.skill-chip img {
  width: 38px;
  height: 38px;
  border-radius: 0.45rem;
  border: 1px solid rgba(234, 185, 95, 0.45);
  flex-shrink: 0;
}
.skill-chip div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.skill-chip kbd {
  display: inline-block;
  width: fit-content;
  padding: 0.05rem 0.35rem;
  border-radius: 0.25rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--gold-bright);
  background: rgba(234, 185, 95, 0.16);
}
.skill-chip span {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f4efe3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spotlight-cta { margin-top: 0.3rem; }

/* ==================== WORLD ZONES ==================== */
.world-section {
  background: linear-gradient(180deg, #0b1425 0%, #08101d 100%);
  border-top: 1px solid var(--line-soft);
}
.zone-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}
.zone-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.2rem 1.4rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(19, 32, 54, 0.86), rgba(10, 18, 32, 0.96));
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.zone-card:hover {
  transform: translateY(-5px);
  border-color: rgba(234, 185, 95, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.zone-card--dawn { background: radial-gradient(circle at 50% 34%, rgba(65, 198, 128, 0.16), transparent 62%), linear-gradient(180deg, #13243a, #0b1424); }
.zone-card--sun { background: radial-gradient(circle at 50% 34%, rgba(244, 179, 73, 0.18), transparent 62%), linear-gradient(180deg, #1e2436, #0d1422); }
.zone-card--starwood { background: radial-gradient(circle at 50% 34%, rgba(88, 188, 255, 0.18), transparent 62%), linear-gradient(180deg, #12213d, #0a1223); }
.zone-card--dungeon { background: radial-gradient(circle at 50% 34%, rgba(176, 114, 255, 0.20), transparent 62%), linear-gradient(180deg, #1b193b, #0b1122); }

.zone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.zone-lv {
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #191206;
  background: linear-gradient(180deg, #ffe7a4, #dfaa4c);
}
.zone-meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.zone-sprite {
  height: 158px;
  display: grid;
  place-items: center;
  margin-block: 0.35rem 0.85rem;
}
.zone-sprite img {
  max-height: 148px;
  width: auto;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.58));
  transition: transform 0.25s ease;
}
.zone-card:hover .zone-sprite img {
  transform: scale(1.07) translateY(-4px);
}
.zone-card h3 {
  font-size: 1.12rem;
  color: #fff6e0;
  margin-bottom: 0.45rem;
}
.zone-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}
.zone-card strong { color: var(--gold-bright); }

/* ==================== IN-GAME GALLERY ==================== */
.gallery-section {
  background:
    radial-gradient(circle at 80% 20%, rgba(42, 163, 130, 0.08), transparent 45%),
    var(--night-deep);
  border-top: 1px solid var(--line-soft);
}
.gallery-shell {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.gallery-stage {
  border-radius: 1.1rem;
  overflow: hidden;
  background: #0e1829;
  border: 1.5px solid rgba(234, 185, 95, 0.38);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.62);
}
.gallery-frame {
  aspect-ratio: 16 / 9;
  background: #060b14;
  overflow: hidden;
}
.gallery-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: opacity 0.22s ease;
}
.gallery-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  padding: 1.15rem 1.45rem;
  background: linear-gradient(180deg, rgba(19, 31, 52, 0.95), rgba(11, 19, 34, 0.98));
  border-top: 1px solid var(--line);
}
.gallery-caption strong {
  display: block;
  color: var(--gold-bright);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.gallery-caption p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}
.gallery-pill {
  flex-shrink: 0;
  padding: 0.36rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #d6fff1;
  background: rgba(21, 110, 86, 0.48);
  border: 1px solid rgba(42, 163, 130, 0.7);
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.gallery-thumb {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.48rem;
  border-radius: 0.8rem;
  background: #0e192b;
  border: 1.5px solid var(--line-soft);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}
.gallery-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
}
.gallery-thumb:hover {
  transform: translateY(-2px);
  border-color: rgba(234, 185, 95, 0.55);
}
.gallery-thumb.is-active {
  border-color: var(--gold);
  color: var(--gold-bright);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

/* ==================== CORE FEATURES ==================== */
.features-section {
  background: linear-gradient(180deg, var(--night-deep), #0b1425);
  border-top: 1px solid var(--line-soft);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
.feature-card {
  padding: 1.5rem 1.45rem;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, rgba(19, 31, 52, 0.85), rgba(11, 19, 34, 0.95));
  border: 1px solid var(--line-soft);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
  border-color: rgba(234, 185, 95, 0.48);
  transform: translateY(-3px);
}
.feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  border-radius: 0.65rem;
  font-size: 1.35rem;
  background: linear-gradient(135deg, rgba(234, 185, 95, 0.22), rgba(42, 163, 130, 0.2));
  border: 1px solid rgba(234, 185, 95, 0.42);
}
.feature-card h3 {
  font-size: 1.08rem;
  color: var(--gold-bright);
  margin-bottom: 0.45rem;
}
.feature-card p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.75;
}

/* ==================== BOTTOM CTA BANNER ==================== */
.cta-banner {
  padding-block: 2.2rem 4.2rem;
  background: #0b1425;
}
.cta-card {
  position: relative;
  text-align: center;
  padding: clamp(2.4rem, 5vw, 3.8rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(234, 185, 95, 0.22), transparent 62%),
    radial-gradient(circle at 50% 100%, rgba(42, 163, 130, 0.2), transparent 58%),
    linear-gradient(180deg, #15253e 0%, #0b1424 100%);
  border: 1.5px solid rgba(234, 185, 95, 0.5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.cta-card h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  color: #fff8e8;
  margin-bottom: 0.7rem;
}
.cta-card h2 span { color: var(--gold); }
.cta-card p {
  max-width: 34rem;
  margin: 0 auto 1.65rem;
  color: #d0dce9;
  font-size: 1.04rem;
  line-height: 1.75;
}

/* ==================== FOOTER ==================== */
.site-footer {
  border-top: 1px solid var(--line);
  background: #060b14;
}
.footer-inner {
  min-height: 5.5rem;
  padding-block: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: #fff3d2;
}
.footer-brand small {
  color: var(--muted);
  font-size: 0.8rem;
}
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.35rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.footer-links a:hover { color: var(--gold-bright); }
.footer-play {
  color: var(--gold);
  font-weight: 700;
}

/* Always visible — zero invisible-section risk on fast scroll or anchor jumps */
.reveal {
  opacity: 1;
  transform: none;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .class-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .class-spotlight { grid-template-columns: 1fr; }
  .zone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .page-width { width: calc(100% - 2rem); }
  .site-nav .nav-link { display: none; }
  .hero { min-height: 0; }
  .hero-art { bottom: auto; height: max(22rem, 78vw); }
  .hero-art img { object-position: 86% 42%; }
  .hero::before {
    background: linear-gradient(0deg, var(--night-deep) 0%, rgba(7, 13, 23, 0.88) 38%, rgba(7, 13, 23, 0.18) 80%);
  }
  .hero-inner { padding-block: max(15.5rem, 52vw) 1.5rem; }
  .hero-action { flex-direction: column; align-items: stretch; }
  .play-button, .ghost-button { width: 100%; }
  .class-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-bars { grid-template-columns: 1fr; }
  .skill-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zone-grid { grid-template-columns: 1fr; }
  .gallery-caption { flex-direction: column; align-items: flex-start; }
  .gallery-thumbs { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}

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