:root {
  --font-rounded: 'SF Pro Rounded', ui-rounded, 'Nunito', 'Fredoka', 'Arial Rounded MT Bold', 'Quicksand', system-ui, -apple-system, sans-serif;
  --cream: #fffdf7;
  --ink: #4a3525;
  --soft-shadow: 0 12px 30px rgba(74, 53, 37, 0.16);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: var(--font-rounded);
  color: var(--ink);
  background: linear-gradient(180deg, #b8e8ff 0%, #e7f8ff 58%, #b7e89b 100%);
  cursor: pointer;
}

/* Dreamy storybook meadow background */
.sky-meadow {
  position: fixed;
  inset: 0;
  background-image: url('assets/images/meadow-bg.jpg');
  background-size: cover;
  background-position: center bottom;
  z-index: 0;
  pointer-events: none;
}

/* Interactive Sky Layer */
.sky-layer {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.sun-btn {
  position: fixed;
  top: 12px;
  left: 14px;
  width: clamp(78px, 8vw, 112px);
  height: clamp(78px, 8vw, 112px);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  z-index: 6;
  filter: drop-shadow(0 6px 14px rgba(255, 184, 48, 0.45));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sun-btn:hover {
  transform: scale(1.1);
}

.sun-btn.happy {
  animation: sun-giggle 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sun-svg {
  width: 100%;
  height: 100%;
}

.sun-rays {
  transform-origin: 70px 70px;
  animation: spin-slow 24s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes sun-giggle {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.28) rotate(-12deg); }
  55% { transform: scale(1.22) rotate(12deg); }
  80% { transform: scale(1.08) rotate(-5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.cloud-btn {
  position: fixed;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  filter: drop-shadow(0 6px 12px rgba(100, 150, 195, 0.18));
  transition: transform 0.25s ease;
}

.cloud-btn:hover {
  transform: scale(1.08);
}

.cloud-1 {
  top: 68px;
  left: 11%;
  width: clamp(104px, 11vw, 150px);
  animation: float-cloud-1 16s ease-in-out infinite;
}

.cloud-2 {
  top: 64px;
  right: 11%;
  width: clamp(96px, 10vw, 140px);
  animation: float-cloud-2 19s ease-in-out infinite;
}

.cloud-btn.puff {
  animation: cloud-puff 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes float-cloud-1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(22px, -6px); }
}

@keyframes float-cloud-2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-24px, 7px); }
}

@keyframes cloud-puff {
  0% { transform: scale(1); }
  35% { transform: scale(1.25, 0.85); }
  70% { transform: scale(0.95, 1.15); }
  100% { transform: scale(1); }
}

/* Bubbles & Popped Flowers Layers */
.bubbles-layer {
  position: fixed;
  inset: 0;
  z-index: 18;
  pointer-events: none;
  overflow: hidden;
}

.flowers-layer {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.soap-bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: auto;
  cursor: pointer;
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 215, 245, 0.45) 35%, rgba(162, 230, 255, 0.35) 68%, rgba(255, 240, 175, 0.42) 100%);
  border: 2.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset -6px -8px 18px rgba(170, 225, 255, 0.45), 0 8px 20px rgba(120, 170, 215, 0.22);
  transition: transform 0.14s ease;
}

.soap-bubble::after {
  content: '';
  position: absolute;
  top: 16%;
  left: 20%;
  width: 26%;
  height: 16%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  transform: rotate(-28deg);
}

.soap-bubble:hover {
  transform: scale(1.12);
}

.pop-flower {
  position: absolute;
  font-size: 36px;
  transform: translate(-50%, -50%) scale(0);
  animation: bloom-fade 2.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.12));
}

@keyframes bloom-fade {
  0% { transform: translate(-50%, -50%) scale(0) rotate(-30deg); opacity: 0; }
  20% { transform: translate(-50%, -50%) scale(1.25) rotate(8deg); opacity: 1; }
  35% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
  80% { transform: translate(-50%, -56%) scale(1) rotate(4deg); opacity: 0.95; }
  100% { transform: translate(-50%, -70%) scale(0.4) rotate(12deg); opacity: 0; }
}

/* Top Bar */
.top-bar {
  position: fixed;
  top: 12px;
  left: clamp(98px, 10vw, 134px);
  right: 16px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.top-bar > * {
  pointer-events: auto;
}

.brand-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 253, 247, 0.94);
  padding: 6px 18px 6px 8px;
  border-radius: 999px;
  border: 3px solid #ffe08a;
  box-shadow: 0 6px 0 rgba(227, 178, 60, 0.35), 0 10px 20px rgba(74, 53, 37, 0.12);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 800;
  color: #5c3b1e;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-pill:hover {
  transform: scale(1.04);
}

.brand-pill img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #ffd166;
}

.mode-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 3px solid #fffdf7;
  background: rgba(255, 253, 247, 0.92);
  color: #543b24;
  font-family: var(--font-rounded);
  font-size: clamp(15px, 1.45vw, 19px);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 5px 0 rgba(120, 145, 165, 0.28), 0 8px 18px rgba(74, 53, 37, 0.12);
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, box-shadow 0.16s;
}

.pill-btn:hover {
  transform: translateY(-2px) scale(1.04);
}

.pill-btn:active {
  transform: translateY(3px) scale(0.97);
  box-shadow: 0 2px 0 rgba(120, 145, 165, 0.28);
}

.pill-btn.active {
  background: linear-gradient(180deg, #ffdf6b 0%, #ffb938 100%);
  color: #522d08;
  border-color: #fff9e6;
  box-shadow: 0 5px 0 #d98e16, 0 10px 22px rgba(255, 179, 43, 0.35);
}

.pill-lola {
  background: linear-gradient(180deg, #ff9ebb 0%, #ff6b9d 100%);
  color: #ffffff;
  border-color: #fff6f9;
  box-shadow: 0 5px 0 #d94678, 0 10px 20px rgba(255, 107, 157, 0.32);
}

.pill-bubble {
  background: linear-gradient(180deg, #8ce0ff 0%, #4ec3f7 100%);
  color: #0b4161;
  border-color: #f2fbff;
  box-shadow: 0 5px 0 #2695cb, 0 10px 20px rgba(78, 195, 247, 0.3);
}

.pill-ico {
  font-size: 1.2em;
  line-height: 1;
}

.util-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff4b8 0%, #ffd859 100%);
  border: 3px solid #fffdf7;
  box-shadow: 0 5px 0 #d49f1f;
  font-size: 20px;
  font-weight: 900;
  color: #6b4200;
}

.stars-counter.pop {
  animation: star-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes star-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid #fffdf7;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 4px 0 rgba(120, 145, 165, 0.28), 0 6px 14px rgba(74, 53, 37, 0.12);
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.16s ease;
}

.icon-btn:hover {
  transform: scale(1.08);
}

/* Find Mode Banner */
.find-banner {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
}

.find-repeat-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 26px;
  border-radius: 999px;
  border: 4px solid #fffdf7;
  background: linear-gradient(180deg, #fff6cf 0%, #ffe072 100%);
  box-shadow: 0 6px 0 #d99f22, 0 14px 28px rgba(74, 53, 37, 0.18);
  font-family: var(--font-rounded);
  font-size: clamp(19px, 2.2vw, 27px);
  font-weight: 900;
  color: #5b3207;
  cursor: pointer;
  animation: gentle-bob 2.4s ease-in-out infinite;
}

.find-repeat-btn:hover {
  transform: scale(1.05);
}

.find-speaker {
  font-size: 1.2em;
}

@keyframes gentle-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Main Stage & Animal Grid */
.stage {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px clamp(18px, 3.2vw, 44px) 26px;
  pointer-events: none;
}

body.find-mode .stage {
  padding-top: 146px;
}

.animals-grid {
  width: 100%;
  max-width: 1360px;
  height: 100%;
  max-height: 780px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
  pointer-events: none;
}

/* Storybook Animal Card */
.animal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 9px 9px 10px;
  border-radius: 30px;
  background: var(--cream);
  border: 4px solid #ffffff;
  box-shadow:
    0 10px 0 var(--card-ledge, #e5d5bc),
    0 18px 30px rgba(68, 49, 32, 0.18);
  cursor: pointer;
  pointer-events: auto;
  overflow: visible;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
  animation: card-breathe 4.2s ease-in-out infinite;
  animation-delay: var(--breathe-delay, 0s);
  outline: none;
}

.animal-card:hover {
  transform: translateY(-6px) scale(1.035);
  box-shadow:
    0 14px 0 var(--card-ledge, #e5d5bc),
    0 24px 36px rgba(68, 49, 32, 0.22);
  z-index: 7;
}

.animal-card:active {
  transform: translateY(5px) scale(0.96);
  box-shadow:
    0 4px 0 var(--card-ledge, #e5d5bc),
    0 8px 14px rgba(68, 49, 37, 0.16);
}

/* Star card (Văcuța Lola) subtle special golden glow */
.animal-card.is-star {
  border-color: #ffe37d;
  background: linear-gradient(180deg, #fffdf4 0%, #fff7d6 100%);
}

.star-ribbon {
  position: absolute;
  top: -12px;
  right: -8px;
  z-index: 6;
  background: linear-gradient(180deg, #ff7eb3 0%, #ff4f8b 100%);
  color: #ffffff;
  font-size: clamp(12px, 1.15vw, 15px);
  font-weight: 900;
  padding: 5px 13px;
  border-radius: 999px;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(255, 79, 139, 0.35);
  transform: rotate(6deg);
  pointer-events: none;
}

/* Glowing "Sing!" music button on every animal card */
.sing-btn {
  position: absolute;
  top: -12px;
  left: -10px;
  z-index: 12;
  width: clamp(44px, 4.2vw, 54px);
  height: clamp(44px, 4.2vw, 54px);
  border-radius: 50%;
  border: 3.5px solid #ffffff;
  background: linear-gradient(180deg, #ffdf6b 0%, #ff922b 100%);
  color: #ffffff;
  font-size: clamp(20px, 2vw, 25px);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 5px 0 #d97316, 0 8px 16px rgba(255, 146, 43, 0.38);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sing-btn:hover {
  transform: scale(1.16) rotate(-10deg);
}

.sing-btn:active {
  transform: scale(0.92);
}

.animal-card.singing {
  border-color: #ff6b9d !important;
  box-shadow: 0 12px 0 #e64980, 0 0 0 8px rgba(255, 212, 59, 0.72), 0 24px 44px rgba(255, 107, 157, 0.4) !important;
  z-index: 11;
}

.animal-card.singing .sing-btn {
  background: linear-gradient(180deg, #ff85b3 0%, #ff4f8b 100%);
  box-shadow: 0 4px 0 #c92a63, 0 0 18px rgba(255, 79, 139, 0.8);
  animation: sing-btn-pulse 0.5s ease-in-out infinite alternate;
}

@keyframes sing-btn-pulse {
  from { transform: scale(1) rotate(-10deg); }
  to { transform: scale(1.2) rotate(10deg); }
}

.animal-card.beat-pop {
  transform: translateY(-16px) scale(1.07) rotate(-2deg) !important;
}

.animal-card.beat-pop-alt {
  transform: translateY(-16px) scale(1.07) rotate(2deg) !important;
}

.animal-img-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: var(--card-tint, #f9f3e6);
}

.animal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animal-card:hover .animal-img {
  transform: scale(1.06);
}

.animal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 8px;
  flex: 0 0 auto;
}

.animal-name {
  font-size: clamp(18px, 1.85vw, 25px);
  font-weight: 900;
  color: #4a3525;
  letter-spacing: 0.2px;
  line-height: 1.1;
}

.animal-sound-pill {
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--card-badge, #ffeaa7);
  color: var(--card-badge-ink, #6b4600);
}

/* Speech bubble that pops out when clicked */
.speech-bubble {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  z-index: 15;
  background: #ffffff;
  color: #e64980;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 900;
  padding: 7px 20px;
  border-radius: 999px;
  border: 4px solid #ffd43b;
  box-shadow: 0 8px 20px rgba(74, 53, 37, 0.2);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}

.speech-bubble.show {
  animation: bubble-pop 1.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes bubble-pop {
  0% { transform: translateX(-50%) translateY(18px) scale(0.2); opacity: 0; }
  18% { transform: translateX(-50%) translateY(-10px) scale(1.16); opacity: 1; }
  32% { transform: translateX(-50%) translateY(-6px) scale(1); opacity: 1; }
  78% { transform: translateX(-50%) translateY(-12px) scale(1); opacity: 1; }
  100% { transform: translateX(-50%) translateY(-28px) scale(0.7); opacity: 0; }
}

/* Gentle breathing idle animation */
@keyframes card-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Signature Animal Click Animations */
.animal-card.anim-dance {
  animation: anim-dance 0.95s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  z-index: 10;
}
@keyframes anim-dance {
  0% { transform: scale(1) rotate(0deg); }
  20% { transform: translateY(-22px) scale(1.12) rotate(-7deg); }
  45% { transform: translateY(-14px) scale(1.14) rotate(7deg); }
  70% { transform: translateY(-20px) scale(1.1) rotate(-5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.animal-card.anim-wag {
  animation: anim-wag 0.85s ease-in-out !important;
  z-index: 10;
}
@keyframes anim-wag {
  0% { transform: scale(1) rotate(0deg); }
  15% { transform: scale(1.12, 0.92) rotate(-8deg); }
  35% { transform: translateY(-18px) scale(1.06) rotate(8deg); }
  55% { transform: scale(1.1, 0.95) rotate(-7deg); }
  75% { transform: translateY(-10px) scale(1.04) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.animal-card.anim-hop {
  animation: anim-hop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  z-index: 10;
}
@keyframes anim-hop {
  0% { transform: translateY(0) scale(1, 1); }
  14% { transform: translateY(6px) scale(1.12, 0.86); }
  38% { transform: translateY(-34px) scale(0.95, 1.12); }
  56% { transform: translateY(4px) scale(1.08, 0.9); }
  76% { transform: translateY(-22px) scale(0.98, 1.07); }
  100% { transform: translateY(0) scale(1, 1); }
}

.animal-card.anim-splash {
  animation: anim-splash 0.88s ease-in-out !important;
  z-index: 10;
}
@keyframes anim-splash {
  0% { transform: scale(1) rotate(0deg); }
  20% { transform: scale(1.14, 0.88) rotate(-6deg); }
  45% { transform: translateY(-16px) scale(0.94, 1.14) rotate(6deg); }
  70% { transform: scale(1.08, 0.94) rotate(-4deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.animal-card.anim-purr {
  animation: anim-purr 0.95s ease-in-out !important;
  z-index: 10;
}
@keyframes anim-purr {
  0% { transform: scale(1); }
  25% { transform: scale(1.13, 0.94) rotate(-4deg); }
  55% { transform: scale(1.06, 1.12) rotate(4deg); }
  80% { transform: scale(1.08, 0.97) rotate(-2deg); }
  100% { transform: scale(1); }
}

/* Gentle Find-Mode Hint Glow (after 5.5s so Ava never feels stuck) */
.animal-card.hint-glow {
  animation: hint-pulse 1.15s ease-in-out infinite !important;
  border-color: #ffd43b !important;
  z-index: 9;
}

@keyframes hint-pulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    box-shadow: 0 10px 0 #e6b835, 0 0 0 0 rgba(255, 212, 59, 0.75);
  }
  50% {
    transform: scale(1.07) rotate(-2deg);
    box-shadow: 0 14px 0 #e6b835, 0 0 0 18px rgba(255, 212, 59, 0);
  }
}

/* Special Văcuța Lola Dance Overlay */
.lola-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: radial-gradient(circle at center, rgba(255, 245, 200, 0.92) 0%, rgba(168, 224, 255, 0.9) 100%);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.3s ease;
}

.lola-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: 24px;
}

.lola-spotlight-rays {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 224, 102, 0.35) 0deg 15deg, transparent 15deg 30deg);
  animation: spin-slow 18s linear infinite;
  pointer-events: none;
  z-index: -1;
}

.lola-dance-card {
  position: relative;
  width: clamp(270px, 38vh, 380px);
  height: clamp(270px, 38vh, 380px);
  padding: 14px;
  border-radius: 42px;
  border: 7px solid #ffffff;
  background: linear-gradient(180deg, #fffdf4 0%, #ffe699 100%);
  box-shadow: 0 16px 0 #e0ab2b, 0 26px 55px rgba(74, 53, 37, 0.25);
  cursor: pointer;
  animation: lola-boogie 1.1s ease-in-out infinite;
}

.lola-dance-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  display: block;
}

.lola-lyrics-bubble {
  position: absolute;
  top: -22px;
  right: -24px;
  background: #ff5d9e;
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
  padding: 10px 22px;
  border-radius: 999px;
  border: 4px solid #ffffff;
  box-shadow: 0 8px 18px rgba(255, 93, 158, 0.4);
  transform: rotate(8deg);
  animation: gentle-bob 1.2s ease-in-out infinite;
}

@keyframes lola-boogie {
  0%, 100% { transform: translateY(0) rotate(-4deg) scale(1); }
  25% { transform: translateY(-20px) rotate(4deg) scale(1.06); }
  50% { transform: translateY(0) rotate(-4deg) scale(1.02, 0.96); }
  75% { transform: translateY(-16px) rotate(5deg) scale(1.06); }
}

.lola-song-text {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  color: #5c3310;
  background: rgba(255, 255, 255, 0.9);
  padding: 12px 28px;
  border-radius: 999px;
  border: 4px solid #ffd43b;
  box-shadow: 0 8px 20px rgba(74, 53, 37, 0.14);
}

.lola-close-btn {
  padding: 14px 32px;
  border-radius: 999px;
  border: 4px solid #ffffff;
  background: linear-gradient(180deg, #7be495 0%, #3ec973 100%);
  color: #ffffff;
  font-family: var(--font-rounded);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 7px 0 #269650, 0 12px 24px rgba(38, 150, 80, 0.3);
  transition: transform 0.16s ease;
}

.lola-close-btn:hover {
  transform: scale(1.06);
}

/* Splash Screen */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: radial-gradient(circle at 50% 40%, rgba(255, 250, 230, 0.92) 0%, rgba(169, 228, 255, 0.9) 100%);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: pointer;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.splash-screen.fade-out {
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
}

.splash-card {
  background: #fffdf8;
  border: 6px solid #ffffff;
  border-radius: 44px;
  padding: clamp(24px, 4vw, 44px) clamp(28px, 5vw, 60px);
  text-align: center;
  box-shadow: 0 18px 0 #e5d5bc, 0 32px 70px rgba(74, 53, 37, 0.22);
  max-width: 560px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.splash-avatar-wrap {
  position: relative;
  width: clamp(180px, 28vh, 240px);
  height: clamp(180px, 28vh, 240px);
  animation: lola-boogie 2.4s ease-in-out infinite;
}

.splash-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 36px;
  border: 6px solid #ffe072;
  box-shadow: 0 12px 28px rgba(224, 171, 43, 0.32);
}

.splash-moo-tag {
  position: absolute;
  top: -12px;
  right: -18px;
  background: #ff6b9d;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  padding: 7px 16px;
  border-radius: 999px;
  border: 4px solid #ffffff;
  box-shadow: 0 6px 14px rgba(255, 107, 157, 0.35);
  transform: rotate(10deg);
}

.splash-title {
  margin: 4px 0 0;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 900;
  color: #543214;
  line-height: 1.05;
}

.splash-subtitle {
  margin: 0 0 8px;
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 700;
  color: #7c5c40;
}

.start-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 40px;
  border-radius: 999px;
  border: 5px solid #ffffff;
  background: linear-gradient(180deg, #ff85b3 0%, #ff4f8b 100%);
  color: #ffffff;
  font-family: var(--font-rounded);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 9px 0 #cc2d66, 0 18px 34px rgba(255, 79, 139, 0.42);
  animation: start-pulse 1.8s ease-in-out infinite;
  transition: transform 0.16s ease;
}

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

.start-btn:active {
  transform: translateY(5px) scale(0.98);
}

@keyframes start-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

/* FX Canvas */
.fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 35;
  pointer-events: none;
}

.hidden {
  display: none !important;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive adjustments for smaller laptop screens */
@media (max-width: 960px) {
  .brand-pill span {
    display: none;
  }
  .pill-btn {
    padding: 8px 13px;
    font-size: 14px;
  }
}

@media (max-height: 680px) {
  .stage {
    padding-top: 84px;
    padding-bottom: 14px;
  }
  body.find-mode .stage {
    padding-top: 132px;
  }
  .animal-card {
    padding: 6px 6px 7px;
    border-radius: 24px;
  }
  .animal-img-wrap {
    border-radius: 18px;
  }
  .animal-name {
    font-size: 17px;
  }
}
