/* SOLO HUD: one alpha per control group, no alpha stacking. */
body.abyss-solo-run.game-active #runEnergyRanking{display:none!important}
body.abyss-solo-run.game-active #hud,
body.abyss-solo-run.game-active #gameplayOverlayRoot,
body.abyss-solo-run.game-active #gameShell>#mobilePauseBtn,
body.abyss-solo-run.game-active #gameShell>#mobileJoystick,
body.abyss-solo-run.game-active #gameShell>.mobile-dual-stick,
body.abyss-solo-run.game-active #gameShell>#mobileFireBtn,
body.abyss-solo-run.game-active #gameShell>#bossAlert,
body.abyss-solo-run.game-active #gameShell>#abyssalDangerAlert,
body.abyss-solo-run.game-active #gameShell>#toggleHudBtn,
body.abyss-solo-run.game-active #app>.topbar,
body.abyss-solo-run.game-active #endDiveBtn,
body.abyss-solo-run.game-active #toast{opacity:.6!important}
body.abyss-solo-run.game-active #gameplayOverlayRoot #selectedSkillsPanel,
body.abyss-solo-run.game-active #gameplayOverlayRoot #petHabitBar,
body.abyss-solo-run.game-active #gameplayOverlayRoot #activeAbilities{opacity:1!important}
body.abyss-solo-run.game-active #petHabitBar{
 width:80px!important;max-width:80px!important;left:12px!important;bottom:84px!important;
 padding:4px!important;border-radius:7px!important
}
body.abyss-solo-run.game-active #petHabitBar>strong{font-size:7px!important;letter-spacing:0!important;margin-bottom:4px!important;text-align:center}
body.abyss-solo-run.game-active #petHabitBar .pet-habit-actions{display:flex!important;flex-direction:column!important;gap:3px!important}
body.abyss-solo-run.game-active #petHabitBar button{flex-direction:row!important;gap:3px!important;padding:4px 2px!important;min-height:26px!important}
body.abyss-solo-run.game-active #petHabitBar button>span{font-size:12px!important}
body.abyss-solo-run.game-active #petHabitBar button small{font-size:7px!important}
body.abyss-solo-run.game-active .solo-energy-stock{display:block;color:#d3aaff;font-size:10px;margin-top:3px;letter-spacing:.05em}
body:not(.abyss-solo-run) .solo-energy-stock{display:none!important}
/* All in-match HUD is hidden. Keep only the small restore control and mandatory
   pause/level-up screens, so the player can recover the HUD or select skills. */
body.abyss-solo-run.game-active.hud-collapsed #gameShell>:not(#game):not(#toggleHudBtn):not(.screen),
body.abyss-solo-run.game-active.hud-collapsed #gameShell>#hud,
body.abyss-solo-run.game-active.hud-collapsed #app>.topbar,
body.abyss-solo-run.game-active.hud-collapsed #endDiveBtn,
body.abyss-solo-run.game-active.hud-collapsed #toast{
 visibility:hidden!important;opacity:0!important;pointer-events:none!important
}
body.abyss-solo-run.game-active.hud-collapsed #toggleHudBtn{
 visibility:visible!important;display:grid!important;opacity:.6!important;pointer-events:auto!important;
 position:absolute!important;top:10px!important;right:10px!important;left:auto!important;bottom:auto!important;z-index:22000!important
}
#submarineWorkshop .solo-upgrade-nav{display:flex;gap:8px;flex-wrap:wrap}
#submarineWorkshop .solo-upgrade-nav button{min-height:36px}
#submarineWorkshop .solo-lamp-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;border:1px solid #416b78;border-radius:6px;background:#0b2734;padding:10px}
#submarineWorkshop .solo-lamp-row strong{font:800 13px Inter,sans-serif!important}
#submarineWorkshop .solo-lamp-row small{display:block;color:#a6c7cb;font-size:11px;margin-top:4px}
#submarineWorkshop .solo-lamp-row button:disabled{opacity:.55;cursor:default}
/* Resonance is mounted inside the cockpit visor. Never promote it to a fixed overlay. */
@media(max-width:700px){body.abyss-solo-run.game-active #petHabitBar{left:6px!important;bottom:116px!important;width:76px!important;max-width:76px!important}}

@media(min-width:701px){
 body.abyss-solo-run.game-active #petHabitBar{
  position:fixed!important;left:14px!important;right:auto!important;top:auto!important;
  bottom:158px!important;width:80px!important;max-width:80px!important;z-index:36!important
 }
}
#submarineWorkshop .abyss-resonance-action{
 border-color:#9b63ff!important;color:#eadcff!important;
 background:linear-gradient(180deg,#3a2067,#21133f)!important;
 box-shadow:inset 0 1px 0 #d8b9ff66,0 0 18px #8b46ff55!important
}
#submarineWorkshop .abyss-resonance-action:hover,
#submarineWorkshop .abyss-resonance-action:focus-visible{
 border-color:#c99cff!important;box-shadow:0 0 24px #a45cff88!important
}
#submarineWorkshop .abyss-resonance-icon{color:#c790ff!important;text-shadow:0 0 10px #ad63ff;font-size:1.15em;margin-right:5px}

.solo-base-stock{margin-left:8px;color:#8fffe9!important}
#soloSubmarinePowerBtn{border-color:#68e9d0!important;color:#dffff8!important;box-shadow:0 0 16px #42d9bc55!important}
/* Only the curated match banners may appear as floating notices. */
#toast{display:none!important}
#soloSubmarinePowerBtn[hidden]{display:none!important}
body.game-active #petHabitBar #soloSubmarinePowerBtn.compact-submarine-power:not([hidden]){position:absolute!important;inset:auto!important;left:0!important;bottom:calc(100% + 5px)!important;transform:none!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;width:44px!important;height:46px!important;min-width:44px!important;min-height:46px!important;max-width:44px!important;padding:3px!important;margin:0!important;border-radius:7px!important;box-shadow:none!important;background:rgba(7,28,40,.92)!important;pointer-events:auto!important;touch-action:manipulation!important}
body.game-active #petHabitBar #soloSubmarinePowerBtn.compact-submarine-power>span{font-size:17px!important;line-height:1!important;color:#ffd36b!important}
body.game-active #petHabitBar #soloSubmarinePowerBtn.compact-submarine-power>small{font:900 12px/1 Inter,sans-serif!important;color:#fff0be!important}
body.game-active #petHabitBar #soloSubmarinePowerBtn.compact-submarine-power:disabled{opacity:.5!important}
.boss-alert[data-notice-kind="leave"]{--notice-accent:#91a8bb;border-color:#91a8bb99;background:linear-gradient(100deg,#101a27f5,#263b4cf0,#091724f5)}
.boss-alert[data-notice-kind="leave"] .boss-alert-kicker{color:#adcadb}.boss-alert[data-notice-kind="leave"] strong{color:#e0edf5}
#submarineWorkshop .solo-research-heading{margin:14px 0 5px;color:#d6fff3;font:800 12px Cinzel,serif;letter-spacing:.08em}
#submarineWorkshop .solo-research-copy{margin:0 0 8px;color:#9fc5c4;font:600 10px/1.45 Inter,sans-serif}
#submarineWorkshop .solo-research-row.is-complete{border-color:#66cfa877;background:linear-gradient(145deg,#183d38,#0c2928)}
#submarineWorkshop .solo-research-row.is-complete strong{color:#cffff0}
#resonanceScreen .resonance-starter{border-color:#8ccfd077!important;box-shadow:inset 0 0 18px #55d9c11a!important}
#resonanceScreen .resonance-starter .resonance-skill-copy small::after{content:" · PADRÃO";color:#82e7cf;font-weight:800}

/* Section repair sits directly above the energy control on touch screens and
   directly above the specimen behaviour control on desktop. */
#soloSubmarineRepairBtn[hidden]{display:none!important}
body.game-active #petHabitBar #soloSubmarineRepairBtn:not([hidden]){position:absolute!important;inset:auto!important;left:0!important;bottom:calc(100% + 5px)!important;transform:none!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:2px!important;width:80px!important;min-height:42px!important;padding:4px!important;border:1px solid #dfb16c!important;border-radius:7px!important;background:#112d37!important;color:#ffe7b8!important;pointer-events:auto!important;touch-action:manipulation!important}
body.game-active #petHabitBar #soloSubmarineRepairBtn>span{font-size:18px!important;line-height:1!important}
body.game-active #petHabitBar #soloSubmarineRepairBtn>small{font:800 8px/1.1 Inter,sans-serif!important;white-space:normal!important;text-align:center!important}
@media(max-width:700px){body.game-active #petHabitBar #soloSubmarineRepairBtn:not([hidden]){bottom:calc(100% + 56px)!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:46px!important;padding:2px!important}body.game-active #petHabitBar #soloSubmarineRepairBtn>small{font-size:7px!important}}
