/* Zenkai Idle R7.10.217 — Boss/Cyclopedia UI polish.
   Visual-only authority: no combat, terrain, scheduler or backend changes. */

/* The button art already contains its own labels. Keep the DOM text for accessibility,
   but never paint a second label on top of the baked asset. */
#huntModal .zk77-boss-footer #zk77BossStart,
#huntModal .zk77-boss-footer #zk77BossClose{
  font-size:0!important;
  line-height:0!important;
  color:transparent!important;
  text-shadow:none!important;
  overflow:hidden!important;
}

/* Boss cards: move portrait + text inward from the left frame and keep a stable pixel-art viewport. */
#huntModal .zk77-boss-card{
  padding-left:20px!important;
  padding-right:11px!important;
  grid-template-columns:58px minmax(0,1fr)!important;
  gap:12px!important;
}
#huntModal .zk77-boss-card>img{
  width:56px!important;
  height:56px!important;
  max-width:56px!important;
  max-height:56px!important;
  justify-self:center!important;
  align-self:center!important;
  object-fit:contain!important;
  object-position:center bottom!important;
  image-rendering:pixelated!important;
}
#huntModal .zk77-boss-card>span{
  min-width:0!important;
  padding-left:2px!important;
  overflow:hidden!important;
}
#huntModal .zk77-boss-card>span>b,
#huntModal .zk77-boss-card>span>small{
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

/* Boss loot: same inward alignment; no icon glued to the frame. */
#huntModal .zk77-boss-loot{
  padding-left:16px!important;
  padding-right:9px!important;
  grid-template-columns:40px minmax(0,1fr)!important;
  gap:10px!important;
}
#huntModal .zk77-boss-loot>img{
  width:38px!important;
  height:38px!important;
  max-width:38px!important;
  max-height:38px!important;
  justify-self:center!important;
  object-fit:contain!important;
  image-rendering:pixelated!important;
}
#huntModal .zk77-boss-loot>span{min-width:0!important;overflow:hidden!important}
#huntModal .zk77-boss-loot>span>b,
#huntModal .zk77-boss-loot>span>small{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important}

/* Cyclopedia single-frame portraits must remain inside their viewports even if a future
   data fallback accidentally points at a larger image. */
.r171-beast-portrait,
.r171-beast-big{
  overflow:hidden!important;
}
.r171-beast-portrait img,
.r171-beast-big img{
  width:auto!important;
  height:auto!important;
  object-fit:contain!important;
  object-position:center!important;
  image-rendering:pixelated!important;
}
.r171-cyclo-body>aside{
  overflow-anchor:none!important;
  scrollbar-gutter:stable!important;
}

@media(max-height:650px){
  #huntModal .zk77-boss-card{padding-left:17px!important;grid-template-columns:52px minmax(0,1fr)!important;gap:10px!important}
  #huntModal .zk77-boss-card>img{width:50px!important;height:50px!important;max-width:50px!important;max-height:50px!important}
  #huntModal .zk77-boss-loot{padding-left:14px!important}
}
