:root {
  /* Oktoberfest Sunset Palette */
  --bg-deep: #2a1b14; /* Deep warm brown */
  --bg-dusk: #4a2a18; /* Muted sunset orange/brown */
  --bg-darker: #1e130e; /* For footer and deep sections */
  
  --card-glass: rgba(255, 235, 210, 0.06);
  --card-border: rgba(243, 178, 83, 0.15);
  
  --accent-amber: #d9772b;
  --accent-gold: #f3b253;
  --accent-copper: #a84a1b;
  
  --text-primary: #fdf8f5; /* Warm off-white */
  --text-secondary: #d8cebc; /* Muted beige */
  --text-dark: #2a1b14;
  
  --foam-white: #fcf9f2;
  --subtle-cool: #8a888c; /* For extreme balance */

  /* Typography */
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Layout & Spacing */
  --max-width: 1400px;
  --game-max-width: 1300px;
  --spacing-desktop: 100px;
  --spacing-tablet: 70px;
  --spacing-mobile: 50px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Effects */
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glow-subtle: 0 0 20px rgba(243, 178, 83, 0.15);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  background-image: radial-gradient(circle at top right, var(--bg-dusk), var(--bg-deep) 60%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--foam-white);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

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

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

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

.text-center { text-align: center; }
.text-amber { color: var(--accent-amber); }
.text-gold { color: var(--accent-gold); }
.text-small { font-size: 0.875rem; color: var(--subtle-cool); }

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

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(42, 27, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--foam-white);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.nav-link {
  color: var(--text-primary);
  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-gold);
  transition: var(--transition);
  border-radius: 2px;
}

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

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

/* Mobile Menu Hacks */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--foam-white);
  transition: var(--transition);
}

#menu-checkbox {
  display: none;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-gold));
  color: var(--bg-deep);
  box-shadow: 0 4px 15px rgba(217, 119, 43, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 178, 83, 0.4);
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-amber));
}

.btn-outline {
  background: transparent;
  color: var(--accent-gold);
  border: 2px solid var(--accent-gold);
}

.btn-outline:hover {
  background: rgba(243, 178, 83, 0.1);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: var(--spacing-desktop) 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/oktoberfest-sunset-beer-garden-background.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0.4;
  mix-blend-mode: luminosity;
}

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

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

.legal-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--accent-gold);
  border: 1px solid rgba(243, 178, 83, 0.3);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

/* Game Section (Dominant) */
.game-section {
  background: var(--bg-deep);
  position: relative;
  z-index: 3;
}

.game-header {
  text-align: center;
  margin-bottom: 3rem;
}

.game-wrapper {
  max-width: var(--game-max-width);
  width: 90%;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0,0,0,0.6), var(--glow-subtle);
  border: 1px solid var(--card-border);
  background: #000;
  position: relative;
  aspect-ratio: 16/9;
}

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

.game-disclaimer {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.game-disclaimer span {
  color: var(--accent-amber);
}

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

.feature-card {
  background: var(--card-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft), var(--glow-subtle);
  border-color: rgba(243, 178, 83, 0.3);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(217, 119, 43, 0.2), rgba(243, 178, 83, 0.2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(243, 178, 83, 0.3);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--accent-gold);
}

/* Stats Section */
.stats-section {
  background: linear-gradient(to bottom, var(--bg-deep), var(--bg-darker));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-card {
  text-align: center;
  padding: 30px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-dusk), var(--bg-deep));
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  border: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(243, 178, 83, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  position: relative;
  z-index: 2;
}

.cta-banner p {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-banner .btn {
  position: relative;
  z-index: 2;
}

/* Content Pages (About, Terms, etc.) */
.page-hero {
  padding: 120px 0 60px;
  text-align: center;
  background: linear-gradient(to bottom, var(--bg-dusk), var(--bg-deep));
  border-bottom: 1px solid var(--card-border);
}

.content-section {
  max-width: 900px;
  margin: 0 auto;
}

.content-card {
  background: var(--card-glass);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 40px;
  margin-bottom: 30px;
}

.content-card h3 {
  color: var(--accent-gold);
  margin-top: 1.5rem;
}

.content-card h3:first-child {
  margin-top: 0;
}

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

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

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

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

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

.form-control {
  width: 100%;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(243, 178, 83, 0.2);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.info-icon {
  width: 40px;
  height: 40px;
  background: rgba(243, 178, 83, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  flex-shrink: 0;
}

/* Footer */
.footer {
  background-color: var(--bg-darker);
  border-top: 1px solid var(--card-border);
  padding: 60px 0 30px;
  margin-top: auto;
}

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

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 400px;
}

.footer-title {
  color: var(--foam-white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
}

.responsible-gaming-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--subtle-cool);
  font-weight: 600;
  font-size: 1.2rem;
}

.rg-icon {
  width: 32px;
  height: 32px;
  border: 2px solid var(--subtle-cool);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.copyright {
  color: var(--subtle-cool);
  font-size: 0.9rem;
}

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

@media (max-width: 768px) {
  .section { padding: var(--spacing-mobile) 0; }
  .nav-menu {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(42, 27, 20, 0.95);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 20px 0;
    border-bottom: 1px solid var(--card-border);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
  }
  
  #menu-checkbox:checked ~ .nav-menu {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .menu-toggle { display: flex; }
  
  .hero { min-height: auto; padding: 120px 0 60px; }
  
  .game-wrapper { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-md); }
  
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}

@media (max-width: 480px) {
  .game-wrapper { aspect-ratio: 1/1; }
  .features-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
}