/* Confirmation sits above the complete circular selector. */
#commander-change-confirm{position:absolute;inset:0;z-index:500;display:grid;place-items:center;box-sizing:border-box;padding:22px;background:#071e18bd;backdrop-filter:blur(7px);border:0;border-radius:0;gap:0}
#commander-change-confirm[hidden]{display:none}
#commander-change-confirm>.commander-change-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:18px;box-sizing:border-box;width:min(420px,100%);max-height:calc(100dvh - 44px);overflow:auto;padding:34px 30px 28px;border:1px solid #cdb77b80;border-radius:12px;background:radial-gradient(ellipse at 50% 0,#4860474d,transparent 65%),#14372e;box-shadow:0 18px 48px #061a1370,inset 0 0 0 5px #c7b47c08;text-align:center}
#commander-change-confirm h2{margin:0;padding:0 12px;font:700 22px/1.3 Georgia,serif;color:#eddbac;text-wrap:balance}
#commander-change-confirm h2:after{content:"";display:block;width:86px;height:1px;margin:14px auto 0;background:linear-gradient(90deg,transparent,#cfb979,transparent)}
#commander-change-confirm p{margin:0;max-width:100%;font:600 12px/1.8 "Segoe UI",Arial,sans-serif;color:#d5dcc5;overflow-wrap:anywhere}
.commander-change-actions{display:flex;justify-content:center;gap:12px;width:100%;flex-wrap:wrap}
.commander-change-actions button{flex:1;min-width:120px;min-height:40px;box-sizing:border-box;font:600 11px/1.3 "Segoe UI",Arial,sans-serif;letter-spacing:.07em}
#commander-change-close{position:absolute;top:8px;right:8px;display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:5px;background:transparent;color:#d9c593;font:25px/1 Arial,sans-serif;cursor:pointer}
#commander-change-close:hover{background:#dfd2a31a;color:#f7e9bd}
.commander-select.has-change-warning>.commander-arena,.commander-select.has-change-warning>.commander-heading,.commander-select.has-change-warning>.commander-footer,.commander-select.has-change-warning>#commander-close{visibility:hidden}
.commander-select.has-change-warning>.commander-arena{opacity:0}
/* Keep the selector's exit clear of fullscreen, pause and the mobile audio row. */
.commander-close{top:74px;right:26px}
@media(max-width:850px){.commander-close{top:106px;right:16px}}
/* Fixed square SVG viewport keeps the centered gear complete at either HUD size. */
#audio-hud #audio-device-toggle svg{width:16px;height:16px;min-width:16px;overflow:visible}
@media(max-width:650px){#audio-hud #audio-device-toggle svg{width:14px;height:14px;min-width:14px}}
@media(max-width:420px){#commander-change-confirm>.commander-change-card{padding:34px 20px 22px;gap:16px}#commander-change-confirm h2{font-size:20px}}
