:root {
  --bg: #05060a;
  --bg-alt: #070915;
  --bg-alt-2: #0c101f;
  --accent: #f5b33f;
  --accent-soft: rgba(245, 179, 63, 0.12);
  --accent-strong: #ffdd7a;
  --danger: #f05454;
  --text-main: #f5f5f8;
  --text-muted: #9fa4bd;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(9, 12, 24, 0.96);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.8);
  --max-width: 1180px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #15192b 0, #05060a 55%);
  color: var(--text-main);
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
}

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

button {
  font-family: inherit;
}

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

/* Layout */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nav-shell,
.section-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(
    to bottom,
    rgba(5, 6, 10, 0.96),
    rgba(5, 6, 10, 0.9),
    rgba(5, 6, 10, 0)
  );
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 12px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: radial-gradient(circle at 20% 0, #ffd98b, #f5b33f 40%, #733e0e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 40px rgba(0, 0, 0, 0.8);
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 15px;
  color: #15100a;
}

.logo-text-main {
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-size: 14px;
  white-space: nowrap;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.nav-link {
  padding: 4px 0;
  position: relative;
  color: var(--text-muted);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--danger));
  border-radius: 999px;
  transition: width 0.18s ease-out;
}

.nav-link:hover {
  color: var(--accent-strong);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.nav-link.is-active {
  color: var(--accent-strong);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: radial-gradient(circle at 0 0, rgba(245, 179, 63, 0.16), transparent 55%);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: none;
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 12px;
  text-transform: uppercase;
  background: radial-gradient(circle at 0 0, #ffd98b, #f5b33f);
  color: #211203;
  cursor: pointer;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.9);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.95);
}

.btn-primary .icon {
  font-size: 15px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--text-main);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.16s ease-out, border-color 0.16s ease-out;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.32);
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(5, 6, 10, 0.9);
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: #f5f5f8;
}

/* Hero */

.hero {
  position: relative;
  padding: 80px 0 70px;
  overflow: hidden;
}

.hero-shell {
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 46px;
  align-items: center;
}

.hero-tagline-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 6px;
  border-radius: var(--radius-pill);
  background: rgba(10, 14, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.hero-tagline-pill .badge {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #ffdd7a, #f49c33);
  color: #211203;
  font-weight: 700;
}

.hero-title {
  font-family: "Oswald", sans-serif;
  font-size: clamp(40px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.hero-title .highlight {
  color: var(--accent-strong);
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 22px;
}

.hero-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(14, 18, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--text-muted);
}

.hero-badge-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, #ffdd7a, #f5b33f 60%, #733e0e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #211203;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}

.hero-note {
  font-size: 12px;
  color: var(--text-muted);
}

.hero-note strong {
  color: var(--accent-strong);
  font-weight: 600;
}

.hero-media {
  position: relative;
}

.hero-media-card {
  position: relative;
  border-radius: 24px;
  background: radial-gradient(circle at top, #24293e 0, #070915 40%, #04050a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  min-height: 280px;
}

.hero-media-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 10% 0, rgba(255, 221, 122, 0.4), transparent 55%),
    radial-gradient(circle at 90% 80%, rgba(240, 84, 84, 0.4), transparent 55%),
    linear-gradient(145deg, #171b33, #05060b 65%);
  opacity: 0.95;
}

.hero-media-overlay {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero_keyart_doomprotocol.jpg");
  background-size: cover;
  background-position: center;
  mix-blend-mode: screen;
  opacity: 0.32;
  pointer-events: none;
}

.hero-media-content {
  position: relative;
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero-media-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 245, 248, 0.85);
  margin-bottom: 14px;
}

.hero-media-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 14px;
  align-items: center;
}

.hero-pseudo-video {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at top, #20294d, #090c1b);
  border: 1px solid rgba(255, 255, 255, 0.18);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out,
    border-color 0.16s ease-out;
}

.hero-pseudo-video-label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 245, 248, 0.8);
}

.hero-pseudo-video:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-play {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 0 0, rgba(255, 221, 122, 0.9), #f5b33f);
  box-shadow: 0 0 45px rgba(245, 179, 63, 0.8);
}

.hero-play::before {
  content: "";
  margin-left: 4px;
  border-style: solid;
  border-width: 9px 0 9px 16px;
  border-color: transparent transparent transparent #211203;
}

.hero-media-text {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-media-text h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 8px;
  color: rgba(245, 245, 248, 0.9);
}

.hero-media-text p {
  margin: 0 0 8px;
}

.hero-media-statline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: rgba(245, 245, 248, 0.8);
}

.hero-media-stat {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(5, 7, 16, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-media-foot {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
}

.hero-media-foot .accent {
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-media-foot .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, #ffdd7a, #f5b33f);
  box-shadow: 0 0 18px rgba(245, 179, 63, 0.7);
  display: inline-block;
  margin-right: 5px;
}

/* Experience strip */

.experience-strip {
  border-radius: var(--radius-lg);
  background: rgba(9, 11, 20, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 30px;
}

.experience-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.experience-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--accent-strong);
}

/* Sections */

section {
  padding: 50px 0;
}

.section--banded {
  background: radial-gradient(circle at 0 0, #181c30 0, #05060a 55%);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-header {
  margin-bottom: 26px;
  max-width: 720px;
}

.section-header--tight {
  margin-bottom: 18px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 8px;
}

.section-title {
  font-size: 26px;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* Core hook */

.core-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 26px;
}

.core-copy p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 14px;
}

.core-copy p strong {
  color: var(--accent-strong);
}

.core-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.core-list li {
  margin-bottom: 6px;
}

.core-card {
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  color: var(--text-muted);
}

.core-card h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 8px;
  color: rgba(245, 245, 248, 0.92);
}

.core-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  font-size: 11px;
}

.core-step {
  border-radius: 9px;
  padding: 8px 9px;
  background: rgba(10, 13, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.core-step-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 6px;
  color: var(--accent-strong);
  font-size: 10px;
}

/* World layers */

.world-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.world-card {
  border-radius: var(--radius-lg);
  padding: 16px 14px 14px;
  background: radial-gradient(circle at 0 0, rgba(245, 179, 63, 0.05), transparent 65%);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 170px;
}

.world-card-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(245, 245, 248, 0.95);
}

.world-card-tag {
  font-size: 11px;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* Factions */

.factions {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 22px;
  align-items: flex-start;
}

.faction-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
}

.faction-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.factions-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.factions-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.faction-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.8);
}

.faction-dot.white {
  background: #f5f5f8;
}

.faction-dot.red {
  background: #ff4b5c;
}

.faction-dot.blue {
  background: #35a6ff;
}

.faction-dot.gold {
  background: #f5b33f;
}

.faction-dot.pink {
  background: #ff70c9;
}

.factions-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
}

.factions-art {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 0 0, #303b72, #070915 55%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
  padding: 18px 16px 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.factions-art-main {
  border-radius: 14px;
  background-image: url("../images/carriers_and_fobs_doomprotocol.jpg");
  background-size: cover;
  background-position: center;
  min-height: 160px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.factions-art-main::after {
  content: "Concept art";
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 10px;
  background: rgba(0, 0, 0, 0.65);
  padding: 4px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* Boomstone lore */

.lore-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.lore-copy p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 14px;
}

.lore-highlight {
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  background: linear-gradient(
    145deg,
    rgba(245, 179, 63, 0.26),
    rgba(5, 6, 12, 0.98)
  );
  border: 1px solid rgba(245, 179, 63, 0.6);
  font-size: 13px;
  color: #fef5da;
  box-shadow: var(--shadow-soft);
}

.lore-highlight h3 {
  margin: 0 0 6px;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lore-highlight p {
  margin: 0;
}

.lore-highlight .label {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Traps */

.traps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.trap-card {
  border-radius: var(--radius-md);
  padding: 14px 13px 12px;
  background: rgba(10, 12, 22, 0.96);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
}

.trap-title {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: rgba(245, 245, 248, 0.95);
}

.trap-tagline {
  font-size: 11px;
  color: var(--accent-strong);
  margin-bottom: 6px;
}

/* Dwarfologist quote */

.quote-card {
  border-radius: 22px;
  background: rgba(45, 30, 8, 0.86);
  border: 1px solid rgba(245, 179, 63, 0.7);
  box-shadow: var(--shadow-soft);
  padding: 24px 24px 20px;
  font-size: 15px;
  color: #fdf8e9;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  backdrop-filter: blur(6px);
}

.quote-card::before {
  content: "Boris Kovalenko, Field Dwarfologist";
  position: absolute;
  top: 14px;
  right: 24px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 230, 180, 0.85);
}

.quote-mark {
  font-size: 32px;
  line-height: 0.8;
  color: rgba(255, 220, 140, 0.7);
  margin-bottom: 8px;
}

.quote-body {
  margin-bottom: 10px;
}

.quote-body em {
  color: #fff8db;
  font-style: normal;
  font-weight: 600;
}

.quote-foot {
  font-size: 14px;
  color: #f6e5c6;
}

/* Features */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  border-radius: var(--radius-md);
  padding: 16px 14px 14px;
  background: rgba(8, 10, 20, 0.98);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
}

.feature-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.feature-title {
  font-size: 14px;
  color: rgba(245, 245, 248, 0.96);
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #101321;
  min-height: 90px;
  padding: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 0.18s ease-out, opacity 0.18s ease-out;
}

.gallery-item:hover img {
  transform: scale(1.04);
  opacity: 1;
}

.gallery-label {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.8), transparent);
}

/* Lightbox */

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
}

.lightbox-backdrop.visible {
  display: flex;
}

.lightbox-inner {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: #05060a;
  position: relative;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95);
}

.lightbox-inner img {
  width: 100%;
  height: auto;
  display: block;
}

.lightbox-caption {
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text-muted);
  background: #05060a;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 20px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.86);
  border: none;
  background: transparent;
}

/* Footer */

footer {
  padding: 32px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #05060a;
  margin-top: 30px;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a:hover {
  color: var(--accent-strong);
}

/* Scroll animations */

[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-left"] {
  transform: translateX(20px);
}

[data-animate="fade-left"].is-visible {
  transform: translateX(0);
}

[data-animate="fade-right"] {
  transform: translateX(-20px);
}

[data-animate="fade-right"].is-visible {
  transform: translateX(0);
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid,
  .core-grid,
  .world-grid,
  .factions,
  .lore-grid,
  .traps-grid,
  .features-grid,
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .hero {
    padding-top: 60px;
  }
}

@media (max-width: 720px) {
  .nav-right {
    gap: 12px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    padding: 10px 20px 16px;
    background: rgba(5, 6, 10, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta .pill {
    display: none;
  }

  .hero-media-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media-topline {
    flex-direction: column;
    gap: 4px;
  }

  .hero-title {
    font-size: 34px;
  }

  section {
    padding: 40px 0;
  }

  .quote-card::before {
    position: static;
    display: block;
    margin-top: 10px;
  }

  .experience-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  .hero-media-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}
