.controller-section{scroll-margin-top:70px;padding-top:100px;padding-bottom:100px}.controller-section h2{font-size:clamp(38px,4.4vw,64px);font-weight:650}.controller-lab{border:1px solid #dce6fa;border-radius:26px;background:#fff;box-shadow:0 20px 65px -40px #164bff55;overflow:hidden}.lab-top{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:23px 28px;border-bottom:1px solid #e4ebf9}.lab-badge{font-size:10px;letter-spacing:.12em;font-weight:650;color:#657795;padding:8px 12px;border-radius:25px;background:#f0f4fc}.lab-badge.live{color:#164bff;background:#ecf2ff}.lab-badge.demo{color:#765609;background:#fff2c4}.lab-quiet{border:0;background:none;color:#164bff;font-size:12px;padding:10px 0;min-height:44px}.lab-demo-notice{margin:0;background:#fff7dc;color:#795909;text-align:center;padding:14px;font-size:11px;letter-spacing:.06em}.lab-empty{padding:65px 30px 72px;text-align:center;background:radial-gradient(ellipse at center,#f0f5ff,white 70%)}.lab-empty-icon{font-size:70px;color:#164bff;margin-bottom:22px}.lab-empty h3{font-size:32px;font-weight:600;letter-spacing:-.035em;margin:0 0 16px}.lab-empty p{font-size:14px;color:#65738a;max-width:530px;margin:auto;line-height:1.9}.lab-device{display:grid;grid-template-columns:160px minmax(0,1fr);gap:12px;align-items:center;padding:24px 28px}.lab-device label{font-size:12px;color:#6b7a93}.lab-device select{width:100%;border:1px solid #dce6f8;background:#f8faff;border-radius:10px;padding:13px;color:#182c4f;font-size:12px;min-height:44px}.lab-device p{grid-column:2;font-size:10px;color:#7d8ba0;margin:0;line-height:1.8;overflow-wrap:anywhere}.lab-sticks{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:0 28px}.stick-card{background:#f6f9ff;border:1px solid #e2eaf9;border-radius:18px;padding:22px}.stick-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.stick-title h3{font-size:14px;font-weight:600;margin:0}.stick-pair{font:10px monospace;color:#7b8daa}.stick-plot{width:min(100%,240px);aspect-ratio:1;position:relative;margin:24px auto;background:linear-gradient(90deg,transparent calc(50% - .5px),#c2d2ef calc(50% - .5px),#c2d2ef calc(50% + .5px),transparent calc(50% + .5px)),linear-gradient(0deg,transparent calc(50% - .5px),#c2d2ef calc(50% - .5px),#c2d2ef calc(50% + .5px),transparent calc(50% + .5px));border:1px dashed #ccd9ef;border-radius:50%}.stick-ring{position:absolute;inset:10%;border:1px solid #e0e8f8;border-radius:50%}.stick-deadzone{position:absolute;width:12%;height:12%;left:50%;top:50%;transform:translate(-50%,-50%);background:#164bff12;border:1px solid #164bff35;border-radius:50%}.stick-dot{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:13px;height:13px;border-radius:50%;border:2px solid white;box-shadow:0 1px 6px #142e4c25;z-index:2;pointer-events:none}.stick-dot.raw{background:#f2b93b;width:17px;height:17px}.stick-dot.filtered{background:#164bff;width:11px;height:11px;z-index:3}.stick-plot>span[class^=plot-]{position:absolute;font-size:9px;color:#7c8aa1}.plot-top{top:-16px;left:47%}.plot-bottom{bottom:-16px;left:47%}.plot-left{left:-20px;top:47%}.plot-right{right:-20px;top:47%}.stick-values{font:12px/1.9 monospace;text-align:center;color:#324d77;min-height:45px}.stick-selectors{display:flex;justify-content:center;gap:14px;margin-top:16px}.stick-selectors label{display:flex;align-items:center;gap:8px;font:10px monospace;color:#7384a0}.stick-selectors select{background:#fff;border:1px solid #d9e4f7;border-radius:7px;color:#405778;font:11px monospace;min-height:36px;padding:6px}.stick-idle{font:10px/1.8 monospace;color:#7385a3;margin:16px 0 0;min-height:36px;text-align:center}.lab-legend{display:flex;gap:24px;justify-content:center;flex-wrap:wrap;padding:20px;font-size:10px;color:#6e7e97}.lab-legend>span{display:flex;align-items:center;gap:8px}.lab-legend i{width:9px;height:9px;border-radius:50%;display:inline-block}.raw-key{background:#f2b93b}.filtered-key{background:#164bff}.lab-settings{padding:24px 28px;border-block:1px solid #e3ebf8;background:#fbfcff}.lab-settings>label{display:flex;justify-content:space-between;font-size:12px;font-weight:550;margin-bottom:10px}.lab-settings output{color:#164bff;font-variant-numeric:tabular-nums}.lab-settings input{width:100%;accent-color:#164bff;min-height:32px;cursor:pointer}.lab-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}.lab-actions button{background:white;border:1px solid #d8e3f7;border-radius:9px;color:#164bff;font-size:11px;font-weight:600;padding:12px 16px;min-height:44px}.lab-actions button:disabled{opacity:.45;cursor:default}.lab-settings #lab-result{font-size:12px;color:#405979;line-height:1.8;min-height:22px;margin-bottom:8px}.lab-fine{font-size:10px;color:#79879d;line-height:1.8;max-width:850px;margin:0}.lab-readout{display:grid;grid-template-columns:1.25fr 1fr;gap:35px;padding:28px}.lab-readout h3{font-size:22px;letter-spacing:-.03em;margin:0 0 10px;font-weight:600}.lab-readout p{font-size:11px;color:#74819a;line-height:1.8;margin:0 0 20px;max-width:390px}.lab-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.pad-button{border:1px solid #e0e8f5;background:#f7f9ff;border-radius:9px;min-height:66px;padding:9px 7px;position:relative;overflow:hidden;font:10px/1.6 monospace;color:#6e809d;isolation:isolate}.pad-button .pressure{position:absolute;bottom:0;left:0;height:3px;background:#7f9fff;width:0}.pad-button strong{display:block;font:600 10px/1.6 Arial,sans-serif;color:#405478;overflow-wrap:anywhere}.pad-button em{font-style:normal;font-size:8px;display:block;letter-spacing:.03em}.pad-button.pressed{background:#164bff;color:#dfe8ff;border-color:#164bff}.pad-button.pressed strong{color:#fff}.pad-button.touched:not(.pressed){border-color:#9bb6ff}.pad-button.pressed .pressure{background:#a8c0ff}.axis-row{display:grid;grid-template-columns:27px minmax(0,1fr) 60px;gap:12px;align-items:center;font:11px/1.6 monospace;color:#5a7197;margin:12px 0}.axis-row output{text-align:right;font-variant-numeric:tabular-nums}.axis-track{height:9px;border-radius:5px;position:relative;background:#edf2fc}.axis-track:after{content:'';position:absolute;left:50%;height:14px;top:-3px;border-left:1px solid #b7c8e8}.axis-fill{height:9px;position:absolute;left:50%;background:#164bff;border-radius:5px;width:0}.lab-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:30px;padding:22px 28px;border-top:1px solid #e4ebf9}.lab-footer p{font-size:10px;line-height:1.9;color:#7a889e;max-width:760px;margin:0}.lab-footer a{font-size:10px;color:#164bff;white-space:nowrap;min-height:30px}.lab-device select:focus-visible,.lab-actions button:focus-visible,.lab-quiet:focus-visible{outline:3px solid #b6caff;outline-offset:3px}
/* Buttons belong to the game frame, not a separate toolbar below it. */
.game-screen .touch-controls{background:#f5f8ff;border-top:1px solid #e3ebf8;padding:12px 20px}.game-overlay{z-index:5}.game-screen:focus-within{box-shadow:inset 0 0 0 1px #c7d8ff}
@media(max-width:760px){.controller-section{padding-block:68px}.controller-section h2{font-size:39px}.controller-lab{border-radius:20px}.lab-top{padding:16px;align-items:flex-start;gap:9px}.lab-badge{font-size:8px;letter-spacing:.04em;padding:8px;max-width:60%;line-height:1.7}.lab-quiet{font-size:10px;white-space:nowrap;min-height:40px}.lab-empty{padding:40px 21px}.lab-empty h3{font-size:26px}.lab-empty p{font-size:12px}.lab-device{padding:18px 16px;grid-template-columns:1fr;gap:8px}.lab-device p{grid-column:1}.lab-sticks{padding:0 16px;gap:12px;grid-template-columns:1fr}.stick-card{padding:19px}.stick-plot{max-width:210px}.lab-legend{font-size:9px;gap:12px}.lab-settings{padding:20px 16px}.lab-actions button{font-size:10px;padding:10px 12px}.lab-readout{grid-template-columns:1fr;padding:24px 16px;gap:28px}.lab-buttons{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.pad-button{padding:7px 5px;font-size:9px}.pad-button strong{font-size:9px}.lab-footer{padding:20px 16px;flex-direction:column;gap:14px}.lab-demo-notice{font-size:9px;line-height:1.7}.game-screen .touch-controls{padding:10px 10px;gap:7px}#arcade[data-kind=blocks] .touch-controls{position:absolute;bottom:8px;left:8px;right:8px;padding:0;border:0;background:none;z-index:3}#arcade[data-kind=blocks] .touch-controls button{background:#ffffffed;box-shadow:0 2px 8px #164bff12}#arcade[data-kind=blocks] .touch-controls button:last-child{background:#164bff;color:white;border-color:#164bff;border-bottom-color:#0d33b8}#arcade[data-kind=blocks] .game-screen{border-bottom:1px solid #dbe6f8}}
@media(max-width:360px){.lab-buttons{grid-template-columns:repeat(3,minmax(0,1fr))}.stick-plot{max-width:170px}}
.stick-values{white-space:pre-line}
/* Compact entrance below the main visual; green is reserved for real devices. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.controller-status{width:42px;height:42px;border:1px solid #e3e9f4;border-radius:13px;display:grid;place-items:center;position:relative;color:#8090a7;background:#f7f9fd;flex-shrink:0}
.controller-status svg{width:25px;height:22px;display:block}.controller-status i{position:absolute;right:5px;top:5px;width:5px;height:5px;background:#a2adc0;border-radius:50%;border:1px solid white}
.controller-status.connected{color:#07834e;background:#effbf5;border-color:#b3e9ce;animation:controller-glow 3s ease-in-out infinite}.controller-status.connected i{background:#19b875}
.lab-disclosure{margin-top:-18px;margin-bottom:56px;scroll-margin-top:100px}
.lab-disclosure>summary{list-style:none;display:flex;align-items:center;gap:24px;padding:25px 30px;border:1px solid #dce6fa;border-radius:22px;background:linear-gradient(120deg,#f8faff,#fff);cursor:pointer;transition:border-color .2s,box-shadow .2s}
.lab-disclosure>summary::-webkit-details-marker{display:none}.lab-disclosure>summary:hover{border-color:#aabfff;box-shadow:0 12px 35px -25px #164bff70}
.lab-entry-icon{width:64px;height:64px;display:grid;place-items:center;background:#164bff;border-radius:19px;color:#fff;flex-shrink:0}.lab-entry-icon svg{width:37px;height:32px}
.lab-entry-copy{display:flex;flex-direction:column;gap:7px}.lab-entry-copy .eyebrow{font-size:9px;letter-spacing:.13em;margin:0;color:#6f83aa}.lab-entry-copy strong{font-size:25px;font-weight:600;letter-spacing:-.04em;color:#182c4f}.lab-entry-copy>span:last-child{font-size:12px;color:#70809a}
.lab-entry-right{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:13px}.entry-state{font-size:9px;letter-spacing:.07em;color:#7d8da6;display:flex;gap:7px;align-items:center}.entry-state:before{content:'';width:6px;height:6px;border-radius:50%;background:#a1aec3;flex-shrink:0}
.connected .entry-state{color:#07834e}.connected .entry-state:before{background:#19b875;box-shadow:0 0 9px #19b87560}
.lab-entry-action{font-size:12px;color:#164bff;display:flex;align-items:center;gap:20px}.lab-entry-action i{font-style:normal;font-size:22px}.lab-disclosure[open] .lab-entry-action i{transform:rotate(90deg)}
.lab-disclosure .controller-section{padding:48px 0 0;scroll-margin-top:100px}.lab-disclosure .section-heading{margin-bottom:30px}.lab-disclosure .controller-section h2{font-size:clamp(36px,4vw,56px)}
.lab-overview{padding:4px 28px 30px}.lab-diagram-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.lab-diagram-head .eyebrow{font-size:10px;margin:0}.lab-diagram-head label{display:flex;align-items:center;gap:10px;font-size:10px;color:#6f809b}.lab-diagram-head select,.trigger-card select{font-size:11px;min-height:38px;padding:7px 10px;max-width:100%;color:#304a77;background:white;border:1px solid #dce6f8;border-radius:8px}
.lab-pad-visual{background:radial-gradient(ellipse at center,#eaf1ff,#f7faff 60%,#fff 80%);margin:18px 0 8px;border-radius:18px}.lab-pad-visual>svg{display:block;width:100%;max-width:750px;margin:0 auto;height:auto}.lab-pad-visual.unmapped>svg{opacity:.4}
.pad-outline{fill:url(#pad-shell);stroke:#c1d0e8;stroke-width:2}.pad-seam{fill:none;stroke:#d6e0f2;stroke-width:1.4}
.diagram-control{fill:url(#pad-cap);stroke:#b4c7e5;stroke-width:1.6}.diagram-control text{fill:#3e5982;stroke:none;font-family:Arial,sans-serif;font-size:21px;font-weight:600;text-anchor:middle}
.diagram-control.shoulder text,.diagram-control.bumper text{font-size:12px;font-weight:600;letter-spacing:.05em}
.diagram-control.pressed{fill:#164bff;stroke:#164bff}.diagram-control.pressed text{fill:white}.diagram-control.touched:not(.pressed){stroke:#164bff;stroke-width:2}
.diagram-control.small-button path{fill:none;stroke:#687e9f;stroke-width:1.6}.diagram-control.small-button.pressed path{stroke:white}
.home-eye{fill:#164bff;stroke:none}.pressed .home-eye{fill:white}.stick-well{fill:#dde7f8;stroke:#b3c6e6;stroke-width:1.8}.stick-rim{fill:#b8cbe9;stroke:#f8faff;stroke-width:1.4}.stick-inset{fill:none;stroke:#93aed6;stroke-width:1.3;pointer-events:none}.stick-cross{stroke:#93aed6;stroke-width:1.6;fill:none;pointer-events:none}
.dpad-well{fill:#e2eafa;stroke:#c3d3ed;stroke-width:1.6}.diagram-caption{font:9px Arial,sans-serif;letter-spacing:2px;fill:#879dbf;text-anchor:middle}
.lab-triggers{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:24px}.trigger-card{border:1px solid #e0e8f7;border-radius:13px;padding:17px 19px;background:#f8faff}.trigger-card>div:first-child{display:flex;justify-content:space-between;align-items:center}.trigger-card strong{font-size:12px;letter-spacing:.05em}.trigger-card output{font:600 23px/1.2 Arial,sans-serif;color:#164bff;font-variant-numeric:tabular-nums}.trigger-track{height:7px;background:#e2eafa;border-radius:10px;margin:15px 0}.trigger-track i{display:block;width:0;height:100%;background:#164bff;border-radius:10px}
.trigger-card label{display:flex;gap:9px;align-items:center;font-size:10px;color:#7488a8}.trigger-card select{flex:1;min-width:0}.trigger-value{font:10px monospace}.trigger-help{margin-top:14px}
.lab-haptics{padding:28px;border-bottom:1px solid #e3ebf8}.haptics-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.lab-haptics h3{font-size:25px;font-weight:600;letter-spacing:-.03em;margin:0}.haptics-controls{display:grid;grid-template-columns:1fr 1fr 1fr;gap:24px}.haptics-controls label{display:grid;grid-template-columns:1fr auto;gap:10px;font-size:11px;color:#627796}.haptics-controls output{color:#164bff;font-variant-numeric:tabular-nums}.haptics-controls input{grid-column:1/-1;width:100%;min-height:32px;accent-color:#164bff}.lab-haptics .lab-fine{margin-top:13px}
.lab-advanced>summary{padding:24px 28px;font-size:13px;color:#164bff;cursor:pointer;min-height:44px}.lab-advanced .lab-readout{padding-top:0}
.controller-status:focus-visible,.lab-disclosure>summary:focus-visible,.lab-advanced>summary:focus-visible,.lab-diagram-head select:focus-visible,.trigger-card select:focus-visible{outline:3px solid #adc3ff;outline-offset:4px}
@keyframes controller-glow{0%,100%{box-shadow:0 0 0 1px #19b8750d,0 0 8px #19b87513}50%{box-shadow:0 0 0 4px #19b8750d,0 0 16px #19b87525}}
@media(max-width:1100px) and (min-width:761px){.header-play{display:none}.header nav{gap:22px}}
@media(max-width:760px){.lab-disclosure{margin-top:0;margin-bottom:36px;scroll-margin-top:90px}.lab-disclosure>summary{padding:19px 18px;gap:15px;flex-wrap:wrap;border-radius:17px}.lab-entry-icon{width:47px;height:47px;border-radius:14px}.lab-entry-icon svg{width:30px;height:26px}.lab-entry-copy{gap:6px;flex:1;min-width:0}.lab-entry-copy strong{font-size:21px}.lab-entry-copy>span:last-child{font-size:10px;line-height:1.6}.lab-entry-copy .eyebrow{font-size:8px}.lab-entry-right{flex-direction:row;align-items:center;justify-content:space-between;width:100%;margin-left:0;padding-top:13px;border-top:1px solid #e5ecfa;gap:10px}.entry-state{font-size:8px;letter-spacing:.025em}.lab-entry-action{font-size:10px;gap:8px;white-space:nowrap}.lab-disclosure .controller-section{padding-top:32px}.lab-diagram-head{align-items:flex-start;flex-direction:column;gap:12px}.lab-diagram-head label{width:100%;justify-content:space-between}.lab-overview{padding:4px 16px 24px}.lab-triggers{gap:10px;margin-top:20px}.trigger-card{padding:13px 11px}.trigger-card label{flex-wrap:wrap;gap:6px}.trigger-card label>span:first-child{display:none}.trigger-card select{width:100%;flex-basis:100%;font-size:10px;min-height:36px}.trigger-value{margin-left:auto}.trigger-card output{font-size:21px}.trigger-card strong{font-size:10px}.lab-haptics{padding:24px 16px}.haptics-heading{flex-direction:column;align-items:flex-start;gap:0}.haptics-controls{grid-template-columns:1fr;gap:13px}.lab-advanced>summary{padding:22px 16px;font-size:12px}.controller-status{width:38px;height:38px;border-radius:11px}.controller-status svg{width:23px}}
@media(prefers-reduced-motion:reduce){.controller-status.connected{animation:none}.lab-disclosure>summary{transition:none}}
.no-motion .controller-status.connected{animation:none}.no-motion .lab-disclosure>summary{transition:none}
@supports not (aspect-ratio:1){.stick-plot{height:240px}@media(max-width:760px){.stick-plot{height:210px}}@media(max-width:360px){.stick-plot{height:170px}}}
