:root {
  /* Base Colors */
  --bg-arcane: #0a0f0d;
  --bg-forest-shadow: #0f1f1a;
  --glass-surface: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-hover: rgba(255, 255, 255, 0.12);

  /* Accent Colors */
  --mystic-green: #34d399;
  --arcane-glow: #22c55e;
  --rune-gold: #eab308;
  --magic-aura: #4ade80;

  /* Text Colors */
  --text-primary: #ecfdf5;
  --text-secondary: #bbf7d0;

  /* Layout */
  --max-width: 1320px;
  --border-radius: 20px;
  --btn-radius: 16px;
  
  /* Fonts */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Outfit', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 0%, var(--bg-forest-shadow) 0%, transparent 70%);
  z-index: -2;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

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

/* Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }

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

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(52, 211, 153, 0.4);
  filter: brightness(1.1);
}

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

.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--glass-hover);
  border-color: var(--mystic-green);
  box-shadow: 0 4px 15px rgba(52, 211, 153, 0.1);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(10, 15, 13, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
  padding: 15px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mystic-green);
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.3);
}

.logo img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 8px var(--mystic-green));
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  position: relative;
  font-weight: 500;
  padding: 8px 0;
}

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

.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;
}

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

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  transform: scale(1.05);
  animation: slowZoom 20s infinite alternate linear;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-arcane) 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 4rem;
  background: linear-gradient(to right, var(--text-primary), var(--mystic-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-disclaimer {
  font-size: 0.85rem;
  color: rgba(187, 247, 208, 0.6);
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-visual {
  position: relative;
}

.magical-orb {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(52, 211, 153, 0.2), transparent 60%);
  box-shadow: inset 0 0 50px rgba(52, 211, 153, 0.1),
              0 0 100px rgba(34, 197, 94, 0.1);
  animation: float 6s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(5px);
}

.magical-orb img {
  width: 80%;
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0.8;
}

/* Game Section */
.game-section {
  padding: 110px 0;
  position: relative;
}

.game-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: var(--border-radius);
  background: var(--glass-surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5),
              0 0 30px rgba(52, 211, 153, 0.1);
  padding: 16px;
  animation: float 8s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.game-wrapper:hover {
  transform: scale(1.01) translateY(-5px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6),
              0 0 50px rgba(52, 211, 153, 0.2);
}

.game-wrapper::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, var(--mystic-green), transparent, var(--arcane-glow));
  z-index: -1;
  border-radius: calc(var(--border-radius) + 2px);
  opacity: 0.3;
  animation: pulseGlow 4s infinite alternate;
}

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

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

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

.particle {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--mystic-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--mystic-green);
  animation: particleDrift 10s infinite linear;
  opacity: 0;
}

/* Features */
.features {
  padding: 110px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 40px 32px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  background: var(--glass-hover);
  border-color: var(--mystic-green);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(52, 211, 153, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--mystic-green);
}

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

/* Internal Pages Structure */
.page-hero {
  padding: 180px 0 80px;
  text-align: center;
  position: relative;
  background: linear-gradient(to bottom, rgba(15, 31, 26, 0.8), var(--bg-arcane));
}

.page-hero h1 {
  font-size: 3.5rem;
  color: var(--mystic-green);
}

.content-section {
  padding: 60px 0 110px;
}

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

.glass-panel h2 {
  color: var(--rune-gold);
  margin-top: 2rem;
}

.glass-panel ul {
  list-style-position: inside;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.glass-panel li {
  margin-bottom: 0.5rem;
}

/* Forms */
.contact-form {
  display: grid;
  gap: 24px;
}

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

.form-group label {
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--mystic-green);
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.2);
}

/* Footer */
footer {
  background: var(--bg-forest-shadow);
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 40px;
  margin-top: 60px;
}

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

.footer-brand p {
  margin-top: 24px;
  max-width: 400px;
}

.footer-links h4 {
  color: var(--mystic-green);
  margin-bottom: 24px;
}

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

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

.footer-links a:hover {
  color: var(--mystic-green);
  padding-left: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: rgba(187, 247, 208, 0.5);
  font-size: 0.9rem;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes pulseGlow {
  0% { opacity: 0.2; }
  100% { opacity: 0.5; }
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text p {
    margin: 0 auto 40px;
  }
  .hero-disclaimer {
    justify-content: center;
  }
  .magical-orb {
    margin: 0 auto;
    max-width: 400px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section { padding: 80px 0; }
  .game-section, .features { padding: 80px 0; }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-arcane);
    flex-direction: column;
    padding: 40px;
    transition: left 0.4s ease;
    backdrop-filter: blur(10px);
  }

  .nav-links.active {
    left: 0;
  }

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

  .hero-text h1 { font-size: 2.8rem; }
  
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  
  .glass-panel { padding: 32px 20px; }
}

@media (max-width: 480px) {
  section { padding: 60px 0; }
  .hero-text h1 { font-size: 2.2rem; }
  .btn { width: 100%; }
}