:root {
  --bg-primary: #121214;
  --bg-secondary: #1f1f23;
  --surface-card: rgba(255, 255, 255, 0.05);
  
  --accent-primary: #d97706;
  --accent-secondary: #f59e0b;
  --accent-highlight: #fde68a;
  --accent-deep: #7f1d1d;
  
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  
  --font-base: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --border-radius: 14px;
  --border-radius-lg: 18px;
  
  --spacing-desktop: 100px;
  --spacing-tablet: 70px;
  --spacing-mobile: 50px;
  
  --container-width: 1300px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

ul {
  list-style: none;
}

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

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

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-highlight);
}

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

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

@media (max-width: 768px) {
  .container { padding: 0 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
}

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

@media (max-width: 768px) {
  section { padding: var(--spacing-tablet) 0; }
}

@media (max-width: 480px) {
  section { padding: var(--spacing-mobile) 0; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  color: #fff;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(31, 31, 35, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-highlight);
  letter-spacing: 1px;
}

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

.nav-links a {
  position: relative;
  font-weight: 500;
  color: var(--text-primary);
  padding: 8px 0;
}

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

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

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

@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 300px;
    height: calc(100vh - 80px);
    background-color: var(--bg-secondary);
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .header-btn {
    display: none;
  }
}

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(18, 18, 20, 0.3), var(--bg-primary)), url('images/dragon-cave-nest-bg.webp') center/cover no-repeat;
  z-index: 1;
}

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

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

.disclaimer-badge {
  display: inline-block;
  background: rgba(127, 29, 29, 0.2);
  border: 1px solid var(--accent-deep);
  color: var(--accent-highlight);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(5px);
}

.disclaimer-badge span {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

/* Animations */
@keyframes pulse-glow {
  0% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.2); }
  50% { box-shadow: 0 0 40px rgba(245, 158, 11, 0.6); }
  100% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.2); }
}

@keyframes float-embers {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(-100px) scale(0.5); opacity: 0; }
}

.ember {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-secondary);
  border-radius: 50%;
  filter: blur(1px);
  z-index: 1;
  animation: float-embers 4s infinite linear;
}

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

.game-container {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}

.game-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background-color: #000;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(245, 158, 11, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: pulse-glow 4s infinite;
}

.game-wrapper:hover {
  transform: scale(1.01);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 0 0 2px rgba(245, 158, 11, 0.5);
}

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

/* Content Sections */
.info-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.feature-card {
  background: var(--surface-card);
  border-radius: var(--border-radius);
  padding: 32px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.02);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.2);
}

.feature-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 15px rgba(217, 119, 6, 0.3);
}

.feature-icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Legal / Info Pages Content */
.page-header {
  padding-top: 150px;
  padding-bottom: 50px;
  text-align: center;
  background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
  border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}

.content-wrap {
  background: var(--surface-card);
  padding: 40px;
  border-radius: var(--border-radius);
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.content-wrap h2:first-child {
  margin-top: 0;
}

.content-wrap ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.content-wrap li {
  margin-bottom: 8px;
}

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

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

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

.form-group input,
.form-group textarea {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px;
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-secondary);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

/* Footer */
.footer {
  background-color: #0a0a0b;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-col h4 {
  color: var(--accent-highlight);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

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

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

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

.footer-legal-warning {
  background: rgba(255, 255, 255, 0.02);
  padding: 20px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent-deep);
  margin-bottom: 30px;
}

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

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }