:root {
  --bg-primary: #0b1d16;
  --bg-secondary: #132a21;
  --surface-glass: rgba(255, 255, 255, 0.05);
  --surface-glass-hover: rgba(255, 255, 255, 0.08);
  --accent-primary: #22c55e;
  --accent-secondary: #84cc16;
  --accent-highlight: #facc15;
  --text-primary: #f0fdf4;
  --text-secondary: #bbf7d0;
  
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --spacing-section-desktop: 110px;
  --spacing-section-tablet: 80px;
  --spacing-section-mobile: 60px;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

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

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

.section {
  padding: var(--spacing-section-mobile) 0;
}

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

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

/* Typography */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { color: var(--text-secondary); margin-bottom: 1.5rem; font-weight: 300; }

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

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
  background: linear-gradient(135deg, #2ae06c, #96e81a);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(240, 253, 244, 0.2);
  backdrop-filter: blur(5px);
}

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

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 29, 22, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-smooth);
}

.header.scrolled {
  background: rgba(11, 29, 22, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

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

.logo svg {
  width: 28px;
  height: 28px;
  fill: var(--accent-primary);
}

.nav-links {
  display: none;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  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(--accent-primary);
  transition: width var(--transition-smooth);
  border-radius: 2px;
}

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

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

.nav-cta {
  display: none;
}

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

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

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: rgba(11, 29, 22, 0.98);
  backdrop-filter: blur(15px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: translateY(-150%);
  opacity: 0;
  transition: all var(--transition-smooth);
  z-index: 999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu a {
  font-size: 1.2rem;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slowZoom 20s infinite alternate linear;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--bg-primary) 0%, rgba(11, 29, 22, 0.6) 50%, rgba(11, 29, 22, 0.2) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--surface-glass);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--accent-secondary);
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

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

.hero-disclaimer {
  margin-top: 32px;
  font-size: 0.8rem;
  color: rgba(187, 247, 208, 0.5);
}

/* Inner Page Heros */
.inner-hero {
  padding: 160px 0 80px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(11,29,22,0.8), var(--bg-primary)), url('images/nature-abstract-bg.webp') center/cover;
}

.inner-hero h1 {
  margin-bottom: 16px;
}

/* Game Section */
.game-section {
  position: relative;
  background: url('images/soft-leaves-pattern.webp') center/cover;
}

.game-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(11,29,22,0.8) 0%, var(--bg-primary) 100%);
  z-index: 0;
}

.game-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--surface-glass);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid rgba(34, 197, 94, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(34, 197, 94, 0.05);
  backdrop-filter: blur(10px);
  transition: transform var(--transition-smooth);
}

.game-container:hover {
  transform: scale(1.005);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 50px rgba(34, 197, 94, 0.1);
}

.game-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}

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

@media (min-width: 1024px) {
  .game-container { padding: 24px; }
  .game-wrapper { border-radius: var(--radius-md); }
}

/* Features / Cards */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

.feature-card {
  background: var(--surface-glass);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  transition: all var(--transition-smooth);
  backdrop-filter: blur(8px);
}

.feature-card:hover {
  background: var(--surface-glass-hover);
  border-color: rgba(34, 197, 94, 0.2);
  transform: translateY(-5px);
}

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

.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Typography Pages (Terms, Privacy, Rules) */
.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface-glass);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.content-wrapper h2 {
  margin-top: 32px;
  color: var(--text-primary);
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.content-wrapper ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

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

@media (max-width: 768px) {
  .content-wrapper { padding: 24px; }
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 992px) {
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 16px;
  color: var(--text-primary);
  font-family: inherit;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(0, 0, 0, 0.4);
}

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

/* Footer */
.footer {
  background: var(--bg-secondary);
  padding: 80px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

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

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

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 24px;
  color: var(--text-primary);
}

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

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: rgba(187, 247, 208, 0.5);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.18plus-icon {
  width: 32px;
  height: 32px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

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

.particle {
  position: absolute;
  background: rgba(250, 204, 21, 0.3);
  border-radius: 50%;
  animation: float 15s infinite linear;
}

@keyframes float {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  20% { opacity: 0.5; }
  80% { opacity: 0.5; }
  100% { transform: translateY(-100px) translateX(50px); opacity: 0; }
}