.rhythm-game{--soft:#f2e9f8;--ink:#563f72}.rhythm-game .game-layout{grid-template-columns:minmax(0,1fr) 235px}.rhythm-game .stage{padding:18px;background:#fffaf0;border:2px solid #e4d5bc;border-radius:26px}.rhythm-game .helper-panel{background:#f1e9f5}.rhythm-game .helper-monkey{max-height:130px}.rhythm-game .lobby-art{background:#ddd1ec}.rhythm-game .lobby-art>img{object-fit:contain}.rhythm-game .score-strip{background:#f2e9f7}.rhythm-concert{--concert-beat:625ms;color:#382c4b}.concert-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.concert-heading h2{font-size:1.55rem;margin:4px 0}.concert-heading .eyebrow{font-size:.72rem;letter-spacing:.08em}.concert-tour{display:flex;gap:5px;flex-shrink:0}.concert-tour span{width:29px;height:29px;display:grid;place-items:center;background:#ebe4ef;border:2px solid #d7c9e2;border-radius:50%;font-size:.85rem;font-weight:800}.concert-tour .done{background:#ffe49b;color:#69491c;border-color:#d7ac4d}.concert-tour .current{border-color:#8964a5;background:#f9efff}.concert-theatre{position:relative;overflow:hidden;border-radius:20px;background:#493357}.concert-theatre svg{display:block;width:100%;height:auto;max-height:300px}.concert-marquee{font:800 23px system-ui,sans-serif;letter-spacing:5px;fill:#ffe8a8}.concert-musician text{font:800 14px system-ui,sans-serif;fill:#fff1d9}.concert-pal{transform-box:fill-box;transform-origin:50% 90%}.concert-instrument{transform-box:fill-box;transform-origin:50% 70%}.concert-stick{stroke:#f9e3ad;stroke-width:6;stroke-linecap:round;transform-box:fill-box;transform-origin:50% 90%}.concert-count{position:absolute;inset:22% 20% auto;text-align:center;color:#fff2ba;font-size:clamp(1.8rem,5vw,3rem);font-weight:900;text-shadow:0 3px 9px #2b1848;pointer-events:none}.concert-beat-lights{position:absolute;top:7px;right:12px;display:flex;gap:6px}.concert-beat-lights i{width:10px;height:10px;border-radius:50%;background:#ffffff44}.concert-beat-lights .on{background:#ffe08c;box-shadow:0 0 12px #ffe08c}.concert-direction{font-size:1rem;line-height:1.4;font-weight:750;text-align:center;background:#f0e7f5;padding:9px 12px;border-radius:12px;margin:10px 0}.concert-phrase{display:flex;align-items:stretch;justify-content:center;gap:7px;margin:12px 0;flex-wrap:wrap}.concert-note{position:relative;min-width:55px;text-align:center;border:2px solid #dfd2e7;background:#f8f3fb;border-radius:13px;padding:4px 8px}.concert-note b{display:block;font-size:1.5rem}.concert-note small{font-size:.75rem;white-space:nowrap}.concert-note.done{background:#e0f3d9;border-color:#81b176}.concert-note.partner{border-style:dashed;opacity:.8}.concert-note.next{border-color:#bd9341;background:#fff0b7}.concert-note.is-now{background:#ffe292;border-color:#b17c24;box-shadow:0 0 0 3px #f1c86044}.concert-pads{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.concert-pads button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px solid color-mix(in srgb,var(--pad),#555 20%);border-radius:18px;background:color-mix(in srgb,var(--pad),white 48%);box-shadow:0 5px 0 color-mix(in srgb,var(--pad),#555 12%);color:#322c3c;min-height:110px;padding:7px;cursor:pointer;transition:transform .1s,box-shadow .1s}.concert-pads button:disabled{opacity:.8}.concert-pad-art{width:68px;height:65px;display:grid;place-items:center}.concert-pad-art img{max-width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 2px #3d2b4525)}.concert-pads b{font-size:1rem;line-height:1.2}.concert-pads kbd{position:absolute;top:6px;right:7px;display:grid;place-items:center;width:19px;height:19px;border-radius:6px;background:#ffffffb0;font:700 .75rem system-ui}.concert-pads button:hover,.concert-pads button.is-hit{background:var(--pad);transform:translateY(3px);box-shadow:0 2px 0 #7a6781,0 0 16px #ffdc7c66}.concert-pads button.try-again{outline:3px solid #ac6a49;outline-offset:1px}.concert-controls{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;margin-top:17px}.concert-controls button,.concert-controls select{font:700 .9rem system-ui;min-height:44px;padding:8px 12px;border-radius:12px}.concert-controls label{display:flex;align-items:center;gap:6px;font-size:.9rem}.concert-caption{font-size:.85rem;line-height:1.4;margin:10px 0 0;text-align:center;color:#655471}.concert-pads button:focus-visible,.concert-controls :focus-visible{outline:3px solid #3e7b82;outline-offset:4px}.concert-confetti{display:none}.concert-theatre[data-phase=celebrate] .concert-confetti{display:block}.concert-theatre[data-phase=celebrate] .concert-confetti rect{animation:concert-confetti 1.6s var(--delay) ease-in infinite}.concert-theatre[data-phase=listen] .concert-fan,.concert-theatre[data-phase=celebrate] .concert-fan{animation:concert-crowd var(--concert-beat) var(--delay) ease-in-out infinite}.concert-light{animation:concert-light 2.5s var(--delay) ease-in-out infinite}.concert-musician.is-playing .concert-pal{animation:concert-bop .3s ease-out}.concert-musician.is-playing .concert-instrument{animation:concert-strum .28s ease-out}.concert-musician.is-playing .stick-left{animation:concert-stick .3s ease-out}.concert-musician.is-playing .stick-right{animation:concert-stick .3s .07s ease-out}.concert-theatre[data-phase=celebrate] .concert-pal{animation:concert-bop .5s var(--delay) ease-in-out infinite}@keyframes concert-bop{50%{transform:translateY(-7px) rotate(-4deg)}}@keyframes concert-strum{50%{transform:rotate(8deg) scale(1.06)}}@keyframes concert-stick{50%{transform:rotate(-27deg) translateY(-12px)}}@keyframes concert-crowd{50%{transform:translateY(-5px)}}@keyframes concert-light{50%{opacity:.5}}@keyframes concert-confetti{to{transform:translate(18px,300px) rotate(130deg);opacity:0}}
@media(max-width:1050px){.rhythm-game .game-layout{grid-template-columns:minmax(0,1fr)}.rhythm-game .helper-panel{display:grid;grid-template-columns:70px minmax(0,1fr);column-gap:12px;padding:12px}.rhythm-game .helper-monkey{grid-row:span 4;width:70px;height:80px}.rhythm-game .helper-panel h2,.rhythm-game .helper-panel p{margin:3px 0}.rhythm-game .helper-panel .learning-note,.rhythm-game #task-info{display:none}}@media(max-width:550px){.rhythm-game .stage{padding:10px}.concert-heading{align-items:flex-start}.concert-heading h2{font-size:1.2rem}.concert-heading .eyebrow{font-size:.65rem}.concert-tour{gap:3px}.concert-tour span{width:22px;height:22px;font-size:.72rem}.concert-direction{font-size:.95rem}.concert-pads{gap:8px}.concert-pads button{min-height:95px;border-radius:14px;padding:5px 2px}.concert-pad-art{width:50px;height:52px}.concert-pads b{font-size:.85rem}.concert-note{min-width:39px;padding:3px 5px}.concert-note b{font-size:1.3rem}.concert-note small{font-size:.8rem}.concert-controls button{font-size:.8rem;padding:7px 9px}.concert-marquee{font-size:25px}.concert-phrase{gap:5px}.concert-theatre svg{min-height:160px;object-fit:cover}}@media(prefers-reduced-motion:reduce){.rhythm-concert *{animation:none!important;transition:none!important}}.reduce-motion .rhythm-concert *{animation:none!important;transition:none!important}

.concert-musician[data-joined=false]{opacity:.4;filter:grayscale(.8)}.concert-musician[data-joined=false].is-playing{opacity:1;filter:none}
