/* player9: flat status icon, real connection count, refined diagnostic drawing. */
.controller-status{width:44px;height:44px;border:1px solid #e9edf3;background:#fff;box-shadow:none;border-radius:13px;color:#596b82}
.controller-status [data-controller-icon]{display:grid;place-items:center;width:100%;height:100%}
.controller-symbol{display:block;width:29px;height:24px;background:currentColor;-webkit-mask:url('./assets/controller-status-v9.webp') center/contain no-repeat;mask:url('./assets/controller-status-v9.webp') center/contain no-repeat}
.controller-count{position:absolute;right:-3px;bottom:-3px;min-width:17px;height:17px;padding:0 4px;display:grid;place-items:center;border:2px solid #fff;border-radius:10px;background:#e9eef5;color:#566379;font:650 10px/1 Arial,sans-serif;font-variant-numeric:tabular-nums}
.controller-status.connected{color:#07834e;background:#f0fcf6;border-color:#bce8d2}
.controller-status.connected .controller-count{background:#0c995d;color:#fff}
.lab-entry-icon{width:48px;height:48px;background:#f5f7fc;border:1px solid #e6ebf3;border-radius:13px;color:#7b899e}
.lab-entry-icon .controller-symbol{width:30px;height:25px}
.connected .lab-entry-icon{color:#07834e;background:#effbf5;border-color:#bce8d2}
.lab-connection-count{font-size:11px;color:#7a8699;line-height:1.5;font-variant-numeric:tabular-nums}
.lab-empty{padding:12px 24px 34px}.lab-empty-visual{width:min(100%,360px);margin:0 auto 0}
.lab-empty-visual svg{display:block;width:100%;height:auto}
.lab-empty h3{font-size:24px;margin:0 0 12px}.lab-empty p{max-width:430px}
.lab-pad-visual{background:#f9fbfe;border:1px solid #edf1f7;border-radius:16px;padding:8px 0}
.pad-outline{fill:#f9fbfe;stroke:#b9c5d5;stroke-width:1.8;stroke-linejoin:round}
.pad-grip-panel{fill:#eef2f8;stroke:#e1e7f0;stroke-width:1}
.pad-seam{stroke:#d6deea;stroke-width:1.2;stroke-linecap:round}
.diagram-control{fill:#fff;stroke:#bac7d8;stroke-width:1.5;stroke-linejoin:round}
.diagram-control text{fill:#45556c;font-size:19px;font-weight:550}
.diagram-control.shoulder text{font-size:11px;font-weight:600;letter-spacing:.03em}
.diagram-control.shoulder:not(.pressed){fill:#eef2f8;stroke:#cad4e2;stroke-width:1.2}
.stick-well{fill:#e8eef7;stroke:#c1cede;stroke-width:1.5}.stick-rim{fill:#c4d1e3;stroke:#f9fbff;stroke-width:1.5}
.stick-inset{stroke:#a9b9d0;stroke-width:1.2}.stick-cross{stroke:#a9b9d0;stroke-width:1.2}
.dpad-well{fill:#edf2f9;stroke:#ccd6e5;stroke-width:1.3}.diagram-control.dpad{fill:#fff;stroke:#bdcadc;stroke-width:1.3}
.diagram-control.pressed{fill:#164bff;stroke:#164bff}.diagram-control.pressed text{fill:#fff}
.diagram-control.dpad.pressed{fill:#164bff;stroke:#164bff}
.pad-idle .home-eye{fill:#8d9aae}
.arcade-mode{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 24px;border-bottom:1px solid #e6edf9;background:#fafcff}
.arcade-mode>div{display:flex;gap:12px;align-items:center;min-width:0}
.arcade-mode-label{font-size:10px;letter-spacing:.09em;color:#164bff;font-weight:650;white-space:nowrap}
.arcade-mode-copy{font-size:12px;color:#687991;line-height:1.6}
.arcade-mode button{min-height:40px;border:1px solid #d2def5;background:#fff;color:#164bff;border-radius:10px;padding:9px 14px;font-size:12px;white-space:nowrap}
.arcade-progress{display:flex;gap:7px;margin-left:auto}
.arcade-progress span{width:18px;height:3px;border-radius:4px;background:#dce6f9;overflow:hidden}
.arcade-progress span:after{content:'';display:block;height:100%;background:#164bff;width:0}
.arcade-progress span.current:after{width:var(--demo-progress,0%)}
.arcade[data-mode=play] .arcade-progress{display:none}
.arcade[data-mode=demo] .game-score-caption{display:inline}.game-score-caption{display:none;font-size:9px;color:#7e8da7;font-weight:400;margin-left:5px}
.arcade[data-mode=demo] .touch-controls{display:none!important}
.arcade .game-screen canvas{cursor:pointer}
.arcade[data-mode=play] .game-screen canvas{cursor:crosshair}
.contact-inner{display:block;padding-top:64px;padding-bottom:45px}
.contact-copy{max-width:690px}.contact h2{font-size:clamp(36px,4vw,55px)}
.contact .email-link{font-size:16px;margin-top:18px}
.contact .contact-eyes{display:none}
@media(max-width:760px){
  .controller-status{width:40px;height:40px}.controller-symbol{width:26px;height:23px}
  .lab-entry-icon{width:43px;height:43px}.lab-entry-icon .controller-symbol{width:27px;height:23px}
  .lab-empty{padding:4px 20px 28px}.lab-empty-visual{max-width:300px}.lab-connection-count{font-size:10px}
  .arcade-mode{padding:13px 16px;gap:12px;align-items:flex-start}.arcade-mode>div{flex-direction:column;align-items:flex-start;gap:4px}
  .arcade-mode-copy{font-size:11px}.arcade-mode button{font-size:11px;min-height:42px;padding:9px 12px}
  .arcade-mode .arcade-progress{display:none}.game-hud{padding-top:17px}
  .arcade[data-mode=demo] .game-screen{height:360px;background:#f5f8ff}
  .arcade[data-mode=demo] #game-canvas{width:100%;height:360px;object-fit:contain}
  .contact-inner{padding-block:48px 28px}.contact h2{font-size:38px}
}
