:root {
  --bg-primary: #0b0f16;
  --bg-secondary: #121926;
  --surface: #1a2233;
  --accent-gold: #d9a441;
  --magic-blue: #53b3ff;
  --rune-purple: #7c5cff;
  --text: #ffffff;
  --text-secondary: #cbd5e1;
  --font-primary: 'Cinzel', serif;
  --font-secondary: 'Montserrat', sans-serif;
  --glass-bg: rgba(26, 34, 51, 0.65);
  --glass-border: rgba(124, 92, 255, 0.3);
}

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

body {
  background-color: var(--bg-primary);
  background-image: url('images/dungeon-slot-endless-depths-background.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center top;
  color: var(--text);
  font-family: var(--font-secondary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

a {
  color: var(--magic-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-gold);
  text-shadow: 0 0 10px var(--accent-gold);
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(124, 92, 255, 0.1);
  border-radius: 12px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(11, 15, 22, 0.8);
  backdrop-filter: blur(10px);
}

.logo img {
  height: 50px;
  filter: drop-shadow(0 0 8px var(--accent-gold));
}

nav.main-nav {
  display: flex;
  gap: 2rem;
}

nav.main-nav a {
  color: var(--text-secondary);
  font-family: var(--font-primary);
  font-weight: 600;
  position: relative;
}

nav.main-nav a:hover {
  color: var(--rune-purple);
  text-shadow: 0 0 15px var(--rune-purple);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-family: var(--font-primary);
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.btn-primary {
  background: linear-gradient(45deg, #a67c00, var(--accent-gold));
  color: var(--bg-primary);
  border: 1px solid #ffdf73;
  box-shadow: 0 0 15px rgba(217, 164, 65, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 0 25px rgba(217, 164, 65, 0.8);
  transform: translateY(-2px);
  color: var(--bg-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--magic-blue);
  border: 1px solid var(--magic-blue);
  box-shadow: 0 0 10px rgba(83, 179, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(83, 179, 255, 0.1);
  box-shadow: 0 0 20px rgba(83, 179, 255, 0.6);
  color: var(--text);
}

.btn-cta {
  background: linear-gradient(45deg, #4a2b99, var(--rune-purple));
  color: var(--text);
  border: 1px solid #a385ff;
  box-shadow: 0 0 20px rgba(124, 92, 255, 0.5);
}

/* Layout Utilities */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  text-shadow: 0 0 15px rgba(217, 164, 65, 0.3);
}

.section-desc {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem auto;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

.hero-content {
  padding: 3rem;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  text-shadow: 0 0 20px var(--rune-purple), 0 0 40px var(--magic-blue);
}

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

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* Feature Sections (Vault, Relics, Rewards) */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-grid.reverse .feature-img-container {
  order: 2;
}

.feature-grid.reverse .feature-text {
  order: 1;
}

.feature-img-container img {
  width: 100%;
  border-radius: 8px;
  border: 2px solid var(--glass-border);
  box-shadow: 0 0 30px rgba(124, 92, 255, 0.2);
  transition: transform 0.5s ease;
}

.feature-img-container:hover img {
  transform: scale(1.02);
  box-shadow: 0 0 50px rgba(124, 92, 255, 0.4);
}

.feature-text h2 {
  font-size: 2.2rem;
  color: var(--magic-blue);
  margin-bottom: 1rem;
}

/* Game Container */
.game-section {
  padding: 8rem 0 4rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-wrapper {
  width: 100%;
  margin: 0 auto;
  transition: width 0.3s ease;
}

.game-wrapper iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 2px solid var(--rune-purple);
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(124, 92, 255, 0.4), 0 0 100px rgba(11, 15, 22, 0.8);
  background: #000;
}

@media (min-width: 768px) {
  .game-wrapper {
    width: 85%;
  }
}

@media (min-width: 1024px) {
  .game-wrapper {
    width: 75%;
  }
}

/* FAQ Section */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
}

.faq-item h3 {
  color: var(--magic-blue);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

/* Forms */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group label {
  color: var(--accent-gold);
  font-family: var(--font-primary);
}

.form-group input, .form-group textarea {
  background: rgba(11, 15, 22, 0.6);
  border: 1px solid var(--glass-border);
  padding: 12px;
  color: var(--text);
  border-radius: 4px;
  font-family: var(--font-secondary);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--magic-blue);
  box-shadow: 0 0 10px rgba(83, 179, 255, 0.3);
}

/* Legal Pages */
.legal-content {
  max-width: 900px;
  margin: 100px auto 50px auto;
  padding: 3rem;
}

.legal-content h1 {
  color: var(--accent-gold);
  margin-bottom: 2rem;
  text-align: center;
}

.legal-content h2 {
  color: var(--magic-blue);
  margin: 2rem 0 1rem 0;
  font-size: 1.5rem;
}

.legal-content p, .legal-content ul {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.legal-content ul {
  margin-left: 2rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  padding: 1.5rem;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

/* Site Footer */
.site-footer {
  margin-top: 4rem;
  background: rgba(11, 15, 22, 0.95);
  padding: 4rem 2rem 2rem;
  position: relative;
  border-top: 1px solid var(--glass-border);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--magic-blue), var(--rune-purple), transparent);
  box-shadow: 0 0 15px var(--magic-blue);
}

.footer-top {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .footer-logo {
  height: 60px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 8px var(--accent-gold));
}

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

.footer-links h4,
.footer-legal h4 {
  color: var(--text);
  font-family: var(--font-primary);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  position: relative;
  display: inline-block;
}

.footer-links h4::after,
.footer-legal h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: var(--rune-purple);
  border-radius: 2px;
}

.footer-links nav,
.footer-legal nav {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a,
.footer-legal a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  width: fit-content;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--accent-gold);
  transform: translateX(5px);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(203, 213, 225, 0.1);
  text-align: center;
}

.footer-disclaimer {
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
  font-size: 0.85rem;
  color: rgba(203, 213, 225, 0.7);
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(203, 213, 225, 0.1);
}

.footer-disclaimer p {
  margin-bottom: 0.5rem;
}

.footer-disclaimer p:last-child {
  margin-bottom: 0;
  color: var(--magic-blue);
  font-family: monospace;
  letter-spacing: 1px;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid.reverse .feature-img-container {
    order: 1;
  }
  .feature-grid.reverse .feature-text {
    order: 2;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  nav.main-nav {
    display: none; /* In a real scenario, use a hamburger menu */
  }
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
  
  /* Responsive footer */
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand p {
    margin: 0 auto;
  }
  
  .footer-links h4::after,
  .footer-legal h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links a,
  .footer-legal a {
    margin: 0 auto;
  }
}