.focus-toolbar[hidden],.focus-enter[hidden],.game-confetti[hidden]{display:none}
.focus-enter,.focus-exit{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:10px;border-radius:50%}
.focus-enter svg,.focus-exit svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.focus-enter{margin-left:auto}
html.musicatte-focus{overflow:hidden;overscroll-behavior:none}
#kalimba-section.focus-active{position:fixed;inset:0;z-index:1000;box-sizing:border-box;width:100%;height:var(--focus-height,100dvh);margin:0;border:0;border-radius:0;padding:max(6px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:var(--paper);display:flex;flex-direction:column;gap:3px;overflow:hidden;overscroll-behavior:none}
.focus-active>.card-heading,.focus-active>.guide-warning{display:none}
.focus-toolbar{display:grid;grid-template-columns:96px minmax(0,1fr) 96px;align-items:center;min-height:46px;flex-shrink:0;gap:4px}
.focus-toolbar .playback-buttons{grid-column:1;grid-row:1;margin:0}
.focus-center{grid-column:2;grid-row:1;display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:0;height:46px;gap:1px;text-align:center;font-variant-numeric:tabular-nums}
.focus-score{font-size:13px;line-height:18px;color:var(--muted);white-space:nowrap}
.focus-active .game-score-feedback{top:30%;padding:6px 10px}
.focus-active .game-score-feedback strong{font-size:18px}
.focus-exit{grid-column:3;grid-row:1;justify-self:end;margin:0}
.focus-active #guide-visual-surface{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;border-radius:10px}
.focus-active .guide-score{min-height:0;gap:1px;padding:0 2px 3px}
.focus-active .guide-score-bar{font-size:10px;line-height:14px}
.focus-active .guide-score-notes{min-height:30px;font-size:clamp(17px,3.2vw,27px);padding:2px;line-height:1.15}
.focus-active .guide-score-chord{padding-block:1px;line-height:1.15}
.focus-active .guide-stage{flex:1;min-height:0;position:relative}
#kalimba-section.focus-active #kalimba-canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none}
/* One compact band in landscape; notation stays inside its membership surface. */
@media(orientation:landscape){
 #kalimba-section.focus-active{padding-top:max(4px,env(safe-area-inset-top));padding-bottom:max(4px,env(safe-area-inset-bottom));gap:0}
 .focus-active .focus-toolbar{position:absolute;top:max(4px,env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));height:44px;min-height:44px;z-index:3;pointer-events:none}
 .focus-toolbar .playback-buttons,.focus-toolbar .focus-exit{pointer-events:auto}
 .focus-active .focus-center{height:14px;align-self:start;pointer-events:none}
 .focus-active .focus-score{font-size:11px;line-height:14px}
 .focus-active .guide-score{box-sizing:border-box;flex:0 0 auto;width:100%;min-height:49px;padding:15px 100px 4px;gap:0}
 .focus-active .guide-score-bar{display:none}
 .focus-active .guide-score-notes{box-sizing:border-box;min-height:30px;font-size:24px;line-height:1.1;padding:2px;gap:5px}
 .focus-active .guide-score-chord{padding:1px 4px;line-height:1.1}
 .focus-active .guide-score-divider{font-size:24px}
}
.focus-active .membership-visual-lock{overflow:auto;overscroll-behavior:contain}
.focus-active .membership-visual-message{padding:8px 12px;max-width:440px}
.focus-active .membership-visual-message>svg{display:none}
.focus-active .membership-visual-message h4{font-size:17px;margin-bottom:3px}
.focus-active .membership-visual-message p{margin-bottom:4px;line-height:1.4}
.focus-active .membership-visual-message .primary,.focus-active .membership-visual-message button{display:inline-flex;width:auto;min-height:44px;align-items:center;margin:2px;padding:8px 12px;font-size:13px}
.game-result-dialog{box-sizing:border-box;width:min(380px,calc(100% - 28px));max-height:calc(100dvh - 24px);padding:0;overflow:visible;border:1px solid var(--line);border-radius:22px;background:var(--paper);color:var(--ink);box-shadow:0 20px 90px #0003}
.game-result-dialog::backdrop{background:#20272480}
.game-result-card{position:relative;z-index:1;padding:22px;text-align:center;border-radius:inherit;max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box}
.game-result-song{font-size:13px;color:var(--muted);margin:0 0 8px;overflow-wrap:anywhere}
.game-result-card h2{font-size:23px;margin:0 0 8px}
.game-result-total{font-variant-numeric:tabular-nums;display:flex;align-items:baseline;justify-content:center;gap:8px;margin:6px 0 16px}
.game-result-total strong{font-size:64px;font-weight:600;line-height:1.1;color:var(--green)}
.game-result-total span{font-size:16px;color:var(--muted)}
.game-result-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 20px}
.game-result-counts dt{font-size:12px;color:var(--muted)}
.game-result-counts dd{font-size:23px;margin:4px 0 0;font-variant-numeric:tabular-nums}
.game-result-actions{display:flex;justify-content:center;gap:10px}
.game-result-actions button{min-height:44px;padding:10px 16px}
.game-confetti{position:fixed;inset:0;width:100vw;height:100dvh;pointer-events:none;z-index:2}
@media(max-height:430px){.game-result-card{padding:14px 22px}.game-result-total strong{font-size:46px}.game-result-total{margin:4px 0 10px}.game-result-counts{margin-bottom:12px}.game-result-card h2{font-size:20px}.game-result-song{margin-bottom:4px}}
@media(prefers-reduced-motion:reduce){.game-confetti{display:none}}
[data-theme=dark] .game-result-total strong{color:var(--ink)}
