:root{color-scheme:dark;font:18px system-ui;color:#e4f3ff;background:#060a14}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at top left,#123a8a50,transparent 65%)}header,main{max-width:1100px;margin:auto;padding:24px}header p,small{letter-spacing:.18em;color:#8aa6c4;font-size:12px}h1{font-size:clamp(36px,6vw,64px);margin:10px 0}h1 span,a{color:#3dff8a}main{display:grid;grid-template-columns:1fr 1fr;gap:22px;padding-top:0}section{background:#0b1324;border:1px solid #22385c;border-radius:24px;padding:24px}.stage{text-align:center;box-shadow:0 0 22px #3a6bff33;align-self:start;position:sticky;top:20px}#tempo{font-size:110px;font-weight:800;color:#2ec8ff;font-variant-numeric:tabular-nums}#beats{display:flex;justify-content:center;gap:10px;margin:24px 0;flex-wrap:wrap}#beats i{width:22px;height:22px;border-radius:50%;background:#22385c}#beats i.on{background:#3dff8a;box-shadow:0 0 18px #3dff8a}#sticking{font-size:36px;letter-spacing:.2em;min-height:60px}button,input,select{font:inherit;border:1px solid #2a4470;border-radius:10px;background:#15223a;color:#e4f3ff;padding:12px;min-height:50px;width:100%}button{cursor:pointer;font-weight:700}#start,button[type=submit]{background:#1df2c4;color:#03101a}.row{display:flex;gap:8px;margin:12px 0}form{display:grid;grid-template-columns:1fr 1fr;gap:16px}label{font-size:14px;color:#8aa6c4}label input,label select{display:block;margin-top:8px}p{font-size:14px;color:#8aa6c4;line-height:1.6}:focus-visible{outline:3px solid white;outline-offset:3px}@media(max-width:760px){main{grid-template-columns:1fr}.stage{position:static}header,main{padding:16px}.row{flex-wrap:wrap}.row button{flex:1 1 40%}}:fullscreen{overflow:auto;background:#060a14}

fieldset{border:1px solid #22385c;border-radius:16px;padding:14px;display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0;grid-column:1/-1}legend{color:#3dff8a;letter-spacing:.14em;font-size:12px;text-transform:uppercase;padding:0 8px}.wide,.apply{grid-column:1/-1}label.check{display:flex;align-items:center;gap:10px}label.check input{width:26px;min-height:26px;margin:0;accent-color:#1df2c4}input[type=range]{padding:0;accent-color:#1df2c4}form.constant .dyn{display:none}
.profile{display:flex;gap:8px;margin-bottom:16px}.profile button.on{background:#3dff8a;color:#03101a}.pad{display:flex;flex-wrap:wrap;gap:6px}.pad button{flex:1 1 22%;min-height:44px;padding:8px}
#steps{margin:0;padding-left:22px;display:grid;gap:8px}#steps li{display:grid;grid-template-columns:1fr 80px 50px;gap:6px;align-items:center}#steps li *{min-height:44px;padding:8px}
.top{display:flex;justify-content:space-between}#timer{font-variant-numeric:tabular-nums;font-size:16px;color:#e4f3ff}.readout{display:flex;justify-content:center;align-items:center;gap:14px}.side{display:grid;gap:4px;color:#8aa6c4;font-size:14px}#dir{font-size:28px;color:#3dff8a}
#banner{min-height:34px;font-weight:800;letter-spacing:.16em;color:#ffd84a}#nextup{min-height:26px;color:#1df2c4;letter-spacing:.1em;font-weight:700}#sticking b{color:#3dff8a;text-shadow:0 0 14px #3dff8a}
#count{font-size:0;font-weight:900;color:#ffd84a;line-height:1}.stage.counting #count{font-size:120px}.stage.counting .readout{display:none}.stage.silent #beats{opacity:.35}
body.blind #tempo,body.blind #dir,body.blind #range{visibility:hidden}
body.practice header,body.practice .controls{display:none}body.practice main{grid-template-columns:1fr;max-width:none;min-height:100vh}body.practice .stage{position:static;min-height:calc(100vh - 48px);display:flex;flex-direction:column;justify-content:center}body.practice #tempo{font-size:min(30vh,220px)}body.practice #sticking{font-size:56px}
@media(max-width:760px){fieldset{grid-template-columns:1fr}#tempo{font-size:84px}#steps{padding-left:18px}#steps li{grid-template-columns:1fr 58px 44px}#steps select{font-size:15px}}

/* ---- Nov 29 2026 audit: same fonts as the other Big Kid Beats tools, −/+ tempo buttons, cyan focus ring, finger-size checkboxes ---- */
@font-face{font-family:"Baloo 2";src:url(/assets/fonts/baloo-2-latin-800-normal.woff2) format("woff2");font-weight:800;font-display:swap}
@font-face{font-family:"Atkinson Hyperlegible";src:url(/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Atkinson Hyperlegible";src:url(/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2");font-weight:700;font-display:swap}
:root{font-family:"Atkinson Hyperlegible",system-ui,sans-serif}
#tempo{font-family:"Baloo 2",system-ui,sans-serif;line-height:1;min-width:2.1ch}
:focus-visible{outline:2px solid #2ec8ffaa;outline-offset:2px}
label.check input{flex:none;width:40px;min-height:40px;height:40px}
.readout{gap:10px}
.bpmstep{flex:none;width:56px;min-height:56px;height:56px;padding:0;border-radius:16px;font:800 34px/1 "Baloo 2",system-ui,sans-serif;display:grid;place-items:center;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.bpmstep:active{transform:translateY(1px);background:#1d3050}
body.practice .bpmstep{width:80px;height:80px;font-size:48px}
@media(max-width:760px){.bpmstep{width:48px;height:48px;min-height:48px;font-size:28px}}

/* ---- 2026 tools upgrade: accent editor on the beat dots, quick subdivision, practice log ---- */
#beats{gap:10px;margin:18px 0 6px}
#beats i{width:46px;height:46px;border-radius:50%;background:#15223a;box-shadow:inset 0 0 0 2px #2a4470;display:grid;place-items:center;font:800 15px/1 "Atkinson Hyperlegible",system-ui,sans-serif;font-style:normal;color:#8aa6c4;cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:manipulation;position:relative}
#beats i[data-a="A"]{box-shadow:inset 0 0 0 3px #ffd84a;color:#ffd84a}
#beats i[data-a="A"]::after{content:">";position:absolute;top:-14px;font:900 15px/1 sans-serif;color:#ffd84a}
#beats i[data-a="S"]{opacity:.7;font-size:12px;box-shadow:inset 0 0 0 2px #2a4470,inset 0 0 0 9px #0b1324}
#beats i[data-a="M"]{background:transparent;box-shadow:inset 0 0 0 2px #22385c;color:#4a6488}
#beats i[data-a="M"]::before{content:"✕";position:absolute;font-size:18px;color:#ff5a7a}
#beats i.on{background:#3dff8a;color:#03101a;box-shadow:0 0 18px #3dff8a}
#beats i[data-a="A"].on{background:#ffd84a;box-shadow:0 0 22px #ffd84a}
#accHelp{display:flex;align-items:center;justify-content:center;gap:10px;letter-spacing:.12em;font-size:11px;margin-bottom:10px}
button.mini{width:auto;min-height:40px;padding:4px 14px;font-size:13px;letter-spacing:0}
.subseg{display:flex;justify-content:center;gap:6px;margin:4px 0 8px}
.subseg button{width:auto;flex:0 1 74px;min-height:52px;padding:4px 6px;font:800 22px/1 "Baloo 2",system-ui,sans-serif;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.subseg button small{font:700 10px/1 "Atkinson Hyperlegible",sans-serif;letter-spacing:.08em;color:inherit}
.subseg button.on{background:#2ec8ff;color:#03101a;box-shadow:0 0 16px -2px #2ec8ff}
.plog{border:1px solid #22385c;border-radius:16px;padding:14px;margin-bottom:16px;display:grid;gap:10px;background:#081020}
.plhead{display:flex;justify-content:space-between;align-items:center}.plhead b{font:800 20px "Baloo 2",system-ui,sans-serif;color:#f2faff}.plhead span{color:#ffd84a;font-weight:700;font-size:15px}
.plgoal{display:grid;grid-template-columns:1fr auto;gap:6px 12px;align-items:center;font-size:15px;color:#8aa6c4}.plgoal b{color:#e4f3ff}
.plbar{grid-column:1;height:14px;border-radius:7px;background:#15223a;overflow:hidden}.plbar span{display:block;height:100%;width:0;background:linear-gradient(90deg,#1df2c4,#3dff8a);transition:width .3s}
.plstep{grid-column:2;grid-row:1/3;display:flex;align-items:center;gap:6px;font-size:12px}.plstep button{width:44px;min-height:44px;height:44px;padding:0;font:800 24px/1 "Baloo 2",sans-serif}
.plweek{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;align-items:end;height:92px}
.plweek div{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:3px;height:100%;font-size:11px;color:#8aa6c4}
.plweek div i{width:70%;max-width:34px;border-radius:6px 6px 2px 2px;background:#2ec8ff;min-height:3px}.plweek div.today i{background:#3dff8a}.plweek div.goal i{box-shadow:0 0 10px #3dff8a}
.plist{margin:0;padding:0;list-style:none;display:grid;gap:4px;max-height:180px;overflow:auto;font-size:14px}
.plist li{display:flex;justify-content:space-between;gap:10px;padding:6px 8px;border-radius:8px;background:#0b1324;color:#cfe6ff}.plist li span{color:#8aa6c4}
.mini2{min-height:40px;padding:6px 12px;width:auto;justify-self:start;font-size:14px}
body.practice #accHelp,body.practice .subseg{display:flex}

/* ---- design review: tempo always visible (count-in shows above it), round beat light, green Start ---- */
.stage.counting .readout{display:flex}.stage.counting #count{font-size:64px;min-height:70px}
#dir{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;font-size:15px;line-height:1;background:#15223a;color:#3dff8a}
#start{background:#38F08A}
/* ---- Nov 29 2026 audit 2 (L3): 44 px tall toggles; rudiment names in the sequence wrap instead of cutting off ---- */
label.check input[type=checkbox]:not(.bk-native),.check input[type=checkbox]:not(.bk-native){width:68px!important;height:44px!important;min-height:44px!important;border-radius:22px!important}
label.check input[type=checkbox]:not(.bk-native)::before{left:5px;top:5px;width:34px;height:34px}
label.check input[type=checkbox]:not(.bk-native):checked::before{transform:translateX(24px)}
#steps li{grid-template-columns:minmax(0,1fr) 64px 44px}
#steps li .bk-sel{padding:6px 10px!important;font-size:14px!important;line-height:1.15!important}
#steps li .bk-sel span{padding:0;min-height:0;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:normal}
#steps li .bk-sel::after{padding:0;min-height:0}
#accHelp,.subseg button small,.plweek div{font-size:12px}#accHelp{letter-spacing:.06em}
/* ---- 2026-11-29 pro features: feel & meter, polyrhythm ring, setlists ---- */
#feel{display:block;min-height:18px;margin-top:4px;color:#2CC6FF;letter-spacing:.1em;font-size:12px;font-weight:700}
#beats i.gs{margin-left:16px}
#beats i.gs::after{content:"";position:absolute;bottom:-9px;width:18px;height:3px;border-radius:2px;background:#2CC6FF}
#beats i.gs[data-a="A"]::after{content:">";bottom:auto;width:auto;height:auto;background:none}
#polyViz{width:min(220px,60%);margin:6px auto 2px}
#polyViz svg{display:block;width:100%;height:auto}
#polyViz .ring{fill:none;stroke:#22385c;stroke-width:2}
#polyViz .ring.in{stroke-dasharray:4 6}
#polyViz .po{fill:#15223a;stroke:#3dff8a;stroke-width:2}
#polyViz .pi{fill:#15223a;stroke:#ff9a3d;stroke-width:2}
#polyViz .po.on{fill:#3dff8a}#polyViz .pi.on{fill:#ff9a3d}
#polyViz .one{stroke-width:4}
#polyViz text{fill:#e4f3ff;font:800 26px "Baloo 2",system-ui,sans-serif}
.slbar{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;margin:10px 0 4px;padding:8px;border-radius:16px;background:#081020;border:1px solid #22385c}
.slbar button{width:auto;min-height:52px;padding:6px 14px;font-size:16px}
#slNow{display:grid;gap:2px;min-width:0}#slNow b{font:800 20px/1.1 "Baloo 2",system-ui,sans-serif;color:#f2faff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#slNow small{font-size:12px;letter-spacing:.08em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.setl{border:1px solid #22385c;border-radius:16px;padding:14px;margin-bottom:16px;display:grid;gap:10px;background:#081020}
.slrow{display:flex;gap:8px;align-items:stretch}.slrow>*{flex:1 1 auto}.slrow button{width:auto;flex:0 0 auto;font-size:14px;padding:8px 12px}
.slrow .bk-sel{flex:1 1 auto}
.sllist{margin:0;padding:0;list-style:none;display:grid;gap:6px;max-height:280px;overflow:auto}
.sllist li{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:6px}
.sllist li.empty{display:block;font-size:14px;color:#8aa6c4;padding:6px 2px}
.sllist li button{min-height:44px;padding:4px 8px}
.sllist .slsong{display:grid;gap:2px;text-align:left;justify-items:start;padding:8px 12px}
.sllist .slsong b{font-size:16px}.sllist .slsong small{font-size:12px;letter-spacing:.04em;color:inherit;opacity:.85}
.meters{display:flex;flex-wrap:wrap;gap:6px}
.meters button{flex:1 1 60px;width:auto;min-height:44px;padding:4px 6px;font:800 18px/1 "Baloo 2",system-ui,sans-serif}
#swingV{color:#2CC6FF;margin-left:6px}
body.practice .slbar{max-width:640px;margin-inline:auto;width:100%}
.slbar[hidden],#polyViz[hidden]{display:none}
.meters{display:grid;grid-template-columns:repeat(4,1fr)}
#polyViz{width:150px}body.practice #polyViz{width:220px}
.slrow{flex-wrap:wrap}.slrow .bk-sel{flex:1 1 160px}.slrow input{flex:1 1 160px;width:auto}
/* ==== Dec 1 2026 (Travis): pro layout. Full width on iPad; the play area is the hero (full-height, sticky left column on
   landscape, on top in portrait); settings sit beside it in collapsible sections (same header pattern as the DJ page). ==== */
.bkbar{max-width:none!important}
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;padding:0;border:0}
main{max-width:none;margin:0;padding:4px max(2vw,12px) 28px;display:grid;grid-template-columns:minmax(440px,5fr) minmax(0,6fr);gap:20px;align-items:start}
section{padding:0;border:0;background:none;border-radius:0}
/* ---- play area ---- */
.stage{position:sticky;top:12px;display:flex;flex-direction:column;justify-content:space-between;gap:10px;
  height:calc(100dvh - var(--hdr,84px) - 16px);min-height:640px;max-height:1200px;padding:18px 22px 16px;
  background:linear-gradient(180deg,#0d1730,#0a1222);border:1px solid #22385c;border-radius:24px;box-shadow:0 0 0 1px #ffffff05,0 18px 50px -20px #000;text-align:center;overflow:hidden}
.stage>*{flex:none;margin:0}
.top{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:40px;gap:10px}
.top #status{justify-self:start;font-size:13px;letter-spacing:.16em;color:#9fb6d2}
.top #timer{justify-self:end;font:700 22px/1 "Atkinson Hyperlegible",system-ui,sans-serif;letter-spacing:.04em;color:#e4f3ff}
.topmid{display:flex;align-items:center;justify-content:center;gap:10px;min-width:0}
#count,.stage.counting #count{font:800 40px/1 "Baloo 2",system-ui,sans-serif;min-height:0;color:#ffd84a}
#count:empty{display:none}
#banner{min-height:0;font-size:15px;line-height:1.2;letter-spacing:.14em}
.readout{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;flex:1 1 auto;min-height:0;max-height:260px}
.bpmbox{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0}
#tempo{font-size:clamp(104px,min(19dvh,13vw),230px);line-height:.92;letter-spacing:-.02em;min-width:0}
.side{display:flex;align-items:center;gap:8px;font-size:15px;letter-spacing:.24em;color:#9fb6d2;font-weight:700}
#dir{width:22px;height:22px;font-size:12px}
.bpmstep{width:72px;height:72px;min-height:72px;border-radius:20px;font-size:40px;background:#13203a;border-color:#2a4470}
.tslide{padding:0 4px}
.tslide input{width:100%}
.info{display:flex;justify-content:center;align-items:center;gap:8px 18px;flex-wrap:wrap;min-height:20px}
.info small{margin:0;font-size:13px;letter-spacing:.14em}
.info #feel{min-height:0;margin:0;font-size:13px}
.info #feel:not(:empty)::before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:#3a5680;vertical-align:middle;margin-right:18px}
.beatblock{display:flex;flex-direction:column;align-items:center;gap:10px;padding:14px 0 0;border-top:1px solid #1b2c4a}
#beats{margin:8px 0 0;gap:12px;row-gap:22px;justify-content:center}
#beats i{width:52px;height:52px;font-size:17px}
#polyViz,body.practice #polyViz{width:120px;margin:0 auto}
#accHelp{display:flex;width:100%;justify-content:space-between;align-items:center;gap:12px;margin:0;letter-spacing:0;font-size:13px}
#accHelp small{font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:#8aa6c4;text-align:left}
button.mini{min-height:44px;padding:4px 16px;font-size:14px;flex:none;border-radius:12px}
.subseg{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin:0;padding:4px;border-radius:16px;background:#081020;border:1px solid #22385c}
.subseg button{width:auto;min-height:64px;padding:6px 4px;border:0;border-radius:12px;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#cfe3f8;font:inherit}
.subseg button+button{box-shadow:inset 1px 0 0 #1b2c4a}
.subseg button.on{box-shadow:none}
.subseg .note{width:40px;height:28px;fill:currentColor}
.subseg button small{font:700 13px/1 "Atkinson Hyperlegible",system-ui,sans-serif;letter-spacing:.04em;color:inherit}
.stick{display:flex;flex-direction:column;align-items:center;gap:2px}
#sticking{font:800 34px/1.1 "Atkinson Hyperlegible",system-ui,sans-serif;letter-spacing:.3em;min-height:40px;padding-left:.3em;color:#e4f3ff}
#nextup{min-height:18px;font-size:13px}
.slbar{margin:0}
.stage .row{display:grid;gap:10px;margin:0}
.stage .row.big{grid-template-columns:2fr 1fr 1fr}
.stage .row.tools{grid-template-columns:repeat(4,1fr)}
.stage .row button{display:flex;align-items:center;justify-content:center;gap:10px;width:auto;min-width:0;border-radius:14px}
.stage .row.big button{min-height:68px;font-size:20px}
.stage .row.tools button{min-height:56px;padding:6px 8px;font-size:15px;line-height:1.15;background:#101b31;color:#cfe3f8}
.stage .row.tools button.on{color:#03101a}
.stage .ico{width:22px;height:22px;flex:none}
.stage .row.big .ico{width:24px;height:24px}
#start .ico{fill:#03101a}
#notice,#silentNote{margin:0;font-size:13px;line-height:1.4;min-height:18px}
/* ---- settings panel ---- */
.controls{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-content:start;min-width:0}
.controls>form{display:contents}
.controls>.foot,.controls>.profile,.controls .apply{grid-column:1/-1}
.profile{display:grid;grid-template-columns:auto 1fr 1fr;align-items:center;gap:6px;margin:0;padding:6px 6px 6px 18px;border-radius:18px;background:#0b1324;border:1px solid #22385c}
.profile .plabel{font:800 13px/1 "Atkinson Hyperlegible",system-ui,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#8aa6c4;margin-right:10px}
.profile button{width:auto;min-height:52px;border-radius:12px}
.msec{background:#0b1324;border:1px solid #22385c;border-radius:18px;min-width:0;margin:0}
.msec>summary{list-style:none;position:relative;display:flex;align-items:center;gap:6px 14px;min-height:64px;padding:8px 124px 8px 20px;cursor:pointer;border-radius:18px;-webkit-user-select:none;user-select:none;touch-action:manipulation}
.msec>summary::-webkit-details-marker{display:none}
.msec>summary:hover{background:#ffffff06}
.msec>summary:focus-visible{outline:3px solid #fff;outline-offset:-3px}
.msec-t{flex:none;font:800 21px/1.15 "Baloo 2",system-ui,sans-serif;color:#f2faff}
.msec-s{flex:0 1 auto;min-width:0;font:400 14px/1.3 "Atkinson Hyperlegible",system-ui,sans-serif;letter-spacing:0;color:#8aa6c4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#slCount,#plStreak{color:#ffd84a;font-weight:700}
.msec>summary::after{content:"Show";position:absolute;right:12px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:flex-end;box-sizing:border-box;width:98px;height:44px;padding:0 16px 0 0;border-radius:22px;background:#0d1a33;box-shadow:inset 0 0 0 2px #2cc6ff,0 0 14px -6px #2cc6ff;font:800 14px/1 "Atkinson Hyperlegible",system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#bfe9ff;pointer-events:none}
.msec[open]>summary::after{content:"Hide";background:#12304a}
.msec>summary::before{content:"";position:absolute;right:79px;top:50%;width:9px;height:9px;margin-top:-6px;border-right:3px solid #2cc6ff;border-bottom:3px solid #2cc6ff;transform:rotate(-45deg);transition:transform .2s;z-index:1;pointer-events:none}
.msec[open]>summary::before{transform:rotate(45deg);margin-top:-8px}
.msec[open]>summary{border-radius:18px 18px 0 0;box-shadow:inset 0 -1px 0 #22385c}
@media(prefers-reduced-motion:reduce){.msec>summary::before{transition:none}}
.msec>fieldset{border:0;border-radius:0;margin:0;padding:16px 20px 20px;gap:14px 16px}
.msec label{font-size:15px}
.msec .setl,.msec .plog{border:0;border-radius:0;margin:0;padding:16px 20px 20px;background:none}
.apply{min-height:56px;border-radius:14px}
.controls>.foot{margin:0;padding:0 6px}
/* ---- very wide screens (iPad zoomed out, desktop): settings in two or three columns ---- */
@media(min-width:1500px){.controls{grid-template-columns:repeat(auto-fill,minmax(440px,1fr));align-items:start}}
/* ---- portrait / narrow: play area on top, settings below ---- */
@media(max-width:1000px),(orientation:portrait){
  main{grid-template-columns:minmax(0,1fr)}
  .stage{position:static;height:auto;min-height:0;max-height:none;gap:16px;padding:20px 24px}
  .readout{max-height:none}
  #tempo{font-size:clamp(96px,22vw,190px)}
  .controls{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:1000px) and (min-width:700px),(orientation:portrait) and (min-width:700px){.controls{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}}
@media(max-width:560px){.stage{padding:16px}.stage .row.tools{grid-template-columns:repeat(2,1fr)}.stage .row.big button{font-size:17px}.bpmstep{width:56px;height:56px;min-height:56px}#beats i{width:44px;height:44px}.msec>summary{flex-wrap:wrap}.msec-s{flex-basis:100%;white-space:normal}}
/* practice (full-screen) mode keeps its own big centred layout */
body.practice main{grid-template-columns:1fr}
body.practice .stage{position:static;height:auto;max-height:none;min-height:calc(100vh - 48px);justify-content:center;gap:20px}
body.blind .tslide{visibility:hidden}
/* round 2 */
.readout{flex:0 0 auto;max-height:none}
#tempo{font-size:clamp(96px,min(15dvh,12vw),220px);line-height:.9}
.side{margin-top:6px}
.stage .row.tools button{flex-direction:column;gap:5px;min-height:64px;font-size:14px;white-space:nowrap}
.stage .row.tools .ico{width:22px;height:22px}
/* round 3: fit the play area in one iPad landscape screen; portrait settings in one column */
@media(max-width:1000px) and (min-width:700px),(orientation:portrait) and (min-width:700px){.controls{grid-template-columns:minmax(0,1fr)}}
.stage{gap:8px;padding:16px 22px 14px}
.beatblock{padding-top:10px;gap:8px}
#beats{margin-top:6px}
#sticking{font-size:30px;min-height:36px}
.subseg button{min-height:60px}
.stage .row.big button{min-height:64px}
.stage .row.tools button{min-height:60px}
.subseg button.on+button{box-shadow:none}
@media(max-height:780px) and (orientation:landscape) and (min-width:1001px){
  .stage{min-height:0}.readout .bpmstep{width:60px;height:60px;min-height:60px}
  #tempo{font-size:clamp(84px,14dvh,200px)}
  .stage .row.tools button{flex-direction:row;min-height:50px;gap:8px}
  .subseg button{min-height:54px}.stage .row.big button{min-height:58px}#beats i{width:46px;height:46px}}
@media(max-height:780px) and (orientation:landscape) and (min-width:1001px){.stage{gap:5px;padding-top:12px;padding-bottom:10px}#tempo{font-size:clamp(80px,12dvh,200px)}#sticking{font-size:26px;min-height:32px}.beatblock{gap:6px;padding-top:6px}#notice{font-size:12px}}
/* tall landscape screens (iPad zoomed out, big desktop): the play area grows with the screen instead of leaving gaps */
@media(min-height:1100px) and (orientation:landscape) and (min-width:1400px){
  .stage{max-height:none;padding:28px 32px 24px}
  .top #status{font-size:16px}.top #timer{font-size:30px}
  .bpmstep{width:96px;height:96px;min-height:96px;font-size:52px;border-radius:24px}
  #tempo{font-size:clamp(150px,17dvh,300px)}
  .side{font-size:20px}
  .info small,.info #feel{font-size:16px}
  #beats{gap:18px}#beats i{width:72px;height:72px;font-size:22px}
  #accHelp small{font-size:16px}button.mini{min-height:56px;font-size:17px;padding:4px 22px}
  .subseg button{min-height:88px}.subseg .note{width:56px;height:40px}.subseg button small{font-size:16px}
  #sticking{font-size:48px;min-height:56px}#nextup{font-size:16px}
  .stage .row.big button{min-height:92px;font-size:26px}.stage .row.big .ico{width:32px;height:32px}
  .stage .row.tools button{min-height:84px;font-size:18px}.stage .row.tools .ico{width:28px;height:28px}
  #notice,#silentNote{font-size:16px}
}
@media(max-width:1000px),(orientation:portrait){#tempo{font-size:clamp(96px,min(20vw,16dvh),200px)}}
body.practice .subseg{display:grid}
body.practice .stage>*{width:100%;max-width:1000px;margin-inline:auto}
