/* ==========================================================================
   THE MISCREANT STUDIOS - GAMES SHOWCASE & MACOS GLASSMORPHIC ECOSYSTEM
   Live Service, Running Operations, Deep Void Nebula Rising, Endless Runner
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. LENIS ULTRA-SMOOTH INERTIAL SCROLL & PROGRESS BAR
   -------------------------------------------------------------------------- */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Neon Top Scroll Progress Indicator */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #8b5cf6, #c084fc, #06b6d4, #a855f7);
  background-size: 200% 100%;
  animation: progress-gradient-shift 4s ease infinite;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.8), 0 0 28px rgba(6, 182, 212, 0.4);
  z-index: 1000;
  pointer-events: none;
  transition: width 0.05s ease-out;
}

@keyframes progress-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hero Parallax Transition Layers */
.hero-content {
  transition: transform 0.1s ease-out, opacity 0.1s ease-out, filter 0.1s ease-out;
  will-change: transform, opacity, filter;
}

.hero-foreground-layer {
  transition: transform 0.1s ease-out, opacity 0.1s ease-out;
  will-change: transform;
}

/* --------------------------------------------------------------------------
   1. SECTION CONTAINER & BACKDROP TRANSITION
   -------------------------------------------------------------------------- */
.showcase-section {
  position: relative;
  z-index: 20;
  padding: 80px 0 160px;
  background: linear-gradient(180deg, 
    transparent 0%, 
    rgba(7, 5, 18, 0.6) 10%, 
    rgba(8, 6, 20, 0.94) 25%, 
    rgba(6, 4, 16, 0.99) 50%, 
    #060410 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: none;
  overflow: hidden;
}

/* Ambient Radial Glow Spots in Background */
.showcase-section::before {
  content: '';
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 650px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.14) 0%, rgba(6, 182, 212, 0.06) 50%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.showcase-section::after {
  content: '';
  position: absolute;
  bottom: 8%;
  right: 8%;
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.09) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   2. MACOS FLOATING DOCK FILTER BAR
   -------------------------------------------------------------------------- */
.macos-dock-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
  position: sticky;
  top: 24px;
  z-index: 50;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.macos-dock {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(18, 14, 38, 0.8);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  box-shadow: 
    0 20px 45px -10px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(139, 92, 246, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
}

.dock-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #94a3b8;
  background: transparent;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-transform: uppercase;
  position: relative;
  white-space: nowrap;
}

.dock-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.dock-pill.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.5) 0%, rgba(192, 132, 252, 0.35) 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.dock-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #a855f7;
  box-shadow: 0 0 8px #a855f7;
}

.dock-indicator-dot.live {
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* --------------------------------------------------------------------------
   3. SECTION HEADERS & STUDIO TELEMETRY
   -------------------------------------------------------------------------- */
.showcase-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 60px;
}

.showcase-tag {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(192, 132, 252, 0.15) 100%);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-purple-bright);
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.showcase-title {
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 16px;
}

.showcase-desc {
  font-size: 1.1rem;
  color: #94a3b8;
  line-height: 1.6;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   4. 3D COVERFLOW GAMES CAROUSEL ARCHITECTURE
   -------------------------------------------------------------------------- */
.games-carousel-wrapper {
  position: relative;
  width: 100%;
  padding: 10px 0 25px;
  user-select: none;
  overflow: visible;
}

.carousel-stage {
  position: relative;
  width: 100%;
  height: 550px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  overflow: visible;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
}

/* Common macOS Window Card Base */
.macos-card {
  background: rgba(14, 11, 28, 0.72);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.65),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  position: relative;
  transform-style: preserve-3d;
}

/* Carousel Card Specifics */
.carousel-card {
  position: absolute;
  width: min(440px, 86vw);
  max-width: 460px;
  transform-origin: center center;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), 
              opacity 0.65s ease, 
              filter 0.65s ease, 
              box-shadow 0.65s ease,
              border-color 0.4s ease;
  will-change: transform, opacity;
  cursor: pointer;
  z-index: 1;
}

.carousel-card.active-card {
  cursor: default;
  border-color: rgba(192, 132, 252, 0.48);
  box-shadow: 
    0 35px 70px -15px rgba(0, 0, 0, 0.9),
    0 0 35px rgba(139, 92, 246, 0.32),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.carousel-card .game-card-media {
  height: 230px;
  position: relative;
  overflow: hidden;
}

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

/* Bottom Navigation Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
  position: relative;
  z-index: 25;
}

.carousel-nav-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(18, 14, 38, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 0 18px rgba(139, 92, 246, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.carousel-nav-btn:hover {
  transform: scale(1.12);
  color: #ffffff;
  border-color: rgba(192, 132, 252, 0.8);
  background: rgba(139, 92, 246, 0.35);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.8), 0 0 28px rgba(139, 92, 246, 0.6);
}

.carousel-nav-btn:active {
  transform: scale(0.92);
}

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

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.25);
}

.carousel-dot.active {
  width: 28px;
  border-radius: 6px;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.65);
}

/* Specular border sheen sweep on hover */
.macos-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transition: left 0.75s ease;
  pointer-events: none;
  z-index: 10;
}

.macos-card:hover::before {
  left: 100%;
}

.macos-card:hover {
  border-color: rgba(192, 132, 252, 0.4);
  box-shadow: 
    0 35px 70px -15px rgba(0, 0, 0, 0.85),
    0 0 40px rgba(139, 92, 246, 0.28),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* macOS Window Header Bar */
.macos-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #64748b;
  user-select: none;
}

.traffic-lights {
  display: flex;
  align-items: center;
  gap: 7px;
}

.traffic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.traffic-red { background-color: #ff5f56; }
.traffic-yellow { background-color: #ffbd2e; }
.traffic-green { background-color: #27c93f; }

.macos-window-title {
  color: #cbd5e1;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.macos-window-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #a855f7;
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   5. FEATURED CARD: DEEP VOID - NEBULA RISING (Col 12)
   -------------------------------------------------------------------------- */
.card-featured-expansion {
  grid-column: span 12;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  position: relative;
}

.expansion-visual-wrapper {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 380px;
}

.expansion-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-featured-expansion:hover .expansion-img {
  transform: scale(1.04);
}

.expansion-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(14, 11, 28, 0.4) 70%, rgba(14, 11, 28, 0.95) 100%),
              linear-gradient(0deg, rgba(14, 11, 28, 0.8) 0%, transparent 40%);
  pointer-events: none;
}

.expansion-live-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.18);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 9999px;
  color: #34d399;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.expansion-content {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 5;
}

.expansion-category {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: #c084fc;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.expansion-title {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 14px;
}

.expansion-quote {
  font-size: 1.15rem;
  font-weight: 500;
  color: #e2e8f0;
  margin-bottom: 16px;
  line-height: 1.4;
}

.expansion-desc {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 24px;
}

.expansion-features-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.feat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #cbd5e1;
}

.feat-pill span {
  color: #a855f7;
}

.expansion-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  box-shadow: 0 0 25px rgba(147, 51, 234, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-primary-glow:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 100%);
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.65);
}

.btn-secondary-mac {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: #e2e8f0;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
  text-decoration: none;
}

.btn-secondary-mac:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* --------------------------------------------------------------------------
   6. BENTO CARDS: LIVE SERVICE SHOOTERS (Col 6 each)
   -------------------------------------------------------------------------- */
.card-shooter-tactical {
  grid-column: span 6;
  min-height: 480px;
}

.card-shooter-squad {
  grid-column: span 6;
  min-height: 480px;
}

.game-card-media {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.game-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.macos-card:hover .game-card-media img {
  transform: scale(1.05);
}

.game-card-media .media-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  backdrop-filter: blur(14px);
}

.badge-live {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.badge-tournament {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.game-card-media .media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(14, 11, 28, 0.95) 0%, transparent 60%);
}

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

.game-tagline-sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: #a855f7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.game-card-title {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin-bottom: 10px;
}

.game-card-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 20px;
}

.game-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  margin-bottom: 22px;
  margin-top: auto;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-val {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: #f1f5f9;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.server-ping-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #34d399;
}

.server-ping-badge .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* --------------------------------------------------------------------------
   7. BENTO CARDS: CONCEPT DEVELOPMENT & ENDLESS RUNNER (Col 7 & Col 5)
   -------------------------------------------------------------------------- */
.card-concept-runner {
  grid-column: span 7;
  min-height: 460px;
}

.card-concept-terminal {
  grid-column: span 5;
  min-height: 460px;
}

.badge-concept {
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c084fc;
}

/* Concept Telemetry Terminal */
.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(8, 6, 18, 0.95);
  flex-grow: 1;
}

.term-line {
  display: flex;
  gap: 10px;
}

.term-prompt {
  color: #06b6d4;
  user-select: none;
}

.term-text {
  color: #e2e8f0;
}

.term-accent {
  color: #a855f7;
  font-weight: 600;
}

.term-success {
  color: #34d399;
}

.term-metric-box {
  margin-top: auto;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
}

.metric-bar-wrapper {
  margin-top: 8px;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  width: 82%;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  border-radius: 4px;
  animation: bar-glow 3s ease-in-out infinite alternate;
}

@keyframes bar-glow {
  0% { opacity: 0.7; }
  100% { opacity: 1; filter: drop-shadow(0 0 6px #06b6d4); }
}

/* --------------------------------------------------------------------------
   8. MACOS STUDIO STATUS FOOTER BAR
   -------------------------------------------------------------------------- */
.studio-dock-footer {
  margin-top: 90px;
  padding: 24px 32px;
  background: rgba(14, 11, 28, 0.85);
  backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
}

.studio-footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.studio-logo-mini {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.studio-clock {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #64748b;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.studio-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-mac-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-mac-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   9. SCROLL REVEAL & 3D SPRING GLIDE ANIMATIONS
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: perspective(1000px) rotateX(10deg) translateY(60px) scale(0.95);
  filter: blur(8px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1);
  filter: blur(0px);
}

/* Stagger delays */
.delay-100 { transition-delay: 80ms; }
.delay-200 { transition-delay: 160ms; }
.delay-300 { transition-delay: 240ms; }
.delay-400 { transition-delay: 320ms; }

/* Scroll down anchor indicator on Hero */
.scroll-indicator-wrap {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease, opacity 0.3s ease;
  text-decoration: none;
}

.scroll-indicator-wrap:hover {
  color: #c084fc;
  transform: translateX(-50%) translateY(3px);
}

.scroll-mouse-icon {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse-icon::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background-color: #a855f7;
  border-radius: 2px;
  animation: mouse-wheel 1.8s infinite;
}

@keyframes mouse-wheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 14px); opacity: 0; }
}

/* --------------------------------------------------------------------------
   10. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .card-featured-expansion {
    grid-template-columns: 1fr;
  }
  
  .card-shooter-tactical,
  .card-shooter-squad,
  .card-concept-runner,
  .card-concept-terminal {
    grid-column: span 12;
  }

  .expansion-content {
    padding: 28px 24px;
  }
}

@media (max-width: 768px) {
  .carousel-stage {
    height: 570px;
  }
  .carousel-card {
    width: calc(100vw - 36px);
    max-width: 370px;
  }
  .carousel-card .game-card-media {
    height: 190px;
  }
  .carousel-card .game-card-body {
    padding: 18px 20px 22px;
  }
  .carousel-controls {
    margin-top: 24px;
    gap: 16px;
  }
  .carousel-nav-btn {
    width: 46px;
    height: 46px;
  }

  .studio-dock-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .studio-clock {
    padding-left: 0;
    border-left: none;
  }
}
