@font-face {
  font-family: "Pixelify";
  src: url(../fonts/PixelifySans.ttf) format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "PS2P";
  src: url(../fonts/PressStart2P.ttf) format("truetype");
  font-display: swap;
}

:root {
  --bg: #080a14;
  --bg2: #11152b;
  --bg3: #181e3c;
  --tx: #eef0ff;
  --mu: #9ea6d1;
  --lomo-red: #ff3b4e;
  --lomo-blue: #2f7bff;
  --lomo-gold: #ffcf4a;
  --cyan: #5ce6ff;
  --bd: #283061;
  /* Matritellus Manchego Palette */
  --mat-wall: #f6f0e2;
  --mat-wall2: #ebe1cb;
  --mat-card: #fffdf7;
  --mat-ink: #3a261a;
  --mat-mu: #684c3a;
  --mat-terra: #b0452a;
  --mat-gold: #e8b23a;
  --mat-indigo: #1e45a8;
  --mat-bd: #3a261a;
  /* Datamorfos Cyber Palette */
  --dm-bg1: #0a0628;
  --dm-bg2: #1a0b4a;
  --dm-panel: rgba(12, 16, 44, 0.88);
  --dm-cyan: #66f0ff;
  --dm-pink: #ff5ce6;
  --dm-orange: #ff7a2f;
  --dm-bd: #2a468c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 18px/1.55 "Pixelify", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

.scan {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, 0.16) 2px 3px);
  z-index: 90;
  mix-blend-mode: multiply;
}

a {
  color: var(--cyan);
  transition: color 0.15s;
}

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

.pixel {
  image-rendering: pixelated;
}

/* ==================== TOP STUDIO BAR ==================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(8, 10, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--bd);
}

.topbar-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "PS2P", monospace;
  font-size: 11px;
}

.crumb-parent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mu);
  text-decoration: none;
  padding: 6px 10px;
  background: var(--bg2);
  border: 2px solid var(--bd);
}

.crumb-parent:hover {
  color: var(--lomo-gold);
  border-color: var(--lomo-gold);
}

.crumb-sep {
  color: var(--lomo-gold);
}

.crumb-current {
  color: var(--tx);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.crumb-current .x-red { color: var(--lomo-red); }
.crumb-current .x-gold { color: var(--lomo-gold); }
.crumb-current .x-blue { color: #569aff; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  order: 3;
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  font-family: "PS2P", monospace;
  font-size: 13px;
  line-height: 1;
  padding: 7px 10px;
  background: var(--bg2);
  color: var(--cyan);
  border: 2px solid var(--cyan);
  box-shadow: 3px 3px 0 #000;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  order: 2;
  margin-left: auto;
}

.nav-links a {
  color: var(--mu);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  padding: 4px 8px;
}

.nav-links a:hover {
  color: var(--lomo-gold);
}

.nav-links a.nav-mat:hover {
  color: #ff9a73;
}

.nav-links a.nav-dm:hover {
  color: var(--dm-cyan);
}

.lang-btn {
  font-family: "PS2P", monospace;
  font-size: 10px;
  padding: 8px 12px;
  background: var(--bg2);
  color: var(--lomo-gold);
  border: 2px solid var(--lomo-gold);
  box-shadow: 3px 3px 0 #000;
  cursor: pointer;
  transition: transform 0.08s;
}

.lang-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #000;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "PS2P", monospace;
  font-size: 11px;
  line-height: 1.3;
  padding: 12px 16px;
  background: var(--lomo-gold);
  color: #1a1100;
  text-decoration: none;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
  color: #1a1100;
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #000;
}

.btn.alt {
  background: var(--bg2);
  color: var(--tx);
  border-color: var(--cyan);
}

.btn.alt:hover {
  color: var(--lomo-gold);
}

.btn.mat-btn {
  background: var(--mat-terra);
  color: #fffdf7;
  border-color: var(--mat-ink);
  box-shadow: 4px 4px 0 var(--mat-ink);
}

.btn.mat-btn:hover {
  background: #c85032;
  color: #fff;
  box-shadow: 6px 6px 0 var(--mat-ink);
}

.btn.mat-alt {
  background: var(--mat-gold);
  color: var(--mat-ink);
  border-color: var(--mat-ink);
  box-shadow: 4px 4px 0 var(--mat-ink);
}

.btn.mat-indigo {
  background: var(--mat-indigo);
  color: #fff;
  border-color: var(--mat-ink);
  box-shadow: 4px 4px 0 var(--mat-ink);
}

.btn.dm-btn {
  background: linear-gradient(180deg, #6af2ff, #1ca6e8);
  color: #041022;
  border-color: #000;
}

.btn.dm-alt {
  background: rgba(18, 22, 58, 0.9);
  color: var(--dm-cyan);
  border-color: var(--dm-cyan);
}

/* ==================== STUDIO HERO ==================== */
.studio-hero {
  position: relative;
  padding: 54px 20px 72px;
  border-bottom: 4px solid var(--bd);
  background:
    radial-gradient(ellipse at 22% 35%, rgba(255, 59, 78, 0.16), transparent 52%),
    radial-gradient(ellipse at 78% 35%, rgba(47, 123, 255, 0.18), transparent 52%),
    linear-gradient(rgba(126, 224, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 224, 255, 0.04) 1px, transparent 1px),
    var(--bg);
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
}

.studio-hero-in {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.subsidiary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px 14px;
  max-width: 100%;
  line-height: 1.5;
  background: var(--bg2);
  border: 2px solid var(--bd);
  box-shadow: 4px 4px 0 #000;
  font-family: "PS2P", monospace;
  font-size: 10px;
  color: var(--lomo-gold);
  margin-bottom: 22px;
}

.logo-stage {
  position: relative;
  max-width: 780px;
  margin: 0 auto 20px;
  padding: 22px 26px;
  background: radial-gradient(circle, rgba(255, 207, 74, 0.1), rgba(10, 12, 26, 0.92) 70%);
  border: 3px solid var(--bd);
  box-shadow: 8px 8px 0 #000, 0 0 50px rgba(47, 123, 255, 0.18);
}

.logo-stage img.studio-logo {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.8));
}

.intro-video-wrap {
  display: none;
  max-width: 680px;
  margin: 0 auto;
  border: 2px solid #000;
  background: #000;
}

.intro-video-wrap.active {
  display: block;
}

.logo-stage.playing img.studio-logo {
  display: none;
}

.intro-video-wrap video {
  width: 100%;
  display: block;
}

.studio-tagline {
  font-size: clamp(20px, 2.5vw, 26px);
  color: #d6dcff;
  max-width: 780px;
  margin: 18px auto 14px;
}

.studio-sub {
  color: var(--mu);
  font-size: 17px;
  margin: 0 auto 26px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* ==================== DUAL GAME SPOTLIGHT ==================== */
.dual-spotlight {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.spot-card {
  position: relative;
  background: var(--bg2);
  border: 3px solid var(--bd);
  box-shadow: 8px 8px 0 #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
}

.spot-card:hover {
  transform: translateY(-4px);
}

.spot-card.spot-mat {
  border-color: #d99b38;
}

.spot-card.spot-mat:hover {
  border-color: #ffd166;
}

.spot-card.spot-dm {
  border-color: #36c5f0;
}

.spot-card.spot-dm:hover {
  border-color: #7ef4ff;
}

.spot-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-bottom: 3px solid var(--bd);
  overflow: hidden;
}

.spot-media img.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.spot-card:hover .spot-media img.cover {
  transform: scale(1.03);
}

.spot-badge-top {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  font-family: "PS2P", monospace;
  font-size: 9px;
  line-height: 1.4;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.88);
  border: 2px solid currentColor;
  z-index: 2;
}

.spot-mat .spot-badge-top {
  color: #ffd166;
}

.spot-dm .spot-badge-top {
  color: #66f0ff;
}

.spot-version {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-family: "PS2P", monospace;
  font-size: 10px;
  line-height: 1.3;
  padding: 6px 10px;
  background: rgba(18, 22, 41, 0.94);
  color: #4fd1a5;
  border: 2px solid #4fd1a5;
  box-shadow: 3px 3px 0 #000;
  z-index: 2;
}

.spot-corner-icon {
  position: absolute;
  right: 14px;
  bottom: 10px;
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(3px 3px 0 #000);
  z-index: 2;
}

.spot-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.spot-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.spot-title-row h2 {
  font-family: "PS2P", monospace;
  font-size: 20px;
  margin: 0;
}

.spot-mat .spot-title-row h2 {
  color: #ffd166;
}

.spot-dm .spot-title-row h2 {
  color: #66f0ff;
}

.spot-sub {
  font-size: 15px;
  color: var(--mu);
  font-weight: 700;
}

.spot-body p {
  margin: 0;
  color: #d9defc;
  font-size: 18px;
}

.spot-tags {
  list-style: none;
  padding: 0;
  margin: 4px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spot-tags li {
  font-size: 14px;
  padding: 3px 9px;
  background: #0a0c18;
  border: 2px solid var(--bd);
  color: var(--mu);
}

.spot-actions {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==================== WORLD 1: MATRITELLUS (MANCHEGO THEME) ==================== */
.tejas-border {
  height: 24px;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 18px 22px, var(--mat-terra) 16px, var(--mat-ink) 16px 19px, transparent 19px);
  background-size: 36px 24px;
  background-repeat: repeat-x;
}

.world-matritellus {
  background: var(--mat-wall);
  color: var(--mat-ink);
  border-bottom: 6px solid var(--mat-ink);
  padding: 56px 20px 80px;
  background-image:
    radial-gradient(rgba(176, 69, 42, 0.05) 1px, transparent 1px),
    radial-gradient(rgba(30, 69, 168, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
}

.mat-container {
  max-width: 1200px;
  margin: 0 auto;
}

.mat-header {
  text-align: center;
  margin-bottom: 42px;
}

.mat-crest-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.mat-crest {
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(4px 4px 0 rgba(58, 38, 26, 0.25));
}

.mat-title-img {
  max-width: 440px;
  width: 100%;
  height: auto;
}

.mat-kicker {
  display: inline-block;
  font-family: "PS2P", monospace;
  font-size: 11px;
  padding: 7px 14px;
  background: var(--mat-wall2);
  color: var(--mat-ink);
  border: 2px solid var(--mat-ink);
  box-shadow: 3px 3px 0 var(--mat-ink);
  margin-bottom: 12px;
}

.mat-lead {
  font-size: 22px;
  max-width: 860px;
  margin: 12px auto 0;
  color: var(--mat-mu);
}

/* Matritellus Hero Grid (Trailer + Synopsis/Downloads) */
.mat-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 52px;
}

.mat-video-card {
  background: var(--mat-ink);
  border: 4px solid var(--mat-ink);
  box-shadow: 8px 8px 0 rgba(58, 38, 26, 0.35);
  padding: 10px;
}

.mat-video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
  object-fit: cover;
}

.mat-video-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 6px 2px;
  color: var(--mat-wall);
  font-size: 15px;
  flex-wrap: wrap;
}

.mat-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.mat-stat {
  background: var(--mat-card);
  border: 3px solid var(--mat-ink);
  box-shadow: 4px 4px 0 var(--mat-ink);
  padding: 10px 8px;
  text-align: center;
}

.mat-stat strong {
  display: block;
  font-family: "PS2P", monospace;
  font-size: 14px;
  color: var(--mat-terra);
  margin-bottom: 4px;
}

.mat-stat span {
  font-size: 14px;
  color: var(--mat-mu);
  font-weight: 700;
}

.mat-overview-card {
  background: var(--mat-card);
  border: 4px solid var(--mat-ink);
  box-shadow: 8px 8px 0 var(--mat-ink);
  padding: 26px;
}

.mat-overview-card h3 {
  font-family: "PS2P", monospace;
  font-size: 16px;
  margin: 0 0 14px;
  color: var(--mat-terra);
}

.mat-overview-card p {
  margin: 0 0 14px;
  font-size: 18px;
  color: var(--mat-ink);
}

.mat-dialogue-sample {
  background: var(--mat-wall);
  border: 3px solid var(--mat-ink);
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 17px;
  box-shadow: inset 0 0 0 2px #fff;
}

.mat-dialogue-sample .dlg-speaker {
  font-family: "PS2P", monospace;
  font-size: 10px;
  color: var(--mat-terra);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.mat-dialogue-sample .obj-green {
  color: #1f7a3e;
  font-weight: 700;
}

.mat-dialogue-sample .npc-red {
  color: #b03020;
  font-weight: 700;
}

.mat-dialogue-sample .loc-blue {
  color: var(--mat-indigo);
  font-weight: 700;
}

.mat-dl-box {
  background: var(--mat-wall2);
  border: 3px solid var(--mat-ink);
  padding: 18px;
  margin-top: 18px;
}

.mat-dl-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.mat-dl-head strong {
  font-family: "PS2P", monospace;
  font-size: 12px;
  color: var(--mat-ink);
}

.mat-dl-badge {
  font-family: "PS2P", monospace;
  font-size: 9px;
  padding: 4px 8px;
  background: var(--mat-indigo);
  color: #fff;
}

.mat-dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.dl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 10px;
  background: var(--mat-card);
  border: 2px solid var(--mat-ink);
  box-shadow: 3px 3px 0 var(--mat-ink);
  text-decoration: none;
  color: var(--mat-ink);
  transition: transform 0.08s;
}

.dl-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--mat-ink);
  background: var(--mat-gold);
  color: var(--mat-ink);
}

.dl-item .dl-os {
  font-family: "PS2P", monospace;
  font-size: 10px;
  margin-bottom: 4px;
}

.dl-item .dl-ext {
  font-size: 14px;
  color: var(--mat-mu);
}

/* Matritellus 4 Pillars Bento */
.mat-section-title {
  font-family: "PS2P", monospace;
  font-size: 18px;
  color: var(--mat-ink);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mat-section-title span.num {
  background: var(--mat-terra);
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  border: 2px solid var(--mat-ink);
  box-shadow: 3px 3px 0 var(--mat-ink);
}

.mat-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 52px;
}

.mat-pillar {
  background: var(--mat-card);
  border: 3px solid var(--mat-ink);
  box-shadow: 6px 6px 0 var(--mat-ink);
  padding: 24px;
  position: relative;
}

.mat-pillar-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.mat-pillar-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--mat-gold);
  border: 2px solid var(--mat-ink);
  box-shadow: 3px 3px 0 var(--mat-ink);
  flex-shrink: 0;
}

.mat-pillar h4 {
  font-family: "PS2P", monospace;
  font-size: 13px;
  margin: 0;
  color: var(--mat-ink);
  line-height: 1.4;
}

.mat-pillar p {
  margin: 0 0 12px;
  color: var(--mat-mu);
  font-size: 17px;
}

.mat-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mat-chip-list li {
  font-size: 14px;
  padding: 3px 9px;
  background: var(--mat-wall);
  border: 2px solid var(--mat-ink);
  color: var(--mat-ink);
  font-weight: 700;
}

/* Matritellus Gallery & Filter */
.gallery-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-btn {
  font-family: "PS2P", monospace;
  font-size: 10px;
  padding: 9px 14px;
  background: var(--mat-wall2);
  color: var(--mat-ink);
  border: 2px solid var(--mat-ink);
  box-shadow: 3px 3px 0 var(--mat-ink);
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--mat-indigo);
  color: #fff;
}

.mat-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}

.shot-card {
  background: var(--mat-card);
  border: 3px solid var(--mat-ink);
  box-shadow: 5px 5px 0 var(--mat-ink);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.12s;
}

.shot-card:hover {
  transform: translateY(-4px);
}

.shot-card.hidden-shot {
  display: none;
}

.shot-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 3px solid var(--mat-ink);
  background: #000;
}

.shot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}

.shot-card:hover .shot-thumb img {
  transform: scale(1.04);
}

.shot-cap {
  padding: 12px 14px;
}

.shot-cap strong {
  display: block;
  font-size: 16px;
  color: var(--mat-ink);
}

.shot-cap span {
  font-size: 14px;
  color: var(--mat-mu);
}

/* Matritellus Changelog Drawer */
.mat-changelog {
  background: var(--mat-card);
  border: 3px solid var(--mat-ink);
  box-shadow: 6px 6px 0 var(--mat-ink);
}

.mat-changelog summary {
  font-family: "PS2P", monospace;
  font-size: 13px;
  padding: 18px 22px;
  cursor: pointer;
  background: var(--mat-wall2);
  color: var(--mat-ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.mat-changelog-body {
  padding: 20px 24px;
  max-height: 440px;
  overflow-y: auto;
  border-top: 3px solid var(--mat-ink);
}

.ver-row {
  padding: 12px 0;
  border-bottom: 2px dashed rgba(58, 38, 26, 0.2);
}

.ver-row:last-child {
  border-bottom: none;
}

.ver-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.ver-tag {
  font-family: "PS2P", monospace;
  font-size: 10px;
  padding: 4px 8px;
  background: var(--mat-terra);
  color: #fff;
}

.ver-date {
  font-size: 14px;
  font-weight: 700;
  color: var(--mat-mu);
}

.ver-row p {
  margin: 4px 0 0;
  font-size: 16px;
  color: var(--mat-ink);
}

/* ==================== WORLD 2: DATAMORFOS (SYNTHWAVE REALM) ==================== */
.world-datamorfos {
  position: relative;
  background: linear-gradient(180deg, var(--dm-bg1) 0%, var(--dm-bg2) 55%, #07041a 100%);
  color: var(--tx);
  padding: 72px 20px 88px;
  border-bottom: 4px solid var(--bd);
  overflow: hidden;
}

#dm-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.72;
}

.dm-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.dm-header {
  text-align: center;
  margin-bottom: 44px;
}

.dm-pills-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.dm-pills-stack .subsidiary-pill {
  margin-bottom: 0;
}

.dm-platform-pill {
  display: inline-block;
  font-family: "PS2P", monospace;
  font-size: 10px;
  padding: 7px 12px;
  background: #121629;
  color: #4fd1a5;
  border: 2px solid #4fd1a5;
  box-shadow: 4px 4px 0 #000;
}

.dm-logo-img {
  max-width: 620px;
  width: 100%;
  margin: 0 auto 10px;
  filter: drop-shadow(0 0 24px rgba(102, 240, 255, 0.45));
}

.dm-sub-img {
  max-width: 500px;
  width: 90%;
  margin: 0 auto 18px;
  image-rendering: pixelated;
}

.dm-lead {
  font-size: 21px;
  max-width: 860px;
  margin: 0 auto 24px;
  color: #d6e4ff;
}

.dm-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 940px;
  margin: 0 auto 48px;
}

.dm-stat-box {
  background: var(--dm-panel);
  border: 2px solid var(--dm-bd);
  box-shadow: 5px 5px 0 #000, inset 0 0 18px rgba(102, 240, 255, 0.08);
  padding: 14px 12px;
  text-align: center;
}

.dm-stat-box strong {
  display: block;
  font-family: "PS2P", monospace;
  font-size: 15px;
  color: var(--dm-cyan);
  margin-bottom: 6px;
}

.dm-stat-box span {
  font-size: 15px;
  color: var(--mu);
}

/* ==================== INTERACTIVE WEB DATADEX ==================== */
.datadex-shell {
  background: rgba(10, 12, 34, 0.94);
  border: 3px solid var(--dm-cyan);
  box-shadow: 8px 8px 0 #000, 0 0 40px rgba(102, 240, 255, 0.2);
  padding: 26px;
  margin-bottom: 56px;
}

.datadex-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--dm-bd);
}

.datadex-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.datadex-title h3 {
  font-family: "PS2P", monospace;
  font-size: 17px;
  margin: 0;
  color: var(--dm-cyan);
}

.datadex-hint {
  font-size: 16px;
  color: var(--mu);
}

.dex-lines-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.dex-line-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
  background: #10163a;
  border: 2px solid var(--dm-bd);
  box-shadow: 3px 3px 0 #000;
  color: var(--tx);
  cursor: pointer;
  transition: transform 0.1s, border-color 0.1s;
}

.dex-line-btn img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: pixelated;
}

.dex-line-btn span.ln-name {
  font-family: "PS2P", monospace;
  font-size: 9px;
  text-align: center;
}

.dex-line-btn span.ln-elem {
  font-size: 13px;
  color: var(--mu);
}

.dex-line-btn:hover,
.dex-line-btn.active {
  border-color: var(--line-col, var(--dm-cyan));
  background: #1a2358;
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 #000, 0 0 14px rgba(102, 240, 255, 0.25);
}

.dex-main-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 26px;
  align-items: stretch;
}

.dex-stage-pedestal {
  background: radial-gradient(circle at 50% 62%, rgba(102, 240, 255, 0.22), rgba(7, 9, 26, 0.95) 72%);
  border: 3px solid var(--dm-bd);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  position: relative;
  min-height: 310px;
}

.dex-pedestal-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.dex-stage-badge {
  font-family: "PS2P", monospace;
  font-size: 9px;
  line-height: 1.3;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--lomo-gold);
  border: 2px solid var(--lomo-gold);
}

.dex-level-badge {
  font-family: "PS2P", monospace;
  font-size: 9px;
  line-height: 1.3;
  padding: 5px 8px;
  background: #131b46;
  color: var(--dm-cyan);
  border: 2px solid var(--dm-cyan);
}

.dex-big-sprite {
  width: 176px;
  height: 176px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.85));
  animation: dexFloat 2.8s ease-in-out infinite;
}

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

.dex-pedestal-ring {
  width: 150px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(102, 240, 255, 0.45), transparent 70%);
  margin-top: -8px;
}

.dex-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.dex-creature-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.dex-creature-header h4 {
  font-family: "PS2P", monospace;
  font-size: 22px;
  margin: 0;
  color: var(--lomo-gold);
}

.dex-elem-pill {
  font-family: "PS2P", monospace;
  font-size: 10px;
  padding: 6px 10px;
  background: #172052;
  border: 2px solid var(--dm-cyan);
  color: var(--dm-cyan);
}

.dex-lore-box {
  background: #0c102b;
  border-left: 4px solid var(--dm-pink);
  padding: 14px 18px;
  font-size: 19px;
  color: #e5ecff;
  font-style: italic;
}

.dex-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.dex-spec {
  background: #0f1538;
  border: 2px solid var(--dm-bd);
  padding: 10px 14px;
}

.dex-spec span.lbl {
  display: block;
  font-family: "PS2P", monospace;
  font-size: 9px;
  color: var(--mu);
  margin-bottom: 5px;
}

.dex-spec strong {
  font-size: 17px;
  color: var(--dm-cyan);
}

/* 5 Evolution Stages Strip */
.dex-evo-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 6px;
}

.dex-evo-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  background: #0d1230;
  border: 2px solid var(--dm-bd);
  cursor: pointer;
  color: var(--tx);
  transition: border-color 0.1s, background 0.1s;
}

.dex-evo-step img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  image-rendering: pixelated;
}

.dex-evo-step .st-num {
  font-family: "PS2P", monospace;
  font-size: 8px;
  color: var(--mu);
}

.dex-evo-step .st-name {
  font-weight: 700;
  font-size: 14px;
  text-align: center;
}

.dex-evo-step.active,
.dex-evo-step:hover {
  border-color: var(--lomo-gold);
  background: #1b245e;
}

/* ==================== DATAMORFOS 5 MAPS & PILLARS ==================== */
.dm-section-title {
  font-family: "PS2P", monospace;
  font-size: 18px;
  color: var(--dm-cyan);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dm-section-title span.num {
  background: var(--dm-pink);
  color: #090418;
  padding: 6px 10px;
  font-size: 12px;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
}

.dm-maps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 52px;
}

.dm-map-card {
  background: var(--dm-panel);
  border: 2px solid var(--map-col, var(--dm-bd));
  box-shadow: 5px 5px 0 #000;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dm-map-num {
  font-family: "PS2P", monospace;
  font-size: 9px;
  color: var(--map-col, var(--dm-cyan));
}

.dm-map-card h4 {
  font-family: "PS2P", monospace;
  font-size: 12px;
  margin: 0;
  color: #fff;
  line-height: 1.4;
}

.dm-map-card p {
  margin: 0;
  font-size: 15px;
  color: #c5d1f7;
}

.dm-map-boss {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
  font-size: 14px;
  color: var(--lomo-gold);
  font-weight: 700;
}

.dm-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 52px;
}

.dm-pillar {
  background: var(--dm-panel);
  border: 3px solid var(--dm-bd);
  box-shadow: 6px 6px 0 #000;
  padding: 22px;
}

.dm-pillar h4 {
  font-family: "PS2P", monospace;
  font-size: 13px;
  color: var(--dm-cyan);
  margin: 0 0 10px;
  line-height: 1.4;
}

.dm-pillar p {
  margin: 0;
  color: #d2dcff;
  font-size: 17px;
}

/* Datamorfos Gallery */
.dm-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 52px;
}

.dm-shot-card {
  background: var(--dm-panel);
  border: 3px solid var(--dm-bd);
  box-shadow: 6px 6px 0 #000;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s;
}

.dm-shot-card:hover {
  transform: translateY(-4px);
  border-color: var(--dm-cyan);
}

.dm-shot-card .shot-thumb {
  border-bottom: 3px solid var(--dm-bd);
}

.dm-shot-card .shot-cap strong {
  color: var(--tx);
}

.dm-shot-card .shot-cap span {
  color: var(--mu);
}

/* Datamorfos Credits Box */
.dm-credits-bar {
  background: rgba(12, 16, 44, 0.92);
  border: 3px solid var(--dm-pink);
  box-shadow: 6px 6px 0 #000;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.dm-team-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.dm-team-member span {
  display: block;
  font-family: "PS2P", monospace;
  font-size: 9px;
  color: var(--dm-pink);
  margin-bottom: 4px;
}

.dm-team-member strong {
  font-size: 17px;
  color: #fff;
}

/* ==================== STUDIO FOOTER / LOMOXSOFT ECOSYSTEM ==================== */
.studio-about {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}

.about-card {
  background: var(--bg2);
  border: 3px solid var(--bd);
  box-shadow: 6px 6px 0 #000;
  padding: 26px;
}

.about-card h3 {
  font-family: "PS2P", monospace;
  font-size: 15px;
  color: var(--lomo-gold);
  margin: 0 0 14px;
}

.about-card p {
  margin: 0 0 12px;
  color: #d6dcff;
}

footer {
  border-top: 4px solid var(--bd);
  background: #05060d;
  padding: 36px 20px;
  text-align: center;
  color: var(--mu);
  font-size: 15px;
}

footer img.foot-logo {
  max-width: 240px;
  margin: 0 auto 14px;
  image-rendering: pixelated;
}

/* ==================== LIGHTBOX MODAL ==================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 6, 14, 0.92);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-in {
  max-width: 1120px;
  width: 100%;
  background: var(--bg2);
  border: 3px solid var(--cyan);
  box-shadow: 10px 10px 0 #000;
  overflow: hidden;
}

.lightbox-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #0a0c18;
  border-bottom: 2px solid var(--bd);
}

.lightbox-top strong {
  font-family: "PS2P", monospace;
  font-size: 11px;
  color: var(--lomo-gold);
}

.lightbox-close {
  font-family: "PS2P", monospace;
  font-size: 11px;
  background: var(--lomo-red);
  color: #fff;
  border: 2px solid #000;
  padding: 6px 10px;
  cursor: pointer;
}

.lightbox-img-wrap {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 78vh;
}

.lightbox-img-wrap img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 980px) {
  .dual-spotlight,
  .mat-hero-grid,
  .dex-main-grid,
  .studio-about {
    grid-template-columns: 1fr;
  }
  .dex-lines-tabs {
    grid-template-columns: repeat(3, 1fr);
  }
  .dm-maps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mat-gallery,
  .dm-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .topbar-in {
    padding: 8px 12px;
    gap: 8px;
  }
  .crumb {
    font-size: 9.5px;
    gap: 6px;
  }
  .crumb-parent {
    padding: 5px 8px;
    gap: 5px;
  }
  .lang-btn {
    padding: 6px 9px;
    font-size: 9px;
  }
  .menu-btn {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    width: 100%;
    order: 4;
    margin: 4px 0 2px;
    padding-top: 10px;
    border-top: 2px solid var(--bd);
  }
  .nav-links.open {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .nav-links a {
    background: var(--bg2);
    border: 2px solid var(--bd);
    padding: 8px 10px;
    text-align: center;
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .spot-badge-top {
    font-size: 8px;
    padding: 5px 8px;
  }
  .spot-version {
    font-size: 9px;
    padding: 5px 8px;
  }
  .spot-corner-icon {
    width: 62px;
    height: 62px;
  }
  .subsidiary-pill,
  .dm-platform-pill,
  .mat-kicker {
    font-size: 8.5px;
    padding: 6px 10px;
    line-height: 1.5;
  }
  .mat-bento,
  .dm-bento,
  .mat-gallery,
  .dm-gallery,
  .dm-maps-grid,
  .mat-dl-grid {
    grid-template-columns: 1fr;
  }
  .mat-stats-strip,
  .dm-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .dex-evo-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .dex-specs-grid {
    grid-template-columns: 1fr;
  }
}
