/* The game: everything is laid out on a fixed 1920x1080 stage that scales to fit any screen. */
:root {
  --ink: #2b2d42;
  --outline: 5px 5px 0 #fff, -5px 5px 0 #fff, 5px -5px 0 #fff, -5px -5px 0 #fff, 0 7px 0 #fff, 0 -7px 0 #fff, 7px 0 0 #fff, -7px 0 0 #fff, 0 16px 0 rgba(0,0,0,.18);
  --outline-big: 7px 7px 0 #fff, -7px 7px 0 #fff, 7px -7px 0 #fff, -7px -7px 0 #fff, 0 10px 0 #fff, 0 -10px 0 #fff, 10px 0 0 #fff, -10px 0 0 #fff, 0 22px 0 rgba(0,0,0,.2);
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #2a1a5e; }
body { -webkit-user-select: none; user-select: none; cursor: default; }
#stage {
  position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; margin: -540px 0 0 -960px;
  transform-origin: 50% 50%; overflow: hidden; background: #7ad3ff; color: var(--ink);
  font-family: "Baloo 2", "Fredoka", "Nunito", "Varela Round", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  touch-action: none; -webkit-tap-highlight-color: transparent;
}
#scene { position: absolute; inset: 0; overflow: hidden; }
#scene.shake { animation: shake .35s; }
.game-root { position: absolute; inset: 0; overflow: hidden; }
#fx { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; pointer-events: none; z-index: 40; }
#flash { position: absolute; inset: 0; pointer-events: none; z-index: 41; opacity: 0; background: #fff; }
#flash.go { animation: flash .45s ease-out; }
.abs { position: absolute; }
.emoji { font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif; line-height: 1; display: inline-block; font-weight: normal; }

/* ---------- shared animations ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes shake { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-14px, 8px); } 40% { transform: translate(12px, -10px); } 60% { transform: translate(-8px, -6px); } 80% { transform: translate(6px, 8px); } }
@keyframes flash { 0% { opacity: var(--fa, .6); } 100% { opacity: 0; } }
@keyframes wiggleBig { 0%, 100% { transform: rotate(0) scale(1); } 25% { transform: rotate(-12deg) scale(1.1); } 50% { transform: rotate(10deg) scale(1.15); } 75% { transform: rotate(-6deg) scale(1.05); } }
@keyframes dance { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-60px) rotate(-15deg); } 50% { transform: translateY(0) rotate(0); } 75% { transform: translateY(-40px) rotate(15deg); } }
@keyframes popIn { 0% { transform: scale(0) rotate(-20deg); } 70% { transform: scale(1.15) rotate(4deg); } 100% { transform: scale(1) rotate(0); } }

/* ---------- HUD ---------- */
#home-btn {
  position: absolute; left: 18px; top: 18px; width: 96px; height: 96px; border-radius: 50%; z-index: 45;
  background: rgba(255,255,255,.35); border: 4px solid rgba(255,255,255,.7); opacity: .6;
  display: flex; align-items: center; justify-content: center; font-size: 50px;
}
#home-btn, #grown-btn { cursor: pointer; display: none; }
#home-btn { opacity: .85; background: rgba(255,255,255,.55); }
#grown-btn {
  position: absolute; left: 130px; top: 18px; width: 96px; height: 96px; border-radius: 50%; z-index: 45;
  background: rgba(43,45,66,.45); border: 4px solid rgba(255,255,255,.7);
  align-items: center; justify-content: center; font-size: 50px;
}
#hold { position: absolute; left: 250px; top: 26px; z-index: 46; display: flex; align-items: center; gap: 18px; opacity: 0; transition: opacity .2s; pointer-events: none; }
#hold.on { opacity: 1; }
#hold .ring { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#ffd60a calc(var(--p, 0) * 1%), rgba(255,255,255,.35) 0); }
#hold .ring::after { content: ''; width: 54px; height: 54px; border-radius: 50%; background: #2b2d42; }
#hold .txt { font-size: 36px; font-weight: 800; color: #fff; background: rgba(43,45,66,.8); padding: 10px 24px; border-radius: 30px; }

/* ---------- scene change ---------- */
/* Scene change: a rainbow circle grows to cover the screen, then shrinks away.
   It's animated with transform (cheap for the graphics chip) instead of clip-path. */
#wipe { position: absolute; inset: 0; z-index: 50; pointer-events: none; display: none; overflow: hidden; }
#wipe .wc { position: absolute; left: 50%; top: 50%; width: 2300px; height: 2300px; margin: -1150px 0 0 -1150px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transform: scale(0); will-change: transform;
  background: radial-gradient(circle, #ffd60a 0 12%, #ff7b00 12% 24%, #f72585 24% 38%, #8338ec 38% 52%, #3a86ff 52% 70.7%, transparent 70.8%); }
#wipe .emoji { font-size: 260px; animation: spin 1.2s linear infinite; }
#wipe.in, #wipe.out { display: block; }
#wipe.in .wc { animation: wipeIn .43s cubic-bezier(.5, 0, .75, 0) forwards; }
#wipe.out .wc { animation: wipeOut .46s cubic-bezier(.25, 1, .5, 1) forwards; }
@keyframes wipeIn { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes wipeOut { from { transform: scale(1); } to { transform: scale(0); } }

/* ---------- the big word ---------- */
.word {
  position: absolute; left: 50%; top: 30px; transform: translateX(-50%) scale(0); z-index: 30; pointer-events: none;
  font-size: 140px; font-weight: 900; color: var(--wc, #ff4d6d); white-space: nowrap; letter-spacing: 2px; text-shadow: var(--outline);
}
.word.show { animation: wordShow 3.2s cubic-bezier(.3, 1.5, .5, 1) forwards; }
@keyframes wordShow {
  0% { transform: translateX(-50%) scale(0) rotate(-8deg); opacity: 1; }
  12% { transform: translateX(-50%) scale(1.15) rotate(3deg); }
  20% { transform: translateX(-50%) scale(1) rotate(0); }
  85% { opacity: 1; transform: translateX(-50%) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) scale(.9); }
}

/* ---------- Pip the pup ---------- */
.pup { position: absolute; width: 200px; height: 230px; z-index: 20; pointer-events: none; }
.pup-in { width: 100%; height: 100%; transform-origin: 50% 100%; }
.pup svg { width: 100%; height: 100%; overflow: visible; }
.pup-in.hop { animation: pupHop .5s ease-out; }
.pup-in.cheer { animation: pupCheer .6s ease-out; }
.pup-in.wiggle { animation: pupWiggle .6s; }
.pup-in.nod { animation: pupNod .8s; }
@keyframes pupHop { 0% { transform: scale(1.1, .9); } 30% { transform: translateY(-70px) scale(.95, 1.08); } 60% { transform: translateY(0) scale(1.08, .92); } 100% { transform: none; } }
@keyframes pupCheer { 0% { transform: scale(1.1, .9); } 25% { transform: translateY(-90px) rotate(-10deg); } 50% { transform: translateY(-60px) rotate(10deg); } 75% { transform: translateY(0) scale(1.1, .9); } 100% { transform: none; } }
@keyframes pupWiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@keyframes pupNod { 0%, 100% { transform: none; } 50% { transform: translateY(6px) scale(1.02, .98); } }
.pup .pup-tail { transform-box: view-box; transform-origin: 150px 172px; animation: wag .5s ease-in-out infinite alternate; }
@keyframes wag { from { transform: rotate(-12deg); } to { transform: rotate(14deg); } }
.pup .pup-ear.l { transform-box: view-box; transform-origin: 52px 60px; animation: earL 2.4s ease-in-out infinite; }
.pup .pup-ear.r { transform-box: view-box; transform-origin: 148px 60px; animation: earR 2.4s ease-in-out infinite; }
@keyframes earL { 0%, 80%, 100% { transform: rotate(0); } 88% { transform: rotate(12deg); } 94% { transform: rotate(-6deg); } }
@keyframes earR { 0%, 80%, 100% { transform: rotate(0); } 88% { transform: rotate(-12deg); } 94% { transform: rotate(6deg); } }
.pup .pup-eyes { transform-box: view-box; transform-origin: 100px 76px; animation: blink 4s infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.pup .pup-closed { display: none; }
.pup.asleep .pup-eyes, .pup.asleep .pup-tongue { display: none; }
.pup.asleep .pup-closed { display: inline; }
.pup.asleep .pup-tail { animation-duration: 3s; }
.pup.asleep .pup-in { animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.03, .97); } }
.pup-corner { left: 24px; bottom: 6px; width: 150px; height: 172px; z-index: 35; }
.hub-pup { left: 0; top: 0; width: 150px; height: 172px; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); z-index: 8; }
.photo-fallback { width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: center; background: radial-gradient(circle at 50% 40%, #e0f0ff, #9fc9ff); padding-top: 10%; }
.photo-fallback svg { width: 82%; height: 82%; }

/* ---------- sky bits ---------- */
.cloud { position: absolute; left: 0; width: 280px; height: 90px; background: #fff; border-radius: 90px; opacity: .95; animation: cloudDrift 70s linear infinite; }
.cloud::before { content: ''; position: absolute; width: 130px; height: 130px; border-radius: 50%; background: #fff; left: 40px; top: -60px; }
.cloud::after { content: ''; position: absolute; width: 100px; height: 100px; border-radius: 50%; background: #fff; left: 140px; top: -40px; }
@keyframes cloudDrift { from { transform: translateX(-420px) scale(var(--s, 1)); } to { transform: translateX(2340px) scale(var(--s, 1)); } }
.sun { position: absolute; width: 230px; height: 230px; border-radius: 50%; }
.sun .rays { position: absolute; inset: -90px; border-radius: 50%; animation: spin 30s linear infinite;
  background: repeating-conic-gradient(rgba(255,214,10,.85) 0 10deg, transparent 10deg 22.5deg);
  -webkit-mask: radial-gradient(circle, transparent 38%, #000 40%, #000 58%, transparent 72%);
  mask: radial-gradient(circle, transparent 38%, #000 40%, #000 58%, transparent 72%); }
.sun .core { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; border: 10px solid #ffd60a;
  background: radial-gradient(circle at 35% 35%, #fff7ae, #ffd60a 60%, #ffb703); box-shadow: 0 0 80px 30px rgba(255,214,10,.55); }
.sun .core img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Blend the photo into the sun: warm golden glow around the edge. */
.sun .core:has(img)::after { content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, transparent 52%, rgba(255,214,10,.35) 68%, rgba(255,183,3,.85) 100%); }
.hub-sun .core { box-shadow: 0 0 90px 40px rgba(255,214,10,.6); }
.hub-sun { z-index: 3; } /* keep his face in front of the drifting clouds */

/* ---------- title ---------- */
.title-bg { inset: 0; background: radial-gradient(circle at 50% 40%, #fff3b0, #ffca3a 28%, #ff595e 68%, #8338ec); overflow: hidden; }
.sunburst { position: absolute; left: 50%; top: 36%; width: 3000px; height: 3000px; margin: -1500px 0 0 -1500px;
  background: repeating-conic-gradient(rgba(255,255,255,.22) 0 9deg, transparent 9deg 18deg); animation: spin 40s linear infinite; }
.title-photo { position: absolute; left: 960px; top: 360px; width: 420px; height: 420px; margin: -210px 0 0 -210px; animation: bob 3s ease-in-out infinite; }
.title-photo .ring { position: absolute; inset: -30px; border-radius: 50%; animation: spin 4s linear infinite;
  background: conic-gradient(#ff4d6d, #ffb703, #ffd60a, #06d6a0, #3a86ff, #8338ec, #ff4d6d); }
.title-photo .pic { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; border: 12px solid #fff; background: #cfe4ff; }
.title-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.title-text { position: absolute; left: 0; right: 0; top: 640px; margin: 0; text-align: center; font-size: 150px; font-weight: 900; letter-spacing: 4px; text-shadow: var(--outline-big); white-space: nowrap; }
.title-text span { display: inline-block; animation: letterBounce 1.6s ease-in-out infinite; }
.title-text .sp { width: 50px; }
@keyframes letterBounce { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-40px) rotate(-6deg); } 50% { transform: translateY(0); } }
.title-hint { position: absolute; left: 50%; top: 900px; transform: translateX(-50%); white-space: nowrap; font-size: 64px; font-weight: 900; color: #fff;
  background: #3a86ff; padding: 14px 50px; border-radius: 60px; border: 8px solid #fff; animation: hintPulse 1.2s ease-in-out infinite; box-shadow: 0 12px 0 rgba(0,0,0,.18); }
@keyframes hintPulse { 50% { transform: translateX(-50%) scale(1.08); } }
.title-sound { position: absolute; left: 0; right: 0; top: 1030px; text-align: center; font-size: 28px; font-weight: 800; color: #fff; display: none; }
.title-pup { left: 330px; top: 190px; width: 280px; height: 322px; }
.floaty { position: absolute; bottom: -200px; font-size: 120px; animation: floatUp linear infinite; }
@keyframes floatUp { from { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-700px) rotate(8deg); } to { transform: translateY(-1450px) rotate(-8deg); } }

/* ---------- hub (the backyard) ---------- */
.hub-sky { inset: 0; background: linear-gradient(#4fb8ff 0%, #9ee3ff 50%, #d8f6ff 64%); }
.hub-hill1 { left: -300px; top: 520px; width: 1500px; height: 900px; border-radius: 50%; background: #8ee26a; }
.hub-hill2 { left: 700px; top: 490px; width: 1700px; height: 1000px; border-radius: 50%; background: #74d655; }
.hub-fence { left: 0; right: 0; top: 560px; height: 100px;
  background: linear-gradient(transparent 22px, #fff 22px 36px, transparent 36px 66px, #fff 66px 80px, transparent 80px),
              repeating-linear-gradient(90deg, transparent 0 26px, #fff 26px 52px, transparent 52px 84px); }
.hub-grass { left: 0; right: 0; top: 640px; bottom: 0; background: linear-gradient(#5ccf4a, #3fae36); }
.hub-flowers { left: 0; right: 0; top: 990px; height: 90px; }
.hub-flowers .emoji, .bal-flowers .emoji { position: absolute; font-size: 64px; transform-origin: 50% 100%; animation: sway 2.6s ease-in-out infinite; }
/* Big two-line title that rocks gently while its letters bounce in a wave. */
.hub-title { position: absolute; left: 0; right: 0; top: 34px; text-align: center; font-weight: 900; white-space: nowrap; letter-spacing: 3px;
  line-height: .9; text-shadow: var(--outline-big); z-index: 4; pointer-events: none; transform-origin: 50% 60%; animation: titleRock 4s ease-in-out infinite; }
.ht-1 { font-size: 160px; }
.ht-2 { font-size: 146px; margin-top: -10px; }
.hub-title span { display: inline-block; animation: titleWave 2.2s ease-in-out infinite; }
@keyframes titleWave {
  0%, 60%, 100% { transform: translateY(0) rotate(0) scale(1); }
  15% { transform: translateY(-26px) rotate(-7deg) scale(1.08, .95); }
  30% { transform: translateY(4px) rotate(4deg) scale(.96, 1.06); }
  45% { transform: translateY(-6px) rotate(0); }
}
@keyframes titleRock { 0%, 100% { transform: rotate(-1.5deg) scale(1); } 50% { transform: rotate(1.5deg) scale(1.03); } }
.hub-sun .core { border-color: #ffd60a; }
.butterfly { position: absolute; left: 0; top: var(--by); font-size: 64px; z-index: 9; animation: flutter 18s linear infinite; }
.butterfly.b2 { animation-duration: 23s; animation-delay: -9s; }
@keyframes flutter {
  0% { transform: translate(-100px, 0) rotate(10deg); } 25% { transform: translate(500px, -120px) rotate(-10deg); }
  50% { transform: translate(1000px, 40px) rotate(12deg); } 75% { transform: translate(1500px, -80px) rotate(-8deg); }
  100% { transform: translate(2050px, 0) rotate(10deg); }
}
.spot { position: absolute; width: 230px; height: 230px; margin: -115px 0 0 -115px; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); z-index: 5; cursor: pointer; }
.spot-ball { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; border: 10px solid #fff;
  background: radial-gradient(circle at 35% 30%, var(--c1), var(--c2)); box-shadow: 0 14px 0 rgba(0,0,0,.18);
  display: flex; align-items: center; justify-content: center; font-size: 128px; }
.spot-label { position: absolute; left: 50%; top: 236px; transform: translateX(-50%); white-space: nowrap; font-size: 36px; font-weight: 900; color: #fff;
  background: var(--c2); padding: 2px 24px; border-radius: 30px; border: 5px solid #fff; text-shadow: 0 3px 0 rgba(0,0,0,.25); }
.spot.sel { transform: scale(1.18); z-index: 6; }
.spot.sel::before { content: ''; position: absolute; inset: -26px; border-radius: 50%; z-index: -1; animation: spin 2.5s linear infinite;
  background: conic-gradient(#ff4d6d, #ffb703, #ffd60a, #06d6a0, #3a86ff, #8338ec, #ff4d6d); }
.spot.sel .spot-ball > * { animation: bob 1s ease-in-out infinite; }
.num-icon { font-size: 92px; font-weight: 900; letter-spacing: -4px; text-shadow: 0 6px 0 rgba(0,0,0,.18); }
.num-icon b:nth-child(1) { color: #ffd60a; } .num-icon b:nth-child(2) { color: #fff; } .num-icon b:nth-child(3) { color: #06d6a0; }

/* ---------- Peekaboo Barn ---------- */
.farm-sky { inset: 0; background: linear-gradient(#5ec8ff, #bdf0ff 70%); }
.farm-hill { left: -200px; right: -200px; top: 720px; height: 700px; border-radius: 50% 50% 0 0; background: #6fd14f; }
.farm-hill.back { top: 620px; left: 900px; right: -500px; background: #8ee26a; }
.fence { left: 0; right: 0; top: 770px; height: 110px;
  background: linear-gradient(transparent 24px, #fff 24px 40px, transparent 40px 72px, #fff 72px 88px, transparent 88px),
              repeating-linear-gradient(90deg, transparent 0 30px, #fff 30px 56px, transparent 56px 90px); }
.farm-flowers { left: 120px; right: 120px; top: 980px; display: flex; justify-content: space-between; font-size: 70px; }
.farm-flowers .emoji { animation: sway 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
.barn { position: absolute; left: 560px; top: 190px; width: 800px; height: 770px; }
.barn-roof { position: absolute; left: -60px; top: 0; width: 920px; height: 300px; background: #fff; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.barn-roof::after { content: ''; position: absolute; left: 30px; right: 30px; top: 22px; bottom: 0; background: #8d0801; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.barn-loft { position: absolute; left: 330px; top: 120px; width: 140px; height: 140px; border-radius: 50%; background: #fff; padding: 14px; z-index: 2; }
.barn-loft-win { width: 100%; height: 100%; border-radius: 50%; background: #3b1f0e; box-shadow: inset 0 -34px 0 #f4c95d; }
.barn-body { position: absolute; left: 0; top: 290px; width: 800px; height: 480px; border: 14px solid #fff; border-bottom: none;
  background: repeating-linear-gradient(90deg, #c1121f 0 76px, #a50f1a 76px 80px); }
.barn-opening { position: absolute; left: 151px; bottom: 0; width: 470px; height: 390px; perspective: 1400px; }
.barn-dark { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 85%, #7a4a24, #2a1408 72%); }
.barn-animal { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px; opacity: 0; transform: translateY(40%) scale(.3); }
.barn-animal .emoji { font-size: 300px; }
.barn-animal.pop { animation: barnPop .6s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.barn-animal.wiggle .emoji, .barn-animal.wiggle img { animation: wiggleBig .5s; }
@keyframes barnPop { 0% { opacity: 1; transform: translateY(40%) scale(.3); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.peek-photo { width: 330px; height: 330px; border-radius: 50%; object-fit: cover; border: 14px solid #fff; margin-bottom: 16px; box-shadow: 0 0 60px rgba(255,214,10,.8); }
.barn-door { position: absolute; top: 0; width: 235px; height: 390px; border: 14px solid #fff; transition: transform .38s cubic-bezier(.4, 1.5, .5, 1); z-index: 3;
  background: linear-gradient(to top right, transparent calc(50% - 11px), #fff calc(50% - 11px) calc(50% + 11px), transparent calc(50% + 11px)),
              linear-gradient(to top left, transparent calc(50% - 11px), #fff calc(50% - 11px) calc(50% + 11px), transparent calc(50% + 11px)), #d62828; }
.barn-door.l { left: 0; transform-origin: 0 50%; }
.barn-door.r { right: 0; transform-origin: 100% 50%; }
.barn.open .barn-door.l { transform: rotateY(-110deg); }
.barn.open .barn-door.r { transform: rotateY(110deg); }
.barn.rattle:not(.open) .barn-door { animation: rattle .5s; }
@keyframes rattle { 0%, 100% { transform: rotateY(0); } 25% { transform: rotateY(-10deg); } 50% { transform: rotateY(5deg); } 75% { transform: rotateY(-6deg); } }
.hay { position: absolute; width: 200px; height: 130px; border-radius: 30px; background: repeating-linear-gradient(90deg, #f4c95d 0 22px, #e9b949 22px 26px); box-shadow: inset 0 -16px 0 rgba(0,0,0,.08); }

/* ---------- Safari ---------- */
.sav-sky { inset: 0; background: linear-gradient(#ff9e3d 0%, #ffcc70 42%, #ffe29a 64%); }
.sav-sun { left: 1250px; top: 240px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(#fff6c2, #ffd166 60%, #ff9f1c); box-shadow: 0 0 140px 60px rgba(255,209,102,.55); }
.sav-mtn { top: 400px; background: #c77d5c; clip-path: polygon(0 100%, 30% 20%, 45% 50%, 65% 0, 100% 100%); opacity: .6; }
.sav-ground { left: 0; right: 0; top: 640px; bottom: 0; background: linear-gradient(#e9b949, #d39b2a); }
.acacia { position: absolute; width: 360px; height: 360px; }
.acacia::before { content: ''; position: absolute; left: 165px; top: 80px; width: 30px; height: 280px; background: #5a3a1e; border-radius: 10px; transform: skewX(-6deg); }
.acacia::after { content: ''; position: absolute; left: 0; top: 30px; width: 360px; height: 110px; border-radius: 50%; background: #3a5a2a; box-shadow: 60px -30px 0 -10px #3a5a2a, -50px -10px 0 -20px #3a5a2a; }
.bird-row { left: 1500px; top: 160px; font-size: 80px; animation: bob 2s ease-in-out infinite; }
.clump { position: absolute; bottom: 30px; width: 340px; height: 470px; margin-left: -170px; }
.critter { position: absolute; left: 50%; bottom: 70px; transform: translate(-50%, 80px) scale(.7); opacity: 0; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), opacity .2s; }
.critter .emoji { font-size: 250px; }
.critter .emoji.dance { animation: dance .6s; }
.critter.up { transform: translate(-50%, -170px) scale(1); opacity: 1; }
.critter-photo { display: block; width: 230px; height: 230px; border-radius: 50%; object-fit: cover; border: 12px solid #fff; box-shadow: 0 0 0 8px #ffd166, 0 0 60px rgba(255,214,10,.8); }
.grass { position: absolute; left: 0; bottom: 0; width: 340px; height: 300px; transform-origin: 50% 100%; animation: sway 3s ease-in-out infinite; animation-delay: var(--sd, 0s); }
.clump.wiggle .grass { animation: grassWiggle .6s; }
.clump.shake .grass { animation: grassShake .3s; }
@keyframes grassWiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-6deg); } 40% { transform: rotate(6deg); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(3deg); } }
@keyframes grassShake { 0%, 100% { transform: rotate(0) scale(1); } 25% { transform: rotate(-10deg) scale(1.06); } 75% { transform: rotate(10deg) scale(1.06); } }

/* ---------- Beep Beep Road ---------- */
.road-sky { left: 0; right: 0; top: 0; height: 560px; background: linear-gradient(#4fc3f7, #b3e5fc); }
.road-hill { top: 320px; left: -100px; right: -100px; height: 300px; background: #8bc34a; border-radius: 50% 50% 0 0; }
.road-trees { left: 0; right: 0; top: 250px; height: 100px; }
.road-trees .emoji { position: absolute; font-size: 110px; }
.rails { top: 452px; left: 0; right: 0; height: 30px;
  background: linear-gradient(#9e9e9e 0 5px, transparent 5px 24px, #9e9e9e 24px 29px, transparent 29px),
              repeating-linear-gradient(90deg, #6d4c41 0 16px, transparent 16px 48px); }
.road-verge { top: 482px; left: 0; right: 0; height: 80px; background: #7cb342; }
.road { top: 560px; left: 0; right: 0; height: 250px; background: #555b6e; border-top: 12px solid #e0e0e0; border-bottom: 12px solid #e0e0e0; }
.road::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 12px; margin-top: -6px; background: repeating-linear-gradient(90deg, #ffd60a 0 90px, transparent 90px 170px); }
.road-grass { top: 810px; left: 0; right: 0; height: 60px; background: #7cb342; }
.water { top: 870px; left: 0; right: 0; bottom: 0; background: linear-gradient(#29b6f6, #0277bd); overflow: hidden; }
.waves { position: absolute; left: -120px; right: -120px; top: 0; height: 40px; animation: waves 2.2s linear infinite;
  background: radial-gradient(circle at 30px 0, transparent 22px, rgba(255,255,255,.55) 23px 28px, transparent 29px) 0 0 / 60px 40px repeat-x; }
@keyframes waves { to { transform: translateX(60px); } }
.vehicle { position: absolute; left: 0; top: 0; white-space: nowrap; z-index: 8; will-change: transform; }
.vehicle .vbody { display: inline-block; animation: bump .3s ease-in-out infinite alternate; }
.vehicle .vbody.bob { animation: bob 1.4s ease-in-out infinite; }
@keyframes bump { to { transform: translateY(-9px); } }
.vehicle .vbody { position: relative; }
.rider { position: absolute; left: 50%; top: -42%; transform: translateX(-50%); border-radius: 50%; object-fit: cover; border: 7px solid #fff; box-shadow: 0 6px 0 rgba(0,0,0,.15); animation: riderWave 0.9s ease-in-out infinite; }
@keyframes riderWave { 0%, 100% { transform: translateX(-50%) rotate(-8deg); } 50% { transform: translateX(-50%) rotate(8deg); } }

/* ---------- Count With Me ---------- */
/* Wallpapers: a new one fades in at the start of every counting round (the floor never changes). */
.count-wall { inset: 0; transition: opacity .7s ease; }
.count-wall.fresh { opacity: 0; }
.count-wall.w0 { background: radial-gradient(circle, rgba(255,255,255,.5) 10px, transparent 11px) 0 0 / 90px 90px, linear-gradient(#ffd6ec, #e0c3fc); }
.count-wall.w1 { background: repeating-linear-gradient(90deg, #c7f9cc 0 70px, #b5ead7 70px 140px); }
.count-wall.w2 { background: repeating-linear-gradient(45deg, rgba(255,255,255,.45) 0 30px, transparent 30px 60px), linear-gradient(#bde0fe, #a2d2ff); }
.count-wall.w3 { background: conic-gradient(#fff3b0 25%, #ffe17a 0 50%, #fff3b0 0 75%, #ffe17a 0) 0 0 / 160px 160px; }
.count-wall.w4 { background: radial-gradient(circle, #ffffff 16px, transparent 17px) 0 0 / 120px 120px, radial-gradient(circle, #ffd8be 16px, transparent 17px) 60px 60px / 120px 120px, linear-gradient(#ffe5d9, #ffcad4); }
.count-wall.w5 { background: repeating-linear-gradient(90deg, rgba(131,56,236,.12) 0 40px, transparent 40px 120px), repeating-linear-gradient(0deg, rgba(131,56,236,.12) 0 40px, transparent 40px 120px), #ece4ff; }
.count-wall.w6 { background: repeating-linear-gradient(90deg, #ffadad 0 80px, #ffd6a5 80px 160px, #fdffb6 160px 240px, #caffbf 240px 320px, #9bf6ff 320px 400px, #bdb2ff 400px 480px); }
.count-wall.w7 { background: radial-gradient(circle at 50% 100%, transparent 38px, rgba(255,255,255,.55) 39px 50px, transparent 51px) 0 0 / 100px 60px, linear-gradient(#b8f2e6, #aed9e0); }
.count-floor { left: 0; right: 0; top: 920px; bottom: 0; background: repeating-linear-gradient(90deg, #d4a373 0 160px, #c48f5f 160px 164px); }
.count-shelf { left: 430px; width: 1060px; height: 22px; border-radius: 12px; background: #fff; box-shadow: 0 10px 0 rgba(0,0,0,.08); }
.count-num { position: absolute; left: 50%; top: 40px; width: 300px; height: 300px; margin-left: -150px; border-radius: 50%; background: #fff; border: 14px solid var(--nc);
  display: flex; align-items: center; justify-content: center; font-size: 220px; font-weight: 900; color: var(--nc); box-shadow: 0 12px 0 rgba(0,0,0,.12); line-height: 1; }
.count-num.pop { animation: numPop .45s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes numPop { 0% { transform: scale(.4) rotate(-15deg); } 100% { transform: scale(1); } }
.slot { position: absolute; width: 170px; height: 170px; margin: -85px 0 0 -85px; border-radius: 50%; border: 6px dashed rgba(131,56,236,.35); }
.slot b { position: absolute; bottom: -62px; left: 50%; transform: translateX(-50%); font-size: 46px; color: rgba(131,56,236,.45); }
.slot.filled b { color: #8338ec; }
.count-item { position: absolute; font-size: 150px; transform: translate(-50%, -50%); z-index: 5; }
.count-item .emoji.wave { animation: waveJump .6s ease-out; }
.count-face { display: block; width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 8px solid #fff; box-shadow: 0 6px 0 rgba(0,0,0,.12); }
@keyframes waveJump { 40% { transform: translateY(-90px) rotate(-12deg) scale(1.2); } }
.party-photo { position: absolute; left: 960px; top: 560px; width: 420px; height: 420px; margin: -210px 0 0 -210px; z-index: 25; transform: scale(0); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.party-photo.on { transform: scale(1); }
.party-photo .pp-img, .party-photo .photo-fallback { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 16px solid #fff; box-shadow: 0 0 0 16px #ffd60a, 0 20px 60px rgba(0,0,0,.3); display: flex; }
.pp-yay { position: absolute; left: 50%; bottom: -70px; transform: translateX(-50%) rotate(-6deg); font-size: 120px; font-weight: 900; color: #f72585; text-shadow: var(--outline); }
.party-photo.on .pp-yay { animation: bob .6s ease-in-out infinite; }

/* ---------- Keepy Uppy Balloon ---------- */
.bal-sky { inset: 0; background: linear-gradient(#5ab8ff, #c6ecff 78%); }
.bal-grass { left: -100px; right: -100px; top: 930px; bottom: -200px; background: #5cc94a; border-radius: 50% 50% 0 0; }
.bal-flowers { left: 0; right: 0; top: 960px; }
.balloon-wrap { position: absolute; left: 0; top: 0; width: 260px; height: 600px; z-index: 10; will-change: transform; transform-origin: 130px 160px; }
.balloon-in { position: absolute; inset: 0; transform-origin: 130px 160px; }
.balloon-in.squash { animation: squash .4s; }
@keyframes squash { 0% { transform: scale(1.22, .8); } 40% { transform: scale(.88, 1.14); } 70% { transform: scale(1.05, .96); } 100% { transform: none; } }
.balloon { position: absolute; left: 0; top: 0; width: 260px; height: 320px; overflow: hidden; border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%;
  background-color: var(--bc); background-image: radial-gradient(circle at 32% 26%, rgba(255,255,255,.9) 0 7%, rgba(255,255,255,0) 24%);
  box-shadow: inset -30px -40px 70px rgba(0,0,0,.28), inset 20px 20px 50px rgba(255,255,255,.2); transition: background-color .3s; }
.balloon img { position: absolute; left: 30px; top: 46px; width: 200px; height: 200px; border-radius: 50%; object-fit: cover; opacity: 0; transition: opacity .4s; border: 6px solid rgba(255,255,255,.75); }
.balloon.photo img { opacity: 1; }
.balloon-knot { position: absolute; left: 115px; top: 312px; width: 30px; height: 24px; background: var(--bc); clip-path: polygon(50% 0, 100% 100%, 0 100%); transition: background .3s; }
.balloon-string { position: absolute; left: 100px; top: 332px; width: 60px; height: 280px; overflow: visible; }

/* ---------- Animal Band ---------- */
.band-bg { inset: 0; background: radial-gradient(ellipse at 50% 30%, #6a3dad, #2a0f57 70%); }
.band.party .band-bg { animation: disco 1.07s steps(1) infinite; }
@keyframes disco {
  0% { background: radial-gradient(ellipse at 50% 30%, #f72585, #3a0ca3 70%); }
  25% { background: radial-gradient(ellipse at 50% 30%, #4cc9f0, #3a0ca3 70%); }
  50% { background: radial-gradient(ellipse at 50% 30%, #ffd60a, #7209b7 70%); }
  75% { background: radial-gradient(ellipse at 50% 30%, #06d6a0, #3a0ca3 70%); }
}
.curtain { top: 0; bottom: 0; width: 220px; background: repeating-linear-gradient(90deg, #b5179e 0 40px, #7209b7 40px 80px); z-index: 2; }
.curtain.l { left: 0; border-radius: 0 0 70% 0; }
.curtain.r { right: 0; border-radius: 0 0 0 70%; }
.valance { left: 0; right: 0; top: 0; height: 90px; z-index: 3; background: repeating-linear-gradient(90deg, #f72585 0 60px, #b5179e 60px 120px); border-radius: 0 0 50% 50% / 0 0 40px 40px; }
.stage-floor { left: 0; right: 0; top: 880px; bottom: 0; background: repeating-linear-gradient(90deg, #8d5524 0 120px, #6f4518 120px 124px); }
.beam { position: absolute; top: -100px; width: 320px; height: 1300px; transform-origin: 50% 0; animation: beamSwing 4s ease-in-out infinite alternate;
  background: linear-gradient(rgba(255,255,255,.32), rgba(255,255,255,0)); clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); }
@keyframes beamSwing { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
.band.party .beam { animation-duration: 1s; }
.disco { position: absolute; left: 50%; top: -260px; width: 190px; height: 190px; margin-left: -95px; border-radius: 50%; z-index: 4; transition: top .5s cubic-bezier(.3, 1.5, .5, 1);
  background: repeating-conic-gradient(#f1f1f1 0 15deg, #9a9a9a 15deg 30deg); box-shadow: 0 0 70px rgba(255,255,255,.8); }
.band.party .disco { top: 70px; animation: spin 2s linear infinite; }
/* With a photo, the disco ball is the child's face with a mirror-tile shimmer. */
.disco img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.disco-glint { position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255,255,255,.35) 0 10deg, transparent 10deg 30deg),
              radial-gradient(circle at 35% 30%, rgba(255,255,255,.7) 0 8%, transparent 30%); }
.band.party .disco-glint { animation: spin 1.2s linear infinite reverse; }
.disco:has(img) { box-shadow: 0 0 0 8px #fff, 0 0 80px rgba(255,255,255,.9); }
.mus { position: absolute; width: 250px; height: 250px; margin: -125px 0 0 -125px; z-index: 5; }
.mus-pad { position: absolute; inset: 0; border-radius: 50%; border: 8px solid #fff; opacity: .92; transition: box-shadow .2s, transform .2s;
  background: radial-gradient(circle at 40% 35%, #fff 0 5%, var(--mc) 62%); }
.mus.lit .mus-pad { box-shadow: 0 0 0 14px rgba(255,255,255,.5), 0 0 90px 30px var(--mc); transform: scale(1.12); }
.mus-emoji { position: absolute; left: 50%; top: 50%; font-size: 150px; transform: translate(-50%, -56%); }
.mus.sing .mus-emoji { animation: sing .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes sing { 0% { transform: translate(-50%, -56%); } 40% { transform: translate(-50%, -90%) scale(1.3) rotate(-10deg); } 100% { transform: translate(-50%, -56%); } }
/* Everyone grooves to the 124 bpm beat; bigger during the party. */
.band .mus:not(.sing) .mus-emoji { animation: groove .484s ease-in-out infinite; }
@keyframes groove { 0%, 100% { transform: translate(-50%, -56%); } 50% { transform: translate(-50%, -62%) rotate(2deg); } }
.band.party .mus:not(.sing) .mus-emoji { animation: partyBob .484s ease-in-out infinite; }
.floor-glow { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(247,37,133,.35) 0 240px, rgba(76,201,240,.35) 240px 480px, rgba(255,214,10,.35) 480px 720px);
  animation: floorPulse .968s steps(2) infinite; mix-blend-mode: screen; }
@keyframes floorPulse { 0% { opacity: .25; } 50% { opacity: .8; } }
.band.party .floor-glow { animation-duration: .484s; }
@keyframes partyBob { 0%, 100% { transform: translate(-50%, -56%); } 50% { transform: translate(-50%, -72%) rotate(6deg); } }
.mus-label { position: absolute; left: 50%; top: 250px; transform: translateX(-50%); font-size: 32px; font-weight: 900; color: #fff; background: rgba(0,0,0,.35); padding: 0 16px; border-radius: 20px; }

/* ---------- Bubble Pop ---------- */
.sea { inset: 0; background: linear-gradient(#a0e9ff 0%, #4cc9f0 35%, #1e88e5 75%, #1565c0); }
.sea-rays { inset: 0; background: repeating-linear-gradient(100deg, rgba(255,255,255,.13) 0 60px, transparent 60px 220px); animation: rays 8s ease-in-out infinite alternate; }
@keyframes rays { from { transform: translateX(-60px); } to { transform: translateX(60px); } }
.sand { left: -100px; right: -100px; top: 960px; bottom: -100px; background: #ffe08a; border-radius: 50% 50% 0 0; }
.shells { left: 300px; right: 300px; top: 985px; display: flex; justify-content: space-between; font-size: 60px; }
.weed { position: absolute; bottom: 70px; width: 40px; border-radius: 40px 40px 0 0; transform-origin: 50% 100%; animation: sway 3s ease-in-out infinite; }
.bg-fish { position: absolute; left: 0; font-size: 80px; opacity: .55; animation: swim linear infinite; }
@keyframes swim { from { transform: translateX(2050px); } to { transform: translateX(-250px); } }
.bubble { position: absolute; left: 0; top: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; will-change: transform; z-index: 6;
  background: radial-gradient(circle at 30% 28%, rgba(255,255,255,.95) 0 7%, rgba(255,255,255,.25) 16%, rgba(255,255,255,.06) 45%, rgba(190,230,255,.35) 80%, rgba(255,255,255,.75) 100%);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.65), inset -10px -14px 30px rgba(255,120,220,.28), inset 12px 10px 30px rgba(120,255,240,.28); }
.bubble .emoji { opacity: .92; }
.bubble img { width: 76%; height: 76%; border-radius: 50%; object-fit: cover; opacity: .92; }
.freed { position: absolute; left: 0; top: 0; z-index: 9; }
.freed img { width: 260px; height: 260px; border-radius: 50%; object-fit: cover; border: 10px solid #fff; display: block; }

/* ---------- Night-Night ---------- */
.night-sky { inset: 0; background: linear-gradient(#070b24 0%, #1b1f5c 55%, #3a2f78 100%); }
.star { position: absolute; width: var(--sz); height: var(--sz); border-radius: 50%; background: #fff8d6; box-shadow: 0 0 10px 2px rgba(255,248,214,.6); animation: twinkle var(--d) ease-in-out infinite; animation-delay: var(--dl); }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.15); } }
.moon { position: absolute; left: 1450px; top: 110px; width: 260px; height: 260px; border-radius: 50%; overflow: hidden; transition: box-shadow 3s;
  background: radial-gradient(circle at 40% 35%, #fffbe6, #ffe8a3 70%, #f5d06f); box-shadow: 0 0 80px 30px rgba(255,236,160,.3); }
.moon .crater { position: absolute; border-radius: 50%; background: rgba(200,160,60,.25); }
/* The photo is softly blended into the moon, then glows clearly at the very end. */
.moon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; mix-blend-mode: luminosity; transition: opacity 3s; z-index: 2; }
.moon::after { content: ''; position: absolute; inset: 0; border-radius: 50%; z-index: 3; pointer-events: none;
  background: radial-gradient(circle, transparent 55%, rgba(255,236,160,.7) 100%); }
.moon.lit { box-shadow: 0 0 150px 70px rgba(255,236,160,.55); }
.moon.lit img { opacity: .95; mix-blend-mode: normal; }
.night-hill { left: -200px; right: -200px; top: 820px; height: 700px; border-radius: 50% 50% 0 0; background: #241d4f; }
.sleeper { position: absolute; width: 180px; height: 180px; margin: -90px 0 0 -90px; display: flex; align-items: center; justify-content: center; transition: transform 1.3s ease, filter 1.3s ease; z-index: 5; }
.sleeper .emoji { font-size: 150px; }
.sleeper.yawn { transform: scale(1.2) translateY(-24px); }
.sleeper.asleep { transform: rotate(-14deg) translateY(18px) scale(.92); filter: brightness(.6) saturate(.6); }
.night-dim { inset: 0; background: #000; opacity: 0; transition: opacity 8s; pointer-events: none; z-index: 20; }
.shooting { position: absolute; left: 0; top: 0; width: 170px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, rgba(255,255,255,0), #fff); box-shadow: 0 0 12px #fff; z-index: 3; }

/* ---------- Grown-ups corner ---------- */
#overlay { position: absolute; inset: 0; z-index: 70; display: none; }
#overlay.on { display: block; background: rgba(20,16,50,.78); }
.p-panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 1150px; max-height: 1000px; display: flex; flex-direction: column;
  background: #fff; border-radius: 40px; padding: 36px 50px; box-shadow: 0 30px 80px rgba(0,0,0,.4); font-family: inherit; }
.p-title { font-size: 60px; font-weight: 900; color: #8338ec; margin: 0 0 6px; }
.p-close { position: absolute; right: 30px; top: 26px; height: 84px; padding: 0 32px; border-radius: 42px; border: 5px solid #fff;
  background: #ff4d6d; color: #fff; font: inherit; font-size: 40px; font-weight: 900; line-height: 1; white-space: nowrap; cursor: pointer;
  box-shadow: 0 6px 0 rgba(0,0,0,.18); z-index: 3; }
.p-close::after { content: ''; position: absolute; inset: -16px; } /* bigger tap area on small screens */
.p-close:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.p-sub { font-size: 28px; color: #555; margin: 0 0 18px; line-height: 1.35; }
.p-item { display: block; width: 100%; text-align: left; font: inherit; font-size: 44px; font-weight: 800; padding: 14px 30px; margin: 8px 0;
  border-radius: 24px; border: 5px solid #e5e5f0; background: #f6f5ff; color: #2b2d42; cursor: pointer; }
.p-item.sel { border-color: #8338ec; background: #efe5ff; }
.p-items { overflow-y: auto; min-height: 0; flex: 1 1 auto; padding-right: 6px; }
.p-slider { cursor: default; }
.ps-top { display: flex; justify-content: space-between; align-items: center; }
.ps-val { color: #8338ec; font-weight: 900; }
.p-slider input[type=range] { width: 100%; height: 60px; margin: 6px 0 0; accent-color: #8338ec; cursor: pointer; }
.ps-ends { display: flex; justify-content: space-between; font-size: 24px; color: #777; font-weight: 700; }
.ps-hint { font-size: 24px; font-weight: 600; color: #666; margin: 8px 0 0; line-height: 1.35; }
.p-keys { font-size: 24px; color: #666; margin: 16px 0 0; line-height: 1.4; }
.studio { height: 1000px; }
/* "Are you sure?" covers the recording list. Yes is kept away from the other buttons. */
.p-ask { position: absolute; inset: 0; z-index: 4; background: rgba(20,16,50,.6); }
.p-ask .ask-yes { margin-top: 40px; color: #d90429; }
.p-ask .ask-yes:disabled { opacity: .5; }
.v-list { overflow-y: auto; flex: 1; padding-right: 10px; }
.v-group { font-size: 28px; font-weight: 900; color: #8338ec; margin: 20px 0 4px; text-transform: uppercase; letter-spacing: 2px; }
.v-row { display: flex; align-items: center; gap: 14px; padding: 10px 18px; border-radius: 20px; border: 4px solid transparent; font-size: 34px; }
.v-row.sel { border-color: #8338ec; background: #f3ecff; }
.v-row.done .v-text::after { content: ' ✔'; color: #06d6a0; }
.v-text { flex: 1; font-weight: 800; }
/* Which voice each line uses: colored badges so they're easy to tell apart at a glance. */
.v-stat { font-size: 22px; font-weight: 800; min-width: 290px; padding: 6px 14px; border-radius: 20px; text-align: center; white-space: nowrap; }
.v-stat.default { background: #d8f3dc; color: #1b4332; }
.v-stat.replaced { background: #ffe5b4; color: #8a4b00; }
.v-stat.mine { background: #e7dcff; color: #4c1d95; }
.v-stat.robot { background: #eceef3; color: #555b6e; }
.v-row button { font: inherit; font-size: 26px; font-weight: 800; border: none; border-radius: 16px; padding: 8px 18px; background: #e8e6ff; color: #2b2d42; cursor: pointer; }
.v-row button.rec { background: #ff4d6d; color: #fff; min-width: 130px; }
.v-row.recording { background: #ffe3e9; border-color: #ff4d6d; }
.v-row.recording button.rec { animation: recPulse .8s ease-in-out infinite; }
@keyframes recPulse { 50% { transform: scale(1.1); background: #c9184a; } }

/* ---------- Vroom Vroom (driving) ---------- */
.g-drive .pup-corner { display: none; }
.drive-canvas { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
.hood { position: absolute; left: -260px; right: -260px; top: 700px; height: 320px; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: linear-gradient(#ff6b81, #e63950 45%, #c81d3a); box-shadow: inset 0 14px 0 rgba(255,255,255,.35); }
.hood::after { content: ''; position: absolute; left: 50%; top: 18px; width: 420px; height: 40px; margin-left: -210px; border-radius: 40px; background: rgba(255,255,255,.28); }
.dash { position: absolute; left: 0; right: 0; top: 770px; bottom: -20px; border-radius: 70px 70px 0 0;
  background: linear-gradient(#ffe066, #ffd60a 35%, #f4b400); box-shadow: 0 -10px 0 #ffb703, inset 0 12px 0 rgba(255,255,255,.45); }
.dash-shine { position: absolute; left: 60px; right: 60px; top: 22px; height: 16px; border-radius: 10px; background: rgba(255,255,255,.35); }
.speedo { position: absolute; left: 120px; top: 50px; width: 260px; height: 260px; filter: drop-shadow(0 8px 0 rgba(0,0,0,.15)); }
.speedo svg { width: 100%; height: 100%; }
.star-count { position: absolute; left: 30px; top: 30px; display: flex; align-items: center; gap: 8px; padding: 6px 18px; border-radius: 30px;
  background: #8338ec; color: #fff; font-size: 44px; font-weight: 900; border: 5px solid #fff; }
.star-count .emoji { font-size: 40px; }
.star-count.pop, .radio.pop { animation: numPop .35s cubic-bezier(.3, 1.8, .5, 1); }
.bulbs { position: absolute; left: 70px; bottom: 30px; display: flex; gap: 26px; }
.bulbs i { width: 34px; height: 34px; border-radius: 50%; background: var(--bc); border: 5px solid #fff; animation: bulb 1.6s steps(1) infinite; }
.bulbs i:nth-child(2) { animation-delay: .4s; } .bulbs i:nth-child(3) { animation-delay: .8s; } .bulbs i:nth-child(4) { animation-delay: 1.2s; }
@keyframes bulb { 50% { filter: brightness(1.5); box-shadow: 0 0 20px var(--bc); } }
.signal { position: absolute; top: 18px; font-size: 64px; font-weight: 900; color: #06d6a0; opacity: .25; text-shadow: 0 4px 0 rgba(0,0,0,.2); }
.signal.l { left: 420px; } .signal.r { right: 420px; }
.signal.on { opacity: 1; animation: blink .45s steps(1) infinite; }
@keyframes blink { 50% { opacity: .3; } }
.vent { position: absolute; top: 120px; width: 130px; height: 70px; border-radius: 20px; background: repeating-linear-gradient(#2b2d42 0 10px, #4a4e69 10px 18px); border: 6px solid #fff; }
.vent.v1 { left: 410px; } .vent.v2 { right: 410px; }
/* "Names" button on the dash: turns the spoken animal names on/off. */
.names-btn { position: absolute; left: 392px; top: 92px; width: 122px; height: 118px; border-radius: 28px; border: 6px solid #fff; cursor: pointer;
  background: #06d6a0; color: #fff; font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  box-shadow: 0 8px 0 rgba(0,0,0,.2); }
.names-btn .emoji { font-size: 46px; }
.names-btn b { font-size: 26px; font-weight: 900; line-height: 1; text-shadow: 0 2px 0 rgba(0,0,0,.2); }
.names-btn.muted { background: #8d99ae; }
.names-btn.muted::after { content: ''; position: absolute; left: 16px; right: 16px; top: 50%; height: 9px; margin-top: -26px; background: #ff4d6d; border-radius: 6px; transform: rotate(-28deg); }
.names-btn.pop { animation: numPop .35s cubic-bezier(.3, 1.8, .5, 1); }
.names-btn:active { transform: translateY(5px); box-shadow: 0 3px 0 rgba(0,0,0,.2); }
.radio { position: absolute; right: 36px; top: 40px; width: 420px; height: 230px; border-radius: 30px; background: #3a0ca3; border: 7px solid #fff; padding: 16px; }
.radio-display { height: 80px; border-radius: 16px; background: #06d6a0; color: #073b4c; font-size: 48px; font-weight: 900; display: flex; align-items: center; justify-content: center; gap: 12px;
  box-shadow: inset 0 0 0 4px rgba(0,0,0,.15); }
.radio-display .emoji { font-size: 42px; }
.radio-btns { display: flex; justify-content: space-between; margin-top: 18px; }
.radio-btn { width: 70px; height: 70px; border-radius: 50%; border: 5px solid #fff; background: var(--rc); color: #fff; font: inherit; font-size: 36px; font-weight: 900; cursor: pointer; box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.radio-btn:active { transform: translateY(5px); box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.radio-btn.off { font-size: 34px; }
/* Radio switched off: the screen goes dark. */
.radio.is-off .radio-display { background: #2b2d42; color: #6c6f8a; }
.bobble { position: absolute; left: 1600px; top: 610px; width: 150px; height: 172px; transform-origin: 50% 100%; z-index: 3; }
.bobble .pup { position: absolute; left: 0; top: 0; width: 150px; height: 172px; }
/* Big toy steering wheel: only the top two-thirds shows. */
.wheel { position: absolute; left: 600px; top: 570px; width: 720px; height: 720px; z-index: 4; will-change: transform; transform-origin: 50% 50%; }
.wheel svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 14px 0 rgba(0,0,0,.2)); }
.wheel .horn { cursor: pointer; transform-box: fill-box; transform-origin: center; }
.wheel .horn.press { animation: hornPress .3s ease-out; }
@keyframes hornPress { 0% { transform: scale(1); } 30% { transform: scale(.86); } 100% { transform: scale(1); } }

/* ---------- ABC Castle ---------- */
.abc-sky { inset: 0; background: linear-gradient(#7cc7ff, #c9ecff 45%, #e6f7ff 55%); }
.abc-rainbow { position: absolute; left: 210px; top: 120px; width: 320px; height: 160px; overflow: hidden; }
.abc-rainbow i { position: absolute; left: 50%; bottom: -160px; border-radius: 50%; border: 22px solid; transform: translateX(-50%); opacity: .85; }
.abc-rainbow i:nth-child(1) { width: 320px; height: 320px; border-color: #ff4d6d; }
.abc-rainbow i:nth-child(2) { width: 276px; height: 276px; border-color: #ffb703; }
.abc-rainbow i:nth-child(3) { width: 232px; height: 232px; border-color: #ffd60a; }
.abc-rainbow i:nth-child(4) { width: 188px; height: 188px; border-color: #06d6a0; }
.abc-rainbow i:nth-child(5) { width: 144px; height: 144px; border-color: #3a86ff; }
.abc-hill { border-radius: 50% 50% 0 0; }
.abc-hill.h1 { left: -250px; width: 1250px; top: 400px; height: 400px; background: #8ee26a; }
.abc-hill.h2 { left: 760px; width: 1500px; top: 370px; height: 420px; background: #74d655; }
.abc-prop { position: absolute; transform-origin: 50% 100%; }
.abc-prop.cow { animation: graze 3.2s ease-in-out infinite; }
@keyframes graze { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-6deg) translateY(4px); } }
.abc-flowers { left: 0; right: 0; top: 470px; height: 70px; }
.abc-flowers .emoji { position: absolute; font-size: 56px; transform-origin: 50% 100%; animation: sway 2.6s ease-in-out infinite; }
/* fairy-tale castle */
.castle { position: absolute; left: 1360px; top: 150px; width: 420px; height: 330px; }
.c-keep { position: absolute; left: 110px; top: 110px; width: 200px; height: 220px; background: #ffd6e8; border-radius: 10px 10px 0 0;
  background-image: linear-gradient(90deg, transparent 0 20px, #ffc2dc 20px 40px, transparent 40px 60px); background-size: 60px 22px; background-repeat: repeat-x; }
.c-tower { position: absolute; top: 60px; width: 100px; height: 270px; background: #f9c6e0; border-radius: 8px 8px 0 0; }
.c-tower.l { left: 20px; } .c-tower.r { right: 20px; }
.c-roof { position: absolute; left: -14px; top: -96px; width: 128px; height: 100px; background: #8338ec; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.c-roof.big { left: -10px; top: -120px; width: 220px; height: 124px; background: #3a86ff; }
.c-flag { position: absolute; left: 50px; top: -140px; width: 4px; height: 46px; background: #6b4f3a; }
.c-flag::after { content: ''; position: absolute; left: 4px; top: 0; width: 34px; height: 22px; background: #ff4d6d; clip-path: polygon(0 0, 100% 50%, 0 100%); animation: flagWave 1.2s ease-in-out infinite; transform-origin: 0 50%; }
.c-flag.big { left: 98px; top: -168px; }
.c-flag.big::after { background: #ffd60a; }
@keyframes flagWave { 50% { transform: scaleX(.7) skewY(6deg); } }
.c-win { position: absolute; left: 34px; top: 50px; width: 32px; height: 48px; border-radius: 16px 16px 4px 4px; background: #5a4fcf; }
.c-win.w1 { left: 36px; top: 40px; } .c-win.w2 { left: auto; right: 36px; top: 40px; }
.c-gate { position: absolute; left: 60px; bottom: 0; width: 80px; height: 110px; border-radius: 40px 40px 0 0; background: #8d5524; box-shadow: inset 0 0 0 8px #6f4518; }
/* the big letter, the thing that pops out, and the row of typed letters */
.abc-big { position: absolute; left: 0; right: 0; top: 20px; text-align: center; font-size: 300px; font-weight: 900; line-height: 1; color: var(--kc, #ff4d6d);
  text-shadow: var(--outline-big); pointer-events: none; z-index: 10; }
.abc-big.pop { animation: abcPop .45s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes abcPop { 0% { transform: scale(.3) rotate(-12deg); } 100% { transform: scale(1) rotate(0); } }
.abc-thing { position: absolute; left: 960px; top: 190px; width: 340px; height: 340px; margin: -170px 0 0 -170px; z-index: 11; pointer-events: none;
  display: flex; align-items: center; justify-content: center; transform: scale(0); }
.abc-thing .emoji { font-size: 280px; }
.abc-thing img { width: 300px; height: 300px; border-radius: 50%; object-fit: cover; border: 14px solid #fff; box-shadow: 0 0 0 10px #ffd60a; }
.abc-thing.on { animation: thingIn .6s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.abc-thing.on.hop > * { animation: thingHop .4s ease-out; }
.abc-thing.on.cheer > * { animation: dance .7s ease-out 2; }
@keyframes thingIn { 0% { transform: scale(0) rotate(-20deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes thingHop { 40% { transform: translateY(-40px) scale(1.08); } }
.abc-strip { position: absolute; left: 0; right: 0; top: 400px; display: flex; justify-content: center; gap: 10px; z-index: 10; pointer-events: none; }
.abc-mini { width: 72px; height: 72px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 50px; font-weight: 900; color: #fff;
  background: var(--kc); border: 5px solid #fff; box-shadow: 0 6px 0 rgba(0,0,0,.18); text-shadow: 0 3px 0 rgba(0,0,0,.2); transition: transform .2s; }
.abc-mini.empty { background: rgba(255,255,255,.35); border: 5px dashed rgba(255,255,255,.9); box-shadow: none; }
.abc-mini.match { box-shadow: 0 0 0 5px #ffd60a, 0 6px 0 rgba(0,0,0,.18); }
.abc-mini.lit { transform: translateY(-16px) scale(1.25); }
/* the toy-block keyboard */
.abc-board { position: absolute; left: 0; right: 0; top: 540px; bottom: 0; padding-top: 22px; display: flex; flex-direction: column; gap: 18px; align-items: center;
  background: repeating-linear-gradient(90deg, #e9b872 0 220px, #e2ad63 220px 224px); border-top: 14px solid #b9773a; box-shadow: inset 0 10px 0 rgba(255,255,255,.25); }
.abc-row { display: flex; gap: 18px; }
.abc-key { position: relative; width: 170px; height: 146px; border-radius: 22px; border: none; cursor: pointer; padding: 0; font: inherit;
  background: var(--kc); box-shadow: inset 0 0 0 10px rgba(255,255,255,.35), 0 12px 0 rgba(0,0,0,.25); transition: transform .08s; }
.abc-key i { position: absolute; inset: 18px; border-radius: 14px; border: 4px solid rgba(255,255,255,.55); }
.abc-key b { position: relative; font-size: 104px; font-weight: 900; color: #fff; line-height: 1; text-shadow: 0 5px 0 rgba(0,0,0,.22); }
.abc-key.press { animation: keyPress .25s ease-out; }
@keyframes keyPress { 0% { transform: translateY(0); } 35% { transform: translateY(10px) scale(.96); box-shadow: inset 0 0 0 10px rgba(255,255,255,.35), 0 2px 0 rgba(0,0,0,.25); } 100% { transform: translateY(0); } }
.abc-key.sel { transform: translateY(-8px) scale(1.06); box-shadow: inset 0 0 0 10px rgba(255,255,255,.35), 0 0 0 8px #2b2d42, 0 12px 0 rgba(0,0,0,.25); z-index: 2; }

/* ---------- lighter mode for TVs (Chromecast): drop the most expensive effects ---------- */
.lite .sunburst { width: 2400px; height: 2400px; margin: -1200px 0 0 -1200px; animation-duration: 90s; }
.lite .sun .rays { animation: none; }
.lite .floor-glow, .lite .moon img, .lite .sun .core img.faded { mix-blend-mode: normal; }
.lite .moon img { opacity: .3; }
.lite .sea-rays { animation: none; }
.lite .butterfly.b2, .lite .bg-fish:nth-of-type(n+3) { display: none; }
.lite .beam { animation-duration: 6s; }
.lite .beam ~ .beam { display: none; }           /* one spotlight instead of three */
.lite .floaty:nth-of-type(n+4) { display: none; } /* fewer floating balloons on the title */
.lite .sunburst { animation: none; }
.lite .weed:nth-of-type(2n) { display: none; }
.lite .disco-glint { animation: none; }
.lite .bigface .bf-ring { animation-duration: 3s; }
.lite .spot.sel::before, .lite .title-photo .ring { animation-duration: 6s; }
.lite .star { box-shadow: none; }
.lite .cloud { will-change: transform; }

/* child's name keyboard */
.name-panel { width: 1180px; }
.name-preview { display: flex; align-items: center; justify-content: center; min-height: 150px; margin: 6px 0 18px; padding: 0 30px;
  border-radius: 30px; background: #f6f5ff; border: 6px solid #e5e5f0; font-size: 110px; font-weight: 900; color: #8338ec; text-shadow: var(--outline); white-space: nowrap; overflow: hidden; }
.name-caret { display: inline-block; width: 10px; height: 110px; margin-left: 8px; border-radius: 5px; background: #ff4d6d; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.kb { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.kb-key { font: inherit; font-size: 58px; font-weight: 900; height: 104px; border-radius: 26px; cursor: pointer; color: #fff;
  background: var(--kc); border: 6px solid #fff; box-shadow: 0 8px 0 rgba(0,0,0,.18); text-shadow: 0 3px 0 rgba(0,0,0,.2); transition: transform .12s; }
.kb-key:active { transform: translateY(6px); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.kb-key.sel, .kb-act.sel { transform: scale(1.1); box-shadow: 0 0 0 7px #2b2d42, 0 10px 0 rgba(0,0,0,.18); position: relative; z-index: 2; }
.kb-actions { display: flex; gap: 20px; margin-top: 18px; }
.kb-act { margin: 0; text-align: center; }

/* the big face moment */
.bigface { position: absolute; left: 960px; top: 540px; margin: -320px 0 0 -320px; z-index: 38; pointer-events: none; will-change: transform, opacity; }
.bigface img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 22px solid #fff; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.bigface .bf-ring { position: absolute; inset: -40px; border-radius: 50%; animation: spin 1.6s linear infinite;
  background: conic-gradient(#ff4d6d, #ffb703, #ffd60a, #06d6a0, #3a86ff, #8338ec, #ff4d6d); }
.bf-disco .bf-ring { animation-duration: .484s;
  background: repeating-conic-gradient(#f72585 0 15deg, #4cc9f0 15deg 30deg, #ffd60a 30deg 45deg, #06d6a0 45deg 60deg); }
.bf-glow .bf-ring { animation: none; background: radial-gradient(circle, rgba(255,236,160,.9) 55%, rgba(255,236,160,0) 72%); inset: -90px; }
.bf-glow img { border-color: #fff6c2; box-shadow: 0 0 120px 40px rgba(255,236,160,.6); }
.bf-inflate img { box-shadow: inset 0 0 0 6px rgba(255,255,255,.6), 0 0 0 10px rgba(160,230,255,.6), 0 30px 80px rgba(0,0,0,.3); }
.sun .core img.faded { opacity: .55; mix-blend-mode: luminosity; }

/* photo screen + cropper */
.photo-preview { width: 260px; height: 260px; border-radius: 50%; overflow: hidden; margin: 0 auto 10px; border: 10px solid #fff;
  box-shadow: 0 0 0 10px #8338ec; background: #cfe4ff; display: flex; align-items: flex-end; justify-content: center; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview svg { width: 85%; height: 85%; }
.crop-wrap { display: flex; gap: 40px; align-items: center; }
.crop-circle { position: relative; flex: none; width: 560px; height: 560px; border-radius: 50%; overflow: hidden; background: #222;
  box-shadow: 0 0 0 12px #fff, 0 0 0 22px #8338ec; cursor: grab; touch-action: none; }
.crop-img { position: absolute; left: 0; top: 0; max-width: none; user-select: none; pointer-events: none; }
.crop-side { flex: 1; }
.crop-zoom { display: flex; align-items: center; gap: 20px; font-size: 40px; font-weight: 800; margin: 10px 0 20px; }
.p-btn { font: inherit; font-size: 56px; font-weight: 900; width: 96px; height: 96px; border-radius: 50%; border: 5px solid #8338ec; background: #f3ecff; color: #8338ec; cursor: pointer; line-height: 1; }
