/* ═══════════════════════════════════════════════════════════
   СУПЕРГЛАЗКА — Landing Page 2025
   Modern Glassmorphism + Neon + Fluid Motion
   ═══════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
  --bg-primary: #1a0b2e;
  --bg-secondary: #2e1065;
  --bg-glass: rgba(255, 255, 255, 0.06);
  --bg-glass-strong: rgba(255, 255, 255, 0.12);
  --neon-purple: #c084fc;
  --neon-cyan: #e879f9;
  --neon-pink: #ec4899;
  --neon-amber: #f472b6;
  --neon-green: #22c55e;
  --gradient-primary: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
  --gradient-hero: linear-gradient(135deg, #9333ea, #e879f9, #f472b6);
  --shadow-neon-purple: 0 0 30px rgba(192, 132, 252, 0.4);
  --shadow-neon-cyan: 0 0 30px rgba(232, 121, 249, 0.4);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
img, picture img { max-width: 100%; height: auto; display: block; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── PARTICLE CANVAS ─── */
#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ─── NAVIGATION ─── */
.land-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(26, 11, 46, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s var(--ease-smooth);
}

.land-nav.scrolled {
  background: rgba(26, 11, 46, 0.9);
  padding: 12px 32px;
}

.land-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.land-logo-pretitle {
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.theme-light .land-logo-pretitle {
  color: rgba(0,0,0,0.5);
}
.land-logo-title {
  font-family: 'Comfortaa', cursive;
  font-size: 18px;
  font-weight: 700;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

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

.land-nav-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.land-nav-links a:hover { color: var(--neon-cyan); }

.land-nav-cta {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(147, 51, 234, 0.4);
  transition: all 0.2s var(--ease-spring);
}

.land-nav-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(232, 121, 249, 0.5);
}

.land-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* ─── HERO SECTION ─── */
.land-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 40px;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(147, 51, 234, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(232, 121, 249, 0.2) 0%, transparent 50%),
    var(--bg-primary);
  overflow: hidden;
}

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

.land-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: 32px;
  animation: fadeInDown 0.8s var(--ease-smooth) both;
}

.land-hero-title {
  font-family: 'Comfortaa', cursive;
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 700;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 50px rgba(192, 132, 252, 0.5));
  letter-spacing: 4px;
  line-height: 1.05;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s var(--ease-smooth) 0.2s both;
}

.land-hero-sub {
  font-size: clamp(15px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.5;
  letter-spacing: 0.5px;
  animation: fadeInUp 0.8s var(--ease-smooth) 0.35s both;
}

.land-hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-smooth) 0.5s both;
}

.land-btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 18px 40px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 30px rgba(192, 132, 252, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transition: all 0.2s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.land-btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.land-btn-primary:hover::before { transform: translateX(100%); }
.land-btn-primary:hover { transform: scale(1.05); box-shadow: 0 6px 40px rgba(192, 132, 252, 0.6); }
.land-btn-primary:active { transform: scale(0.98); }

.land-btn-secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  padding: 18px 40px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s var(--ease-spring);
}

.land-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.land-hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: fadeIn 1s var(--ease-smooth) 1s both, hintFloat 2s ease-in-out infinite 1.5s;
  cursor: pointer;
  text-decoration: none;
}

.land-hero-scroll svg {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

/* ─── SECTIONS COMMON ─── */
.land-section {
  position: relative;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.land-section-title {
  font-family: 'Comfortaa', cursive;
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.land-section-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  max-width: 560px;
  margin-bottom: 60px;
}

/* ─── ABOUT SECTION ─── */
.land-about {
  background:
    radial-gradient(ellipse at 10% 50%, rgba(147, 51, 234, 0.15) 0%, transparent 40%),
    radial-gradient(ellipse at 90% 50%, rgba(232, 121, 249, 0.1) 0%, transparent 40%),
    var(--bg-primary);
}

.land-about-card {
  max-width: 780px;
  width: 100%;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s var(--ease-smooth);
}

.land-about-card.revealed {
  transform: translateY(0);
  opacity: 1;
}

.land-about-card p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 16px;
  text-align: center;
}

.land-about-card p:last-child { margin-bottom: 0; }

.land-about-highlight {
  color: var(--neon-cyan);
  font-weight: 700;
}

/* ─── FEATURES SECTION ─── */
.land-features {
  background: var(--bg-secondary);
}

.land-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px;
  width: 100%;
}

.land-feature-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  transition: all 0.3s var(--ease-spring);
  transform: translateY(30px);
  opacity: 0;
}

.land-feature-card.revealed {
  transform: translateY(0);
  opacity: 1;
}

.land-feature-card:nth-child(1) { transition-delay: 0s; }
.land-feature-card:nth-child(2) { transition-delay: 0.1s; }
.land-feature-card:nth-child(3) { transition-delay: 0.2s; }
.land-feature-card:nth-child(4) { transition-delay: 0.3s; }

.land-feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(192, 132, 252, 0.4);
  box-shadow: var(--shadow-neon-purple);
}

/* ─── GAMES SECTION ─── */
.land-games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 960px;
  width: 100%;
}

.land-game-card {
  cursor: pointer;
  display: block;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s var(--ease-spring);
  transform: translateY(30px);
  opacity: 0;
  cursor: pointer;
}

.land-game-card.revealed {
  transform: translateY(0);
  opacity: 1;
}

.land-game-card:nth-child(1) { transition-delay: 0s; }
.land-game-card:nth-child(2) { transition-delay: 0.1s; }
.land-game-card:nth-child(3) { transition-delay: 0.2s; }
.land-game-card:nth-child(4) { transition-delay: 0.3s; }

.land-game-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(192, 132, 252, 0.4);
  box-shadow: var(--shadow-neon-purple);
}

.land-game-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.land-game-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}

.land-game-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: 24px;
}

.land-game-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--gradient-primary);
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  transition: transform 0.2s var(--ease-spring);
}

.land-game-card:hover .land-game-btn {
  transform: scale(1.05);
}

.land-feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(192, 132, 252, 0.3);
}

.land-feature-title {
  font-family: 'Comfortaa', cursive;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.land-feature-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

/* ─── WAVE DIVIDERS ─── */
.wave-divider {
  display: block;
  width: 100%;
  height: 60px;
  background: var(--bg-primary);
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ─── EPISODES SECTION ─── */
.land-episodes {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(192, 132, 252, 0.1) 0%, transparent 50%),
    var(--bg-primary);
}

.land-episodes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1000px;
  width: 100%;
}

.land-episode-card {
  position: relative;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s var(--ease-spring);
  transform: translateY(30px);
  opacity: 0;
}

.land-episode-card.revealed {
  transform: translateY(0);
  opacity: 1;
}

.land-episode-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(192, 132, 252, 0.4);
  box-shadow: var(--shadow-neon-purple);
}

.land-episode-card.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.land-episode-card.locked:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.land-episode-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.land-episode-body {
  padding: 24px;
}

.land-episode-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--neon-amber);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.land-episode-name {
  font-family: 'Comfortaa', cursive;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.land-episode-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  margin-bottom: 20px;
}

.land-episode-btn {
  display: inline-block;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(147, 51, 234, 0.4);
  transition: all 0.2s var(--ease-spring);
}

.land-episode-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(232, 121, 249, 0.5);
}

.land-episode-lock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

.land-episode-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ─── CHARACTERS SECTION ─── */
.land-characters {
  background: var(--bg-secondary);
}

/* Tabs */
.char-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  background: rgba(255,255,255,0.05);
  padding: 6px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.08);
}

.char-tab {
  background: transparent;
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.char-tab:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.char-tab.active {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(192,132,252,0.35);
}

/* Panels */
.char-panels {
  width: 100%;
  max-width: 1200px;
}

.char-panel {
  display: none;
}

.char-panel.active {
  display: block;
}

/* Grid */
.char-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
}

@media (max-width: 1024px) {
  .char-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .char-grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  .char-tabs { width: 100%; max-width: 340px; justify-content: center; }
}

/* Card */
.char-card {
  position: relative;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s var(--ease-smooth);
  display: flex;
  flex-direction: column;
}

.char-card.revealed {
  transform: translateY(0);
  opacity: 1;
}

.char-card:nth-child(1) { transition-delay: 0s; }
.char-card:nth-child(2) { transition-delay: 0.08s; }
.char-card:nth-child(3) { transition-delay: 0.16s; }
.char-card:nth-child(4) { transition-delay: 0.24s; }
.char-card:nth-child(5) { transition-delay: 0.32s; }
.char-card:nth-child(6) { transition-delay: 0.40s; }

.char-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.char-card:hover .char-card-img-wrap img {
  transform: scale(1.08);
}

.char-card.villain {
  border-color: rgba(239,68,68,0.15);
}

.char-card.villain:hover {
  border-color: rgba(239,68,68,0.35);
  box-shadow: 0 20px 50px rgba(220,38,38,0.15);
}

.char-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
}

.char-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease-smooth);
}

.char-card-body {
  padding: 20px 18px 18px;
  text-align: center;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.25));
}

.char-card-name {
  font-family: 'Comfortaa', cursive;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
}

.char-card-role {
  font-size: 13px;
  color: var(--neon-cyan);
  font-weight: 700;
  margin-bottom: 10px;
}

.char-card-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.3s var(--ease-spring);
}

.char-card:hover .char-card-hint {
  opacity: 1;
  transform: translateY(0);
}

.char-card-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-color, #c084fc) 0%, transparent 70%);
  opacity: 0.15;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s;
}

.char-card:hover .char-card-glow {
  opacity: 0.35;
}

/* Character Modal */
.char-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.char-modal-backdrop.visible {
  display: flex;
}

.char-modal {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: linear-gradient(145deg, rgba(30,15,60,0.95), rgba(15,8,35,0.98));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.05) inset;
  display: flex;
  flex-direction: column;
}

.char-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.char-modal-close:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

.char-modal-layout {
  display: flex;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}

.char-modal-visual {
  position: relative;
  width: 45%;
  min-height: 400px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.char-modal-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(192,132,252,0.15), transparent 60%);
}

.char-modal-img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}

.char-modal-frame {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(15,8,35,1), transparent);
  z-index: 3;
  pointer-events: none;
}

.char-modal-info {
  flex: 1;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.char-modal-name {
  font-family: 'Comfortaa', cursive;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.char-modal-role {
  font-size: 14px;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.char-modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.char-modal-badge {
  padding: 6px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

.char-modal-desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
}

.char-modal-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
}

.char-modal-stat {
  display: grid;
  grid-template-columns: 90px 1fr 36px;
  align-items: center;
  gap: 12px;
}

.char-modal-stat-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.char-modal-stat-bar-wrap {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 50px;
  overflow: hidden;
}

.char-modal-stat-bar {
  height: 100%;
  width: var(--stat-width);
  background: var(--gradient-primary);
  border-radius: 50px;
  transition: width 0.8s var(--ease-smooth);
}

.char-modal-stat-value {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-align: right;
}

@media (max-width: 768px) {
  .char-modal-layout {
    flex-direction: column;
  }
  .char-modal-visual {
    width: 100%;
    min-height: 240px;
    max-height: 320px;
  }
  .char-modal-img {
    max-height: 320px;
    max-width: 100%;
  }
  .char-modal-info {
    padding: 24px 20px;
  }
  .char-modal-stat {
    grid-template-columns: 80px 1fr 32px;
  }
}

@media (max-width: 480px) {
  .char-modal-visual {
    min-height: 200px;
    max-height: 280px;
  }
  .char-modal-img {
    max-height: 260px;
    max-width: 100%;
  }
}

/* ─── ARTIFACTS SECTION ─── */
.land-artifacts {
  background: var(--bg-primary);
}

.land-artifacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  width: 100%;
}

.land-artifact-card {
  text-align: center;
  padding: 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 20px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s var(--ease-smooth);
}

.land-artifact-card.revealed {
  transform: translateY(0);
  opacity: 1;
}

.land-artifact-card:nth-child(1) { transition-delay: 0s; }
.land-artifact-card:nth-child(2) { transition-delay: 0.1s; }
.land-artifact-card:nth-child(3) { transition-delay: 0.2s; }
.land-artifact-card:nth-child(4) { transition-delay: 0.3s; }
.land-artifact-card:nth-child(5) { transition-delay: 0.4s; }
.land-artifact-card:nth-child(6) { transition-delay: 0.5s; }

.land-artifact-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 8px 40px rgba(124, 58, 237, 0.2);
  transform: translateY(-4px);
}

.land-artifact-card.revealed:hover {
  transform: translateY(-4px);
}

.land-artifact-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(6,182,212,0.15));
  border-radius: 16px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  transition: all 0.3s var(--ease-spring);
}

.land-artifact-card:hover .land-artifact-icon {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(192, 132, 252, 0.3);
}

.land-artifact-name {
  font-family: 'Comfortaa', cursive;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.land-artifact-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .land-artifacts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .land-artifacts-grid { grid-template-columns: 1fr; max-width: 300px; }
}

/* ─── CTA SECTION ─── */
.land-cta {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(147, 51, 234, 0.2) 0%, transparent 60%),
    var(--bg-primary);
  padding: 80px 24px;
  text-align: center;
}

.land-cta-title {
  font-family: 'Comfortaa', cursive;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.land-cta-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 40px;
}

.land-cta-badges {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.land-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}

/* ─── FOOTER ─── */
.land-footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 32px 24px;
  text-align: center;
}

.land-footer p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
}

.land-footer-heart {
  color: var(--neon-pink);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hintFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 30px rgba(192, 132, 252, 0.4)); }
  50% { filter: drop-shadow(0 0 50px rgba(232, 121, 249, 0.5)); }
}

/* ─── COOKIE BANNER ─── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,6,24,0.96);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 14px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  transform: translateY(100%);
  transition: transform .4s var(--ease-spring);
  font-family: 'Nunito', sans-serif;
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner-text {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}
.cookie-banner-text a {
  color: #c084fc;
  text-decoration: underline;
}
.cookie-banner-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, #c084fc, #e879f9);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .25s var(--ease-spring);
  flex-shrink: 0;
}
.cookie-banner-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(192,132,252,0.3);
}
.theme-light .cookie-banner {
  background: rgba(255,255,255,0.96);
  border-color: rgba(0,0,0,0.08);
}
.theme-light .cookie-banner-text {
  color: rgba(0,0,0,0.75);
}
@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 14px 16px;
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .land-features-grid { grid-template-columns: repeat(2, 1fr); }
  .land-games-grid { grid-template-columns: repeat(2, 1fr); }
  .char-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .land-hero-title { font-size: 42px; }
  .land-hero-sub { font-size: 17px; }
  .land-section-title { font-size: 32px; }
  .land-cta-title { font-size: 36px; }
  .land-features-grid { grid-template-columns: 1fr; max-width: 400px; }
  .land-games-grid { grid-template-columns: 1fr; max-width: 400px; }
  .land-episodes-grid { grid-template-columns: 1fr; max-width: 400px; }
  .char-grid { grid-template-columns: repeat(2, 1fr); }
  .land-nav-links { display: none; }
  .land-nav-toggle { display: block; }
  .land-nav { padding: 12px 20px; }
  .land-about-card { padding: 28px; }
}

@media (max-width: 480px) {
  .land-hero-title { font-size: 32px; letter-spacing: 2px; }
  .land-hero-sub { font-size: 15px; }
  .land-section-title { font-size: 28px; }
  .land-cta-title { font-size: 28px; }
  .char-grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  .land-hero-btns { flex-direction: column; align-items: center; }
  .land-btn-primary, .land-btn-secondary { width: 100%; max-width: 280px; justify-content: center; }
}

/* Mobile nav menu */
.land-nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(26, 11, 46, 0.95);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.land-nav-mobile.open { display: flex; }

.land-nav-mobile a {
  color: #fff;
  text-decoration: none;
  font-family: 'Comfortaa', cursive;
  font-size: 24px;
  font-weight: 700;
}

.land-nav-mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
}

/* Light theme overrides */
.theme-light .land-btn-primary {
  background: linear-gradient(135deg, #ff5a5a, #ff8f5a);
}

.theme-light .land-btn-secondary {
  border-color: rgba(224, 86, 200, 0.3);
  color: #3d1a5c;
}

.theme-light .land-section-title,
.theme-light .land-feature-title,
.theme-light .land-episode-title,
.theme-light .char-card-name,
.theme-light .land-artifact-name,
.theme-light .land-hero-title,
.theme-light .land-hero-sub {
  color: #3d1a5c;
}

.theme-light .land-feature-desc,
.theme-light .land-episode-desc,
.theme-light .char-card-hint,
.theme-light .land-artifact-desc {
  color: rgba(61, 26, 92, 0.6);
}

.theme-light .land-nav-mobile {
  background: rgba(243, 232, 255, 0.98);
}

.theme-light .land-nav-mobile a {
  color: #3d1a5c;
}

.theme-light .land-nav-mobile-close {
  color: #3d1a5c;
}

/* CTA responsive override */
.land-btn-primary {
  font-size: clamp(14px, 2vw, 20px) !important;
  padding: clamp(12px, 2vw, 20px) clamp(24px, 4vw, 48px) !important;
}

@media (max-width: 480px) {
  .char-grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  .land-cta-title { font-size: 28px; }
  .land-cta-sub { font-size: 14px; }
}

/* ═══════════════════════════════════════════════════════════
   GAMES MODAL
   ═══════════════════════════════════════════════════════════ */
.games-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.games-modal-backdrop.visible {
  display: flex;
}

.games-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 80vh;
  max-height: 720px;
  background: var(--bg-glass);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.games-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.games-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.games-modal-title {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  padding: 28px 24px 12px;
  color: #fff;
}

.games-modal-items {
  padding: 12px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.games-modal-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
}

.games-modal-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(192, 132, 252, 0.4);
  transform: translateX(6px);
}

.games-modal-item-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.games-modal-item-info {
  flex: 1;
  min-width: 0;
}

.games-modal-item-name {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.games-modal-item-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.games-modal-item-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.games-modal-iframe-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 480px;
}

.games-modal-back {
  align-self: flex-start;
  margin: 16px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.games-modal-back:hover {
  background: rgba(255, 255, 255, 0.2);
}

.games-modal-iframe {
  flex: 1;
  width: 100%;
  min-height: 480px;
  border: none;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

@media (max-width: 600px) {
  .games-modal {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  .games-modal-iframe {
    border-radius: 0;
  }
}

/* ═══════════════════════════════════════════════════════════
   GAME PROFILE SECTION
   ═══════════════════════════════════════════════════════════ */
.land-profile {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.profile-guest-card,
.profile-user-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: var(--shadow-neon-purple);
}

.profile-nickname {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  font-family: 'Comfortaa', cursive;
}

.profile-coins {
  font-size: 20px;
  font-weight: 700;
  color: #f472b6;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  margin-top: 8px;
}

.profile-stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.25s var(--ease-spring);
}

.profile-stat-card:hover {
  border-color: rgba(192, 132, 252, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.2);
}

.profile-stat-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.profile-stat-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.profile-stat-value {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.profile-stat-stars {
  font-size: 18px;
  letter-spacing: 2px;
}

.profile-guest-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  font-family: 'Comfortaa', cursive;
}

.profile-guest-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  max-width: 480px;
}

.profile-guest-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}

.profile-guest-form input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.profile-guest-form input:focus {
  border-color: var(--neon-purple);
}

.profile-guest-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.profile-guest-btn {
  background: var(--gradient-primary);
  border: none;
  border-radius: 50px;
  padding: 14px 28px;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring);
  width: 100%;
}

.profile-guest-btn:hover {
  transform: scale(1.03);
}

.profile-guest-switch {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Nunito', sans-serif;
  transition: color 0.2s;
}

.profile-guest-switch:hover {
  color: var(--neon-purple);
}

.profile-register-form,
.profile-login-form {
  display: none;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}

.profile-register-form.active,
.profile-login-form.active {
  display: flex;
}

.profile-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  text-align: left;
  cursor: pointer;
}

.profile-consent-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--neon-purple);
}

.profile-consent-label a {
  color: var(--neon-purple);
  text-decoration: underline;
}

.profile-auth-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.profile-auth-tab {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 8px 18px;
  color: rgba(255,255,255,0.6);
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.profile-auth-tab:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.profile-auth-tab.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
}

@media (max-width: 768px) {
  .profile-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .profile-guest-card,
  .profile-user-card {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .profile-stats-grid {
    grid-template-columns: 1fr;
  }
}
