:root {
  /* Colors */
  --bg-primary: #0f1f17;
  --bg-secondary: #1b2f24;
  --surface-glass: rgba(255, 255, 255, 0.05);
  --surface-glass-hover: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(163, 230, 53, 0.2);
  --accent-primary: #22c55e;
  --accent-secondary: #a3e635;
  --accent-highlight: #f59e0b;
  --earth-brown: #78350f;
  --soft-light: #ecfccb;
  --text-primary: #f0fdf4;
  --text-secondary: #bbf7d0;
  
  /* Typography */
  --font-main: 'Outfit', system-ui, -apple-system, sans-serif;
  
  /* Layout */
  --container-max: 1400px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  
  /* Spacing */
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6.25rem; /* 100px desktop */
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* Utilities */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.text-center { text-align: center; }
.text-accent { color: var(--accent-secondary); }
.text-highlight { color: var(--accent-highlight); }

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-highlight));
  background-size: 200% 200%;
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(163, 230, 53, 0.5);
  animation: gradient-shift 3s ease infinite;
}

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

.btn-secondary {
  background: var(--surface-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--surface-glass-hover);
  border-color: var(--accent-secondary);
  transform: translateY(-2px);
}

/* Header & Nav */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 31, 23, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  transition: background 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.3s ease;
}

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

.nav-links a:hover, .nav-links a.active {
  color: var(--soft-light);
}

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

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

#nav-toggle {
  display: none;
}

/* Sections */
section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section-header {
  margin-bottom: var(--space-lg);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--soft-light);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  background-image: linear-gradient(to bottom, rgba(15, 31, 23, 0.7), var(--bg-primary)), url('images/dense-jungle-temple-ruins-bg.webp');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.light-rays {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 40%, rgba(236, 252, 203, 0.05) 45%, transparent 50%);
  background-size: 200% 200%;
  animation: light-ray-move 10s linear infinite;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  animation: fade-up 1s ease-out;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--soft-light);
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

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

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

/* Disclaimers */
.disclaimer-card {
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.disclaimer-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Game Arena */
.game-arena {
  background: var(--bg-secondary);
  position: relative;
}

.game-container-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  background: rgba(0,0,0,0.4);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(34, 197, 94, 0.1);
  border: 1px solid var(--border-glass);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 10;
}

.game-container-wrapper:hover {
  transform: scale(1.01);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 60px rgba(163, 230, 53, 0.15);
}

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

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

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

.feature-card {
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-10px);
  background: var(--surface-glass-hover);
  border-color: var(--accent-secondary);
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.1);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(34,197,94,0.2), rgba(245,158,11,0.2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-glass);
}

.feature-icon img {
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--soft-light);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Reviews */
.reviews-section {
  background: var(--bg-secondary);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.review-card {
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.reviewer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  object-fit: cover;
}

.reviewer-info h4 {
  color: var(--text-primary);
  font-size: 1rem;
}

.stars {
  color: var(--accent-highlight);
  font-size: 0.875rem;
}

.review-text {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.95rem;
}

/* Content Pages (About, Terms, etc) */
.page-hero {
  padding: 160px 0 80px;
  background-image: linear-gradient(to bottom, rgba(15, 31, 23, 0.8), var(--bg-primary)), url('images/jungle-canopy-ambient-bg.webp');
  background-size: cover;
  background-position: center;
  text-align: center;
}

.page-hero h1 {
  font-size: 3rem;
  color: var(--soft-light);
  margin-bottom: 1rem;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-lg) 0;
}

.content-card {
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 3rem;
  backdrop-filter: blur(10px);
}

.content-card h2 {
  color: var(--accent-secondary);
  margin: 2rem 0 1rem;
}

.content-card p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.content-card ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.3s ease;
}

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

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

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 1rem;
  max-width: 400px;
}

.footer-title {
  color: var(--soft-light);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

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

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Animations */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes light-ray-move {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Responsive */
@media (max-width: 1024px) {
  :root {
    --space-xl: 4.375rem; /* 70px tablet */
  }
  
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 3.125rem; /* 50px mobile */
  }
  
  .mobile-menu-btn {
    display: block;
    z-index: 1001;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(15, 31, 23, 0.95);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding-top: 100px;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border-glass);
  }
  
  #nav-toggle:checked ~ .nav-links {
    right: 0;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .content-card {
    padding: 1.5rem;
  }
}