:root {
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;
  --emerald-950: #022c22;

  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-emerald: 0 0 20px rgba(16, 185, 129, 0.3);

  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--emerald-950);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  color: white;
  box-shadow: var(--shadow-emerald);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--emerald-600);
  border: 2px solid var(--emerald-500);
}

.btn-secondary:hover {
  background: var(--emerald-50);
  border-color: var(--emerald-600);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: white;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-600), var(--gold-600));
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.4);
}

header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--emerald-100);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--emerald-600);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

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

nav a {
  color: var(--gray-700);
  font-weight: 500;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--emerald-500);
  transition: width var(--transition-base);
}

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

nav a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--emerald-600);
  cursor: pointer;
}

.hero {
  background: linear-gradient(135deg, var(--emerald-950) 0%, var(--emerald-800) 50%, var(--emerald-900) 100%);
  color: white;
  padding: var(--spacing-3xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 0.8s ease;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xl);
  color: var(--emerald-100);
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  animation: fadeInUp 0.8s ease 0.4s both;
}

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

section {
  padding: var(--spacing-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
  margin-bottom: var(--spacing-sm);
}

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

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.game-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--emerald-300);
}

.game-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.game-card-image::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.game-card-content {
  padding: var(--spacing-lg);
}

.game-card h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--emerald-700);
}

.game-card p {
  color: var(--gray-600);
  margin-bottom: var(--spacing-md);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.benefit-card {
  text-align: center;
  padding: var(--spacing-lg);
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.benefit-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-md);
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.benefit-card h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--emerald-700);
}

.benefit-card p {
  color: var(--gray-600);
}

footer {
  background: var(--emerald-950);
  color: var(--emerald-100);
  padding: var(--spacing-2xl) 0 var(--spacing-md);
}

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

.footer-section h4 {
  color: white;
  margin-bottom: var(--spacing-md);
}

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

.footer-section ul li {
  margin-bottom: var(--spacing-xs);
}

.footer-section a {
  color: var(--emerald-200);
  transition: color var(--transition-base);
}

.footer-section a:hover {
  color: var(--emerald-400);
}

.footer-disclaimer {
  background: rgba(0, 0, 0, 0.3);
  padding: var(--spacing-md);
  border-radius: 8px;
  margin-bottom: var(--spacing-md);
  border-left: 4px solid var(--gold-500);
}

.footer-disclaimer h4 {
  color: var(--gold-400);
  margin-bottom: var(--spacing-sm);
}

.footer-disclaimer p {
  margin-bottom: var(--spacing-sm);
  font-size: 0.9rem;
}

.help-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-top: var(--spacing-sm);
}

.help-links a {
  color: var(--emerald-300);
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--emerald-800);
  color: var(--emerald-300);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: var(--spacing-xl);
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content h2 {
  color: var(--emerald-700);
  margin-bottom: var(--spacing-md);
}

.modal-content p {
  margin-bottom: var(--spacing-md);
  color: var(--gray-700);
}

.age-verification-checkbox {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin: var(--spacing-md) 0;
  padding: var(--spacing-md);
  background: var(--emerald-50);
  border-radius: 8px;
}

.age-verification-checkbox input {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.age-verification-checkbox label {
  cursor: pointer;
  font-weight: 500;
  color: var(--emerald-900);
}

.modal-buttons {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: var(--spacing-md);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform var(--transition-base);
  border-top: 3px solid var(--emerald-500);
}

.cookie-banner.active {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.cookie-content p {
  flex: 1;
  min-width: 300px;
  color: var(--gray-700);
}

.cookie-content a {
  color: var(--emerald-600);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: var(--spacing-sm);
}

.page-hero {
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-900));
  color: white;
  padding: var(--spacing-2xl) 0;
  text-align: center;
}

.page-hero h1 {
  color: white;
  margin-bottom: var(--spacing-sm);
}

.page-hero p {
  color: var(--emerald-100);
  font-size: 1.125rem;
}

.content-section {
  padding: var(--spacing-2xl) 0;
  background: white;
}

.content-section h2 {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  color: var(--emerald-700);
}

.content-section h3 {
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  color: var(--emerald-600);
}

.content-section p {
  margin-bottom: var(--spacing-md);
  color: var(--gray-700);
  line-height: 1.8;
}

.content-section ul {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-lg);
}

.content-section li {
  margin-bottom: var(--spacing-xs);
  color: var(--gray-700);
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }

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

  .hero-buttons {
    flex-direction: column;
  }

  nav ul {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

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

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

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

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    width: 100%;
    flex-direction: column;
  }
}
