:root {
  /* Backgrounds */
  --bg-primary: #0b0c10;
  --bg-secondary: #121318;
  --bg-surface: #1a1c22;
  
  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-nav: rgba(20, 20, 25, 0.6);
  --glass-border: rgba(255, 200, 100, 0.2);
  
  /* Accent Colors */
  --accent-primary: #ffb347;
  --accent-secondary: #ffd95e;
  --accent-glow: #fff1a8;
  --gradient-accent: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  
  /* Text */
  --text-primary: #f8f9fb;
  --text-secondary: #a1a1aa;
  
  /* Spacing */
  --spacing-desktop: 100px;
  --spacing-tablet: 70px;
  --spacing-mobile: 50px;
  --max-width: 1400px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  
  /* Transitions */
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

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

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

/* Header */
.header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: var(--max-width);
  z-index: 1000;
  background: var(--glass-nav);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

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

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(255, 179, 71, 0.3);
}

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

.btn-primary {
  display: inline-block;
  background: var(--gradient-accent);
  color: var(--bg-primary);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255, 179, 71, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 179, 71, 0.4);
  color: var(--bg-primary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

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

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
}

.mobile-nav-links a {
  font-size: 2rem;
  font-weight: 600;
}

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

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(11, 12, 16, 0.3) 0%, rgba(11, 12, 16, 1) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

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

.legal-notice-hero {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--glass-bg);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.legal-notice-hero span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero .btn-primary {
  font-size: 1.1rem;
  padding: 16px 40px;
}

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

.game-header {
  margin-bottom: 40px;
}

.game-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.game-container-wrapper {
  width: 90%;
  max-width: 1250px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: 4px;
  background: linear-gradient(135deg, rgba(255, 179, 71, 0.5), rgba(255, 217, 94, 0.1));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 179, 71, 0.15);
  position: relative;
}

.game-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background: var(--bg-surface);
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
}

.game-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: calc(var(--radius-lg) - 4px);
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--glass-bg);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.feature-card:hover {
  transform: translateY(-10px);
  background: var(--glass-bg);
  border-color: var(--glass-border);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 179, 71, 0.1);
  border-radius: 50%;
  color: var(--accent-primary);
}

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

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Internal Pages Typography & Layout */
.page-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding-top: 80px;
}

.page-content {
  background: var(--bg-secondary);
  padding: var(--spacing-desktop) 0;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-surface);
  padding: 60px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-bg);
}

.content-wrapper h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.content-wrapper p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

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

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

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.form-control {
  background: var(--bg-primary);
  border: 1px solid var(--glass-bg);
  padding: 16px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(255, 179, 71, 0.2);
}

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

/* Footer & Legal */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--glass-bg);
  padding: 80px 0 40px;
}

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

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 20px;
  max-width: 400px;
}

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

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

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

.legal-disclaimer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--glass-bg);
  border-bottom: 1px solid var(--glass-bg);
  margin-bottom: 40px;
}

.legal-disclaimer h3 {
  color: var(--accent-primary);
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.legal-disclaimer p {
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.copyright {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Animations */
.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);
}

/* Media Queries */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .game-container-wrapper {
    width: 95%;
  }
  .section {
    padding: var(--spacing-tablet) 0;
  }
}

@media (max-width: 768px) {
  .nav-links, .header .btn-primary {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .header {
    width: 100%;
    top: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .game-container-wrapper {
    width: 100%;
    border-radius: 0;
    padding: 0;
    border-top: 2px solid var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
  }
  
  .game-container {
    border-radius: 0;
  }
  
  .section {
    padding: var(--spacing-mobile) 0;
  }
  
  .content-wrapper {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .legal-notice-hero {
    flex-direction: column;
    gap: 12px;
  }
}