/* Live category text is anchored to the nameplate; the protected sculpture,
   its source pixels and its fitted geometry are unchanged. */
#huntView .combatName #monsterAffixPanel {
 position:absolute;
 left:50%;
 bottom:calc(100% + 6px);
 width:max-content;
 max-width:calc(100% + 24px);
 margin:0;
 padding:0;
 border:0;
 background:none;
 box-shadow:none;
 transform:translateX(-50%);
 text-shadow:1px 1px #080808;
 z-index:2;
}
#huntView #monsterAffixPanel .monsterCategory {
 display:block;
 margin:0 auto;
 padding:3px 6px;
 min-height:24px;
 max-width:100%;
 border:0;
 background:none;
 box-shadow:none;
 font:inherit;
 font-size:11px;
 line-height:16px;
 white-space:nowrap;
 text-shadow:inherit;
 cursor:default;
 text-align:center;
}
.monsterCategory--common{color:#d1cdc5}
.monsterCategory--elite{color:#d8dce4}
.monsterCategory--mini-boss{color:#e4bf62}
.monsterCategory--boss{color:#dc8b79}

/* Use the shared viewport-aware inspector, at a smaller size for this short
   list. It lives outside the clipped Battle canvas and supports phone taps. */
#detailGroup:has(.monsterCategoryTooltip){width:min(280px,calc(100vw - 16px))}
#detailGroup #detail.monsterCategoryTooltip {
 padding:10px 12px;
 min-height:0;
 font-size:12px;
 line-height:1.45;
 border-width:1px;
 background:var(--theme-panel,#171411);
 text-shadow:none;
}
#detail.monsterCategoryTooltip .detailHeader{gap:8px;align-items:center}
#detail.monsterCategoryTooltip .detailName{font-size:13px;line-height:1.3}
#detail.monsterCategoryTooltip .detailClose{width:24px;height:24px;font-size:17px}
.monsterAffixTooltipList{list-style:none;margin:7px 0 0;padding:0}
.monsterAffixTooltipList li+li{margin-top:6px}
.monsterAffixTooltipList span{color:var(--gold)}
.monsterAffixEmpty{margin:7px 0 0;color:var(--muted)}
.monsterAffixExplanation{margin:7px 0 0}
#huntView #monsterAffixPanel .monsterAffixNames{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:1px 5px;width:138px;max-width:100%;padding:0;margin:0}
#huntView #monsterAffixPanel .monsterAffixName{display:inline-block;min-height:0;max-width:100%;padding:0;margin:0;border:0;border-radius:0;box-shadow:none;background:none;font:inherit;font-size:9px;line-height:11px;white-space:normal;text-wrap:balance;cursor:help}
#huntView #monsterAffixPanel .monsterAffixName:not([class*="enemyType--"]){color:#d6cdb9}
#huntView #monsterAffixPanel .monsterAffixName:hover{text-decoration:underline;text-underline-offset:2px}
#huntView #monsterAffixPanel .monsterAffixName:focus-visible{outline:1px solid currentColor;outline-offset:1px}
#monsterAffixPanel .enemyType--fire,#detail.monsterAffixTooltip .enemyType--fire{color:#ffc076;background:none}
#monsterAffixPanel .enemyType--cold,#detail.monsterAffixTooltip .enemyType--cold{color:#a7e3fb;background:none}
#monsterAffixPanel .enemyType--lightning,#detail.monsterAffixTooltip .enemyType--lightning{color:#eed99a;background:none}
#monsterAffixPanel .enemyType--earth,#detail.monsterAffixTooltip .enemyType--earth{color:#d4b487;background:none}
#monsterAffixPanel .enemyType--poison,#detail.monsterAffixTooltip .enemyType--poison{color:#b5df7e;background:none}
#monsterAffixPanel .enemyType--magic,#detail.monsterAffixTooltip .enemyType--magic{color:#d4adfa;background:none}
#huntView #enemyResistances .enemyResistanceValues{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:1px 6px;font-size:10px;line-height:14px}
#huntView #enemyResistances .enemyResistance{display:flex;align-items:center;justify-content:center;gap:4px;background:none}
#huntView #enemyResistances .enemyTypeIcon{display:inline-flex;flex:0 0 14px;width:14px;height:14px}
#huntView #enemyResistances .enemyTypeIcon>.skillArt{width:14px;height:14px;min-width:0;min-height:0}
#huntView #enemyResistances .enemyResistanceValue{min-width:26px;text-align:left}

/* Independently assembled native frames retain their complete scrollwork.
   Both responsive profiles keep a138px portrait and name/Health openings. */
#huntView .battleStoneCanvas{
 --enemy-frame-width:220px;--enemy-frame-height:350px;--enemy-frame-left:-41px;
 --enemy-frame-portrait-y:132px;--enemy-frame-name-y:64px;--enemy-frame-name-cut:116px;
 --enemy-frame-name-gap:16px;--enemy-frame-body-bottom:127px;--enemy-frame-stem-y:91px;
 --enemy-frame-health-top-height:61px;--enemy-frame-native-health-offset:152px;--enemy-frame-footer-height:127px;
 --enemy-frame-bridge:max(0px,calc(var(--enemy-health-offset,154px) - var(--enemy-frame-native-health-offset)));
 --enemy-frame-health-extension:max(0px,calc(var(--enemy-health-height,12px) - 12px));
}
#huntView .battleStoneCanvas #enemyPortraitFrame{overflow:visible}
#huntView #enemyPortraitFrame .enemySurroundArtwork{
 position:absolute;left:var(--enemy-frame-left);top:calc(0px - var(--enemy-frame-portrait-y));
 width:var(--enemy-frame-width);height:var(--enemy-frame-height);max-width:none;max-height:none;
 display:block;object-fit:contain;image-rendering:pixelated;pointer-events:none;user-select:none;filter:none;
 clip-path:inset(var(--enemy-frame-name-cut) 0 var(--enemy-frame-body-bottom) 0);z-index:2;
}
#huntView .combatName .enemySurroundNameArtwork,
#huntView #enemyPortraitFrame :is(.enemySurroundStemArtwork,.enemySurroundFooterArtwork,.enemySurroundHealthTopArtwork,.enemySurroundHealthMiddleArtwork){
 position:absolute;left:var(--enemy-frame-left);width:var(--enemy-frame-width);display:block;
 background-repeat:no-repeat;image-rendering:pixelated;pointer-events:none;user-select:none;filter:none;z-index:2;
}
#huntView .combatName .enemySurroundNameArtwork{z-index:0}
#huntView .combatName .enemySurroundNameTop{top:calc(0px - var(--enemy-frame-name-y));height:var(--enemy-frame-name-cut);background-size:var(--enemy-frame-width) var(--enemy-frame-name-cut);mask-image:var(--enemy-nameplate-opening-mask);mask-size:100% 100%;mask-repeat:no-repeat}
#huntView .combatName .enemySurroundNameMiddle{top:52px;bottom:0;background-size:var(--enemy-frame-width) 4px;background-repeat:repeat-y}
#huntView #enemyPortraitFrame .enemySurroundStemArtwork{
 top:var(--enemy-frame-stem-y);height:calc(var(--enemy-frame-bridge) + var(--enemy-frame-health-extension));
 background-size:var(--enemy-frame-width) 4px;background-repeat:repeat-y;
}
#huntView #enemyPortraitFrame .enemySurroundFooterArtwork{
 top:calc(var(--enemy-frame-stem-y) + var(--enemy-frame-bridge) + var(--enemy-frame-health-extension));
 height:var(--enemy-frame-footer-height);background-size:var(--enemy-frame-width) var(--enemy-frame-footer-height);
}
#huntView #enemyPortraitFrame .enemySurroundHealthTopArtwork{
 top:calc(var(--enemy-frame-stem-y) + var(--enemy-frame-bridge));
 height:var(--enemy-frame-health-top-height);background-size:var(--enemy-frame-width) var(--enemy-frame-health-top-height);
}
#huntView #enemyPortraitFrame .enemySurroundHealthMiddleArtwork{
 top:var(--enemy-health-offset,154px);height:var(--enemy-health-height,12px);
 background-size:var(--enemy-frame-width) 4px;background-repeat:repeat-y;
}
#huntView #enemyPortraitFrame .enemySurroundStone,#huntView .combatName .enemySurroundNameArtwork.enemySurroundStone{
 filter:var(--battle-stone-finish);opacity:var(--battle-stone-opacity);
}
#huntView .battleStoneCanvas.enemySurroundActive #enemyPortraitFrame{outline:0}
#huntView .battleStoneCanvas .combatant:last-child .combatName :is(strong,small){position:relative;z-index:1}
/* Reuse the player's actual carved bevel around the138px enemy image.
   Hide only the obsolete wide jamb fillers and the old meter sculpture. */
#huntView .battleStoneCanvas.enemySurroundActive :is([data-battle-part="enemy-portrait-jamb"],[data-battle-part="enemy-meter"]){visibility:hidden}
#huntView .battleStoneCanvas.enemySurroundActive .combatant:last-child .combatName{
 left:var(--enemy-portrait-x,59.16350%)!important;
 top:calc(var(--enemy-portrait-y,32.55994%) - var(--enemy-frame-name-gap,16px))!important;
 width:138px!important;
 height:var(--enemy-nameplate-height,106px)!important;
 grid-template-rows:48px 36px 11px;
 gap:0;
 min-height:106px;
 padding:9px 2px 2px;
 align-content:start;
 border:0;
 transform:translateY(-100%);
 background:none;
 z-index:3;
}
#huntView .battleStoneCanvas.enemySurroundActive .combatant:last-child .combatName::before{display:none}
/* Keep the hero's original baseline. Enemy rows use their natural height
   above the anchored level, with the complete name carving following them. */
#huntView .battleStoneCanvas.enemySurroundActive .combatant:first-child .combatName{
 top:calc(var(--enemy-portrait-y) - 49px)!important;
 height:35px!important;
}
#huntView .battleStoneCanvas.enemySurroundActive .combatName{
 display:grid;
 grid-template-rows:24px 11px;
 gap:0;
 align-content:end;
 justify-items:center;
}
#huntView .battleStoneCanvas.enemySurroundActive .combatant .combatName strong{
 align-self:end;
 font-size:11px;
 line-height:12px;
 width:100%;
 white-space:normal;
 text-wrap:balance;
}
#huntView .battleStoneCanvas.enemySurroundActive .combatant .combatName small{
 align-self:start;
 font-size:9px;
 line-height:11px;
}
#huntView .battleStoneCanvas.enemySurroundActive .combatant:last-child .combatName strong{align-self:center}
#huntView .battleStoneCanvas.enemySurroundActive .combatant:last-child .combatName #monsterAffixPanel{align-self:start}
#huntView .battleStoneCanvas.enemySurroundActive .combatName #monsterAffixPanel{
 top:1px;
 bottom:auto;
 max-width:100%;
}
#huntView .battleStoneCanvas.enemySurroundActive #monsterAffixPanel .monsterCategory{
 min-height:13px;
 padding:0 4px;
 font-size:9px;
 line-height:13px;
}
#huntView .battleStoneCanvas.enemySurroundActive .enemyHealthBar{
 left:var(--enemy-portrait-x,59.16350%)!important;
 top:var(--enemy-health-y,calc(var(--enemy-portrait-y,32.55994%) + 150px))!important;
 width:138px!important;
 height:var(--enemy-health-height,12px)!important;
 z-index:3;
}
#huntView .battleStoneCanvas.enemySurroundActive #enemyPct{font-size:10px;line-height:var(--enemy-health-height,12px)}
