@font-face{font-family:ABeeZee;src:url('assets/fonts/ABeeZee-Regular.ttf') format('truetype');font-display:swap}
*{box-sizing:border-box}body{margin:0;background:#f7f7ee;color:#183c4b;font-family:ABeeZee,Arial,sans-serif}button,input{font:inherit}button{cursor:pointer;min-height:48px;border:2px solid #183c4b;border-radius:14px;padding:12px 20px;background:#fff;color:#183c4b}button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 0 #183c4b}button:disabled{cursor:default;opacity:.55}button:focus-visible,input:focus-visible{outline:4px solid #174bc9;outline-offset:4px}[hidden]{display:none!important}.wrap{max-width:1120px;margin:auto;padding:26px 24px}header{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:2px solid #dce2d6;padding-bottom:18px}.brand{font-size:20px;font-weight:bold;display:flex;gap:12px;align-items:center}.brand span{background:#f6cf4d;border-radius:12px;padding:10px}.level{font-size:14px;background:#e2eedc;padding:10px 16px;border-radius:30px}.stage{display:grid;grid-template-columns:160px 1fr;gap:30px;align-items:center;margin:28px 0}.guide{height:300px;display:flex;justify-content:center;transform:rotate(-5deg)}.ruler{height:100%;width:auto;overflow:visible}.eyes{transform-box:fill-box;transform-origin:center;animation:blink 6s infinite}.mouth{transform-box:fill-box;transform-origin:center;transform:scaleY(.75)}.talking .mouth{animation:talk .25s infinite alternate}.talking .eyes{animation:none;transform:translateX(5px)}@keyframes blink{0%,44%,48%,100%{transform:scaleY(1)}46%{transform:scaleY(.08)}}@keyframes talk{to{transform:scaleY(1.2)}}.bubble{background:white;border-radius:30px;padding:30px;border:2px solid #dce2d6;box-shadow:0 7px 0 #e6e9dd}.eyebrow{font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:#446254;margin:0 0 16px}h1,h2{font-size:clamp(24px,3.3vw,38px);line-height:1.35;margin:0 0 20px}h2:focus{outline:none}.primary{background:#2056b8;color:white;border-color:#2056b8}.secondary{background:#fff5ce}.actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.mute{display:flex;align-items:center;gap:8px;min-height:48px;padding:8px}input{width:22px;height:22px}.board{background:white;border:2px solid #dce2d6;border-radius:26px;padding:22px}.board-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:18px}.board-head p{margin:0}.tiles{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:12px}.tile{font-size:clamp(22px,3vw,32px);padding:10px 0;aspect-ratio:1;border:2px solid transparent;border-bottom:4px solid #b8c9bd;border-radius:16px;background:#dceecb;min-width:0;transition:transform .15s}.tile:nth-child(4n+2){background:#fce5a4}.tile:nth-child(4n+3){background:#d7e8fa}.tile:nth-child(4n){background:#f7d9d8}.tile:disabled{opacity:1}.tile.correct{border:4px solid #186136;background:#b9e7bf}.tile.incorrect{border:4px dashed #a13535}.feedback-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:22px}#feedback{min-height:48px;display:flex;align-items:center;line-height:1.5;margin:0}#audio-status{font-size:14px;color:#913030}footer{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:22px 0;font-size:13px;color:#49645a}footer button{font-size:13px;border:0;background:transparent;text-decoration:underline}.rotate{display:none}#intro .bubble p{line-height:1.7}#intro{padding:30px 0}.intro-art{font-size:60px;letter-spacing:10px;color:#2056b8;margin:20px 0}
@media(max-width:700px){.wrap{padding:16px}.stage{grid-template-columns:75px 1fr;gap:14px;margin:20px 0}.guide{height:220px}.bubble{padding:20px}.tiles{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.board{padding:14px}.tile{min-height:48px;max-height:70px}.feedback-row{align-items:stretch;flex-direction:column;gap:10px}.brand{font-size:16px}.level{font-size:12px;padding:8px}.board-head{font-size:13px}footer{align-items:flex-start}.mute{font-size:14px}}
@media(max-width:380px){.wrap{padding:10px}.stage{grid-template-columns:52px 1fr;gap:10px}.guide{height:170px}.bubble{padding:15px}.tiles{gap:6px}.tile{border-radius:10px}.rotate{display:block}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}button:hover:not(:disabled){transform:none}.mouth{transform:none}}

.settings{display:flex;justify-content:flex-end;gap:12px}.bubble p{line-height:1.6}.ruler{height:100%;width:auto;overflow:visible}#clock{font-size:24px;font-variant-numeric:tabular-nums}progress{width:100%;height:16px;accent-color:#2056b8;margin-top:18px}.final-score{font-size:64px;color:#2056b8;margin:10px 0}#confetti{position:fixed;inset:0;pointer-events:none;overflow:hidden}#confetti i{position:absolute;top:-20px;width:12px;height:20px;animation:fall 3s ease-in forwards}@keyframes fall{to{transform:translateY(110vh) rotate(650deg)}}#results .guide{animation:celebrate .65s ease-in-out 4 alternate}@keyframes celebrate{to{transform:rotate(8deg) translateY(-12px)}}@media(prefers-reduced-motion:reduce){#confetti{display:none}#results .guide{animation:none}}

#clock.time-up{display:inline-block;font-size:40px;transform-origin:50% 80%;animation:clock-wobble .18s ease-in-out 8 alternate}@keyframes clock-wobble{from{transform:rotate(-16deg)}to{transform:rotate(16deg)}}@media(prefers-reduced-motion:reduce){#clock.time-up{animation:none}}
