/* CSS Reset & Custom Properties */
:root {
  --primary: #fbbf24;
  --primary-glow: rgba(251, 191, 36, 0.4);
  --secondary: #f59e0b;
  --accent: #fb923c;
  --accent-glow: rgba(251, 146, 60, 0.3);
  --bg-start: #1c1917;
  --bg-mid: #292524;
  --bg-end: #0c0a09;
  --card-bg: rgba(41, 37, 36, 0.7);
  --card-border: rgba(251, 191, 36, 0.2);
  --text-light: #fafaf9;
  --text-gray: #d6d3d1;
}

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

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Source+Sans+Pro:wght@400;600&family=Fira+Code&display=swap');

body {
  font-family: 'Source Sans Pro', system-ui, sans-serif;
  background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-mid) 50%, var(--bg-end) 100%);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
}

a { color: var(--primary); text-decoration: none; transition: all 0.4s ease-out; }
a:hover { color: var(--accent); }

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

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(28, 25, 23, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary-glow);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--bg-end);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-gray);
  font-weight: 600;
  transition: all 0.4s ease-out;
}

.nav-links a:hover {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

.age-badge {
  background: #dc2626;
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid #991b1b;
}

.header-age-badge {
  background: #dc2626;
  color: white;
  padding: 6px 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid #991b1b;
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.5);
}

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

/* Age Verification Modal */
.age-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease-out;
}

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

.age-modal-content {
  background: var(--bg-mid);
  border: 3px solid var(--primary);
  border-radius: 8px;
  padding: 3rem;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 0 40px var(--primary-glow);
}

.age-modal-icon {
  font-size: 5rem;
  color: #dc2626;
  margin-bottom: 1rem;
}

.age-modal h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.age-modal p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-gray);
}

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

.age-modal-buttons button {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: 2px solid;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.4s ease-out;
  font-family: 'Source Sans Pro', sans-serif;
}

.btn-confirm {
  background: #16a34a;
  color: white;
  border-color: #15803d;
}

.btn-confirm:hover {
  background: #15803d;
  transform: scale(1.03);
}

.btn-exit {
  background: #dc2626;
  color: white;
  border-color: #991b1b;
}

.btn-exit:hover {
  background: #991b1b;
  transform: scale(1.03);
}

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

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1596838132731-3301c3fd4317?w=800') center/cover;
  opacity: 0.3;
  z-index: -1;
}

.hero-content {
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: #dc2626;
  color: white;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  border: 3px solid #991b1b;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.6);
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  text-shadow: 0 0 30px var(--primary-glow);
  line-height: 1.1;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--text-gray);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: 3px solid;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.4s ease-out;
  font-family: 'Source Sans Pro', sans-serif;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-end);
  border-color: var(--secondary);
}

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

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

.btn-secondary:hover {
  background: var(--primary);
  color: var(--bg-end);
  transform: scale(1.03);
}

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

/* Sections */
section {
  padding: 80px 0;
}

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

.section-header h2 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-gray);
}

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

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

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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 10px 40px var(--primary-glow);
}

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

.game-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--bg-mid), var(--bg-end));
  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;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--bg-start), var(--bg-mid));
}

.game-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  gap: 0.5rem;
}

.game-category {
  background: var(--accent);
  color: var(--bg-end);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.game-title {
  padding: 0 1rem;
  font-size: 1.3rem;
  color: var(--text-light);
}

.play-demo-btn {
  margin: 1rem;
  padding: 0.8rem 1.5rem;
  background: var(--primary);
  color: var(--bg-end);
  border: 2px solid var(--secondary);
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease-out;
  font-family: 'Source Sans Pro', sans-serif;
  width: calc(100% - 2rem);
}

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

/* Game Modal */
.game-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease-out;
}

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

.modal-content {
  background: var(--bg-mid);
  border: 3px solid var(--primary);
  border-radius: 8px;
  width: 95%;
  max-width: 1200px;
  height: 90%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 50px var(--primary-glow);
}

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

.modal-header h2 {
  font-size: 1.8rem;
  color: var(--primary);
  flex: 1;
}

.close-btn {
  background: #dc2626;
  color: white;
  border: 2px solid #991b1b;
  border-radius: 4px;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: all 0.4s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.close-btn:hover {
  background: #991b1b;
  transform: rotate(90deg);
}

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

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

/* Features Grid */
.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-left: 4px solid var(--accent);
  border-radius: 4px;
  padding: 2rem;
  transition: all 0.4s ease-out;
}

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

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

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

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

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

.step-card {
  text-align: center;
  padding: 2rem;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-top: 4px solid var(--primary);
  border-radius: 4px;
  transition: all 0.4s ease-out;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--primary-glow);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: var(--bg-end);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--secondary);
}

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

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

/* Responsible Gaming Section */
.responsible-gaming {
  background: rgba(220, 38, 38, 0.1);
  border: 2px solid #dc2626;
  border-radius: 4px;
  padding: 3rem;
  text-align: center;
}

.responsible-icon {
  font-size: 5rem;
  color: #dc2626;
  margin-bottom: 1.5rem;
}

.responsible-gaming h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.responsible-gaming p {
  font-size: 1.2rem;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.responsible-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.responsible-links a {
  padding: 0.8rem 1.5rem;
  background: transparent;
  border: 2px solid #dc2626;
  border-radius: 4px;
  color: #dc2626;
  font-weight: 600;
  transition: all 0.4s ease-out;
}

.responsible-links a:hover {
  background: #dc2626;
  color: white;
}

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

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

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

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question h3 {
  font-size: 1.2rem;
  color: var(--primary);
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.4s ease-out;
}

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

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

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

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

/* Footer */
footer {
  background: var(--bg-start);
  border-top: 2px solid var(--card-border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

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

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

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--text-gray);
  transition: all 0.4s ease-out;
}

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

.footer-badge {
  display: inline-block;
  background: #dc2626;
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1.5rem;
  border: 3px solid #991b1b;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.6);
  margin: 1rem 0;
}

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

.footer-disclaimer p {
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.8;
}

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

/* Games Page */
.games-header {
  padding: 4rem 0 2rem;
  text-align: center;
}

.games-header h1 {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.age-reminder {
  background: rgba(220, 38, 38, 0.2);
  border: 2px solid #dc2626;
  border-radius: 4px;
  padding: 1.5rem;
  text-align: center;
  margin: 2rem 0;
}

.age-reminder p {
  color: var(--text-light);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

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

.filter-btn {
  padding: 0.8rem 1.5rem;
  background: transparent;
  border: 2px solid var(--primary);
  border-radius: 4px;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease-out;
  font-family: 'Source Sans Pro', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: var(--bg-end);
  transform: scale(1.03);
}

/* Privacy & Terms Pages */
.content-page {
  padding: 4rem 0;
}

.content-page h1 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

.content-page h2 {
  font-size: 2rem;
  color: var(--primary);
  margin: 2rem 0 1rem;
}

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

.content-page ul {
  color: var(--text-gray);
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero::before {
    width: 100%;
    opacity: 0.2;
  }
  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(28, 25, 23, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.4s ease-out;
  }
  .nav-links.active {
    left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .games-grid {
    grid-template-columns: 1fr;
  }
  .modal-content {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  .age-modal-content {
    padding: 2rem;
    margin: 1rem;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
  .age-modal-buttons {
    flex-direction: column;
  }
  .age-modal-buttons button {
    width: 100%;
  }
}

/* Animations */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.game-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.2), transparent);
  background-size: 1000px 100%;
  animation: shimmer 3s infinite;
  pointer-events: none;
  opacity: 0;
}

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