@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400;1,600&family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #050507;
  --bg-elevated: #0a0b0e;
  --bg-panel: #0e1015;
  --line: rgba(255, 255, 255, 0.13);
  --line-subtle: rgba(255, 255, 255, 0.07);
  --line-hover: rgba(255, 255, 255, 0.45);
  --accent-red: #c91e2e;
  --accent-gold: #c8a464;
  --text: #f2f4f7;
  --text-secondary: #a7adb8;
  --text-muted: #6c7380;

  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
}

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

/* Subtle Snow / Ash Canvas */
#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.75;
}

.container {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────
   1. TOP NAVIGATION (VILLAGE TRANSPARENT OVERLAY BAR)
   ───────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 70%, transparent 100%);
  transition: background 250ms ease, border-color 250ms ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header.scrolled {
  background: rgba(5, 5, 7, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand-logo {
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-logo-main {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.08em;
  color: #fff;
}

.brand-logo-sub {
  font-size: 7.5px;
  letter-spacing: 0.34em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  transition: color 180ms ease;
  padding: 6px 0;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #fff;
}

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

.icon-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: all 180ms ease;
}

.icon-link:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline-sm {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  transition: all 180ms ease;
}

.btn-outline-sm:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Button & Drawer (Hidden on Desktop) */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: all 180ms ease;
}

.mobile-menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #fff;
  transition: transform 200ms ease, opacity 200ms ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.mobile-nav-drawer {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 18px 20px 22px;
  background: rgba(5, 5, 8, 0.98);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-item {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 160ms ease, padding-left 160ms ease;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
  color: var(--accent-gold);
  padding-left: 14px;
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}

.mobile-nav-cta,
.mobile-nav-live {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ─────────────────────────────────────────────────────────
   2. HERO SECTION (EXACT VILLAGE MONUMENTAL POSTER)
   ───────────────────────────────────────────────────────── */
.hero-stage {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px 0 36px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-subtle);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(ellipse 75% 65% at 50% 35%, rgba(5, 5, 7, 0.35) 0%, rgba(5, 5, 7, 0.88) 70%, #050507 100%),
    linear-gradient(180deg, rgba(5, 5, 7, 0.55) 0%, rgba(5, 5, 7, 0.35) 45%, #050507 100%),
    url('assets/ada-wide.jpg');
  background-size: cover;
  background-position: center 20%;
  filter: contrast(1.08) saturate(0.85);
  transform: scale(1.02);
}

.hero-center {
  position: relative;
  z-index: 2;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 0;
}

.hero-monument {
  font-family: var(--font-display);
  font-size: clamp(82px, 14vw, 172px);
  line-height: 0.86;
  letter-spacing: 0.03em;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.95);
  user-select: none;
}

.hero-sub-spaced {
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.5vw, 17px);
  font-weight: 600;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: #e2e6ee;
  margin-top: 10px;
  margin-bottom: 24px;
  padding-left: 0.52em; /* optical balance for letter-spacing */
}

.hero-release {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 26px;
  padding-left: 0.38em;
}

.btn-village {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 34px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: all 200ms ease;
}

.btn-village:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* Hero Bottom Metadata Bar (CAPCOM | PS5 | 18 RE.NET equivalent) */
.hero-bottom-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
}

.hero-studio-mark {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.85);
}

.hero-platform-specs {
  text-align: center;
  line-height: 1.5;
}

.hero-platform-specs strong {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.2em;
  display: block;
  font-size: 10.5px;
}

.hero-platform-specs span {
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.hero-age-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-red-box {
  background: var(--accent-red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  padding: 6px 9px 4px;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.badge-red-label {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d8dde6;
  line-height: 1.3;
}

/* ─────────────────────────────────────────────────────────
   3. CHARACTER & THEME SPOTLIGHT (ETHAN WINTERS SECTION)
   ───────────────────────────────────────────────────────── */
.spotlight-section {
  position: relative;
  padding: 90px 0 70px;
  background: #050507;
  overflow: hidden;
  border-bottom: 1px solid var(--line-subtle);
}

/* Right-side ambient environment screenshot bleeding into pure black */
.spotlight-env-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 64%;
  height: 100%;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.34;
  transition: background-image 400ms ease, opacity 300ms ease;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 35%, rgba(0, 0, 0, 0.95) 100%),
              linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 35%, rgba(0, 0, 0, 0.95) 100%);
}

.spotlight-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 24px;
  align-items: center;
  min-height: 520px;
}

/* Left Column: Ethan Winters style clean serif + narrative */
.spot-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 360px;
}

.spot-kicker {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.spot-serif-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: 18px;
}

.spot-paragraph {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
}

.spot-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.spot-meta-tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #cfd5df;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.spot-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-hairline {
  padding: 10px 20px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-decoration: none;
  cursor: pointer;
  transition: all 180ms ease;
}

.btn-hairline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.btn-hairline.primary {
  border-color: var(--accent-gold);
  color: #fff;
  background: rgba(200, 164, 100, 0.14);
}

.btn-hairline.primary:hover {
  background: rgba(200, 164, 100, 0.28);
}

/* Center Column: Standing / Portrait Character */
.spot-center {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spot-character-frame {
  position: relative;
  width: 100%;
  max-width: 390px;
  height: 470px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spot-character-img {
  max-width: 100%;
  max-height: 460px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.95);
  transition: opacity 260ms ease, transform 260ms ease;
}

/* Right Column: Vertical Scene Thumbnails + Right-aligned Lore Note */
.spot-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.spot-vertical-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spot-v-thumb {
  width: 78px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #000;
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 180ms ease;
}

.spot-v-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: opacity 180ms ease, transform 220ms ease;
}

.spot-v-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.9) 2px, transparent 3px);
  opacity: 0.7;
  pointer-events: none;
}

.spot-v-thumb:hover,
.spot-v-thumb.active {
  border-color: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.25);
}

.spot-v-thumb:hover img,
.spot-v-thumb.active img {
  opacity: 1;
  transform: scale(1.06);
}

.spot-right-note {
  text-align: right;
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 280px;
}

/* Bottom Circular Avatar Switcher (Monochrome -> Lit Active) */
.spot-avatars-bar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-top: 44px;
}

.avatar-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: #0a0b0e;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: all 240ms ease;
  position: relative;
}

.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.85) brightness(0.65);
  transition: all 240ms ease;
}

.avatar-circle:hover img {
  filter: grayscale(0.2) brightness(0.95);
}

.avatar-circle.active {
  border-color: #fff;
  transform: scale(1.12);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.28);
}

.avatar-circle.active img {
  filter: grayscale(0) brightness(1.05);
}

/* ─────────────────────────────────────────────────────────
   4. "EDICIONES" — EDITORIAL CATALOG (CLEAN, UNCLUTTERED)
   ───────────────────────────────────────────────────────── */
.editions-section {
  position: relative;
  padding: 90px 0 80px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 255, 255, 0.03), transparent 70%),
    #050507;
  border-bottom: 1px solid var(--line-subtle);
}

.editions-heading-wrap {
  text-align: center;
  margin-bottom: 36px;
}

.editions-monument-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 76px);
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1;
  text-transform: uppercase;
}

.editions-sub-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line-subtle);
  padding-bottom: 12px;
}

.editions-sub-bar h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: #e4e7ee;
}

.editions-sub-bar span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* 2x2 Spacious Grid so Poster & Buttons NEVER Squish */
.editions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 36px;
}

.edition-item {
  display: flex;
  flex-direction: column;
}

.edition-poster-box {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0a0c10;
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
  margin-bottom: 18px;
  cursor: pointer;
}

.edition-poster-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 380ms ease, filter 380ms ease;
}

.edition-item:hover .edition-poster-box img {
  transform: scale(1.03);
}

.edition-poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, transparent 45%, rgba(5,5,7,0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 18px;
}

.edition-ss-count {
  align-self: flex-end;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 4px 10px;
  backdrop-filter: blur(6px);
}

.edition-poster-brand {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.edition-poster-logo {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.05em;
  color: #fff;
  line-height: 0.95;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.9);
}

.edition-poster-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.edition-name-serif {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.edition-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
  flex: 1;
}

.edition-feature-list li {
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.edition-feature-list li::before {
  content: '•';
  color: #fff;
  font-size: 13px;
}

/* Exact Village Bottom Price + Action Row */
.edition-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  gap: 12px;
}

.edition-price-tag {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
}

.edition-price-tag small {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 11px;
  margin-left: 4px;
}

.edition-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-edition {
  padding: 8px 16px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-decoration: none;
  cursor: pointer;
  transition: all 180ms ease;
}

.btn-edition:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.btn-edition.highlight {
  border-color: var(--accent-gold);
  background: rgba(200, 164, 100, 0.12);
}

.btn-edition.highlight:hover {
  background: rgba(200, 164, 100, 0.26);
}

/* ─────────────────────────────────────────────────────────
   5. "LOCACIONES JUGABLES" -> LIVE 56-SCREENSHOT GALLERY
   ───────────────────────────────────────────────────────── */
.locations-section {
  position: relative;
  padding: 90px 0;
  background: #050507;
  border-bottom: 1px solid var(--line-subtle);
}

.locations-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
}

.locations-left h2 {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 14px;
}

.locations-left p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.gallery-filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-pill {
  padding: 6px 11px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 160ms ease;
}

.filter-pill:hover,
.filter-pill.active {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.carousel-arrows {
  display: flex;
  align-items: center;
  gap: 10px;
}

.arrow-btn {
  width: 38px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: all 160ms ease;
}

.arrow-btn:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* Right Horizontal Track of 7 Panel Screens */
.locations-track-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  padding-bottom: 12px;
}

.locations-track {
  display: flex;
  gap: 20px;
}

.location-card {
  flex: 0 0 340px;
  cursor: pointer;
  group: location;
}

.location-card.mobile-mode {
  flex: 0 0 210px;
}

.location-img-box {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  background: #0a0b0e;
  margin-bottom: 12px;
}

.location-card.mobile-mode .location-img-box {
  aspect-ratio: 9 / 19.5;
}

.location-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 300ms ease;
}

.location-card:hover .location-img-box img {
  transform: scale(1.04);
}

.location-card h4 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.location-card span {
  font-size: 11px;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────────────────
   6. COMPATIBILITY NOTICE & CLI INSTALLATION
   ───────────────────────────────────────────────────────── */
.arch-section {
  padding: 90px 0;
  background: #07080b;
  border-bottom: 1px solid var(--line-subtle);
}

.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.compat-card {
  border: 1px solid rgba(201, 30, 46, 0.55);
  border-left: 4px solid var(--accent-red);
  background: linear-gradient(180deg, rgba(28, 8, 12, 0.65) 0%, rgba(10, 11, 15, 0.9) 100%);
  padding: 28px;
}

.compat-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #fff;
  background: var(--accent-red);
  padding: 3px 9px;
  margin-bottom: 14px;
}

.compat-card h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.compat-card p {
  font-size: 13px;
  color: #c6cdd8;
  line-height: 1.7;
  margin-bottom: 18px;
}

.compat-matrix {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.matrix-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.matrix-ok { color: #5ce5b4; }
.matrix-no { color: #ff6b81; }

/* Installation Column */
.install-box h3 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.install-box > p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.steps-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.step-mini {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.step-mini strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent-gold);
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.step-mini span {
  font-size: 12px;
  color: var(--text-secondary);
}

.terminal-window {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #030406;
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-secondary);
}

.terminal-pre {
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.75;
  color: #e4eaf2;
  overflow-x: auto;
}

.terminal-pre .c { color: #636e7e; }
.terminal-pre .k { color: #e2b86b; }
.terminal-pre .s { color: #8abeb7; }

/* ─────────────────────────────────────────────────────────
   7. FULL-SCREEN 14-SCREENSHOT DOCUMENTATION MODAL
   ───────────────────────────────────────────────────────── */
.doc-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(3, 4, 6, 0.96);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

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

.doc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: #08090c;
  gap: 16px;
  flex-wrap: wrap;
}

.doc-modal-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.doc-modal-title-group h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: #fff;
}

.doc-theme-tabs {
  display: flex;
  gap: 6px;
}

.doc-theme-tab {
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}

.doc-theme-tab.active {
  color: #fff;
  border-color: var(--accent-gold);
  background: rgba(200, 164, 100, 0.16);
}

.doc-view-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.doc-view-btn {
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}

.doc-view-btn.active {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.doc-close-btn {
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fff;
  background: rgba(201, 30, 46, 0.25);
  border: 1px solid var(--accent-red);
  cursor: pointer;
}

.doc-close-btn:hover {
  background: var(--accent-red);
}

/* Modal Body: Sidebar of 7 Pages + Main Dual/Single Stage */
.doc-modal-body {
  flex: 1;
  display: grid;
  grid-template-columns: 270px 1fr;
  overflow: hidden;
}

.doc-page-sidebar {
  border-right: 1px solid var(--line);
  background: #07080b;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-page-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  text-align: left;
  transition: all 160ms ease;
}

.doc-page-item img {
  width: 68px;
  height: 44px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.doc-page-item-info strong {
  display: block;
  font-size: 11.5px;
  color: #fff;
  font-weight: 600;
}

.doc-page-item-info span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-muted);
}

.doc-page-item:hover,
.doc-page-item.active {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

/* Main Stage inside Modal */
.doc-stage-canvas {
  padding: 24px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.doc-stage-frames {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
  max-height: calc(100vh - 190px);
}

.frame-desktop-wrap {
  flex: 1;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.frame-desktop-wrap img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9);
}

.frame-mobile-wrap {
  width: 250px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.frame-mobile-wrap img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9);
}

.frame-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
  margin-top: 8px;
  text-transform: uppercase;
}

.doc-stage-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}

/* ─────────────────────────────────────────────────────────
   8. FOOTER (OFFICIAL MIRAINOVA WATERMARK)
   ───────────────────────────────────────────────────────── */
.site-footer {
  padding: 60px 0 40px;
  background: #030305;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-subtle);
}

.footer-wm-box strong {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.1em;
  color: #fff;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.footer-wm-box p {
  font-size: 12.5px;
  color: var(--text-secondary);
  max-width: 420px;
}

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

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-col a {
  text-decoration: none;
  font-size: 12.5px;
  color: var(--text-secondary);
  transition: color 160ms ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Toast */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  padding: 12px 20px;
  background: #0e1015;
  border: 1px solid #fff;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 180ms ease;
  pointer-events: none;
}

.toast-msg.show {
  opacity: 1;
  transform: translateY(0);
}

/* Prevent CSS Grid blowout on narrow viewports */
.spotlight-stage > *,
.editions-grid > *,
.locations-layout > *,
.arch-grid > *,
.doc-modal-body > * {
  min-width: 0;
}

/* ─────────────────────────────────────────────────────────
   9. RESPONSIVE BREAKPOINTS (TABLET, MOBILE, COMPACT PHONE)
   ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .container {
    width: calc(100% - 48px);
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    font-size: 9.5px;
    letter-spacing: 0.14em;
  }

  .spotlight-env-bg {
    width: 100%;
    height: 48%;
    opacity: 0.24;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 65%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 65%, transparent 100%);
  }

  .spotlight-stage {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
    min-height: auto;
  }

  .spot-left {
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
  }

  .spot-meta-tags,
  .spot-btn-row {
    justify-content: center;
  }

  .spot-character-frame {
    height: auto;
    max-height: 420px;
  }

  .spot-character-img {
    max-height: 400px;
  }

  .spot-right {
    align-items: center;
    gap: 16px;
  }

  .spot-vertical-thumbs {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .spot-right-note {
    text-align: center;
    max-width: 460px;
  }

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

  .locations-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .arch-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .doc-modal-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .doc-page-sidebar {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 10px 16px;
    -webkit-overflow-scrolling: touch;
  }

  .doc-page-item {
    flex: 0 0 200px;
  }
}

@media (max-width: 768px) {
  .container {
    width: calc(100% - 28px);
  }

  /* Header & Mobile Nav */
  .nav-bar {
    height: 60px;
  }

  .brand-logo-main {
    font-size: 22px;
  }

  .brand-logo-sub {
    font-size: 6.5px;
    letter-spacing: 0.24em;
  }

  .nav-links {
    display: none;
  }

  .nav-live-btn {
    display: none;
  }

  .nav-icons {
    gap: 8px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Hero Section */
  .hero-stage {
    min-height: auto;
    padding: 96px 0 28px;
    gap: 28px;
  }

  .hero-center {
    padding: 20px 0 12px;
  }

  .hero-monument {
    font-size: clamp(50px, 15.5vw, 92px);
    line-height: 0.9;
  }

  .hero-sub-spaced {
    font-size: 11px;
    letter-spacing: 0.26em;
    padding-left: 0.26em;
    margin-top: 8px;
    margin-bottom: 16px;
  }

  .hero-release {
    font-size: 9.5px;
    letter-spacing: 0.14em;
    padding-left: 0;
    line-height: 1.65;
    margin-bottom: 22px;
    max-width: 320px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    gap: 10px;
  }

  .hero-cta-group .btn-village {
    width: 100%;
    padding: 12px 20px;
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .hero-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding-top: 18px;
  }

  .hero-studio-mark {
    font-size: 15px;
  }

  .hero-platform-specs strong {
    font-size: 9.5px;
    letter-spacing: 0.12em;
    line-height: 1.5;
  }

  .hero-platform-specs span {
    display: block;
    margin-top: 4px;
    font-size: 9px;
    line-height: 1.45;
  }

  .hero-age-badge {
    justify-content: center;
    text-align: left;
  }

  /* Spotlight Section */
  .spotlight-section,
  .editions-section,
  .locations-section,
  .arch-section {
    padding: 56px 0;
  }

  .spot-serif-title {
    font-size: 34px;
    margin-bottom: 12px;
  }

  .spot-paragraph {
    font-size: 12.5px;
    line-height: 1.65;
    margin-bottom: 18px;
  }

  .spot-btn-row {
    width: 100%;
    max-width: 340px;
    flex-direction: column;
    gap: 10px;
  }

  .spot-btn-row .btn-hairline {
    width: 100%;
    text-align: center;
    padding: 11px 16px;
  }

  .spot-character-frame {
    max-width: 290px;
    max-height: 350px;
  }

  .spot-character-img {
    max-height: 330px;
  }

  .spot-vertical-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    width: 100%;
    max-width: 360px;
  }

  .spot-v-thumb {
    width: 100%;
    height: 44px;
  }

  .spot-avatars-bar {
    gap: 14px;
    margin-top: 32px;
  }

  .avatar-circle {
    width: 54px;
    height: 54px;
  }

  /* Editions Section */
  .editions-heading-wrap {
    margin-bottom: 22px;
  }

  .editions-monument-title {
    font-size: clamp(38px, 11vw, 56px);
  }

  .editions-sub-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 20px;
  }

  .editions-sub-bar h3 {
    font-size: 19px;
  }

  .editions-sub-bar span {
    font-size: 9.5px;
    letter-spacing: 0.08em;
  }

  .edition-poster-overlay {
    padding: 10px 12px;
  }

  .edition-ss-count {
    font-size: 8.5px;
    padding: 3px 8px;
    letter-spacing: 0.08em;
  }

  .edition-poster-logo {
    font-size: 24px;
  }

  .edition-poster-sub {
    font-size: 8.5px;
    letter-spacing: 0.14em;
  }

  .edition-name-serif {
    font-size: 21px;
  }

  .edition-action-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .edition-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .btn-edition {
    text-align: center;
    padding: 10px 10px;
    font-size: 9.5px;
    letter-spacing: 0.12em;
  }

  /* 56-Screenshot Carousel Section */
  .locations-left h2 {
    font-size: 30px;
  }

  .locations-track-wrap {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin: 0 -14px;
    padding: 0 14px 12px;
  }

  .location-card {
    flex: 0 0 min(290px, 80vw);
    scroll-snap-align: start;
  }

  .location-card.mobile-mode {
    flex: 0 0 185px;
  }

  /* Compatibility & CLI Section */
  .compat-card {
    padding: 20px 16px;
  }

  .compat-card h3,
  .install-box h3 {
    font-size: 24px;
  }

  .matrix-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 8px 0;
  }

  .steps-mini-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .terminal-bar {
    padding: 8px 12px;
    font-size: 9.5px;
    gap: 8px;
  }

  .terminal-pre {
    padding: 14px 12px;
    font-size: 11px;
    line-height: 1.65;
  }

  /* Footer */
  .site-footer {
    padding: 44px 0 32px;
  }

  .footer-links-row {
    gap: 28px;
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 10px;
    line-height: 1.5;
  }

  /* Full-Screen 14-Screenshot Inspector Modal on Mobile */
  .doc-modal-header {
    padding: 10px 12px;
    gap: 8px;
  }

  .doc-modal-title-group {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 8px;
  }

  .doc-modal-title-group h3 {
    font-size: 15px;
    line-height: 1.25;
    padding-right: 76px;
  }

  .doc-theme-tabs {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .doc-theme-tab {
    flex: 0 0 auto;
    padding: 5px 10px;
    font-size: 9px;
  }

  .doc-view-controls {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }

  .doc-view-btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 5px 8px;
    font-size: 9px;
  }

  #docModalDownload {
    flex: 1 1 100%;
    text-align: center;
    padding: 6px 10px;
    font-size: 9.5px;
  }

  .doc-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 5px 10px;
    font-size: 9.5px;
  }

  .doc-page-sidebar {
    padding: 8px 12px;
    gap: 8px;
  }

  .doc-page-item {
    flex: 0 0 165px;
    padding: 6px;
    gap: 8px;
  }

  .doc-page-item img {
    width: 48px;
    height: 32px;
  }

  .doc-page-item-info strong {
    font-size: 10.5px;
  }

  .doc-page-item-info span {
    font-size: 8.5px;
  }

  .doc-stage-canvas {
    padding: 14px 12px 20px;
    justify-content: flex-start;
    gap: 14px;
  }

  .doc-stage-frames {
    flex-direction: column;
    max-height: none;
    gap: 18px;
  }

  .frame-desktop-wrap img {
    max-height: 46vh;
  }

  .frame-mobile-wrap {
    width: min(220px, 68vw) !important;
  }

  .frame-mobile-wrap img {
    max-height: 48vh;
  }

  .frame-caption {
    font-size: 9px;
    text-align: center;
    line-height: 1.4;
  }

  .doc-stage-nav {
    width: 100%;
    justify-content: space-between;
    font-size: 9.5px;
    gap: 8px;
    text-align: center;
    padding-top: 6px;
    border-top: 1px solid var(--line-subtle);
  }

  .toast-msg {
    left: 16px;
    right: 16px;
    bottom: 16px;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .brand-logo-main {
    font-size: 19px;
  }

  .brand-logo-sub {
    display: none;
  }

  .hero-monument {
    font-size: 46px;
  }

  .avatar-circle {
    width: 48px;
    height: 48px;
  }
}
