:root {
  /* Color System */
  --bg-night: #0a0a14;
  --bg-indigo: #121225;
  --bg-surface: rgba(255, 255, 255, 0.05);
  --bg-surface-hover: rgba(255, 255, 255, 0.08);
  
  --primary-orange: #f97316;
  --secondary-amber: #fb923c;
  --highlight-gold: #fde68a;
  
  --accent-violet: #7c3aed;
  --accent-pink: #f472b6;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5f5;
  
  /* Layout & Spacing */
  --max-width: 1400px;
  --spacing-desktop: 100px;
  --spacing-tablet: 70px;
  --spacing-mobile: 50px;
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-night);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.05), transparent 40%),
              radial-gradient(circle at bottom left, rgba(249, 115, 22, 0.05), transparent 40%);
  pointer-events: none;
  z-index: -2;
}

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

ul {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  background: linear-gradient(135deg, var(--text-primary), var(--highlight-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

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

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

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

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

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

.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-orange), var(--secondary-amber));
  color: var(--bg-night);
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: 0.5s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.5);
  background: linear-gradient(135deg, var(--secondary-amber), var(--highlight-gold));
}

.btn-primary:hover::after {
  left: 200%;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(253, 230, 138, 0.3);
}

.btn-outline:hover {
  background: rgba(253, 230, 138, 0.1);
  border-color: var(--highlight-gold);
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 20, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(249, 115, 22, 0.1);
  transition: var(--transition-smooth);
}

.header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-orange), transparent);
  opacity: 0.3;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--highlight-gold);
  letter-spacing: 1px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  fill: var(--primary-orange);
  filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.6));
}

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

.nav-links a {
  font-weight: 500;
  position: relative;
  padding: 8px 0;
  color: var(--text-secondary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary-orange), var(--highlight-gold));
  transition: var(--transition-smooth);
  box-shadow: 0 0 10px var(--primary-orange);
}

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

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

.nav-links a.active {
  color: var(--text-primary);
}

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

#menu-toggle {
  display: none;
}

@media (max-width: 900px) {
  .mobile-menu-btn { display: block; }
  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 37, 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 24px;
    text-align: center;
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(249, 115, 22, 0.2);
  }
  .nav-cta { display: none; }
  #menu-toggle:checked ~ .nav-links {
    transform: translateY(0);
    opacity: 1;
  }
}

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

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: 
    radial-gradient(circle at center, rgba(10,10,20,0.2) 0%, var(--bg-night) 100%),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.05"><rect width="100" height="100" fill="%230a0a14"/><circle cx="50" cy="50" r="1" fill="%23fde68a"/></svg>');
  z-index: -1;
}

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

.hero-disclaimer {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 30px;
  color: var(--secondary-amber);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Ambient Lantern Animations */
.lanterns-container {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.lantern-particle {
  position: absolute;
  bottom: -50px;
  width: 20px;
  height: 30px;
  background: radial-gradient(circle at center, var(--highlight-gold), var(--primary-orange));
  border-radius: 5px 5px 2px 2px;
  filter: blur(2px) drop-shadow(0 0 15px var(--primary-orange));
  animation: floatUp linear infinite;
  opacity: 0;
}

.lantern-particle::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 50%;
  transform: translateX(-50%);
  width: 2px; height: 10px;
  background: rgba(255,255,255,0.5);
}

.lantern-particle:nth-child(1) { left: 10%; animation-duration: 15s; animation-delay: 0s; transform: scale(0.6); }
.lantern-particle:nth-child(2) { left: 25%; animation-duration: 22s; animation-delay: 3s; transform: scale(0.8); }
.lantern-particle:nth-child(3) { left: 45%; animation-duration: 18s; animation-delay: 1s; transform: scale(0.5); }
.lantern-particle:nth-child(4) { left: 60%; animation-duration: 25s; animation-delay: 7s; transform: scale(1); }
.lantern-particle:nth-child(5) { left: 80%; animation-duration: 20s; animation-delay: 4s; transform: scale(0.7); }
.lantern-particle:nth-child(6) { left: 90%; animation-duration: 16s; animation-delay: 2s; transform: scale(0.9); }

/* Game Section */
.game-section {
  position: relative;
  z-index: 5;
}

.game-wrapper {
  max-width: 1300px;
  width: 90%;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: var(--bg-indigo);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(249, 115, 22, 0.2);
  box-shadow: 0 0 50px rgba(249, 115, 22, 0.1), inset 0 0 20px rgba(0,0,0,0.5);
  overflow: hidden;
  position: relative;
  transition: var(--transition-smooth);
}

@media (max-width: 1024px) {
  .game-wrapper { width: 95%; }
}

@media (max-width: 768px) {
  .game-wrapper { width: 100%; border-radius: var(--radius-md); }
}

.game-wrapper:hover {
  box-shadow: 0 0 60px rgba(249, 115, 22, 0.2), inset 0 0 20px rgba(0,0,0,0.5);
  transform: scale(1.01);
}

.game-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: inherit;
  background: #000;
}

.game-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 100px rgba(251, 146, 60, 0.1);
  pointer-events: none;
  z-index: -1;
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

/* Trust & Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 40px 30px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(10, 10, 20, 0.5);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 50%;
  color: var(--highlight-gold);
}

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

/* Content Pages (About, Terms, etc.) */
.page-header {
  padding: 150px 0 80px;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(249, 115, 22, 0.1), transparent 70%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-surface);
  padding: 50px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.05);
}

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

.content-wrapper h2 {
  color: var(--secondary-amber);
  margin-top: 2rem;
}

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

.content-wrapper li {
  margin-bottom: 0.5rem;
}

/* Contact Form */
.form-group {
  margin-bottom: 24px;
}

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

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

.form-control:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.2);
}

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

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

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

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

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

.footer-title {
  color: var(--text-primary);
  font-size: 1.25rem;
  margin-bottom: 20px;
}

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

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

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-disclaimer {
  max-width: 800px;
  margin: 0 auto 20px;
  padding: 20px;
  background: rgba(0,0,0,0.3);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.05);
}

/* Animations */
@keyframes floatUp {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-120vh) scale(1.5); opacity: 0; }
}

@keyframes pulseGlow {
  0% { opacity: 0.5; box-shadow: 0 0 80px rgba(249, 115, 22, 0.1); }
  100% { opacity: 1; box-shadow: 0 0 150px rgba(253, 230, 138, 0.2); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}