:root {
  --bg-primary: #0a0a0d;
  --bg-secondary: #141417;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --primary-accent: #bf7af0;
  --secondary-accent: #dab6ff;
  --text-primary: #f5f5f5;
  --text-secondary: #9ca3af;
  --neon-blue: #00d2ff;
  --max-width: 1400px;
  --spacing-desktop: 100px;
  --spacing-tablet: 70px;
  --spacing-mobile: 50px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

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

.text-gradient {
  background: linear-gradient(135deg, var(--secondary-accent), var(--primary-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 13, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(191, 122, 240, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 1px 15px rgba(191, 122, 240, 0.1);
  transition: all 0.3s ease;
}

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

.brand-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 1px;
}

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

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: transform 0.3s ease, color 0.3s ease;
  display: inline-block;
}

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

.nav-link:hover {
  transform: translateY(-2px);
  color: var(--secondary-accent);
}

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

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

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(191, 122, 240, 0.5);
  background: linear-gradient(135deg, var(--secondary-accent), var(--primary-accent));
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  position: relative;
  background: url('images/xaviwonderroute-bright-purple-casino-lounge.jpg') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(10,10,13,0.7) 0%, rgba(10,10,13,0.95) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: fadeIn 1s ease-out;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

.age-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary-accent);
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--secondary-accent);
  margin-bottom: 1.5rem;
  background: rgba(191, 122, 240, 0.1);
}

/* Game Section (Primary Focal Point) */
.game-section {
  position: relative;
  z-index: 5;
  margin-top: -50px;
  padding-bottom: var(--spacing-desktop);
}

.game-wrapper {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  border-radius: 20px;
  border: 1px solid rgba(191, 122, 240, 0.4);
  box-shadow: 0 0 40px rgba(191, 122, 240, 0.15), 0 0 80px rgba(191, 122, 240, 0.05);
  overflow: hidden;
  position: relative;
}

.game-wrapper::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, transparent, var(--primary-accent), transparent);
  z-index: -1;
  border-radius: 22px;
  opacity: 0.5;
}

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

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

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

.feature-card {
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(191, 122, 240, 0.2);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(191, 122, 240, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(191, 122, 240, 0.3);
  box-shadow: 0 0 15px rgba(191, 122, 240, 0.2);
}

.feature-icon img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 5px var(--primary-accent));
}

/* Added Image Styles */
.image-wrapper {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(191, 122, 240, 0.3);
  box-shadow: 0 10px 40px rgba(191, 122, 240, 0.15);
  margin: 0 auto;
  max-width: 1000px;
}

.showcase-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
}

.content-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  border-radius: 12px;
  border: 1px solid rgba(191, 122, 240, 0.2);
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  display: block;
}

/* Content Pages (About, Terms, etc.) */
.page-header {
  padding-top: 150px;
  padding-bottom: 50px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(191, 122, 240, 0.05), transparent);
}

.content-box {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 4rem;
  max-width: 900px;
  margin: 0 auto var(--spacing-desktop);
}

.content-box h2 {
  margin-top: 2rem;
  color: var(--secondary-accent);
  font-size: 1.5rem;
}

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

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

/* Footer (Control Panel UI) */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(191, 122, 240, 0.1);
  padding: 4rem 0 2rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-accent), transparent);
  opacity: 0.5;
}

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

.footer-col h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: inline-block;
}

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

/* Strict Footer Interaction System */
.footer-link, .footer-text-interactive {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-block;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  cursor: pointer;
}

.footer-link::after, .footer-text-interactive::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--neon-blue);
  box-shadow: 0 0 5px var(--neon-blue);
  transition: width 0.3s ease;
}

.footer-link:hover, .footer-text-interactive:hover {
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.footer-link:hover::after, .footer-text-interactive:hover::after {
  width: 100%;
}

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

.disclaimer-text {
  font-size: 0.8rem;
  margin-top: 1rem;
  opacity: 0.7;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive System */
@media (max-width: 1024px) {
  .section-spacing { padding: var(--spacing-tablet) 0; }
  .game-wrapper { width: 95%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section-spacing { padding: var(--spacing-mobile) 0; }
  .nav-links { display: none; /* Mobile menu placeholder */ }
  .hero { padding-top: 100px; }
  .game-wrapper { width: 100%; border-radius: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .content-box { padding: 2rem; }
}