/* ============================================================
   PLAYSURGEDEN — ARABIAN ROYAL NEON DESIGN SYSTEM
   styles.css
   ============================================================ */

/* ——————————————————————————————————————————
   1. CSS CUSTOM PROPERTIES / DESIGN TOKENS
—————————————————————————————————————————— */
:root {
  /* Base Colors */
  --bg-primary: #05030a;
  --bg-secondary: #0b0f1f;
  --bg-tertiary: #0f1428;

  /* Glass Surface */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(245, 197, 66, 0.3);
  --glass-blur: 18px;

  /* Primary Accent — Royal Gold */
  --gold-start: #f5c542;
  --gold-end: #d4a017;
  --gold-gradient: linear-gradient(135deg, #f5c542, #d4a017);
  --gold-glow: rgba(245, 197, 66, 0.45);
  --gold-glow-soft: rgba(245, 197, 66, 0.2);

  /* Secondary Accent — Mystic Purple */
  --purple-start: #7c3aed;
  --purple-end: #a78bfa;
  --purple-gradient: linear-gradient(135deg, #7c3aed, #a78bfa);
  --purple-glow: rgba(124, 58, 237, 0.45);
  --purple-glow-soft: rgba(167, 139, 250, 0.2);

  /* Highlight — Ember Orange */
  --orange-start: #f97316;
  --orange-end: #fb923c;
  --orange-gradient: linear-gradient(135deg, #f97316, #fb923c);
  --orange-glow: rgba(249, 115, 22, 0.35);

  /* Premium Blend */
  --premium-gradient: linear-gradient(135deg, #7c3aed, #f5c542);
  --premium-gradient-rev: linear-gradient(135deg, #f5c542, #7c3aed);

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5f5;
  --text-muted: #6b7280;
  --text-gold: #f5c542;
  --text-purple: #a78bfa;

  /* Fonts */
  --font-display: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Playfair Display', serif;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-gold: 0 0 30px rgba(245, 197, 66, 0.25), 0 0 60px rgba(245, 197, 66, 0.1);
  --shadow-purple: 0 0 30px rgba(124, 58, 237, 0.25), 0 0 60px rgba(124, 58, 237, 0.1);
  --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 20px 60px rgba(0, 0, 0, 0.5);

  /* Z-index */
  --z-base: 1;
  --z-nav: 100;
  --z-modal: 200;
  --z-particles: 0;
}

/* ——————————————————————————————————————————
   2. CSS RESET & BASE
—————————————————————————————————————————— */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(245, 197, 66, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 10%, rgba(249, 115, 22, 0.04) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-base);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
}

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

/* ——————————————————————————————————————————
   3. LAYOUT UTILITIES
—————————————————————————————————————————— */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: var(--z-base);
}

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

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--gold-glow-soft);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-gold);
  backdrop-filter: blur(var(--glass-blur));
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

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

/* ——————————————————————————————————————————
   4. PARTICLES
—————————————————————————————————————————— */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-particles);
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: particleDrift linear infinite;
  opacity: 0;
}

.particle-1 { width: 3px; height: 3px; background: var(--gold-start); left: 10%; top: 20%; animation-duration: 20s; animation-delay: 0s; }
.particle-2 { width: 2px; height: 2px; background: var(--purple-end); left: 25%; top: 60%; animation-duration: 25s; animation-delay: 3s; }
.particle-3 { width: 4px; height: 4px; background: var(--gold-start); left: 50%; top: 30%; animation-duration: 18s; animation-delay: 6s; }
.particle-4 { width: 2px; height: 2px; background: var(--purple-end); left: 70%; top: 70%; animation-duration: 22s; animation-delay: 9s; }
.particle-5 { width: 3px; height: 3px; background: var(--orange-start); left: 85%; top: 40%; animation-duration: 28s; animation-delay: 2s; }
.particle-6 { width: 2px; height: 2px; background: var(--gold-start); left: 15%; top: 80%; animation-duration: 16s; animation-delay: 12s; }
.particle-7 { width: 3px; height: 3px; background: var(--purple-end); left: 60%; top: 10%; animation-duration: 24s; animation-delay: 5s; }
.particle-8 { width: 2px; height: 2px; background: var(--gold-end); left: 40%; top: 90%; animation-duration: 20s; animation-delay: 8s; }

@keyframes particleDrift {
  0% { opacity: 0; transform: translateY(0) translateX(0) scale(0); }
  10% { opacity: 1; }
  50% { transform: translateY(-200px) translateX(50px) scale(1); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-400px) translateX(-50px) scale(0); }
}

/* ——————————————————————————————————————————
   5. LANTERNS
—————————————————————————————————————————— */
.lanterns {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.lantern {
  position: absolute;
  width: 40px;
  animation: lanternFloat ease-in-out infinite;
  opacity: 0.6;
}

.lantern-1 { left: 5%; top: 15%; animation-duration: 8s; animation-delay: 0s; }
.lantern-2 { right: 8%; top: 25%; animation-duration: 10s; animation-delay: 2s; }
.lantern-3 { left: 92%; top: 50%; animation-duration: 7s; animation-delay: 4s; }

@keyframes lanternFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  33% { transform: translateY(-20px) rotate(3deg); }
  66% { transform: translateY(-10px) rotate(-2deg); }
}

/* ——————————————————————————————————————————
   6. HEADER / NAV
—————————————————————————————————————————— */
.header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1240px;
  z-index: var(--z-nav);
  transition: var(--transition-base);
}

.header.scrolled .nav {
  background: rgba(5, 3, 10, 0.95);
  backdrop-filter: blur(24px);
  border-color: rgba(245, 197, 66, 0.2);
  box-shadow: var(--shadow-gold);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(11, 15, 31, 0.8);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
  pointer-events: none;
}

.nav-logo {
  flex-shrink: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(245, 197, 66, 0.4));
  transition: var(--transition-base);
}

.logo-link:hover .logo-icon {
  filter: drop-shadow(0 0 14px rgba(245, 197, 66, 0.7));
}

.logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
}

.logo-text-sm {
  font-size: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
  letter-spacing: 0.02em;
  overflow: hidden;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1.5px;
  background: var(--gold-gradient);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: calc(100% - 28px);
  animation: shimmerSlide 1.5s ease infinite;
}

@keyframes shimmerSlide {
  0% { background-position: -100px; }
  100% { background-position: 200px; }
}

.nav-link.active {
  color: var(--text-gold);
}

/* ——————————————————————————————————————————
   7. BUTTONS
—————————————————————————————————————————— */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 18px;
  transition: var(--transition-spring);
  cursor: pointer;
  overflow: hidden;
  text-transform: uppercase;
  border: none;
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid var(--gold-start);
  outline-offset: 3px;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #1a0f00;
  box-shadow: 0 4px 20px var(--gold-glow-soft);
}

.btn-gold:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px var(--gold-glow);
  color: #0a0800;
}

.btn-gold:active {
  transform: translateY(0) scale(0.98);
}

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

.btn-glass:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 15px;
  border-radius: 20px;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  font-size: 16px;
}

.btn-glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 0.6; transform: scale(1); }
}

/* ——————————————————————————————————————————
   8. MOBILE NAV
—————————————————————————————————————————— */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-base);
}

.nav-toggle.active .toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active .toggle-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(5, 3, 10, 0.98);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(245, 197, 66, 0.15);
  border-radius: 18px;
  padding: 24px;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-base);
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
  border: 1px solid transparent;
}

.mobile-nav-link:hover {
  color: var(--text-gold);
  background: var(--glass-bg);
  border-color: var(--glass-border-hover);
}

.mobile-cta {
  margin-top: 8px;
  text-align: center;
}

/* ——————————————————————————————————————————
   9. HERO SECTION
—————————————————————————————————————————— */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 25% 8%, rgba(245,197,66,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 20%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(2px 2px at 60% 5%, rgba(167,139,250,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 18%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 90% 12%, rgba(245,197,66,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 35%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 30%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(2px 2px at 80% 40%, rgba(167,139,250,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 45%, rgba(245,197,66,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 55%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 95% 55%, rgba(245,197,66,0.5) 0%, transparent 100%);
  animation: starsTwinkle 5s ease-in-out infinite alternate;
}

@keyframes starsTwinkle {
  0% { opacity: 0.8; }
  100% { opacity: 1; }
}

.hero-moon {
  position: absolute;
  top: 8%;
  right: 10%;
  width: 120px;
  height: 120px;
  animation: moonGlow 4s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 20px rgba(245, 197, 66, 0.4));
}

@keyframes moonGlow {
  0% { filter: drop-shadow(0 0 20px rgba(245, 197, 66, 0.3)); }
  100% { filter: drop-shadow(0 0 40px rgba(245, 197, 66, 0.6)); }
}

.hero-palace {
  position: absolute;
  bottom: 120px;
  left: 0;
  right: 0;
  height: 400px;
  opacity: 0.6;
  animation: palaceFade 6s ease-in-out infinite alternate;
}

@keyframes palaceFade {
  0% { opacity: 0.5; }
  100% { opacity: 0.7; }
}

.hero-dunes {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  animation: duneShift 8s ease-in-out infinite alternate;
}

@keyframes duneShift {
  0% { transform: scaleX(1); }
  100% { transform: scaleX(1.02); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(245, 197, 66, 0.1);
  border: 1px solid rgba(245, 197, 66, 0.3);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-gold);
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-start);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.6); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.4s both;
  text-shadow: 0 0 80px rgba(245, 197, 66, 0.15);
}

.hero-title-highlight {
  display: block;
  background: var(--premium-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  filter: drop-shadow(0 0 30px rgba(245, 197, 66, 0.3));
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 21px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  font-weight: 300;
  line-height: 1.6;
  animation: fadeInUp 0.6s ease 0.6s both;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeInUp 0.6s ease 0.8s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px 40px;
  animation: fadeInUp 0.6s ease 1s both;
  width: fit-content;
  margin: 0 auto;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
  flex-shrink: 0;
}

.hero-legal {
  position: absolute;
  bottom: 180px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
}

.hero-legal p {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  background: rgba(5, 3, 10, 0.7);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.06);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  animation: fadeInUp 0.6s ease 1.4s both;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-gold);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.5; }
}

.hero-scroll-indicator span {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ——————————————————————————————————————————
   10. GAME SECTION
—————————————————————————————————————————— */
.game-section {
  padding: var(--space-2xl) 0;
  position: relative;
  z-index: var(--z-base);
}

.game-section-full {
  padding-top: 40px;
}

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

.game-wrapper-full {
  max-width: 100%;
}

.game-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.game-card-inner {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  z-index: 1;
  transition: var(--transition-base);
  animation: borderGlow 4s ease-in-out infinite alternate;
}

.game-card:hover .game-card-inner {
  border-color: rgba(245, 197, 66, 0.4);
  transform: scale(1.001);
}

@keyframes borderGlow {
  0% { border-color: rgba(124, 58, 237, 0.2); box-shadow: 0 0 20px rgba(124, 58, 237, 0.1); }
  100% { border-color: rgba(245, 197, 66, 0.3); box-shadow: 0 0 40px rgba(245, 197, 66, 0.15); }
}

.game-card-glow {
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  background: var(--premium-gradient);
  z-index: 0;
  opacity: 0.15;
  filter: blur(12px);
  animation: borderGlowPulse 4s ease-in-out infinite alternate;
}

@keyframes borderGlowPulse {
  0% { opacity: 0.1; }
  100% { opacity: 0.25; }
}

.game-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(11, 15, 31, 0.6);
}

.game-title-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-badge-live {
  font-size: 11px;
  font-weight: 700;
  color: #4ade80;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.game-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.game-controls {
  display: flex;
  gap: 8px;
}

.game-ctrl-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-base);
  font-family: var(--font-body);
}

.game-ctrl-btn:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  color: var(--text-gold);
}

.game-ctrl-fullscreen {
  padding: 8px 12px;
}

.game-frame-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #05030a;
  overflow: hidden;
}

.game-frame-large {
  padding-top: 60%;
}

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

.game-frame-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.frame-corner {
  position: absolute;
  width: 20px;
  height: 20px;
}

.frame-corner-tl {
  top: 8px; left: 8px;
  border-top: 2px solid var(--gold-start);
  border-left: 2px solid var(--gold-start);
  border-top-left-radius: 4px;
  opacity: 0.7;
}

.frame-corner-tr {
  top: 8px; right: 8px;
  border-top: 2px solid var(--gold-start);
  border-right: 2px solid var(--gold-start);
  border-top-right-radius: 4px;
  opacity: 0.7;
}

.frame-corner-bl {
  bottom: 8px; left: 8px;
  border-bottom: 2px solid var(--gold-start);
  border-left: 2px solid var(--gold-start);
  border-bottom-left-radius: 4px;
  opacity: 0.7;
}

.frame-corner-br {
  bottom: 8px; right: 8px;
  border-bottom: 2px solid var(--gold-start);
  border-right: 2px solid var(--gold-start);
  border-bottom-right-radius: 4px;
  opacity: 0.7;
}

.game-footer-bar {
  padding: 20px 24px;
  border-top: 1px solid var(--glass-border);
  background: rgba(11, 15, 31, 0.4);
}

.game-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-tag {
  padding: 4px 14px;
  background: rgba(245, 197, 66, 0.08);
  border: 1px solid rgba(245, 197, 66, 0.2);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-gold);
  font-weight: 500;
}

/* ——————————————————————————————————————————
   11. FEATURES SECTION
—————————————————————————————————————————— */
.features-section {
  padding: var(--space-2xl) 0;
  position: relative;
  z-index: var(--z-base);
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 197, 66, 0.3), transparent);
}

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

.feature-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition-spring);
  overflow: hidden;
  cursor: default;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 197, 66, 0.25);
  box-shadow: var(--shadow-card-hover), var(--shadow-gold);
}

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

.feature-card-center {
  background: rgba(124, 58, 237, 0.05);
}

.feature-card-center:hover {
  border-color: rgba(167, 139, 250, 0.3);
  box-shadow: var(--shadow-card-hover), var(--shadow-purple);
}

.feature-icon-wrap {
  margin-bottom: 20px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.feature-card:hover .feature-icon {
  border-color: rgba(245, 197, 66, 0.3);
  box-shadow: 0 0 20px var(--gold-glow-soft);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-highlight {
  font-size: 12px;
  color: var(--text-gold);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ——————————————————————————————————————————
   12. CTA BANNER
—————————————————————————————————————————— */
.cta-banner {
  position: relative;
  padding: var(--space-xl) 0;
  overflow: hidden;
  z-index: var(--z-base);
}

.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(245, 197, 66, 0.1) 0%, transparent 40%);
  z-index: 0;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 197, 66, 0.4), rgba(124, 58, 237, 0.4), transparent);
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 197, 66, 0.4), rgba(124, 58, 237, 0.4), transparent);
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-ornament {
  font-size: 14px;
  color: var(--text-gold);
  letter-spacing: 0.3em;
  margin-bottom: 20px;
  opacity: 0.6;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  background: var(--premium-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  font-weight: 300;
}

.cta-legal {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ——————————————————————————————————————————
   13. FOOTER
—————————————————————————————————————————— */
.footer {
  position: relative;
  padding: var(--space-xl) 0 var(--space-lg);
  z-index: var(--z-base);
}

.footer-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 3, 10, 0.99) 0%, transparent 100%);
  pointer-events: none;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 197, 66, 0.2), transparent);
}

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

.footer-logo {
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 12px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}

.footer-nav-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-link {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: var(--transition-base);
}

.footer-link:hover {
  color: var(--text-gold);
  padding-left: 6px;
}

.footer-nav-col ul {
  display: flex;
  flex-direction: column;
}

.footer-rg-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.rg-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.rg-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}

.rg-link {
  font-size: 12px;
  color: var(--text-gold);
  font-weight: 600;
  transition: var(--transition-base);
}

.rg-link:hover {
  color: var(--gold-start);
}

.footer-age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(249, 115, 22, 0.15);
  border: 2px solid rgba(249, 115, 22, 0.4);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #fb923c;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-simple {
  flex-direction: column;
  text-align: center;
  gap: 16px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-copy-legal {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
}

.footer-copy-link {
  color: var(--text-gold);
  transition: var(--transition-base);
}

.footer-copy-link:hover {
  color: var(--gold-start);
}

/* ——————————————————————————————————————————
   14. PAGE HERO (INNER PAGES)
—————————————————————————————————————————— */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 0%, rgba(245, 197, 66, 0.07) 0%, transparent 50%);
  pointer-events: none;
}

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

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  background: var(--premium-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.page-hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  font-weight: 300;
}

.game-page-hero {
  padding-bottom: 0;
}

/* ——————————————————————————————————————————
   15. GAME PAGE MINI FEATURES
—————————————————————————————————————————— */
.game-mini-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.game-mini-feature {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition-base);
}

.game-mini-feature:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
}

.gmf-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 12px;
}

.game-mini-feature h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.game-mini-feature p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ——————————————————————————————————————————
   16. HOW TO PLAY SECTION
—————————————————————————————————————————— */
.how-to-section {
  padding: var(--space-xl) 0;
}

.how-to-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
}

.how-to-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.how-to-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.how-to-card:hover {
  border-color: rgba(245, 197, 66, 0.25);
  transform: translateY(-3px);
}

.how-to-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 12px;
}

.how-to-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.how-to-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ——————————————————————————————————————————
   17. ABOUT PAGE
—————————————————————————————————————————— */
.about-section {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 80px;
}

.about-block {
  margin-bottom: 48px;
}

.about-ornament {
  font-size: 18px;
  color: var(--text-gold);
  margin-bottom: 12px;
  opacity: 0.7;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.about-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-visual {
  display: flex;
  justify-content: center;
  position: sticky;
  top: 120px;
}

.about-palace-card {
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 60px rgba(245, 197, 66, 0.1);
  border: 1px solid var(--glass-border);
  animation: aboutPalaceGlow 4s ease-in-out infinite alternate;
}

@keyframes aboutPalaceGlow {
  0% { box-shadow: var(--shadow-card), 0 0 40px rgba(245, 197, 66, 0.08); }
  100% { box-shadow: var(--shadow-card-hover), 0 0 60px rgba(245, 197, 66, 0.18); }
}

.values-section {
  border-top: 1px solid var(--glass-border);
  padding-top: 80px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition-base);
}

.value-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.value-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 16px;
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ——————————————————————————————————————————
   18. CONTACT PAGE
—————————————————————————————————————————— */
.contact-section {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.contact-info-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cd-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-detail p {
  font-size: 14px;
  color: var(--text-secondary);
}

.contact-rg-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 20px;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: var(--radius-md);
}

.contact-rg-notice span {
  font-size: 18px;
  flex-shrink: 0;
}

.contact-rg-notice p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-form-wrap {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 28px;
}

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.required {
  color: #f87171;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-body);
  transition: var(--transition-base);
  outline: none;
  -webkit-appearance: none;
}

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

.form-input:focus {
  border-color: rgba(245, 197, 66, 0.4);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.08);
}

.form-select {
  cursor: pointer;
}

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

.form-error {
  display: block;
  font-size: 12px;
  color: #f87171;
  margin-top: 6px;
  min-height: 18px;
}

.form-checkbox-group {
  margin-bottom: 24px;
}

.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
}

.form-checkbox {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  flex-shrink: 0;
  transition: var(--transition-base);
  position: relative;
}

.form-checkbox:checked + .checkbox-custom {
  background: var(--gold-gradient);
  border-color: var(--gold-start);
}

.form-checkbox:checked + .checkbox-custom::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #1a0f00;
  font-weight: 700;
}

.form-success {
  margin-top: 16px;
  padding: 16px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: #4ade80;
  text-align: center;
  display: none;
}

.form-success[aria-hidden="false"] {
  display: block;
}

/* ——————————————————————————————————————————
   19. LEGAL PAGES
—————————————————————————————————————————— */
.legal-section {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.legal-content {
  max-width: 860px;
  margin: 0 auto;
}

.legal-notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: var(--radius-md);
  margin-bottom: 48px;
}

.legal-notice-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.legal-notice p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-block {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--glass-border);
}

.legal-block:last-child {
  border-bottom: none;
}

.legal-block h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.legal-block h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 20px 0 10px;
}

.legal-block p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-list {
  padding-left: 20px;
  margin: 12px 0;
}

.legal-list li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-list li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--text-gold);
  opacity: 0.6;
}

.rg-habits-list li::before {
  display: none;
}

.text-gold {
  color: var(--text-gold);
  transition: var(--transition-base);
}

.text-gold:hover {
  color: var(--gold-start);
}

/* ——————————————————————————————————————————
   20. RESPONSIBLE GAMING PAGE
—————————————————————————————————————————— */
.rg-hero-notice {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 28px 32px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-lg);
  margin-bottom: 60px;
}

.rg-shield {
  font-size: 48px;
  flex-shrink: 0;
}

.rg-hero-notice h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.rg-hero-notice p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.rg-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.rg-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  transition: var(--transition-base);
}

.rg-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
}

.rg-card-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 16px;
}

.rg-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.rg-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.rg-contact-notice {
  margin-top: 48px;
  padding: 40px;
  background: rgba(245, 197, 66, 0.05);
  border: 1px solid rgba(245, 197, 66, 0.2);
  border-radius: var(--radius-lg);
  text-align: center;
}

.rg-contact-notice h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.rg-contact-notice p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ——————————————————————————————————————————
   21. MODAL
—————————————————————————————————————————— */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 3, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-secondary);
  border: 1px solid rgba(245, 197, 66, 0.2);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 560px;
  width: 100%;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: var(--transition-spring);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-base);
}

.modal-close:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
  border-color: rgba(245, 197, 66, 0.3);
}

.modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.modal-ornament {
  font-size: 20px;
  color: var(--text-gold);
  margin-bottom: 12px;
  opacity: 0.7;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.how-to-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
  list-style: none;
}

.how-to-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.5;
  flex-shrink: 0;
  line-height: 1.2;
}

.how-to-list li strong {
  display: block;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.how-to-list li p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-legal {
  padding: 16px;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: var(--radius-sm);
}

.modal-legal p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ——————————————————————————————————————————
   22. ANIMATIONS
—————————————————————————————————————————— */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeInUp 0.6s ease both;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

/* ——————————————————————————————————————————
   23. SCROLLBAR
—————————————————————————————————————————— */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(245, 197, 66, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 197, 66, 0.5);
}

/* ——————————————————————————————————————————
   24. SELECTION
—————————————————————————————————————————— */
::selection {
  background: rgba(245, 197, 66, 0.25);
  color: var(--text-primary);
}

/* ——————————————————————————————————————————
   25. UTILITY CLASSES
—————————————————————————————————————————— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ——————————————————————————————————————————
   26. RESPONSIVE — TABLET (max 1024px)
—————————————————————————————————————————— */
@media (max-width: 1024px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual {
    position: static;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .game-mini-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-to-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rg-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats {
    padding: 16px 24px;
  }

  .hero-stat {
    padding: 0 20px;
  }
}

/* ——————————————————————————————————————————
   27. RESPONSIVE — MOBILE (max 768px)
—————————————————————————————————————————— */
@media (max-width: 768px) {
  :root {
    --space-2xl: 80px;
    --space-xl: 60px;
  }

  .header {
    top: 8px;
    width: calc(100% - 24px);
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
    min-height: auto;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    padding: 16px 20px;
    width: 100%;
    max-width: 340px;
  }

  .hero-stat {
    padding: 0 14px;
  }

  .stat-num {
    font-size: 22px;
  }

  .hero-moon {
    width: 80px;
    height: 80px;
    top: 5%;
    right: 5%;
  }

  .hero-legal {
    bottom: 120px;
    padding: 0 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: flex-start;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .game-mini-features {
    grid-template-columns: 1fr;
  }

  .how-to-grid {
    grid-template-columns: 1fr;
  }

  .rg-cards {
    grid-template-columns: 1fr;
  }

  .rg-hero-notice {
    flex-direction: column;
    text-align: center;
  }

  .contact-form-wrap {
    padding: 24px 20px;
  }

  .modal-box {
    padding: 28px 20px;
  }

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

  .game-frame-container {
    padding-top: 70%;
  }

  .game-frame-large {
    padding-top: 75%;
  }

  .hero-palace {
    bottom: 80px;
    opacity: 0.4;
  }

  .lanterns {
    display: none;
  }

  .footer-bottom-simple {
    align-items: center;
  }

  .hero-legal {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
  }

  .hero-legal p {
    font-size: 10px;
    padding: 6px 12px;
  }
}

/* ——————————————————————————————————————————
   28. RESPONSIVE — SMALL MOBILE (max 480px)
—————————————————————————————————————————— */
@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px;
  }

  .hero-stat-divider {
    width: 80px;
    height: 1px;
  }

  .page-hero {
    padding: 120px 0 60px;
  }

  .legal-notice {
    flex-direction: column;
  }

  .nav {
    padding: 12px 20px;
  }
}

/* ——————————————————————————————————————————
   29. PRINT STYLES
—————————————————————————————————————————— */
@media print {
  .header,
  .particles,
  .lanterns,
  .hero-bg,
  .footer-bg,
  .cta-bg {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}