:root {
  --clr-bg-base: #0a0710;
  --clr-bg-sidebar: #130e1f;
  --clr-bg-card: #1c152d;
  --clr-text-main: #f4f0fa;
  --clr-text-muted: #b5a9c9;
  --clr-accent-gold: #d4af37;
  --clr-accent-gold-hover: #f1c40f;
  --clr-accent-purple: #6a0dad;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  --spacing-section: clamp(40px, 6vw, 100px);
  --spacing-gap: clamp(16px, 2vw, 32px);
  
  --sidebar-width: 280px;
  --max-content-width: 1300px;
  --border-radius: 12px;
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--clr-bg-base);
  color: var(--clr-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--clr-accent-gold);
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin-bottom: 1rem; color: var(--clr-text-muted); }
a { color: var(--clr-accent-gold); text-decoration: none; transition: color var(--transition-speed); }
a:hover { color: var(--clr-accent-gold-hover); }
ul { list-style: none; }

/* Layout Structure */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* Header */
.top-header {
  background-color: var(--clr-bg-sidebar);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.disclaimer-top {
  background: var(--clr-bg-base);
  text-align: center;
  font-size: 0.8rem;
  padding: 8px;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.05);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--spacing-gap);
  position: relative;
}

.brand-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--clr-accent-gold);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
}

.brand-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  color: var(--clr-text-main);
  font-weight: 500;
  transition: all var(--transition-speed);
  padding: 8px 12px;
  border-radius: 6px;
}

.nav-link:hover, .nav-link.active {
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--clr-accent-gold);
}

.age-badge {
  display: inline-block;
  background: var(--clr-accent-gold);
  color: var(--clr-bg-base);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.85rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--clr-accent-gold);
  font-size: 1.8rem;
  cursor: pointer;
}

.desktop-only { display: block; }
.mobile-only { display: none; }

/* Main Content Area */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Page Containers */
.container {
  width: 100%;
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 var(--spacing-gap);
}

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

/* Hero Section */
.hero {
  position: relative;
  padding: calc(var(--spacing-section) * 1.5) 0;
  background: radial-gradient(circle at center, rgba(106, 13, 173, 0.2) 0%, rgba(10, 7, 16, 1) 70%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  text-align: left;
}

.hero-text {
  flex: 1;
}

.hero-text p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin: 0 0 2rem 0;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  border-radius: var(--border-radius);
  border: 2px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background-color: var(--clr-accent-gold);
  color: var(--clr-bg-base);
  font-weight: 700;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed);
  border: 2px solid var(--clr-accent-gold);
}

.btn:hover {
  background-color: transparent;
  color: var(--clr-accent-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

/* Grids & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-gap);
  margin-top: 2rem;
}

.card {
  background-color: var(--clr-bg-card);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(212, 175, 55, 0.1);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.3);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--clr-accent-gold);
  margin-bottom: 1rem;
}

/* Game Iframe Container */
.game-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background-color: #000;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 2px solid var(--clr-accent-gold);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
  position: relative;
}

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

/* Legal & Text Pages */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  background: var(--clr-bg-card);
  padding: clamp(20px, 4vw, 50px);
  border-radius: var(--border-radius);
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.legal-content h2 {
  margin-top: 2rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 0.5rem;
}

.legal-content ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--clr-text-muted);
}

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

/* Contact Form */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-gap);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--clr-text-main);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 6px;
  color: var(--clr-text-main);
  font-family: var(--font-body);
}

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

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

/* Footer */
.site-footer {
  background-color: var(--clr-bg-sidebar);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  padding: var(--spacing-section) 0 2rem 0;
  margin-top: auto;
}

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

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

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

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

.footer-legal-notice {
  background: rgba(0, 0, 0, 0.3);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(212, 175, 55, 0.2);
  text-align: center;
  margin-bottom: 2rem;
}

.footer-legal-notice h4 {
  color: #ff4757;
  margin-bottom: 1rem;
}

.footer-legal-notice p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  font-size: 0.9rem;
  color: var(--clr-text-muted);
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-text h1, .hero-text p {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .desktop-only { display: none; }
  .mobile-only { display: inline-block; margin-top: 1rem; }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--clr-bg-sidebar);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 90;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}