/* Zenkai Idle R7.10.82 — NOTEBOOK ROOT POSITION FIX
   Root cause: palette pass V74 accidentally changed .hunt-browser-body,
   .hunt-mode-tabs and .modal-head to position:relative.
   This restores the modal layers to the authored absolute coordinate system.
   No palette/layout/content/gameplay changes. */

/* The body must always fill the exact 1691:930 shell. */
#huntModal .hunt-browser-modal.zk63-shell .hunt-browser-body{
  position:absolute!important;
  inset:0!important;
  left:0!important;
  top:0!important;
  right:0!important;
  bottom:0!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  background:transparent!important;
  z-index:20!important;
}

/* Tabs and invisible close hitbox live in the same absolute canvas. */
#huntModal .hunt-browser-modal.zk63-shell .hunt-mode-tabs{
  position:absolute!important;
  z-index:120!important;
}
#huntModal .hunt-browser-modal.zk63-shell .modal-head{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  z-index:200!important;
}

/* Hunts uses a single interior surface. Keep legacy grid out of the way. */
#huntModal .hunt-browser-modal.zk63-shell.zk63-hunts-mode .hunt-browser-grid,
#huntModal .hunt-browser-modal.zk63-shell.zk63-hunts-mode .hunt-browser-footer{
  display:none!important;
}
#huntModal .hunt-browser-modal.zk63-shell.zk63-hunts-mode #zk63HuntInterior:not([hidden]){
  position:absolute!important;
  left:4.75%!important;
  right:4.75%!important;
  top:28.2%!important;
  bottom:4.8%!important;
  z-index:40!important;
}

/* Short/notebook viewports: never change the coordinate system again.
   Existing uniform shell scaling remains responsible for fitting the monitor. */
@media (max-height:760px), (max-width:1180px){
  #huntModal .hunt-browser-modal.zk63-shell .hunt-browser-body{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
  }
  #huntModal .hunt-browser-modal.zk63-shell .hunt-mode-tabs,
  #huntModal .hunt-browser-modal.zk63-shell .modal-head{
    position:absolute!important;
  }
}
