@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  /* Color Palette */
  --bg-base: #1b1a14;
  --bg-secondary: #242217;
  --bg-surface: rgba(255, 255, 255, 0.05);
  
  --accent-primary: #f6c453;
  --accent-secondary: #e3a857;
  --accent-green: #7da87b;
  
  --text-primary: #f9f6e8;
  --text-secondary: #c8c1a3;
  --text-dark: #1b1a14;

  /* Typography */
  --font-heading: 'Lora', serif;
  --font-body: 'Outfit', sans-serif;

  /* Layout */
  --max-width: 1300px;
  --padding-x-desktop: 32px;
  --padding-x-tablet: 24px;
  --padding-x-mobile: 16px;
  
  --spacing-y-desktop: 100px;
  --spacing-y-tablet: 70px;
  --spacing-y-mobile: 50px;

  /* Border Radius */
  --radius-btn: 16px;
  --radius-card: 16px;
  --radius-game: 20px;

  /* Transitions */
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::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(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  color: var(--accent-primary);
}

/* Typography Classes */
.h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 1rem; color: var(--text-primary); }
.h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; text-align: center; }
.h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.text-lead { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--text-secondary); margin-bottom: 2rem; }

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

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

/* Responsive Overrides */
@media (min-width: 768px) {
  .container { padding: 0 var(--padding-x-tablet); }
  section { padding: var(--spacing-y-tablet) 0; }
}

@media (min-width: 1024px) {
  .container { padding: 0 var(--padding-x-desktop); }
  section { padding: var(--spacing-y-desktop) 0; }
}

/* Glass Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(27, 26, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(246, 196, 83, 0.15);
  transition: background var(--transition-smooth);
}

.header.scrolled {
  background: rgba(27, 26, 20, 0.95);
  border-bottom: 1px solid rgba(246, 196, 83, 0.3);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-link {
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition-smooth);
}

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

.nav-link:hover {
  color: var(--accent-primary);
}

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-base);
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    transition: right var(--transition-smooth);
  }
  .nav-links.active {
    right: 0;
  }
  .menu-toggle {
    display: block;
  }
  .header-actions {
    display: none;
  }
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(246, 196, 83, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(246, 196, 83, 0.4);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid rgba(246, 196, 83, 0.3);
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(246, 196, 83, 0.1);
  color: var(--accent-primary);
  box-shadow: 0 4px 15px rgba(246, 196, 83, 0.1);
}

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

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(27, 26, 20, 0.3), var(--bg-base));
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Dust Particles Animation */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(246, 196, 83, 0.15) 1px, transparent 1px),
    radial-gradient(circle at 80% 40%, rgba(246, 196, 83, 0.15) 1.5px, transparent 1.5px),
    radial-gradient(circle at 40% 80%, rgba(246, 196, 83, 0.15) 1px, transparent 1px),
    radial-gradient(circle at 70% 90%, rgba(246, 196, 83, 0.15) 2px, transparent 2px);
  background-size: 100px 100px;
  animation: floatDust 20s linear infinite;
}

@keyframes floatDust {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100px); }
}

/* Disclaimer Banner */
.disclaimer-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  backdrop-filter: blur(4px);
}

.disclaimer-banner span {
  color: var(--accent-primary);
  font-weight: 600;
}

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

.game-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-game);
  overflow: hidden;
  position: relative;
  background: var(--bg-secondary);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(246, 196, 83, 0.05);
  border: 1px solid rgba(246, 196, 83, 0.2);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

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

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

.game-wrapper:hover {
  transform: scale(1.005);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(246, 196, 83, 0.15);
  border-color: rgba(246, 196, 83, 0.4);
}

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

/* Info Cards / Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.glass-card {
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(246, 196, 83, 0.2);
}

.card-icon {
  width: 50px;
  height: 50px;
  background: rgba(246, 196, 83, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Legal & Text Pages */
.page-header {
  padding: 150px 0 80px;
  text-align: center;
  background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-base));
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.content-container {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content {
  background: var(--bg-surface);
  padding: 3rem;
  border-radius: var(--radius-card);
  color: var(--text-secondary);
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 1.5rem;
  color: var(--text-primary);
}

.legal-content p, .legal-content li {
  margin-bottom: 1rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 2rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .legal-content { padding: 1.5rem; }
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.form-control {
  width: 100%;
  padding: 1rem;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: border-color var(--transition-smooth);
}

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

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

/* Footer */
.footer {
  background: var(--bg-secondary);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 4rem;
}

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

.footer-col h4 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--text-secondary);
}

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

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

.footer-disclaimer p {
  margin-bottom: 0.5rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}