:root {
  /* Color System */
  --bg-primary: #0b1d16;
  --bg-secondary: #132a21;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --surface-glass: rgba(11, 29, 22, 0.6);
  --border-glow: rgba(34, 197, 94, 0.2);
  
  --accent-primary: #22c55e;
  --accent-secondary: #84cc16;
  --accent-highlight: #facc15;
  
  --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  --gradient-magic: linear-gradient(135deg, var(--accent-secondary), var(--accent-highlight));
  
  --text-primary: #f0fdf4;
  --text-secondary: #bbf7d0;
  --text-muted: rgba(187, 247, 208, 0.6);

  /* Spacing */
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-section-mob: 60px;
  --space-section-tab: 80px;
  --space-section-desk: 110px;

  /* Layout */
  --max-width: 1320px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Typography */
  --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  font-size: 1.125rem;
}

/* Layout System */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

.section {
  padding: var(--space-section-mob) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-section-tab) 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: var(--space-section-desk) 0;
  }
}

/* Grid System */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-md);
}

@media (min-width: 1024px) {
  .grid-12 {
    gap: var(--space-lg);
  }
}

/* Components - Glass & Surfaces */
.glass-panel {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.4);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  outline: none;
  text-align: center;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #000;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}

.btn-ghost:hover {
  background: rgba(34, 197, 94, 0.1);
  transform: translateY(-2px);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-glow);
  padding: 16px 0;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
}

.nav-links a {
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

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

.nav-links a:hover::after {
  width: 100%;
}

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

@media (max-width: 1024px) {
  .nav-links, .nav-cta {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
}

/* Hero Section */
.hero {
  padding-top: 140px;
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, transparent 70%);
  z-index: -1;
  filter: blur(60px);
}

.hero-grid {
  align-items: center;
}

.hero-content {
  grid-column: span 12;
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-column: span 6;
  }
}

.hero-visual {
  grid-column: span 12;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

@media (min-width: 1024px) {
  .hero-visual {
    grid-column: span 6;
  }
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  mask-image: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,1));
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,1));
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(11,29,22,0.4), transparent);
  border-radius: var(--radius-xl);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.disclaimer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-glow);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.875rem;
  color: var(--accent-highlight);
  margin-bottom: var(--space-md);
}

/* Core Game Section */
.game-section {
  position: relative;
  z-index: 10;
}

.game-wrapper {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 0 20px rgba(34, 197, 94, 0.05);
  margin: 0 auto;
  max-width: 1300px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.game-wrapper:hover {
  transform: scale(1.005);
  box-shadow: 0 40px 80px rgba(0,0,0,0.7), 0 0 40px rgba(34, 197, 94, 0.15), inset 0 0 20px rgba(34, 197, 94, 0.1);
}

.game-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}

.game-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--accent-primary);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

/* Legal Notice Full Width */
.legal-notice {
  background: var(--surface);
  border-top: 1px solid var(--border-glow);
  border-bottom: 1px solid var(--border-glow);
  padding: var(--space-xl) 0;
  text-align: center;
}

.legal-notice h2 {
  color: var(--accent-highlight);
}

.legal-notice p {
  max-width: 800px;
  margin: 0 auto;
}

/* Footer */
.footer {
  background: #06100c;
  padding: var(--space-section-tab) 0 var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-col h4 {
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
}

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

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Content Pages (About, Terms, etc.) */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
}

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

.content-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.content-card h2 {
  color: var(--accent-primary);
  margin-top: var(--space-lg);
}

.content-card h2:first-child {
  margin-top: 0;
}

/* Animations & Particles */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards ease-out;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-secondary);
  border-radius: 50%;
  box-shadow: 0 0 10px 2px rgba(132, 204, 22, 0.4);
  animation: floatUp 15s infinite linear;
  opacity: 0;
}

.p1 { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.p2 { left: 30%; animation-delay: 2s; animation-duration: 15s; }
.p3 { left: 50%; animation-delay: 4s; animation-duration: 18s; }
.p4 { left: 70%; animation-delay: 1s; animation-duration: 14s; }
.p5 { left: 90%; animation-delay: 3s; animation-duration: 16s; }

@keyframes floatUp {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  20% { opacity: 0.8; transform: translateY(80vh) scale(1); }
  80% { opacity: 0.8; transform: translateY(20vh) scale(1); }
  100% { transform: translateY(-10vh) scale(0); opacity: 0; }
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.form-control {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}