.mm-stage{position:relative;border:3px solid #30302f;border-radius:28px;background:linear-gradient(#fff3d6,#f9e3c2);padding:10px 12px 16px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;overflow:hidden}
.mm-friend{height:92px;display:flex;justify-content:center;align-items:flex-end;pointer-events:none}
.mm-friend img{transform-origin:50% 100%;will-change:transform}
.mm-friend img.bop{animation:mmbop .32s ease-out}
@keyframes mmbop{0%{transform:scale(1,1) rotate(0)}25%{transform:scale(1.12,.84) rotate(var(--r,-6deg))}60%{transform:scale(.94,1.12) translateY(-12px) rotate(calc(var(--r,-6deg)*-.7))}100%{transform:scale(1,1) rotate(0)}}
.mm-bars{display:flex;justify-content:center;align-items:flex-end;gap:10px;height:min(40dvh,300px);margin:10px 0}
.pad{appearance:none;-webkit-appearance:none;border:3px solid #30302f;cursor:pointer;padding:0;position:relative;font:inherit;color:#30302f;touch-action:none;transition:transform .08s}
.pad:focus-visible{outline:4px solid #30302f;outline-offset:3px}
.mm-bars .pad{flex:1 1 0;max-width:64px;border-radius:18px 18px 22px 22px}
.mm-bars .pad::after{content:"";position:absolute;left:50%;top:12px;width:12px;height:12px;margin-left:-6px;border-radius:50%;background:rgba(255,255,255,.7);border:2px solid #30302f}
.mm-drums{display:flex;justify-content:center;gap:18px}
.mm-drums .pad{width:min(36vw,132px);aspect-ratio:1;border-radius:50%}
.mm-drums .pad::after{content:"";position:absolute;inset:14%;border-radius:50%;border:3px solid #30302f;opacity:.5}
.pad.hit{animation:mmhit .2s ease-out}
@keyframes mmhit{0%{transform:scale(.9)}50%{transform:scale(1.07)}100%{transform:scale(1)}}
.mm-puff{position:absolute;width:20px;height:20px;border-radius:50% 50% 50% 8px;border:3px solid #30302f;pointer-events:none;animation:mmpuff .75s ease-out forwards}
@keyframes mmpuff{0%{opacity:1;transform:translateY(0) scale(.6)}100%{opacity:0;transform:translateY(-90px) scale(1.2) rotate(18deg)}}
.mm-tune{margin-top:14px;text-align:center}
.mm-hint{margin:0 0 8px;font-weight:600;font-size:15px}
.mm-track{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.mm-tl{flex:0 0 64px;text-align:left;font-weight:700;font-size:14px}
.mm-beads{display:flex;flex:1;justify-content:space-between;gap:4px;margin:0}
.bead{appearance:none;-webkit-appearance:none;padding:0;flex:1 1 0;max-width:34px;aspect-ratio:1;border-radius:50%;border:3px dashed rgba(48,48,47,.45);background:transparent;cursor:pointer}
.bead.on{border:3px solid #30302f}
.bead.now{transform:scale(1.22);border-color:#30302f}
.bead:focus-visible{outline:3px solid #30302f;outline-offset:2px}
.mm-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.mm-actions button{min-height:52px}
.mm-actions button[disabled]{opacity:.45}
.mm-note{margin:10px 0 0;font-size:14px;opacity:.75}
@media (prefers-reduced-motion:reduce){.mm-friend img.bop,.pad.hit,.mm-puff{animation:none}.mm-puff{display:none}}
/* Little / Music / Maker stacked on three lines (start screen only) */
#startTitle .wm.wm-long{width:min(100%,360px);min-height:0;font-size:clamp(40px,14vw,64px);padding:.45em .8em}
#startTitle .wm-long .wm-words{flex-direction:column;align-items:center;flex-wrap:nowrap;gap:.02em}
/* Leave touch-scroll gutters and use the space above the shorter bars. */
.mm-stage{width:calc(100% - 28px);margin-left:auto;margin-right:auto}
.mm-friend{position:absolute;top:10px;right:12px;width:76px;height:66px;z-index:1}
.mm-friend img{width:76px;height:64px;object-fit:contain}
