@font-face {
  font-family: 'Pixeloid';
  src: url('assets/PixeloidMono.ttf') format('truetype');
  font-display: swap;
}

:root {
  --ink: #070708;
  --ink-2: #0e0e11;
  --ink-3: #141418;
  --panel: #121216;
  --panel-2: #18181f;
  --panel-glass: rgba(18, 18, 22, 0.78);
  --ash: #dcd8cb;
  --ash-bright: #f5f2e8;
  --muted: #858178;
  --faint: #2a2a30;
  --gold: #c9a962;
  --gold-bright: #f2d48a;
  --gold-glow: rgba(201, 169, 98, 0.28);
  --blood: #8b2420;
  --blood-bright: #c43e3e;
  --violet: #6b3398;
  --ice: #5fa8b8;
  --line: rgba(201, 169, 98, 0.22);
  --line-subtle: rgba(255, 255, 255, 0.08);
  --serif: Georgia, 'Times New Roman', serif;
  --pixel: 'Pixeloid', monospace;
  --display: 'Pixeloid', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ash);
  font-family: var(--pixel), monospace;
  font-size: 11px;
  line-height: 1.8;
  overflow-x: hidden;
}

/* Ambient Scanlines & Noise */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.03;
  background-image: linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px);
  background-size: 100% 5px;
  mix-blend-mode: screen;
}

.site-noise {
  position: fixed;
  inset: -50%;
  z-index: 40;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  animation: noise 0.2s steps(2) infinite;
}

.ash-field {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(circle at 14% 22%, rgba(242, 212, 138, 0.5) 0 1px, transparent 1px),
    radial-gradient(circle at 81% 43%, rgba(242, 212, 138, 0.35) 0 1px, transparent 1px),
    radial-gradient(circle at 45% 88%, rgba(242, 212, 138, 0.25) 0 1px, transparent 1px);
  background-size: 163px 191px, 229px 263px, 311px 337px;
  animation: floatAsh 20s linear infinite;
}

.container {
  width: min(1220px, calc(100% - 60px));
  margin-inline: auto;
}

/* --- HEADER & TOPBAR --- */
.topbar {
  height: 76px;
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: linear-gradient(180deg, rgba(7, 7, 8, 0.96), rgba(7, 7, 8, 0.4));
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}

.topbar.scrolled {
  background: rgba(7, 7, 8, 0.92);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ash);
  text-decoration: none;
  letter-spacing: 0.24em;
  font-size: 14px;
}

.brand-icon {
  width: 32px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--gold-glow));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08);
  filter: drop-shadow(0 0 14px var(--gold));
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 34px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: bold;
  line-height: 1;
  position: relative;
  background: rgba(201, 169, 98, 0.08);
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(201, 169, 98, 0.35);
}

.brand-word {
  font-weight: bold;
  letter-spacing: 0.28em;
  color: var(--ash-bright);
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 9px;
  letter-spacing: 0.14em;
  transition: color 0.25s, text-shadow 0.25s;
  padding: 8px 0;
  position: relative;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--gold-bright);
  text-shadow: 0 0 10px var(--gold-glow);
}

.main-nav a:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

.top-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}

/* Sound Toggle with Live Animated Waveform */
.sound-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(20, 20, 26, 0.7);
  border: 1px solid var(--line);
  padding: 7px 14px;
  color: var(--ash);
  cursor: pointer;
  font: inherit;
  font-size: 8px;
  letter-spacing: 0.12em;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.sound-toggle:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.sound-bars {
  height: 13px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.sound-bars i {
  width: 2px;
  height: 5px;
  background: var(--gold);
  display: block;
  transition: height 0.2s;
}

.sound-bars i:nth-child(2) { height: 11px; }
.sound-bars i:nth-child(3) { height: 8px; }

.sound-toggle.is-on {
  border-color: var(--gold-bright);
  background: rgba(201, 169, 98, 0.12);
  color: var(--gold-bright);
}

.sound-toggle.is-on .sound-bars i {
  animation: pulseSound 0.65s ease-in-out infinite alternate;
}

.sound-toggle.is-on .sound-bars i:nth-child(2) {
  animation-delay: 0.2s;
}

.sound-toggle.is-on .sound-bars i:nth-child(3) {
  animation-delay: 0.4s;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 38px;
  height: 38px;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  margin: 5px auto;
  transition: transform 0.25s, opacity 0.25s;
}

/* --- BUTTONS --- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  min-height: 48px;
  padding: 0 24px;
  font: inherit;
  font-size: 9px;
  letter-spacing: 0.14em;
  transition: transform 0.25s, background 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
  color: var(--ash);
  cursor: pointer;
  position: relative;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--gold);
  border-color: var(--gold-bright);
  color: #14110b !important;
  font-weight: bold;
  box-shadow: 0 8px 30px rgba(201, 169, 98, 0.2);
}

.button-primary:hover {
  background: var(--gold-bright);
  box-shadow: 0 12px 36px rgba(201, 169, 98, 0.35);
}

.button-gold {
  color: var(--gold-bright) !important;
  border-color: var(--gold);
  background: rgba(201, 169, 98, 0.08);
}

.button-gold:hover {
  background: var(--gold);
  color: #14110b !important;
  box-shadow: 0 8px 24px var(--gold-glow);
}

.button-discord {
  color: #f1f3ff !important;
  border-color: #5865f2;
  background: rgba(88, 101, 242, 0.18);
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.25);
}

.button-discord:hover {
  background: #5865f2;
  border-color: #7983f5;
  color: #ffffff !important;
  box-shadow: 0 8px 28px rgba(88, 101, 242, 0.5);
}

.button-small {
  min-height: 36px;
  padding: 0 16px;
  font-size: 8px;
  gap: 8px;
}

.button-quiet {
  padding-inline: 12px;
  color: var(--muted);
  background: rgba(20, 20, 26, 0.6);
  border-color: var(--line-subtle);
}

.button-quiet:hover {
  color: var(--gold-bright);
  border-color: var(--line);
}

.button-arrow {
  font-size: 15px;
  line-height: 1;
}

.play-icon {
  font-size: 11px;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding-left: 2px;
}

/* --- HERO SECTION --- */
.hero {
  min-height: 820px;
  height: 100vh;
  max-height: 1020px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, #15141c 0%, #070708 75%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 0, rgba(3, 3, 4, 0.2) 40%, rgba(3, 3, 4, 0.85) 90%),
    linear-gradient(180deg, rgba(7, 7, 8, 0.7) 0%, transparent 25%, transparent 65%, #070708 100%);
}

.hero-scanlines {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background: linear-gradient(110deg, transparent 0 42%, rgba(201, 169, 98, 0.4) 42.1%, transparent 42.3%);
  background-size: 100% 100%;
  mix-blend-mode: screen;
}

.hero-rune-circle {
  position: absolute;
  width: min(600px, 80vw);
  aspect-ratio: 1;
  border: 1px dashed rgba(201, 169, 98, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(107, 51, 152, 0.15), inset 0 0 60px rgba(201, 169, 98, 0.05);
  animation: spinSlow 45s linear infinite;
  pointer-events: none;
}

.hero-rune-circle::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(201, 169, 98, 0.12);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  text-align: center;
  margin-top: 40px;
  z-index: 5;
}

.eyebrow,
.section-kicker {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.24em;
  margin: 0 0 18px;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.eyebrow-line {
  display: block;
  width: 50px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(80px, 14vw, 190px);
  letter-spacing: 0.14em;
  line-height: 0.85;
  margin: 0 -0.14em 28px 0;
  color: #f7f4e9;
  text-shadow: 4px 6px 0 rgba(0, 0, 0, 0.8), 0 0 70px rgba(201, 169, 98, 0.2);
  position: relative;
}

.hero-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 169, 98, 0.4);
  transform: translate(5px, 5px);
  z-index: -1;
}

.hero-tagline {
  font-size: 13px;
  line-height: 2.2;
  letter-spacing: 0.12em;
  color: #e8e3d3;
  margin: 0 0 38px;
  text-shadow: 0 2px 12px #000;
}

.hero-tagline em,
.section-heading em,
h2 em,
h3 em {
  font-family: var(--display);
  font-style: italic;
  font-weight: normal;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}

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

.hero-corner {
  position: absolute;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.14em;
  z-index: 5;
}

.hero-corner i {
  width: 60px;
  height: 1px;
  background: var(--line);
}

.hero-corner-left { left: 40px; }
.hero-corner-right { right: 40px; }

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-decoration: none;
  z-index: 5;
  transition: color 0.25s;
}

.scroll-cue:hover {
  color: var(--gold-bright);
}

.scroll-cue i {
  height: 30px;
  width: 1px;
  background: var(--gold);
  position: absolute;
  left: 50%;
  top: 22px;
}

.scroll-cue b {
  font-size: 16px;
  color: var(--gold);
  font-weight: normal;
  position: absolute;
  top: 42px;
  left: calc(50% - 4px);
  animation: arrowDown 1.4s ease-in-out infinite;
}

/* --- QUOTE BANNER --- */
.quote-strip {
  min-height: 180px;
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
  padding: 30px 20px;
}

.quote-orb {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  padding: 8px;
  box-shadow: 0 0 24px rgba(201, 169, 98, 0.2);
  background: rgba(7, 7, 8, 0.8);
}

.quote-orb img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transform: rotate(-45deg);
  filter: drop-shadow(0 0 8px rgba(201, 169, 98, 0.8));
}

.quote-strip p {
  font: italic 20px/1.5 var(--serif);
  letter-spacing: 0.04em;
  margin: 0;
  color: var(--ash-bright);
  text-align: center;
}

.quote-strip p em {
  color: var(--gold-bright);
}

.quote-rule {
  width: 1px;
  height: 52px;
  background: var(--line);
}

.quote-source {
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* --- SECTIONS COMMON --- */
.section-pad {
  padding: 120px 0;
}

.section-intro h2,
.section-heading h2,
.classes-header h2,
.rune-archive-heading h2,
.acts-top h2,
.wallpapers-header h2,
.play-content h2 {
  font: normal clamp(38px, 4.5vw, 64px) / 1 var(--display);
  letter-spacing: 0.02em;
  color: var(--ash-bright);
  margin: 0;
}

.ornament {
  display: block;
  width: 110px;
  height: 1px;
  background: var(--gold);
  margin-top: 32px;
  position: relative;
}

.ornament::before,
.ornament::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  top: -3px;
}

.ornament::before { left: 0; }
.ornament::after { right: 0; }

.text-link {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-decoration: none;
  margin-top: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  transition: color 0.25s, gap 0.25s;
}

.text-link:hover {
  color: var(--gold-bright);
  gap: 22px;
}

/* --- LORE SECTION --- */
.lore-section {
  background: linear-gradient(135deg, #070708, #101014 70%, #09090b);
  overflow: hidden;
}

.lore-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px 80px;
}

.lore-copy {
  padding-top: 30px;
  max-width: 540px;
  color: #a09d94;
}

.lore-copy p {
  margin: 0 0 18px;
}

.lore-copy .lead-copy {
  font: normal 21px / 1.5 var(--serif);
  color: var(--ash-bright);
}

.lore-choice-box {
  background: rgba(18, 18, 24, 0.85);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  margin: 24px 0;
}

.lore-choice-title {
  color: var(--gold-bright);
  font-size: 8px;
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 8px;
}

.lore-choice-box p {
  margin: 0;
  font-size: 11px;
  color: var(--ash);
}

.lore-art {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.art-frame {
  position: relative;
  border: 1px solid var(--line);
  padding: 12px;
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  transform: rotate(1deg);
}

.art-frame::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201, 169, 98, 0.2);
  pointer-events: none;
  z-index: 1;
}

.art-frame img {
  width: 100%;
  display: block;
  filter: saturate(0.8) sepia(0.15) contrast(1.1);
}

.frame-label {
  position: absolute;
  right: 20px;
  bottom: 15px;
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 0.14em;
  background: rgba(7, 7, 8, 0.85);
  padding: 4px 8px;
}

.art-caption {
  display: block;
  text-align: right;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 16px;
}

.art-caption em {
  color: var(--gold);
  font-style: normal;
}

/* --- CLASSES & SKILLS SECTION --- */
.classes-section {
  background: #09090c;
  border-top: 1px solid var(--line-subtle);
}

.classes-header,
.rune-archive-heading,
.acts-top,
.wallpapers-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
}

.classes-aside,
.rune-archive-heading > p,
.acts-top > p,
.wallpapers-header > p {
  color: var(--muted);
  text-align: right;
  margin: 0;
  line-height: 2;
}

.class-showcase {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  background: linear-gradient(110deg, #101015, #15141c);
  border: 1px solid var(--line);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.class-visual {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(107, 51, 152, 0.2), transparent 60%);
  border-right: 1px solid var(--line);
}

.class-wallpaper {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: url('assets/necromancer_art.jpg');
  filter: saturate(0.9) contrast(1.05);
}

.class-wallpaper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(9, 9, 12, 0.4), rgba(9, 9, 12, 0.8));
}

.class-stamp {
  position: absolute;
  bottom: 24px;
  left: 28px;
  color: var(--gold);
  font: 24px / 0.9 var(--serif);
  letter-spacing: 0.16em;
  opacity: 0.6;
  z-index: 2;
}

.class-stamp small {
  font: 7px var(--pixel);
  letter-spacing: 0.2em;
}

.class-art {
  position: relative;
  z-index: 2;
  width: min(80%, 420px);
  height: 380px;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.7));
  animation: floatRune 4.5s ease-in-out infinite;
}

.class-panel {
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  background: rgba(14, 14, 18, 0.95);
}

.class-panel-top {
  display: flex;
  justify-content: space-between;
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 0.18em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.class-role {
  color: var(--gold-bright);
}

.class-panel h3 {
  font: normal clamp(34px, 3.5vw, 54px) / 1 var(--display);
  color: var(--ash-bright);
  margin: 24px 0 14px;
}

.class-panel > p {
  color: #9c9990;
  margin: 0 0 20px;
}

/* Stat Bars */
.class-stats {
  margin: 16px 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.class-stats > div {
  display: grid;
  grid-template-columns: 95px 1fr;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 8px;
}

.class-stats i {
  height: 4px;
  background: #25252d;
  display: block;
}

.class-stats b {
  height: 100%;
  background: var(--gold);
  display: block;
  transition: width 0.45s ease;
}

/* Builds List */
.class-builds-wrap {
  margin-bottom: 24px;
  padding: 12px 16px;
  background: rgba(22, 22, 28, 0.6);
  border: 1px solid var(--line-subtle);
}

.builds-label {
  display: block;
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}

.class-builds-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  font-size: 9px;
  color: var(--ash);
}

.class-builds-list .bullet {
  color: var(--gold);
}

/* Interactive Skills Grid */
.skills-section-wrap {
  margin-bottom: 24px;
}

.skills-label {
  display: block;
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.skill-slot {
  background: rgba(18, 18, 24, 0.9);
  border: 1px solid var(--line-subtle);
  aspect-ratio: 1;
  padding: 4px;
  cursor: pointer;
  position: relative;
  display: grid;
  place-items: center;
  transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.skill-slot:hover,
.skill-slot.active {
  transform: translateY(-3px);
  border-color: var(--gold-bright);
  background: #201e28;
  box-shadow: 0 4px 14px var(--gold-glow);
}

.skill-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.skill-lv {
  position: absolute;
  bottom: 2px;
  right: 3px;
  font-size: 6px;
  color: var(--gold);
  background: rgba(7, 7, 8, 0.85);
  padding: 1px 3px;
  letter-spacing: 0.05em;
}

/* Skill Tooltip Panel */
.skill-tooltip-panel {
  background: rgba(10, 10, 14, 0.95);
  border: 1px solid var(--line);
  padding: 14px 16px;
  min-height: 90px;
}

.tooltip-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.tooltip-header img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border: 1px solid var(--line);
  padding: 2px;
}

.tooltip-header h4 {
  font: normal 14px var(--display);
  color: var(--gold-bright);
  margin: 0;
  letter-spacing: 0.08em;
}

.tooltip-type {
  font-size: 7px;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.tooltip-desc {
  color: var(--ash);
  font-size: 10px;
  line-height: 1.6;
  margin: 0 0 8px;
}

.tooltip-meta {
  display: flex;
  gap: 20px;
  font-size: 8px;
  color: var(--gold);
  border-top: 1px solid var(--line-subtle);
  padding-top: 6px;
}

/* Class Tabs & Nav */
.class-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  border-top: 1px solid var(--line-subtle);
  padding-top: 16px;
}

.class-tab {
  font: 8px var(--pixel);
  letter-spacing: 0.12em;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 4px;
  margin-right: 12px;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}

.class-tab.active,
.class-tab:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
}

.class-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.class-arrow {
  background: none;
  border: 1px solid var(--line);
  color: var(--gold);
  width: 36px;
  height: 32px;
  cursor: pointer;
  font: 14px var(--pixel);
  transition: background 0.25s, color 0.25s;
}

.class-arrow:hover {
  background: var(--gold);
  color: #14110b;
}

.class-dots {
  display: flex;
  gap: 8px;
}

.class-dots i {
  width: 5px;
  height: 5px;
  background: var(--faint);
  display: block;
}

.class-dots i.active {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

/* --- RUNIC ARCHIVE & GEMSTONES --- */
.rune-archive {
  background: linear-gradient(180deg, #09090c, #131219);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rune-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 10px;
}

.rune-card {
  min-height: 180px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 16px 6px 12px;
  background: rgba(18, 18, 24, 0.9);
  border: 1px solid var(--line-subtle);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.rune-card:hover,
.rune-card.active {
  transform: translateY(-6px);
  border-color: var(--gold);
  background: #1e1b26;
  color: var(--gold-bright);
  box-shadow: 0 8px 24px rgba(107, 51, 152, 0.35);
}

.rune-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: auto;
  transition: transform 0.3s, filter 0.3s;
}

.rune-card:hover img,
.rune-card.active img {
  transform: scale(1.12);
  filter: drop-shadow(0 0 14px rgba(201, 169, 98, 0.7));
}

.rune-card span {
  position: absolute;
  top: 8px;
  left: 8px;
  color: var(--gold);
  font-size: 7px;
}

.rune-card strong {
  font-size: 7.5px;
  font-weight: normal;
  letter-spacing: 0.05em;
  text-align: center;
}

.rune-card small {
  color: #7a766e;
  font-size: 6px;
  letter-spacing: 0.04em;
  text-align: center;
}

.rune-card.active small {
  color: var(--gold);
}

.rune-detail {
  margin-top: 32px;
  padding: 20px 28px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 14, 0.85);
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.rune-detail img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px var(--gold-glow));
}

.rune-detail-kicker {
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 0.16em;
  display: block;
}

.rune-detail h3 {
  font: normal 24px var(--serif);
  margin: 4px 0 6px;
  color: var(--ash-bright);
}

.rune-main-stat {
  margin: 0 0 4px;
  color: var(--gold-bright);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.rune-bonus-stat {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
}

.rune-detail-mark {
  margin-left: auto;
  color: var(--gold);
  font-size: 32px;
}

/* Gemstones Grid */
.gems-section-wrap {
  margin-top: 60px;
  border-top: 1px solid var(--line-subtle);
  padding-top: 40px;
}

.gems-title {
  font: normal 16px var(--display);
  color: var(--gold);
  letter-spacing: 0.14em;
  text-align: center;
  margin: 0 0 30px;
}

.gems-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.gem-badge {
  background: rgba(18, 18, 24, 0.7);
  border: 1px solid var(--line-subtle);
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.25s, border-color 0.25s;
}

.gem-badge:hover {
  transform: translateY(-4px);
  border-color: var(--line);
}

.gem-badge img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.8));
}

.gem-badge strong {
  font-size: 8px;
  display: block;
  color: var(--ash-bright);
  letter-spacing: 0.08em;
}

.gem-badge span {
  font-size: 6.5px;
  color: var(--muted);
  line-height: 1.4;
  display: block;
}

/* --- FEATURES SECTION --- */
.feature-section {
  background: #070708;
}

.section-heading {
  text-align: center;
  margin-bottom: 50px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--line-subtle);
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--line);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5);
}

.feature-art {
  height: 200px;
  border-bottom: 1px solid var(--line);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.feature-art-runes {
  background: radial-gradient(circle at 50% 50%, #3d1c52, #140d1f 50%, #08070a 85%);
}

.ritual-pentagram-wrap {
  width: 150px;
  height: 150px;
  position: relative;
  display: grid;
  place-items: center;
}

.pentagram-img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(184, 115, 255, 0.75));
  animation: pulsePentagram 4s ease-in-out infinite;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.pentagram-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(162, 79, 240, 0.25), transparent 70%);
  animation: pulseGlow 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulsePentagram {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 16px rgba(184, 115, 255, 0.65)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 28px rgba(224, 165, 255, 0.95)); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50% { opacity: 0.9; transform: scale(1.15); }
}

.feature-art-abyss {
  background: radial-gradient(circle, #3c2024, #161014 44%, #0a0a0b);
}

.feature-art-abyss img {
  width: 64px;
  filter: drop-shadow(0 0 20px rgba(186, 55, 44, 0.8));
  animation: floatRune 4s ease-in-out infinite;
}

.feature-art-device {
  background: radial-gradient(circle at 50% 50%, #20132b, #0c0812 55%, #050407 90%);
  padding: 10px;
}

.game-art-device {
  width: 92%;
  height: 90%;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid rgba(175, 120, 245, 0.3);
  box-shadow: 0 0 24px rgba(118, 52, 205, 0.5);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.feature-card:hover .game-art-device {
  transform: scale(1.04);
  border-color: rgba(215, 175, 255, 0.7);
  box-shadow: 0 0 36px rgba(168, 92, 255, 0.85);
}

.feature-index {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  color: var(--gold);
  font-size: 9px;
}

.feature-body {
  padding: 28px;
}

.feature-body h3 {
  font: normal 26px / 1 var(--display);
  color: var(--ash-bright);
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}

.feature-body p:not(.feature-kicker) {
  color: #8f8b82;
  margin: 0;
  min-height: 80px;
}

/* --- ACTS & BOSSES SECTION --- */
.acts-section {
  background: #0d0d10;
  border-top: 1px solid var(--line-subtle);
}

.act-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.act-card {
  min-height: 180px;
  border: 1px solid var(--line-subtle);
  background: #141418;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}

.act-card:hover,
.act-card.active {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.act-card.active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(121, 44, 34, 0.3), transparent 60%);
}

.act-number {
  font: 30px var(--serif);
  color: var(--gold);
  position: relative;
  z-index: 1;
}

.act-card p,
.act-status {
  font-size: 7px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0;
  position: relative;
  z-index: 1;
}

.act-card h3 {
  font: normal 18px var(--display);
  color: var(--ash-bright);
  margin: 4px 0 0;
  position: relative;
  z-index: 1;
}

.act-status {
  color: var(--gold);
  align-self: flex-end;
}

/* Bosses List */
.boss-list {
  max-width: 860px;
  border-top: 1px solid var(--line);
}

.boss-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  display: grid;
  grid-template-columns: 50px 1.2fr 1fr 30px;
  align-items: center;
  text-align: left;
  padding: 22px 0;
  cursor: pointer;
  font: inherit;
  transition: color 0.25s, padding 0.25s;
}

.boss-row:hover,
.boss-row.active {
  color: var(--gold-bright);
  padding-left: 12px;
}

.boss-number,
.boss-title,
.boss-arrow {
  font-size: 8px;
  letter-spacing: 0.14em;
}

.boss-name {
  font: normal 22px var(--display);
  color: inherit;
}

.boss-row.active .boss-name {
  color: var(--ash-bright);
}

.boss-arrow {
  font-size: 16px;
}

/* --- WALLPAPERS 4K GALLERY --- */
.wallpapers-section {
  background: #08080a;
  border-top: 1px solid var(--line);
}

.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.wallpaper-card {
  background: var(--panel);
  border: 1px solid var(--line-subtle);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.wallpaper-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
}

.wallpaper-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.wallpaper-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.wallpaper-card:hover .wallpaper-thumb-wrap img {
  transform: scale(1.06);
  filter: brightness(1.1);
}

.wallpaper-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 8, 0.5);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.wallpaper-card:hover .wallpaper-overlay {
  opacity: 1;
}

.wp-zoom {
  color: var(--gold-bright);
  font-size: 8px;
  letter-spacing: 0.16em;
  background: rgba(14, 14, 18, 0.85);
  border: 1px solid var(--gold);
  padding: 6px 14px;
}

.wallpaper-info {
  padding: 18px 20px 20px;
}

.wallpaper-info h4 {
  font: normal 17px var(--display);
  color: var(--ash-bright);
  margin: 0 0 6px;
  letter-spacing: 0.04em;
}

.wallpaper-info p {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
  margin: 0 0 16px;
  min-height: 30px;
}

.wp-download-btn {
  width: 100%;
}

/* --- PLAY / WISHLIST SECTION --- */
.play-section {
  min-height: 640px;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}

.play-image {
  position: absolute;
  inset: 0;
  background-image: url('assets/marketing/murdok-thumbnail-1920.png');
  background-size: cover;
  background-position: center 55%;
  filter: blur(1px) saturate(0.65);
  transform: scale(1.04);
}

.play-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(23, 13, 15, 0.3), #070708 75%),
    linear-gradient(180deg, #0d0d10 0%, transparent 25%, #070708 100%);
}

.play-content {
  position: relative;
  max-width: 700px;
}

.play-content h2 {
  font-size: clamp(48px, 6.5vw, 84px);
  margin-bottom: 24px;
}

.play-content > p:not(.section-kicker) {
  color: #c4bfb2;
  max-width: 440px;
  margin: 0 auto 32px;
  font-size: 12px;
}

/* --- FOOTER --- */
.site-footer {
  background: #070708;
  border-top: 1px solid var(--line);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: 50px;
}

.footer-title {
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 16px;
}

.footer-brand .brand-word {
  font-size: 18px;
}

.footer-brand p {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-specs p {
  color: var(--muted);
  font-size: 8px;
  line-height: 2.2;
  margin: 0;
}

.footer-specs strong {
  color: var(--ash);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line-subtle);
  padding-top: 24px;
  margin-top: 50px;
  color: #55524c;
  font-size: 7px;
  letter-spacing: 0.14em;
}

/* --- LIGHTBOX MODAL --- */
.lightbox-modal {
  position: fixed;
  z-index: 70;
  inset: 0;
  background: rgba(3, 3, 4, 0.94);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-inner {
  width: min(1200px, 94vw);
  position: relative;
  border: 1px solid var(--gold);
  background: #0a0a0d;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.9);
  padding: 12px;
  transform: scale(0.96);
  transition: transform 0.35s ease;
}

.lightbox-modal.open .lightbox-inner {
  transform: scale(1);
}

.lightbox-media-wrap {
  width: 100%;
  max-height: 75vh;
  display: grid;
  place-items: center;
  background: #000;
  overflow: hidden;
}

.lightbox-media-wrap img {
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 12px 6px;
}

.lightbox-bar h3 {
  font: normal 18px var(--display);
  color: var(--gold-bright);
  margin: 0 0 4px;
}

.lightbox-bar p {
  color: var(--muted);
  font-size: 9px;
  margin: 0;
}

.lightbox-close {
  position: absolute;
  right: -16px;
  top: -16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold);
  background: #0d0d10;
  color: var(--gold);
  font: 18px var(--pixel);
  cursor: pointer;
  z-index: 10;
}

.lightbox-nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 44px;
  height: 50px;
  background: rgba(14, 14, 18, 0.85);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-size: 18px;
  cursor: pointer;
  z-index: 5;
  transition: background 0.25s;
}

.lightbox-nav:hover {
  background: var(--gold);
  color: #14110b;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* --- TRAILER / PREVIEW MODAL --- */
.trailer-modal {
  position: fixed;
  z-index: 65;
  inset: 0;
  background: rgba(3, 3, 4, 0.92);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.trailer-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-inner {
  width: min(940px, 94vw);
  position: relative;
  border: 1px solid var(--gold);
  background: #09090c;
  padding: 12px;
  transform: scale(0.96);
  transition: transform 0.35s ease;
}

.trailer-modal.open .modal-inner {
  transform: scale(1);
}

.modal-inner img {
  width: 100%;
  display: block;
  filter: saturate(0.85);
}

.modal-close {
  position: absolute;
  right: -16px;
  top: -16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold);
  background: #0d0d10;
  color: var(--gold);
  font: 20px var(--pixel);
  cursor: pointer;
  z-index: 2;
}

.modal-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 8px 6px;
}

.modal-caption p {
  margin: 0;
  color: var(--gold-bright);
  font: italic 20px var(--serif);
}

/* --- ANIMATIONS & REVEALS --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes noise {
  0% { transform: translate(0); }
  25% { transform: translate(3%, -2%); }
  50% { transform: translate(-2%, 3%); }
  75% { transform: translate(2%, 2%); }
  100% { transform: translate(-3%, -1%); }
}

@keyframes floatAsh {
  to { background-position: 163px 800px, 229px -600px, 311px 400px; }
}

@keyframes arrowDown {
  50% { transform: translateY(6px); }
}

@keyframes pulseSound {
  to { height: 13px; }
}

@keyframes floatRune {
  50% { transform: translateY(-8px) rotate(3deg); }
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

@keyframes counterSpin {
  to { transform: rotate(-360deg); }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .container {
    width: min(100% - 40px, 760px);
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(7, 7, 8, 0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    padding: 24px 30px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }

  .main-nav.mobile-open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero-corner {
    display: none;
  }

  .lore-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .lore-art {
    grid-column: auto;
    grid-row: auto;
  }

  .class-showcase {
    grid-template-columns: 1fr;
  }

  .class-visual {
    min-height: 420px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

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

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

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

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

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

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 10px;
  }

  .topbar {
    padding: 0 18px;
    height: 66px;
  }

  .brand-word {
    font-size: 12px;
  }

  .top-actions .button-small {
    display: none;
  }

  .hero {
    min-height: 700px;
  }

  .hero-title {
    font-size: 20vw;
  }

  .hero-tagline {
    font-size: 11px;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 12px;
  }

  .quote-strip {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .quote-rule {
    display: none;
  }

  .classes-header,
  .rune-archive-heading,
  .acts-top,
  .wallpapers-header {
    display: block;
  }

  .classes-aside,
  .rune-archive-heading > p,
  .acts-top > p,
  .wallpapers-header > p {
    text-align: left;
    margin-top: 14px;
  }

  .class-panel {
    padding: 28px 20px;
  }

  .class-stats {
    grid-template-columns: 1fr;
  }

  .class-builds-list {
    grid-template-columns: 1fr;
  }

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

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

  .rune-detail {
    flex-direction: column;
    text-align: center;
  }

  .rune-detail-mark {
    display: none;
  }

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

  .act-rail {
    display: flex;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .act-card {
    min-width: 220px;
  }

  .boss-row {
    grid-template-columns: 35px 1fr 20px;
  }

  .boss-title {
    display: none;
  }

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

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

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }

  .lightbox-nav {
    display: none;
  }
}