:root {
  --primary: #8b5cf6;
  --primary-glow: rgba(139, 92, 246, 0.5);
  --secondary: #7c3aed;
  --accent: #c4b5fd;
  --accent-glow: rgba(196, 181, 253, 0.3);
  --bg-dark: #0d0221;
  --bg-mid: #1e0a3a;
  --bg-darkest: #080114;
  --card-bg: rgba(30, 10, 58, 0.7);
  --card-border: rgba(139, 92, 246, 0.25);
  --text-light: #f3f4f6;
  --text-gray: #d1d5db;
}

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

body {
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 400;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-mid) 50%, var(--bg-darkest) 100%);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

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

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  gap: 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 20px var(--primary-glow);
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

nav a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.age-badge {
  background: #ef4444;
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.age-badge-large {
  background: #ef4444;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.5);
  display: inline-block;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: 0.3s;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  border-radius: 50%;
  top: -300px;
  right: -300px;
  animation: pulse 8s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

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

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
  text-shadow: 4px 4px 0 var(--secondary), -1px -1px 30px var(--primary-glow);
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-gray);
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

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

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.btn {
  padding: 1rem 2.5rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: all 0.4s ease-out;
  text-decoration: none;
  display: inline-block;
  position: relative;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 0 var(--secondary), 0 12px 24px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 0 var(--secondary), 0 16px 32px var(--primary-glow);
}

.btn-primary:active {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--secondary), 0 8px 16px var(--primary-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: 0 8px 0 rgba(196, 181, 253, 0.3), 0 12px 24px var(--accent-glow);
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--bg-dark);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 0 rgba(196, 181, 253, 0.4), 0 16px 32px var(--accent-glow);
}

.disclaimer-small {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-top: 1.5rem;
  opacity: 0.8;
}

section {
  padding: 100px 20px;
  position: relative;
}

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

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  text-shadow: 3px 3px 0 var(--secondary);
  display: inline-block;
}

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

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
}

.game-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease-out;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 rgba(139, 92, 246, 0);
  position: relative;
}

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

.game-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 48px rgba(139, 92, 246, 0.4), 0 0 60px var(--primary-glow);
  border-color: var(--primary);
}

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

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

.game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-out;
}

.game-card:hover .game-image {
  transform: scale(1.1);
}

.game-image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-weight: 600;
  padding: 20px;
  text-align: center;
}

.game-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem 0.5rem;
  position: relative;
  z-index: 2;
}

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

.game-title {
  font-size: 1.25rem;
  padding: 0 1.25rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.play-demo-btn {
  width: calc(100% - 2.5rem);
  margin: 0 1.25rem 1.25rem;
  padding: 0.85rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s ease-out;
  box-shadow: 0 4px 0 var(--secondary);
  position: relative;
  z-index: 2;
}

.play-demo-btn:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #6d28d9, 0 8px 20px var(--primary-glow);
}

.play-demo-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 0 var(--secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s ease-out;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.feature-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 40px var(--primary-glow);
  border-color: var(--primary);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.feature-card p {
  color: var(--text-gray);
  line-height: 1.7;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 24px var(--primary-glow);
}

.step-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.step-card p {
  color: var(--text-gray);
  line-height: 1.7;
}

.responsible-gaming {
  background: var(--card-bg);
  border: 2px solid #ef4444;
  border-radius: 16px;
  padding: 4rem 2rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 12px 40px rgba(239, 68, 68, 0.3);
}

.responsible-gaming-icon {
  font-size: 5rem;
  margin-bottom: 2rem;
  display: inline-block;
}

.responsible-gaming h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #ef4444;
}

.responsible-gaming p {
  font-size: 1.15rem;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.responsible-gaming ul {
  list-style: none;
  max-width: 600px;
  margin: 2rem auto;
  text-align: left;
}

.responsible-gaming li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text-gray);
}

.responsible-gaming li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 700;
  font-size: 1.25rem;
}

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

.faq-item {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 14px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.4s ease-out;
}

.faq-item:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.faq-question {
  padding: 1.5rem 2rem;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease-out;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.faq-answer p {
  padding: 0 2rem 1.5rem;
  color: var(--text-gray);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-toggle {
  font-size: 1.5rem;
  transition: transform 0.3s ease-out;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

footer {
  background: var(--bg-darkest);
  border-top: 2px solid var(--card-border);
  padding: 3rem 0 2rem;
  margin-top: 100px;
}

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

.footer-section h3 {
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: var(--text-gray);
  text-decoration: none;
  transition: all 0.3s ease-out;
}

.footer-section a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-disclaimer {
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.footer-disclaimer p {
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-gray);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-out;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-mid);
  border: 2px solid var(--card-border);
  border-radius: 20px;
  padding: 3rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.8);
  transition: transform 0.3s ease-out;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
}

.modal h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #ef4444;
}

.modal p {
  color: var(--text-gray);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-accept {
  background: #10b981;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease-out;
  box-shadow: 0 4px 0 #059669;
}

.btn-accept:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #047857, 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-decline {
  background: #ef4444;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease-out;
  box-shadow: 0 4px 0 #dc2626;
}

.btn-decline:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #b91c1c, 0 8px 20px rgba(239, 68, 68, 0.4);
}

.game-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-out;
}

.game-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: 95%;
  max-width: 1400px;
  height: 90vh;
  background: var(--bg-mid);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--bg-darkest);
  border-bottom: 2px solid var(--card-border);
}

.modal-header h2 {
  font-size: 1.5rem;
  color: var(--accent);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 2.5rem;
  cursor: pointer;
  transition: all 0.3s ease-out;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  transform: rotate(90deg);
}

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

.demo-unavailable {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

.demo-unavailable p {
  font-size: 1.5rem;
  color: var(--text-gray);
}

.filter-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  color: var(--text-light);
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease-out;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
  transform: translateY(-2px);
}

.content-page {
  padding: 100px 20px;
  min-height: calc(100vh - 400px);
}

.content-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
  text-shadow: 3px 3px 0 var(--secondary);
}

.content-page h2 {
  font-size: 1.75rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.content-page p {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.content-page ul, .content-page ol {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  line-height: 1.8;
}

.content-page li {
  margin-bottom: 0.75rem;
}

.age-banner {
  background: rgba(239, 68, 68, 0.15);
  border: 2px solid rgba(239, 68, 68, 0.4);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.age-banner p {
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(13, 2, 33, 0.98);
    flex-direction: column;
    padding: 2rem;
    transition: left 0.3s ease-out;
    border-top: 2px solid var(--card-border);
  }

  nav.active {
    left: 0;
  }

  nav a {
    font-size: 1.25rem;
    padding: 1rem;
  }

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

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .modal {
    padding: 2rem;
  }

  .modal-content {
    height: 85vh;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}