/* ==========================================================================
   CENELIS GAMES (games.cenelis.com) — AAA STUDIO MOTION DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg-void: #05070f;
  --bg-obsidian: #0a0e1d;
  --bg-card: rgba(14, 19, 36, 0.78);
  --bg-glass: rgba(10, 14, 28, 0.72);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-bright: rgba(255, 255, 255, 0.20);
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --game-accent: #ff2e63;
  --game-secondary: #00f0ff;
  --game-glow: rgba(255, 46, 99, 0.42);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snappy: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-void);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

body {
  background: var(--bg-void);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
  selection-background-color: var(--game-accent);
}

::selection {
  background: var(--game-accent);
  color: #05070f;
}

/* --- Custom Studio Cursor (Desktop Fine Pointer) --- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-100px, -100px, 0);
  display: none;
}

@media (pointer: fine) {
  .cursor-dot {
    display: block;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    margin-top: -4px;
    border-radius: 50%;
    background: var(--game-secondary);
    box-shadow: 0 0 14px var(--game-secondary);
    transition: background 0.3s ease, transform 0.15s ease;
  }
  .cursor-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(2px);
    transition: width 0.32s var(--ease-spring),
                height 0.32s var(--ease-spring),
                margin 0.32s var(--ease-spring),
                border-color 0.25s ease,
                background 0.25s ease;
  }
  .cursor-ring span {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #05070f;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.2s ease, transform 0.25s var(--ease-spring);
  }
  body.cursor-hover .cursor-ring {
    width: 58px;
    height: 58px;
    margin-left: -29px;
    margin-top: -29px;
    border-color: var(--game-accent);
    background: rgba(255, 46, 99, 0.12);
  }
  body.cursor-cta .cursor-ring {
    width: 76px;
    height: 76px;
    margin-left: -38px;
    margin-top: -38px;
    background: var(--game-secondary);
    border-color: var(--game-secondary);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.45);
  }
  body.cursor-cta .cursor-ring span {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Scroll Progress Laser Bar --- */
.scroll-laser {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 1200;
  background: linear-gradient(90deg, var(--game-accent), var(--game-secondary), #fff);
  box-shadow: 0 0 14px var(--game-accent);
  transition: width 0.08s linear;
}

/* --- Cinematic Studio Preloader --- */
.studio-preloader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #04060d;
  transition: clip-path 0.85s var(--ease-out-expo), visibility 0.85s;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.studio-preloader.loaded {
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  visibility: hidden;
  pointer-events: none;
}

.preloader-emblem {
  width: 84px;
  height: 84px;
  margin-bottom: 22px;
  filter: drop-shadow(0 0 28px rgba(0, 240, 255, 0.45));
}

.preloader-emblem path,
.preloader-emblem rect {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: drawStroke 1.0s var(--ease-out-expo) forwards;
}

@keyframes drawStroke {
  to { stroke-dashoffset: 0; }
}

.preloader-title {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #e2e8f0;
  margin-bottom: 16px;
}

.preloader-bar-track {
  width: 220px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff2e63, #00f0ff);
  transition: width 0.12s ease;
}

.preloader-pct {
  margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--game-secondary);
}

/* ==========================================================================
   1. HYPER-ANIMATED STUDIO HEADER, LIQUID PILL & 3D MEGA-MENUS
   ========================================================================== */

.studio-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1360px, calc(100% - 28px));
  z-index: 1800;
  transition: top 0.35s var(--ease-spring), width 0.35s var(--ease-spring);
}

body.drawer-open .nav-links,
body.drawer-open .nav-launcher-cta,
body.drawer-open .live-pulse-pill {
  opacity: 0;
  pointer-events: none;
}

.studio-header.scrolled {
  top: 10px;
}

.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px 10px 20px;
  border-radius: 20px;
  background: rgba(8, 12, 24, 0.78);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  position: relative;
  z-index: 2;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--game-accent), #7b2cbf, var(--game-secondary));
  display: grid;
  place-items: center;
  box-shadow: 0 0 22px var(--game-glow);
  transition: transform 0.45s var(--ease-snappy), box-shadow 0.4s ease;
}

.brand-logo:hover .brand-mark {
  transform: rotate(-10deg) scale(1.08);
}

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

.brand-title {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-title span {
  color: var(--game-secondary);
  transition: color 0.35s ease;
}

.brand-sub {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-top: 3px;
}

/* Liquid Gliding Navigation Links */
.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-glider {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: 0;
  opacity: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(0, 240, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 20px var(--game-glow);
  pointer-events: none;
  transition: transform 0.36s var(--ease-spring),
              width 0.36s var(--ease-spring),
              opacity 0.22s ease;
}

.nav-item {
  position: relative;
  z-index: 1;
  background: transparent;
  border: 0;
  color: #cbd5e1;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.25s ease;
}

.nav-item:hover,
.nav-item.active {
  color: #ffffff;
}

.nav-item .chev {
  font-size: 10px;
  transition: transform 0.32s var(--ease-snappy);
}

.nav-item.open .chev {
  transform: rotate(180deg);
  color: var(--game-secondary);
}

/* Right Header Controls */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-pulse-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.28);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: #34d399;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulsePing 1.8s infinite;
}

@keyframes pulsePing {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.55; }
}

.sfx-btn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all 0.28s var(--ease-spring);
}

.sfx-btn:hover,
.sfx-btn.active {
  color: var(--game-secondary);
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.09);
}

.sfx-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.sfx-bars i {
  display: block;
  width: 2.5px;
  height: 5px;
  background: currentColor;
  border-radius: 2px;
  transition: height 0.2s ease;
}

.sfx-btn.active .sfx-bars i:nth-child(1) { animation: eqBar 0.55s ease-in-out infinite alternate; }
.sfx-btn.active .sfx-bars i:nth-child(2) { animation: eqBar 0.42s ease-in-out 0.12s infinite alternate; }
.sfx-btn.active .sfx-bars i:nth-child(3) { animation: eqBar 0.64s ease-in-out 0.22s infinite alternate; }
.sfx-btn.active .sfx-bars i:nth-child(4) { animation: eqBar 0.48s ease-in-out 0.07s infinite alternate; }

@keyframes eqBar {
  from { height: 3px; }
  to { height: 14px; }
}

.nav-launcher-cta {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #05070f;
  background: linear-gradient(135deg, var(--game-secondary), #ffffff);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.28);
  transition: transform 0.28s var(--ease-snappy), box-shadow 0.28s ease;
}

.nav-launcher-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.85), transparent);
  transform: skewX(-24deg);
  animation: ctaSweep 4.2s infinite;
}

@keyframes ctaSweep {
  0%, 65% { left: -120%; }
  100% { left: 160%; }
}

.nav-launcher-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 240, 255, 0.48);
}

/* Morphing 3-Bar Kinetic Studio Drawer Trigger */
.kinetic-burger {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  z-index: 2100;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-snappy);
}

.kinetic-burger:hover {
  border-color: var(--game-accent);
  transform: scale(1.05);
}

.kinetic-burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #ffffff;
  transition: transform 0.42s var(--ease-spring), width 0.32s var(--ease-spring), opacity 0.25s ease, background 0.3s ease;
}

.kinetic-burger span:nth-child(1) { width: 20px; }
.kinetic-burger span:nth-child(2) { width: 14px; margin-left: 6px; background: var(--game-secondary); }
.kinetic-burger span:nth-child(3) { width: 18px; margin-left: 2px; }

.kinetic-burger.active {
  background: var(--game-accent);
  border-color: var(--game-accent);
}

.kinetic-burger.active span:nth-child(1) {
  width: 20px;
  transform: translateY(7px) rotate(45deg);
}
.kinetic-burger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(12px);
}
.kinetic-burger.active span:nth-child(3) {
  width: 20px;
  margin-left: 0;
  transform: translateY(-7px) rotate(-45deg);
}

/* --- 3D-Perspective Mega-Menus (NOS JEUX & ÉCOSYSTÈME) --- */
.mega-menu-host {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  perspective: 1400px;
  pointer-events: none;
}

.mega-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-radius: 24px;
  background: rgba(8, 12, 25, 0.94);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.78), 0 0 60px var(--mega-aura, rgba(0, 240, 255, 0.14));
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transform-origin: top center;
  transform: rotateX(-14deg) translateY(-14px) scale(0.98);
  transition: opacity 0.34s var(--ease-out-expo),
              transform 0.44s var(--ease-spring),
              visibility 0.34s,
              box-shadow 0.4s ease;
  overflow: hidden;
}

.mega-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--game-accent), var(--game-secondary), transparent);
}

.mega-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: rotateX(0deg) translateY(0) scale(1);
}

.mega-games-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 22px;
}

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

.mega-game-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  transition: background 0.25s ease,
              border-color 0.25s ease,
              transform 0.36s var(--ease-spring),
              opacity 0.32s ease;
}

.mega-panel.open .mega-game-item {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--stagger, 0) * 45ms);
}

.mega-game-item:hover,
.mega-game-item.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--item-accent, var(--game-secondary));
  transform: translateX(5px);
}

.mega-thumb {
  width: 68px;
  height: 48px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.14);
}

.mega-item-meta h4 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.mega-item-meta p {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.mega-item-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--item-accent, #00f0ff);
  text-transform: uppercase;
}

/* Mega-Menu Live Spotlight Right Preview */
.mega-spotlight {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 256px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: #060914;
}

.mega-spotlight-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-out-expo), opacity 0.3s ease;
}

.mega-spotlight:hover .mega-spotlight-img {
  transform: scale(1.06);
}

.mega-spotlight::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,9,20,0.12) 0%, rgba(6,9,20,0.86) 65%, #060914 100%);
}

.mega-spotlight-content {
  position: relative;
  z-index: 2;
}

.mega-spotlight-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--game-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.mega-spotlight-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 4px 0 6px;
}

.mega-spotlight-desc {
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.45;
  margin-bottom: 14px;
}

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

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

.mega-eco-card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
  color: var(--text-main);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.35s var(--ease-spring);
}

.mega-panel.open .mega-eco-card {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--stagger, 0) * 50ms);
}

.mega-eco-card:hover {
  background: rgba(0, 240, 255, 0.07);
  border-color: rgba(0, 240, 255, 0.35);
  transform: translateY(-4px);
}

.mega-eco-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
  transition: transform 0.4s var(--ease-snappy);
}

.mega-eco-card:hover .mega-eco-icon {
  transform: scale(1.15) rotate(-6deg);
}

.mega-eco-card h4 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 15px;
  margin-bottom: 5px;
}

.mega-eco-card p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   2. FULL-SCREEN KINETIC COMMAND MENU OVERLAY (DIAGONAL CURTAIN + SLOT ROLL)
   ========================================================================== */

.kinetic-drawer {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: radial-gradient(circle at 80% 25%, var(--game-glow), transparent 45%),
              rgba(5, 7, 15, 0.97);
  backdrop-filter: blur(26px);
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  visibility: hidden;
  pointer-events: none;
  transition: clip-path 0.68s var(--ease-out-expo), visibility 0.68s;
  display: flex;
  align-items: center;
}

.kinetic-drawer.open {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  visibility: visible;
  pointer-events: auto;
}

.drawer-inner {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-top: 56px;
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-link-mask {
  overflow: hidden;
  padding: 4px 0;
}

.drawer-link {
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  text-decoration: none;
  color: #f8fafc;
  transform: translateY(115%) skewY(5deg);
  opacity: 0;
  transition: transform 0.65s var(--ease-out-expo), opacity 0.45s ease, color 0.25s ease;
}

.kinetic-drawer.open .drawer-link {
  transform: translateY(0) skewY(0deg);
  opacity: 1;
  transition-delay: calc(0.12s + var(--idx, 0) * 65ms);
}

.drawer-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--game-secondary);
}

/* Slot-Machine Rolling Text on Hover */
.drawer-roll {
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 1.12em;
  line-height: 1.12;
  font-family: 'Chakra Petch', sans-serif;
  font-size: clamp(28px, 4.4vw, 54px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.drawer-roll span {
  display: block;
  transition: transform 0.42s var(--ease-spring);
}

.drawer-roll::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 100%;
  color: var(--game-accent);
  text-shadow: 0 0 28px var(--game-glow);
  transition: transform 0.42s var(--ease-spring);
}

.drawer-link:hover .drawer-roll span,
.drawer-link:hover .drawer-roll::after {
  transform: translateY(-100%);
}

.drawer-preview-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
  opacity: 0;
  transform: scale(0.92) translateY(24px);
  transition: all 0.65s var(--ease-out-expo) 0.25s;
}

.kinetic-drawer.open .drawer-preview-card {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.drawer-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-out-expo);
}

.drawer-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(5,7,15,0.94) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

/* ==========================================================================
   3. HERO STAGE — FULL-BLEED CINEMATIC SHOWCASE & 6-GAME DOCK
   ========================================================================== */

.hero-stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 124px 0 34px;
  overflow: hidden;
}

.hero-backdrop-stack {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-layer {
  position: absolute;
  inset: -3%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.09);
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: opacity 0.7s ease,
              transform 5.5s linear,
              clip-path 0.85s var(--ease-out-expo);
  filter: saturate(1.12) contrast(1.04);
}

.hero-bg-layer.active {
  opacity: 1;
  transform: scale(1.01);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  z-index: 2;
}

.hero-bg-layer.prev {
  opacity: 0.45;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(circle at 72% 38%, transparent 0%, rgba(5, 7, 15, 0.55) 55%, rgba(5, 7, 15, 0.95) 100%),
    linear-gradient(90deg, rgba(5, 7, 15, 0.94) 0%, rgba(5, 7, 15, 0.72) 45%, rgba(5, 7, 15, 0.18) 100%),
    linear-gradient(180deg, rgba(5, 7, 15, 0.65) 0%, transparent 22%, transparent 68%, var(--bg-void) 100%);
}

#hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

.container {
  width: min(1360px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  margin: auto 0;
  padding: 28px 0;
}

.hero-kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.studio-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: 'Chakra Petch', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--game-secondary);
}

.age-chip {
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 46, 99, 0.16);
  border: 1px solid rgba(255, 46, 99, 0.35);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #fda4af;
}

.hero-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: clamp(44px, 6.8vw, 92px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
}

.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(36px) rotateX(-40deg);
  animation: charReveal 0.58s var(--ease-out-expo) forwards;
  animation-delay: calc(var(--ci, 0) * 26ms);
}

@keyframes charReveal {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

.hero-subtitle {
  font-family: 'Chakra Petch', sans-serif;
  font-size: clamp(17px, 2.1vw, 26px);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--game-accent);
  margin-top: 8px;
  margin-bottom: 18px;
  text-shadow: 0 0 26px var(--game-glow);
}

.hero-tagline {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.6;
  color: #e2e8f0;
  max-width: 600px;
  margin-bottom: 22px;
}

.hero-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.hero-feat-pill {
  padding: 6px 12px;
  border-radius: 9px;
  background: rgba(10, 14, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  backdrop-filter: blur(8px);
}

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

.btn-download-mega {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, var(--game-accent), #ff6b6b);
  color: #ffffff;
  box-shadow: 0 16px 42px var(--game-glow), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform 0.32s var(--ease-snappy), box-shadow 0.32s ease;
}

.btn-download-mega:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 22px 56px var(--game-glow);
}

.btn-download-mega .dl-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.26);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.btn-download-mega .dl-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.btn-download-mega .dl-main {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn-download-mega .dl-sub {
  font-size: 11.5px;
  opacity: 0.9;
  font-weight: 600;
}

.btn-secondary-glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(12, 17, 34, 0.65);
  backdrop-filter: blur(14px);
  color: #ffffff;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.28s var(--ease-spring);
}

.btn-secondary-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--game-secondary);
  transform: translateY(-2px);
}

/* Floating Hero Telemetry HUD Card */
.hero-hud-card {
  justify-self: end;
  width: min(410px, 100%);
  border-radius: 24px;
  padding: 22px;
  background: rgba(9, 13, 26, 0.72);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
  animation: hudFloat 5.2s ease-in-out infinite;
}

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

.hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.hud-engine-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--game-secondary);
}

.hud-rating {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fbbf24;
}

.hud-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.hud-stat-box {
  padding: 12px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.hud-stat-val {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
}

.hud-stat-lbl {
  font-size: 10.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.hud-patch-pill {
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(0,240,255,0.06));
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 12px;
  color: #cbd5e1;
}

.hud-patch-pill strong {
  display: block;
  color: var(--game-secondary);
  font-family: 'Chakra Petch', sans-serif;
  margin-bottom: 3px;
}

/* --- 6-Slot Hero Switcher Dock with Live Progress Bars --- */
.hero-dock {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.dock-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  padding: 10px;
  background: rgba(10, 14, 28, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: var(--text-main);
  transition: transform 0.3s var(--ease-spring), border-color 0.3s ease, background 0.3s ease;
}

.dock-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.28);
}

.dock-item.active {
  background: rgba(18, 25, 48, 0.92);
  border-color: var(--game-accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.dock-item img {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}

.dock-meta {
  min-width: 0;
}

.dock-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-genre {
  font-size: 10.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--game-accent), var(--game-secondary));
}

/* ==========================================================================
   4. VELOCITY KINETIC MARQUEE RIBBON
   ========================================================================== */

.kinetic-marquee-wrap {
  position: relative;
  padding: 18px 0;
  background: linear-gradient(90deg, #090d1b, #10172d, #090d1b);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.kinetic-marquee-track {
  display: flex;
  width: max-content;
  gap: 38px;
  animation: marqueeRun 28s linear infinite;
}

.kinetic-marquee-wrap:hover .kinetic-marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeRun {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-token {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e2e8f0;
  white-space: nowrap;
}

.marquee-token b {
  color: var(--game-secondary);
}

/* ==========================================================================
   5. 3D TILT STOREFRONT & DOWNLOAD CATALOGUE
   ========================================================================== */

.section-block {
  padding: 96px 0;
  scroll-margin-top: 92px;
  position: relative;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--game-secondary);
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
}

/* Filter Bar with Animated Active Pill */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-chip {
  padding: 9px 16px;
  border-radius: 11px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Chakra Petch', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.28s var(--ease-spring);
}

.filter-chip:hover {
  color: #fff;
}

.filter-chip.active {
  background: linear-gradient(135deg, var(--game-accent), #7b2cbf);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 46, 99, 0.35);
}

/* 3D Perspective Game Cards */
.games-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.game-card-3d {
  position: relative;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.10);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.22s ease-out, border-color 0.3s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.game-card-3d:hover {
  border-color: var(--card-accent, var(--game-secondary));
  box-shadow: 0 26px 65px rgba(0, 0, 0, 0.65), 0 0 38px var(--card-glow, rgba(0, 240, 255, 0.22));
}

.card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background: radial-gradient(
    circle 260px at var(--mx, 50%) var(--my, 30%),
    rgba(255, 255, 255, 0.16),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.game-card-3d:hover .card-glare {
  opacity: 1;
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 9.6;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-out-expo);
}

.game-card-3d:hover .card-media img {
  transform: scale(1.08);
}

.card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,7,15,0.12) 0%, transparent 45%, rgba(14,19,36,0.98) 100%);
}

.card-top-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-status-pill {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(6, 9, 20, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-accent, #00f0ff);
  font-family: 'Chakra Petch', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: #fff;
}

.card-rating-pill {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(6, 9, 20, 0.82);
  backdrop-filter: blur(10px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
}

.card-body {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 3;
}

.card-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.card-genres span {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--card-accent, var(--game-secondary));
}

.card-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.card-sub {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.card-desc {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.card-telemetry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.card-platforms {
  display: flex;
  gap: 7px;
  color: #e2e8f0;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.btn-card-dl {
  border: 0;
  border-radius: 13px;
  padding: 13px 16px;
  background: var(--card-accent, var(--game-accent));
  color: #05070f;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.25s var(--ease-snappy), filter 0.25s ease;
}

.btn-card-dl:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.btn-card-info {
  border-radius: 13px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-card-info:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}

/* ==========================================================================
   6. INTERACTIVE ENGINE COMPARATOR (CENELIS PULSE ENGINE v4.2)
   ========================================================================== */

.engine-section {
  background: radial-gradient(circle at 18% 50%, rgba(123, 44, 191, 0.16), transparent 50%),
              linear-gradient(180deg, var(--bg-void), #080c1a, var(--bg-void));
}

.engine-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 42px;
  align-items: center;
}

.engine-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.pillar-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s var(--ease-spring), border-color 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--game-secondary);
}

.pillar-card strong {
  display: block;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 22px;
  color: var(--game-secondary);
  margin-bottom: 4px;
}

.pillar-card span {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Interactive Ray-Tracing Split Slider */
.rt-comparator {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  user-select: none;
  touch-action: pan-y;
}

.rt-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rt-before {
  filter: grayscale(1) contrast(1.35) brightness(0.68);
}

.rt-after-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--split, 48%));
}

.rt-after {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.22) contrast(1.08);
}

.rt-wire-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
  clip-path: inset(0 calc(100% - var(--split, 48%)) 0 0);
  pointer-events: none;
}

.rt-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 48%);
  width: 3px;
  background: var(--game-secondary);
  box-shadow: 0 0 18px var(--game-secondary);
  pointer-events: none;
}

.rt-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #05070f;
  border: 2px solid var(--game-secondary);
  color: var(--game-secondary);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.6);
}

.rt-label {
  position: absolute;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(5, 7, 15, 0.84);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  z-index: 4;
}

.rt-label.left { left: 14px; color: #94a3b8; }
.rt-label.right { right: 14px; color: var(--game-secondary); }

/* ==========================================================================
   7. CENELIS GAMES LAUNCHER INTERACTIVE SHOWCASE
   ========================================================================== */

.launcher-showcase {
  border-radius: 32px;
  padding: 48px;
  background:
    radial-gradient(circle at 85% 20%, rgba(0, 240, 255, 0.16), transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(255, 46, 99, 0.16), transparent 45%),
    rgba(11, 16, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 36px 95px rgba(0, 0, 0, 0.7);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: center;
}

.os-download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.os-btn {
  padding: 14px 16px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: all 0.3s var(--ease-spring);
}

.os-btn:hover,
.os-btn.recommended {
  background: rgba(0, 240, 255, 0.11);
  border-color: var(--game-secondary);
  transform: translateY(-3px);
}

.os-btn .os-ico {
  font-size: 22px;
}

.os-btn strong {
  display: block;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 14px;
}

.os-btn small {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Interactive App Window Mockup */
.launcher-window {
  border-radius: 20px;
  background: #070a15;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.8);
}

.lw-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-secondary);
}

.lw-dots {
  display: flex;
  gap: 6px;
}

.lw-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.lw-dots span:nth-child(1) { background: #ef4444; }
.lw-dots span:nth-child(2) { background: #f59e0b; }
.lw-dots span:nth-child(3) { background: #10b981; }

.lw-body {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 300px;
}

.lw-sidebar {
  padding: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lw-tab {
  padding: 9px 10px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Chakra Petch', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all 0.22s ease;
}

.lw-tab.active,
.lw-tab:hover {
  background: rgba(0, 240, 255, 0.12);
  color: #fff;
}

.lw-stage {
  position: relative;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
}

.lw-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,10,21,0.25) 0%, rgba(7,10,21,0.94) 85%);
}

.lw-stage-content {
  position: relative;
  z-index: 2;
}

.lw-speed-bar {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #34d399;
}

/* ==========================================================================
   8. PLAYTEST / EARLY ACCESS SIGNUP & STUDIO FOOTER
   ========================================================================== */

.playtest-banner {
  border-radius: 28px;
  padding: 44px;
  background: linear-gradient(135deg, rgba(255, 46, 99, 0.16), rgba(123, 44, 191, 0.2), rgba(0, 240, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.playtest-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
  max-width: 540px;
}

.playtest-input {
  flex: 1;
  min-width: 220px;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 7, 15, 0.78);
  color: #fff;
  font-size: 14px;
  outline: none;
}

.playtest-input:focus {
  border-color: var(--game-secondary);
}

.studio-footer {
  padding: 64px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #04060c;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col h5 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  padding: 5px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col a:hover {
  color: var(--game-secondary);
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   9. GAME DETAIL & HIGH-SPEED DOWNLOAD MODAL
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(3, 5, 12, 0.84);
  backdrop-filter: blur(18px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.game-modal {
  width: min(920px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 26px;
  background: #0a0f1f;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.85);
  transform: translateY(28px) scale(0.95);
  transition: transform 0.42s var(--ease-spring);
}

.modal-backdrop.open .game-modal {
  transform: translateY(0) scale(1);
}

.modal-hero {
  position: relative;
  height: 270px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 26px;
}

.modal-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,15,31,0.15) 0%, #0a0f1f 100%);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(5, 7, 15, 0.72);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.modal-hero-info {
  position: relative;
  z-index: 3;
}

.modal-content {
  padding: 0 28px 28px;
}

.modal-dl-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 10px;
  margin: 18px 0 22px;
}

.plat-dl-btn {
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.25s var(--ease-spring);
}

.plat-dl-btn:hover {
  background: var(--game-secondary);
  color: #05070f;
  border-color: var(--game-secondary);
  transform: translateY(-2px);
}

.dl-live-box {
  display: none;
  margin-bottom: 22px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(16, 185, 129, 0.32);
}

.dl-live-box.visible {
  display: block;
}

.specs-dual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.spec-box {
  padding: 16px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12.5px;
  color: #cbd5e1;
}

.spec-box h5 {
  font-family: 'Chakra Petch', sans-serif;
  color: var(--game-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.spec-box div {
  padding: 4px 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* Scroll Reveal Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1360px) {
  .live-pulse-pill { display: none; }
}

@media (max-width: 1120px) {
  .nav-links, .live-pulse-pill { display: none; }
  .hero-grid, .engine-grid, .launcher-showcase, .drawer-inner {
    grid-template-columns: 1fr;
  }
  .hero-hud-card { justify-self: start; width: 100%; }
  .hero-dock { grid-template-columns: repeat(3, 1fr); }
  .games-showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .hero-dock { grid-template-columns: repeat(2, 1fr); }
  .games-showcase-grid, .specs-dual, .os-download-grid, .engine-pillars {
    grid-template-columns: 1fr;
  }
  .launcher-showcase, .playtest-banner { padding: 26px 20px; }
  .lw-body { grid-template-columns: 1fr; }
  .nav-launcher-cta { display: none; }
}


/* --- Extra Studio Polish: Light Sweeps, Engine Scene Switcher, Toast & Mobile Safety --- */
.btn-download-mega::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-22deg);
  animation: ctaSweep 3.8s infinite;
  pointer-events: none;
}

.rt-scene-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.rt-scene-btn {
  padding: 7px 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-family: 'Chakra Petch', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
}

.rt-scene-btn.active,
.rt-scene-btn:hover {
  color: #05070f;
  background: var(--game-secondary);
  border-color: var(--game-secondary);
}

.game-card-3d.filtering-out {
  opacity: 0;
  transform: scale(0.92) translateY(16px) !important;
  pointer-events: none;
}

.studio-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 4500;
  max-width: 400px;
  padding: 15px 20px;
  border-radius: 16px;
  background: rgba(8, 13, 27, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--game-secondary);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 28px rgba(0, 240, 255, 0.24);
  color: #f8fafc;
  font-size: 13.5px;
  line-height: 1.45;
  transform: translateY(120px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.42s var(--ease-spring), opacity 0.3s ease;
}

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

.studio-toast strong {
  display: block;
  font-family: 'Chakra Petch', sans-serif;
  color: var(--game-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.kinetic-drawer {
  overflow-y: auto;
}

@media (max-width: 680px) {
  .drawer-inner {
    padding: 96px 0 36px;
    gap: 22px;
    align-items: stretch;
  }
  .drawer-link {
    gap: 10px;
  }
  .drawer-roll {
    font-size: clamp(19px, 5.1vw, 24px);
  }
  .drawer-preview-card {
    aspect-ratio: auto;
    min-height: 256px;
    display: flex;
    align-items: flex-end;
  }
  .drawer-preview-card img {
    position: absolute;
    inset: 0;
  }
  .drawer-preview-overlay {
    position: relative;
    z-index: 2;
    padding: 20px;
    width: 100%;
  }
  .hud-stat-val {
    font-size: 16px;
    white-space: nowrap;
  }
  .hero-stage {
    padding-top: 98px;
  }
}
