:root {
  /* Strict Color Palette */
  --bg-primary: #0A0F1A;
  --bg-secondary: #141C2B;
  --bg-card: rgba(255, 255, 255, 0.04);
  
  --text-primary: #F5F5F5;
  --text-secondary: #9CA3AF;
  
  --accent-yellow: #EAB308;
  --accent-yellow-glow: rgba(234, 179, 8, 0.3);
  --accent-blue: #3B82F6;
  --structure-brown: #78350F;
  --brown-dark: #451A03;
  
  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Layout */
  --max-width: 1320px;
  --game-width: 1250px;
  
  /* Desktop Defaults */
  --pad-container: 32px;
  --space-section: 110px;
  
  /* Element radii */
  --radius-btn: 16px;
  --radius-card: 20px;
}

/* Media Queries for Layout Variables */
@media (max-width: 1024px) {
  :root {
    --pad-container: 24px;
    --space-section: 80px;
  }
}

@media (max-width: 768px) {
  :root {
    --pad-container: 16px;
    --space-section: 60px;
  }
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

ul {
  list-style: none;
}

/* Layout System */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-container);
}

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

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }

/* Header & Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(234, 179, 8, 0.1);
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

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

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

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

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-blue);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-yellow);
}

.nav-links a:hover::after {
  width: 100%;
  background-color: var(--accent-yellow);
}

/* Mobile Menu Button */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: 0.3s ease;
}

/* Button System */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-yellow);
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-yellow-glow);
  color: var(--bg-primary);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--text-primary);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--accent-blue);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: rgba(59, 130, 246, 0.1);
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
}

/* Hero Section */
.hero {
  padding-top: 140px;
  padding-bottom: var(--space-section);
  position: relative;
  overflow: hidden;
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
  color: var(--text-primary);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-title span {
  color: var(--accent-yellow);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 90%;
}

.legal-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: var(--bg-card);
  border-left: 3px solid var(--accent-blue);
  padding: 16px;
  border-radius: 0 8px 8px 0;
  margin: 10px 0;
}

.legal-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.legal-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(10,15,26,0.2), transparent);
}

/* Game Section */
.game-section {
  background-color: var(--bg-secondary);
  position: relative;
  border-top: 1px solid rgba(120, 53, 15, 0.3);
  border-bottom: 1px solid rgba(120, 53, 15, 0.3);
}

.game-header {
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.game-title {
  font-size: 2.5rem;
  color: var(--accent-yellow);
}

.game-container {
  max-width: var(--game-width);
  margin: 0 auto;
  border-radius: var(--radius-card);
  padding: 4px;
  background: linear-gradient(135deg, var(--structure-brown), var(--bg-primary), var(--accent-blue));
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6), 0 0 30px var(--accent-yellow-glow);
}

.game-iframe-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  border-radius: calc(var(--radius-card) - 4px);
  overflow: hidden;
  background-color: #000;
}

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

/* Features / Info Section */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.info-card {
  background-color: var(--bg-card);
  padding: 40px 30px;
  border-radius: var(--radius-card);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.02);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.3);
}

.info-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background-color: rgba(10, 15, 26, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(120, 53, 15, 0.5);
}

.info-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.info-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

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

/* Page Headers (Internal Pages) */
.page-header {
  padding: 160px 0 60px;
  background-color: var(--bg-secondary);
  text-align: center;
  border-bottom: 1px solid rgba(120, 53, 15, 0.3);
}

.page-title {
  font-size: 3rem;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.page-title span {
  color: var(--accent-yellow);
}

/* Internal Page Content */
.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.text-content {
  background-color: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-card);
}

.text-content h2 {
  font-size: 1.8rem;
  color: var(--accent-yellow);
  margin-top: 30px;
  margin-bottom: 16px;
}

.text-content h2:first-child {
  margin-top: 0;
}

.text-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.text-content ul {
  margin-bottom: 16px;
  padding-left: 20px;
}

.text-content ul li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  position: relative;
  list-style-type: disc;
  list-style-position: inside;
}

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

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

.form-group label {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  background-color: var(--bg-primary);
  border: 1px solid rgba(156, 163, 175, 0.2);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-main);
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
}

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

/* Footer */
.site-footer {
  background-color: var(--bg-primary);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(234, 179, 8, 0.1);
}

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

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

.footer-title {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-blue);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-disclaimer {
  color: var(--text-secondary);
  font-size: 0.8rem;
  max-width: 800px;
  margin: 0 auto 16px;
}

.copyright {
  color: rgba(156, 163, 175, 0.5);
  font-size: 0.85rem;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 40px;
  }
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 30px 0;
    gap: 20px;
    border-bottom: 1px solid rgba(234, 179, 8, 0.1);
  }
  
  .nav-links.active {
    display: flex;
    animation: slideDown 0.3s ease forwards;
  }
  
  .mobile-toggle {
    display: block;
    margin-left: auto;
    margin-right: 20px;
  }

  .nav-action {
    margin-top: 10px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }

  .legal-warning {
    text-align: left;
    border-left: none;
    border-top: 3px solid var(--accent-blue);
    border-radius: 0 0 8px 8px;
    width: 100%;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .game-iframe-wrapper {
    padding-bottom: 100%; /* Make taller on mobile */
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}