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

:root {
  /* Color System - Colorful Fantasy & Magical */
  --bg-primary: #0f1123; /* Deep vibrant night sky */
  --bg-secondary: #16193b;
  --bg-section: #1c214d;
  --bg-card: #242a5c;
  --border-color: #3a417b;
  
  --accent-purple: #a855f7; /* Vibrant magical purple */
  --accent-cyan: #22d3ee; /* Glowing magical cyan */
  --accent-volcanic: #fb923c; /* Bright warm orange */
  --accent-amber: #fbbf24; /* Golden magical glow */
  --accent-pink: #ec4899; /* Fantasy energy pink */
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;

  /* Typography */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-y: 100px;
  
  /* Layout */
  --max-width: 1300px;
  --border-radius: 18px;
  --btn-radius: 14px;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

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

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

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

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

.highlight-cyan { color: var(--accent-cyan); text-shadow: 0 0 12px rgba(34, 211, 238, 0.6); }
.highlight-purple { color: var(--accent-purple); text-shadow: 0 0 12px rgba(168, 85, 247, 0.6); }
.highlight-amber { color: var(--accent-amber); text-shadow: 0 0 12px rgba(251, 191, 36, 0.6); }
.highlight-volcanic { color: var(--accent-volcanic); text-shadow: 0 0 12px rgba(251, 146, 60, 0.6); }
.highlight-pink { color: var(--accent-pink); text-shadow: 0 0 12px rgba(236, 72, 153, 0.6); }

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 17, 35, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
}

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

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

.logo span {
  color: var(--accent-cyan);
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0.8;
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--accent-pink);
  opacity: 1;
  text-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--btn-radius);
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  color: #fff;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(236, 72, 153, 0.7);
}

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

.btn-secondary:hover {
  background: rgba(34, 211, 238, 0.1);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
}

/* Global Disclaimers (Sticky & Inline) */
.disclaimer-bar {
  background: var(--bg-section);
  color: var(--text-secondary);
  text-align: center;
  padding: 8px 15px;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border-color);
  margin-top: 80px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(15, 17, 35, 0.3), rgba(15, 17, 35, 0.85)), 
              url('images/vibrant-fantasy-monster-adventure-sky.jpg') center/cover no-repeat;
  margin-top: -80px;
  padding-top: 100px;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
}

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

.hero-title {
  font-size: 4rem;
  margin-bottom: 20px;
  text-shadow: 0 5px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(34, 211, 238, 0.4);
  letter-spacing: 2px;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-primary);
  opacity: 0.95;
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-disclaimer {
  display: inline-block;
  background: rgba(28, 33, 77, 0.7);
  border: 1px solid rgba(34, 211, 238, 0.4);
  padding: 12px 25px;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  color: var(--accent-amber);
  margin-bottom: 30px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
}

.hero-disclaimer ul {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Hero Banner for Subpages */
.hero-sub {
  position: relative;
  padding: 180px 0 80px;
  background: linear-gradient(rgba(15, 17, 35, 0.4), rgba(15, 17, 35, 0.95)), 
              url('images/magical-glowing-ruins-creatures.jpg') center/cover no-repeat;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.hero-sub h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.6), 0 0 15px rgba(168, 85, 247, 0.4);
}

/* Game Section */
.game-section {
  background: var(--bg-secondary);
}

.game-header {
  margin-bottom: 40px;
}

.game-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.game-container {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 20px;
  box-shadow: 0 15px 50px rgba(34, 211, 238, 0.15);
  position: relative;
}

.game-container::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, var(--accent-pink), var(--accent-cyan), var(--accent-purple), var(--accent-volcanic));
  z-index: -1;
  border-radius: calc(var(--border-radius) + 2px);
  opacity: 0.6;
  animation: pulse-border 3s linear infinite alternate;
}

@keyframes pulse-border {
  0% { opacity: 0.4; }
  100% { opacity: 0.8; }
}

.iframe-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

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

.game-footer-info {
  margin-top: 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  background: var(--bg-card);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-cyan), var(--accent-purple));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 15px 40px rgba(34, 211, 238, 0.2), inset 0 0 20px rgba(168, 85, 247, 0.1);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: inline-block;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.6));
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

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

/* Stats Section */
.stats-section {
  background: var(--bg-section);
  position: relative;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.3);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--accent-cyan);
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Content Pages (About, Terms, Privacy) */
.content-section {
  background: var(--bg-primary);
  max-width: 900px;
  margin: 0 auto;
}

.content-block {
  background: var(--bg-card);
  padding: 50px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  margin-bottom: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.content-block h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--accent-pink);
  text-shadow: 0 0 10px rgba(236, 72, 153, 0.2);
}

.content-block h3 {
  font-size: 1.4rem;
  margin: 25px 0 15px;
  color: var(--accent-cyan);
}

.content-block p {
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.content-block ul {
  list-style: disc inside;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Form */
.contact-form {
  display: grid;
  gap: 20px;
}

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

.form-group label {
  color: var(--text-primary);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.form-control {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 15px;
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.3);
}

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

/* CTA Section */
.cta-section {
  background: linear-gradient(rgba(28, 33, 77, 0.7), rgba(15, 17, 35, 0.95)), 
              url('images/colorful-mystical-energy-portal.jpg') center/cover fixed;
  text-align: center;
  position: relative;
  border-top: 1px solid rgba(168, 85, 247, 0.4);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.25) 0%, transparent 60%);
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 0 5px 20px rgba(0,0,0,0.6);
}

.cta-content p {
  color: var(--text-primary);
  opacity: 0.9;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* Footer */
.footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 30px;
}

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

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 15px;
  max-width: 400px;
}

.footer-heading {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

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

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

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

.footer-disclaimer-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 40px;
  text-align: center;
  color: var(--accent-amber);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
}

.footer-disclaimer-box span {
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
  color: var(--text-primary);
  font-size: 1.1rem;
}

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

/* Responsive Rules */
@media (max-width: 1024px) {
  :root {
    --space-y: 70px;
  }
  .hero-title { font-size: 3.2rem; }
  .game-container { max-width: 95%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --space-y: 50px;
  }
  .nav-menu {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .hero-title { font-size: 2.5rem; }
  .hero-disclaimer ul { flex-direction: column; gap: 10px; }
  .game-container { max-width: 100%; border-radius: 0; border-left: none; border-right: none; }
  .game-container::before { display: none; }
  .iframe-wrapper { border-radius: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .content-block { padding: 30px 20px; }
}