
:root{--bg:#0d0e0e;--surface:#151615;--line:#30312c;--ink:#edece3;--muted:#a7a99d;--gold:#dbc366;--gold-dim:#383321;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none;color-scheme:dark}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:20px}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--gold);outline-offset:4px}button:disabled{cursor:wait}button[hidden],[hidden]{display:none!important}.skip{position:fixed;top:-60px;left:15px;z-index:20;background:var(--gold);color:#111;padding:12px}.skip:focus{top:10px}
.site-header{max-width:1360px;margin:auto;min-height:86px;display:flex;align-items:center;gap:32px;padding:18px 32px;border-bottom:1px solid #282923}.wordmark{display:flex;flex-direction:column;align-items:center;gap:3px}.wordmark b{font-size:23px;font-weight:850;letter-spacing:-1px}.wordmark span{font-size:8px;letter-spacing:4px;padding-left:4px}.header-label{font-size:11px;letter-spacing:1.3px;color:#bcbeb0}.header-label i{font-style:normal;color:#616459;margin:0 10px}.header-actions{margin-left:auto;display:flex;align-items:center;gap:22px}.small-cta{font-size:12px;color:var(--gold);font-weight:600}.text-button{border:0;background:none;padding:10px 9px;color:var(--muted);font-size:12px;white-space:nowrap}.text-button:hover{color:var(--ink)}main{max-width:1360px;margin:0 auto;padding:0 32px}.intro{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:38px 6px 30px}.eyebrow{font:10px/1.5 Consolas,monospace;letter-spacing:2.1px;color:var(--gold);margin:0 0 10px}h1{font-size:clamp(28px,3.3vw,44px);line-height:1.08;font-weight:620;letter-spacing:-1.8px;margin:0 0 13px}.lead{color:var(--muted);font-size:14px;line-height:1.5;margin:0}.intro-action{display:flex;align-items:center;flex-direction:column;gap:10px;flex:none}.primary{display:inline-flex;justify-content:center;align-items:center;gap:10px;padding:16px 24px;border:1px solid var(--gold);border-radius:3px;background:var(--gold);color:#181910;font-size:13px;font-weight:700;text-align:center;transition:background .15s}.primary:hover{background:#e9d784;border-color:#e9d784}.primary.playing{background:#28291f;color:#efe3b3;border-color:#605735}.small-note{color:#979b8e;font-size:11px}
.performance{position:relative}.top-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 5px}.eras{display:flex;border:1px solid #3b3a30;background:#141513;border-radius:4px;padding:4px;gap:3px}.eras button{min-width:165px;background:none;color:#b8baa9;padding:10px 16px;border:1px solid transparent;border-radius:2px}.eras button b{display:block;font-size:12px;letter-spacing:.5px}.eras button span{display:block;font:8px/1.3 Consolas,monospace;margin-top:4px;letter-spacing:.5px;color:#838575}.eras button[aria-pressed=true]{background:#d3bb65;border-color:#e9d98f;color:#1b1c15}.eras button[aria-pressed=true] span{color:#49452d}.eras button:hover:not([aria-pressed=true]){background:#24261e}.view-controls{display:flex;gap:12px}.era-caption{font-size:11px;color:#999e8d;margin:10px 6px 15px;min-height:15px}.machine-scroll{width:100%;overflow:visible}.machine{width:100%;position:relative;aspect-ratio:1440/980;isolation:isolate}.machine canvas{width:100%;height:100%;display:block}.hit-controls{position:absolute;inset:0}.native-control{position:absolute;padding:0;border:0;background:transparent!important;color:transparent!important;border-radius:2px;touch-action:none;user-select:none;outline:none;opacity:1}.native-control:focus-visible{outline:2px solid #eacb48;outline-offset:1px}.native-control.slider{cursor:ns-resize}.native-control[aria-disabled=true]{cursor:not-allowed}.native-control span{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.native-control.guide-lit{outline:1px solid #e9cc60;outline-offset:6px;box-shadow:0 0 25px #d7b54235}
#visual-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#151611;border-radius:8px;color:var(--muted)}#visual-loading span{font-size:60px;font-weight:800;letter-spacing:-4px;color:var(--gold)}#visual-loading p{font-size:13px}.loading-box{display:flex;align-items:center;gap:16px;border:1px solid #49432c;background:#211f16;padding:12px 16px;margin:0 6px 12px;color:#dfd4ae;font-size:12px}.loading-box progress{width:120px;height:5px;margin-left:auto;accent-color:var(--gold)}.loading-box.error{border-color:#a36450;color:#ffc6aa}.helper{padding:16px 18px;background:#1b1d18;border:1px solid #3b4031;border-radius:3px;margin:0 6px 18px;font-size:12px;line-height:1.7;color:#b8beb0}.helper p{margin:0 0 6px}.helper p:last-child{margin:0}.helper b{font-weight:650;color:#e2ddc8}
.performance-controls{display:flex;align-items:center;gap:22px;padding:17px 6px 13px;border-bottom:1px solid #2d3027;flex-wrap:wrap}.transport-select,.pattern-select,.bank-select{display:flex;align-items:center;gap:5px}.control-label{font:10px/1.4 Consolas,monospace;letter-spacing:.9px;color:#9a9e90;white-space:nowrap;margin-right:7px}.performance-controls button:not(.text-button){border:1px solid #373c2f;border-radius:2px;background:#171a15;font:11px Consolas,monospace;padding:9px 13px;color:#b9c1ab}.performance-controls button[aria-pressed=true]:not(.text-button){background:#c7c4a0;border-color:#c7c4a0;color:#171c13}.pattern-select button.queued{border-color:var(--gold)!important;box-shadow:inset 0 -2px var(--gold)}.pattern-select button:disabled{opacity:.35;cursor:not-allowed}#reset{margin-left:auto;padding-right:0}.control-feedback{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:11px 6px 10px;font:11px/1.5 Consolas,monospace;color:#9caa90;min-height:38px}#playback-status{color:#beb89b}.song-strip{display:flex;align-items:center;gap:18px;padding:18px 6px 14px}.song-strip i,footer i{font-style:normal;margin:0 7px}.song-rows{display:flex;flex:1;gap:4px;max-width:800px}.song-row{position:relative;display:flex;justify-content:center;align-items:center;height:24px;background:#20231c;border:1px solid #343a2b;color:#89957b;overflow:hidden;font:10px Consolas,monospace}.song-row.active{border-color:#b1aa67;color:#ebdfa1;background:#393922}.song-row-fill{position:absolute;inset:0 auto 0 0;width:0%;background:#cbbb7333}.song-row span{z-index:1}.time{font:11px Consolas,monospace;color:#a8ad9c;white-space:nowrap}.below-note{color:#757b6c;font:10px/1.6 Consolas,monospace;letter-spacing:.15px;text-align:center;margin:8px 0 0}.mobile-tip{display:none;font-size:11px;line-height:1.5;color:#919886;padding:8px 6px}
.next-step{display:flex;align-items:center;justify-content:space-between;gap:50px;margin:58px 6px 0;padding:36px 0;border-top:1px solid #383b2e}.next-step h2{font-size:36px;line-height:1.1;letter-spacing:-1px;font-weight:600;margin:0 0 15px}.next-step p:not(.eyebrow){font-size:14px;line-height:1.75;color:var(--muted);max-width:590px;margin:0}.next-step .primary{flex:none}.feature-row{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;padding:0 6px 36px}.feature-row div{border-left:2px solid #414231;padding-left:17px}.feature-row b{font-size:11px;letter-spacing:1px;color:#d7d4ba;display:block;margin-bottom:8px}.feature-row span{font-size:12px;color:#8d9684;line-height:1.5}.demo-details{margin:0 6px 34px;border-top:1px solid #292e23;padding-top:18px;color:#8f9686;font-size:12px;line-height:1.65}.demo-details summary{cursor:pointer}.demo-details p{max-width:950px}footer{border-top:1px solid #2b3025;max-width:1296px;margin:auto;padding:22px 6px 28px;display:flex;justify-content:space-between;gap:20px;font:9px/1.6 Consolas,monospace;letter-spacing:.5px;color:#7c8471}
#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);z-index:100;max-width:min(640px,90vw);border:1px solid #58543c;border-radius:3px;background:#25291ff5;color:#e6e4cd;padding:13px 18px;font-size:12px;line-height:1.5;box-shadow:0 12px 38px #0008;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s}#toast.show{opacity:1;transform:translate(-50%,0)}
body.focus-view{overflow:hidden}body.focus-view .performance{position:fixed;inset:0;z-index:50;background:#0d0e0e;padding:12px max(15px,calc((100vw - 1500px)/2));overflow:auto;display:flex;flex-direction:column;align-items:center}body.focus-view .top-controls,body.focus-view .era-caption,body.focus-view .performance-controls,body.focus-view .control-feedback{width:min(100%,1400px)}body.focus-view .machine-scroll{width:min(100%,calc((100vh - 220px)*1.469387755));flex:none}body.focus-view .song-strip,body.focus-view .below-note{display:none}body.focus-view .performance-controls{justify-content:center;gap:15px;padding-top:10px}body.focus-view #reset{margin-left:0}body.focus-view .eras button{padding-top:6px;padding-bottom:6px}body.focus-view .era-caption{margin-top:6px;margin-bottom:8px}
@media(min-width:1600px){.intro{padding-top:40px;padding-bottom:34px}}
@media(max-width:1000px){.header-label{display:none}.intro{padding-top:30px}.intro h1{font-size:36px}.top-controls{gap:10px}.eras button{min-width:135px;padding:9px 11px}.view-controls{gap:2px}.performance-controls{gap:14px}#reset{margin-left:0}.next-step{gap:30px}.next-step .primary{max-width:235px}.next-step h2{font-size:30px}footer{margin:0 26px}}
@media(max-width:700px){main{padding:0 16px}.site-header{padding:16px 20px;min-height:72px}.wordmark b{font-size:21px}.header-actions{gap:13px}.small-cta{font-size:10px}.intro{display:block;padding:28px 4px 25px}.intro h1{font-size:35px;letter-spacing:-1.2px}.intro .lead{font-size:12px;max-width:400px}.intro-action{align-items:flex-start;margin-top:20px;flex-direction:row;gap:14px;align-items:center}.intro-action .primary{padding:13px 19px;font-size:12px}.small-note{max-width:110px;line-height:1.5;font-size:10px}.top-controls{flex-wrap:wrap;padding:0}.eras{flex:1;min-width:100%}.eras button{flex:1;min-width:0;padding:9px 5px}.eras button b{font-size:10px;letter-spacing:.1px}.eras button span{font-size:6px;letter-spacing:0}.view-controls{width:100%;justify-content:flex-end}.era-caption{font-size:10px;margin-top:0}.machine-scroll{overflow:auto;overscroll-behavior-x:contain;scrollbar-color:#5b573d #151711}.machine{min-width:780px}.performance-controls{gap:13px 14px}.performance-controls button:not(.text-button){padding:10px 12px;font-size:10px}.control-label{font-size:9px}.performance-controls .text-button{font-size:11px}.control-feedback{align-items:flex-start;flex-direction:column;gap:3px;font-size:10px}.mobile-tip{display:block}.song-strip{gap:10px;flex-wrap:wrap}.song-strip>.control-label{width:100%}.song-rows{min-width:220px}.below-note{text-align:left;font-size:9px;padding:0 6px}.next-step{display:block;margin-top:38px;padding:26px 0}.next-step .primary{max-width:100%;margin-top:24px}.next-step p:not(.eyebrow){font-size:13px}.feature-row{grid-template-columns:1fr;gap:21px;padding-bottom:30px}.demo-details{font-size:11px}.next-step h2{font-size:31px}footer{margin:0 20px;flex-direction:column;gap:8px;font-size:8px}.eyebrow{font-size:8px;letter-spacing:1.5px}body.focus-view .machine-scroll{width:100%}body.focus-view .machine{min-width:780px}body.focus-view .performance-controls{justify-content:flex-start}body.focus-view .era-caption{display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}

/* R3: actionable local-loading diagnostics, only displayed on error. */
.loading-box{flex-wrap:wrap}.loading-box #loading-text{flex:1;min-width:180px}
.loading-box #load-details{width:100%;font-size:11px}.loading-box summary{cursor:pointer}
#load-diagnostic{white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.5 Consolas,monospace;max-height:240px;overflow:auto}
.primary:disabled{opacity:.55;cursor:wait}

.audio-engine-status {margin:12px 0 0;color:#c5ba83;font-size:12px;}

/* R5 — The hardware is never rearranged. Views below crop/scale the same native
   canvas and the original hit rectangles; outer buttons are tactile shortcuts. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overflow-x:clip}
.machine-scroll{position:relative;aspect-ratio:1440/980;overflow:hidden;isolation:isolate}
.machine{position:absolute;top:0;left:0;min-width:0!important;width:100%;height:auto;aspect-ratio:1440/980}
#panel-static{position:absolute;inset:0;pointer-events:none;z-index:-1}
#panel{position:relative}
.native-control:not(.slider){touch-action:manipulation}
.native-control.pad-control{touch-action:none}
.native-control[aria-disabled=true]{touch-action:auto}
.native-control.slider,.native-control.pad-control{-webkit-touch-callout:none}
.touch-navigation,.touch-adjust,.touch-selected,.touch-utilities,.mobile-dock{display:none}
.resume-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;margin:8px 0;background:#34301e;border:1px solid #6f633c;font-size:12px;line-height:1.6}
.resume-banner button{border:1px solid var(--gold);background:var(--gold);color:#171912;padding:10px 16px;min-height:44px;border-radius:3px;font-weight:650}
body.focus-view .machine-scroll{height:auto;width:min(100%,calc((100dvh - 250px)*1.469387755));min-height:0}
body.focus-view .machine{min-width:0!important}
body.focus-view .performance{height:100vh;height:100dvh;padding-top:max(10px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom));}
@media (max-width:1000px),(pointer:coarse){
 .touch-navigation{display:block;margin:5px 0 12px}
 .zoom-tabs{display:flex;gap:5px;flex-wrap:wrap}
 .zoom-tabs button,.touch-adjust button,.touch-selected button,.touch-utilities button{min-height:44px;border:1px solid #3a3c30;border-radius:4px;background:#191c17;color:#b7bea9;padding:9px 13px;font:11px/1.4 "Segoe UI",Arial,sans-serif;touch-action:manipulation}
 .zoom-tabs button[aria-pressed=true],.touch-adjust button[aria-pressed=true]{color:#e5d18b;background:#363122;border-color:#827349}
 .touch-instruction{font:11px/1.6 "Segoe UI",Arial,sans-serif;color:#9ba48d;margin:8px 0 0}
 .touch-adjust{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:12px 0;border-bottom:1px solid var(--line)}
 .fader-mode-select,.touch-options{display:flex;gap:5px}
 .fader-mode-select button{min-width:64px;font:11px/1.4 Consolas,monospace}
 .touch-options button{font-size:10px}
 .touch-selected{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid #282f22;color:#c9ceb8;font:10px/1.4 Consolas,monospace}
 .touch-selected>div{display:flex;gap:5px}.touch-selected button:first-child,.touch-selected button:last-child{min-width:44px;font-size:19px;padding:5px 12px}.touch-selected #touch-restore{font-size:10px;white-space:nowrap;padding:8px}
 .touch-utilities{display:flex;gap:10px;align-items:center;color:#909b83;font-size:10px;line-height:1.5;margin:8px 0}
 .touch-utilities button{font-size:10px;max-width:180px}
 .touch-utilities button[aria-pressed=true]{border-color:#b4a668;color:#e6d690}.touch-utilities button:disabled{opacity:.45;cursor:default}
 .performance-controls button:not(.text-button){min-width:44px;min-height:44px}.performance-controls .text-button{min-height:44px}
 .control-feedback{font-size:11px}
 .eras button{min-height:55px}
 .view-controls button{min-height:44px}
 .machine-scroll{touch-action:pan-y pinch-zoom;border-radius:5px;background:#121411}
 .mobile-tip{display:none}
 body.focus-view .touch-navigation,body.focus-view .touch-adjust,body.focus-view .touch-selected,body.focus-view .touch-utilities{width:100%;max-width:1400px}
 body.focus-view .machine-scroll{width:100%;flex:none}
 body.focus-view .touch-instruction{display:none}
 body.focus-view .control-feedback{width:100%;min-height:24px;padding:6px 0}
}
@media (max-width:700px){
 body{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
 main{padding:0 max(12px,env(safe-area-inset-left)) 0 max(12px,env(safe-area-inset-right))}
 .site-header{min-height:62px;padding:12px max(16px,env(safe-area-inset-left));gap:12px}
 .wordmark b{font-size:20px}.header-actions{gap:10px}.header-actions .text-button{min-width:44px;min-height:44px}
 .intro{padding:23px 2px 19px}.intro h1{font-size:31px}.intro .lead{font-size:12px;line-height:1.65}
 .intro-action{margin-top:16px}.intro-action .primary{min-height:46px}
 .top-controls{gap:4px}.eras{width:100%}.eras button span{font-size:7px;letter-spacing:0}.eras button b{font-size:11px}
 .view-controls{width:auto;margin-left:auto;gap:10px}.view-controls button{padding:10px 8px}
 .era-caption{line-height:1.5;min-height:30px;margin:0 2px 5px}
 .zoom-tabs{display:grid;grid-template-columns:1.18fr 1fr 1fr .8fr;gap:4px}.zoom-tabs button{font-size:10px;padding:8px 3px;min-width:0}
 .wide-touch-only{display:none!important}
 .touch-adjust{gap:8px}.touch-adjust .touch-options{margin-left:0}.touch-adjust button{padding:9px 10px}
 .performance-controls{gap:10px 8px;padding:12px 0}.performance-controls>.transport-select{width:100%}.transport-select button{flex:1}
 .pattern-select{flex:1;gap:4px}.bank-select{gap:4px}.control-label{font-size:9px;margin-right:3px}
 .performance-controls button:not(.text-button){padding:7px 10px;min-width:44px;font-size:11px}
 #reset{padding:8px 0;font-size:11px}
 .control-feedback{padding:7px 0;gap:4px;min-height:42px;font-size:10px}
 .touch-selected{flex-wrap:wrap;padding-top:9px}.touch-selected>span{flex:1;min-width:80px}
 .touch-selected>div{margin-left:auto}
 .song-strip{padding:13px 0;gap:8px}.song-rows{min-width:180px;width:100%}.song-row{height:28px}.time{font-size:10px}
 .below-note{padding:0;font-size:9px}
 .mobile-dock{position:fixed;bottom:0;left:0;right:0;z-index:75;display:flex;align-items:center;gap:9px;padding:10px max(12px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));border-top:1px solid #5c5635;background:#141710f5;box-shadow:0 -6px 24px #0006;min-height:70px}
 .mobile-dock button{min-height:46px;border:1px solid #5a593f;border-radius:4px;background:#282b20;color:#d4d9c2;font-size:11px;padding:10px 12px}
 .mobile-dock #mobile-play{background:var(--gold);color:#171a10;border-color:var(--gold);font-weight:700;min-width:111px;display:flex;gap:9px;justify-content:center;align-items:center}
 .mobile-dock #mobile-play[aria-pressed=true]{background:#303522;color:#e4d795;border-color:#87824e}
 .mobile-dock #mobile-play:disabled{opacity:.55}.dock-icon{font-size:12px}.mobile-dock #dock-status{flex:1;color:#a3ad91;font:10px/1.7 Consolas,monospace;white-space:pre-line}
 .mobile-dock #mobile-focus{margin-left:auto}
 #toast{bottom:calc(88px + env(safe-area-inset-bottom));font-size:11px;width:max-content}
 body.focus-view .performance{padding:10px max(12px,env(safe-area-inset-right)) calc(85px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));align-items:stretch;}
 body.focus-view .top-controls{flex:none}.focus-view .top-controls .eras{flex:none}
 body.focus-view .touch-navigation{margin:8px 0 10px;flex:none}
 body.focus-view .machine-scroll{width:100%;flex:none}
 body.focus-view .touch-adjust{flex:none}
 body.focus-view .performance-controls{flex:none;justify-content:flex-start}
 body.focus-view .touch-utilities{display:none}
 .loading-box{padding:12px;margin-left:0;margin-right:0;gap:10px}.loading-box #loading-text{font-size:11px;line-height:1.6}
 .resume-banner{font-size:11px;padding:10px;gap:8px}
}
@media (max-width:370px){.touch-selected{display:block}.touch-selected>div{margin-top:8px}.touch-selected #touch-restore{flex:1}.performance-controls .pattern-select,.performance-controls .bank-select{width:100%;flex:initial}.touch-adjust{display:block}.touch-options{margin-top:8px}.touch-options button{flex:1}.fader-mode-select button{flex:1}.mobile-dock{gap:6px}.mobile-dock #mobile-play{min-width:102px}.mobile-dock #dock-status{font-size:9px}.mobile-dock #mobile-focus{font-size:10px;padding:8px}}
@media (pointer:coarse) and (orientation:landscape) and (max-height:600px){
 .intro{padding:18px 4px}.intro h1{font-size:28px}.site-header{min-height:56px;padding-top:9px;padding-bottom:9px}
 body.focus-view .performance{display:block;padding:9px max(12px,env(safe-area-inset-right)) 20px max(12px,env(safe-area-inset-left));}
 body.focus-view .top-controls{display:flex;flex-wrap:nowrap;width:100%;max-width:none}.focus-view .top-controls .eras{min-width:0;flex:1}.focus-view .eras button{min-width:0;flex:1;min-height:44px}
 body.focus-view .view-controls{flex:none;width:auto}.focus-view #help-toggle{display:none}
 body.focus-view .era-caption{display:none}body.focus-view .touch-navigation{margin:7px 0}
 body.focus-view .zoom-tabs{display:flex;gap:5px}.focus-view .zoom-tabs button{min-height:36px;padding:6px 12px;flex:none;font-size:10px}
 body.focus-view .wide-touch-only{display:block!important}
 body.focus-view .machine-scroll{max-width:900px;margin:auto;width:100%}
 body.focus-view .touch-adjust{padding:7px 0;display:flex;width:100%}.focus-view .touch-adjust button{min-height:40px}
 body.focus-view .performance-controls{display:flex;padding:7px 0}.focus-view .transport-select{width:auto}.focus-view .control-feedback{display:flex;flex-direction:row;min-height:20px}
 body.focus-view .touch-selected{display:flex;padding:7px 0}.focus-view .touch-utilities{display:none}
}

@media (max-width:1000px),(pointer:coarse){html{scroll-behavior:auto}}

.machine-options{width:100%;max-width:1400px}
#landscape-options{display:none}
@media (orientation:landscape) and (max-height:600px) and (max-width:1200px){
 html{scroll-behavior:auto}body{padding-bottom:calc(72px + env(safe-area-inset-bottom))}
 .mobile-dock{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:75;gap:10px;align-items:center;min-height:60px;padding:8px max(12px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));border-top:1px solid #5c5635;background:#141710f5;box-shadow:0 -6px 24px #0006}
 .mobile-dock button{min-height:44px;border:1px solid #5a593f;border-radius:4px;background:#282b20;color:#d4d9c2;font-size:11px;padding:8px 16px}
 .mobile-dock #mobile-play{background:var(--gold);color:#171a10;border-color:var(--gold);font-weight:700;min-width:130px;display:flex;gap:9px;justify-content:center;align-items:center}
 .mobile-dock #mobile-play[aria-pressed=true]{background:#303522;color:#e4d795;border-color:#87824e}
 .mobile-dock #dock-status{flex:1;color:#a3ad91;font:11px/1.6 Consolas,monospace;white-space:pre-line}
 .mobile-dock #mobile-focus{margin-left:auto}#toast{bottom:calc(78px + env(safe-area-inset-bottom))}
 body.focus-view .performance{display:block;height:100vh;height:100dvh;padding:4px max(12px,env(safe-area-inset-right)) calc(65px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));overflow-y:auto}
 body.focus-view .top-controls{display:flex;flex-wrap:nowrap;gap:8px;width:100%;padding:0;min-height:48px;max-width:none}
 body.focus-view .eras{flex:1;min-width:0;padding:2px;height:48px}
 body.focus-view .eras button{flex:1;min-width:0;min-height:42px;padding:4px 7px}.focus-view .eras button b{font-size:11px}.focus-view .eras button span{font-size:7px}
 body.focus-view .view-controls{width:auto;flex:none;margin:0;gap:0}body.focus-view #help-toggle{display:none}body.focus-view #focus{min-height:44px;font-size:11px}
 body.focus-view .era-caption,body.focus-view .touch-instruction{display:none}
 body.focus-view .touch-navigation{display:block;width:100%;margin:0 0 4px;height:44px}
 body.focus-view .zoom-tabs{display:flex;flex-wrap:nowrap;gap:5px;align-items:center;width:100%;height:44px}
 body.focus-view .zoom-tabs button{min-height:44px;font-size:10px;flex:none;padding:6px 12px;border-top:0;border-bottom:0}
 body.focus-view .wide-touch-only{display:block!important}
 body.focus-view #landscape-options{display:block;margin-left:auto;color:#e0ca7d;border-color:#847344}
 body.focus-view .machine-scroll{--camera-ratio:1.469387755;width:min(100%,calc((100dvh - 165px - env(safe-area-inset-bottom))*var(--camera-ratio)));max-width:100%;margin:0 auto;min-height:0;flex:none}
 body.focus-view .machine-options{display:none}
 body.focus-view .touch-options-open .machine-options{display:block;position:fixed;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:calc(68px + env(safe-area-inset-bottom));width:auto;max-height:calc(100dvh - 172px - env(safe-area-inset-bottom));overflow:auto;z-index:70;background:#171b13;border:1px solid #6e6441;border-radius:6px;padding:10px 14px;box-shadow:0 6px 40px #000a}
 body.focus-view .touch-adjust{display:flex;justify-content:space-between;padding:4px 0 10px;gap:10px}.focus-view .touch-adjust button{min-height:44px}
 body.focus-view .performance-controls{display:flex;padding:9px 0;gap:12px}.focus-view .performance-controls .transport-select{width:auto}
 body.focus-view .touch-selected{display:flex}.focus-view .touch-utilities{display:none}.focus-view .control-feedback{display:flex;flex-direction:row}
 body.focus-view .helper,body.focus-view .resume-banner,body.focus-view .loading-box{position:fixed;z-index:72;top:95px;left:12px;right:12px;margin:0;max-height:calc(100dvh - 172px);overflow:auto}
}

/* R6 — customer copy. The machine, tactile hit areas and audio are unchanged. */
.intro .lead{max-width:740px;line-height:1.65}
.demo-instruction{margin:0 6px 20px;color:var(--muted);font-size:13px;line-height:1.65}
.helper .touch-help{display:none}
.eras button span{font-family:"Segoe UI",Arial,sans-serif;font-size:9px;letter-spacing:.3px}
@media(max-width:1000px),(pointer:coarse){
 .helper .desktop-help{display:none}
 .helper .touch-help{display:block}
}
@media(max-width:700px){
 .demo-instruction{margin:0 4px 18px;font-size:12px}
 .eras button span{font-size:8px;letter-spacing:0}
}
@media(max-width:360px){.eras button span{font-size:7px}}
@media(max-height:500px) and (orientation:landscape){
 body.focus-view .eras button span{font-size:8px}
}
