/* No backdrop sampling over the live WebGL canvas: known ANGLE/OpenGL flicker.
   Glass appearance uses alpha, gradient, border and inset highlight only. */
/* Ironhold glass HUD. Actual game elements, no preview content. */
:root{--hud-edge:24px;--hud-ink:#eee8dc;--hud-muted:#d1cfc3;--hud-gold:#cdbd91;--hud-panel:linear-gradient(145deg,rgba(38,48,42,.20),rgba(16,25,23,.32));--hud-line:rgba(224,228,209,.16);--hud-radius:12px}
#coreHUD,#aramHUD,#phaseUI,#weaponInfo,#ihFsz,#healthText,#healthBar,#staminaContainer,#armorChips,#skill-hud{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;text-shadow:0 1px 3px #000b!important}
#coreHUD{width:220px!important;top:24px!important;padding:8px 10px!important;background:rgba(18,28,24,.84)!important;border:1px solid rgba(184,185,157,.38)!important;border-left:2px solid #cdbd91!important}
#coreHUD .core-label{font-size:10px!important;letter-spacing:.08em;color:var(--hud-muted)!important}
#coreHPBar{height:3px!important;background:#14181570!important;margin:6px 0 4px!important}
#coreHPText{font-size:11px!important;font-weight:500!important;color:#d8d3c6!important}
#aramHUD{top:104px!important;padding:0!important;width:196px!important}
#phaseUI{top:24px!important;padding:7px 12px!important;min-width:0!important;background:rgba(18,28,24,.84)!important;border:1px solid rgba(184,185,157,.38)!important;font-size:11px!important;color:#e5e2d6!important;letter-spacing:.045em!important}
#minimap{bottom:147px!important;border:1px solid #d5d5b848!important;border-radius:0!important;box-shadow:0 2px 7px #0004!important}
#healthText{bottom:109px!important;width:196px!important;padding:0!important;font-size:15px!important;font-weight:700!important;letter-spacing:.02em!important}
#healthBar{bottom:96px!important;width:196px!important;height:7px!important;padding:0!important;background:#101b1a85!important}
#healthFill{background:#e7e5d8!important}
#healthFill.ih-hp-low{background:#de8066!important}
#staminaContainer{bottom:63px!important;width:196px!important;height:25px!important;padding:18px 0 2px!important}
#staminaContainer::before{left:0!important;top:3px!important;font-size:9px!important;color:var(--hud-muted)!important;font-weight:500!important}
#staminaBar{background:#b8ad82!important}
#armorChips{bottom:36px!important;width:196px!important;padding:4px 0!important;gap:12px!important}
#skill-hud{bottom:20px!important;padding:0!important;min-height:0!important;line-height:14px!important;font-weight:500!important;color:var(--hud-muted)!important;min-width:0!important;z-index:1000!important}
#weaponInfo{right:24px!important;bottom:24px!important;min-width:210px!important;max-width:290px!important;padding:0!important}
#weaponName{padding-top:16px!important;font-weight:500!important;font-size:12px!important;letter-spacing:.06em!important;color:#dcd8cb!important}
#weaponInfo #weaponDamage{font-size:10px!important;color:#b9b9ac!important}
#ammoText{font-size:38px!important;font-weight:600!important;line-height:1.18!important}
#reloadBar{height:2px!important;background:#181f1b70!important;margin-top:6px!important}
#stanceIndicator{left:auto!important;right:0!important;top:0!important;padding:0!important;font-size:9px!important;font-weight:500!important;color:#b9b9ac!important}
#ihFsz{right:24px!important;bottom:142px!important;padding:0!important;min-width:210px!important}
.ih-fsz-sor{height:20px!important;font-size:11px!important;letter-spacing:.02em!important;gap:8px!important}
.ih-fsz-ures{height:14px!important;opacity:.22!important}
.ih-fsz-akt .ih-fsz-nev{color:#e4d4a6!important}
.ih-fsz-bill{background:#14201c45!important;border-color:#e8e1cb44!important;font-size:8px!important;border-radius:0!important}
.ih-fsz-elem{border:0!important;padding:0!important;margin-top:8px!important;height:16px!important}
.ih-fsz-ov{gap:8px!important;margin-top:8px!important}
#kdCelsor{top:130px!important;background:linear-gradient(90deg,#17211d70,transparent)!important;border:0!important;border-left:2px solid #cdbd9170!important;box-shadow:none!important;padding:5px 10px!important}
#levegoSav{border:0!important;border-bottom:2px solid #8cc5d5!important;background:#172c2cba!important;box-shadow:none!important}
@media(max-width:900px){:root{--hud-edge:16px}#weaponInfo,#ihFsz{right:16px!important;min-width:175px!important}#healthText,#healthBar,#staminaContainer,#armorChips{width:170px!important}}

/* Shared outer skin; the readouts inside each group have no separate cards. */
#coreHUD,#phaseUI,.hud-group,#aramHUD,#kdCelsor,#levegoSav{
 background:var(--hud-panel)!important;border:1px solid var(--hud-line)!important;
 border-radius:var(--hud-radius)!important;
 box-shadow:inset 0 1px 0 rgba(255,255,240,.07),0 4px 16px rgba(0,0,0,.12)!important;
 backdrop-filter:none!important;-webkit-backdrop-filter:none!important;color:var(--hud-ink);
 text-shadow:0 1px 3px #000b!important;box-sizing:border-box;
}
#coreHUD,#phaseUI{padding:10px 12px!important}
#coreHUD{width:220px!important}
#aramHUD{padding:8px 12px!important;width:220px!important}
#kdCelsor{padding:10px 12px!important}
.hud-group{position:fixed;bottom:24px;z-index:1000;pointer-events:none;font-family:'Segoe UI',sans-serif}
.hud-player{left:var(--hud-edge);width:220px;height:326px}
.hud-equipment{right:var(--hud-edge);width:244px;height:282px}
.hud-player #minimap{position:absolute!important;left:21px!important;top:12px!important;bottom:auto!important;box-shadow:none!important;border:1px solid var(--hud-line)!important;border-radius:7px!important;overflow:hidden}
.hud-player #healthText,.hud-player #healthBar,.hud-player #staminaContainer,.hud-player #armorChips,.hud-player #skill-hud{
 position:absolute!important;left:12px!important;width:194px!important;max-width:none!important;
}
.hud-player #healthText{bottom:96px!important}
.hud-player #healthBar{bottom:83px!important}
.hud-player #staminaContainer{bottom:50px!important}
.hud-player #armorChips{bottom:23px!important}
.hud-player #skill-hud{bottom:9px!important}
.hud-equipment #ihFsz{position:absolute!important;left:12px!important;right:12px!important;top:12px!important;bottom:auto!important;min-width:0!important;width:auto!important;padding:0!important}
.hud-equipment #weaponInfo{position:absolute!important;left:12px!important;right:12px!important;bottom:12px!important;width:auto!important;min-width:0!important;max-width:none!important;padding:12px 0 0!important;border-top:1px solid var(--hud-line)!important}
.hud-equipment #stanceIndicator{top:12px!important}
#levegoSav{bottom:24px!important;padding:10px 12px!important}
#levegoSav.ih-air-low{border-color:var(--hud-line)!important}
.ih-fsz-bill{border-radius:3px!important}
#coreHPBar,#coreHPFill,#healthBar,#healthFill,#staminaContainer,#staminaBar,#reloadBar,#reloadFill{border-radius:3px!important}

@media(max-width:900px){.hud-group{bottom:16px}.hud-equipment{width:220px}}

/* Flow layout accommodates late-created widgets, five occupied slots and long labels. */
:root{--ih-player-height:326px;--ih-equipment-height:282px}
body:not(.ih-hud-active) .ih-hud-root{display:none!important}
.ih-hud-root{pointer-events:none;font-family:'Segoe UI',sans-serif;box-sizing:border-box}
.hud-group{display:flex;flex-direction:column;padding:12px;gap:0;height:auto;bottom:var(--hud-edge)}
.hud-player{min-height:326px;width:220px}
.hud-equipment{min-height:282px;width:244px;justify-content:flex-end}
.hud-player>#minimap,.hud-player>#healthText,.hud-player>#healthBar,.hud-player>#staminaContainer,.hud-player>#armorChips,.hud-player>#skill-hud,
.hud-equipment>#ihFsz,.hud-equipment>#weaponInfo{
 position:relative!important;inset:auto!important;transform:none!important;margin:0!important;width:100%!important;min-width:0!important;max-width:none!important;box-sizing:border-box;flex-shrink:0;
}
.hud-player>#minimap{width:100%!important;height:auto!important;aspect-ratio:1;align-self:stretch;margin:0 auto auto!important;order:0;border:0!important}
.hud-player>#healthText{order:1;padding-top:10px!important;line-height:18px!important}
.hud-player>#healthBar{order:2;margin-top:5px!important}
.hud-player>#staminaContainer{order:3;margin-top:3px!important}
.hud-player>#armorChips{order:4;min-height:26px;flex-wrap:wrap}
.hud-player>#skill-hud{order:5;white-space:normal!important;font-size:10px!important;line-height:14px!important;overflow-wrap:anywhere}
.hud-equipment>#ihFsz{order:0;margin-bottom:12px!important}
.hud-equipment>#weaponInfo{order:1;padding:12px 0 0!important}
#ammoText{font-size:30px!important;overflow-wrap:anywhere}
.ih-fsz-sor{min-width:0}.ih-fsz-nev{min-width:0;flex:1;max-width:none!important}
.ih-hud-stack{position:fixed;display:flex;flex-direction:column;gap:8px;z-index:1100}
.ih-hud-left{left:var(--hud-edge);top:24px;width:220px;max-height:calc(100vh - var(--ih-player-height) - 64px);overflow:auto;scrollbar-width:thin}
.ih-hud-right{right:var(--hud-edge);top:24px;width:244px;max-height:calc(100vh - var(--ih-equipment-height) - 64px);overflow:auto;scrollbar-width:thin}
.ih-hud-left,.ih-hud-right{pointer-events:auto}
.ih-hud-phase{left:50%;top:24px;transform:translateX(-50%);align-items:center;max-width:calc(100vw - 560px)}
.ih-hud-context{left:50%;top:calc(50% + 60px);transform:translateX(-50%);align-items:center;width:max-content;max-width:calc(100vw - 580px)}
.ih-hud-progress{left:50%;bottom:24px;transform:translateX(-50%);align-items:center;width:max-content;max-width:calc(100vw - 580px)}
.ih-hud-stack>*,.ih-hud-stack>#phaseUI,.ih-hud-stack>#coreHUD,.ih-hud-stack>#aramHUD,.ih-hud-stack>#kdCelsor,.ih-hud-stack>#levegoSav{
 position:relative!important;inset:auto!important;transform:none!important;margin:0!important;min-width:0!important;max-width:100%!important;box-sizing:border-box;flex-shrink:0;
}
body .ih-hud-stack>:is(#coreHUD,#aramHUD,#kdCelsor,#phaseUI,#core-ostrom-status,#foodBuffs,#szerBuffs,#statusChips,#killFeed,#coreCarryPrompt,#buildHUD,#buildIllo,#lootCelFelirat,#lightSwitchPrompt,#bereFelirat,#tesztNpcFelirat,#zarCsik,#bus-ticket-hint,#bus-utas-hud,#metroPrompt,#jamIndicator,#hoIndicator,#horgaszHud,#gyogyitasFolyamat,#levegoSav){position:relative!important;inset:auto!important;transform:none!important;margin:0!important;max-width:100%!important}
.ih-hud-right{overflow-x:hidden}
.ih-hud-stack>:empty{display:none!important}
.ih-hud-stack>[style*="opacity: 0;"]{position:absolute!important;visibility:hidden!important;pointer-events:none!important}
.ih-hud-left>*{width:100%!important}
.ih-hud-left>#coreHUD{order:0}.ih-hud-left>#aramHUD{order:1}.ih-hud-left>#kdCelsor{order:2;max-height:none!important;pointer-events:auto}
.ih-hud-right>#foodBuffs{order:0}.ih-hud-right>#szerBuffs{order:1}.ih-hud-right>#statusChips{order:2}.ih-hud-right>#killFeed{order:3}
.ih-hud-phase>#phaseUI{order:0}.ih-hud-phase>#core-ostrom-status{order:1}
.ih-hud-progress>#horgaszHud{order:0}.ih-hud-progress>#gyogyitasFolyamat{order:1;pointer-events:auto}.ih-hud-progress>#levegoSav{order:2;width:220px!important}
.ih-hud-context>#buildHUD{order:0}.ih-hud-context>#buildIllo{order:1}
.ih-hud-context>*,.ih-hud-progress>*,#foodBuffs,#szerBuffs,#statusChips>*,.kill-feed-item,#core-ostrom-status,#ih-mission-result{
 background:var(--hud-panel)!important;border:1px solid var(--hud-line)!important;border-radius:var(--hud-radius)!important;
 box-shadow:inset 0 1px 0 #ffffee12,0 4px 16px #0000001f!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 text-shadow:0 1px 3px #000b!important;padding:8px 12px!important;font-family:'Segoe UI',sans-serif!important;white-space:normal!important;overflow-wrap:anywhere;
}
.ih-hud-context>*{font-size:12px!important;text-align:center;color:var(--hud-ink)}
#foodBuffs,#szerBuffs,#statusChips{flex-wrap:wrap!important;gap:6px!important;justify-content:flex-end}
#foodBuffs>div,#szerBuffs>div{background:transparent!important;border-color:var(--hud-line)!important;border-radius:5px!important}
#statusChips{background:none!important;padding:0!important}
#statusChips>div{height:auto!important;min-height:24px;max-width:100%;padding:4px 7px!important;font-size:10px!important;border-radius:6px!important}
.kill-feed-item{font-size:11px!important;padding:6px 9px!important}
#killFeed{gap:6px!important}
#core-ostrom-status{font-size:11px!important;color:#ffb195!important;text-align:center}
#pickupMessageContainer{right:calc(var(--hud-edge) + 258px)!important;top:34%!important;width:220px;max-width:calc(100vw - 580px)!important}
#pickupMessageContainer>div{background:var(--hud-panel)!important;border:1px solid var(--hud-line);border-radius:10px;backdrop-filter:none!important;padding:6px 10px!important;box-sizing:border-box;overflow-wrap:anywhere}
#fpsCounterUI{left:270px!important;right:auto!important;top:26px!important;font-size:10px!important}
#ih-mission-result{top:100px!important;max-width:calc(100vw - 580px)!important}
#buildIllo{padding:5px!important;gap:4px!important}#buildIllo>div{border-radius:5px!important;flex:0 1 62px}
#coreCarryPrompt{font-size:12px!important;color:var(--hud-gold)!important}
#jamIndicator,#hoIndicator{color:#ffb195!important}
#levegoSav.ih-air-refill .ih-air-warning{display:block!important;color:#a4d3de!important}
@media(max-width:1100px){:root{--hud-edge:16px}.hud-equipment,.ih-hud-right{width:220px}.ih-hud-context,.ih-hud-progress,.ih-hud-phase{max-width:calc(100vw - 490px)}#pickupMessageContainer{right:248px!important;width:170px;max-width:calc(100vw - 490px)!important}}
@media(max-height:740px){.hud-player{min-height:310px}.ih-hud-context{top:calc(50% + 40px)}}


/* The canvas and its marker overlay use the same 194px coordinate space. */
.hud-player>#minimap>#minimapCanvas{width:100%!important;height:100%!important}
