/* ==========================================================================
   Arrow Escape: Puzzle World - Official Website Stylesheet
   Theme: Vibrant, Sunny, Casual Cartoon Mobile Game (Light Mode Only)
   Enhanced with Unique Gameplay-Themed Smooth Animations
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  /* Vibrant & Sunny Palette */
  --sky-top: #38bdf8;
  --sky-mid: #7dd3fc;
  --sky-light: #bae6fd;
  --sky-soft: #f0f9ff;
  --cloud-white: #ffffff;
  
  --primary-blue: #0284c7;
  --primary-blue-dark: #0369a1;
  --primary-blue-light: #38bdf8;
  
  --gold-accent: #f59e0b;
  --gold-light: #fde047;
  --gold-dark: #b45309;
  
  --green-lush: #10b981;
  --green-dark: #047857;
  --green-light: #6ee7b7;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  
  --card-bg: #ffffff;
  --card-border: #e0f2fe;
  --card-shadow: 0 12px 30px -8px rgba(2, 132, 199, 0.15), 0 4px 12px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 20px 40px -10px rgba(2, 132, 199, 0.25), 0 8px 16px rgba(0, 0, 0, 0.06);
  
  --font-game: 'Fredoka', cursive, sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 9999px;
  
  --transition-fast: 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: #f0f9ff;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid rgba(186, 230, 253, 0.7);
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.07);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

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

.brand-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  border: 2px solid #ffffff;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-icon {
  transform: rotate(-8deg) scale(1.1);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-game);
  font-size: 1.45rem;
  font-weight: 700;
  color: #0284c7;
  line-height: 1.1;
  text-shadow: 1px 1px 0 #ffffff;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.78rem;
  font-weight: 800;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-game);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 6px 4px;
  transition: color var(--transition-smooth);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #0284c7);
  border-radius: 4px;
  transition: width 0.25s ease, left 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  left: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #fde047 0%, #f59e0b 50%, #d97706 100%);
  color: #78350f;
  font-family: var(--font-game);
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 2px solid #ffffff;
  box-shadow: 0 4px 0 #b45309, 0 6px 14px rgba(217, 119, 6, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #b45309, 0 8px 18px rgba(217, 119, 6, 0.45);
}

.nav-cta:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #b45309, 0 3px 6px rgba(217, 119, 6, 0.3);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--primary-blue);
}

/* ==========================================================================
   Source & Reference Badges (Clean, No Package Name Display)
   ========================================================================== */
.app-source-ref {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #0369a1;
  font-weight: 700;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(186, 230, 253, 0.9);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
}

.app-source-ref a {
  color: #0284c7;
  text-decoration: underline;
}

.app-source-ref a:hover {
  color: #0369a1;
}

.app-source-ref-light {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #e0f2fe;
  font-weight: 600;
  margin-top: 10px;
}

.app-source-ref-light a {
  color: #ffffff;
  text-decoration: underline;
}

.source-badge {
  display: inline-block;
  font-size: 0.72rem;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ==========================================================================
   Realistic Cartoon Sky, Puffy SVG Clouds & Escaping Arrows
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, #38bdf8 0%, #7dd3fc 45%, #bae6fd 78%, #f0f9ff 100%);
  padding: 65px 0 115px;
  overflow: hidden;
}

/* Escaping Arrows Animated Floating Background */
.arrow-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.flying-arrow {
  position: absolute;
  opacity: 0.35;
  color: #ffffff;
  animation: arrowGlide 14s infinite linear;
}

.arrow-1 {
  left: 8%;
  bottom: 10%;
  animation-duration: 16s;
  animation-delay: 1s;
}

.arrow-2 {
  left: 28%;
  bottom: 5%;
  animation-duration: 13s;
  animation-delay: 5s;
  transform: rotate(15deg);
}

.arrow-3 {
  right: 18%;
  bottom: 8%;
  animation-duration: 18s;
  animation-delay: 3s;
  transform: rotate(-10deg);
}

.arrow-4 {
  right: 38%;
  bottom: 2%;
  animation-duration: 15s;
  animation-delay: 8s;
  transform: rotate(8deg);
}

@keyframes arrowGlide {
  0% {
    transform: translateY(0) scale(0.85);
    opacity: 0;
  }
  15% {
    opacity: 0.45;
  }
  85% {
    opacity: 0.45;
  }
  100% {
    transform: translateY(-450px) scale(1.15);
    opacity: 0;
  }
}

/* Authentic organic cartoon puffy clouds using SVG */
.clouds-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.game-cloud {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(2, 132, 199, 0.16));
  opacity: 0.92;
  will-change: transform;
}

.cloud-puff-1 {
  width: 250px;
  top: 8%;
  left: 2%;
  animation: floatCloudLeft 28s ease-in-out infinite alternate;
}

.cloud-puff-2 {
  width: 320px;
  top: 36%;
  right: -40px;
  animation: floatCloudRight 34s ease-in-out infinite alternate;
}

.cloud-puff-3 {
  width: 200px;
  bottom: 10%;
  left: 10%;
  opacity: 0.85;
  animation: floatCloudLeft 22s ease-in-out infinite alternate reverse;
}

.cloud-puff-4 {
  width: 180px;
  top: 14%;
  right: 26%;
  opacity: 0.8;
  animation: floatCloudRight 26s ease-in-out infinite alternate;
}

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

@keyframes floatCloudRight {
  0% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(-42px) translateY(10px); }
  100% { transform: translateX(0) translateY(0); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 2;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-game);
  font-weight: 700;
  font-size: 0.92rem;
  color: #0369a1;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.15);
  border: 2px solid #ffffff;
  margin-bottom: 20px;
  transition: transform var(--transition-fast);
}

.hero-badge-pill:hover {
  transform: translateY(-2px);
}

.hero-badge-pill .sparkle {
  display: inline-block;
  animation: sparkleTwinkle 2s infinite ease-in-out;
}

@keyframes sparkleTwinkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.3) rotate(15deg); }
}

.hero-logo-img {
  max-width: 380px;
  width: 100%;
  margin-bottom: 18px;
  filter: drop-shadow(0 14px 20px rgba(2, 132, 199, 0.28));
  animation: gentleBob 4.2s ease-in-out infinite alternate;
}

@keyframes gentleBob {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.hero-title {
  font-family: var(--font-game);
  font-size: 2.75rem;
  font-weight: 700;
  color: #0369a1;
  line-height: 1.18;
  margin-bottom: 16px;
  text-shadow: 2px 2px 0 #ffffff;
}

.hero-title span {
  color: #d97706;
}

.hero-description {
  font-size: 1.15rem;
  color: #334155;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 540px;
}

/* Button Variants matching game UI with Shimmer Glow */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 36px;
}

.btn-game {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-game);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: 3px solid #ffffff;
  position: relative;
  overflow: hidden;
}

/* Glossy sweep animation */
.btn-play-store::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: rotate(25deg);
  animation: buttonShimmer 5s infinite;
  pointer-events: none;
}

@keyframes buttonShimmer {
  0%, 75% { left: -60%; }
  100% { left: 160%; }
}

.btn-play-store {
  background: linear-gradient(180deg, #fde047 0%, #f59e0b 50%, #d97706 100%);
  color: #78350f;
  box-shadow: 0 6px 0 #b45309, 0 12px 24px rgba(217, 119, 6, 0.4);
}

.btn-play-store:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 9px 0 #b45309, 0 16px 28px rgba(217, 119, 6, 0.5);
}

.btn-play-store:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #b45309, 0 6px 10px rgba(217, 119, 6, 0.35);
}

.btn-play-store svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.btn-play-store:hover svg {
  transform: scale(1.15) rotate(4deg);
}

.btn-secondary-game {
  background: linear-gradient(180deg, #ffffff 0%, #e0f2fe 100%);
  color: #0284c7;
  border: 3px solid #ffffff;
  box-shadow: 0 6px 0 #7dd3fc, 0 10px 20px rgba(2, 132, 199, 0.15);
}

.btn-secondary-game:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 0 #7dd3fc, 0 14px 25px rgba(2, 132, 199, 0.22);
}

.btn-secondary-game:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #7dd3fc, 0 5px 8px rgba(2, 132, 199, 0.15);
}

/* Hero Stats Row with Twinkle */
.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 2px solid #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.09);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-pill:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.16);
}

.stat-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.stat-pill:hover .stat-icon {
  transform: scale(1.2) rotate(6deg);
}

.stat-number {
  font-family: var(--font-game);
  font-size: 1.2rem;
  font-weight: 700;
  color: #0284c7;
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Phone Mockup Frame */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
  perspective: 1000px;
}

.phone-device {
  width: 290px;
  background: #ffffff;
  border-radius: 44px;
  padding: 14px;
  box-shadow: 0 25px 60px -15px rgba(2, 132, 199, 0.35), 0 0 0 8px #ffffff, 0 0 0 11px #bae6fd;
  position: relative;
  transform: rotate(-2deg);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.phone-device:hover {
  transform: rotate(0deg) scale(1.03) translateY(-4px);
  box-shadow: 0 32px 70px -15px rgba(2, 132, 199, 0.45), 0 0 0 8px #ffffff, 0 0 0 12px #7dd3fc;
}

.phone-notch {
  width: 100px;
  height: 16px;
  background: #0f172a;
  border-radius: 0 0 12px 12px;
  margin: 0 auto 10px;
}

.phone-screen {
  width: 100%;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.06);
}

.phone-screen img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.phone-device:hover .phone-screen img {
  transform: scale(1.02);
}

/* Floating Badges around phone */
.floating-badge {
  position: absolute;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.22);
  border: 2px solid #ffffff;
  animation: badgeFloat 4s ease-in-out infinite alternate;
  z-index: 4;
}

.badge-stars {
  top: 15%;
  left: -24px;
}

.badge-world {
  bottom: 20%;
  right: -28px;
  animation-delay: 2s;
}

@keyframes badgeFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

/* ==========================================================================
   Section Dividers & Base Styling
   ========================================================================== */
.section {
  padding: 90px 0;
  position: relative;
}

.section-alt {
  background: #f8fafc;
}

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

.section-tag {
  display: inline-block;
  background: #e0f2fe;
  color: #0284c7;
  font-family: var(--font-game);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  border: 2px solid #bae6fd;
}

.section-title {
  font-family: var(--font-game);
  font-size: 2.35rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   Game Modes Section (Adventure vs Endless)
   ========================================================================== */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.mode-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 3px solid var(--card-border);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mode-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
}

.mode-card.adventure {
  border-color: #fde047;
}

.mode-card.endless {
  border-color: #7dd3fc;
}

.mode-header-art {
  width: 100%;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 24px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.1));
  transition: transform var(--transition-fast);
}

.mode-card:hover .mode-header-art {
  transform: scale(1.04);
}

.mode-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-game);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.adventure .mode-tag {
  background: #fef3c7;
  color: #b45309;
}

.endless .mode-tag {
  background: #e0f2fe;
  color: #0369a1;
}

.mode-title {
  font-family: var(--font-game);
  font-size: 1.8rem;
  color: #0f172a;
  margin-bottom: 12px;
}

.mode-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.mode-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.mode-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #334155;
  font-size: 0.98rem;
}

.mode-perks li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #10b981;
}

/* ==========================================================================
   Floating Worlds Showcase (All 8 Worlds with Gentle Floating Cadence)
   ========================================================================== */
.worlds-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.world-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  border: 3px solid #e0f2fe;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  position: relative;
}

/* Staggered gentle island floating in the breeze */
.world-card:nth-child(1) .world-island-img { animation: islandDrift 4.5s ease-in-out infinite alternate; }
.world-card:nth-child(2) .world-island-img { animation: islandDrift 5.2s ease-in-out infinite alternate 0.5s; }
.world-card:nth-child(3) .world-island-img { animation: islandDrift 4.8s ease-in-out infinite alternate 1.1s; }
.world-card:nth-child(4) .world-island-img { animation: islandDrift 5.5s ease-in-out infinite alternate 0.8s; }
.world-card:nth-child(5) .world-island-img { animation: islandDrift 4.6s ease-in-out infinite alternate 1.4s; }
.world-card:nth-child(6) .world-island-img { animation: islandDrift 5.1s ease-in-out infinite alternate 0.3s; }
.world-card:nth-child(7) .world-island-img { animation: islandDrift 4.9s ease-in-out infinite alternate 1.7s; }
.world-card:nth-child(8) .world-island-img { animation: islandDrift 5.4s ease-in-out infinite alternate 0.9s; }

@keyframes islandDrift {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1.2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.world-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--card-shadow-hover);
  border-color: #38bdf8;
}

.world-card:hover .world-island-img {
  animation-play-state: paused;
  transform: scale(1.12) rotate(2deg);
}

.world-island-wrap {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
}

.world-island-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(2, 132, 199, 0.22));
  transition: transform var(--transition-fast);
  will-change: transform;
}

.world-stars-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  color: #b45309;
  font-family: var(--font-game);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
  border: 1px solid #fde68a;
  white-space: nowrap;
}

.world-stars-badge img {
  width: 15px;
  height: 15px;
}

.world-name {
  font-family: var(--font-game);
  font-size: 1.35rem;
  color: #0f172a;
  margin-bottom: 8px;
}

.world-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   How to Play / Features
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border: 2px solid #e0f2fe;
  box-shadow: var(--card-shadow);
  text-align: center;
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.step-card:hover {
  transform: translateY(-8px);
  border-color: #38bdf8;
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%);
  color: #78350f;
  font-family: var(--font-game);
  font-weight: 700;
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 8px rgba(217, 119, 6, 0.3);
  transition: transform var(--transition-fast);
}

.step-card:hover .step-number {
  transform: translateX(-50%) scale(1.15) rotate(6deg);
}

.step-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto 20px;
  color: #0284c7;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.step-card:hover .step-icon-wrap {
  transform: scale(1.1);
  background-color: #bae6fd;
}

.step-title {
  font-family: var(--font-game);
  font-size: 1.25rem;
  color: #0f172a;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Screenshots Gallery (4-Item Responsive Grid)
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

.screenshot-item {
  background: #ffffff;
  border-radius: 28px;
  padding: 12px;
  border: 3px solid #e0f2fe;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.screenshot-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--card-shadow-hover);
  border-color: #38bdf8;
}

.screenshot-img-wrap {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.screenshot-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.screenshot-item:hover .screenshot-img-wrap img {
  transform: scale(1.03);
}

.screenshot-caption {
  font-family: var(--font-game);
  font-size: 1.1rem;
  font-weight: 600;
  color: #0369a1;
  text-align: center;
  padding: 14px 8px 6px;
}

.more-screens-hint {
  text-align: center;
  margin-top: 36px;
  padding: 18px 26px;
  background: #ffffff;
  border-radius: var(--radius-pill);
  border: 2px dashed #7dd3fc;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #0369a1;
  font-family: var(--font-game);
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
  transition: transform var(--transition-fast);
}

.more-screens-hint:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   Call To Action (CTA) Banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(2, 132, 199, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-content {
  max-width: 620px;
  position: relative;
  z-index: 2;
}

.cta-title {
  font-family: var(--font-game);
  font-size: 2.3rem;
  line-height: 1.2;
  margin-bottom: 14px;
}

.cta-desc {
  font-size: 1.15rem;
  color: #e0f2fe;
  font-weight: 600;
  margin-bottom: 24px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.cta-icon-preview {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.cta-icon-preview img {
  width: 160px;
  height: 160px;
  border-radius: 36px;
  border: 4px solid #ffffff;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
  animation: gentleBob 3.8s ease-in-out infinite alternate;
}

/* ==========================================================================
   Page Inner Hero (About, Feedback, Privacy)
   ========================================================================== */
.page-hero {
  background: linear-gradient(180deg, #38bdf8 0%, #7dd3fc 45%, #bae6fd 80%, #f0f9ff 100%);
  padding: 60px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero-title {
  font-family: var(--font-game);
  font-size: 3rem;
  color: #0369a1;
  text-shadow: 2px 2px 0 #ffffff;
  margin-bottom: 12px;
}

.page-hero-desc {
  font-size: 1.2rem;
  font-weight: 600;
  color: #334155;
  max-width: 640px;
  margin: 0 auto;
}

/* ==========================================================================
   Content Card / Doc Layout (Privacy Policy, About)
   ========================================================================== */
.content-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 2px solid #e0f2fe;
  box-shadow: var(--card-shadow);
  margin-bottom: 40px;
}

.content-box h2 {
  font-family: var(--font-game);
  font-size: 1.7rem;
  color: #0369a1;
  margin: 30px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0f2fe;
}

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

.content-box h3 {
  font-family: var(--font-game);
  font-size: 1.3rem;
  color: #0f172a;
  margin: 22px 0 10px;
}

.content-box p {
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.content-box ul, .content-box ol {
  margin: 14px 0 20px 24px;
  color: #334155;
}

.content-box li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.policy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.service-card {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 18px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: #7dd3fc;
}

.service-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.service-card h4 {
  font-family: var(--font-game);
  font-size: 1.2rem;
  color: #0369a1;
  margin: 0;
}

.service-link {
  font-size: 0.88rem;
  color: #0284c7;
  font-weight: 700;
  text-decoration: underline;
}

/* ==========================================================================
   Feedback Page Specifics
   ========================================================================== */
.feedback-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.feedback-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 2px solid #e0f2fe;
  box-shadow: var(--card-shadow);
}

.email-highlight-box {
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  border: 2px dashed #0284c7;
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-bottom: 32px;
}

.email-address {
  font-family: var(--font-game);
  font-size: 1.45rem;
  color: #0284c7;
  display: block;
  margin: 8px 0 14px;
  word-break: break-all;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 2px solid #0284c7;
  color: #0284c7;
  font-family: var(--font-game);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background: #0284c7;
  color: #ffffff;
  transform: translateY(-2px);
}

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

.form-label {
  display: block;
  font-family: var(--font-game);
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid #cbd5e1;
  background: #f8fafc;
  font-size: 1rem;
  color: #0f172a;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

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

/* FAQ Accordion with Smooth Sliding */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 2px solid #e0f2fe;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.faq-item.active {
  border-color: #0284c7;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.08);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-game);
  font-size: 1.15rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: #0284c7;
}

.faq-icon {
  font-size: 1.3rem;
  font-weight: bold;
  color: #0284c7;
  transition: transform var(--transition-smooth);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
  animation: fadeInDown 0.3s ease;
}

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

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 2px solid #e0f2fe;
  padding: 60px 0 30px;
  position: relative;
}

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

.footer-brand p {
  color: var(--text-muted);
  margin-top: 14px;
  max-width: 320px;
  font-size: 0.95rem;
}

.footer-col-title {
  font-family: var(--font-game);
  font-size: 1.15rem;
  color: #0369a1;
  margin-bottom: 18px;
}

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

.footer-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: #0284c7;
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid #e2e8f0;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-light);
  flex-wrap: wrap;
  gap: 16px;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-game);
  font-size: 0.95rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1200px) {
  .worlds-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-logo-img {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta-group {
    justify-content: center;
  }
  
  .hero-highlights {
    justify-content: center;
  }
  
  .worlds-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  
  .feedback-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 30px 24px;
    gap: 20px;
    border-bottom: 2px solid #bae6fd;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }
  
  .nav-menu.open {
    transform: translateY(0);
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-cta {
    display: none;
  }
  
  .hero-title {
    font-size: 2.15rem;
  }
  
  .page-hero-title {
    font-size: 2.2rem;
  }
  
  .modes-grid {
    grid-template-columns: 1fr;
  }
  
  .worlds-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }
  
  .cta-actions {
    align-items: center;
  }

  .cta-btns {
    justify-content: center;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .content-box {
    padding: 28px 20px;
  }
}
