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

:root {
  /* Core Backgrounds */
  --bg-primary: #07110d;
  --bg-secondary: #10231c;
  --bg-tertiary: #1b2f28;

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;

  /* Gradients */
  --grad-emerald: linear-gradient(135deg, #10b981, #34d399);
  --grad-purple: linear-gradient(135deg, #8b5cf6, #c084fc);
  --grad-gold: linear-gradient(135deg, #f59e0b, #fcd34d);
  --grad-premium: linear-gradient(135deg, #10b981, #8b5cf6, #f59e0b);

  /* Glows */
  --glow-emerald: rgba(16, 185, 129, 0.45);
  --glow-purple: rgba(139, 92, 246, 0.45);
  --glow-gold: rgba(245, 158, 11, 0.35);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* Layout */
  --container-width: 1380px;
  --radius-main: 28px;
  --radius-game: 32px;
  --radius-btn: 20px;

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

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

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

/* Background Effects */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(circle at 15% 50%, rgba(16, 185, 129, 0.08), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08), transparent 40%);
  z-index: -2;
  pointer-events: none;
}

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

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

ul {
  list-style: none;
}

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

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

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

/* Glassmorphism Classes */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-main);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--grad-emerald);
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--glow-emerald);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: 0.5s ease;
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px var(--glow-emerald);
}

.btn-primary:hover::before {
  left: 150%;
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn-gold {
  background: var(--grad-gold);
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--glow-gold);
}

/* Header - Floating Story Navigation */
header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--grad-premium);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-icon {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px var(--glow-emerald));
  animation: float 4s ease-in-out infinite;
}

.header-center nav ul {
  display: flex;
  gap: 35px;
}

.header-center nav a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-secondary);
  position: relative;
  padding: 5px 0;
}

.header-center nav a:hover,
.header-center nav a.active {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.header-center nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--grad-emerald);
  transition: 0.3s ease;
  transform: translateX(-50%);
  box-shadow: 0 0 10px var(--glow-emerald);
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.crystal-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #c084fc;
}

.crystal-icon {
  width: 16px;
  height: 16px;
}

/* Mobile Bottom Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(7, 17, 13, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  z-index: 1000;
  padding: 10px 20px 20px;
}

.mobile-nav ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.mobile-nav a.active {
  color: #34d399;
}

.mobile-nav svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 140px; /* Offset for header to avoid overlap */
  padding-bottom: 60px;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('images/photo-1518709268805-4e9042af9f23.png') center/cover no-repeat;
  opacity: 0.3;
  z-index: -1;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.hero-fog {
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 50%;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  color: #34d399;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 25px;
}

.hero h1 {
  font-size: 4.2rem;
  margin-bottom: 25px;
  background: linear-gradient(to right, #ffffff, #d1d5db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
  line-height: 1.15;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 580px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 35px;
}

.disclaimer-box {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-left: 4px solid #f59e0b;
  padding: 18px 24px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 550px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-visual {
  position: relative;
  z-index: 2;
  perspective: 1000px;
}

.hero-visual-card {
  width: 100%;
  height: 550px;
  background: url('images/photo-1605806616949-1e87b487cb2a.png') center/cover;
  border-radius: var(--radius-game);
  border: 2px solid rgba(139, 92, 246, 0.4);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px var(--glow-purple);
  transform: rotateY(-15deg) rotateX(10deg);
  animation: floatCard 6s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.hero-visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
}

/* Main Game Section */
.game-section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.game-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.game-container {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-game);
  overflow: hidden;
  border: 2px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 60px rgba(16, 185, 129, 0.15), inset 0 0 30px rgba(0,0,0,0.8);
  position: relative;
  background: #000;
  transition: all 0.4s ease;
}

.game-container:hover {
  box-shadow: 0 0 80px rgba(16, 185, 129, 0.3), inset 0 0 30px rgba(0,0,0,0.8);
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.6);
}

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

.game-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  padding: 20px 35px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(16px);
}

.game-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.game-icon {
  width: 45px;
  height: 45px;
  background: var(--grad-emerald);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 5px 15px var(--glow-emerald);
}

.game-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.game-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.game-actions {
  display: flex;
  gap: 15px;
}

.action-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
  font-size: 1.1rem;
}

.action-btn:hover {
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 15px rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* Features Grid */
.features-section {
  padding: 100px 0 120px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.feature-card {
  padding: 45px 35px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-game);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: var(--grad-purple);
  opacity: 0;
  transition: 0.3s;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
  border-color: rgba(139, 92, 246, 0.4);
}

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

.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 25px;
  background: var(--grad-premium);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-card h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* Stats Section */
.stats-section {
  padding: 90px 0;
  background: linear-gradient(to bottom, transparent, var(--bg-tertiary), transparent);
}

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

.stat-item {
  padding: 35px;
  background: rgba(0,0,0,0.3);
  border-radius: 24px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.5);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

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

/* Legal Pages Container */
.page-header, .slot-page-header {
  padding: 180px 0 60px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(139, 92, 246, 0.1), transparent);
}

.slot-page-header {
  background: linear-gradient(to bottom, rgba(16, 185, 129, 0.1), transparent);
}

.page-header h1, .slot-page-header h1 {
  font-size: 3.8rem;
  margin-bottom: 15px;
}

.legal-content {
  max-width: 1000px;
  margin: 0 auto 100px;
  padding: 60px;
}

.legal-content h2 {
  color: #34d399;
  margin: 45px 0 25px;
  font-size: 1.8rem;
}

.legal-content h3 {
  color: #c084fc;
  margin: 30px 0 15px;
  font-size: 1.4rem;
}

.legal-content p, .legal-content ul {
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.legal-content ul {
  list-style: disc inside;
  padding-left: 15px;
}

.legal-content li {
  margin-bottom: 12px;
}

/* Contact Page Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: start;
}

.contact-form-card,
.contact-info-card {
  padding: 50px;
  border-radius: var(--radius-game);
}

.contact-heading {
  color: #34d399;
  font-size: 2rem;
  margin-bottom: 15px;
}

.contact-subheading {
  color: var(--text-secondary);
  margin-bottom: 35px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus {
  outline: none;
  border-color: #34d399;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.2);
}

select.form-control {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%239ca3af" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 20px;
}

select.form-control option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: rgba(192, 132, 252, 0.1);
  border: 1px solid rgba(192, 132, 252, 0.3);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-text h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.info-text p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer */
footer {
  background: var(--bg-tertiary);
  padding: 80px 0 30px;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 1px;
  background: var(--grad-premium);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

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

.footer-brand .logo-link {
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 320px;
  margin-bottom: 20px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 25px;
  color: var(--text-primary);
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #34d399;
  padding-left: 5px;
}

.footer-contact p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-bottom {
  text-align: center;
  padding-top: 35px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-disclaimer {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 850px;
  margin: 0 auto 15px;
  line-height: 1.6;
}

.footer-copyright {
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes floatCard {
  0%, 100% { transform: rotateY(-15deg) rotateX(10deg) translateY(0); }
  50% { transform: rotateY(-15deg) rotateX(10deg) translateY(-20px); }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3.2rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-form-card,
  .contact-info-card {
    padding: 35px 25px;
  }
}

@media (max-width: 768px) {
  header .header-center, header .header-right { display: none; }
  .mobile-nav { display: block; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; padding-top: 60px; gap: 40px;}
  .hero h1 { font-size: 2.8rem; }
  .hero p { margin: 0 auto 30px; font-size: 1.05rem;}
  .hero-actions { justify-content: center; flex-wrap: wrap; }
  .disclaimer-box { margin: 0 auto; text-align: left; }
  .hero-visual-card { height: 350px; transform: none; animation: none;}
  .game-controls { flex-direction: column; gap: 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px;}
  .legal-content { padding: 40px 25px; }
  body { padding-bottom: 80px; } /* Space for mobile nav */
}