:root {
  /* Color System (Strictly NO BLUE) */
  --bg-primary: #0b0b0f;
  --bg-secondary: #1a1111;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);

  --accent-pumpkin: linear-gradient(135deg, #ff7a18, #ffb347);
  --accent-fire: linear-gradient(135deg, #ff3c38, #ff6a3d);
  --accent-mystic: linear-gradient(135deg, #7c3aed, #a78bfa);
  --highlight-candle: #ffd166;
  
  --glow-orange: rgba(255, 122, 24, 0.45);
  --glow-red: rgba(255, 60, 56, 0.45);
  --glow-purple: rgba(124, 58, 237, 0.35);

  --text-primary: #fff7ed;
  --text-secondary: #fed7aa;
  --text-muted: #6b4f4f;

  /* Layout */
  --max-width: 1280px;
  --space-desktop: 120px;
  --space-tablet: 80px;
  --space-mobile: 60px;
  
  --border-radius-lg: 24px;
  --border-radius-md: 20px;
  --border-radius-sm: 12px;

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

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

html {
  scroll-behavior: smooth;
}

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

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, var(--bg-secondary) 0%, transparent 70%);
  z-index: -2;
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

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

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

a:hover {
  text-shadow: 0 0 10px var(--glow-orange);
}

/* Image Utilities */
.content-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 122, 24, 0.3);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  margin: 2rem 0;
  display: block;
  object-fit: cover;
}

.feature-banner-image {
  margin: 2rem auto;
  max-height: 400px;
  width: 100%;
}

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

.text-center { text-align: center; }
.text-gradient-pumpkin {
  background: var(--accent-pumpkin);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-fire {
  background: var(--accent-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 122, 24, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.25) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 122, 24, 0.12);
  border-top: 1px solid rgba(255, 122, 24, 0.3);
  border-left: 1px solid rgba(255, 122, 24, 0.2);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: -150%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: skewX(-25deg);
  transition: all 0.7s ease;
  pointer-events: none;
  z-index: 0;
}

.glass-card > * {
  position: relative;
  z-index: 1;
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 122, 24, 0.3);
  border-top-color: rgba(255, 122, 24, 0.6);
  border-left-color: rgba(255, 122, 24, 0.4);
  box-shadow: 0 20px 40px rgba(255, 122, 24, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.glass-card:hover::before {
  left: 200%;
}

.page-content.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 122, 24, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Forms */
.form-control {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: var(--border-radius-sm);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 122, 24, 0.2);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-control:focus {
  outline: none;
  border-color: rgba(255, 122, 24, 0.6);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 15px rgba(255, 122, 24, 0.15), inset 0 2px 5px rgba(0,0,0,0.5);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
  color: #fff;
  text-decoration: none;
}

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

.btn:active {
  transform: scale(0.95);
}

.btn-pumpkin {
  background: var(--accent-pumpkin);
  box-shadow: 0 0 20px var(--glow-orange);
}
.btn-pumpkin:hover {
  box-shadow: 0 0 35px var(--glow-orange), 0 -10px 20px var(--glow-orange) inset;
  transform: translateY(-3px);
}

.btn-fire {
  background: var(--accent-fire);
  box-shadow: 0 0 20px var(--glow-red);
}
.btn-fire:hover {
  box-shadow: 0 0 35px var(--glow-red), 0 -10px 20px var(--glow-red) inset;
  transform: translateY(-3px);
}

.btn-mystic {
  background: var(--accent-mystic);
  box-shadow: 0 0 20px var(--glow-purple);
}

/* Header */
.header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: var(--max-width);
  border-radius: 100px;
  padding: 0.75rem 1.5rem;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.header.scrolled {
  top: 1rem;
  background: rgba(11, 11, 15, 0.85);
  border-color: rgba(255, 122, 24, 0.4);
}

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

.logo-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 8px var(--glow-orange));
}

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

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

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

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

.header-cta {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}

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

/* Cinematic Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 6rem;
  overflow: hidden;
  text-align: center;
}

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

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 40px rgba(255, 122, 24, 0.3);
  animation: float 6s ease-in-out infinite;
}

.hero p.subtext {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-legal {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Cinematic Elements */
.fog-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.fog-layer {
  position: absolute;
  width: 200%;
  height: 100%;
  background: transparent;
  opacity: 0.4;
  background-image: radial-gradient(ellipse at center, rgba(255,122,24,0.1) 0%, transparent 60%),
                    radial-gradient(ellipse at bottom left, rgba(124,58,237,0.1) 0%, transparent 50%);
  filter: blur(40px);
}

.fog-1 { animation: fog-drift 30s linear infinite; top: 20%; }
.fog-2 { animation: fog-drift 45s linear infinite reverse; top: 40%; opacity: 0.3; }

.particles {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: radial-gradient(2px 2px at 20px 30px, #ffd166, rgba(0,0,0,0)),
                    radial-gradient(2px 2px at 40px 70px, #ff7a18, rgba(0,0,0,0)),
                    radial-gradient(3px 3px at 90px 40px, #fff, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: float-particles 20s linear infinite;
  opacity: 0.5;
  z-index: 2;
}

/* Game Section */
.game-section {
  padding: var(--space-desktop) 0;
  position: relative;
  z-index: 10;
}

.game-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 4px; /* Space for glowing border */
  border-radius: calc(var(--border-radius-lg) + 4px);
  background: linear-gradient(135deg, rgba(255,122,24,0.5), rgba(124,58,237,0.5), rgba(255,60,56,0.5));
  background-size: 300% 300%;
  animation: border-gradient 6s ease infinite;
  box-shadow: 0 0 50px rgba(255, 122, 24, 0.2);
}

.game-inner {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
}

.game-iframe-container {
  flex-grow: 1;
  position: relative;
}

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

.game-controls {
  padding: 1rem 2rem;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,122,24,0.2);
}

/* Features Section */
.features-section {
  padding: var(--space-desktop) 0;
  position: relative;
  z-index: 10;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,122,24,0.15) 0%, rgba(255,122,24,0.02) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  border: 1px solid rgba(255,122,24,0.25);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2), inset 0 2px 4px rgba(255,255,255,0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) translateY(-4px) rotate(4deg);
  border-color: rgba(255,122,24,0.6);
  box-shadow: 0 12px 24px rgba(255,122,24,0.3), inset 0 2px 8px rgba(255,255,255,0.15);
  background: linear-gradient(135deg, rgba(255,122,24,0.25) 0%, rgba(255,122,24,0.05) 100%);
}

/* Page Headers (for inner pages) */
.page-hero {
  padding: 12rem 0 4rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.page-content {
  padding: 3rem 0 var(--space-desktop);
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  width: calc(100% - 2rem);
  box-sizing: border-box;
}

.page-content.glass-card {
  padding: 3rem 2.5rem;
}

.content-block {
  margin-bottom: 2rem;
}
.content-block h2 {
  color: var(--highlight-candle);
  font-size: 1.8rem;
}
.content-block ul {
  list-style: none;
  padding-left: 1.5rem;
}
.content-block ul li {
  position: relative;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}
.content-block ul li::before {
  content: '🎃';
  position: absolute;
  left: -1.8rem;
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background: #050508;
  border-top: 1px solid rgba(255,122,24,0.15);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 10;
}

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

.footer-col h3 {
  font-size: 1.2rem;
  color: var(--highlight-candle);
  margin-bottom: 1.5rem;
}

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

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

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

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

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

.footer-disclaimer .highlight {
  color: var(--highlight-candle);
  font-weight: bold;
}

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

@keyframes fog-drift {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}

@keyframes float-particles {
  0% { transform: translateY(0); }
  100% { transform: translateY(-200px); }
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--glow-orange); }
  50% { box-shadow: 0 0 40px var(--glow-orange); }
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(11, 11, 15, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255,122,24,0.2);
    flex-direction: column;
    justify-content: center;
    transition: right 0.4s ease;
  }
  .nav-links.active {
    right: 0;
  }
  .hamburger {
    display: block;
  }
  .header-cta { display: none; }
  .header { padding: 1rem; width: calc(100% - 2rem); }
  :root {
    --space-desktop: var(--space-mobile);
  }

  .page-content {
    padding: 2rem 0 var(--space-desktop);
  }
  .page-content.glass-card {
    padding: 2rem 1.5rem;
  }
  .glass-card {
    padding: 1.5rem;
  }
}