:root {
  /* Colors */
  --bg-primary: #0f0e0b;
  --bg-secondary: #1a1813;
  --bg-card: rgba(255, 255, 255, 0.04);
  --accent-primary: #c2a878;
  --accent-secondary: #6f8f72;
  --accent-tertiary: #8c6a3c;
  --text-primary: #f5f1e6;
  --text-secondary: #a89f8c;
  --gradient-accent: linear-gradient(135deg, #c2a878, #6f8f72);
  
  /* Typography */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Lora', serif;
  --font-ui: system-ui, -apple-system, sans-serif;
  
  /* Sizing & Spacing */
  --max-width: 1400px;
  --spacing-desktop: 100px;
  --spacing-tablet: 70px;
  --spacing-mobile: 50px;
  
  /* Radii */
  --radius-btn: 16px;
  --radius-card: 12px;
  --radius-game: 20px;
  
  /* Transitions */
  --trans-fast: 0.2s ease;
  --trans-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: url('images/photo-1605806616949-1e87b487cb2a.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-blend-mode: overlay;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

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

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--bg-primary);
  background: var(--gradient-accent);
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: all var(--trans-smooth);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(194, 168, 120, 0.2);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(194, 168, 120, 0.4);
  color: var(--bg-primary);
}

.btn-outline {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(194, 168, 120, 0.1);
  color: var(--text-primary);
  box-shadow: 0 0 15px rgba(194, 168, 120, 0.2);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 14, 11, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(194, 168, 120, 0.15);
  padding: 1rem 0;
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--trans-smooth);
  box-shadow: 0 0 8px var(--accent-primary);
}

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

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

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

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(15, 14, 11, 0.4) 0%, var(--bg-primary) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.legal-badge {
  display: inline-block;
  background: rgba(111, 143, 114, 0.1);
  border: 1px solid rgba(111, 143, 114, 0.3);
  color: var(--accent-secondary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-family: var(--font-ui);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Game Section */
.game-section {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(194, 168, 120, 0.1);
  border-bottom: 1px solid rgba(194, 168, 120, 0.1);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--accent-primary);
}

.game-wrapper {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-game);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(194, 168, 120, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(194, 168, 120, 0.3);
  transition: transform var(--trans-smooth), box-shadow var(--trans-smooth);
}

.game-wrapper:hover {
  transform: scale(1.01);
  box-shadow: 0 0 60px rgba(194, 168, 120, 0.25), inset 0 0 20px rgba(0, 0, 0, 0.8);
}

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

/* Cards (Quests / Info) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid rgba(194, 168, 120, 0.1);
  border-radius: var(--radius-card);
  padding: 2rem;
  text-align: center;
  transition: all var(--trans-smooth);
  backdrop-filter: blur(5px);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(194, 168, 120, 0.4);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: rgba(194, 168, 120, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(194, 168, 120, 0.3);
}

.card-icon img {
  width: 30px;
  height: 30px;
  filter: sepia(1) hue-rotate(10deg) saturate(2);
}

.card h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

/* Content Pages (About, Terms, etc) */
.content-page {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-secondary);
  padding: 4rem;
  border-radius: var(--radius-card);
  border: 1px solid rgba(194, 168, 120, 0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.content-page h1 {
  text-align: center;
  color: var(--accent-primary);
  margin-bottom: 2rem;
  font-size: 3rem;
}

.content-page h2 {
  color: var(--accent-primary);
  margin-top: 2rem;
  font-size: 1.8rem;
}

.content-page p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.content-page ul {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

/* Map Layout specific */
.map-container {
  position: relative;
  width: 100%;
  height: 700px;
  background: url('images/photo-1588666309990-d68f08e3d4a6-map-map-container.png') center/cover;
  border-radius: var(--radius-card);
  border: 2px solid var(--accent-primary);
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.map-region {
  position: absolute;
  padding: 1rem;
  background: rgba(15, 14, 11, 0.8);
  border: 1px solid var(--accent-primary);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--trans-fast);
  backdrop-filter: blur(4px);
  text-align: center;
}

.map-region:hover {
  transform: scale(1.1);
  background: rgba(194, 168, 120, 0.2);
}

.map-region h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.map-region p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--accent-secondary);
  font-family: var(--font-ui);
}

#region-tavern { top: 30%; left: 20%; }
#region-forest { top: 60%; left: 45%; }
#region-mountains { top: 20%; right: 25%; }

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

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

.form-group label {
  font-family: var(--font-ui);
  color: var(--accent-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(194, 168, 120, 0.2);
  padding: 1rem;
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: border var(--trans-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* Footer */
.site-footer {
  background: #0a0907;
  border-top: 1px solid rgba(194, 168, 120, 0.1);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

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

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

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 400px;
}

.footer-links h4 {
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(194, 168, 120, 0.1);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-family: var(--font-ui);
}

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

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 3rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .game-wrapper { width: 95%; }
}

@media (max-width: 768px) {
  .section { padding: var(--spacing-tablet) 0; }
  
  .mobile-toggle { display: block; }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    flex-direction: column;
    gap: 0;
    text-align: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--trans-smooth);
    border-bottom: 1px solid rgba(194, 168, 120, 0.1);
  }
  
  .nav-links.active {
    max-height: 400px;
  }
  
  .nav-links li {
    padding: 1rem 0;
    border-top: 1px solid rgba(194, 168, 120, 0.05);
  }
  
  .header-cta { display: none; }
  
  .hero-content h1 { font-size: 2.5rem; }
  
  .grid-3 { grid-template-columns: 1fr; }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .content-page { padding: 2rem; }
  .game-wrapper { width: 100%; border-radius: 0; }
}

@media (max-width: 480px) {
  .section { padding: var(--spacing-mobile) 0; }
  .hero-content h1 { font-size: 2rem; }
  .btn { width: 100%; }
}