:root {
  /* Color Palette */
  --bg-primary: #101820;
  --bg-secondary: #1a2b22;
  --surface-color: rgba(255, 255, 255, 0.05);
  --surface-border: rgba(255, 255, 255, 0.08);
  
  --accent-primary: #5de0a4;
  --accent-secondary: #3fbf7f;
  --accent-highlight: #ffd36b;
  
  --text-primary: #f4f7f6;
  --text-secondary: #c8f4de;
  --text-muted: #a0d5b8;
  
  /* Layout & Spacing */
  --max-width: 1320px;
  --border-radius: 20px;
  --border-radius-sm: 16px;
  --nav-height: 80px;
  
  /* Shadows & Glows */
  --glow-primary: 0 0 20px rgba(93, 224, 164, 0.2);
  --glow-primary-strong: 0 0 40px rgba(93, 224, 164, 0.4);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

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

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

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

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

ul {
  list-style: none;
}

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

h1 { font-size: 3.5rem; letter-spacing: -1px; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

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

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 110px 0;
  position: relative;
}

.glass-panel {
  background: var(--surface-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

/* Header & Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(16, 24, 32, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-highlight), transparent);
  opacity: 0.5;
}

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

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

.logo-icon {
  width: 32px;
  height: 32px;
}

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

.nav-links a {
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

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

.nav-links a:hover {
  color: var(--text-primary);
}

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

.mobile-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
}

.mobile-toggle span {
  width: 30px;
  height: 2px;
  background: var(--text-primary);
  transition: 0.3s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(93, 224, 164, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-primary-strong);
  filter: brightness(1.1);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--accent-primary);
}

.btn-secondary:hover {
  background: rgba(93, 224, 164, 0.1);
  transform: translateY(-2px);
}

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

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

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

.hero-content h1 span {
  color: var(--accent-primary);
  text-shadow: 0 0 20px rgba(93, 224, 164, 0.3);
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 20px;
}

.hero-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-visual {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius);
  box-shadow: inset 0 0 30px rgba(16, 24, 32, 0.8);
  pointer-events: none;
}

/* Game Section */
.game-section {
  text-align: center;
  position: relative;
}

.game-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--border-radius);
  padding: 10px;
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(0,0,0,0.2));
  border: 1px solid var(--surface-border);
  box-shadow: var(--glow-primary);
  transition: all 0.4s ease;
  position: relative;
  z-index: 10;
}

.game-container:hover {
  box-shadow: var(--glow-primary-strong);
  transform: scale(1.01);
}

.game-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: calc(var(--border-radius) - 6px);
  background: #000;
}

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

.feature-card {
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(93, 224, 164, 0.3);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(93, 224, 164, 0.2), rgba(63, 191, 127, 0.05));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-highlight);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* Interior Pages (Legal, About, Contact) */
.page-header {
  text-align: center;
  margin-bottom: 60px;
  padding-top: 60px;
}

.content-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px;
}

.content-card h2 {
  color: var(--accent-primary);
  margin-top: 30px;
}

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

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px;
  border-radius: var(--border-radius-sm);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(93, 224, 164, 0.1);
}

/* Footer */
.site-footer {
  background: rgba(10, 15, 20, 0.95);
  border-top: 1px solid var(--surface-border);
  padding: 60px 0 30px;
  margin-top: 80px;
}

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

.footer-brand p {
  max-width: 300px;
  margin-top: 15px;
}

.footer-links h4 {
  color: var(--text-primary);
  margin-bottom: 20px;
}

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

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

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

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

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