:root {
  --bg-primary: #090909;
  --bg-secondary: #141414;
  --glass-surface: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(57, 255, 20, 0.15);
  
  --text-primary: #f4f4f5;
  --text-secondary: #39ff14;
  --text-muted: #a1a1aa;
  
  --accent-green-base: #39ff14;
  --accent-green-light: #7cff4d;
  --accent-pink-base: #ff1493;
  --accent-pink-light: #ff69b4;
  
  --grad-green: linear-gradient(135deg, var(--accent-green-base), var(--accent-green-light));
  --grad-pink: linear-gradient(135deg, var(--accent-pink-base), var(--accent-pink-light));
  
  --glow-green: rgba(57, 255, 20, 0.45);
  --glow-pink: rgba(255, 20, 147, 0.4);
  
  --font-heading: 'Cinzel', serif;
  --font-body: 'Outfit', sans-serif;
  
  --space-desktop: 120px;
  --space-tablet: 80px;
  --space-mobile: 60px;
  --container-max: 1280px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
}

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

/* Cinematic Grain Effect */
.film-grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(images/%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: var(--space-desktop) 0;
  position: relative;
}

/* Typography */
h1, h2, h3, h4, .logo {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-primary);
}

p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

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

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 20px;
  font-weight: 600;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0));
  z-index: -1;
}

.btn-primary {
  background: var(--grad-green);
  color: #000;
  box-shadow: 0 4px 15px var(--glow-green);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--glow-green);
}

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

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  border-color: var(--accent-pink-base);
  box-shadow: 0 4px 15px rgba(255,20,147,0.15);
}

/* Floating Header */
.header-nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: var(--container-max);
  height: 80px;
  background: var(--glass-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: all 0.4s ease;
}

.header-nav.scrolled {
  top: 10px;
  background: rgba(9, 9, 9, 0.85);
  border-color: rgba(255, 255, 255, 0.05);
}

.logo {
  font-size: 1.8rem;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
}

.logo span {
  color: var(--accent-pink-base);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-pink);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--glow-pink);
}

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

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

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.mobile-toggle span {
  width: 30px;
  height: 2px;
  background-color: var(--text-primary);
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 120px;
  background-color: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: bgZoomInOut 20s infinite alternate ease-in-out;
  z-index: 0;
  opacity: 0.6;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(20, 20, 20, 0.4) 0%, var(--bg-primary) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(images/%23noiseFilter)"/%3E%3C/svg%3E');
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 2;
}

.smoke-layer {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.02) 0%, transparent 60%),
              radial-gradient(circle at 80% 20%, rgba(255, 20, 147, 0.05) 0%, transparent 40%);
  animation: smokeMove 30s linear infinite alternate;
  pointer-events: none;
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.hero-title {
  animation: flicker 4s infinite;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

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

.legal-notice {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  backdrop-filter: blur(8px);
}

/* Game Section */
.game-section {
  background: var(--bg-primary);
  position: relative;
}

.game-wrapper {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent-green-base), var(--accent-pink-base), var(--bg-primary));
  background-size: 200% 200%;
  animation: borderGlow 6s ease infinite;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px var(--glow-pink);
  transition: transform 0.5s ease;
}

.game-wrapper:hover {
  transform: scale(1.02);
}

.game-container {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
}

.game-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.game-info {
  margin-top: 2rem;
  text-align: center;
}

.game-info h3 {
  font-size: 2rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

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

.feature-card {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(12px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: rgba(57, 255, 20, 0.3);
  box-shadow: 0 15px 30px rgba(0,0,0,0.6), 0 0 20px rgba(57, 255, 20, 0.15);
}

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

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  background: var(--grad-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Internal Pages Structure */
.page-header {
  padding: 180px 0 80px;
  text-align: center;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.page-header-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: bgZoomInOut 20s infinite alternate ease-in-out;
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
}

.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top center, rgba(20, 20, 20, 0.6) 0%, var(--bg-primary) 100%);
  z-index: 1;
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

.content-section h2, .content-section h3 {
  text-align: left;
  margin-top: 2rem;
}

.glass-panel {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(12px);
}

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

.form-control {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-green-base);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.2);
}

/* Footer */
.footer {
  background: #040404;
  border-top: 1px solid var(--glass-border);
  padding: 6rem 0 2rem;
  position: relative;
}

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

.footer-col h4 {
  color: var(--text-secondary);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

/* Animations */
@keyframes bgZoomInOut {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

@keyframes flicker {
  0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
    opacity: 1;
    text-shadow: 0 0 10px rgba(255,255,255,0.2), 0 0 20px rgba(255, 20, 147, 0.5);
  }
  20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
    opacity: 0.4;
    text-shadow: none;
  }
}

@keyframes smokeMove {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2%, 5%) scale(1.05); }
  100% { transform: translate(2%, -2%) scale(1); }
}

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

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

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

/* Responsive */
@media (max-width: 992px) {
  section {
    padding: var(--space-tablet) 0;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-radius: 0 0 24px 24px;
    border: 1px solid var(--glass-border);
    border-top: none;
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-toggle {
    display: flex;
  }
  .header-cta {
    display: none;
  }
}

@media (max-width: 768px) {
  section {
    padding: var(--space-mobile) 0;
  }
  .hero-actions {
    flex-direction: column;
  }
  .header-nav {
    width: calc(100% - 20px);
    top: 10px;
    height: 70px;
  }
  .game-wrapper {
    aspect-ratio: 4/3;
  }
}