/* ============================================
   TANSAPLAYPORTL — NEO TOON GLASS UI
   css/style.css
   ============================================ */

/* --- ROOT VARIABLES --- */
:root {
  --bg-primary: #0b0f1a;
  --bg-secondary: #12182b;
  --bg-accent: #1a2240;
  --purple-glow: linear-gradient(135deg, #7c3aed, #c084fc);
  --blue-glow: linear-gradient(135deg, #3b82f6, #60a5fa);
  --orange-glow: linear-gradient(135deg, #fb923c, #fbbf24);
  --green-glow: linear-gradient(135deg, #22c55e, #4ade80);
  --glow-purple: rgba(124,58,237,0.45);
  --glow-blue: rgba(59,130,246,0.45);
  --glow-orange: rgba(251,146,60,0.45);
  --glow-green: rgba(34,197,94,0.45);
  --glass-bg: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.08);
  --glass-blur: blur(18px);
  --text-primary: #f8fafc;
  --text-secondary: #c7d2fe;
  --text-muted: #6b7280;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --max-width: 1280px;
  --font-main: 'Nunito', sans-serif;
  --font-display: 'Fredoka One', cursive;
  --section-desktop: 120px;
  --section-tablet: 80px;
  --section-mobile: 60px;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

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

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s var(--transition-smooth);
}

ul {
  list-style: none;
}

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

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

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

.text-center {
  text-align: center;
}

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

@media (hover: hover) {
  .cursor-glow {
    opacity: 1;
  }
}

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

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s ease-in-out infinite;
}

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

/* ============================================
   HEADER — FLOATING TOON NAV
   ============================================ */
.main-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: var(--max-width);
  z-index: 1000;
  transition: all 0.4s var(--transition-smooth);
}

.main-header.scrolled {
  top: 8px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(18, 24, 43, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--transition-smooth);
}

.main-header.scrolled .nav-container {
  padding: 10px 24px;
  background: rgba(18, 24, 43, 0.9);
  backdrop-filter: blur(30px);
}

.nav-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.08), rgba(59,130,246,0.08), transparent);
  animation: navShine 6s linear infinite;
}

@keyframes navShine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.logo-icon {
  font-size: 28px;
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(5deg); }
}

.logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  background: var(--purple-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.nav-link {
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-secondary);
  position: relative;
  transition: all 0.3s var(--transition-smooth);
}

.nav-link:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
  text-shadow: 0 0 20px var(--glow-purple);
}

.nav-link.active {
  color: var(--text-primary);
  background: rgba(124,58,237,0.15);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--purple-glow);
  border-radius: 10px;
  animation: underlineGlow 2s ease-in-out infinite;
}

@keyframes underlineGlow {
  0%, 100% { opacity: 0.7; width: 20px; }
  50% { opacity: 1; width: 28px; }
}

/* CTA Button (Nav) */
.play-now-btn {
  z-index: 2;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  padding: 8px;
}

.ham-line {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 10px;
  transition: all 0.3s var(--transition-smooth);
}

.hamburger.active .ham-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .ham-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .ham-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: rgba(11, 15, 26, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 999;
  transition: right 0.5s var(--transition-bounce);
  border-left: 1px solid var(--glass-border);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 40px 32px;
  gap: 40px;
}

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

.mobile-nav-link {
  font-size: 22px;
  font-weight: 800;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all 0.3s var(--transition-smooth);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--text-primary);
  background: rgba(124,58,237,0.15);
}

.mobile-cta {
  text-align: center;
}

/* Mobile overlay */
.mobile-menu::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu.active::before {
  opacity: 1;
  pointer-events: all;
}

/* ============================================
   BUTTON SYSTEM
   ============================================ */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.primary-btn {
  background: var(--purple-glow);
  color: white;
  box-shadow: 0 4px 20px var(--glow-purple), inset 0 1px 0 rgba(255,255,255,0.2);
}

.primary-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 40px var(--glow-purple), inset 0 1px 0 rgba(255,255,255,0.3);
}

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

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

.secondary-btn:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 8px 30px rgba(255,255,255,0.05);
}

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

.small-btn {
  padding: 10px 22px;
  font-size: 14px;
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.cta-btn:hover .btn-shine {
  left: 100%;
}

/* Play Now CTA (header) */
.play-now-btn {
  padding: 10px 24px;
  font-size: 14px;
  background: var(--purple-glow);
  color: white;
  border-radius: 50px;
  box-shadow: 0 2px 15px var(--glow-purple);
  animation: ctaPulse 3s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 2px 15px var(--glow-purple); }
  50% { box-shadow: 0 4px 30px var(--glow-purple); }
}

.play-now-btn:hover {
  transform: translateY(-2px) scale(1.05);
}

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.gradient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.4), transparent 70%);
  top: -20%;
  right: -10%;
  animation: blobMove1 15s ease-in-out infinite;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.3), transparent 70%);
  bottom: -10%;
  left: -10%;
  animation: blobMove2 18s ease-in-out infinite;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(251,146,60,0.25), transparent 70%);
  top: 40%;
  left: 50%;
  animation: blobMove3 12s ease-in-out infinite;
}

@keyframes blobMove1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, 30px) scale(1.1); }
  66% { transform: translate(30px, -40px) scale(0.9); }
}

@keyframes blobMove2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.15); }
  66% { transform: translate(-30px, 50px) scale(0.85); }
}

@keyframes blobMove3 {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-50%, -30px) scale(1.2); }
}

/* Floating Shapes */
.floating-shape {
  position: absolute;
  font-size: 40px;
  z-index: 1;
  opacity: 0.15;
  animation: shapeFloat 8s ease-in-out infinite;
}

.shape-1 { top: 15%; left: 10%; animation-delay: 0s; animation-duration: 7s; }
.shape-2 { top: 25%; right: 15%; animation-delay: 1s; animation-duration: 9s; font-size: 50px; }
.shape-3 { bottom: 20%; left: 20%; animation-delay: 2s; animation-duration: 8s; }
.shape-4 { top: 60%; right: 10%; animation-delay: 0.5s; animation-duration: 10s; }
.shape-5 { bottom: 30%; right: 25%; animation-delay: 3s; animation-duration: 6s; font-size: 35px; }
.shape-6 { top: 40%; left: 5%; animation-delay: 1.5s; animation-duration: 11s; }

@keyframes shapeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(5deg); }
  50% { transform: translateY(-10px) rotate(-3deg); }
  75% { transform: translateY(-25px) rotate(3deg); }
}

/* Hero Content */
.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 28px;
  backdrop-filter: var(--glass-blur);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: dotPulse 2s ease-in-out infinite;
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 80px);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.gradient-text {
  background: var(--purple-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
  background-size: 200% 200%;
}

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

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-legal {
  max-width: 500px;
  margin: 0 auto;
}

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

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: scrollFloat 3s ease-in-out infinite;
}

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

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--text-secondary);
  border-radius: 4px;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.3; }
}

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

/* ============================================
   ANIMATIONS (Scroll + Fade)
   ============================================ */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s var(--transition-smooth) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s var(--transition-smooth);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  color: #c084fc;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto;
}

/* ============================================
   GAME SECTION (Home Preview)
   ============================================ */
.game-section {
  padding: var(--section-desktop) 0;
  position: relative;
}

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

.game-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  transition: all 0.4s var(--transition-smooth);
}

.game-card:hover {
  transform: scale(1.01);
  box-shadow: 0 20px 60px rgba(124,58,237,0.2);
  border-color: rgba(124,58,237,0.3);
}

.game-card-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: conic-gradient(from 0deg, #7c3aed, #3b82f6, #22c55e, #fb923c, #7c3aed);
  z-index: -1;
  opacity: 0.4;
  animation: borderRotate 4s linear infinite;
  filter: blur(4px);
}

@keyframes borderRotate {
  0% { filter: blur(4px) hue-rotate(0deg); }
  100% { filter: blur(4px) hue-rotate(360deg); }
}

.game-iframe-container {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-primary);
  position: relative;
}

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

.game-card-info {
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.game-title {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 6px;
}

.game-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 400px;
  line-height: 1.6;
}

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

/* ============================================
   GAME FULL PAGE
   ============================================ */
.game-full-section {
  padding: 40px 0 var(--section-desktop);
}

.game-full-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  margin-bottom: 60px;
}

.game-full-iframe-container {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-primary);
}

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

.game-full-controls {
  padding: 20px 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 1px solid var(--glass-border);
}

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

.game-info-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 28px;
  backdrop-filter: var(--glass-blur);
}

.game-info-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 12px;
}

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

.game-info-card ul {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 2;
  padding-left: 20px;
  list-style: disc;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
  padding: var(--section-desktop) 0;
  position: relative;
}

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

.feature-card {
  grid-column: span 6;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: var(--glass-blur);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--transition-smooth);
  cursor: default;
}

.feature-card.large {
  grid-column: span 6;
}

.feature-card:hover {
  transform: translateY(-8px) rotate(0.5deg);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 20px 60px var(--card-glow, rgba(124,58,237,0.15));
}

.feature-card-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  transition: left 0.8s;
}

.feature-card:hover .feature-card-shine {
  left: 100%;
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
  animation: iconBounce 3s ease-in-out infinite;
}

.feature-card:nth-child(2) .feature-icon { animation-delay: 0.5s; }
.feature-card:nth-child(3) .feature-icon { animation-delay: 1s; }
.feature-card:nth-child(4) .feature-icon { animation-delay: 1.5s; }

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

.feature-title {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 12px;
}

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

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

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

.cta-bg-effects {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cta-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.cta-blob-1 {
  width: 400px;
  height: 400px;
  background: rgba(124,58,237,0.2);
  top: -30%;
  left: -10%;
  animation: blobMove1 10s ease-in-out infinite;
}

.cta-blob-2 {
  width: 350px;
  height: 350px;
  background: rgba(59,130,246,0.15);
  bottom: -30%;
  right: -10%;
  animation: blobMove2 12s ease-in-out infinite;
}

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

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* ============================================
   PAGE HERO (Inner Pages)
   ============================================ */
.page-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 56px);
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-secondary);
}

.game-page-hero {
  padding-bottom: 40px;
}

/* ============================================
   CONTENT SECTIONS (Inner Pages)
   ============================================ */
.content-section {
  padding: 0 0 var(--section-desktop);
}

.content-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 40px;
  backdrop-filter: var(--glass-blur);
  margin-bottom: 28px;
}

.content-card h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.content-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  margin-top: 20px;
  color: var(--text-primary);
}

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

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

.content-card ul {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 2;
  padding-left: 24px;
  list-style: disc;
  margin-bottom: 12px;
}

.content-card a {
  color: #c084fc;
  text-decoration: underline;
}

.content-card a:hover {
  color: #7c3aed;
}

.highlight-card {
  border-color: rgba(124,58,237,0.3);
  background: rgba(124,58,237,0.08);
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.value-item {
  padding: 24px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}

.value-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
}

.value-item h3 {
  margin-top: 0;
}

/* Legal content styling */
.legal-content .content-card ul {
  margin-bottom: 0;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: start;
}

.contact-form-card {
  margin-bottom: 0;
}

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

.contact-info-side .content-card {
  margin-bottom: 0;
}

.contact-info-side .content-card h3 {
  margin-top: 0;
  font-family: var(--font-display);
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 15px;
  color: var(--text-primary);
  font-family: var(--font-main);
  transition: all 0.3s var(--transition-smooth);
  outline: none;
}

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

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c7d2fe' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

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

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

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

.form-error {
  font-size: 12px;
  color: #f87171;
  display: none;
  font-weight: 600;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #f87171;
}

.form-group.error .form-error {
  display: block;
}

.form-success {
  display: none;
  padding: 20px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-sm);
}

.form-success.show {
  display: block;
}

.form-success p {
  color: #4ade80;
  font-weight: 700;
  font-size: 15px;
  margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
  padding: 80px 0 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  position: relative;
}

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

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

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

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

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links a {
  color: var(--text-muted);
  transition: all 0.3s;
}

.footer-links a:hover {
  color: var(--text-primary);
  transform: translateX(4px);
  display: inline-block;
}

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

.footer-disclaimer p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: center;
}

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

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

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--transition-smooth);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 520px;
  width: 100%;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s var(--transition-bounce);
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  color: var(--text-muted);
  transition: all 0.3s;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
  transform: rotate(90deg);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 24px;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.htp-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.htp-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--purple-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  color: white;
}

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

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

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 1024px) {
  .game-section,
  .features-section,
  .cta-section {
    padding: var(--section-tablet) 0;
  }

  .content-section {
    padding-bottom: var(--section-tablet);
  }

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

  .feature-card,
  .feature-card.large {
    grid-column: span 1;
  }

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

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

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

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

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .play-now-btn:not(.mobile-cta) {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-section {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .game-section,
  .features-section,
  .cta-section {
    padding: var(--section-mobile) 0;
  }

  .content-section {
    padding-bottom: var(--section-mobile);
  }

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

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

  .feature-card,
  .feature-card.large {
    grid-column: span 1;
    padding: 28px;
  }

  .game-card-info {
    flex-direction: column;
    padding: 20px 24px;
  }

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

  .page-hero {
    padding: 130px 0 50px;
  }

  .content-card {
    padding: 28px 20px;
  }

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

  .footer-disclaimer p {
    text-align: left;
  }

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

  .logo-text {
    font-size: 17px;
  }

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

  .floating-shape {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .cta-btn {
    width: 100%;
    max-width: 280px;
  }

  .game-actions {
    flex-direction: column;
    width: 100%;
  }

  .game-actions .cta-btn {
    width: 100%;
  }

  .game-full-controls {
    flex-direction: column;
    align-items: stretch;
  }

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

/* ============================================
   UTILITIES & EFFECTS
   ============================================ */

/* Selection */
::selection {
  background: rgba(124,58,237,0.3);
  color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(124,58,237,0.3);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(124,58,237,0.5);
}

/* Focus visible */
*:focus-visible {
  outline: 2px solid rgba(124,58,237,0.5);
  outline-offset: 2px;
}

/* Print */
@media print {
  .main-header,
  .cursor-glow,
  .particles-container,
  .hero-bg,
  .modal-overlay {
    display: none !important;
  }
}