/* boss_gauge.css — r44 (builder B6, DESIGN r43-core §3.11; bossui §5.3): styles of TR.gauge (boss_gauge.js), the original's
 * native BOSS HP gauge. Rules copied from the original style-7600475fb4.css (offsets in the comments), scoped under
 * #run-bossgauge (the wrapper boss_gauge.js puts right after #run-bossleft). The wrapper only exists once a core run
 * (R.core) has shown a boss, so these rules change nothing in the r42c HUD. Art: assets/ui/bossgage/<hash>.webp. */
/* .ih @21571: font, colour and text-shadow inherited by the boss name / percent */
#run-bossgauge{--nk:1;pointer-events:none;font-family:Microsoft JhengHei,PingFang TC,system-ui,sans-serif;color:#fff;text-shadow:1px 1px 0 #000,0 0 3px #000;line-height:normal;letter-spacing:normal}
#run-bossgauge [hidden]{display:none!important}
/* .ih-boss @22098, :has(.ih-mg) @23109, name @22147, percent @22203 */
#run-bossgauge .ih-boss{margin:3px auto 0;width:min(420px,46vw)}
#run-bossgauge .ih-boss:has(.ih-mg){width:auto}
#run-bossgauge .ih-boss-n{font-size:12px;font-weight:800;color:#ffb4a8}
#run-bossgauge .ih-boss-p{margin-left:8px;font-size:12px;font-weight:800;color:#ffe9a8;text-shadow:0 0 2px #000,0 1px 1px #000,1px 0 1px #000,-1px 0 1px #000}
/* native gauge .ih-mg @22893 … .ih-mg-g i.fg @23671 */
#run-bossgauge .ih-mg{display:flex;align-items:flex-start;width:calc(var(--w) + 35px);transform:scale(var(--nk,1));transform-origin:top center;margin:0 auto calc((var(--nk,1) - 1) * 37px);image-rendering:pixelated;text-shadow:none}
#run-bossgauge .ih-mg-ico{position:relative;flex:none;background-repeat:no-repeat}
#run-bossgauge .ih-mg-ico i{position:absolute;left:5px;top:6px;width:25px;height:25px;background:center no-repeat}
#run-bossgauge .ih-mg-bar{position:relative;display:flex;width:var(--w);margin-top:9px}
#run-bossgauge .ih-mg-bar b{flex:none;background-repeat:no-repeat}
#run-bossgauge .ih-mg-bar span{flex:1;background-repeat:repeat-x}
#run-bossgauge .ih-mg-g{position:absolute;left:3px;right:4px;top:5px;height:10px}
#run-bossgauge .ih-mg-g i{position:absolute;left:0;top:0;bottom:0;background-repeat:repeat-x;background-size:1px 100%}
#run-bossgauge .ih-mg-g i.bg{right:0}
#run-bossgauge .ih-mg-g i.fg{transition:width .12s}
/* other live bosses: .ih-bossx @57429 … .ih-bx-p @58060 */
#run-bossgauge .ih-bossx{--bk:calc(var(--nk,1) * .55);margin:2px auto 0;width:auto;display:flex;flex-direction:column;align-items:center;gap:calc(2px * var(--nk,1));pointer-events:none}
#run-bossgauge .ih-bx{display:flex;align-items:center;gap:6px}
#run-bossgauge .ih-bx-g{position:relative;flex:none;width:calc(335px * var(--bk));height:calc(37px * var(--bk))}
#run-bossgauge .ih-bx-g .ih-mg{position:absolute;left:0;top:0;margin:0;width:335px;transform:scale(var(--bk));transform-origin:top left}
#run-bossgauge .ih-bx-n{font-size:11px;font-weight:800;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px;text-shadow:0 0 2px #000,0 1px 1px #000,1px 0 1px #000,-1px 0 1px #000}
#run-bossgauge .ih-bx-p{font-size:11px;font-weight:800;color:#ffe9a8;min-width:32px;text-shadow:0 0 2px #000,0 1px 1px #000,1px 0 1px #000,-1px 0 1px #000}
/* short screens @32249 (.ih-boss / name / percent) and @58568 (small bars); portrait phones @57143 */
@media(max-height:520px){#run-bossgauge .ih-boss{margin-top:0}#run-bossgauge .ih-boss-n,#run-bossgauge .ih-boss-p{font-size:9px}#run-bossgauge .ih-bx-n,#run-bossgauge .ih-bx-p{font-size:9.5px}#run-bossgauge .ih-bx-n{max-width:90px}}
@media(orientation:portrait) and (max-width:620px){#run-bossgauge .ih-boss{margin-top:0}#run-bossgauge .ih-boss-n,#run-bossgauge .ih-boss-p{font-size:10px}}
