/* CSS Reset & Variables */
:root {
  --primary: #a855f7;
  --primary-glow: rgba(168, 85, 247, 0.4);
  --secondary: #6366f1;
  --accent: #f472b6;
  --accent-glow: rgba(244, 114, 182, 0.3);
  --bg-from: #1e1b4b;
  --bg-via: #312e81;
  --bg-to: #0f0a1a;
  --card-bg: rgba(30, 27, 75, 0.6);
  --card-border: rgba(168, 85, 247, 0.2);
  --text: #ffffff;
  --text-muted: #d1d5db;
  --transition: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

body {
  font-family: 'Open Sans', system-ui, sans-serif;
  font-weight: 400;
  background: linear-gradient(135deg, var(--bg-from), var(--bg-via), var(--bg-to));
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 10, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}

.nav-menu a {
  transition: color 0.2s var(--transition);
  font-weight: 500;
}

.nav-menu a:hover { color: var(--primary); }

.age-badge {
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 14px;
  display: inline-block;
  box-shadow: 0 0 20px var(--accent-glow);
}

.mobile-toggle {
  display: none;
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 4px;
}

/* Age Verification Modal */
.age-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

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

.age-modal-content {
  background: var(--bg-from);
  border: 2px solid var(--primary);
  padding: 48px;
  border-radius: 8px;
  text-align: center;
  max-width: 500px;
  box-shadow: 0 0 60px var(--primary-glow);
}

.age-modal h2 {
  font-size: 32px;
  margin-bottom: 24px;
  color: var(--primary);
}

.age-modal .age-icon {
  font-size: 72px;
  margin-bottom: 24px;
  display: block;
}

.age-modal p { margin-bottom: 32px; font-size: 18px; }

.age-modal-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('https://images.unsplash.com/photo-1596838132731-3301c3fd4317?w=1920');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 10, 26, 0.9), rgba(49, 46, 129, 0.85));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 20px;
}

.hero h1 {
  font-size: 64px;
  margin-bottom: 24px;
  text-shadow: 0 0 40px var(--primary-glow);
  animation: float 3s ease-in-out infinite;
}

.hero p {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-disclaimer {
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  padding: 16px 32px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 16px;
  border: 3px solid var(--primary);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s var(--transition);
  display: inline-block;
}

.btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px var(--primary-glow);
}

.btn-secondary {
  background: transparent;
  border-color: var(--secondary);
  color: var(--secondary);
}

.btn-secondary:hover {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

/* Sections */
.section {
  padding: 80px 20px;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 48px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-muted);
}

/* Game Cards */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.game-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  padding: 0;
  transition: all 0.2s var(--transition);
  cursor: pointer;
  overflow: hidden;
}

.game-card:hover {
  transform: scale(1.08);
  border-color: var(--primary);
  box-shadow: 0 8px 32px var(--primary-glow);
}

.game-image-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-via), var(--bg-to));
  position: relative;
}

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

.game-image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  padding: 20px;
  text-align: center;
  color: var(--primary);
}

.game-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 8px;
}

.game-category {
  font-size: 12px;
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
}

.game-title {
  font-size: 20px;
  padding: 0 20px 16px;
  min-height: 60px;
}

.play-demo-btn {
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 12px;
  background: var(--secondary);
  border: 2px solid var(--secondary);
  color: #fff;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s var(--transition);
}

.play-demo-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* Game Modal */
.game-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9998;
  padding: 20px;
  align-items: center;
  justify-content: center;
}

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

.modal-content {
  background: var(--bg-from);
  border: 2px solid var(--primary);
  border-radius: 8px;
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px var(--primary-glow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 2px solid var(--card-border);
  gap: 16px;
}

.modal-header h2 {
  font-size: 24px;
  flex: 1;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.close-btn:hover { color: var(--accent); }

#game-iframe {
  width: 100%;
  height: 600px;
  border: none;
  flex: 1;
}

.demo-unavailable {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  font-size: 20px;
  color: var(--text-muted);
}

/* Category Filter */
.category-filter {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.category-btn {
  padding: 12px 24px;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s var(--transition);
}

.category-btn:hover, .category-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.05);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-top: 4px solid var(--accent);
  padding: 32px;
  border-radius: 6px;
  text-align: center;
  transition: all 0.2s var(--transition);
}

.feature-card:hover {
  transform: scale(1.08);
  border-color: var(--accent);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.step-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-left: 4px solid var(--secondary);
  padding: 32px;
  border-radius: 6px;
  text-align: center;
}

.step-number {
  display: inline-block;
  width: 48px;
  height: 48px;
  background: var(--secondary);
  color: #fff;
  font-weight: 800;
  font-size: 24px;
  line-height: 48px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

/* Responsible Gaming */
.responsible-gaming {
  background: var(--card-bg);
  border: 2px solid var(--accent);
  padding: 60px 40px;
  border-radius: 8px;
  text-align: center;
  margin: 80px auto;
  max-width: 900px;
}

.responsible-icon {
  font-size: 96px;
  margin-bottom: 24px;
  display: block;
}

.responsible-gaming h2 {
  font-size: 40px;
  margin-bottom: 20px;
}

.responsible-gaming p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.responsible-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 6px;
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 24px;
  background: none;
  border: none;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 18px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover { color: var(--primary); }

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-muted);
}

.faq-answer.active {
  padding: 0 24px 24px;
  max-height: 500px;
}

/* Footer */
.footer {
  background: rgba(15, 10, 26, 0.95);
  border-top: 2px solid var(--card-border);
  padding: 60px 20px 32px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 24px;
}

.footer-badge {
  font-size: 48px;
  margin: 32px 0;
}

.footer-disclaimer {
  background: var(--card-bg);
  border: 2px solid var(--accent);
  padding: 24px;
  border-radius: 6px;
  margin: 32px 0;
  font-size: 14px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 24px 0;
}

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

.footer-copyright {
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Page Banner */
.page-banner {
  background: var(--card-bg);
  border: 2px solid var(--accent);
  padding: 16px;
  text-align: center;
  margin-bottom: 40px;
}

/* Content Page */
.content-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}

.content-page h1 {
  font-size: 48px;
  margin-bottom: 32px;
  text-align: center;
}

.content-page h2 {
  font-size: 32px;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--primary);
}

.content-page p {
  margin-bottom: 16px;
  color: var(--text-muted);
  line-height: 1.8;
}

.content-page ul {
  margin-left: 32px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.content-page li {
  margin-bottom: 8px;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(15, 10, 26, 0.98);
    flex-direction: column;
    padding: 40px;
    transition: left 0.3s ease;
  }
  
  .nav-menu.active { left: 0; }
  
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 16px; }
  
  .section-header h2 { font-size: 32px; }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  #game-iframe {
    height: 400px;
  }
  
  .modal-header h2 {
    font-size: 18px;
  }
  
  .age-modal-content {
    padding: 32px 24px;
  }
  
  .age-modal h2 {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .section { padding: 60px 20px; }
  .footer-links { flex-direction: column; gap: 16px; }
}