/* ========================================
   ARCADEVISTADRFT - CANDY WONDERLAND CSS
   ======================================== */

/* --- VARIABLES --- */
:root {
  --bg-primary: #fff7f8;
  --bg-secondary: #fff0f5;
  --bg-tertiary: #fef2f8;
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-bg-strong: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-blur: 18px;
  --candy-yellow: linear-gradient(135deg, #facc15, #fde68a);
  --candy-orange: linear-gradient(135deg, #fb923c, #fdba74);
  --candy-pink: linear-gradient(135deg, #f472b6, #f9a8d4);
  --candy-rainbow: linear-gradient(135deg, #facc15, #fb923c, #f472b6, #a78bfa);
  --candy-primary: linear-gradient(135deg, #f472b6, #fb923c, #facc15);
  --glow-yellow: rgba(250, 204, 21, 0.35);
  --glow-orange: rgba(251, 146, 60, 0.35);
  --glow-pink: rgba(244, 114, 182, 0.35);
  --text-primary: #1f2937;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 100px;
  --shadow-sm: 0 2px 8px rgba(244, 114, 182, 0.08);
  --shadow-md: 0 4px 20px rgba(244, 114, 182, 0.12);
  --shadow-lg: 0 8px 40px rgba(244, 114, 182, 0.16);
  --shadow-xl: 0 16px 60px rgba(244, 114, 182, 0.2);
  --shadow-candy: 0 4px 30px rgba(251, 146, 60, 0.15), 0 2px 10px rgba(244, 114, 182, 0.1);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --max-width: 1280px;
  --header-height: 80px;
  --section-spacing: 120px;
}

/* --- 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: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  text-decoration: none;
  color: inherit;
}

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

ul, ol {
  list-style: none;
}

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

/* --- CANDY BACKGROUND --- */
#candy-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

#candy-bg-container .candy-bg-item {
  position: absolute;
  font-size: 24px;
  opacity: 0.06;
  animation: candyBgFloat 20s infinite linear;
  will-change: transform;
}

@keyframes candyBgFloat {
  0% { transform: translateY(100vh) rotate(0deg); }
  100% { transform: translateY(-100px) rotate(360deg); }
}

/* --- CURSOR SPARKLE --- */
#cursor-sparkle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10000;
}

.cursor-sparkle {
  position: absolute;
  pointer-events: none;
  font-size: 12px;
  animation: sparkleFade 0.8s ease-out forwards;
  will-change: transform, opacity;
}

@keyframes sparkleFade {
  0% { opacity: 1; transform: scale(1) translateY(0); }
  100% { opacity: 0; transform: scale(0.3) translateY(-30px); }
}

/* --- TYPOGRAPHY --- */
.candy-gradient-text {
  background: var(--candy-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: var(--transition-base);
  background: rgba(255, 247, 248, 0.75);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
}

.header.scrolled {
  background: rgba(255, 247, 248, 0.92);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.logo-icon {
  font-size: 32px;
  filter: drop-shadow(0 2px 4px rgba(244, 114, 182, 0.3));
  animation: logoWobble 3s ease-in-out infinite;
}

@keyframes logoWobble {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

.logo-text {
  font-family: 'Fredoka One', cursive;
  font-size: 22px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-highlight {
  background: var(--candy-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition-base);
  position: relative;
  border: 2px solid transparent;
}

.nav-link .nav-emoji {
  font-size: 16px;
  transition: var(--transition-bounce);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--glass-bg);
  border-color: var(--glass-border);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--glow-pink);
}

.nav-link:hover .nav-emoji {
  transform: scale(1.2) rotate(10deg);
}

.nav-link.active {
  background: var(--glass-bg-strong);
  border-color: rgba(244, 114, 182, 0.3);
  color: var(--text-primary);
  box-shadow: 0 2px 12px var(--glow-pink);
}

/* --- CTA BUTTON --- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 14px;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-cta-header {
  background: var(--candy-primary);
  color: #fff;
  box-shadow: 0 4px 20px var(--glow-pink);
  animation: ctaPulse 2s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 20px var(--glow-pink); }
  50% { box-shadow: 0 4px 30px var(--glow-orange), 0 0 40px var(--glow-pink); }
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.03);
}

.btn-cta:active {
  transform: translateY(0) scale(0.97);
}

.btn-cta-primary {
  background: var(--candy-primary);
  color: #fff;
  box-shadow: 0 4px 20px var(--glow-pink);
}

.btn-cta-primary:hover {
  box-shadow: 0 8px 35px var(--glow-pink), 0 0 50px var(--glow-orange);
}

.btn-cta-secondary {
  background: var(--glass-bg-strong);
  color: var(--text-primary);
  border: 2px solid rgba(244, 114, 182, 0.2);
  backdrop-filter: blur(10px);
}

.btn-cta-secondary:hover {
  border-color: rgba(244, 114, 182, 0.4);
  box-shadow: 0 8px 25px var(--glow-pink);
  background: rgba(255, 255, 255, 0.6);
}

.btn-cta-lg {
  padding: 16px 36px;
  font-size: 17px;
  border-radius: var(--radius-pill);
}

.btn-cta-block {
  width: 100%;
  justify-content: center;
  padding: 16px 36px;
  font-size: 16px;
}

.btn-cta-sparkle {
  font-size: 18px;
}

.btn-cta-mobile {
  background: var(--candy-primary);
  color: #fff;
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 16px;
  margin-top: 12px;
}

/* --- MOBILE MENU TOGGLE --- */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 10;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-base);
}

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

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

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

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 247, 248, 0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  width: 100%;
  max-width: 320px;
}

.mobile-nav-link {
  display: block;
  width: 100%;
  text-align: center;
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-secondary);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: var(--glass-bg-strong);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 40px) 0 80px;
  background: linear-gradient(180deg, #fff7f8 0%, #fff0f5 30%, #fef2f8 60%, #fdf4ff 100%);
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 30%, rgba(250, 204, 21, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 70%, rgba(244, 114, 182, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 70% 40% at 50% 50%, rgba(251, 146, 60, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-candy-layer,
.hero-confetti-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(244, 114, 182, 0.2);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.15;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.6s ease-out 0.2s both;
  font-weight: 600;
}

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

.hero-legal {
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-muted);
  animation: fadeInUp 0.6s ease-out 0.4s both;
  font-weight: 600;
}

/* --- FLOATING CANDIES --- */
.hero-floating-candy {
  position: absolute;
  font-size: 40px;
  z-index: 2;
  animation: candyFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
  will-change: transform;
  pointer-events: none;
}

.hero-candy-1 { top: 15%; left: 8%; animation-delay: 0s; animation-duration: 5.5s; font-size: 48px; }
.hero-candy-2 { top: 25%; right: 10%; animation-delay: 0.8s; animation-duration: 6.2s; font-size: 36px; }
.hero-candy-3 { bottom: 30%; left: 5%; animation-delay: 1.6s; animation-duration: 7s; font-size: 32px; }
.hero-candy-4 { bottom: 20%; right: 8%; animation-delay: 2.4s; animation-duration: 5.8s; font-size: 44px; }
.hero-candy-5 { top: 60%; left: 15%; animation-delay: 0.4s; animation-duration: 6.5s; font-size: 28px; }
.hero-candy-6 { top: 40%; right: 15%; animation-delay: 1.2s; animation-duration: 7.2s; font-size: 36px; }
.hero-candy-7 { top: 70%; left: 80%; animation-delay: 2s; animation-duration: 5.2s; font-size: 30px; }
.hero-candy-8 { top: 10%; left: 50%; animation-delay: 3s; animation-duration: 6.8s; font-size: 34px; }

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

/* --- SECTION COMMONS --- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(244, 114, 182, 0.15);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto;
  font-weight: 600;
}

/* --- GAME SECTION --- */
.game-section {
  padding: var(--section-spacing) 0;
  position: relative;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

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

.game-card-border {
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--radius-lg) + 3px);
  background: var(--candy-rainbow);
  background-size: 300% 300%;
  animation: gradientShift 4s ease-in-out infinite;
  z-index: 0;
  opacity: 0.7;
}

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

.game-card-inner {
  position: relative;
  z-index: 1;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.game-iframe-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 62%;
  background: #1a1025;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}

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

.game-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2d1b4e, #1a1025);
  color: #fff;
  z-index: 5;
  transition: var(--transition-slow);
  gap: 16px;
}

.game-loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.game-loading-spinner {
  font-size: 48px;
  animation: spinCandy 1.5s ease-in-out infinite;
}

@keyframes spinCandy {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

.game-loading-overlay p {
  font-weight: 700;
  font-size: 16px;
}

.game-controls {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.3);
}

.btn-game-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition-bounce);
  cursor: pointer;
}

.btn-game-control:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--glow-pink);
  border-color: rgba(244, 114, 182, 0.3);
  background: rgba(255, 255, 255, 0.6);
}

.btn-game-control svg {
  flex-shrink: 0;
}

.game-floating-candy {
  position: absolute;
  font-size: 28px;
  animation: candyFloat 5s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

.game-candy-1 { top: -20px; left: -20px; animation-delay: 0.5s; }
.game-candy-2 { top: -15px; right: -25px; animation-delay: 1.5s; }
.game-candy-3 { bottom: -18px; left: 50%; animation-delay: 2.5s; }

/* --- FEATURES SECTION --- */
.features-section {
  padding: var(--section-spacing) 0;
  background: var(--bg-primary);
  position: relative;
}

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

.feature-card {
  grid-column: span 6;
  position: relative;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: var(--transition-bounce);
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(244, 114, 182, 0.3);
}

.feature-card-large {
  grid-column: span 12;
  text-align: center;
  padding: 48px 36px;
}

.feature-card-wide {
  grid-column: span 12;
  text-align: center;
  padding: 48px 36px;
}

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

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

.feature-title {
  font-family: 'Fredoka One', cursive;
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 600;
  max-width: 500px;
}

.feature-card-large .feature-desc,
.feature-card-wide .feature-desc {
  margin: 0 auto;
}

.feature-candy-bg {
  position: absolute;
  bottom: -10px;
  right: -10px;
  font-size: 100px;
  opacity: 0.05;
  pointer-events: none;
}

/* --- CTA SECTION --- */
.cta-section {
  padding: var(--section-spacing) 0;
  background: var(--bg-secondary);
}

.cta-card {
  position: relative;
  text-align: center;
  padding: 72px 40px;
  border-radius: var(--radius-xl);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur));
  border: 2px solid rgba(244, 114, 182, 0.15);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.cta-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 32px;
  font-weight: 600;
}

.cta-candy-float {
  position: absolute;
  font-size: 36px;
  animation: candyFloat 6s ease-in-out infinite;
  opacity: 0.3;
  pointer-events: none;
}

.cta-candy-1 { top: 20px; left: 30px; animation-delay: 0s; }
.cta-candy-2 { bottom: 20px; right: 40px; animation-delay: 1s; }
.cta-candy-3 { top: 40%; left: 85%; animation-delay: 2s; }

/* --- FOOTER --- */
.footer {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, #fce7f3 100%);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(244, 114, 182, 0.1);
}

.footer-top {
  display: flex;
  gap: 60px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 350px;
}

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

.footer-brand-desc {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.7;
}

.footer-links-group {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

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

.footer-links-title {
  font-family: 'Fredoka One', cursive;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.footer-link {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  transition: var(--transition-base);
}

.footer-link:hover {
  color: #f472b6;
  transform: translateX(4px);
  display: inline-block;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 114, 182, 0.2), transparent);
  margin: 40px 0 24px;
}

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

.footer-legal {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: rgba(244, 114, 182, 0.05);
  border: 1px solid rgba(244, 114, 182, 0.1);
  display: inline-block;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 600;
  margin-top: 12px;
}

/* --- PAGE HERO --- */
.page-hero {
  position: relative;
  padding: calc(var(--header-height) + 60px) 0 60px;
  background: linear-gradient(180deg, #fff7f8 0%, #fff0f5 100%);
  text-align: center;
  overflow: hidden;
}

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

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

.page-hero-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(30px, 5vw, 52px);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.page-hero-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  font-weight: 600;
}

/* --- CONTENT SECTION --- */
.content-section {
  padding: 60px 0 var(--section-spacing);
}

.content-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

.content-card-narrow {
  max-width: 600px;
}

.content-card h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 24px;
  margin-bottom: 16px;
  margin-top: 32px;
  color: var(--text-primary);
}

.content-card h2:first-of-type {
  margin-top: 0;
}

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

.content-card p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 600;
}

.content-card a {
  color: #f472b6;
  font-weight: 700;
  transition: var(--transition-fast);
}

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

.content-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(244, 114, 182, 0.1);
}

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

.content-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  color: var(--text-secondary);
  font-weight: 600;
}

.content-list li::before {
  content: '🍬';
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 14px;
}

/* --- CONTACT FORM --- */
.contact-form {
  margin-top: 24px;
}

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

.form-label {
  display: block;
  font-weight: 800;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(244, 114, 182, 0.15);
  background: rgba(255, 255, 255, 0.6);
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition-base);
  outline: none;
}

.form-input:focus {
  border-color: rgba(244, 114, 182, 0.4);
  box-shadow: 0 0 0 4px var(--glow-pink);
  background: rgba(255, 255, 255, 0.8);
}

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

.form-select {
  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='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

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

.contact-success {
  text-align: center;
  padding: 40px 20px;
}

.contact-success-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.contact-success h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 24px;
  margin-bottom: 8px;
}

.contact-success p {
  color: var(--text-muted);
  font-weight: 600;
}

/* --- MODAL --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.95);
  transition: var(--transition-bounce);
  max-height: 90vh;
  overflow-y: auto;
}

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

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

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

.modal-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 16px;
}

.modal-title {
  font-family: 'Fredoka One', cursive;
  font-size: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.modal-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.modal-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--candy-pink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.modal-step p {
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.6;
  padding-top: 4px;
}

.modal-note {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.2);
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 700;
  text-align: center;
}

/* --- MOBILE BOTTOM NAV --- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 247, 248, 0.95);
  backdrop-filter: blur(var(--glass-blur));
  border-top: 1px solid var(--glass-border);
  z-index: 900;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}

.mobile-bottom-nav {
  display: none;
  grid-template-columns: repeat(4, 1fr);
}

.mobile-bottom-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition-fast);
  border-radius: var(--radius-sm);
}

.mobile-bottom-link.active {
  color: #f472b6;
}

.mobile-bottom-icon {
  font-size: 22px;
  transition: var(--transition-bounce);
}

.mobile-bottom-link.active .mobile-bottom-icon {
  transform: scale(1.15);
}

.mobile-bottom-label {
  font-size: 10px;
}

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

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  :root {
    --section-spacing: 80px;
  }

  .features-grid {
    gap: 20px;
  }

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

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

@media (max-width: 768px) {
  :root {
    --section-spacing: 60px;
    --header-height: 68px;
  }

  .nav-desktop {
    display: none;
  }

  .btn-cta-header {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-bottom-nav {
    display: grid;
  }

  .footer {
    padding-bottom: 100px;
  }

  .features-grid {
    gap: 16px;
  }

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

  .feature-card {
    padding: 28px;
  }

  .hero-floating-candy {
    font-size: 28px;
  }

  .hero-candy-1 { font-size: 32px; }
  .hero-candy-4 { font-size: 30px; }

  .content-card {
    padding: 28px;
  }

  .game-controls {
    flex-wrap: wrap;
  }

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

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links-group {
    gap: 32px;
  }

  .hero {
    padding: calc(var(--header-height) + 20px) 0 60px;
  }

  .hero-title {
    margin-bottom: 16px;
  }

  .hero-subtitle {
    margin-bottom: 28px;
  }

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

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

  .btn-cta-lg {
    width: 100%;
    justify-content: center;
  }

  .hero-floating-candy {
    font-size: 22px;
  }

  .game-iframe-wrapper {
    padding-bottom: 75%;
  }

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

/* --- UTILITIES --- */
.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;
}

/* Fullscreen game styles */
.game-card.fullscreen {
  position: fixed;
  inset: 0;
  max-width: 100%;
  z-index: 3000;
  border-radius: 0;
  margin: 0;
}

.game-card.fullscreen .game-card-border {
  border-radius: 0;
}

.game-card.fullscreen .game-card-inner {
  border-radius: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.game-card.fullscreen .game-iframe-wrapper {
  border-radius: 0;
  flex: 1;
  padding-bottom: 0;
}

.game-card.fullscreen .game-controls {
  flex-shrink: 0;
}

.game-card.fullscreen .game-floating-candy {
  display: none;
}

/* Prevent scrolling when fullscreen */
body.game-fullscreen {
  overflow: hidden;
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f9a8d4, #f472b6);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f472b6, #ec4899);
}

/* Selection color */
::selection {
  background: rgba(244, 114, 182, 0.25);
  color: var(--text-primary);
}