/* Shared touch surface for both course levels and placement. */
.rhythm-player .player-tools{display:flex;justify-content:flex-end;align-items:center;gap:12px;flex-shrink:0}
.rhythm-player .fullscreen-toggle{float:none;margin:0}
.rhythm-player .pad-stage{position:relative;min-height:140px;margin:8px 0;flex-shrink:0}
.rhythm-player .pad-stage .pads{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0;height:100%;min-height:inherit;visibility:hidden}
.rhythm-player .pads button{min-height:inherit;background:#e9efdc;font:700 23px/1.5 system-ui,sans-serif;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.rhythm-player .pads small{display:block;font:400 12px/1.5 system-ui,sans-serif;color:inherit;margin:0}
.rhythm-player .pads .flash{background:#b7d292;transform:none}
.rhythm-player .pad-launch{position:absolute;inset:0;width:100%;height:100%;font-size:23px;font-weight:700;touch-action:manipulation}
.rhythm-player [hidden]{display:none!important}
body:is(.playing,.exercise-running) .rhythm-player .pads{visibility:visible}
body.exercise-running .rhythm-player .exercise-actions{display:none}
.focus-mode .exercise-panel>.player-tools{align-self:stretch}
body:is(.focus,.focus-mode) .rhythm-player{height:100dvh;max-height:100dvh;margin:0;justify-content:flex-start;gap:4px;overflow-y:auto}
body:is(.focus,.focus-mode) .rhythm-player .pad-stage{flex:0 0 clamp(100px,26dvh,180px);min-height:100px;margin:4px 0}
body:is(.focus,.focus-mode) .rhythm-player .pad-stage .pads{height:100%}
body:is(.focus,.focus-mode) .rhythm-player :is(#music,.exercise-score){margin:0;padding:0;flex:1 1 0;min-height:100px}
body:is(.focus,.focus-mode) .rhythm-player :is(#music,.exercise-score) svg{height:100%;max-height:none;min-height:0;min-width:0}
body:is(.focus,.focus-mode) .rhythm-player>:is(.muted,.feedback-key,.practice-progress,.practice-options){display:none}
body:is(.focus,.focus-mode) .rhythm-player :is(#status,#live){padding:0;margin:2px 0;min-height:20px;font-size:12px}
body:is(.focus,.focus-mode) .rhythm-player #result{flex-shrink:0;order:3}
body.read-only .pad-stage{display:none}
@media(orientation:landscape) and (max-height:600px){
  body:is(.focus,.focus-mode) .rhythm-player .pad-stage{min-height:100px;flex-basis:100px}
  body:is(.focus,.focus-mode) .rhythm-player .player-tools button{padding:4px 8px;min-height:32px}
  body:is(.focus,.focus-mode) .rhythm-player .transport button{min-height:34px;padding-block:4px}
}
