/* =======================================================================
   SPARSHITAA'S SANCTUARY - GAMES & INTERACTIVE COMPONENTS STYLING
   ======================================================================= */

.games-section {
  margin: 6rem 0;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}

.game-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.game-card-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.game-card-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.game-card-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =======================================================================
   1. ANGRY NOSE METER & BIRD APPETITE
   ======================================================================= */
.meter-visual-container {
  position: relative;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 20px;
  padding: 2.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.meter-face {
  font-size: 4rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.meter-nose-wrapper {
  margin-top: -12px;
  position: relative;
  display: inline-block;
}

.meter-nose {
  display: inline-block;
  font-size: 2rem;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.meter-status-text {
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  min-height: 48px;
  color: var(--rose-soft);
}

.meter-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.2rem;
}

.meter-slider {
  width: 100%;
  accent-color: #ff758f;
  cursor: pointer;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.game-btn {
  background: linear-gradient(135deg, #ff8fa3 0%, #e05776 50%, #b51735 100%);
  color: white;
  border: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(181, 23, 53, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.game-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(181, 23, 53, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.game-btn:active {
  transform: scale(0.96);
}

/* Bird Appetite Subcard */
.appetite-card {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.food-visual-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 1rem;
}

.food-plate {
  font-size: 2.8rem;
}

.food-dialogue {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--amber-glow);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.6rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-grow: 1;
}

.food-progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.food-capacity-bar {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #ffe599, #f7b2bd);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* =======================================================================
   2. EMERGENCY VIRTUAL HUG DISPENSER
   ======================================================================= */
.hug-card {
  text-align: center;
}

.hug-stage {
  position: relative;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 20px;
  padding: 2.5rem 1rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hug-emoji-display {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  display: block;
}

.hug-message-display {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
}

.hug-counter-badge {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.hug-counter-badge strong {
  color: var(--rose-gold);
}

/* =======================================================================
   3. 3D GLOWING JAR OF 50+ REASONS
   ======================================================================= */
.jar-card {
  text-align: center;
}

.jar-visual-stage {
  position: relative;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 20px;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.jar-svg-container {
  width: 120px;
  height: 150px;
  position: relative;
  transition: transform 0.3s ease;
}

.jar-visual-stage:hover .jar-svg-container {
  transform: scale(1.06);
}

.firefly {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ffe599;
  border-radius: 50%;
  box-shadow: 0 0 10px #ffe599, 0 0 20px #ffd166;
  animation: fireflyFloat 3s infinite ease-in-out alternate;
}

.firefly:nth-child(1) { top: 40%; left: 35%; animation-delay: 0.2s; }
.firefly:nth-child(2) { top: 60%; left: 60%; animation-delay: 0.8s; }
.firefly:nth-child(3) { top: 75%; left: 40%; animation-delay: 1.4s; }

@keyframes fireflyFloat {
  0% { transform: translate(0, 0) scale(0.8); opacity: 0.4; }
  100% { transform: translate(6px, -12px) scale(1.2); opacity: 1; }
}

.jar-counter-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
}

/* Star Note Modal */
.star-note-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 21, 0.8);
  backdrop-filter: blur(12px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.star-note-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.star-note-modal.hidden {
  display: none;
}

.star-note-card {
  max-width: 480px;
  width: 100%;
  text-align: center;
  background: radial-gradient(circle at center, #26173a 0%, #120e24 100%);
  border: 2px solid var(--rose-gold);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(247, 178, 189, 0.3);
}

.note-star-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.note-number {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--amber-glow);
  margin-bottom: 1rem;
}

.note-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

/* =======================================================================
   4. CATCH GOOD VIBES MINI GAME
   ======================================================================= */
/* =======================================================================
   4. TEA BREWER STATION (HER LOVE FOR TEA ☕)
   ======================================================================= */
.tea-card {
  text-align: center;
}

.tea-stage {
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  padding: 2.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tea-steam-container {
  height: 28px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tea-steam-container.steaming {
  opacity: 1;
}

.steam-wave {
  width: 6px;
  height: 24px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  filter: blur(2px);
  animation: steamRise 1.8s infinite ease-in-out;
}

.steam-wave:nth-child(2) { animation-delay: 0.4s; }
.steam-wave:nth-child(3) { animation-delay: 0.8s; }

@keyframes steamRise {
  0% { transform: translateY(0) scaleX(1); opacity: 0.2; }
  50% { transform: translateY(-14px) scaleX(1.4); opacity: 0.7; }
  100% { transform: translateY(-28px) scaleX(2); opacity: 0; }
}

.tea-cup-display {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.tea-quote-text {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--amber-glow);
  min-height: 48px;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.tea-ingredients-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.tea-ingredient-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tea-ingredient-btn.selected {
  background: rgba(247, 178, 189, 0.25);
  border-color: var(--rose-gold);
  color: #fff;
  box-shadow: 0 0 10px rgba(247, 178, 189, 0.4);
}

/* =======================================================================
   5. CHEF SPARCHITAA'S MAGIC KITCHEN (HER LOVE FOR COOKING 🍳)
   ======================================================================= */
.chef-card {
  text-align: center;
}

.chef-dish-stage {
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  padding: 2.2rem 1.2rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chef-dish-emoji {
  font-size: 4.2rem;
  margin-bottom: 0.6rem;
  display: block;
}

.chef-dish-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--amber-glow);
  margin-bottom: 0.4rem;
}

.chef-dish-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  min-height: 42px;
}

.chef-michelin-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rose-gold);
  background: rgba(247, 178, 189, 0.12);
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 1px solid rgba(247, 178, 189, 0.25);
}

/* =======================================================================
   6. THE WISE SOUL: SCRIPTURE WISDOM & GUIDANCE 📖✨
   ======================================================================= */
.scripture-card {
  text-align: center;
  border: 1.5px solid rgba(255, 214, 165, 0.35);
  background: radial-gradient(circle at center, rgba(38, 22, 55, 0.85), rgba(12, 10, 26, 0.95));
}

.scripture-admire-lead {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.4rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  border-left: 3px solid var(--amber-glow);
}

.scripture-pearl-stage {
  position: relative;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 18px;
  padding: 1.8rem 1.2rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255, 214, 165, 0.2);
}

.wisdom-sanskrit {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #ffe599;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.wisdom-meaning {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.wisdom-source {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--rose-gold);
}

/* =======================================================================
   5. MUSHY MEMORY MATCH MINI GAME
   ======================================================================= */
.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 1.5rem;
}

.memory-card {
  aspect-ratio: 1 / 1;
  perspective: 1000px;
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  border-radius: 14px;
}

.memory-card.flipped .card-inner,
.memory-card.matched .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card-front {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card-front:hover {
  background: rgba(255, 255, 255, 0.12);
}

.card-sparkle {
  font-size: 1.4rem;
  color: var(--rose-gold);
}

.card-back {
  background: linear-gradient(135deg, rgba(45, 25, 60, 0.95), rgba(20, 15, 35, 0.95));
  border: 1.5px solid var(--rose-gold);
  transform: rotateY(180deg);
  box-shadow: 0 0 15px rgba(247, 178, 189, 0.3);
}

.card-icon {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 2px;
}

.card-label {
  font-size: 0.65rem;
  color: var(--rose-soft);
  font-weight: 600;
}

.memory-win-banner {
  background: rgba(247, 178, 189, 0.15);
  border: 1px solid rgba(247, 178, 189, 0.3);
  padding: 1rem;
  border-radius: 16px;
  margin-bottom: 1rem;
  text-align: center;
  color: #fff;
  font-size: 0.95rem;
}

.memory-win-banner.hidden {
  display: none;
}

/* =======================================================================
   6. "RELEASE A WORRY" SKY LANTERN STAGE
   ======================================================================= */
.worry-section {
  margin: 6rem 0;
}

.worry-card {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.lantern-sky-stage {
  position: relative;
  height: 260px;
  background: radial-gradient(circle at 50% 100%, #1a1038 0%, #080915 90%);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sky-stars-placeholder {
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.worry-input-row {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto 1rem;
}

.worry-input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-size: 1rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.worry-input:focus {
  border-color: var(--rose-gold);
  box-shadow: 0 0 15px rgba(247, 178, 189, 0.3);
}

.worry-affirmation {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--amber-glow);
  min-height: 40px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.worry-affirmation.visible {
  opacity: 1;
}

/* =======================================================================
   TARGET MISS GAME (INSIDE JOKE 🎯)
   ======================================================================= */
.target-game-card {
  text-align: center;
}

.target-stage {
  position: relative;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 20px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.target-bullseye {
  font-size: 3.5rem;
  transition: transform 0.25s ease;
  z-index: 2;
}

.target-dodge {
  animation: bullseyeDodge 0.6s ease-in-out;
}

@keyframes bullseyeDodge {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(35px) rotate(8deg); }
  75% { transform: translateX(-35px) rotate(-8deg); }
}

.target-arrow-track {
  position: relative;
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.target-arrow {
  font-size: 2.2rem;
  transition: transform 0.2s ease;
  position: absolute;
  bottom: 5px;
}

/* Comical miss trajectories */
@keyframes missCurveLeft {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  50% { transform: translate(-30px, -70px) rotate(-45deg); }
  100% { transform: translate(-140px, -110px) rotate(-90deg); opacity: 0; }
}

@keyframes missCurveRight {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  50% { transform: translate(35px, -70px) rotate(45deg); }
  100% { transform: translate(140px, -110px) rotate(90deg); opacity: 0; }
}

@keyframes missLoop {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  40% { transform: translateY(-70px) rotate(180deg); }
  70% { transform: translate(50px, -40px) rotate(360deg); }
  100% { transform: translate(-100px, 30px) rotate(480deg); opacity: 0; }
}

@keyframes missDrop {
  0% { transform: translateY(0); opacity: 1; }
  40% { transform: translateY(-50px); }
  70% { transform: translateY(-20px) rotate(90deg); }
  100% { transform: translateY(60px) rotate(180deg); opacity: 0; }
}

.target-arrow.miss-curve-left { animation: missCurveLeft 0.8s ease-out forwards; }
.target-arrow.miss-curve-right { animation: missCurveRight 0.8s ease-out forwards; }
.target-arrow.miss-loop { animation: missLoop 0.85s ease-out forwards; }
.target-arrow.miss-drop { animation: missDrop 0.8s ease-out forwards; }

.target-commentary {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--amber-glow);
  min-height: 48px;
  margin-bottom: 1.2rem;
  line-height: 1.4;
}

.target-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .games-grid {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .game-card {
    padding: 1.5rem 1.1rem;
    border-radius: 20px;
  }

  .game-card-title {
    font-size: 1.25rem;
  }

  .meter-visual-container {
    padding: 1.8rem 1rem;
    min-height: 150px;
  }

  .meter-face {
    font-size: 3.2rem;
  }

  .hug-stage {
    padding: 1.8rem 1rem;
    min-height: 180px;
  }

  .hug-emoji-display {
    font-size: 3.5rem;
  }

  .hug-message-display {
    font-size: 0.96rem;
  }

  .memory-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .card-inner {
    border-radius: 10px;
  }

  .card-icon {
    font-size: 1.4rem;
  }

  .card-label {
    font-size: 0.58rem;
  }

  .tea-stage {
    padding: 1.8rem 1rem;
  }

  .tea-cup-display {
    font-size: 3.2rem;
  }

  .tea-quote-text {
    font-size: 1.2rem;
  }

  .tea-ingredient-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
  }

  .chef-dish-stage {
    padding: 1.8rem 1rem;
  }

  .chef-dish-emoji {
    font-size: 3.4rem;
  }

  .chef-dish-name {
    font-size: 1.15rem;
  }

  .scripture-pearl-stage {
    padding: 1.4rem 1rem;
  }

  .wisdom-sanskrit {
    font-size: 1.1rem;
  }

  .wisdom-meaning {
    font-size: 0.92rem;
  }

  .worry-input-row {
    flex-direction: column;
    gap: 8px;
  }

  .worry-input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
  }

  .lantern-sky-stage {
    height: 200px;
  }

  .star-note-card {
    padding: 1.8rem 1.2rem;
    border-radius: 20px;
  }

  .note-star-icon {
    font-size: 2.4rem;
  }

  .note-number {
    font-size: 1.3rem;
  }

  .note-text {
    font-size: 1.05rem;
  }
}
