/* Little Games: huge, friendly, picture-only answers for children from 3 years old. */
.lg-launch{position:absolute;left:50%;bottom:64px;transform:translateX(-50%);z-index:9;display:flex;align-items:center;gap:10px;padding:12px 30px 12px 14px;border:4px solid #2c2433;border-radius:999px;background:#ffd23f;color:#2c2433;font:800 30px/1 'Baloo 2',Nunito,sans-serif;box-shadow:0 7px 0 #2c2433;cursor:pointer;animation:lg-bob 2.4s ease-in-out infinite}
.lg-launch:active{transform:translate(-50%,5px);box-shadow:0 2px 0 #2c2433}
.lg-launch-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:#fff;border:3px solid #2c2433;font-size:32px}
.lg-launch[hidden]{display:none}
body[data-play-world=forest] .lg-launch,body[data-play-world=ocean] .lg-launch{bottom:150px}
@keyframes lg-bob{0%,100%{translate:0 0}50%{translate:0 -6px}}

.lg-panel{position:absolute;inset:0;z-index:20;display:grid;place-items:center;padding:96px 16px 24px;background:#2c243355;overflow:hidden}
.lg-panel[hidden]{display:none}
.lg-card{position:relative;width:min(760px,100%);max-height:100%;overflow:auto;padding:22px 26px 30px;border:5px solid #2c2433;border-radius:40px;background:#fffdf5;box-shadow:0 10px 0 #2c2433;text-align:center;color:#2c2433;font-family:'Baloo 2',Nunito,sans-serif;animation:lg-pop .35s cubic-bezier(.3,1.6,.6,1)}
.lg-card.won{animation:lg-joy .6s ease}
.lg-card h2{margin:6px 0;font-size:44px;line-height:1.05}
.lg-card p{margin:0 auto;max-width:560px;font-size:24px;font-weight:700;line-height:1.25}
.lg-top{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:52px}
.lg-badge{padding:6px 16px;border:3px solid #2c2433;border-radius:999px;background:#bdf0ff;font-size:20px;font-weight:800}
.lg-close{width:52px;height:52px;border:3px solid #2c2433;border-radius:50%;background:#fff;font:800 24px/1 inherit;color:#2c2433;box-shadow:0 4px 0 #2c2433;cursor:pointer}
.lg-go,.lg-explore{margin-top:22px;padding:14px 34px;border:4px solid #2c2433;border-radius:999px;background:#4cd27a;color:#fff;font:800 32px/1 'Baloo 2',Nunito,sans-serif;text-shadow:0 2px 0 #2c243366;box-shadow:0 7px 0 #2c2433;cursor:pointer}
.lg-explore{background:#4aa3ff}
.lg-go:active,.lg-explore:active,.lg-close:active{transform:translateY(5px);box-shadow:0 2px 0 #2c2433}
.lg-actions{display:flex;gap:16px;justify-content:center;flex-wrap:wrap}

.lg-stars{display:flex;gap:6px;font-size:34px;line-height:1}
.lg-stars span{color:#e3dccb;-webkit-text-stroke:2px #2c2433}
.lg-stars .won{color:#ffd23f}.lg-stars .now{color:#fff3b0;animation:lg-bob 1.2s ease-in-out infinite}
.lg-prompt{display:flex;align-items:center;justify-content:center;gap:14px;margin:8px 0 14px}
.lg-prompt p{font-size:30px;font-weight:800}
.lg-hear{flex:none;width:64px;height:64px;border:4px solid #2c2433;border-radius:50%;background:#a978ff;font-size:30px;box-shadow:0 5px 0 #2c2433;cursor:pointer}
.lg-scene{margin:-4px 0 10px}

.lg-choices,.lg-count{display:flex;justify-content:center;align-items:center;gap:22px;flex-wrap:wrap}
.lg-choice,.lg-item{position:relative;display:grid;place-items:center;width:clamp(120px,24vw,170px);height:clamp(120px,24vw,170px);padding:0;border:5px solid #2c2433;border-radius:36px;background:#fff;box-shadow:0 8px 0 #2c2433;cursor:pointer;transition:transform .15s}
.lg-choice:hover,.lg-item:hover{transform:translateY(-4px) rotate(-2deg)}
.lg-choice:active,.lg-item:active{transform:translateY(5px);box-shadow:0 3px 0 #2c2433}
.lg-item{width:clamp(90px,15vw,120px);height:clamp(90px,15vw,120px);border-radius:28px;background:#bdf0ff}
.lg-item.counted{background:#ffd23f}
.lg-item.counted::after{content:attr(data-n);position:absolute;top:-16px;right:-12px;width:44px;height:44px;border:3px solid #2c2433;border-radius:50%;background:#ff5a5f;color:#fff;font:800 26px/38px 'Baloo 2',Nunito,sans-serif}
.lg-number{margin-top:14px;min-height:80px;font:800 80px/1 'Baloo 2',Nunito,sans-serif;color:#ff5a5f;-webkit-text-stroke:3px #2c2433}
.lg-number.bump{animation:lg-pop .35s cubic-bezier(.3,1.6,.6,1)}
.lg-svg{width:78%;height:78%}
.lg-emoji{line-height:1;filter:drop-shadow(0 3px 0 #2c243333)}
.lg-choice.right{background:#c9f7d6;border-color:#1fa877;animation:lg-joy .6s ease}
.lg-choice.hint{background:#fff3b0;animation:lg-glow 1s ease-in-out infinite}
.lg-choice.wiggle{animation:lg-wiggle .45s ease}
.lg-choice.hatched .lg-emoji{animation:lg-pop .5s cubic-bezier(.3,1.6,.6,1)}

.lg-done .lg-trophy{font-size:110px;line-height:1;animation:lg-joy 1s ease infinite}
.lg-confetti{position:absolute;inset:0;pointer-events:none}
.lg-confetti i{position:absolute;top:-20px;width:14px;height:22px;border-radius:5px;animation:lg-fall 1.6s ease-in forwards}

@keyframes lg-pop{from{transform:scale(.8)}to{transform:scale(1)}}
@keyframes lg-joy{0%,100%{transform:scale(1) rotate(0)}30%{transform:scale(1.08) rotate(-3deg)}60%{transform:scale(1.04) rotate(3deg)}}
@keyframes lg-wiggle{0%,100%{transform:translateX(0)}25%{transform:translateX(-10px) rotate(-4deg)}75%{transform:translateX(10px) rotate(4deg)}}
@keyframes lg-glow{0%,100%{box-shadow:0 8px 0 #2c2433,0 0 0 0 #ffd23f}50%{box-shadow:0 8px 0 #2c2433,0 0 0 14px #ffd23f88}}
@keyframes lg-fall{to{transform:translate(var(--drift),110vh) rotate(540deg)}}

@media(max-width:600px){.lg-panel{padding:84px 10px 14px}.lg-card{padding:14px 14px 22px;border-radius:30px}.lg-card h2{font-size:34px}.lg-prompt p{font-size:23px}.lg-card p{font-size:20px}.lg-launch{font-size:24px;bottom:18px}.lg-choices,.lg-count{gap:14px}}
@media(prefers-reduced-motion:reduce){.lg-launch,.lg-card,.lg-card.won,.lg-number.bump,.lg-choice.right,.lg-choice.hint,.lg-choice.wiggle,.lg-done .lg-trophy,.lg-stars .now{animation:none}.lg-confetti{display:none}}

/* Hub: each world card names its own learning idea in a big badge. */
.lg-world-concept{display:inline-flex;align-items:center;gap:6px;margin-bottom:6px;padding:4px 14px;border:3px solid #2c2433;border-radius:999px;background:#ffd23f;color:#2c2433;font:800 18px/1.3 'Baloo 2',Nunito,sans-serif;box-shadow:0 3px 0 #2c2433}
.world-card .world-regions,.world-card .replay-tag{display:none}
