/* Armory Zero 0.5.6 — shared animated 2.5D map for lobby and hunt.
   All rendering layers share one CSS transform; gameplay coordinates remain
   server authoritative, not determined by the hover/parallax controls. */
body[data-page=home] #viewport,
body[data-page=dungeon] #viewport{
  overflow:hidden!important;
  background:#080c17!important;
}
body[data-page=home] #arena-stage,
body[data-page=dungeon] #arena-stage{
  inset:auto!important;
  left:50%!important;
  top:50%!important;
  bottom:auto!important;
  right:auto!important;
  transform-origin:center center!important;
  transform:translate(-50%,-50%) scale(1)!important;
  will-change:auto;
  aspect-ratio:1672/941!important;
  max-width:none!important;max-height:none!important;
  box-shadow:none!important;border:0!important;
}
body[data-page=home] #arena-media,
body[data-page=dungeon] #arena-media{display:block!important}
body[data-page=home] #arena-media>video,
body[data-page=dungeon] #arena-media>video{opacity:1}
body[data-page=home] #scene,
body[data-page=dungeon] #scene{opacity:1!important}
body[data-page=home][data-renderer=compatibility-2d] #scene,
body[data-page=dungeon][data-renderer=compatibility-2d] #scene{opacity:0!important}
body[data-page=home] #viewport::before,
body[data-page=home] #viewport::after{display:none!important;content:none!important}
/* Retire the previous hall and promote the new map in sanctuary as well. */
body[data-page=home] .v48-lobby-intro,
body[data-page=home] .v48-team-panel{z-index:8}
/* Fill the illustrated frame edge-to-edge rather than making artwork tiny
   inside a separately padded icon square. */
.v52-home-menu-item>span{
  display:flex!important;
  align-items:stretch!important;
  justify-content:stretch!important;
  width:64px!important;height:64px!important;
  padding:0!important;margin:0!important;
  background:none!important;overflow:hidden!important;
  border:1px solid rgba(220,168,104,.49);
  border-radius:9px!important;
}
.v52-home-menu-item>span img,
.v52-home-menu-item .t53-menu-art{
  width:100%!important;height:100%!important;
  display:block!important;
  max-width:none!important;max-height:none!important;
  object-fit:cover!important;object-position:center!important;
  transform:scale(1.12)!important;
  border-radius:0!important;
}
.v52-home-menu-item{grid-template-columns:64px minmax(0,1fr)!important;gap:9px 12px!important;align-items:center!important}
.v52-home-menu-item>b{align-self:end}
#navigation .nav-item .az54-nav-art{
  width:37px!important;height:37px!important;flex:0 0 37px!important;
  object-fit:cover!important;object-position:center!important;
  border-radius:7px!important;transform:scale(1.06)!important;
  box-shadow:0 0 0 1px #c9a36755;
}
@media(max-width:1190px){
  .v52-home-menu-item{grid-template-columns:56px minmax(0,1fr)!important}
  .v52-home-menu-item>span{width:56px!important;height:56px!important}
  #navigation .nav-item .az54-nav-art{width:33px!important;height:33px!important;flex-basis:33px!important}
}
@media(max-width:800px){
  body[data-page=home] #viewport{overflow:hidden!important}
  .v52-home-menu-item{grid-template-columns:52px minmax(0,1fr)!important}
  .v52-home-menu-item>span{width:52px!important;height:52px!important}
}
@media(prefers-reduced-motion:reduce){
  body[data-page=home] #arena-stage,body[data-page=dungeon] #arena-stage{will-change:auto!important}
}

/* Ground-level 2D fallback. No fake limb rotation or leaping. */
.t53-compat-unit{width:5.5%!important;height:14%!important;transition:left .16s linear,top .16s linear,opacity .2s!important}
.t53-compat-unit.boss{width:11%!important;height:26%!important}
.t53-compat-unit[hidden]{display:none!important}
