:root {
  --primary: #f43f5e;
  --primary-glow: rgba(244, 63, 94, 0.4);
  --secondary: #e11d48;
  --accent: #fb7185;
  --accent-glow: rgba(251, 113, 133, 0.3);
  --bg-dark: #0f0506;
  --bg-mid: #2d1215;
  --bg-light: #1c0a0d;
  --card-bg: rgba(45, 18, 21, 0.6);
  --card-border: rgba(244, 63, 94, 0.2);
  --text-primary: #ffffff;
  --text-secondary: #e5e7eb;
  --radius-sm: 4px;
  --radius-md: 8px;
}

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

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

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

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

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(28, 10, 13, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}

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

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

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

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

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

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

.age-badge {
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  font-family: 'Space Grotesk', sans-serif;
}

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

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

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 5, 6, 0.95) 0%, rgba(28, 10, 13, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: 80px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 2px solid var(--primary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-weight: 700;
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 24px;
  color: var(--text-primary);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

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

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn {
  padding: 14px 32px;
  border: 2px solid var(--primary);
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  display: inline-block;
  font-family: 'IBM Plex Sans', sans-serif;
  border-radius: var(--radius-sm);
}

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

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

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

.disclaimer-text {
  font-size: 14px;
  color: var(--text-secondary);
  opacity: 0.8;
}

section {
  padding: 80px 0;
  position: relative;
}

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

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border-left: 4px solid var(--primary);
  padding: 8px 16px;
  margin-bottom: 16px;
  font-weight: 700;
}

.section-header h2 {
  font-size: 42px;
  margin-bottom: 16px;
}

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

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

.game-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--primary);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.game-card:hover {
  transform: scale(1.01);
  border-color: var(--primary);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.game-image-container {
  position: relative;
  width: 100%;
  padding-top: 133%;
  background: linear-gradient(135deg, var(--bg-mid), var(--bg-dark));
  overflow: hidden;
}

.game-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

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

.game-info .age-badge {
  font-size: 11px;
  padding: 3px 8px;
}

.game-title {
  font-size: 18px;
  padding: 0 16px 12px;
  color: var(--text-primary);
}

.play-demo-btn {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 2px solid var(--primary);
  border-width: 2px 0 0 0;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
}

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

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--primary);
  padding: 32px;
  transition: all 0.2s ease-in-out;
  border-radius: var(--radius-sm);
}

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

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

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

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

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

.step {
  text-align: center;
}

.step-number {
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 20px;
}

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

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

.responsible-gaming {
  background: var(--card-bg);
  border: 2px solid var(--primary);
  padding: 60px 20px;
  text-align: center;
  border-radius: var(--radius-md);
}

.responsible-icon {
  font-size: 80px;
  margin-bottom: 24px;
}

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

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

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

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--primary);
  padding: 24px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
}

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

.faq-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

footer {
  background: var(--bg-dark);
  border-top: 2px solid var(--card-border);
  padding: 60px 20px 30px;
}

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

.footer-logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--primary);
  color: white;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 32px;
  margin-bottom: 24px;
}

.footer-disclaimer {
  max-width: 700px;
  margin: 0 auto 32px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 14px;
}

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

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

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

.footer-copyright {
  color: var(--text-secondary);
  font-size: 14px;
  opacity: 0.7;
}

.age-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.age-modal.hidden { display: none; }

.age-modal-content {
  background: var(--bg-mid);
  border: 2px solid var(--primary);
  padding: 48px;
  max-width: 500px;
  text-align: center;
  border-radius: var(--radius-md);
}

.age-modal-icon {
  font-size: 80px;
  margin-bottom: 24px;
}

.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.6;
}

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

.game-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

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

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

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

.close-btn {
  background: var(--primary);
  border: none;
  color: white;
  font-size: 32px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease-in-out;
}

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

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

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

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

.filter-btn {
  padding: 10px 24px;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  color: var(--text-secondary);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-family: 'IBM Plex Sans', sans-serif;
  border-radius: var(--radius-sm);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.page-header {
  padding: 120px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-light), var(--bg-mid));
}

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

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

.content-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--primary);
  padding: 40px;
  margin-bottom: 32px;
  border-radius: var(--radius-sm);
}

.content-section h2 {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--primary);
}

.content-section h3 {
  font-size: 22px;
  margin: 24px 0 12px;
}

.content-section p, .content-section ul {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.content-section ul {
  padding-left: 24px;
}

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

.age-check-banner {
  background: var(--primary);
  color: white;
  padding: 12px;
  text-align: center;
  font-weight: 700;
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  
  nav {
    position: fixed;
    top: 65px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 65px);
    background: var(--bg-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    transition: left 0.3s ease-in-out;
    border-right: 2px solid var(--card-border);
  }
  
  nav.active { left: 0; }
  
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 16px; }
  .section-header h2 { font-size: 32px; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  .hero-buttons { flex-direction: column; width: 100%; }
  .btn { width: 100%; text-align: center; }
  #game-iframe { height: 400px; }
  .age-modal-content { padding: 32px 24px; }
  .footer-badge { font-size: 24px; padding: 12px 24px; }
}

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