/* ANSEM RUN V33 — compact, legible gameplay-only HUD; C2 gameplay is unchanged. */
#ansem-hud-v33, #ansem-hud-v33 * {box-sizing:border-box}
#ansem-hud-v33 {
  position:fixed; z-index:2147483647; display:none; align-items:stretch; gap:0;
  padding:4px 6px; border:1px solid rgba(213,179,255,.07); border-radius:10px;
  background:linear-gradient(110deg,rgba(12,8,24,.12),rgba(26,13,43,.08));
  box-shadow:none; color:#f8efff;
  font-family:system-ui,-apple-system,"Segoe UI",sans-serif;
  font-variant-numeric:tabular-nums; pointer-events:none;
  line-height:1.15; overflow:hidden;
}
#ansem-hud-v33.is-active {display:flex}
#ansem-hud-v33 .hud-stat {display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0;flex:1;padding:0 8px}
#ansem-hud-v33 .hud-stat:first-child {padding-left:3px}
#ansem-hud-v33 .hud-stat + .hud-stat {border-left:1px solid rgba(211,178,242,.08)}
#ansem-hud-v33 .hud-label {color:#c8b8d9;font-size:9px;letter-spacing:.09em;font-weight:500;opacity:.82}
#ansem-hud-v33 .hud-value {font-size:18px;font-weight:650;letter-spacing:-.02em;white-space:nowrap;text-shadow:0 1px 2px rgba(0,0,0,.5)}
#ansem-hud-v33 .hud-value small {font-size:10px;font-weight:500;color:#bda7d4}
#ansem-hud-v33 .hud-control {display:flex;align-items:center;justify-content:center;min-width:98px;max-width:118px;padding-left:8px;border-left:1px solid rgba(211,178,242,.08);pointer-events:auto}
#ansem-hud-v33 .hud-control .ansem-sfx-toggle-v31 {
  appearance:none!important; position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;min-width:0!important;max-width:none!important;min-height:40px!important;
  padding:6px 8px!important;margin:0!important;background:rgba(169,123,235,.08)!important;
  border:1px solid rgba(191,160,229,.34)!important;border-radius:8px!important;
  color:#e8d4ff!important;box-shadow:none!important;cursor:pointer!important;
  font-size:0!important;font-family:inherit!important;font-weight:600!important;line-height:1.2!important;
  touch-action:manipulation!important;white-space:normal!important;text-align:center!important;pointer-events:auto!important;
}
#ansem-hud-v33 .hud-control .ansem-sfx-toggle-v31::after {content:'SFX';font-size:10px;letter-spacing:.04em}
#ansem-hud-v33 .hud-control .ansem-sfx-toggle-v31[data-v33-sound="ready"]::after {content:'SFX ON'}
#ansem-hud-v33 .hud-control .ansem-sfx-toggle-v31[data-v33-sound="disabled"]::after {content:'SFX OFF'}
#ansem-hud-v33 .hud-control .ansem-sfx-toggle-v31[data-v33-sound="disabled"] {border-color:rgba(234,180,146,.52)!important;color:#f1c6a9!important;background:rgba(116,64,43,.14)!important}
#ansem-hud-v33 .hud-control .ansem-sfx-toggle-v31:focus-visible {outline:2px solid #fff!important;outline-offset:2px!important}
@media(max-width:440px) {
 #ansem-hud-v33 {padding:3px 4px;border-radius:8px}
 #ansem-hud-v33 .hud-stat {padding:0 5px;gap:3px}
 #ansem-hud-v33 .hud-label {font-size:8px;letter-spacing:.045em}
 #ansem-hud-v33 .hud-value {font-size:15px}
 #ansem-hud-v33 .hud-value small {font-size:8px}
 #ansem-hud-v33 .hud-control {min-width:74px;max-width:84px;padding-left:4px}
 #ansem-hud-v33 .hud-control .ansem-sfx-toggle-v31 {min-height:35px!important;padding:5px!important}
 #ansem-hud-v33 .hud-control .ansem-sfx-toggle-v31::after {font-size:9px}
}
@media(prefers-reduced-motion:reduce){#ansem-hud-v33, #ansem-hud-v33 *{transition:none!important}}

/* V40.2: single HUD layout, no independent top-right floating overlap. */
body > .ansem-sfx-toggle-v31{display:none!important}
#ansem-hud-v33{flex-wrap:nowrap;isolation:isolate;overflow:visible}
#ansem-hud-v33 .hud-stat{padding-left:5px;padding-right:5px}
#ansem-hud-v33 .hud-control{flex:0 0 94px;min-width:0;max-width:94px;padding-left:4px}
#ansem-hud-v33 .hud-wallet{display:flex;align-items:center;justify-content:stretch;flex:0 0 128px;min-width:0;max-width:128px;padding-left:4px;pointer-events:auto}
#ansem-hud-v33 .hud-wallet .wallet-trigger{
 position:static!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
 display:block!important;margin:0!important;width:100%!important;max-width:100%!important;min-width:0!important;
 height:40px!important;min-height:40px!important;padding:5px 6px!important;
 border-radius:8px!important;border:1px solid rgba(191,160,229,.34)!important;
 background:rgba(169,123,235,.08)!important;box-shadow:none!important;
 font:600 10px/1.2 system-ui,sans-serif!important;letter-spacing:0!important;
 text-align:center!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
 pointer-events:auto!important;touch-action:manipulation!important;
}
@media(max-width:440px){
 #ansem-hud-v33{display:none;flex-wrap:wrap!important;align-content:start;row-gap:3px;padding:4px 5px!important}
 #ansem-hud-v33.is-active{display:flex}
 #ansem-hud-v33 .hud-stat{flex:1 1 calc(33.333% - 4px);max-width:calc(33.333% - 4px);min-height:29px;justify-content:center!important}
 #ansem-hud-v33 .hud-control{flex:1 1 calc(50% - 3px)!important;max-width:calc(50% - 3px)!important;min-width:0!important;justify-content:stretch!important;border-left:0!important;padding:0!important}
 #ansem-hud-v33 .hud-wallet{flex:1 1 calc(50% - 3px)!important;max-width:calc(50% - 3px)!important;min-width:0!important;padding:0!important}
 #ansem-hud-v33 .hud-control .ansem-sfx-toggle-v31,
 #ansem-hud-v33 .hud-wallet .wallet-trigger{min-height:36px!important;height:36px!important;font-size:9px!important;padding:5px!important}
 #ansem-hud-v33 .hud-stat:nth-child(3){border-left:1px solid rgba(211,178,242,.07)!important}
}

/* No blurred HUD boundary: leave text and controls directly on game art. */
#ansem-hud-v33{background:transparent!important;border:none!important;box-shadow:none!important;backdrop-filter:none!important}
#ansem-hud-v33 .hud-stat + .hud-stat,#ansem-hud-v33 .hud-control{border-left:0!important}

/* Original SFX remains hidden until it has been adopted by the HUD. */
body > .ansem-sfx-toggle-v31{display:none!important}
