#gamepadDock{position:fixed;left:12px;bottom:16px;z-index:26;background:#132135ed;color:#ecd3a3;border:1px solid #a78a58;padding:8px 10px;border-radius:4px;font:bold 11px system-ui;cursor:pointer}#gamepadDock.pad-connected{border-color:#88c9b4}#gamepadHelp{box-sizing:border-box;width:min(650px,94vw);max-height:90vh;overflow:auto;background:linear-gradient(135deg,#263448,#111b2c);border:2px solid #c5a56c;color:#e5d9bf;padding:24px;font:14px/1.6 system-ui}#gamepadHelp::backdrop{background:#07101bd9}#gamepadHelp h2{font:24px Georgia;color:#f0d49b;margin-top:0}.pad-help-grid{display:grid;grid-template-columns:140px 1fr;gap:7px 12px;border-top:1px solid #6e6048;border-bottom:1px solid #6e6048;padding:14px 0}.pad-help-grid b{color:#f2d28e}#gamepadHelp .pad-deadzone{display:flex;align-items:center;gap:12px;margin:12px 0}#gamepadHelp input{accent-color:#d4b678}body[data-input-device=gamepad] button:focus-visible,body[data-input-device=gamepad] input:focus-visible,body[data-input-device=gamepad] select:focus-visible{outline:3px solid #ffdc8e!important;outline-offset:3px;box-shadow:0 0 16px #e7bc6550}@media(max-width:550px){#gamepadDock{left:8px;font-size:10px;padding:7px}#gamepadHelp{padding:16px}.pad-help-grid{grid-template-columns:110px 1fr;font-size:12px}}

/* Explicit controller focus; independent of the browser's :focus-visible heuristics. */
body[data-input-device=gamepad] .pad-selected{outline:3px solid #ffe19d!important;outline-offset:4px;box-shadow:0 0 0 2px #151e2d,0 0 20px #e2b95785!important}body[data-input-device=gamepad] button.pad-selected{position:relative;background-color:#40516c!important;border-color:#ffe19d!important}body[data-input-device=gamepad] .pad-control-selected{outline:2px solid #e2bf78;outline-offset:5px;background:#b58c3e18}body[data-input-device=gamepad] button[data-pad-confirm]::after,body[data-input-device=gamepad] button[data-pad-back]::after{content:attr(data-pad-confirm);position:absolute;right:-9px;top:-11px;min-width:24px;height:24px;display:grid;place-items:center;padding:0 3px;background:#192b38;border:2px solid #e8c984;border-radius:50%;color:#eaffe6;font:bold 14px/1 system-ui;box-shadow:0 2px 7px #000b;pointer-events:none}body[data-input-device=gamepad] button[data-pad-back]{position:relative}body[data-input-device=gamepad] button[data-pad-back]::after{content:attr(data-pad-back);color:#ffd2c1;border-color:#b99b6b;background:#342432}.pad-menu-hints{font:700 11px/1.7 system-ui;color:#f0d69e;text-align:center;white-space:pre-wrap;padding:10px 6px 2px;margin:14px 0 0;pointer-events:none}.pad-menu-hints[hidden]{display:none}.art-key.pad-key{color:#fff0c5!important;border-color:#d4b579!important;background:#26354b!important;font-family:system-ui!important;font-weight:900!important;min-width:18px;text-align:center}.pad-help-heading{display:flex;gap:15px;align-items:start;justify-content:space-between;margin-bottom:15px}.pad-help-heading h2{margin-bottom:0!important}.pad-help-heading button{margin:0!important;flex:none;font-size:11px;padding:7px 12px}
