:root {
  --primary: #8b5cf6;
  --primary-glow: rgba(139, 92, 246, 0.5);
  --secondary: #7c3aed;
  --accent: #c4b5fd;
  --accent-glow: rgba(196, 181, 253, 0.3);
  --bg-from: #0d0221;
  --bg-via: #1e0a3a;
  --bg-to: #080114;
  --card-bg: rgba(30, 10, 58, 0.7);
  --card-border: rgba(139, 92, 246, 0.25);
  --text-primary: #ffffff;
  --text-secondary: #c4b5fd;
  --radius: 8px;
}

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

body {
  font-family: 'Work Sans', system-ui, sans-serif;
  font-weight: 400;
  background: linear-gradient(180deg, var(--bg-from) 0%, var(--bg-via) 50%, var(--bg-to) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 2, 33, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

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

.logo {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 15px;
}

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

.age-badge {
  background: #dc2626;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.age-badge-large {
  background: #dc2626;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 24px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  display: inline-block;
  margin: 20px 0;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 28px;
  cursor: pointer;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1511512578047-dfb367046420?w=1600');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(13, 2, 33, 0.92), rgba(30, 10, 58, 0.88));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 32px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  background: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  transform: scale(1.02);
}

.btn-primary {
  background: var(--primary);
}

.disclaimer-small {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0.8;
}

section {
  padding: 60px 20px;
}

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

.section-header h2 {
  font-size: 42px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

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

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

.game-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

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

.game-image-container {
  width: 100%;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 15px;
  position: relative;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.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-size: 20px;
  font-weight: 700;
  color: white;
  text-align: center;
  padding: 20px;
}

.game-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.game-category {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.game-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.play-demo-btn {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--text-primary);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.play-demo-btn:hover {
  background: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.steps-grid, .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.step-card, .feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover, .feature-card:hover {
  transform: scale(1.02);
  border-color: var(--primary);
}

.step-icon, .feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.step-card h3, .feature-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--primary);
}

.step-card p, .feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
}

.responsible-gaming {
  background: var(--card-bg);
  border: 2px solid #dc2626;
  border-radius: var(--radius);
  padding: 50px;
  text-align: center;
  margin: 40px auto;
  max-width: 900px;
}

.responsible-gaming h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #dc2626;
}

.responsible-gaming p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

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

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 25px;
  margin-bottom: 20px;
}

.faq-item h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--primary);
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 15px;
}

footer {
  background: rgba(13, 2, 33, 0.95);
  border-top: 1px solid var(--card-border);
  padding: 50px 20px 30px;
  margin-top: 60px;
}

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

.footer-logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  font-family: 'Outfit', system-ui, sans-serif;
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.footer-disclaimer {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 30px auto;
  max-width: 900px;
  font-size: 14px;
  color: var(--text-secondary);
}

.copyright {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 20px;
}

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

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

.age-modal-content {
  background: var(--card-bg);
  border: 2px solid #dc2626;
  border-radius: var(--radius);
  padding: 50px;
  max-width: 500px;
  text-align: center;
  animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.age-modal-content h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #dc2626;
}

.age-modal-content p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

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

.game-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;
  padding: 20px;
}

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

.modal-content {
  background: var(--bg-from);
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

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

.modal-header h2 {
  font-size: 24px;
  color: var(--primary);
  flex-grow: 1;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 32px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1;
}

.close-btn:hover {
  color: var(--primary);
  transform: scale(1.1);
}

#game-iframe {
  width: 100%;
  height: 80vh;
  border: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.demo-unavailable {
  display: none;
  align-items: center;
  justify-content: center;
  height: 400px;
  color: var(--text-secondary);
  font-size: 20px;
}

.category-filters {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 24px;
  background: transparent;
  border: 2px solid var(--card-border);
  color: var(--text-secondary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 15px;
  font-weight: 600;
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(139, 92, 246, 0.1);
}

.page-header {
  padding: 120px 20px 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 48px;
  margin-bottom: 15px;
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.page-content h2 {
  font-size: 28px;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary);
}

.page-content h3 {
  font-size: 22px;
  margin-top: 25px;
  margin-bottom: 12px;
  color: var(--accent);
}

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

.page-content ul {
  margin: 15px 0;
  padding-left: 25px;
  color: var(--text-secondary);
}

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

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(13, 2, 33, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--card-border);
    display: none;
  }
  
  nav.active {
    display: flex;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .section-header h2 {
    font-size: 32px;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .age-modal-content {
    padding: 30px;
    margin: 20px;
  }
  
  .modal-content {
    max-height: 95vh;
  }
  
  #game-iframe {
    height: 70vh;
  }
}