/* ==========================================================================
   COLOR MATCH TRAIL - EXACT PAGE DESIGN STYLESHEET
   Matching page_design.jpg: Sunny fairytale garden, wood banners,
   bear mascot, 5-feature cards, 4-step demo flow, screenshot carousel.
   ========================================================================== */

:root {
  --primary-green: #48c437;
  --green-btn-top: #52d235;
  --green-btn-bot: #289b14;
  --purple-btn-top: #8b3fe7;
  --purple-btn-bot: #5b1aa8;
  
  --wood-dark: #4a240c;
  --wood-mid: #683713;
  --wood-light: #8e4e1f;
  --wood-border: #ffd233;
  
  --sky-blue: #4aa3ff;
  --navy-demo-bg: #0c1e45;
  --navy-demo-card: #152b5d;
  --footer-bg: #061920;
  
  --text-dark: #1e293b;
  --text-gold: #ffe66d;
  
  --font-game: 'Fredoka', 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-btn: 0 4px 0 rgba(0, 0, 0, 0.25), 0 8px 18px rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: #f7f9fa;
  color: #1e293b;
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
/* ==========================================================================
   TOP NAVIGATION HEADER (Translucent Capsule Style)
   ========================================================================== */
.top-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  padding: 16px 0 10px;
  transition: all 0.3s ease;
}

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

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

.brand-nav-logo-wood {
  height: 54px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-nav-logo-wood:hover {
  transform: scale(1.08) rotate(-1deg);
}

/* Center Capsule */
.nav-capsule-wrap {
  background: rgba(14, 30, 56, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 5px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.nav-capsule-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.capsule-link {
  color: #f1f5f9;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 7px 18px;
  border-radius: 999px;
  transition: all 0.2s ease;
  display: inline-block;
}

.capsule-link.active {
  background: #1976d2;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(25, 118, 210, 0.45);
}

.capsule-link:hover:not(.active) {
  color: #ffd233;
  background: rgba(255, 255, 255, 0.1);
}

/* Header Right Actions */
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-pill-link {
  color: #ffffff;
  font-size: 0.82rem;
  padding: 6px 12px;
}

.btn-nav-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 50%, #15803d 100%);
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  font-family: var(--font-game);
  font-weight: 900;
  font-size: 0.92rem;
  padding: 8px 22px;
  text-decoration: none;
  box-shadow: 0 4px 0 #14532d, 0 6px 16px rgba(21, 128, 61, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-nav-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #14532d, 0 10px 20px rgba(21, 128, 61, 0.5);
}

.dl-play-icon {
  font-size: 0.75rem;
}

.btn-nav-scan {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(14, 30, 56, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.btn-nav-scan:hover {
  background: rgba(25, 118, 210, 0.85);
  border-color: #ffd233;
  transform: scale(1.05);
}

.scan-icon {
  font-size: 1.25rem;
}

/* ==========================================================================
   HERO SECTION (FAIRYTALE GARDEN WITH HOME MOB & MASCOT)
   ========================================================================== */
.hero-wrapper {
  position: relative;
  width: 100%;
  min-height: 58vh;
  max-height: 580px;
  background: url('/images/home bg.png') center bottom / cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding-top: 65px;
  padding-bottom: 10px;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(180deg, rgba(14, 38, 76, 0.4) 0%, transparent 100%);
  pointer-events: none;
}

.hero-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hero-grid-3col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  align-items: flex-end;
  gap: 14px;
  min-height: auto;
}

/* LEFT COLUMN */
.hero-col-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding-bottom: 6px;
}

/* OFFICIAL COLOR MATCH TRAIL WOODEN 3D LOGO */
.hero-game-logo-wrap {
  width: 100%;
  max-width: 280px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 3px;
}

.hero-game-logo-wood-img {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 12px rgba(255, 210, 51, 0.25));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.hero-game-logo-wood-img:hover {
  transform: scale(1.04) rotate(-1deg);
}

/* WOODEN BANNER (MATCH • SOLVE • EXPLORE A BRIGHTER WORLD!) */
.hero-wood-banner {
  position: relative;
  background: linear-gradient(180deg, #7c3f15 0%, #4a2107 100%);
  border: 2px solid #ffd233;
  border-radius: 10px;
  padding: 4px 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), inset 0 2px 2px rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 280px;
  width: 100%;
  margin-bottom: 6px;
  user-select: none;
}

.hero-wood-banner-title {
  font-family: var(--font-game);
  font-weight: 900;
  font-size: 0.74rem;
  color: #fef08a;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 1.5px 1.5px 0 #281102;
  text-align: center;
  line-height: 1.25;
}

.wood-bolt {
  position: absolute;
  color: #ffd233;
  font-size: 0.7rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.wood-bolt.bolt-left { left: 6px; }
.wood-bolt.bolt-right { right: 6px; }

/* 4 Feature Badges (Fun Puzzles, Exciting Challenges, Beautiful Worlds, Daily Rewards) */
.hero-4-badges-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  width: 100%;
  max-width: 295px;
  margin-bottom: 8px;
}

.hero-badge-pill {
  background: linear-gradient(180deg, #ffffff 0%, #fffbf0 50%, #fef3c7 100%);
  border: 1.5px solid #fed7aa;
  border-radius: 10px;
  padding: 5px 2px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12), inset 0 1px 2px #ffffff;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.badge-pill-icon {
  font-size: 1.2rem;
  margin-bottom: 1px;
  line-height: 1;
}

.badge-pill-title {
  font-family: var(--font-game);
  font-weight: 800;
  font-size: 0.62rem;
  color: #3b1d06;
  line-height: 1.15;
}

/* Action Stack: Play Now + Try Demo + Google Play */
.hero-action-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.hero-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-hero-play-3d {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 45%, #15803d 100%);
  border: 2.5px solid #ffffff;
  border-radius: 999px;
  padding: 7px 18px;
  color: #ffffff;
  font-family: var(--font-game);
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 4px 0 #14532d, 0 8px 15px rgba(0, 0, 0, 0.4);
  text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-hero-play-3d:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #14532d, 0 12px 18px rgba(0, 0, 0, 0.5);
}

.hero-play-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  color: #16a34a;
  font-size: 0.7rem;
  font-weight: 900;
  padding-left: 2px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-hero-demo-3d {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #9333ea 0%, #7e22ce 50%, #581c87 100%);
  border: 2.5px solid #ffffff;
  border-radius: 999px;
  padding: 7px 16px;
  color: #ffffff;
  font-family: var(--font-game);
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 4px 0 #3b0764, 0 8px 15px rgba(0, 0, 0, 0.4);
  text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-hero-demo-3d:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #3b0764, 0 12px 18px rgba(0, 0, 0, 0.5);
}

.hero-demo-icon {
  font-size: 1rem;
}

.hero-google-play-badge {
  height: 34px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
  transition: transform 0.2s ease;
}

.hero-google-play-badge:hover {
  transform: scale(1.04);
}

/* CENTER COLUMN: TILTED PHONE MOCKUP WITH LIVELY 3D FLOATING ANIMATION */
.hero-col-center {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  z-index: 5;
  padding-bottom: 2px;
}

.hero-phone-stage {
  position: relative;
  width: 100%;
  max-width: 200px;
  transform-origin: center bottom;
  animation: heroPhoneFloatTilt 4.5s ease-in-out infinite;
  filter: drop-shadow(0 14px 25px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 14px rgba(255, 210, 51, 0.25));
  transition: filter 0.3s ease;
}

@keyframes heroPhoneFloatTilt {
  0% {
    transform: translateY(0px) rotate(-7deg) scale(1);
  }
  50% {
    transform: translateY(-10px) rotate(-3.5deg) scale(1.02);
  }
  100% {
    transform: translateY(0px) rotate(-7deg) scale(1);
  }
}

.hero-phone-stage:hover {
  animation-play-state: paused;
  transform: translateY(-6px) rotate(-4.5deg) scale(1.04);
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 18px rgba(255, 210, 51, 0.45));
}

.hero-phone-img {
  width: 100%;
  height: auto;
  display: block;
}

/* RIGHT COLUMN: WOODEN SIGN + MASCOT BEAR */
.hero-col-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  padding-bottom: 2px;
}

.hero-right-spacer {
  height: 40px;
  width: 100%;
  /* Leaves the 'Small Puzzles, Big Joy!' sign painted on home bg.png completely visible */
}

.hero-mascot-stage {
  position: relative;
  max-width: 170px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-bear-mascot-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.5));
  transform-origin: bottom center;
  animation: mascotGentleWave 4s ease-in-out infinite;
}

@keyframes mascotGentleWave {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(1.5deg);
  }
}

/* RESPONSIVENESS */
@media (max-width: 1120px) {
  .hero-grid-3col {
    grid-template-columns: 1fr 0.85fr 0.85fr;
    gap: 12px;
  }
  .hero-game-logo-3d {
    padding: 8px 18px 6px;
  }
  .word-color { font-size: 2.3rem; }
  .word-match { font-size: 2.1rem; }
  .trail-letters { font-size: 2.1rem; }
  .hero-phone-stage {
    max-width: 235px;
  }
  .hero-mascot-stage {
    max-width: 190px;
  }
  .hero-right-spacer {
    height: 60px;
  }
}

@media (max-width: 900px) {
  .hero-wrapper {
    min-height: auto;
    max-height: none;
    padding-top: 85px;
    padding-bottom: 30px;
  }
  .hero-grid-3col {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
  }
  .hero-col-left {
    align-items: center;
    text-align: center;
  }
  .hero-game-logo-3d {
    padding: 8px 16px 6px;
  }
  .word-color { font-size: 2.2rem; }
  .word-match { font-size: 2rem; }
  .trail-letters { font-size: 2rem; }
  .hero-action-stack {
    align-items: center;
  }
  .hero-phone-stage {
    max-width: 240px;
  }
  .hero-right-spacer {
    display: none;
  }
  .nav-capsule-wrap {
    display: none;
  }
}

/* ==========================================================================
   SECTION 2: WHY YOU'LL LOVE COLOR MATCH TRAIL — PREMIUM REDESIGN
   ========================================================================== */
.section-why-love {
  position: relative;
  padding: 80px 0 90px;
  background: linear-gradient(135deg, #0f1c3a 0%, #1a2f5e 40%, #0d3b2e 100%);
  overflow: hidden;
}

/* Decorative floating blobs */
.section-why-love::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 196, 55, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.section-why-love::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

/* Section Title */
.section-leaf-title {
  text-align: center;
  font-family: var(--font-game);
  font-size: 2.4rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  position: relative;
  z-index: 2;
}

.section-leaf-title span.color-title {
  background: linear-gradient(90deg, #4ade80, #ffd233, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Dark-background variant — for sections with light backgrounds */
.section-leaf-title--dark {
  color: #1e293b;
  text-shadow: none;
}

.section-leaf-title--dark span.color-title {
  background: linear-gradient(90deg, #16a34a, #ca8a04, #ea580c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle tagline under title */
.why-love-subtitle {
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 52px;
  position: relative;
  z-index: 2;
  letter-spacing: 0.02em;
}

/* Cards Grid */
.why-cards-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
  z-index: 2;
}

/* Individual Card — Glass Style */
.why-feature-card {
  position: relative;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 36px 20px 30px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.12);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.why-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 24px 24px 0 0;
  transition: opacity 0.3s ease;
}

/* Each card gets its own top accent color */
.why-feature-card:nth-child(1)::before { background: linear-gradient(90deg, #f59e0b, #fde68a); }
.why-feature-card:nth-child(2)::before { background: linear-gradient(90deg, #ec4899, #f9a8d4); }
.why-feature-card:nth-child(3)::before { background: linear-gradient(90deg, #3b82f6, #93c5fd); }
.why-feature-card:nth-child(4)::before { background: linear-gradient(90deg, #ef4444, #fca5a5); }
.why-feature-card:nth-child(5)::before { background: linear-gradient(90deg, #22c55e, #86efac); }

.why-feature-card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Icon Bubble */
.why-card-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.why-feature-card:hover .why-card-icon {
  transform: scale(1.15) rotate(-5deg);
}

/* Per-card icon bubble colors */
.why-feature-card:nth-child(1) .why-card-icon { background: linear-gradient(135deg, #f59e0b, #fcd34d); }
.why-feature-card:nth-child(2) .why-card-icon { background: linear-gradient(135deg, #ec4899, #f9a8d4); }
.why-feature-card:nth-child(3) .why-card-icon { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.why-feature-card:nth-child(4) .why-card-icon { background: linear-gradient(135deg, #ef4444, #f87171); }
.why-feature-card:nth-child(5) .why-card-icon { background: linear-gradient(135deg, #22c55e, #4ade80); }

/* Card Title */
.why-card-title {
  font-family: var(--font-game);
  font-size: 1.1rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Card Description */
.why-card-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}

/* ==========================================================================
   SECTION 3: DEMO – WATCH HOW TO PLAY (4 Steps Flow)
   ========================================================================== */
.section-demo-flow {
  background: #f1f5f9;
  padding: 60px 0;
}

.demo-flow-container {
  background: linear-gradient(180deg, #0f224a 0%, #152c5d 100%);
  border: 4px solid #ffcc00;
  border-radius: 26px;
  padding: 36px 30px;
  box-shadow: 0 20px 50px rgba(15, 34, 74, 0.4);
}

.demo-flow-header {
  text-align: center;
  font-family: var(--font-game);
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffdf00;
  margin-bottom: 30px;
  text-shadow: 2px 2px 0 #000;
}

.steps-flow-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1.1fr;
  align-items: center;
  gap: 12px;
}

.step-box-card {
  background: #1e3a75;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.step-box-img {
  width: 100%;
  aspect-ratio: 1/1;
  background: #0f1c3a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.step-box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-box-caption {
  padding: 10px 8px;
  font-family: var(--font-game);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffea75;
  line-height: 1.25;
}

.step-arrow-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffcc00;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b1d06;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

/* 5th Interactive Demo Card */
.demo-trigger-card {
  background: linear-gradient(180deg, #1b3570 0%, #11234c 100%);
  border: 3px dashed #ffcc00;
  border-radius: 18px;
  padding: 20px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.play-demo-circle-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  border: 3px solid #fff;
  color: #fff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
}

.play-demo-circle-btn:hover {
  transform: scale(1.1);
}

.demo-trigger-title {
  font-family: var(--font-game);
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 4px;
}

.demo-trigger-sub {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* ==========================================================================
   SECTION 4: GAME SCREENSHOTS SLIDER & CAROUSEL
   ========================================================================== */
.section-screenshots {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
  position: relative;
  overflow: hidden;
}

.screenshots-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-viewport {
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  padding: 10px 4px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 12px 6px;
  cursor: grab;
  user-select: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track.is-dragging {
  scroll-behavior: auto;
  cursor: grabbing;
}

.screenshot-card {
  flex: 0 0 calc(25% - 15px);
  scroll-snap-align: start;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 3.5px solid #ffd233;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  cursor: pointer;
}

.screenshot-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 35px rgba(255, 210, 51, 0.3), 0 8px 16px rgba(0, 0, 0, 0.25);
  border-color: #ffe66d;
}

.screenshot-img-box {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #0b1329;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.screenshot-card:hover .screenshot-img {
  transform: scale(1.05);
}

.screenshot-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 25, 48, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.screenshot-card:hover .screenshot-zoom-overlay {
  opacity: 1;
}

.zoom-badge {
  background: #ffcc00;
  color: #3b1d06;
  font-family: var(--font-game);
  font-size: 0.85rem;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transform: scale(0.9);
  transition: transform 0.2s;
}

.screenshot-card:hover .zoom-badge {
  transform: scale(1);
}

.screenshot-label {
  padding: 10px 8px;
  background: linear-gradient(180deg, #5c2b0b 0%, #3e1b04 100%);
  border-top: 2px solid #ffd233;
  font-family: var(--font-game);
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffea75;
  text-align: center;
  letter-spacing: 0.02em;
  text-shadow: 1px 1px 0 #1c0b02;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd700 0%, #e69d00 100%);
  border: 3px solid #ffffff;
  color: #3b1d06;
  font-size: 1.6rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  user-select: none;
  z-index: 10;
}

.carousel-nav-btn:hover {
  transform: scale(1.12);
  background: linear-gradient(180deg, #ffe033 0%, #ffad14 100%);
}

.carousel-nav-btn:active {
  transform: scale(0.95);
}

/* Dots Indicator */
.carousel-dots-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #cbd5e1;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  width: 32px;
  background: linear-gradient(90deg, #ffcc00 0%, #f59e0b 100%);
  border-color: #ffd233;
}

/* Lightbox Modal */
.screenshot-lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 22, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.screenshot-lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content-box {
  position: relative;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 24px;
  border: 4px solid #ffd233;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  background: #000;
}

.lightbox-caption {
  margin-top: 14px;
  font-family: var(--font-game);
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffdf00;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.lightbox-close-btn {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ef4444;
  border: 3px solid #fff;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s;
  z-index: 10;
}

.lightbox-close-btn:hover {
  transform: scale(1.15) rotate(90deg);
}

@media (max-width: 1024px) {
  .screenshot-card {
    flex: 0 0 calc(33.333% - 14px);
  }
}

@media (max-width: 768px) {
  .screenshot-card {
    flex: 0 0 calc(50% - 10px);
  }
  .carousel-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .screenshot-card {
    flex: 0 0 calc(80% - 8px);
  }
}

/* ==========================================================================
   SECTION 5: START YOUR PUZZLE JOURNEY TODAY (WOODEN BANNER)
   ========================================================================== */
.section-bottom-cta {
  padding: 40px 0 60px;
  background: #f1f5f9;
}

.wood-cta-plank {
  background: linear-gradient(180deg, #6c3713 0%, #462007 100%);
  border: 4px solid #ffcc00;
  border-radius: 28px;
  padding: 36px 40px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.wood-cta-mascot {
  width: 140px;
  height: auto;
}

.wood-cta-mascot img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
}

.wood-cta-title {
  font-family: var(--font-game);
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 6px;
  text-shadow: 2px 2px 0 #281102;
}

.wood-cta-sub {
  font-size: 1rem;
  color: #fde68a;
  margin-bottom: 18px;
}

.checklist-wood-box {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 204, 0, 0.4);
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-game);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.check-green-icon {
  color: #4ade80;
}

/* ==========================================================================
   FOOTER — PREMIUM REDESIGN
   ========================================================================== */
.footer-dark {
  position: relative;
  background: linear-gradient(180deg, #060d1f 0%, #0a1628 60%, #070f1d 100%);
  border-top: 3px solid transparent;
  background-clip: padding-box;
  padding: 64px 0 0;
  color: #94a3b8;
  font-size: 0.9rem;
  overflow: hidden;
}

/* Top glowing border accent */
.footer-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #22c55e 0%, #ffd233 35%, #f97316 65%, #3b82f6 100%);
}

/* Decorative background glow blobs */
.footer-dark::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Footer Top Grid */
.footer-top-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}

/* Brand Column */
.footer-logo-wood {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(255, 210, 51, 0.35));
  margin-bottom: 14px;
  display: block;
  transition: filter 0.3s ease;
}

.footer-logo-wood:hover {
  filter: drop-shadow(0 4px 20px rgba(255, 210, 51, 0.6));
}

.footer-brand-title {
  font-family: var(--font-game);
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
}

.footer-brand-tagline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.8);
  line-height: 1.55;
  margin-bottom: 20px;
}

/* Google Play badge in footer */
.footer-play-badge {
  height: 36px;
  width: auto;
  display: block;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.5));
  transition: transform 0.2s ease;
}

.footer-play-badge:hover {
  transform: scale(1.05);
}

/* Column Titles */
.footer-col-title {
  font-family: var(--font-game);
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 7px;
}

.footer-col-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.12), transparent);
}

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

.footer-link-a {
  color: #64748b;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, gap 0.2s ease;
}

.footer-link-a::before {
  content: '›';
  color: #22c55e;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.footer-link-a:hover {
  color: #e2e8f0;
  gap: 10px;
}

.footer-link-a:hover::before {
  transform: translateX(3px);
}

/* Social Icons */
.social-icons-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.social-btn:hover {
  transform: translateY(-4px) scale(1.1);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Contact column */
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.84rem;
  color: #64748b;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.footer-contact-item:hover {
  color: #cbd5e1;
}

.footer-contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Divider above bottom bar */
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin: 0;
  position: relative;
  z-index: 2;
}

/* Bottom Bar */
.footer-bottom-bar {
  padding: 20px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: #475569;
}

.footer-legal-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #334155;
  display: inline-block;
  vertical-align: middle;
}

.footer-legal-link {
  color: #475569;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-link:hover {
  color: #ffd233;
}

.footer-bottom-tagline {
  font-family: var(--font-game);
  color: #fde68a;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   AUTHENTIC MOBILE GAME CABINET & 3D JELLY BLOCKS
   100% Matching Color Match Trail Game Screenshots
   ========================================================================== */
.playable-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 20, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.playable-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Realistic Smartphone Bezel */
.game-phone-bezel {
  position: relative;
  width: 100%;
  max-width: 410px;
  background: #18191c;
  border: 5px solid #2d2e33;
  border-radius: 46px;
  padding: 10px 10px 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 0 2px #44464f, inset 0 0 4px rgba(255, 255, 255, 0.2);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  animation: phonePopIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes phonePopIn {
  0% { transform: scale(0.9) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close-x {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff4158, #b8051e);
  border: 2.5px solid #ffffff;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  z-index: 50;
  transition: transform 0.2s;
}

.modal-close-x:hover {
  transform: scale(1.15) rotate(90deg);
}

/* Phone Top Notch (Dynamic Island) */
.phone-notch-bar {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 105px;
  height: 22px;
  background: #000000;
  border-radius: 20px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.phone-speaker-pill {
  width: 32px;
  height: 4px;
  background: #222;
  border-radius: 4px;
}

.phone-cam-lens {
  width: 9px;
  height: 9px;
  background: #111e2e;
  border: 1px solid #1a2f45;
  border-radius: 50%;
}

/* Game Viewport Screen (Rich Fairy Garden Background) */
.game-viewport-screen {
  position: relative;
  width: 100%;
  background: url('/images/home bg.png') center top / cover no-repeat, linear-gradient(180deg, #51a6f5 0%, #a2d677 60%, #4a8027 100%);
  border-radius: 38px;
  overflow: hidden;
  padding: 26px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.4);
}

/* TOP ROW: Wooden Level 1 Plaque & Pause Button */
.game-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.wood-level-plaque {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #6c3713 0%, #421d07 100%);
  border: 2.5px solid #230d01;
  border-radius: 12px;
  padding: 4px 14px;
  box-shadow: 0 3px 0 #1b0a01, 0 6px 10px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 230, 100, 0.5);
}

.plaque-level-txt {
  font-family: var(--font-game);
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 1px 2px 0 #1f0d03;
  letter-spacing: 0.02em;
}

.plaque-leaf-flower {
  font-size: 1.1rem;
}

.wood-pause-btn {
  width: 40px;
  height: 40px;
  background: linear-gradient(180deg, #7c4118 0%, #4a2108 100%);
  border: 2.5px solid #230d01;
  border-radius: 12px;
  color: #ffde59;
  font-size: 1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 0 #1b0a01, 0 5px 8px rgba(0, 0, 0, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  transition: transform 0.15s;
}

.wood-pause-btn:hover {
  transform: scale(1.06);
}

.wood-pause-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #1b0a01;
}

/* STATS & MASCOT TRIO ROW */
.game-mascot-stats-trio {
  display: grid;
  grid-template-columns: 82px 1fr 82px;
  align-items: flex-end;
  gap: 8px;
  margin-top: -2px;
}

.wood-stat-card {
  background: linear-gradient(180deg, #2a1608 0%, #150902 100%);
  border: 2.5px solid #4a250c;
  border-radius: 14px;
  padding: 6px 4px;
  text-align: center;
  box-shadow: 0 3px 0 #0d0400, 0 6px 12px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 210, 51, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

.stat-card-lbl {
  font-family: var(--font-game);
  font-size: 0.68rem;
  font-weight: 900;
  color: #d1b190;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.stat-card-val {
  font-family: var(--font-game);
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  line-height: 1;
}

/* Mascot Bear in Center */
.wood-mascot-bear-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 94px;
}

.wood-mascot-bear-img {
  max-height: 100%;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
  animation: bearBreathe 3.5s ease-in-out infinite;
}

@keyframes bearBreathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.02); }
}

/* GOALS WOODEN SHELF */
.wood-goals-shelf {
  background: linear-gradient(180deg, #2a1608 0%, #170b03 100%);
  border: 2.5px solid #5a3010;
  border-radius: 14px;
  padding: 5px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  box-shadow: 0 3px 0 #0d0400, 0 6px 12px rgba(0, 0, 0, 0.45), inset 0 1px 2px rgba(255, 220, 80, 0.3);
}

.wood-goal-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 210, 51, 0.25);
  transition: transform 0.2s;
}

.wood-goal-pill.done {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  border-color: #34d399;
}

.goal-pill-icon-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.goal-pill-icon-box.heart-box {
  background: linear-gradient(180deg, #ff3355, #c80025);
}

.goal-pill-icon-box.moon-box {
  background: linear-gradient(180deg, #ffc800, #d98200);
}

.goal-pill-icon-box.leaf-box {
  background: linear-gradient(180deg, #22c55e, #15803d);
}

.goal-pill-icon-box.droplet-box {
  background: linear-gradient(180deg, #0ea5e9, #0284c7);
}

.goal-svg-icon {
  width: 14px;
  height: 14px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5));
}

.goal-pill-text {
  font-family: var(--font-game);
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 1px 1px 0 #000000;
}

/* GAME BOARD WOODEN CABINET (6x7 Grid) */
.game-cabinet-outer-wood {
  background: linear-gradient(180deg, #44220b 0%, #261104 100%);
  border: 3.5px solid #ffd233;
  border-radius: 20px;
  padding: 6px;
  box-shadow: 0 6px 0 #150801, 0 10px 22px rgba(0, 0, 0, 0.7), inset 0 2px 4px rgba(255, 230, 100, 0.6);
}

.game-cabinet-inner-board {
  position: relative;
  background: #0d1527;
  border-radius: 14px;
  overflow: hidden;
  padding: 6px;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.85);
}

/* SVG Trail Layer */
.board-svg-trail-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
}

/* 6x7 Tile Grid */
.puzzle-board-6x7 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 5px;
  width: 100%;
  aspect-ratio: 6 / 7;
  touch-action: none;
}

/* 3D EMBOSSED JELLY/PLASTIC BLOCKS */
.puzzle-tile {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.12s ease;
}

/* 1. Yellow Moon Block */
.puzzle-tile.tile-yellow {
  background: linear-gradient(180deg, #ffe033 0%, #f5ab00 50%, #d47e00 100%);
  box-shadow: 0 4px 0 #945200, 0 5px 8px rgba(0, 0, 0, 0.35), inset 0 2px 3px rgba(255, 255, 255, 0.8), inset 0 -2px 3px rgba(0, 0, 0, 0.3);
}

.puzzle-tile.tile-yellow .tile-emboss-svg {
  fill: #a65800;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.7));
}

/* 2. Green Leaf Block */
.puzzle-tile.tile-green {
  background: linear-gradient(180deg, #3adb24 0%, #1eb809 50%, #128203 100%);
  box-shadow: 0 4px 0 #0b4e02, 0 5px 8px rgba(0, 0, 0, 0.35), inset 0 2px 3px rgba(255, 255, 255, 0.8), inset 0 -2px 3px rgba(0, 0, 0, 0.3);
}

.puzzle-tile.tile-green .tile-emboss-svg {
  fill: #0c5202;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.6));
}

/* 3. Red Heart Block */
.puzzle-tile.tile-red {
  background: linear-gradient(180deg, #ff435c 0%, #e31232 50%, #b0041d 100%);
  box-shadow: 0 4px 0 #6e0212, 0 5px 8px rgba(0, 0, 0, 0.35), inset 0 2px 3px rgba(255, 255, 255, 0.8), inset 0 -2px 3px rgba(0, 0, 0, 0.3);
}

.puzzle-tile.tile-red .tile-emboss-svg {
  fill: #780214;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.6));
}

/* 4. Blue Water Droplet Block */
.puzzle-tile.tile-blue {
  background: linear-gradient(180deg, #2eb5ff 0%, #0c8ee8 50%, #0263b0 100%);
  box-shadow: 0 4px 0 #013f70, 0 5px 8px rgba(0, 0, 0, 0.35), inset 0 2px 3px rgba(255, 255, 255, 0.8), inset 0 -2px 3px rgba(0, 0, 0, 0.3);
}

.puzzle-tile.tile-blue .tile-emboss-svg {
  fill: #024375;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.6));
}

/* Embossed Vector Glyph in Tile */
.tile-emboss-svg {
  width: 58%;
  height: 58%;
  pointer-events: none;
  transition: transform 0.15s ease;
}

/* ACTIVE TRAIL SELECTION (Luminous Golden Border Halo) */
.puzzle-tile.tile-selected {
  transform: scale(1.05);
  box-shadow: 0 0 12px 3px #fff875, 0 0 22px 6px #ffa500, inset 0 0 8px rgba(255, 255, 255, 0.95) !important;
  z-index: 10;
  animation: tileSelectedPulse 0.8s ease-in-out infinite alternate;
}

@keyframes tileSelectedPulse {
  0% { transform: scale(1.03); }
  100% { transform: scale(1.08); }
}

.puzzle-tile.tile-head {
  transform: scale(1.1);
  z-index: 12;
}

/* POWER-UP TILES */
.puzzle-tile.powerup-rocket {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  box-shadow: 0 4px 0 #0369a1, 0 0 14px rgba(56, 189, 248, 0.8);
}

.puzzle-tile.powerup-bomb {
  background: radial-gradient(circle at 35% 35%, #475569 0%, #0f172a 80%);
  border-radius: 50%;
  box-shadow: 0 4px 0 #020617, 0 0 14px rgba(245, 158, 11, 0.8);
}

.puzzle-tile.powerup-disco {
  background: linear-gradient(135deg, #ff007a, #9d00ff, #00f0ff, #ffe600);
  background-size: 300% 300%;
  border-radius: 50%;
  box-shadow: 0 4px 0 #4c0519, 0 0 18px rgba(255, 0, 122, 0.9);
  animation: discoShimmer 2s ease infinite;
}

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

.powerup-tile-icon {
  font-size: 1.4rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  animation: powerupBounce 1.5s ease-in-out infinite;
}

@keyframes powerupBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15) rotate(5deg); }
}

/* Tile Dynamic State Animations */
.puzzle-tile.tile-pop {
  transform: scale(1.35);
  opacity: 0;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
}

.puzzle-tile.tile-wobble {
  animation: tileShake 0.3s ease-in-out;
}

@keyframes tileShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px) rotate(-3deg); }
  75% { transform: translateX(4px) rotate(3deg); }
}

.puzzle-tile.tile-hint {
  animation: tileHintGlow 1.2s ease-in-out 3;
}

@keyframes tileHintGlow {
  0%, 100% { transform: scale(1); box-shadow: inherit; }
  50% { transform: scale(1.12); box-shadow: 0 0 18px #ffd233, inset 0 0 8px #ffffff; }
}

/* Floating Combo Badge */
.trail-floating-badge {
  position: absolute;
  transform: translate(-50%, -100%);
  padding: 4px 10px;
  background: linear-gradient(180deg, #ffcc00, #ff8800);
  border: 2px solid #ffffff;
  border-radius: 999px;
  font-family: var(--font-game);
  font-size: 0.82rem;
  font-weight: 900;
  color: #3b1d06;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 25;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.trail-floating-badge.hidden,
.announcement-banner.hidden,
.wood-game-popup-overlay.hidden {
  display: none !important;
}

/* Announcement Banner */
.announcement-banner {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, #ff5500, #ff0044);
  border: 3px solid #ffffff;
  border-radius: 16px;
  padding: 8px 18px;
  font-family: var(--font-game);
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  z-index: 30;
  white-space: nowrap;
  animation: bannerPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bannerPop {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* BOTTOM 6-SLOT WOODEN BOOSTER TRAY */
.wood-booster-tray-bar {
  background: linear-gradient(180deg, #44220b 0%, #261104 100%);
  border: 3px solid #6b3712;
  border-radius: 18px;
  padding: 6px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 0 #120601, 0 8px 16px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 210, 51, 0.3);
}

.booster-slot-item {
  position: relative;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  outline: none;
  transition: transform 0.15s;
}

.booster-slot-item:hover {
  transform: scale(1.12);
}

.booster-slot-item:active {
  transform: scale(0.95);
}

.booster-slot-item.active-booster .booster-circle-disc {
  border-color: #ffe600;
  box-shadow: 0 0 12px #ffe600, inset 0 0 6px #ffe600;
  animation: boosterPulse 0.8s infinite alternate;
}

@keyframes boosterPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.booster-circle-disc {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, #6c3713 0%, #3d1c07 100%);
  border: 2px solid #8e4f1f;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 0 #1b0a01, 0 4px 8px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.booster-circle-disc.plus5-bg {
  background: linear-gradient(180deg, #1d4ed8 0%, #1e3a8a 100%);
  border-color: #3b82f6;
}

.booster-art {
  font-size: 1.3rem;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

.plus5-lbl {
  font-family: var(--font-game);
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffde59;
}

.booster-red-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff3355, #c80025);
  border: 1.5px solid #ffffff;
  color: #ffffff;
  font-family: var(--font-game);
  font-size: 0.68rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* WOODEN GAME POPUP MODALS */
.wood-game-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 20, 0.82);
  backdrop-filter: blur(6px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 14px;
  animation: overlayFadeIn 0.25s ease;
}

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

.wood-popup-card {
  background: linear-gradient(180deg, #572b0e 0%, #301505 100%);
  border: 3.5px solid #ffd233;
  border-radius: 22px;
  padding: 22px 18px;
  text-align: center;
  width: 100%;
  max-width: 280px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 2px 4px rgba(255, 230, 100, 0.5);
  animation: popupCardBounce 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popupCardBounce {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.popup-star-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.win-star-item {
  font-size: 2rem;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}

.popup-card-heading {
  font-family: var(--font-game);
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffdf00;
  text-shadow: 2px 2px 0 #200c02;
  margin-bottom: 12px;
}

.popup-score-display {
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid rgba(255, 210, 51, 0.3);
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 16px;
}

.popup-score-title {
  display: block;
  font-family: var(--font-game);
  font-size: 0.72rem;
  font-weight: 800;
  color: #d1b190;
  letter-spacing: 0.08em;
}

.popup-score-num {
  font-family: var(--font-game);
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
}

.popup-fail-sub {
  font-family: var(--font-game);
  font-size: 0.95rem;
  color: #fde68a;
  margin-bottom: 16px;
}

.popup-action-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.popup-vertical-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wood-btn-pill {
  flex: 1;
  padding: 9px 12px;
  border-radius: 14px;
  font-family: var(--font-game);
  font-size: 0.92rem;
  font-weight: 900;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.4), 0 5px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s;
}

.wood-btn-pill:hover {
  transform: scale(1.05);
}

.btn-replay-action {
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
}

.btn-next-action {
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
}

.btn-extra-action {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

/* Particle Explosion Dots */
.pop-particle-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 40;
  animation: particleBurst 0.48s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes particleBurst {
  0% { transform: translate(0, 0) scale(1.2); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-3col {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-left-content {
    align-items: center;
  }
  .hero-badges-row {
    max-width: 440px;
  }
  .why-cards-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps-flow-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .step-arrow-circle {
    display: none;
  }
  .carousel-track {
    grid-template-columns: repeat(3, 1fr);
  }
  .wood-cta-plank {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-menu, .btn-header-dl {
    display: none;
  }
  .hero-game-title {
    font-size: 2.5rem;
  }
  .why-cards-row {
    grid-template-columns: 1fr;
  }
  .carousel-track {
    grid-template-columns: 1fr;
  }
  .steps-flow-row {
    grid-template-columns: 1fr;
  }
}
