:root {
  --primary: #a855f7;
  --primary-glow: rgba(168, 85, 247, 0.4);
  --secondary: #6366f1;
  --accent: #f472b6;
  --accent-glow: rgba(244, 114, 182, 0.3);
  --bg-start: #1e1b4b;
  --bg-mid: #312e81;
  --bg-end: #0f0a1a;
  --card-bg: rgba(30, 27, 75, 0.6);
  --card-border: rgba(168, 85, 247, 0.2);
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-mid) 50%, var(--bg-end) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Header */
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);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.age-badge {
  background: #dc2626;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid #991b1b;
}

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

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.4s ease-out;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow), transparent);
  animation: float 8s ease-in-out infinite;
}

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

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

.hero-badge {
  background: #dc2626;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 700;
  border: 3px solid #991b1b;
  display: inline-block;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--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: 32px;
  max-width: 500px;
}

.hero-disclaimer {
  font-size: 14px;
  color: #94a3b8;
  margin-top: 16px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid;
  cursor: pointer;
  transition: all 0.4s ease-out;
  text-decoration: none;
  display: inline-block;
  border-radius: 4px;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 20px var(--primary-glow);
}

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

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

.btn-secondary:hover {
  background: var(--accent);
  color: white;
  transform: scale(1.03);
}

.hero-image {
  position: relative;
  z-index: 2;
}

.hero-image-container {
  width: 100%;
  height: 500px;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.hero-image-container::before {
  content: '🎰';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 80px;
  opacity: 0.3;
}

/* Section */
section {
  padding: 80px 0;
  position: relative;
}

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

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

.section-header p {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

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

.game-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s ease-out;
  cursor: pointer;
  position: relative;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-glow), transparent);
  opacity: 0;
  transition: opacity 0.4s ease-out;
  pointer-events: none;
}

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

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

.game-image-container {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1e293b, #334155);
  position: relative;
  overflow: hidden;
}

.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: 700;
  color: var(--primary);
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(244, 114, 182, 0.1));
}

.game-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
}

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

.game-title {
  padding: 16px;
  font-size: 18px;
  font-weight: 600;
  color: white;
  min-height: 60px;
}

.play-demo-btn {
  width: calc(100% - 32px);
  margin: 0 16px 16px;
  padding: 12px;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease-out;
  border-radius: 4px;
}

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

/* 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: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

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

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

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

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease-out;
}

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

#game-iframe {
  flex: 1;
  border: none;
  background: #000;
}

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

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

.feature-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  transition: all 0.4s ease-out;
}

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

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

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

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

/* 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-radius: 8px;
  padding: 32px;
  text-align: center;
  position: relative;
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  border: 3px solid var(--bg-start);
}

.step-icon {
  font-size: 48px;
  margin: 20px 0 16px;
}

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

.step-card p {
  color: var(--text-secondary);
}

/* Responsible Gaming */
.responsible-gaming {
  background: rgba(220, 38, 38, 0.1);
  border: 2px solid #dc2626;
  border-radius: 8px;
  padding: 60px 40px;
  text-align: center;
  margin: 80px 0;
}

.responsible-gaming .large-badge {
  font-size: 48px;
  background: #dc2626;
  color: white;
  padding: 16px 32px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 24px;
  border: 4px solid #991b1b;
  font-weight: 700;
}

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

.responsible-gaming p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 24px;
}

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

.responsible-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  transition: all 0.4s ease-out;
}

.responsible-links a:hover {
  background: var(--accent);
  color: white;
}

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

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

.faq-question {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--primary);
}

.faq-answer {
  color: var(--text-secondary);
  line-height: 1.8;
}

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

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  margin-bottom: 20px;
  color: var(--primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.4s ease-out;
}

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

.footer-badge-large {
  font-size: 64px;
  background: #dc2626;
  color: white;
  padding: 20px 40px;
  border-radius: 8px;
  display: inline-block;
  border: 4px solid #991b1b;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-disclaimer {
  background: rgba(220, 38, 38, 0.1);
  border: 2px solid #dc2626;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 30px;
  text-align: center;
}

.footer-disclaimer p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--card-border);
  color: var(--text-secondary);
}

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

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

.age-modal-content {
  background: var(--bg-start);
  border: 3px solid #dc2626;
  border-radius: 8px;
  padding: 60px 40px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 0 60px rgba(220, 38, 38, 0.5);
}

.age-modal-icon {
  font-size: 80px;
  background: #dc2626;
  color: white;
  padding: 20px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 24px;
  border: 4px solid #991b1b;
}

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

.age-modal p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

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

.age-modal-buttons .btn {
  flex: 1;
  max-width: 200px;
}

.btn-danger {
  background: #dc2626;
  border-color: #dc2626;
  color: white;
}

.btn-danger:hover {
  background: #991b1b;
  border-color: #991b1b;
}

/* Category Filter */
.category-filters {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 24px;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.4s ease-out;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 20px var(--primary-glow);
}

/* Content Pages */
.content-page {
  padding: 80px 0;
  min-height: 60vh;
}

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

.content-page h2 {
  font-size: 32px;
  margin: 40px 0 20px;
  color: var(--accent);
}

.content-page h3 {
  font-size: 24px;
  margin: 32px 0 16px;
}

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

.content-page ul,
.content-page ol {
  color: var(--text-secondary);
  margin: 16px 0 16px 32px;
  line-height: 1.8;
}

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

.content-box {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 32px;
  margin: 32px 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
  }
  
  .hero-content {
    order: 2;
  }
  
  .hero-image {
    order: 1;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 42px;
  }
}

@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 68px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 68px);
    background: rgba(15, 10, 26, 0.98);
    flex-direction: column;
    padding: 40px;
    transition: left 0.4s ease-out;
    border-right: 1px solid var(--card-border);
  }
  
  nav.active {
    left: 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .section-header h2 {
    font-size: 32px;
  }
  
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .modal-content {
    height: 95vh;
  }
  
  .age-modal-content {
    padding: 40px 24px;
  }
  
  .footer-badge-large {
    font-size: 48px;
    padding: 16px 32px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
}