/* ═══════════════════════════════════════════════
   TapDev Studios — Design System
   Premium Game Studio Website
   ═══════════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
  /* Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  --text-primary: #f0f0f5;
  --text-secondary: rgba(240, 240, 245, 0.65);
  --text-muted: rgba(240, 240, 245, 0.4);

  --accent-orange: #f97316;
  --accent-orange-glow: rgba(249, 115, 22, 0.3);
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.3);
  --accent-blue: #3b82f6;
  --accent-green: #10b981;

  --gradient-hero: linear-gradient(135deg, #f97316 0%, #ec4899 50%, #8b5cf6 100%);
  --gradient-card: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 6rem 2rem;
  --container-max: 1200px;
  --border-radius: 16px;
  --border-radius-sm: 10px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--accent-orange);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #fb923c;
}

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

/* ─── Utility ─── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* ─── Animated Background Gradient ─── */
.bg-gradient-animated {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-gradient-animated::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-orange-glow) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: floatBlob1 20s ease-in-out infinite;
}

.bg-gradient-animated::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-purple-glow) 0%, transparent 70%);
  bottom: -100px;
  left: -150px;
  animation: floatBlob2 25s ease-in-out infinite;
}

@keyframes floatBlob1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-80px, 60px) scale(1.1); }
  66% { transform: translate(40px, -30px) scale(0.95); }
}

@keyframes floatBlob2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.15); }
  66% { transform: translate(-30px, 50px) scale(0.9); }
}

/* ═══════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: background var(--transition-smooth), backdrop-filter var(--transition-smooth), box-shadow var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 1px 0 var(--border-subtle);
}

.navbar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-logo img {
  height: 52px;
  width: auto;
}

.navbar-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  border-radius: 1px;
  transition: width var(--transition-smooth);
}

.navbar-links a:hover {
  color: var(--text-primary);
}

.navbar-links a:hover::after {
  width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* ═══════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
}

.hero-content {
  max-width: 800px;
  animation: fadeInUp 0.8s ease-out both;
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(249, 115, 22, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: logoFloat 4s ease-in-out infinite;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 14px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-orange);
  color: white;
  box-shadow: 0 8px 32px var(--accent-orange-glow);
}

.btn-primary:hover {
  background: #fb923c;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--accent-orange-glow);
  color: white;
}

.btn-ghost {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════
   GAMES SECTION
   ═══════════════════════════════════════════════ */
.games-section {
  position: relative;
  z-index: 1;
  padding: var(--section-padding);
}

.games-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.games-section .section-subtitle {
  margin: 0 auto;
}

.game-showcase {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.game-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.game-showcase:hover::before {
  opacity: 1;
}

.game-showcase:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.game-icon-wrapper {
  position: relative;
  z-index: 1;
}

.game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 44px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-details {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(249, 115, 22, 0.15);
  color: var(--accent-orange);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(249, 115, 22, 0.25);
  width: fit-content;
  margin-bottom: 1rem;
}

.game-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-orange);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.game-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.game-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.game-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.store-badges {
  display: flex;
  gap: 0.75rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.store-badge:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.store-badge svg {
  width: 18px;
  height: 18px;
}

/* ═══════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════ */
.about-section {
  position: relative;
  z-index: 1;
  padding: var(--section-padding);
}

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

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: all var(--transition-smooth);
}

.about-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.about-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

.about-card-icon.orange {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(249, 115, 22, 0.1) 100%);
  color: var(--accent-orange);
}

.about-card-icon.purple {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
  color: var(--accent-purple);
}

.about-card-icon.blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
  color: var(--accent-blue);
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════ */
.contact-section {
  position: relative;
  z-index: 1;
  padding: var(--section-padding);
  text-align: center;
}

.contact-card {
  max-width: 600px;
  margin: 2rem auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  padding: 2.5rem;
}

.contact-email {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-email a {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-note {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: 2rem;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

/* ═══════════════════════════════════════════════
   LEGAL PAGES (Privacy & Terms)
   ═══════════════════════════════════════════════ */
.legal-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  padding-left: 1rem;
  border-left: 3px solid var(--accent-orange);
}

.legal-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content ul {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

.legal-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.legal-back:hover {
  color: var(--accent-orange);
}

/* ═══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --section-padding: 4rem 1.25rem;
  }

  .navbar-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding: 7rem 1.25rem 4rem;
  }

  .hero-logo {
    width: 90px;
    height: 90px;
    border-radius: 22px;
  }

  .game-showcase {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .game-icon {
    width: 160px;
    margin: 0 auto;
    border-radius: 32px;
  }

  .game-details {
    text-align: center;
  }

  .game-badge {
    margin: 0 auto 1rem;
  }

  .game-tags {
    justify-content: center;
  }

  .store-badges {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .game-title {
    font-size: 1.4rem;
  }
}

/* ═══════════════════════════════════════════════
   ANLAT BAKALIM DEDICATED PAGE STYLES
   ═══════════════════════════════════════════════ */
.game-page-body {
  background: #06060c;
}

.game-hero {
  position: relative;
  z-index: 1;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
}

.game-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.game-hero-details {
  text-align: left;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  transition: color var(--transition-fast);
}

.back-link:hover {
  color: var(--accent-orange);
}

.game-hero-badge {
  display: inline-flex;
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  margin-bottom: 1rem;
  width: fit-content;
}

.game-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.game-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.game-hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.game-icon-glow-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
}

.game-icon-glow-wrapper::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
  z-index: -1;
  animation: pulseGlow 4s ease-in-out infinite;
}

.game-icon-large {
  width: 100%;
  height: 100%;
  border-radius: 54px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* ─── Carousel Section ─── */
.game-showcase-section {
  position: relative;
  z-index: 1;
  padding: var(--section-padding);
}

.carousel-container {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

.phone-mockup-wrapper {
  position: relative;
  width: 320px;
  height: 640px;
  margin: 0 auto;
}

.phone-mockup-bezel {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 12px solid #1a1a24;
  border-radius: 40px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.phone-mockup-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  background: #0b0c25;
}

.phone-mockup-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 25px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

.carousel-slides {
  display: flex;
  width: 500%;
  height: 100%;
  transition: transform var(--transition-smooth);
}

.carousel-slide {
  width: 20%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.carousel-info-card {
  padding: 1.25rem 1.5rem;
  border-radius: var(--border-radius-sm);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
}

.carousel-info-card:hover {
  background: rgba(255, 255, 255, 0.02);
}

.carousel-info-card.active {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.carousel-info-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 0.25rem;
  opacity: 0.7;
}

.carousel-info-card.active .carousel-info-num {
  opacity: 1;
}

.carousel-info-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.carousel-info-card.active h3 {
  color: var(--text-primary);
}

.carousel-info-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--transition-smooth), opacity var(--transition-smooth), margin var(--transition-smooth);
}

.carousel-info-card.active p {
  max-height: 150px;
  opacity: 1;
  margin-top: 0.5rem;
  color: var(--text-secondary);
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-left: 1.5rem;
}

.carousel-control-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-control-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: scale(1.05);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-dot.active {
  background: var(--accent-orange);
  width: 20px;
  border-radius: 4px;
}

/* ─── Game Modes Grid ─── */
.game-modes-section {
  position: relative;
  z-index: 1;
  padding: var(--section-padding);
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.mode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
}

.mode-card.card-blue::before { background: var(--accent-blue); }
.mode-card.card-green::before { background: var(--accent-green); }
.mode-card.card-orange::before { background: var(--accent-orange); }
.mode-card.card-purple::before { background: var(--accent-purple); }
.mode-card.card-red::before { background: #f43f5e; }

.mode-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.mode-card-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.mode-card-icon {
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
}

.mode-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.mode-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── CTA Call to Action ─── */
.game-cta-section {
  padding: var(--section-padding);
  text-align: center;
}

.game-cta-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--border-radius);
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.game-cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.game-cta-card p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ─── Responsive Subpage ─── */
@media (max-width: 900px) {
  .carousel-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .phone-mockup-wrapper {
    width: 280px;
    height: 560px;
  }
  
  .carousel-controls {
    justify-content: center;
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .game-hero {
    padding: 6rem 1.25rem 3rem;
  }

  .game-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  
  .game-hero-details {
    text-align: center;
  }
  
  .back-link {
    justify-content: center;
  }
  
  .game-hero-media {
    order: -1;
  }
  
  .game-icon-glow-wrapper {
    width: 160px;
    height: 160px;
  }
  
  .game-icon-large {
    border-radius: 36px;
  }
}

