/* ==========================================================================
   JJ GAMES — Official Studio Design System
   Engineered with Strict Fidelity to Haven, Refugio, Hiko, and Origin
   Parent: JJ Coders Group (games.jjcoders.com)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Playfair+Display:ital,wght@1,400;1,600;1,700&family=Barlow+Condensed:ital,wght@0,700;0,800;1,800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  color-scheme: dark;

  /* Studio Foundations */
  --bg-dark: #07090d;
  --bg-card: #0d1117;
  --bg-card-hover: #131922;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-speed: 'Barlow Condensed', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Colors */
  --text-white: #ffffff;
  --text-cream: #f8fafc;
  --text-sub: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Accents */
  --gold: #f5be42;
  --gold-glow: rgba(245, 190, 66, 0.35);
  --apex-lime: #c8f145;
  --apex-hot: #ff5f45;
  --mart-emerald: #10b981;
  --mart-orange: #f97316;

  /* Glass & Borders */
  --glass-bg: rgba(10, 14, 20, 0.75);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-border-hover: rgba(255, 255, 255, 0.35);

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------- RESET & BASE ---------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-white);
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background-color: var(--bg-dark);
  overflow-x: hidden;
}

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

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

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

:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* ---------------- LAYOUT CONTAINERS ---------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 40px);
  padding-right: clamp(20px, 4vw, 40px);
}

.container-wide {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 40px);
  padding-right: clamp(20px, 4vw, 40px);
}

/* ---------------- FLOATING ISLAND NAVIGATION (Haven / Refugio Style) ---------------- */
.floating-nav-wrapper {
  position: fixed;
  top: 1.25rem;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
  padding: 0 1rem;
}

.floating-nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 1.8rem;
  padding: 0.65rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 9999px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.35s var(--ease-expo);
}

.floating-nav-pill:hover {
  background: #ffffff;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.2);
}

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

.nav-brand-group img {
  height: 28px;
  width: auto;
}

.nav-links-row {
  display: none;
  align-items: center;
  gap: 1.6rem;
}

@media (min-width: 900px) {
  .nav-links-row {
    display: flex;
  }
}

.nav-pill-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  transition: color 0.2s ease;
  letter-spacing: -0.01em;
}

.nav-pill-link:hover {
  color: #000000;
}

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

.btn-nav-parent {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
  border: 1px solid rgba(15, 23, 42, 0.14);
  padding: 5px 12px;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

@media (min-width: 1080px) {
  .btn-nav-parent {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
}

.btn-nav-parent:hover {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.35);
  background: rgba(15, 23, 42, 0.05);
}

.btn-nav-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  padding: 8px 18px;
  border-radius: 9999px;
  white-space: nowrap;
  transition: all 0.25s var(--ease-expo);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.btn-nav-play:hover {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

@media (max-width: 540px) {
  .floating-nav-pill {
    padding: 0.5rem 1.1rem;
    gap: 1rem;
    width: 100%;
    max-width: 360px;
    justify-content: space-between;
  }
  .btn-nav-play {
    display: none;
  }
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
}

@media (min-width: 900px) {
  .mobile-nav-btn {
    display: none;
  }
}

.mobile-nav-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
}

/* Mobile Dropdown Menu */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 9, 13, 0.98);
  backdrop-filter: blur(24px);
  padding: 90px 24px 40px;
  display: none;
  flex-direction: column;
  gap: 20px;
  z-index: 999;
}

.mobile-menu-overlay.active {
  display: flex;
}

.mobile-menu-overlay a {
  font-size: 1.4rem;
  font-weight: 700;
  padding: 8px 0;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-sub);
}

.mobile-menu-overlay a:hover {
  color: #fff;
}

/* ---------------- FULL-BLEED CINEMATIC HERO (Haven & Refugio Style) ---------------- */
.cinematic-hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 20px 80px;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.hero-bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.25) 0%, transparent 35%, rgba(7, 9, 13, 0.5) 75%, rgba(7, 9, 13, 0.98) 100%);
  pointer-events: none;
}

.hero-content-box {
  position: relative;
  z-index: 2;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Pill Notification Badge (Haven "We just raised 20M" style) */
.hero-notification-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 9999px;
  padding: 7px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0f172a;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-width: 90vw;
  text-align: center;
}

@media (max-width: 540px) {
  .hero-notification-pill {
    font-size: 0.68rem;
    padding: 6px 14px;
    letter-spacing: 0.02em;
  }
}

.hero-notification-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* Monumental Display Headline (Refugio "this one brings you back" style) */
.hero-display-title {
  font-size: clamp(3rem, 7.5vw, 6.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
}

.hero-display-title .serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #ffffff;
  display: block;
}

.hero-lead-text {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.7;
  color: rgba(248, 250, 252, 0.9);
  max-width: 620px;
  margin-bottom: 36px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Pill CTA Buttons (Haven style) */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}

.btn-pill-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 32px;
  background: #ffffff;
  color: #06090d;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: 9999px;
  transition: all 0.25s var(--ease-expo);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
}

.btn-pill-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(255, 255, 255, 0.4);
  background: #f8fafc;
}

.btn-pill-frosted {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 9999px;
  transition: all 0.25s var(--ease-expo);
}

.btn-pill-frosted:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
}

.btn-pill-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 52px;
  padding: 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.btn-pill-ghost:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* Bottom Trust & Conglomerate Strip (Refugio logos row style) */
.hero-trust-strip {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1080px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 36px);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-item span.highlight {
  color: #fff;
  font-weight: 700;
}

/* Bottom Floating Scroll Indicator Pill (Haven style) */
.hero-scroll-pill {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 9999px;
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ffffff;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
  animation: floatScroll 2.4s ease-in-out infinite;
}

@keyframes floatScroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.hero-scroll-pill:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

/* ---------------- FULL-BLEED GAME WORLD SHOWCASE SECTIONS (Hiko / Origin Style) ---------------- */
.game-world-showcase {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-color: var(--bg-dark);
}

.showcase-bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.showcase-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.world-backdrop-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 9, 13, 0.96) 0%, rgba(7, 9, 13, 0.82) 50%, rgba(7, 9, 13, 0.35) 100%),
              radial-gradient(circle at left center, rgba(7, 9, 13, 0.9) 0%, transparent 80%);
  pointer-events: none;
}

.world-content-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.badge-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  margin-bottom: 18px;
}

.badge-tag-pill.apex {
  background: rgba(200, 241, 69, 0.92);
  color: #0b1114;
}

.badge-tag-pill.mart {
  background: rgba(16, 185, 129, 0.92);
  color: #022c22;
}

.world-title {
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 8px;
}

.world-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  font-weight: 400;
  margin-bottom: 18px;
}

.apex-world .world-tagline { color: var(--apex-lime); }
.mart-world .world-tagline { color: var(--mart-emerald); }

.world-desc {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-sub);
  margin-bottom: 28px;
}

.world-stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.stat-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  background: rgba(10, 14, 20, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  color: #fff;
  backdrop-filter: blur(12px);
}

.world-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn-game-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 32px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  border-radius: 9999px;
  transition: all 0.25s var(--ease-expo);
}

.apex-launch {
  background: var(--apex-lime);
  color: #0b1114;
  box-shadow: 0 6px 24px rgba(200, 241, 69, 0.35);
}

.apex-launch:hover {
  background: #d9ff55;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(200, 241, 69, 0.55);
}

.mart-launch {
  background: var(--mart-emerald);
  color: #022c22;
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.35);
}

.mart-launch:hover {
  background: #34d399;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(16, 185, 129, 0.55);
}

.btn-game-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-game-details:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ---------------- CATALOG SECTION (Haven / Refugio Cards) ---------------- */
.catalog-section {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--bg-dark);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}

.section-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(245, 190, 66, 0.08);
  border: 1px solid rgba(245, 190, 66, 0.25);
  border-radius: 9999px;
  padding: 5px 14px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-sub);
}

.catalog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
}

.studio-game-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease-expo);
}

.studio-game-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.game-card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.game-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-expo);
}

.studio-game-card:hover .game-card-img-wrap img {
  transform: scale(1.05);
}

.game-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(7, 9, 13, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(8px);
}

.game-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-card-genre {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.game-card-title {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 4px;
}

.game-card-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.game-card-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-sub);
  margin-bottom: 24px;
  flex-grow: 1;
}

.game-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-card-launch {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  background: #ffffff;
  color: #000;
  font-size: 0.92rem;
  font-weight: 800;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.btn-card-launch:hover {
  background: var(--gold);
}

.btn-card-dossier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  color: var(--text-sub);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-card-dossier:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

/* R&D Lab Card */
.studio-game-card.lab-card {
  border-style: dashed;
  background: rgba(14, 18, 24, 0.4);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 32px;
}

.lab-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(245, 190, 66, 0.1);
  border: 1px solid rgba(245, 190, 66, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 16px;
}

/* ---------------- STUDIO PHILOSOPHY SECTION (Refugio Style) ---------------- */
.studio-editorial-section {
  padding: clamp(80px, 10vw, 120px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-editorial-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1.35;
  color: #ffffff;
  max-width: 940px;
  margin-bottom: 48px;
}

.studio-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
}

.pillar-card-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}

.pillar-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.pillar-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-sub);
}

/* ---------------- FOOTER ---------------- */
.studio-footer {
  padding: 80px 0 40px;
  background: var(--bg-dark);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-top-row {
    flex-direction: row;
    align-items: center;
  }
}

.footer-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--text-sub);
}

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

.footer-bottom-row {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

@media (min-width: 768px) {
  .footer-bottom-row {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ---------------- THEATER MODAL (Plays live game URLs) ---------------- */
.theater-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(3, 5, 8, 0.96);
  backdrop-filter: blur(20px);
  display: none;
  flex-direction: column;
}

.theater-modal.active {
  display: flex;
}

.theater-bar {
  height: 56px;
  padding: 0 20px;
  background: rgba(10, 14, 20, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.theater-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theater-title {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: #fff;
}

.theater-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theater-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  transition: all 0.2s ease;
}

.theater-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.theater-btn.external {
  background: rgba(245, 190, 66, 0.15);
  border-color: rgba(245, 190, 66, 0.4);
  color: var(--gold);
}

.theater-btn.external:hover {
  background: var(--gold);
  color: #000;
}

.theater-btn.close {
  background: rgba(255, 95, 69, 0.15);
  border-color: rgba(255, 95, 69, 0.4);
  color: var(--apex-hot);
}

.theater-btn.close:hover {
  background: var(--apex-hot);
  color: #fff;
}

.theater-frame-box {
  flex-grow: 1;
  position: relative;
  background: #000;
}

.theater-frame-box iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
