:root{--paper: #fff7ec;--ink: #2a2340;--shadow: #e4c39a;--good: #43c47a;--good-deep: #2e9b5b;--gold: #ffc83d;--gold-deep: #e0a82a;--mic: #ff5d73;--mic-deep: #d63a52;--lilac: #e4d9ff;--lilac-deep: #c4b2f0;--hit: 120px;color-scheme:light}*{box-sizing:border-box}html,body{margin:0;height:100%}body{font-family:Avenir Next,PingFang SC,Noto Sans SC,Segoe UI,sans-serif;color:var(--ink);background:radial-gradient(circle at 8% 12%,#ffe1ee 0 120px,transparent 122px),radial-gradient(circle at 96% 88%,#d9f6e4 0 160px,transparent 162px),radial-gradient(circle at 92% 6%,#d9ecff 0 90px,transparent 92px),linear-gradient(180deg,#fffaf3,#fff1dc);overflow:hidden;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;overscroll-behavior:none}button{font:inherit;color:inherit}img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;-webkit-user-drag:none}#app{height:100dvh;display:flex;flex-direction:column;padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}.topbar{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(8px + env(safe-area-inset-top)) 12px 0;position:relative;z-index:2}#stage{flex:1 1 auto;min-height:0;overflow:auto;display:flex;flex-direction:column;padding:8px 16px calc(16px + env(safe-area-inset-bottom))}.screen{flex:1 1 auto;min-height:0;width:100%;display:flex;flex-direction:column;align-items:center;gap:16px;position:relative}button,.mascot-btn,.picture-btn,.choice,.theme-card,.pair-btn,.next-btn,.mic-btn,.icon-btn{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;padding:0;background:transparent}button:active{transform:translateY(6px)}button:focus-visible{outline:6px solid var(--ink);outline-offset:4px}.fx{position:absolute;top:10px;right:10px;bottom:10px;left:10px}.fx img{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:contain;object-position:center}.icon-btn{width:var(--hit);height:var(--hit);min-width:var(--hit);min-height:var(--hit);flex:0 0 var(--hit);display:grid;place-items:center;background:#fff;border-radius:32px;box-shadow:0 8px 0 var(--shadow);padding:14px}.icon-btn:active{box-shadow:0 2px 0 var(--shadow)}.skip-btn{background:var(--lilac);box-shadow:0 8px 0 var(--lilac-deep)}.skip-btn:active{box-shadow:0 2px 0 var(--lilac-deep)}.mascot-btn{width:132px;height:132px;min-width:var(--hit);min-height:var(--hit);flex:0 0 auto;display:grid;place-items:center;background:transparent;border-radius:40px}.mascot-btn.is-big{width:min(240px,46vw);height:min(240px,30vh);min-width:140px;min-height:140px}.picture-btn,.theme-hero,.choice,.pair-btn,.mascot-btn,.theme-card{position:relative}.picture-btn,.theme-hero{background:#fff;border-radius:40px;box-shadow:0 10px 0 var(--shadow);border:8px solid #fff}.picture-btn{width:min(100%,640px);flex:1 1 auto;min-height:180px;position:relative;overflow:hidden}.theme-hero{width:min(100%,720px);flex:1 1 auto;min-height:200px;overflow:hidden;box-shadow:0 10px 0 var(--accent, var(--shadow))}.theme-hero img,.theme-card img{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:contain;object-position:center;padding:6px}.screen-home{gap:12px}.screen-home .mascot-btn.is-big{width:min(220px,48vw);height:min(190px,24vh)}.themes{flex:1 1 auto;width:100%;min-height:0;display:flex;flex-direction:column;gap:16px}.theme-card{flex:1 1 120px;min-height:132px;width:100%;display:block;overflow:hidden;border-radius:36px;border:8px solid #fff;background:#fff;box-shadow:0 8px 0 var(--accent, var(--shadow))}.controls{display:flex;align-items:center;justify-content:center;gap:28px;width:100%}.next-btn{width:150px;height:150px;min-width:var(--hit);min-height:var(--hit);flex:0 0 auto;display:grid;place-items:center;border-radius:50%;background:var(--good);box-shadow:0 8px 0 var(--good-deep);padding:28px}.next-btn:active{box-shadow:0 2px 0 var(--good-deep)}.screen-choose{width:100%;gap:14px}.choices,.pair{width:100%;flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:28px}.choice,.pair-btn{flex:1 1 160px;min-height:180px;width:100%;display:block;background:#fff;border-radius:40px;border:8px solid #fff;box-shadow:0 10px 0 var(--shadow);padding:12px;position:relative;overflow:hidden}.choice img,.pair-btn img{object-fit:contain}.is-again{background:#fff6d0;box-shadow:0 10px 0 var(--gold-deep)}.is-next{background:#e7f8ee;box-shadow:0 10px 0 var(--good-deep)}.is-home{background:#fff}.is-right{outline:8px solid var(--gold);box-shadow:0 10px 0 var(--gold-deep)}.badge{position:absolute;right:12px;bottom:12px;width:72px;height:72px;background:var(--gold);border-radius:50%;border:6px solid #fff;box-shadow:0 4px 0 var(--gold-deep);padding:10px}.screen-speak{width:100%;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:center;align-content:center;gap:16px}.screen-speak .picture-btn{flex:1 1 240px;min-height:200px;height:min(42vh,340px);max-width:520px}.screen-speak .mascot-btn{flex:0 0 140px;width:140px;height:140px}.mic-btn{width:188px;height:188px;min-width:188px;max-width:188px;min-height:188px;max-height:188px;flex:0 0 188px;display:grid;place-items:center;border-radius:50%;background:var(--mic);box-shadow:0 10px 0 var(--mic-deep);padding:40px;position:relative;overflow:hidden}.mic-btn:active{box-shadow:0 3px 0 var(--mic-deep)}.screen-speak .pair{flex:0 0 100%;width:100%;flex-direction:row;justify-content:center;align-items:center;gap:36px;min-height:0;height:auto}.screen-speak .pair .mic-btn,.screen-speak .pair .next-btn{flex:0 0 188px;width:188px;height:188px;min-width:188px;max-width:188px;min-height:188px;max-height:188px}.screen-retry{width:100%}.screen-retry .picture-btn{flex:1 1 120px;min-height:120px}.screen-retry .mascot-btn{width:var(--hit);height:var(--hit)}.screen-end{width:100%}.celebrate{flex:1 1 auto;min-height:180px;width:min(100%,420px);display:grid;place-items:center;position:relative}.celebrate .mascot-btn.is-big{width:min(300px,70vw);height:min(300px,36vh)}.waves{flex:1 1 auto;width:min(100%,420px);min-height:120px;display:flex;align-items:flex-end;justify-content:center;gap:14px;padding-bottom:12px}.waves span{width:26px;height:48px;background:#7c62ff;border:6px solid var(--ink);border-radius:999px;animation:bounce .7s ease-in-out infinite}.waves span:nth-child(2){height:78px;animation-delay:.1s}.waves span:nth-child(3){height:110px;animation-delay:.2s}.waves span:nth-child(4){height:78px;animation-delay:.15s}.waves span:nth-child(5){height:48px;animation-delay:.05s}.burst{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.burst i{position:absolute;width:22px;height:22px;background:var(--gold);border:5px solid var(--ink);border-radius:4px;animation:spark .7s ease-out forwards}.burst i:nth-child(1){left:8%;top:18%}.burst i:nth-child(2){right:10%;top:12%;background:#ff8a9a}.burst i:nth-child(3){left:18%;bottom:16%;background:#7dffb3}.burst i:nth-child(4){right:16%;bottom:20%}.burst i:nth-child(5){left:46%;top:4%;background:#8eb6ff}.burst i:nth-child(6){right:40%;bottom:6%;background:#ff8a9a}.tap-hint:after{content:"";position:absolute;top:10px;right:10px;bottom:10px;left:10px;border-radius:32px;border:8px solid var(--gold);pointer-events:none;animation:ring .8s ease-out infinite}.fallback-art{width:62%;height:62%;min-width:72px;min-height:72px;border-radius:50%;background:var(--gold);border:8px solid var(--ink)}.bob .fx{animation:bob 1.8s ease-in-out infinite}.is-wrong .fx{animation:shake .55s ease-in-out}.is-headshake{animation:headshake .6s ease-in-out;transform-origin:50% 70%}.is-right .fx{animation:pop .55s ease-out}.choice{animation:rise .4s ease-out}.mic-btn.is-live{animation:live .8s ease-out infinite}@keyframes bob{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}@keyframes shake{0%,to{transform:translate(0) rotate(0)}20%{transform:translate(-12px) rotate(-2deg)}40%{transform:translate(12px) rotate(2deg)}60%{transform:translate(-8px) rotate(-1deg)}80%{transform:translate(6px) rotate(1deg)}}@keyframes headshake{0%,to{transform:rotate(0)}20%{transform:rotate(-14deg)}40%{transform:rotate(12deg)}60%{transform:rotate(-10deg)}80%{transform:rotate(6deg)}}@keyframes pop{0%{transform:scale(1)}40%{transform:scale(1.08)}to{transform:scale(1)}}@keyframes rise{0%{transform:translateY(12px) scale(.98)}to{transform:none}}@keyframes bounce{0%,to{transform:scaleY(.7)}50%{transform:scaleY(1)}}@keyframes spark{0%{transform:scale(.4) rotate(0);opacity:0}40%{opacity:1}to{transform:scale(1.15) rotate(18deg);opacity:1}}@keyframes ring{0%{opacity:1;transform:scale(.96)}to{opacity:0;transform:scale(1.05)}}@keyframes live{0%{box-shadow:0 10px 0 var(--mic-deep),0 0 #ff5d738c}to{box-shadow:0 10px 0 var(--mic-deep),0 0 0 26px #ff5d7300}}@media(max-width:799px){.screen-speak .picture-btn{flex-basis:100%;height:min(34vh,280px);max-width:none}}@media(min-width:800px){.choices,.pair{flex-direction:row;gap:40px}.choice,.pair-btn{min-height:220px}.screen-speak .pair{gap:32px}}@media(min-width:900px){#stage{padding:8px 28px 20px}.screen-home{gap:8px}.screen-home .mascot-btn.is-big{width:168px;height:150px;min-height:var(--hit);flex:0 0 auto}.themes{flex-direction:row;align-items:center;justify-content:center;gap:22px}.theme-card{aspect-ratio:4 / 3;height:auto;min-height:200px;align-self:center}.screen-hear{display:grid;grid-template-columns:180px minmax(0,1fr) 180px;grid-template-rows:1fr;align-items:center;gap:28px;width:100%}.screen-hear .picture-btn{grid-column:2;grid-row:1;height:min(100%,560px);min-height:280px}.screen-hear .controls{display:contents}.screen-hear .mascot-btn{grid-column:1;grid-row:1}.screen-hear .next-btn{grid-column:3;grid-row:1;justify-self:center}.picture-btn{min-height:280px}}@media(max-height:520px)and (orientation:landscape){.topbar{padding-top:calc(4px + env(safe-area-inset-top))}.screen-home .mascot-btn.is-big{height:140px;width:140px;min-height:var(--hit)}.themes{flex-direction:row}.theme-card{min-height:var(--hit)}.choices,.pair{flex-direction:row;gap:24px}.choice,.pair-btn{min-height:var(--hit)}.mascot-btn.is-big{max-height:160px}}@media(prefers-reduced-motion:reduce){.bob .fx,.mic-btn.is-live,.waves span,.tap-hint:after{animation:none}}
