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

:root {
  /* Color Palette */
  --clr-bg-base: #0a1711;
  --clr-bg-primary: #10261c;
  --clr-bg-secondary: #1a382a;
  --clr-bg-glass: rgba(26, 56, 42, 0.4);
  --clr-bg-glass-light: rgba(43, 92, 69, 0.15);
  
  --clr-accent-primary: #2b7a54;
  --clr-accent-secondary: #42a977;
  --clr-accent-gold: #c7a951;
  --clr-accent-gold-muted: #99803b;
  
  --clr-text-main: #f0f5f2;
  --clr-text-muted: #9eb8a9;
  --clr-border-glass: rgba(199, 169, 81, 0.15);
  
  /* Typography */
  --font-primary: 'Outfit', sans-serif;
  
  /* Layout & Spacing */
  --container-max: 1320px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --section-spacing: 60px;
  
  /* Shadows & Effects */
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-gold: 0 4px 24px rgba(199, 169, 81, 0.1);
  --blur-md: blur(12px);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (min-width: 768px) {
  :root {
    --section-spacing: 80px;
  }
}

@media (min-width: 1024px) {
  :root {
    --section-spacing: 110px;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--clr-bg-base);
  color: var(--clr-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 0%, var(--clr-bg-primary) 0%, var(--clr-bg-base) 70%);
  z-index: -1;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  color: var(--clr-text-muted);
  margin-bottom: 1rem;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-spacing) 0;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

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

.grid {
  display: grid;
  gap: 2rem;
}

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

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

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Glassmorphism & Cards */
.glass-panel {
  background: var(--clr-bg-glass);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid var(--clr-border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
}

.card {
  padding: 2.5rem;
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(199, 169, 81, 0.4);
  box-shadow: var(--shadow-gold);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--clr-bg-glass-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--clr-accent-gold);
}

/* Typography Enhancements */
.text-gold {
  color: var(--clr-accent-gold);
}

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

.section-subtitle {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--clr-accent-secondary) 0%, var(--clr-accent-primary) 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(43, 122, 84, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 122, 84, 0.5);
}

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

.btn-outline:hover {
  background: rgba(199, 169, 81, 0.1);
  transform: translateY(-2px);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 23, 17, 0.7);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
  padding: 1rem 0;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-links {
  display: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-weight: 400;
  font-size: 1rem;
  color: var(--clr-text-main);
  position: relative;
}

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

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

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

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: var(--clr-text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

.header-cta {
  display: none;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .mobile-menu-btn { display: none; }
  .header-cta { display: block; }
}

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

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  opacity: 0.4;
  background: url('images/photo-1542644265-f935f8e53535-hero-hero-bg.png') center/cover no-repeat;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--clr-bg-glass-light);
  border: 1px solid var(--clr-accent-gold-muted);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--clr-accent-gold);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #fff, #b8d4c4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Main Game Section */
.game-section {
  position: relative;
  z-index: 10;
  margin-top: -60px;
}

.game-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  background: var(--clr-bg-glass);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid var(--clr-border-glass);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(199, 169, 81, 0.2);
  transition: var(--transition-smooth);
}

.game-wrapper:hover {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(199, 169, 81, 0.4);
}

.game-wrapper::before {
  content: '';
  display: block;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

@media (max-width: 768px) {
  .game-wrapper::before {
    padding-top: 100%; /* More square on mobile */
  }
}

.game-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: var(--clr-bg-primary);
}

.game-controls {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 23, 17, 0.9);
  border-top: 1px solid var(--clr-border-glass);
}

.game-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.game-title h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--clr-accent-gold);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4caf50;
  border-radius: 50%;
  box-shadow: 0 0 10px #4caf50;
  animation: pulse 2s infinite;
}

/* Disclaimer / Legal Bar */
.disclaimer-bar {
  background: var(--clr-bg-glass-light);
  border: 1px solid var(--clr-border-glass);
  border-radius: var(--radius-md);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.disclaimer-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--clr-text-muted);
}

.disclaimer-item svg {
  width: 20px;
  height: 20px;
  color: var(--clr-accent-gold);
}

/* Stats Section */
.stats-section {
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(90deg, transparent, var(--clr-bg-glass-light), transparent);
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--clr-text-main);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--clr-accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Internal Pages Typography & Layout */
.page-header {
  padding-top: 160px;
  padding-bottom: 60px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(43, 122, 84, 0.1), transparent);
}

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

.prose h2 {
  color: var(--clr-text-main);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose p, .prose ul {
  margin-bottom: 1.5rem;
  color: var(--clr-text-muted);
}

.prose ul {
  padding-left: 1.5rem;
  list-style-type: disc;
}

.prose li {
  margin-bottom: 0.5rem;
}

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

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

.form-label {
  font-size: 0.875rem;
  color: var(--clr-text-main);
}

.form-control {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--clr-border-glass);
  border-radius: var(--radius-sm);
  padding: 1rem;
  color: var(--clr-text-main);
  font-family: var(--font-primary);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--clr-accent-gold);
  background: rgba(0, 0, 0, 0.4);
}

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

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

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  max-width: 300px;
}

.footer-desc {
  margin-top: 1rem;
  font-size: 0.875rem;
}

.footer-title {
  font-size: 1.125rem;
  color: var(--clr-text-main);
  margin-bottom: 1.5rem;
}

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

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

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

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

.footer-bottom p {
  margin: 0;
  font-size: 0.875rem;
}

.age-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--clr-text-muted);
  border-radius: 50%;
  font-weight: 700;
  color: var(--clr-text-muted);
}

/* Animations */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(76, 175, 80, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.float-anim {
  animation: float 6s ease-in-out infinite;
}