/* Armory Zero v0.5.19 – single RPG presentation layer: class-first portraits and real 16:9 map. */
:root{--az19-dark:#091526;--az19-line:rgba(231,196,134,.30);--az19-gold:#f7c878}
html,body{max-width:100%;overflow-x:hidden!important}
#navigation{display:flex!important;align-items:center!important;gap:3px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;-ms-overflow-style:none!important;scroll-behavior:smooth}
#navigation::-webkit-scrollbar,.panel-page::-webkit-scrollbar,.az17-landing::-webkit-scrollbar{display:none!important}
#navigation .nav-item{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;height:43px!important;min-height:43px!important;flex:0 0 auto!important;padding:4px 9px!important}
#navigation .nav-item .az17-frame-icon,#navigation .nav-item .az59-animated-icon{width:27px!important;height:27px!important;min-height:27px!important;min-width:27px!important;background-size:400% 100%!important;border-radius:6px!important;object-fit:contain!important}
#navigation .nav-item>span:last-child{font-size:10px!important;white-space:nowrap}
/* The map occupies exactly the available column: no overlap under the sidebars, no skew. */
body[data-page=home] #viewport,body[data-page=dungeon] #viewport{
 position:fixed!important;left:var(--az19-left,24%)!important;right:auto!important;top:var(--az19-top,var(--t53-top,96px))!important;bottom:auto!important;
 width:var(--az19-width,50vw)!important;height:var(--az19-height,30vw)!important;max-height:calc(100dvh - var(--t53-top,96px) - 60px)!important;
 aspect-ratio:1672/941!important;min-width:0!important;overflow:hidden!important;border:1px solid rgba(237,196,128,.35)!important;
 border-radius:12px!important;background:#081324 url('/assets/arena-v0517/scene.webp') center/100% 100% no-repeat!important;box-shadow:0 10px 26px #0008!important;}
#arena-stage{position:relative!important;width:100%!important;height:100%!important;aspect-ratio:1672/941!important;overflow:hidden!important;
 background:#0c1830 url('/assets/arena-v0517/scene.webp') center/100% 100% no-repeat!important;}
#arena-media{position:absolute!important;inset:0!important;overflow:hidden!important;background:#0c1830 url('/assets/arena-v0517/scene.webp') center/100% 100% no-repeat!important}
#arena-media>img{display:block!important;position:absolute!important;width:100%!important;height:100%!important;inset:0!important;
 object-fit:fill!important;object-position:center center!important;opacity:1!important;filter:saturate(1.11) contrast(1.035)!important;}
#arena-media>video{display:none!important;opacity:0!important}
/* Only the portal's light animates; walls, ground and props never warp. */
#az18-portal-sprite{left:42.35%!important;top:6.9%!important;width:14.25%!important;height:18.3%!important;mix-blend-mode:screen!important;filter:saturate(1.13)!important}
#az-sprite-arena,.t53-compatible-field{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;pointer-events:none!important;background:transparent!important}
#az-sprite-arena{opacity:1!important;mix-blend-mode:normal!important;filter:none!important;image-rendering:auto!important;z-index:6!important}
.t53-compatible-field{z-index:5!important}
.t53-compat-health>span{display:none!important}
.t53-compat-health{height:6px!important;max-width:64px!important}
.t53-compat-health i{height:5px!important}
/* Clear but uncluttered hero selection and side roster portraits. */
.character-card .character-portrait{height:200px!important;overflow:hidden!important;display:flex!important;align-items:flex-end!important;justify-content:center!important}
.character-card .character-portrait img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:50% 100%!important;opacity:1!important;mix-blend-mode:normal!important;filter:drop-shadow(0 12px 10px #0009)!important}
.az15-gear-hero>img,.v48-team-row>img,.v48-roster-hero>img,.v52-fusion-card>img,.forge-portrait>img{object-fit:contain!important;object-position:center center!important;opacity:1!important;mix-blend-mode:normal!important;filter:drop-shadow(0 3px 5px #000a)!important}
.v48-roster-hero>img{width:46px!important;height:65px!important;flex:0 0 46px!important}
.v48-team-row>img{width:39px!important;height:47px!important;object-fit:contain!important}
.gear-avatar{display:flex!important;align-items:flex-end!important;justify-content:center!important;overflow:hidden!important}
.gear-avatar img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important}
/* Brand-new RPG home with all four hero classes in front view. */
.az17-landing{background:linear-gradient(125deg,#071326,#0c1b32)!important;scrollbar-width:none!important}
.az17-landing-scene{min-height:clamp(310px,43vh,485px)!important;background-position:center 50%!important}
.az17-landing-copy{max-width:535px!important;width:45%!important;padding-right:0!important}
.az19-hero-showcase.az17-landing-characters{right:1.8%!important;width:54%!important;height:96%!important;bottom:0!important;overflow:visible!important;filter:none!important}
.az19-hero-showcase.az17-landing-characters img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important;margin:0!important;
 max-width:none!important;transform:none!important;filter:drop-shadow(0 12px 9px #01081790)!important;animation:az19-showcase-stand 5.5s ease-in-out infinite!important}
@keyframes az19-showcase-stand{0%,100%{translate:0 0}50%{translate:0 -4px}}
.az17-home-dashboard{grid-template-columns:minmax(0,1fr)!important;padding:16px max(14px,3vw) 24px!important;max-width:1450px!important}
.az17-landing-copy h1{font-size:clamp(35px,4.7vw,68px)!important;letter-spacing:-.035em!important}
.az17-action-tile{min-height:103px!important;gap:4px!important;padding:9px 7px!important;box-shadow:0 3px 16px #0004!important}
.az17-action-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
.az17-action-tile:hover{transform:translateY(-2px)!important}
.az17-tile-art{min-height:46px!important}
.az17-tile-art .az17-frame-icon,.az17-tile-art .az59-animated-icon{width:48px!important;height:48px!important}
.az17-secondary-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important}
/* Magical invocations, no square placeholder or tiny card. */
.crate-intro .crate-hero .az17-invoke-visual img,.az17-invoke-visual img{object-fit:contain!important;width:min(295px,87%)!important;max-width:295px!important;height:230px!important;border-radius:0!important;background:none!important;filter:drop-shadow(0 15px 20px #b670c468)!important}
.az17-chest-body,.az17-chest-reveal{border:0!important;background:none!important;border-radius:0!important;overflow:visible!important}
.az17-chest-body>img{object-fit:contain!important;mix-blend-mode:normal!important;opacity:1!important;border:0!important}
.az17-chest-lid{background-image:url('/assets/rpg-v0519/chest.webp')!important}
.crate-modal .az17-cards-1>.az-flip-card{width:min(280px,77vw)!important;height:min(408px,61vh)!important}
.crate-modal .az17-cards .az-card-front .crate-result-img{min-height:180px!important}
.crate-modal .az17-cards .crate-result-img img{height:100%!important;object-fit:contain!important}
.az19-medic-showcase,.medic-showcase{display:grid!important;place-items:center!important;border-radius:14px!important;overflow:hidden!important}
.az19-medic-showcase img,.medic-showcase img{display:block!important;margin:auto!important;width:min(100%,230px)!important;height:220px!important;object-fit:contain!important;object-position:center center!important}
/* Fusion: a dedicated illustrated card even on failure; opaque and crisp. */
.az17-fusion-card.is-revealed .az54-fusion-card-front img.az19-failure-illustration{display:block!important;width:100%!important;height:188px!important;object-fit:contain!important;opacity:1!important;mix-blend-mode:normal!important;filter:drop-shadow(0 8px 12px #000a)!important}
.az17-fusion-card .az54-fusion-card-front{background:#0d1b35!important;opacity:1!important}
.az17-fusion-card:not(.is-revealed) .az54-fusion-card-front{display:none!important}
.az17-fusion-card.is-revealed .az54-fusion-card-front{display:flex!important;opacity:1!important;visibility:visible!important;background:#13263e!important}
.az17-fusion-card.is-revealed .az54-fusion-card-back{display:none!important}
.az54-fusion-final.az17-fusion-card{background:#12253d!important;border-radius:12px!important}
/* Houses: do not mix the supply-shop into the rest view. */
.t53-barracks-toolbar{margin-top:10px!important}
/* Compact roster and readable combat panels at wide and medium resolutions. */
.v48-hud-left,.v48-hud-right{z-index:10!important;overflow-y:auto!important;scrollbar-width:none!important}
.v48-hud-left::-webkit-scrollbar,.v48-hud-right::-webkit-scrollbar{display:none!important}
.v48-phase-banner.v52-transition-banner{max-width:260px!important;width:max-content!important;padding:6px 9px!important;font-size:11px!important;left:50%!important;transform:translateX(-50%)!important;z-index:9!important}
@media(max-width:1200px){
 #navigation .nav-item{padding:3px 6px!important}
 #navigation .nav-item .az17-frame-icon,#navigation .nav-item .az59-animated-icon{width:25px!important;height:25px!important;min-width:25px!important;min-height:25px!important}
 .v48-hud-left{width:clamp(215px,20vw,260px)!important}
 .v48-hud-right{width:clamp(220px,21vw,275px)!important}
 .az17-landing-scene{min-height:350px!important}
 .az19-hero-showcase.az17-landing-characters{right:0!important;width:56%!important}
}
@media(max-width:780px){
 #navigation .nav-item>span:last-child{display:none!important}
 #navigation .nav-item{min-width:41px!important;min-height:41px!important}
 .az17-landing-copy{width:65%!important;padding:24px 10px 24px 18px!important}
 .az19-hero-showcase.az17-landing-characters{right:-7%!important;width:65%!important;opacity:.68!important}
 .az17-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .az17-secondary-nav{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .az17-landing-stats span{font-size:11px!important}
 body[data-page=dungeon] #viewport,body[data-page=home] #viewport{border-radius:5px!important}
}
@media(prefers-reduced-motion:reduce){.az19-hero-showcase.az17-landing-characters img{animation:none!important}}
