:root {
  --bg-primary: #091522;
  --bg-secondary: #122338;
  --surface: #1A314A;
  --accent-primary: #6A5CFF;
  --accent-secondary: #4DD8FF;
  --monster-green: #55D67A;
  --treasure-gold: #F3C85B;
  --highlight: #FFFFFF;
  --text-primary: #F7F9FF;
  --text-secondary: #C7D0E8;
  --text-muted: #8B96B6;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover, a:focus {
  color: var(--highlight);
  outline: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  background-color: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 0.875rem;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--highlight);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.text-center { text-align: center; }
.text-gold { color: var(--treasure-gold); }
.text-green { color: var(--monster-green); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--highlight);
  box-shadow: 0 4px 15px rgba(106, 92, 255, 0.4);
}

.btn-primary:hover, .btn-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(77, 216, 255, 0.6);
  color: var(--highlight);
}

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

.btn-secondary:hover, .btn-secondary:focus {
  background: var(--accent-primary);
  color: var(--highlight);
  transform: translateY(-2px);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 21, 34, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Updated Logo styles */
.logo {
  display: flex;
  align-items: center;
  height: 45px;
  text-decoration: none;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover, .logo:focus {
  transform: scale(1.03);
  filter: drop-shadow(0 4px 12px rgba(6, 182, 212, 0.3));
  outline: none;
}

.brand-logo {
  height: 100%;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

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

.nav-links a:hover, .nav-links a:focus {
  color: var(--accent-secondary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--highlight);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Sections */
.section-padding {
  padding: 5rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 8rem 2rem;
  text-align: center;
  background: linear-gradient(to bottom, rgba(106, 92, 255, 0.1), var(--bg-primary)),
              url('images/magical-fantasy-landscape-hero-bg.jpg') center/cover no-repeat;
  border-bottom: 2px solid var(--accent-primary);
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--highlight), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
}

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

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

.game-wrapper {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background-color: #000;
  border: 4px solid var(--accent-primary);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(106, 92, 255, 0.2), 0 0 40px rgba(77, 216, 255, 0.1);
  overflow: hidden;
  position: relative;
}

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

/* Rewards Section */
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.reward-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.reward-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(106, 92, 255, 0.2);
  border-color: var(--accent-primary);
}

.reward-img-wrapper {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent-secondary);
  background-color: var(--bg-secondary);
}

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

.reward-card h3 {
  font-size: 1.5rem;
  color: var(--treasure-gold);
}

.reward-card p {
  color: var(--text-secondary);
}

/* Stats Section */
.stats-section {
  background: var(--surface);
  border-top: 1px solid var(--bg-secondary);
  border-bottom: 1px solid var(--bg-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--monster-green);
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* About Preview */
.about-preview {
  background-color: var(--bg-primary);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* FAQ Section */
.faq-section {
  background-color: var(--bg-secondary);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  background: transparent;
  border: none;
  color: var(--highlight);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-secondary);
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-secondary);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--surface);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--highlight);
}

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

.footer-links h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--highlight);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

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

.support-email {
  color: var(--accent-secondary);
  font-weight: 600;
  font-family: monospace;
  font-size: 1.1rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--surface);
  color: var(--text-muted);
}

/* Internal Pages Typography */
.page-header {
  background: linear-gradient(to right, var(--bg-secondary), var(--bg-primary));
  padding: 4rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--surface);
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.content-block {
  margin-bottom: 2.5rem;
}

.content-block h2 {
  color: var(--accent-secondary);
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

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

.content-block ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.content-block li {
  margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form-container {
  background: var(--surface);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--text-muted);
  border-radius: 8px;
  color: var(--highlight);
  font-family: var(--font-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(106, 92, 255, 0.3);
}

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

.form-status {
  display: none;
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
}

.status-loading {
  display: none;
  color: var(--accent-secondary);
}

.status-success {
  background: rgba(85, 214, 122, 0.1);
  color: var(--monster-green);
  border: 1px solid var(--monster-green);
}

.status-error {
  background: rgba(255, 99, 71, 0.1);
  color: #FF6347;
  border: 1px solid #FF6347;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 2px solid var(--accent-primary);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-text {
  max-width: 800px;
  color: var(--text-secondary);
}

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

/* Responsive */
@media (max-width: 992px) {
  .game-wrapper {
    width: 90%;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .game-wrapper {
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .cookie-banner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .contact-form-container {
    padding: 1.5rem;
  }
}