.rhythm-main{max-width:1100px;margin:30px auto;padding:0 18px;font-family:system-ui,sans-serif;color:#20354d}.rhythm-heading{text-align:center}.rhythm-heading p{max-width:680px;margin:12px auto;line-height:1.6}.rhythm-heading h1{font-size:clamp(1.9rem,4vw,3rem);margin:8px}.rhythm-kicker{color:#6852ac;font-size:.8rem;font-weight:800;letter-spacing:.12em}.rhythm-tools{display:flex;flex-wrap:wrap;gap:12px;align-items:end;padding:20px;background:#f1eefb;border:1px solid #ddd4f2;border-radius:20px;margin:25px 0}.rhythm-tools label{display:grid;gap:6px;flex:1;min-width:130px;font-size:.85rem;font-weight:700}.rhythm-tools select,.rhythm-main button{font:inherit;border-radius:11px;border:1px solid #c9d2df;padding:12px;background:white;color:#21344c}.rhythm-main button{cursor:pointer;font-weight:750;touch-action:manipulation}.rhythm-main button:disabled{cursor:default;opacity:.5}.rhythm-main button:focus-visible,.rhythm-main select:focus-visible{outline:3px solid #945ae5;outline-offset:3px}.rhythm-tools .rhythm-volume{min-width:100px;max-width:160px}.rhythm-stage{position:relative;overflow:hidden;border-radius:26px;background:#183950;box-shadow:0 14px 35px #15284a25;border:1px solid #a5c6d0;color:white}.rhythm-scene{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.3;pointer-events:none}.rhythm-stage-inner{position:relative;padding:24px}.rhythm-score{display:flex;justify-content:space-between;gap:10px;font-size:.9rem;font-weight:750;flex-wrap:wrap}.rhythm-band{display:flex;align-items:center;justify-content:center;gap:24px;min-height:170px}.rhythm-bot{height:150px;width:130px;object-fit:contain;filter:drop-shadow(0 10px 10px #0004)}.rhythm-frog{height:65px;width:65px;object-fit:contain;align-self:end;margin-bottom:24px}.rhythm-speech{background:#ffffffed;color:#21344c;border-radius:20px;padding:20px;max-width:470px;font-size:clamp(1.1rem,2.8vw,1.5rem);font-weight:750;line-height:1.45}.rhythm-caption{text-align:center;min-height:28px;font-size:.9rem}.rhythm-track{height:225px;position:relative;display:grid;grid-template-columns:repeat(8,1fr);border:1px solid #ffffff44;border-radius:16px;overflow:hidden;background:#0717288a}.rhythm-lane{position:relative;border-right:1px solid #ffffff20}.rhythm-lane>span{position:absolute;bottom:6px;width:100%;text-align:center;font-size:.75rem;font-weight:800;opacity:.8}.rhythm-target{position:absolute;left:0;right:0;bottom:42px;height:4px;background:#fff3aa;box-shadow:0 0 16px #fff5b0;pointer-events:none}.rhythm-falling{position:absolute;top:0;left:7%;width:86%;height:32px;background:var(--note);color:#13243c;border-radius:8px;display:grid;place-items:center;font-size:.8rem;font-weight:900;box-shadow:0 3px 10px #0004}.rhythm-keys{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:7px;margin-top:18px}.rhythm-keys .rhythm-note{padding:15px 3px 10px;border:0;border-bottom:6px solid #0003;background:var(--note);color:#14243c;min-height:92px;box-shadow:0 4px 8px #0002}.rhythm-note strong{display:block;font-size:clamp(.95rem,2.5vw,1.5rem)}.rhythm-note small{display:block;font-size:.7rem;margin-top:7px}.rhythm-note.active{transform:translateY(4px);box-shadow:0 0 20px #fff9;filter:brightness(1.2)}.rhythm-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:20px 0}.rhythm-actions .primary{background:#7050bd;color:white;border-color:#7050bd;min-width:160px}.rhythm-feedback{min-height:30px;text-align:center;font-size:1.2rem;font-weight:800;color:#fce6a2}.rhythm-help{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:24px 0}.rhythm-help>div{border:1px solid #dce3ed;border-radius:18px;padding:20px;background:#fafbfe}.rhythm-help h2{font-size:1.05rem;margin:0 0 10px}.rhythm-help p{line-height:1.7;font-size:.92rem;margin:0}.rhythm-progress{height:6px;background:#ffffff30;border-radius:10px;margin:16px 0 4px;overflow:hidden}.rhythm-progress>div{height:100%;width:0;background:#b6ebc7;transition:width .2s}.rhythm-dance{animation:rhythm-dance .45s ease-in-out}.rhythm-main [hidden]{display:none!important}@keyframes rhythm-dance{25%{transform:translateY(-12px) rotate(-8deg)}75%{transform:rotate(8deg)}}@media(max-width:600px){.rhythm-main{padding:0 10px}.rhythm-stage-inner{padding:15px 10px}.rhythm-tools{padding:14px;gap:10px}.rhythm-band{gap:10px;min-height:155px}.rhythm-bot{width:85px;height:120px}.rhythm-frog{display:none}.rhythm-speech{padding:14px;font-size:1rem}.rhythm-keys{gap:4px}.rhythm-keys .rhythm-note{min-height:82px}.rhythm-note small{font-size:.6rem}.rhythm-help{grid-template-columns:1fr}.rhythm-track{height:205px}}@media(prefers-reduced-motion:reduce){.rhythm-dance{animation:none}.rhythm-progress>div{transition:none}}

.rhythm-keys .rhythm-note.guided{outline:5px solid #fff5b0;outline-offset:3px;box-shadow:0 0 0 9px #fff5b02b,0 0 28px #fff5b06b;transform:translateY(-3px)}
.rhythm-keys .rhythm-note.guided strong:before{content:'▼';display:block;font-size:1rem;margin-bottom:6px}

.piano-lessons{border:1px solid #d8deec;border-radius:24px;padding:24px;background:#f8f7fd;line-height:1.65}.piano-lessons h2{margin:5px 0 12px}.piano-setup{background:#e9f1ff;padding:15px;border-radius:12px}.piano-keyboard{position:relative;display:flex;height:190px;margin:25px 0;border:3px solid #263244;border-radius:8px;background:#263244;overflow:hidden}.piano-keyboard .piano-white{width:12.5%;border-radius:0 0 5px 5px;border:1px solid #bac2d0;background:linear-gradient(#fff,#f2f3f5);display:flex;flex-direction:column;justify-content:end;align-items:center;gap:6px;padding:8px 2px;color:#20354d}.piano-white span{font-size:.8rem}.piano-keyboard .piano-current{background:#ffe39b;box-shadow:inset 0 -8px #e6b646}.piano-black{position:absolute;top:0;transform:translateX(-50%);width:7.5%;height:58%;background:linear-gradient(90deg,#17202a,#35404b,#111822);border-radius:0 0 5px 5px;box-shadow:0 4px 3px #0005;pointer-events:none}.piano-prompt{font-size:1.3rem;font-weight:800;color:#6543a2}.piano-score{display:flex;gap:7px;flex-wrap:wrap;margin:20px 0}.piano-score .piano-score-note{min-width:58px;padding:8px;display:flex;flex-direction:column;gap:3px;font-size:.85rem}.piano-score .selected{background:#ffedb6;outline:3px solid #c29328}.piano-score-note span,.piano-score-note small{font-size:.7rem}.piano-actions{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0}.piano-actions button:first-child{background:#7050bd;color:white}.piano-tempo{display:flex;flex-wrap:wrap;gap:12px;align-items:center;font-weight:700}.piano-note{font-size:.85rem;color:#52637a}.piano-lessons[hidden]{display:none!important}@media(max-width:600px){.piano-lessons{padding:16px 10px}.piano-keyboard{height:155px}.piano-white strong{font-size:.8rem}.piano-white span{font-size:.65rem}}
