/* Zenkai Idle R7.10.79 — Hunt UI polish
   Scope: top tabs, slight palette lift, and a small vertical offset only.
   No layout/gameplay/loot/combat changes. */

/* 1) Move the entire Hunt window a little upward without scaling/deforming it. */
#huntModal .hunt-browser-modal.zk63-shell{
  position:relative!important;
  top:-14px!important;
}

/* 2) Slightly brighten the approved window asset/palette.
      Keep the navy identity; only reduce the dark veil from V74. */
#huntModal .hunt-browser-modal.zk63-shell::before{
  background:rgba(92,108,128,.095)!important;
  mix-blend-mode:saturation!important;
}
#huntModal .hunt-browser-modal.zk63-shell::after{
  content:''!important;
  display:block!important;
  position:absolute!important;
  inset:0!important;
  pointer-events:none!important;
  -webkit-mask:url('assets/ui/hunt_clean_v65/frame/hunt_window.png') center/100% 100% no-repeat!important;
  mask:url('assets/ui/hunt_clean_v65/frame/hunt_window.png') center/100% 100% no-repeat!important;
  background:rgba(40,72,108,.050)!important;
  mix-blend-mode:screen!important;
  z-index:0!important;
}

/* 3) Larger top tabs. Fixed slots keep all four positions stable.
      The image itself remains contain => no stretching. */
#huntModal .hunt-browser-modal.zk63-shell .hunt-mode-tabs{
  left:5.6%!important;
  right:5.6%!important;
  top:17.35%!important;
  height:10.6%!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  align-items:center!important;
  justify-items:center!important;
  gap:.3%!important;
  overflow:visible!important;
}

/* Inactive = visibly smaller. */
#huntModal .hunt-browser-modal.zk63-shell .hunt-mode-tabs button{
  width:82%!important;
  height:72%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  align-self:center!important;
  justify-self:center!important;
  background-size:contain!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  transform:none!important;
  opacity:1!important;
  visibility:visible!important;
  filter:saturate(.78) brightness(.94) contrast(1.03)!important;
  transition:width .14s ease,height .14s ease,filter .14s ease!important;
}

/* Selected = the same slot becomes the large/glowing state. */
#huntModal .hunt-browser-modal.zk63-shell .hunt-mode-tabs button.active,
#huntModal .hunt-browser-modal.zk63-shell .hunt-mode-tabs button[aria-selected="true"]{
  width:100%!important;
  height:100%!important;
  z-index:4!important;
  filter:saturate(.98) brightness(1.035) contrast(1.03)!important;
}

#huntModal .hunt-browser-modal.zk63-shell .hunt-mode-tabs button:not(.active):hover{
  width:89%!important;
  height:81%!important;
  z-index:3!important;
  filter:saturate(.88) brightness(1.00) contrast(1.03)!important;
}

/* Explicit approved active/inactive PNGs, loaded last so legacy sheets cannot win. */
#huntModal .zk63-shell [data-hunt-mode="hunts"]{background-image:url('assets/ui/hunt_clean_v65/tabs/tab_hunts_inactive.png')!important}
#huntModal .zk63-shell [data-hunt-mode="hunts"].active,
#huntModal .zk63-shell [data-hunt-mode="hunts"][aria-selected="true"]{background-image:url('assets/ui/hunt_clean_v65/tabs/tab_hunts_active.png')!important}
#huntModal .zk63-shell [data-hunt-mode="quests"]{background-image:url('assets/ui/hunt_clean_v65/tabs/tab_quests_inactive.png')!important}
#huntModal .zk63-shell [data-hunt-mode="quests"].active,
#huntModal .zk63-shell [data-hunt-mode="quests"][aria-selected="true"]{background-image:url('assets/ui/hunt_clean_v65/tabs/tab_quests_active.png')!important}
#huntModal .zk63-shell [data-hunt-mode="arena"]{background-image:url('assets/ui/hunt_clean_v65/tabs/tab_arena_inactive.png')!important}
#huntModal .zk63-shell [data-hunt-mode="arena"].active,
#huntModal .zk63-shell [data-hunt-mode="arena"][aria-selected="true"]{background-image:url('assets/ui/hunt_clean_v65/tabs/tab_arena_active.png')!important}
#huntModal .zk63-shell [data-hunt-mode="bosses"]{background-image:url('assets/ui/hunt_clean_v65/tabs/tab_bosses_inactive.png')!important}
#huntModal .zk63-shell [data-hunt-mode="bosses"].active,
#huntModal .zk63-shell [data-hunt-mode="bosses"][aria-selected="true"]{background-image:url('assets/ui/hunt_clean_v65/tabs/tab_bosses_active.png')!important}

/* Smaller monitors: preserve the upward nudge, but don't push against the top edge. */
@media (max-height:650px){
  #huntModal .hunt-browser-modal.zk63-shell{top:-7px!important}
  #huntModal .hunt-browser-modal.zk63-shell .hunt-mode-tabs{height:10.2%!important;top:17.5%!important}
}
