:root {
  --font-baloo: 'Baloo 2', cursive;
  --font-nun: 'Nunito', sans-serif;
}

* { -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  font-family: var(--font-nun);
}

.font-baloo { font-family: var(--font-baloo); }
.font-nun { font-family: var(--font-nun); }

/* Sunny sky background with soft blobs */
.journey-bg {
  background:
    radial-gradient(circle at 15% 10%, rgba(251, 191, 36, 0.25), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(96, 165, 250, 0.22), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(52, 211, 153, 0.20), transparent 50%),
    linear-gradient(160deg, #fffbeb 0%, #fef3f2 50%, #f0fdfa 100%);
  background-attachment: fixed;
}

/* Flip card */
.flip-card {
  perspective: 1200px;
  width: 100%;
  max-width: 260px;
  height: 200px;
  margin: 0 auto;
}
.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}
.flip-inner.flipped { transform: rotateY(180deg); }
.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 1.5rem;
  border-width: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.flip-back { transform: rotateY(180deg); }

/* Owl bob */
.owl-bob { animation: bob 2s ease-in-out infinite; display: inline-block; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-5px) rotate(3deg); }
}

/* Pulse ring for current day */
.pulse-ring { animation: pulseRing 2s ease-in-out infinite; }
@keyframes pulseRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(251, 191, 36, 0); }
}

/* Feedback anims */
.pop { animation: pop 0.4s ease; }
@keyframes pop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.shake { animation: shake 0.4s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* Confetti */
.confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 50;
}
.confetti-piece {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 14px;
  border-radius: 2px;
  animation-name: fall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
@keyframes fall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(720deg); opacity: 0.9; }
}