/* Animal Sound Match game ("Who said that?") */
.game-page{background:#9fe0ff;min-height:100svh;display:flex;flex-direction:column}
.game-bg{position:fixed;inset:0;width:100%;height:100%;object-fit:cover;object-position:60% 70%;z-index:-2}
.game-page::before{content:"";position:fixed;inset:0;background:linear-gradient(180deg,rgba(94,200,255,.55),rgba(255,255,255,.25) 60%,rgba(94,200,255,.2));z-index:-1}
.gm{flex:1;width:min(920px,100% - 20px);margin:72px auto 0;padding-bottom:24px;position:relative}
.game-page .foot{margin-top:0}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.screen{display:none;flex-direction:column;align-items:center;text-align:center;animation:pop-in .35s ease-out}
.screen.on{display:flex}
@keyframes pop-in{from{opacity:0;transform:scale(.96)}}

.bubble{position:relative;display:inline-flex;align-items:center;gap:14px;background:#fff;border:4px solid var(--ink);border-radius:28px;padding:10px 20px;box-shadow:var(--shadow);margin:0}
.bubble .q{font-weight:700;font-size:clamp(1.7rem,7vw,2.6rem);line-height:1}
.big-q{font-size:clamp(2.2rem,10vw,4rem);line-height:1;padding:14px 26px;color:var(--ink)}

/* start screen */
.start-pals{display:flex;align-items:flex-end;justify-content:center;gap:10px;height:min(46vh,380px);margin-top:6px}
.start-pals img{height:100%;width:auto;filter:drop-shadow(0 8px 6px rgba(0,0,0,.25));animation:bob 3.2s ease-in-out infinite}
.start-pals .sp-dash{height:70%;animation-delay:-1.2s}
.bigplay{display:inline-flex;align-items:center;justify-content:center;gap:12px;margin-top:20px;min-width:min(86%,360px);min-height:96px;font:inherit;font-weight:700;font-size:2.6rem;color:#103b17;background:var(--green);border:5px solid var(--ink);border-radius:999px;box-shadow:0 8px 0 var(--ink);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:transform .15s,box-shadow .15s;animation:glow 1.8s ease-in-out infinite}
@keyframes glow{50%{box-shadow:0 8px 0 var(--ink),0 0 0 14px rgba(71,194,90,.35)}}
.bigplay svg{width:52px;height:52px}
.bigplay:hover,.bigplay:focus-visible{transform:scale(1.06) rotate(-1.5deg);box-shadow:0 11px 0 var(--ink)}
.bigplay:active{transform:translateY(5px);box-shadow:0 3px 0 var(--ink)}
.tiny{font-size:.95rem;font-weight:600;background:rgba(255,255,255,.85);border-radius:14px;padding:4px 12px;margin:16px 10px 0}

/* progress stars */
.stars{list-style:none;display:flex;gap:8px;margin:0 0 8px;padding:0;justify-content:center}
.stars li{width:34px;height:34px;background:rgba(255,255,255,.7);clip-path:polygon(50% 0,62% 36%,100% 38%,70% 60%,80% 100%,50% 76%,20% 100%,30% 60%,0 38%,38% 36%);transition:background .3s,transform .3s}
.stars li.on{background:var(--sun);transform:scale(1.15)}
.stars.all li{width:48px;height:48px;animation:bob 1.8s ease-in-out infinite}
.stars.all li:nth-child(2n){animation-delay:-.6s}

/* the question */
.ask{display:flex;align-items:flex-end;justify-content:center;gap:6px;margin-bottom:10px}
.asker{height:min(21vh,170px);width:auto;filter:drop-shadow(0 6px 5px rgba(0,0,0,.25));transform-origin:50% 90%;animation:bob 3s ease-in-out infinite}
.ask .bubble{margin-bottom:34px}
.ask .bubble::before{content:"";position:absolute;left:-18px;bottom:16px;width:22px;height:22px;background:#fff;border-left:4px solid var(--ink);border-bottom:4px solid var(--ink);transform:rotate(45deg) skew(10deg,10deg)}
.replay{display:inline-grid;place-items:center;width:84px;height:84px;border-radius:50%;background:var(--sun);border:4px solid var(--ink);color:var(--ink);box-shadow:0 5px 0 var(--ink);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;padding:0}
.replay svg{width:46px;height:46px}
.replay:hover,.replay:focus-visible{transform:scale(1.08) rotate(-4deg)}
.replay:active{transform:translateY(3px);box-shadow:0 2px 0 var(--ink)}
.replay.ring{animation:boing .7s}
.caption{margin:0 0 8px;background:#fff3b8;border:3px solid var(--ink);border-radius:16px;padding:4px 14px;font-weight:700;font-size:1.3rem}

/* the three big cards */
.choices{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:14px;width:100%;max-width:640px}
.choices li:nth-child(3){grid-column:1/-1;justify-self:center;width:calc(50% - 7px)}
@media(min-width:760px){.choices{grid-template-columns:repeat(3,1fr);gap:20px;max-width:860px}.choices li:nth-child(3){grid-column:auto;width:auto}}
.choice{position:relative;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:2px;min-height:min(25vh,205px);background:#fff;border:5px solid var(--ink);border-radius:30px;padding:10px 6px 10px;box-shadow:0 8px 0 rgba(39,52,90,.3);cursor:pointer;font:inherit;color:var(--ink);touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:transform .18s,box-shadow .18s,opacity .25s}
.choice .float{height:min(15vh,125px);width:100%;display:flex;align-items:flex-end}
.choice img{height:100%;width:100%;object-fit:contain;object-position:50% 100%}
.choice .nm{font-weight:700;font-size:1.25rem}
@media(min-width:760px){.choice{min-height:300px}.choice .float{height:210px}}
.tone0{background:#ffe0ee}.tone1{background:#dcefff}.tone2{background:#fff3b8}
@media(hover:hover){.choice:not(:disabled):hover{transform:translateY(-6px) rotate(-1.2deg);box-shadow:0 14px 0 rgba(39,52,90,.3)}}
.choice:not(:disabled):active{transform:translateY(4px);box-shadow:0 3px 0 rgba(39,52,90,.3)}
.choice.ok{border-color:#1f9d3a;background:#d9f7c9;box-shadow:0 0 0 8px rgba(71,194,90,.5)}
.choice.ok::after{content:"";position:absolute;top:-16px;right:-12px;width:58px;height:58px;border-radius:50%;background:var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/38px no-repeat;border:4px solid var(--ink)}
.choice.ok .float{animation:none}
.choice.ok img{animation:cheerhop .9s ease-out}
.choice.no{opacity:.65;filter:grayscale(.6);border-color:#9aa4c4;box-shadow:none;animation:shake .5s}
.choice:disabled{cursor:default}
@keyframes cheerhop{0%{transform:scale(1)}25%{transform:scale(1.2,.85)}50%{transform:scale(.9,1.2) translateY(-24px) rotate(-6deg)}75%{transform:scale(1.1,.95) rotate(5deg)}100%{transform:scale(1.04)}}
@keyframes shake{0%,100%{transform:translateX(0)}20%{transform:translateX(-9px) rotate(-2deg)}40%{transform:translateX(8px) rotate(2deg)}60%{transform:translateX(-5px)}80%{transform:translateX(3px)}}
.cwrap{position:relative;width:100%;display:flex;justify-content:center}
.try{position:absolute;left:50%;top:-22px;translate:-50% 0;z-index:5;pointer-events:none;margin:0;font-weight:700;font-size:1.9rem;color:var(--ink);background:#fff;border:4px solid var(--ink);border-radius:999px;padding:2px 22px;opacity:0;transition:opacity .25s;white-space:nowrap}
.try.show{opacity:1}

/* celebration */
.done-pals{display:flex;align-items:flex-end;justify-content:center;gap:10px;height:min(38vh,320px)}
.done-pals img{height:100%;width:auto;filter:drop-shadow(0 8px 6px rgba(0,0,0,.25));animation:cheerhop 1.6s ease-in-out infinite;transform-origin:50% 90%}
.done-pals .dp-dash{height:70%;animation-delay:-.5s}
.done-btns{display:flex;flex-wrap:wrap;gap:14px;justify-content:center;margin:20px 0 0}
.game-page .btn.big{font-size:1.5rem;padding:18px 32px;min-height:72px}

@media (prefers-reduced-motion:reduce){
  .screen{animation:none}
  .choice.no{opacity:.45}
}
@media(min-width:760px){.asker{height:min(32vh,270px)}.stars li{width:44px;height:44px}.ask .bubble{margin-bottom:46px}}
