/* Working web version of the Hex DMA R6 menu. Base size 800x512, scaled to fit its container. */
.hxm-stage{position:relative;width:100%;user-select:none;-webkit-user-select:none}
.hxm-scaler{position:absolute;top:0;left:0;width:800px;height:512px;transform-origin:0 0}
.hxm{--acc:#7c3aed;--acc-soft:color-mix(in srgb,var(--acc) 17%,#0f1014);--acc-text:color-mix(in srgb,var(--acc) 82%,#fff);position:relative;width:800px;height:512px;display:grid;grid-template-columns:148px 1fr;grid-template-rows:100%;background:#0b0c0f;border:1px solid #24262d;border-radius:10px;overflow:hidden;color:#e6e7ea;font:500 12.5px/1.2 Inter,"Segoe UI",system-ui,sans-serif;letter-spacing:0;box-shadow:0 30px 80px #0009,0 0 0 1px #000}
.hxm *{box-sizing:border-box}
:where(.hxm) button{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;min-height:0;line-height:inherit;letter-spacing:inherit}
.hxm button:focus-visible,.hxm input:focus-visible{outline:2px solid var(--acc);outline-offset:1px}
:where(.hxm) input{font:inherit;color:inherit;min-height:0;margin:0;letter-spacing:inherit}

.hxm-side{background:#0f1014;display:flex;flex-direction:column}
.hxm-logo{display:block;width:96px;height:96px;margin:38px auto 46px;object-fit:contain}
.hxm-nav{display:flex;flex-direction:column;gap:7px;padding-left:18px}
.hxm-nav button{position:relative;display:flex;align-items:center;gap:14px;height:34px;padding:0 0 0 14px;border-radius:6px 0 0 6px;color:#c9ccd3;font-size:12.5px;text-align:left;transition:background .15s,color .15s}
.hxm-nav button::before{content:"";width:6px;height:6px;border-radius:50%;background:#8a8d96;transition:background .15s}
.hxm-nav button:hover{background:#16171d;color:#fff}
.hxm-nav button.on{background:var(--acc-soft);color:#fff}
.hxm-nav button.on::before{background:var(--acc)}
.hxm-nav button.on::after{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--acc);border-radius:2px}

.hxm-main{display:flex;flex-direction:column;min-width:0;min-height:0;padding:22px 28px 0 18px}
.hxm-head{display:flex;align-items:center;justify-content:space-between;height:30px;position:relative}
.hxm-crumb{font-size:12.5px;color:#a0a3ab}
.hxm-crumb b{font-weight:500;color:var(--acc-text)}
.hxm-crumb b.solo{color:var(--acc-text)}
.hxm-search{position:relative;width:188px}
.hxm-search input{width:100%;height:30px;background:#1a1c24;border:0;border-radius:5px;padding:0 11px;color:#e6e7ea;font-size:11.5px}
.hxm-search input::placeholder{color:#8d9099}
.hxm-results{position:absolute;right:0;top:34px;width:240px;max-height:260px;overflow:auto;background:#15161b;border:1px solid #2a2c34;border-radius:6px;padding:4px;z-index:30;box-shadow:0 12px 30px #000a}
.hxm-results button{display:flex;justify-content:space-between;gap:10px;width:100%;padding:7px 8px;border-radius:4px;text-align:left}
.hxm-results button:hover,.hxm-results button.sel{background:var(--acc-soft)}
.hxm-results small{color:#8b8e97;font-size:10.5px;white-space:nowrap}
.hxm-results p{margin:0;padding:8px;color:#8b8e97;font-size:11.5px}
.hxm-divider{height:1px;background:#2c2e36;margin:9px 0 0}

.hxm-body{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:21px 4px 18px 0;margin-right:-10px;padding-right:10px;scrollbar-width:thin;scrollbar-color:#2e313a transparent;overscroll-behavior:contain}
.hxm-body::-webkit-scrollbar{width:4px}
.hxm-body::-webkit-scrollbar-thumb{background:#2e313a;border-radius:2px}
.hxm-seg{display:flex;background:#272a33;border-radius:6px;padding:2px;margin-bottom:22px}
.hxm-seg button{flex:1;height:22px;border-radius:5px;color:#9da0a8;font-size:11.5px;transition:background .15s,color .15s}
.hxm-seg button:hover{color:#fff}
.hxm-seg button.on{background:var(--acc);color:#fff}
.hxm-cols{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}
.hxm-cols.one{grid-template-columns:1fr}
.hxm-col{display:flex;flex-direction:column;gap:11px;min-width:0}
.hxm-title{color:var(--acc-text);font-size:12.5px;font-weight:600;margin:0 0 6px 6px}
.hxm-panel{position:relative;background:#111318;border:1px solid #1f222a;border-radius:6px;padding:5px 0}
.hxm-row{position:relative;display:flex;align-items:center;gap:8px;min-height:27px;padding:0 10px;border-radius:4px;transition:background .3s}
.hxm-row>span:first-child{flex:1;display:flex;align-items:center;gap:6px;min-width:0;white-space:nowrap;overflow:hidden}
.hxm-row.flash{animation:hxm-flash 1.4s ease-out}
@keyframes hxm-flash{0%,35%{background:color-mix(in srgb,var(--acc) 30%,transparent);box-shadow:inset 0 0 0 1px var(--acc)}100%{background:transparent}}
.hxm-q{display:inline-grid;place-items:center;width:14px;height:14px;border:1.2px solid #8b8e97;border-radius:50%;font-size:9px;font-weight:700;color:#8b8e97;flex:none;cursor:help}
.hxm-q:hover{border-color:var(--acc);color:var(--acc)}
.hxm-tog{position:relative;width:36px;height:20px;border-radius:10px;background:#4b4e58;flex:none;transition:background .18s}
.hxm-tog::after{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff;transition:transform .18s cubic-bezier(.4,0,.2,1)}
.hxm-tog.on{background:var(--acc)}
.hxm-tog.on::after{transform:translateX(16px)}
.hxm-sw{width:16px;height:16px;border-radius:2px;flex:none;background-image:linear-gradient(var(--c),var(--c)),conic-gradient(#bbb 25%,#666 0 50%,#bbb 0 75%,#666 0);background-size:100% 100%,8px 8px}
.hxm-sw:hover{box-shadow:0 0 0 2px #ffffff40}
.hxm-sld{display:block;padding:5px 10px 4px}
.hxm-sld>div:first-child{display:flex;justify-content:space-between;gap:8px;margin-bottom:6px}
.hxm-sld>div:first-child>span:last-child{color:#a0a3ab;font-size:11.5px}
.hxm-track{position:relative;height:12px;cursor:pointer;touch-action:none}
.hxm-track::before{content:"";position:absolute;left:0;right:0;top:4px;height:4px;border-radius:2px;background:#272a33}
.hxm-fill{position:absolute;left:0;top:4px;height:4px;border-radius:2px;background:linear-gradient(90deg,color-mix(in srgb,var(--acc) 70%,#272a33),var(--acc))}
.hxm-knob{position:absolute;top:0;width:12px;height:12px;margin-left:-6px;border-radius:50%;background:var(--acc);box-shadow:0 0 0 2px #111318}
.hxm-track:hover .hxm-knob{box-shadow:0 0 0 2px #111318,0 0 0 5px color-mix(in srgb,var(--acc) 30%,transparent)}
.hxm-drop{padding:5px 10px}
.hxm-drop>span{display:block;margin-bottom:11px}
.hxm-select{display:block;width:240px;max-width:100%;height:24px;padding:0 10px;text-align:left;background:#2e313a;border-radius:4px;font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hxm-select:hover{background:#363944}
.hxm-panel .hxm-drop .hxm-select.full{width:100%}
.hxm-key{min-width:100px;height:22px;padding:0 10px;background:#2a2c33;border-radius:4px;font-size:11.5px;text-align:center;flex:none}
.hxm-key:hover{background:#343640}
.hxm-key.wait{background:var(--acc-soft);color:var(--acc-text);box-shadow:inset 0 0 0 1px var(--acc)}
.hxm-btn{display:inline-flex;align-items:center;justify-content:center;height:24px;padding:0 9px;background:#1f2128;border-radius:4px;font-size:11.5px}
.hxm-btn:hover{background:#2a2c35}
.hxm-btn.wide{width:100%;height:29px}
.hxm-btn.bright{color:#fff}
.hxm-btn.dim{color:#7d8089}
.hxm-btn:disabled{cursor:default;color:#6c6f78}
.hxm-btn:disabled:hover{background:#1f2128}
.hxm-pad{padding:5px 10px}
.hxm-pad>*+*{margin-top:6px}
.hxm-input{width:100%;height:24px;background:#1b1d24;border:0;border-radius:4px;padding:0 8px;font-size:11.5px;color:#e6e7ea}
.hxm-hint{color:#8b8e97;font-size:11px;padding:4px 0 6px}
.hxm-list{min-height:140px;padding:6px 10px}
.hxm-list>p{margin:0;color:#8b8e97;font-size:11.5px}
.hxm-list button{display:flex;justify-content:space-between;width:100%;padding:6px 8px;border-radius:4px;text-align:left}
.hxm-list button:hover{background:#1a1c23}
.hxm-list button.on{background:var(--acc-soft);color:#fff}
.hxm-list small{color:#8b8e97}
.hxm-profile{border-top:1px solid #1f222a;margin-top:4px;padding-top:4px}
.hxm-profile-head{display:flex;justify-content:space-between;align-items:center;padding:4px 10px}
.hxm-profile-head b{font-weight:600}
.hxm-x{color:#8b8e97;font-size:11px}
.hxm-x:hover{color:#ff6b7d}

.hxm-lock{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;text-align:center;gap:2px;background:#0b0c0f8c;border:1px solid color-mix(in srgb,var(--acc) 55%,transparent);border-radius:6px;z-index:2;cursor:not-allowed}
.hxm-lock svg{width:22px;height:22px;color:var(--acc);margin-bottom:6px}
.hxm-lock b{font-weight:500;font-size:12px;color:#fff}
.hxm-lock small{font-size:9.5px;color:#a0a3ab}
.hxm-panel.locked .hxm-row{opacity:.42;pointer-events:none}

.hxm-pop{position:absolute;z-index:40;background:#15161b;border:1px solid #2a2c34;border-radius:6px;padding:4px;box-shadow:0 14px 34px #000b}
.hxm-pop.menu button{display:block;width:100%;padding:5px 6px;border-radius:3px;text-align:left;font-size:11.5px}
.hxm-pop.menu button:hover{background:#22242c}
.hxm-pop.menu button.on{background:var(--acc-soft)}
.hxm-pop.menu button.chk::before{content:"";display:inline-block;width:9px;height:9px;margin-right:8px;border-radius:2px;border:1px solid #6c6f78;vertical-align:-1px}
.hxm-pop.menu button.chk.on::before{background:var(--acc);border-color:var(--acc)}
.hxm-pop.color{width:188px;padding:10px}
.hxm-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:5px}
.hxm-grid button{aspect-ratio:1;border-radius:3px;background:var(--c);box-shadow:inset 0 0 0 1px #ffffff26}
.hxm-grid button:hover{transform:scale(1.15)}
.hxm-pop.color label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:9px;font-size:11px;color:#a0a3ab}
.hxm-pop.color input[type=color]{width:46px;height:22px;padding:0;border:0;background:none;cursor:pointer;min-height:0}
.hxm-pop.color input[type=range]{width:100px;accent-color:var(--acc);min-height:0;height:14px;padding:0;border:0;background:none}
.hxm-tip{position:absolute;z-index:50;max-width:220px;background:#1b1c22;border:1px solid #2e3038;border-radius:5px;padding:7px 10px;font-size:11px;line-height:1.4;color:#d7d9de;pointer-events:none;box-shadow:0 8px 24px #000a}
.hxm-toast{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);background:#1b1c22;border:1px solid var(--acc);color:#fff;font-size:11.5px;padding:8px 14px;border-radius:6px;z-index:60;white-space:nowrap;animation:hxm-toast 2.4s ease forwards;pointer-events:none}
@keyframes hxm-toast{0%{opacity:0;transform:translate(-50%,6px)}10%,80%{opacity:1;transform:translate(-50%,0)}100%{opacity:0}}

.hxm-closed{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:14px;text-align:center;border:1px dashed #2c2e36;border-radius:10px;background:#0b0c0fcc;color:#a0a3ab;font:500 13px/1.4 Inter,"Segoe UI",system-ui,sans-serif}
.hxm-closed img{width:64px;height:64px;opacity:.9}
.hxm-closed kbd{display:inline-block;background:#272a33;border-radius:4px;padding:2px 8px;color:#fff;font:inherit}
.hxm-closed button{background:#7c3aed;color:#fff;border:0;border-radius:6px;padding:9px 16px;font:600 12.5px Inter,"Segoe UI",sans-serif;cursor:pointer;min-height:0}
.hxm-closed b{color:#fff;font-size:15px}
/* Neutralise the storefront's global form styles inside the menu. */
.hx-storefront .hxm input{min-height:0;border:0;border-radius:4px;line-height:normal;box-shadow:none}
.hx-storefront .hxm .hxm-search input{height:30px;padding:0 11px;background:#1a1c24;border-radius:5px;font-size:11.5px}
.hx-storefront .hxm .hxm-input{height:24px;padding:0 8px;background:#1b1d24;font-size:11.5px}
.hx-storefront .hxm input[type=color]{width:46px;height:22px;padding:0;background:none}
.hx-storefront .hxm input[type=range]{width:100px;height:14px;padding:0;background:none}
.hxm-search input::-webkit-search-cancel-button{filter:invert(.6)}
