:root {
  --bg-primary: #020203;
  --bg-secondary: #0a0b12;
  --glass-bg: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.08);
  --glass-blur: blur(20px);
  --gloss: linear-gradient(180deg, rgba(255,255,255,0.08), transparent);
  --accent-purple: linear-gradient(135deg, #7c3aed, #a855f7);
  --accent-blue: linear-gradient(135deg, #3b82f6, #06b6d4);
  --accent-gold: linear-gradient(135deg, #facc15, #f59e0b);
  --purple-solid: #7c3aed;
  --blue-solid: #3b82f6;
  --gold-solid: #facc15;
  --glow-purple: rgba(124,58,237,0.4);
  --glow-blue: rgba(59,130,246,0.35);
  --glow-gold: rgba(250,204,21,0.35);
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #6b7280;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --max-width: 1280px;
  --spacing-desktop: 120px;
  --spacing-tablet: 80px;
  --spacing-mobile: 60px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}

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

ul { list-style: none; }

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ========================
   CURSOR GLOW
   ======================== */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  will-change: left, top;
}

/* ========================
   COSMIC BACKGROUND
   ======================== */
.cosmic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.cosmic-bg .nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  animation: nebulaFloat 20s ease-in-out infinite;
}

.cosmic-bg .nebula-1 {
  width: 600px;
  height: 600px;
  background: var(--glow-purple);
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}

.cosmic-bg .nebula-2 {
  width: 500px;
  height: 500px;
  background: var(--glow-blue);
  bottom: -150px;
  left: -150px;
  animation-delay: -7s;
}

.cosmic-bg .nebula-3 {
  width: 400px;
  height: 400px;
  background: var(--glow-gold);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.15;
  animation-delay: -14s;
}

@keyframes nebulaFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 30px) scale(0.95); }
  75% { transform: translate(20px, 20px) scale(1.02); }
}

/* ========================
   PARTICLES
   ======================== */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-solid);
  opacity: 0;
  animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

/* ========================
   FLOATING SIDE NAV
   ======================== */
.side-nav {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 16px 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-nav::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(180deg, rgba(124,58,237,0.3), rgba(59,130,246,0.1), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.side-nav .nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--text-muted);
  font-size: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.side-nav .nav-item:hover {
  color: var(--text-primary);
  background: rgba(124,58,237,0.15);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px var(--glow-purple);
}

.side-nav .nav-item.active {
  color: #a855f7;
  background: rgba(124,58,237,0.2);
  box-shadow: 0 0 20px var(--glow-purple);
}

.side-nav .nav-item .tooltip {
  position: absolute;
  left: calc(100% + 16px);
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px);
  transition: all 0.3s ease;
  backdrop-filter: var(--glass-blur);
}

.side-nav .nav-item:hover .tooltip {
  opacity: 1;
  transform: translateX(0);
}

.side-nav .nav-icon {
  transition: transform 0.3s ease;
}

.side-nav .nav-item:hover .nav-icon {
  transform: translateY(-2px);
  animation: runeShimmer 1.5s ease-in-out infinite;
}

@keyframes runeShimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.5) drop-shadow(0 0 8px rgba(168,85,247,0.6)); }
}

/* ========================
   TOP HEADER
   ======================== */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s ease;
}

.top-header.scrolled {
  background: rgba(2,2,3,0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 24px var(--glow-purple);
  position: relative;
  overflow: hidden;
}

.logo-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gloss);
  border-radius: inherit;
}

.logo-text {
  background: linear-gradient(135deg, #f9fafb, #d1d5db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.btn-play-now {
  position: relative;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  background: var(--accent-purple);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 24px var(--glow-purple);
}

.btn-play-now::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gloss);
  pointer-events: none;
}

.btn-play-now::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-play-now:hover::after {
  transform: rotate(45deg) translateX(100%);
}

.btn-play-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--glow-purple);
}

.btn-play-now:active {
  transform: translateY(1px) scale(0.98);
}

.btn-play-now .sparkle {
  margin-right: 6px;
}

/* ========================
   MOBILE MENU
   ======================== */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: rgba(10,11,18,0.95);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  padding: 12px 0 max(12px, env(safe-area-inset-bottom));
}

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

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.mobile-nav-item .mobile-nav-icon {
  font-size: 22px;
  transition: transform 0.3s ease;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: #a855f7;
  background: rgba(124,58,237,0.1);
}

.mobile-nav-item.active .mobile-nav-icon,
.mobile-nav-item:hover .mobile-nav-icon {
  transform: translateY(-2px);
}

/* ========================
   HERO SECTION
   ======================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

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

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(124,58,237,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 30% 60%, rgba(59,130,246,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 70% 30%, rgba(250,204,21,0.06) 0%, transparent 60%);
  animation: gradientShift 12s ease-in-out infinite;
}

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

.floating-books {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.floating-book {
  position: absolute;
  font-size: 40px;
  opacity: 0.25;
  animation: bookFloat 12s ease-in-out infinite;
  filter: drop-shadow(0 0 12px var(--glow-purple));
}

.floating-book:nth-child(1) { top: 15%; left: 8%; animation-delay: 0s; font-size: 48px; }
.floating-book:nth-child(2) { top: 25%; right: 10%; animation-delay: -3s; font-size: 36px; }
.floating-book:nth-child(3) { bottom: 30%; left: 15%; animation-delay: -6s; font-size: 44px; }
.floating-book:nth-child(4) { bottom: 20%; right: 12%; animation-delay: -9s; font-size: 32px; }
.floating-book:nth-child(5) { top: 50%; left: 5%; animation-delay: -2s; font-size: 28px; }
.floating-book:nth-child(6) { top: 40%; right: 5%; animation-delay: -5s; font-size: 38px; }

@keyframes bookFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(3deg); }
  50% { transform: translateY(-8px) rotate(-2deg); }
  75% { transform: translateY(-25px) rotate(4deg); }
}

.hero-runes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.rune {
  position: absolute;
  font-size: 28px;
  opacity: 0;
  animation: runeGlow 5s ease-in-out infinite;
}

.rune:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.rune:nth-child(2) { top: 60%; right: 18%; animation-delay: -1.5s; }
.rune:nth-child(3) { bottom: 25%; left: 25%; animation-delay: -3s; }
.rune:nth-child(4) { top: 35%; right: 30%; animation-delay: -4.5s; }

@keyframes runeGlow {
  0%, 100% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 0.4; transform: scale(1.1); filter: drop-shadow(0 0 16px var(--glow-gold)); }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34,197,94,0.6);
  animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, #a855f7, #3b82f6, #facc15);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: gradientText 4s ease-in-out infinite;
}

@keyframes gradientText {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  background: var(--accent-purple);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 30px var(--glow-purple);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gloss);
  pointer-events: none;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  transform: rotate(45deg) translateX(-150%);
  transition: transform 0.7s ease;
}

.btn-primary:hover::after {
  transform: rotate(45deg) translateX(150%);
}

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

.btn-primary:active {
  transform: translateY(1px) scale(0.97);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(255,255,255,0.08);
}

.btn-secondary:active {
  transform: translateY(1px) scale(0.97);
}

.hero-legal {
  margin-top: 48px;
  font-size: 12px;
  color: var(--text-muted);
  animation: fadeInUp 0.8s ease-out 1s both;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  animation: fadeInUp 0.8s ease-out 1.2s both;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--purple-solid), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, #a855f7, transparent);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* ========================
   SECTION GENERAL
   ======================== */
.section {
  position: relative;
  z-index: 10;
  padding: var(--spacing-desktop) 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #a855f7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================
   GAME SECTION
   ======================== */
.game-section {
  padding: var(--spacing-desktop) 0;
}

.game-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-wrapper::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(124,58,237,0.4), rgba(59,130,246,0.2), rgba(250,204,21,0.2), rgba(124,58,237,0.4));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderGlow 6s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes borderGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.game-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 0 60px var(--glow-purple), 0 0 120px rgba(124,58,237,0.15);
}

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  z-index: 2;
}

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

.game-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 20px var(--glow-purple);
  position: relative;
}

.game-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gloss);
}

.game-title-text h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.game-title-text p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

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

.game-control-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
}

.game-control-btn:hover {
  background: rgba(124,58,237,0.2);
  color: #a855f7;
  border-color: rgba(124,58,237,0.3);
  box-shadow: 0 0 16px var(--glow-purple);
}

.game-frame-container {
  position: relative;
  width: 100%;
  padding-top: 62%;
  background: var(--bg-primary);
  z-index: 2;
}

.game-frame-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.game-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
  gap: 12px;
}

.game-info-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.game-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.game-tag .tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.tag-dot.purple { background: #a855f7; box-shadow: 0 0 8px var(--glow-purple); }
.tag-dot.blue { background: #3b82f6; box-shadow: 0 0 8px var(--glow-blue); }
.tag-dot.gold { background: #facc15; box-shadow: 0 0 8px var(--glow-gold); }

.btn-how-to-play {
  padding: 10px 24px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
}

.btn-how-to-play:hover {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.3);
  box-shadow: 0 0 20px var(--glow-purple);
}

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

.feature-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gloss);
  pointer-events: none;
  border-radius: inherit;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.04) 50%, transparent 60%);
  transform: rotate(45deg) translateX(-200%);
  transition: transform 0.8s ease;
}

.feature-card:hover::after {
  transform: rotate(45deg) translateX(200%);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(124,58,237,0.3);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 40px var(--glow-purple);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  position: relative;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) translateY(-4px);
}

.feature-icon.purple {
  background: rgba(124,58,237,0.15);
  box-shadow: 0 0 24px var(--glow-purple);
}

.feature-icon.blue {
  background: rgba(59,130,246,0.15);
  box-shadow: 0 0 24px var(--glow-blue);
}

.feature-icon.gold {
  background: rgba(250,204,21,0.15);
  box-shadow: 0 0 24px var(--glow-gold);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

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

/* ========================
   BENEFITS SECTION
   ======================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 32px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gloss);
  pointer-events: none;
  border-radius: inherit;
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59,130,246,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 24px var(--glow-blue);
}

.benefit-number {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 14px;
  background: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 0 20px var(--glow-blue);
  position: relative;
}

.benefit-number::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gloss);
}

.benefit-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* ========================
   CTA SECTION
   ======================== */
.cta-section {
  padding: var(--spacing-desktop) 0;
}

.cta-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 80px 48px;
  text-align: center;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(124,58,237,0.1) 0%, transparent 60%),
    var(--gloss);
  pointer-events: none;
}

.cta-card h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  position: relative;
}

.cta-card p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 32px;
  position: relative;
}

.cta-card .btn-primary {
  position: relative;
}

/* ========================
   FOOTER
   ======================== */
.footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--glass-border);
  padding: 64px 0 32px;
}

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

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

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: #a855f7;
  padding-left: 4px;
}

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

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

.footer-legal-links {
  display: flex;
  gap: 24px;
}

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

.footer-legal-links a:hover {
  color: #a855f7;
}

.footer-disclaimer {
  text-align: center;
  padding: 24px 0 0;
  border-top: 1px solid var(--glass-border);
  margin-top: 24px;
}

.footer-disclaimer p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

/* ========================
   MODAL
   ======================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,2,3,0.8);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(239,68,68,0.2);
  border-color: rgba(239,68,68,0.3);
  color: #ef4444;
}

.modal h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.modal .step {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.modal .step-num {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 12px;
  background: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  position: relative;
}

.modal .step-num::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gloss);
}

.modal .step h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

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

/* ========================
   INNER PAGE HERO
   ======================== */
.page-hero {
  position: relative;
  z-index: 10;
  padding: 160px 0 80px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========================
   LEGAL CONTENT
   ======================== */
.legal-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 120px;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 48px 0 16px;
  letter-spacing: -0.02em;
}

.legal-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 32px 0 12px;
}

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

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content ul li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

/* ========================
   ABOUT PAGE
   ======================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}

.about-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

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

.about-visual {
  position: relative;
  height: 380px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(124,58,237,0.1) 0%, transparent 60%);
}

.about-visual .big-icon {
  font-size: 120px;
  opacity: 0.6;
  animation: bookFloat 8s ease-in-out infinite;
  filter: drop-shadow(0 0 40px var(--glow-purple));
}

/* ========================
   CONTACT PAGE
   ======================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

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

.contact-form::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gloss);
  pointer-events: none;
  border-radius: inherit;
}

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

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

.form-group input,
.form-group textarea {
  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: inherit;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 0 20px var(--glow-purple);
  background: rgba(255,255,255,0.06);
}

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

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gloss);
  pointer-events: none;
  border-radius: inherit;
}

.contact-info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,58,237,0.3);
  box-shadow: 0 8px 32px var(--glow-purple);
}

.contact-info-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 16px;
  background: rgba(124,58,237,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 0 20px var(--glow-purple);
}

.contact-info-text h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

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

/* ========================
   SCROLL ANIMATIONS
   ======================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ========================
   GLASS SHIMMER
   ======================== */
@keyframes glassShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
  .side-nav { display: none; }
  .mobile-nav { display: block; }
  .mobile-menu-btn { display: flex; }

  .section { padding: var(--spacing-tablet) 0; }
  .game-section { padding: var(--spacing-tablet) 0; }
  .cta-section { padding: var(--spacing-tablet) 0; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  body { padding-bottom: 80px; }
}

@media (max-width: 768px) {
  .section { padding: var(--spacing-mobile) 0; }
  .game-section { padding: var(--spacing-mobile) 0; }
  .cta-section { padding: var(--spacing-mobile) 0; }

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

  .hero { min-height: auto; padding: 140px 24px 80px; }
  .hero h1 { font-size: 2.2rem; }

  .game-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .game-frame-container { padding-top: 75%; }
  .game-footer { flex-direction: column; align-items: flex-start; }

  .hero-cta-group { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }

  .cta-card { padding: 48px 24px; }

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

@media (max-width: 480px) {
  .top-header { padding: 12px 16px; }
  .logo { font-size: 16px; }
  .logo-icon { width: 36px; height: 36px; font-size: 18px; }
  .btn-play-now { padding: 10px 20px; font-size: 13px; }
  .hero h1 { font-size: 1.8rem; }
  .section-title { font-size: 1.6rem; }
}

/* ========================
   UTILITIES
   ======================== */
.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}