/* ==========================================================================
   Naskia Games Studios — Official Design System
   Aligned 1:1 with Skybound Labyrinth's Dark-Obsidian & Voxel-Gold UI
   (Menus.uss, HeroPick.uss, Hud.uss, Theme.uss)
   ========================================================================== */

:root {
  --bg-0: #080b0c;
  --bg-1: #0b0f10;
  --bg-2: #0e1314;
  --bg-3: #141a1b;
  --bg-4: #1a2122;
  --plate: rgba(11, 15, 16, 0.86);
  --plate-on: rgba(20, 27, 29, 0.96);

  --ink-bright: #f4efe4;
  --ink: #ece6d6;
  --ink-parchment: #d8d2c2;
  --ink-sand: #c9b98a;
  --ink-muted: #9a9282;
  --ink-taupe: #8a8472;
  --ink-dim: #5e6664;

  --gold-bright: #ffd75a;
  --gold: #e6c56a;
  --brass: #c9a24a;
  --bronze: #6a5a30;
  --bronze-dark: #3a3426;
  --gold-line: rgba(230, 197, 106, 0.34);
  --gold-line-strong: rgba(230, 197, 106, 0.72);

  --verdigris-bright: #9fe0d0;
  --verdigris: #5fb8a6;
  --verdigris-mid: #2f7d70;
  --verdigris-deep: #16433c;
  --verdigris-line: rgba(95, 184, 166, 0.48);

  --slate-edge: rgba(58, 74, 70, 0.58);
  --slate-edge-strong: rgba(90, 106, 102, 0.72);
  --line: rgba(244, 239, 228, 0.08);

  --font-display: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 2px;
  --container: 1220px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background-color: var(--bg-0);
  /* Subtle Skybound pixel-mosaic margin texture */
  background-image:
    linear-gradient(45deg, rgba(22, 67, 60, 0.07) 25%, transparent 25%, transparent 75%, rgba(22, 67, 60, 0.07) 75%),
    linear-gradient(45deg, rgba(22, 67, 60, 0.07) 25%, transparent 25%, transparent 75%, rgba(22, 67, 60, 0.07) 75%);
  background-size: 64px 64px;
  background-position: 0 0, 32px 32px;
  color: var(--ink);
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

::selection {
  background: rgba(230, 197, 106, 0.28);
  color: var(--ink-bright);
}

/* ==========================================================================
   Shared Obsidian-Gold Micro-Ornaments (.mm-head / .hc-head / .gh-pip)
   ========================================================================== */

.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-sand);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--gold);
  flex-shrink: 0;
}

.eyebrow-verdigris {
  color: var(--verdigris-bright);
}

.eyebrow-verdigris::before {
  background: var(--verdigris);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.12;
  color: var(--ink-bright);
  margin: 0;
}

.rule-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.95rem;
}

.rule-row.center {
  justify-content: center;
}

.rule-pip {
  width: 5px;
  height: 5px;
  background: var(--gold);
  flex-shrink: 0;
}

.rule-line {
  width: 156px;
  height: 1px;
  background: rgba(230, 197, 106, 0.42);
}

/* ==========================================================================
   Header / Navigation (Obsidian Top Bar)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  padding-block: 0.95rem;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), padding 0.25s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled,
.site-header.solid {
  padding-block: 0.72rem;
  background: rgba(8, 11, 12, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--slate-edge);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}

.brand:hover .brand-mark {
  transform: scale(1.06);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-bright);
}

.brand-sub {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.18s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink-bright);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Sharp obsidian segmented toggle (.mo-pill style) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--bg-1);
  border: 1px solid var(--slate-edge);
}

.lang-btn {
  padding: 0.34rem 0.72rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.lang-btn + .lang-btn {
  border-left: 1px solid var(--slate-edge);
}

.lang-btn[aria-pressed="true"] {
  background: rgba(230, 197, 106, 0.16);
  color: var(--gold);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--slate-edge);
  background: var(--bg-1);
  align-items: center;
  justify-content: center;
  color: var(--ink-bright);
}

/* ==========================================================================
   Action Plates / Buttons (1:1 .mm-btn style from Menus.uss)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 50px;
  padding: 0.78rem 1.35rem 0.78rem 1.45rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), padding-left 0.15s var(--ease), color 0.15s var(--ease);
}

.btn-diamond {
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}

.btn-primary {
  color: var(--ink-bright);
  background: rgba(20, 27, 29, 0.94);
  border: 1px solid var(--gold-line-strong);
  border-left: 4px solid var(--gold);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

.btn-primary .btn-diamond {
  background: var(--gold);
}

.btn-primary:hover {
  background: rgba(30, 38, 39, 0.98);
  border-color: var(--gold);
  color: #ffffff;
  padding-left: 1.75rem;
}

.btn-ghost {
  color: var(--ink-parchment);
  background: rgba(11, 15, 16, 0.82);
  border: 1px solid var(--slate-edge);
  border-left: 3px solid var(--bronze-dark);
}

.btn-ghost .btn-diamond {
  background: var(--gold);
  opacity: 0.25;
}

.btn-ghost:hover {
  background: rgba(18, 24, 26, 0.94);
  border-color: var(--gold-line-strong);
  border-left: 4px solid var(--gold);
  color: var(--ink-bright);
  padding-left: 1.7rem;
}

.btn-ghost:hover .btn-diamond {
  opacity: 1;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: min(96svh, 880px);
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 4.5rem;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--slate-edge);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.03);
  animation: heroDrift 28s ease-in-out infinite alternate;
  filter: saturate(0.95) contrast(1.06);
}

@keyframes heroDrift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to { transform: scale(1.09) translate3d(0, -1.2%, 0); }
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 75% 65% at 50% 42%, rgba(8, 11, 12, 0.28) 0%, rgba(8, 11, 12, 0.78) 68%, var(--bg-0) 100%),
    linear-gradient(180deg, rgba(8, 11, 12, 0.7) 0%, rgba(8, 11, 12, 0.24) 40%, rgba(8, 11, 12, 0.9) 86%, var(--bg-0) 100%);
}

#ember-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
}

.hero-content {
  text-align: center;
  max-width: 840px;
  margin-inline: auto;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-bright);
  margin: 1.1rem 0 0;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.88);
}

.hero-title .gold-line {
  color: var(--gold);
}

.hero-lead {
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  color: var(--ink-parchment);
  max-width: 620px;
  margin: 1.4rem auto 2.2rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.88);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-sand);
  opacity: 0.72;
  transition: opacity 0.2s;
}

.scroll-cue:hover {
  opacity: 1;
}

.scroll-line {
  width: 1px;
  height: 26px;
  background: linear-gradient(180deg, var(--gold), transparent);
}

/* ==========================================================================
   Section Framing
   ========================================================================== */

.section {
  position: relative;
  padding-block: clamp(4rem, 7vw, 6.5rem);
}

.section-band {
  background: linear-gradient(180deg, rgba(11, 15, 16, 0.76) 0%, rgba(8, 11, 12, 0.92) 100%);
  border-bottom: 1px solid var(--slate-edge);
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.section-header .section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  margin-top: 0.55rem;
}

.section-header p {
  color: var(--ink-muted);
  margin: 0.9rem 0 0;
  font-size: 0.98rem;
}

/* ==========================================================================
   Flagship Game Showcase — Skybound Labyrinth (Obsidian Drawer Aesthetic)
   ========================================================================== */

.game-banner {
  position: relative;
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--slate-edge);
  border-top: 2px solid var(--gold);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
}

.game-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.game-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: saturate(0.9);
}

.game-banner-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(11, 15, 16, 0.97) 0%, rgba(11, 15, 16, 0.88) 54%, rgba(11, 15, 16, 0.76) 100%);
}

.game-hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: 2.5rem;
  padding: clamp(1.85rem, 4vw, 3.25rem);
  position: relative;
  z-index: 2;
}

/* Exact Skybound Labyrinth Main Menu Lockup (.mm-head) */
.sl-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1.45rem;
}

.sl-lockup-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-sand);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85);
}

.sl-lockup-diamond {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--gold);
  flex-shrink: 0;
}

.sl-lockup-top {
  font-size: clamp(2.4rem, 4.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-bright);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.92);
}

.sl-lockup-sub {
  font-size: clamp(1.4rem, 2.7vw, 2.05rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.92);
  margin: 2px 0 0 2px;
}

.sl-lockup-rule-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.95rem;
}

.sl-lockup-pip {
  width: 5px;
  height: 5px;
  background: var(--gold);
  flex-shrink: 0;
}

.sl-lockup-rule {
  width: 156px;
  height: 1px;
  background: rgba(230, 197, 106, 0.42);
}

.game-tagline {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-sand);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}

.game-summary {
  color: var(--ink-parchment);
  font-size: 0.96rem;
  margin: 0 0 1.6rem;
  max-width: 540px;
}

/* Sharp Obsidian Platform Plates */
.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  padding: 0.52rem 0.95rem 0.52rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-bright);
  background: rgba(11, 15, 16, 0.9);
  border: 1px solid var(--slate-edge);
  border-left: 3px solid var(--bronze-dark);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.platform-pill:hover {
  border-color: var(--gold-line-strong);
  border-left-color: var(--gold);
  background: var(--plate-on);
}

.platform-pill svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
}

.platform-pill svg.icon-switch2 {
  width: 24px;
  height: 16px;
}

/* Right-side Obsidian Telemetry / Spec Tiles */
.game-stats-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.stat-tile {
  padding: 1.25rem 1.25rem 1.25rem 1.35rem;
  background: rgba(11, 15, 16, 0.88);
  border: 1px solid var(--slate-edge);
  border-left: 3px solid var(--bronze-dark);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.stat-tile:hover {
  border-color: var(--gold-line-strong);
  border-left-color: var(--gold);
  background: var(--plate-on);
}

.stat-tile--coop {
  border-left-color: var(--verdigris-mid);
}

.stat-tile--coop:hover {
  border-color: var(--verdigris-line);
  border-left-color: var(--verdigris);
}

.stat-value {
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.stat-tile--coop .stat-value {
  color: var(--verdigris-bright);
}

.stat-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-bright);
  margin-top: 0.45rem;
}

.stat-note {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin: 0.35rem 0 0;
  line-height: 1.48;
}

/* ==========================================================================
   Media Showcase: In-Game UI & Painted Realms (Skill-Tree Tab Bar Style)
   ========================================================================== */

.media-block {
  margin-top: 3.25rem;
}

.media-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--slate-edge);
}

.media-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.media-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 1.1rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--bg-1);
  border: 1px solid var(--slate-edge);
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background 0.15s var(--ease);
}

.media-tab .tab-pip {
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--gold);
  opacity: 0.25;
}

.media-tab:hover {
  color: var(--ink-bright);
  border-color: var(--gold-line);
}

.media-tab.active {
  color: var(--ink-bright);
  background: var(--plate-on);
  border-color: var(--gold-line-strong);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.media-tab.active .tab-pip {
  opacity: 1;
}

.gallery-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--slate-edge);
  background: var(--bg-1);
  color: var(--ink-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.icon-btn:hover {
  border-color: var(--gold);
  background: var(--bg-4);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.realm-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--slate-edge);
  border-top: 2px solid var(--gold);
  background: #06090a;
  cursor: zoom-in;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.realm-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.24s var(--ease);
}

.realm-stage-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 11, 12, 0.92) 48%, rgba(8, 11, 12, 0.98) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 2.2rem clamp(1.1rem, 2.8vw, 2rem) clamp(1rem, 2.2vw, 1.5rem);
  gap: 1rem;
  pointer-events: none;
}

.realm-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.realm-meta-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: var(--gold);
}

.realm-meta-title {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-bright);
  margin: 0.25rem 0 0.2rem;
}

.realm-meta-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-parchment);
  max-width: 640px;
}

.realm-zoom-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.78rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-sand);
  background: rgba(11, 15, 16, 0.88);
  border: 1px solid var(--slate-edge);
  white-space: nowrap;
}

.realm-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.realm-thumbs.cols-6 {
  grid-template-columns: repeat(6, 1fr);
}

.realm-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--slate-edge);
  border-left: 3px solid var(--bronze-dark);
  padding: 0;
  background: var(--bg-1);
  transition: border-color 0.15s var(--ease), opacity 0.15s var(--ease);
  opacity: 0.66;
}

.realm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.realm-thumb:hover {
  opacity: 0.94;
  border-color: var(--gold-line);
}

.realm-thumb.active {
  opacity: 1;
  border-color: var(--gold-line-strong);
  border-left: 4px solid var(--gold);
}

.realm-thumb span {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 0.4rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-bright);
  background: linear-gradient(180deg, transparent, rgba(8, 11, 12, 0.94));
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Interactive Hero Forge — 8 Playable Classes (1:1 HeroPick.uss & Hud.CoopCreate)
   ========================================================================== */

.forge-block {
  margin-top: 4rem;
}

.forge-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 1.5rem;
  align-items: stretch;
}

.forge-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
  align-content: start;
}

.hc-cls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0.65rem 0.95rem 0.65rem 1rem;
  background: rgba(14, 19, 20, 0.88);
  border: 1px solid var(--slate-edge);
  border-left: 3px solid var(--bronze-dark);
  text-align: left;
  transition: background 0.12s var(--ease), border-color 0.12s var(--ease), padding-left 0.12s var(--ease);
}

.hc-cls:hover {
  background: rgba(20, 27, 29, 0.94);
  border-color: var(--gold-line);
}

.hc-cls.on {
  background: var(--plate-on);
  border-color: var(--gold-line-strong);
  border-left: 4px solid var(--gold);
  padding-left: 1.25rem;
}

.hc-cls-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hc-cls-idx {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-taupe);
}

.hc-cls.on .hc-cls-idx {
  color: var(--gold);
}

.hc-cls-name {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-parchment);
}

.hc-cls.on .hc-cls-name {
  color: #ffffff;
}

.hc-cls-pip {
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.12s var(--ease);
}

.hc-cls.on .hc-cls-pip {
  opacity: 1;
}

/* Right Column: Live Obsidian Dossier Card */
.forge-dossier {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.65rem 1.8rem;
  background: rgba(11, 15, 16, 0.94);
  border: 1px solid var(--slate-edge);
  border-top: 2px solid var(--gold);
}

.dossier-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--slate-edge);
}

.dossier-name {
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-bright);
  margin: 0.35rem 0 0.2rem;
  line-height: 1.05;
}

.dossier-role {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.dossier-weapon {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--verdigris-bright);
}

/* Segmented Voxel Rating Bars (OFF / DEF / SPD from Hud.CoopCreate.cs) */
.dossier-stats {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 158px;
}

.stat-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.stat-bar-key {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-taupe);
  width: 34px;
}

.stat-bar-pips {
  display: flex;
  gap: 4px;
}

.stat-pip {
  width: 18px;
  height: 6px;
  background: rgba(58, 74, 70, 0.42);
  border: 1px solid rgba(58, 74, 70, 0.65);
}

.stat-pip.on {
  background: var(--gold);
  border-color: var(--gold-bright);
}

.dossier-body {
  padding-block: 1.15rem;
}

.dossier-desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-parchment);
  line-height: 1.62;
}

.dossier-builds-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-taupe);
  margin: 0 0 0.65rem;
}

.dossier-builds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.build-chip {
  padding: 0.55rem 0.75rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-bright);
  background: rgba(18, 24, 26, 0.9);
  border: 1px solid var(--slate-edge);
  border-left: 3px solid var(--gold);
}

/* ==========================================================================
   Core Pillars (Sharp Obsidian Feature Plates)
   ========================================================================== */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.95rem;
  margin-top: 3rem;
}

.pillar-card {
  padding: 1.45rem 1.35rem;
  background: var(--plate);
  border: 1px solid var(--slate-edge);
  border-left: 3px solid var(--bronze-dark);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.pillar-card:hover {
  border-color: var(--gold-line-strong);
  border-left-color: var(--gold);
  background: var(--plate-on);
}

.pillar-card--coop {
  border-left-color: var(--verdigris-mid);
}

.pillar-card--coop:hover {
  border-color: var(--verdigris-line);
  border-left-color: var(--verdigris);
}

.pillar-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
}

.pillar-kicker::before {
  content: "";
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: currentColor;
}

.pillar-card--coop .pillar-kicker {
  color: var(--verdigris-bright);
}

.pillar-card h4 {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-bright);
  margin: 0 0 0.55rem;
}

.pillar-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-muted);
  line-height: 1.58;
}

/* ==========================================================================
   Studio Section
   ========================================================================== */

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.studio-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--slate-edge);
  border-top: 2px solid var(--gold);
  background: var(--bg-1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.studio-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.studio-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.15rem;
  background: var(--bg-1);
  border-top: 1px solid var(--slate-edge);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-sand);
}

.studio-copy .section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  margin: 0.65rem 0 0;
}

.studio-copy p {
  color: var(--ink-muted);
  margin: 1rem 0 0;
  font-size: 0.96rem;
}

.studio-principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.principle {
  padding: 1rem 1.1rem;
  background: var(--plate);
  border: 1px solid var(--slate-edge);
  border-left: 3px solid var(--bronze-dark);
}

.principle h4 {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.35rem;
}

.principle p {
  font-size: 0.84rem;
  margin: 0;
  color: var(--ink-muted);
}

/* ==========================================================================
   Contact Shell
   ========================================================================== */

.contact-shell {
  padding: clamp(2rem, 4.5vw, 3.4rem);
  border: 1px solid var(--slate-edge);
  border-top: 2px solid var(--gold);
  background: var(--bg-1);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2.25rem;
  align-items: center;
}

.contact-shell .section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0.65rem 0 0;
}

.contact-shell p {
  color: var(--ink-muted);
  margin: 0.9rem 0 0;
  max-width: 520px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(14, 19, 20, 0.92);
  border: 1px solid var(--slate-edge);
  border-left: 3px solid var(--bronze-dark);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.contact-card:hover {
  border-color: var(--gold-line-strong);
  border-left-color: var(--gold);
  background: var(--plate-on);
}

.contact-card-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-sand);
}

.contact-card-email {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink-bright);
  margin-top: 0.22rem;
}

.copy-btn {
  padding: 0.48rem 0.95rem;
  border: 1px solid var(--gold-line);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(230, 197, 106, 0.08);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.copy-btn:hover {
  background: rgba(230, 197, 106, 0.2);
  border-color: var(--gold);
}

.copy-btn.copied {
  border-color: var(--verdigris);
  color: var(--verdigris-bright);
  background: rgba(95, 184, 166, 0.16);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--slate-edge);
  padding-block: 2.4rem;
  background: var(--bg-0);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--ink-dim);
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(5, 7, 8, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease);
}

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

.lightbox-figure {
  margin: 0;
  max-width: min(1400px, 94vw);
  text-align: center;
}

.lightbox-figure img {
  max-height: 78vh;
  width: auto;
  margin-inline: auto;
  border: 1px solid var(--slate-edge);
  border-top: 2px solid var(--gold);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85);
}

.lightbox-caption {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.lightbox-close {
  position: fixed;
  top: 1.4rem;
  right: 1.4rem;
}

/* ==========================================================================
   Secondary Pages (Privacy / Support / 404)
   ========================================================================== */

.legal-main {
  padding-top: 8rem;
  padding-bottom: 5rem;
  min-height: calc(100svh - 130px);
}

.legal-shell {
  max-width: 780px;
  margin-inline: auto;
}

.legal-shell h1 {
  font-size: clamp(1.9rem, 3.8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-bright);
  margin: 0.7rem 0 0.5rem;
}

.legal-meta {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-taupe);
  margin-bottom: 2rem;
}

.legal-card {
  padding: clamp(1.75rem, 4vw, 2.6rem);
  background: var(--bg-1);
  border: 1px solid var(--slate-edge);
  border-top: 2px solid var(--gold);
}

.legal-card h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 2rem 0 0.65rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: var(--ink-parchment);
  font-size: 0.95rem;
}

.legal-card ul {
  padding-left: 1.25rem;
  margin: 0.6rem 0 1rem;
}

.legal-card a {
  color: var(--verdigris-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Scroll Reveal & Mobile Drawer
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(8, 11, 12, 0.97);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer a {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-bright);
}

.mobile-close {
  position: absolute;
  top: 1.2rem;
  right: 1.25rem;
}

@media (max-width: 1024px) {
  .game-hero-grid,
  .forge-grid,
  .studio-grid,
  .contact-shell {
    grid-template-columns: 1fr;
  }

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

  .realm-thumbs.cols-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .realm-zoom-hint {
    display: none;
  }

  .pillars-grid,
  .game-stats-panel,
  .studio-principles,
  .forge-selector,
  .dossier-builds {
    grid-template-columns: 1fr;
  }

  .realm-thumbs,
  .realm-thumbs.cols-6 {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg img { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
