/* Armory Zero v0.5.20 — smooth RPG motion, balance UI, update notice */
:root{--az20-gold:#f8cf89;--az20-ink:#071221}
/* Keep the four class illustrations compact; no full-width enlargement or stretching. */
.az17-landing-scene{min-height:clamp(290px,37vh,415px)!important;max-height:430px!important;overflow:hidden!important;}
.az17-landing-copy{width:50%!important;max-width:530px!important;z-index:3!important;}
.az19-hero-showcase.az17-landing-characters{right:5%!important;bottom:0!important;width:min(43%,620px)!important;height:78%!important;max-height:360px!important;overflow:hidden!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;}
.az19-hero-showcase.az17-landing-characters img{width:100%!important;height:100%!important;max-width:100%!important;object-fit:contain!important;object-position:center bottom!important;transform:none!important;margin:0!important;animation:az20-heroes-breath 5.3s ease-in-out infinite!important;filter:drop-shadow(0 10px 10px #0009)!important;}
@keyframes az20-heroes-breath{0%,100%{translate:0 0}50%{translate:0 -3px}}
/* The five secondary menu entries use the same sized animated artwork as the primary entries. */
.az17-secondary-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important;}
.az17-secondary-nav>button{min-height:79px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;padding:9px 7px!important;font-size:11px!important;line-height:1.2!important;gap:4px!important;}
.az17-secondary-nav>button .az59-animated-icon,.az17-secondary-nav>button .az17-frame-icon{display:inline-block!important;width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;background-size:400% 100%!important;}
.az17-secondary-nav>button span:last-child{font-size:11px!important;white-space:normal!important;text-align:center!important}
/* The new chest is shared across shop packs, opening animation and hunt HUD. */
.az20-pack-render{display:flex!important;align-items:center!important;justify-content:center!important;position:relative!important;overflow:hidden!important;}
.az20-pack-chest{width:min(78%,200px)!important;max-height:175px!important;object-fit:contain!important;position:relative!important;z-index:3!important;filter:drop-shadow(0 8px 18px rgba(212,130,255,.36))!important;animation:az20-chest-float 3.2s ease-in-out infinite!important;}
.az20-pack-render .crate-mini{opacity:.2!important;pointer-events:none!important}
@keyframes az20-chest-float{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-5px) scale(1.012)}}
.az20-chest-opening{min-height:210px!important;overflow:visible!important;perspective:700px!important;isolation:isolate!important;}
.az20-chest-opening .az17-chest-body{display:flex!important;position:relative!important;align-items:center!important;justify-content:center!important;height:210px!important;background:none!important;border:0!important;box-shadow:none!important;}
.az20-chest-opening .az17-chest-body>img{display:block!important;max-width:235px!important;width:100%!important;height:190px!important;object-fit:contain!important;object-position:center!important;opacity:1!important;background:transparent!important;animation:az20-chest-reveal 2.4s ease-out both!important;}
.az20-chest-opening .az17-chest-lid{position:absolute!important;inset:7px calc(50% - 115px) auto!important;width:230px!important;height:108px!important;pointer-events:none!important;background: url('/assets/rpg-v0519/chest.webp') center top / 230px auto no-repeat!important;clip-path:inset(0 0 54% 0)!important;transform-origin:center 77%!important;animation:az20-chest-lid 2s ease-out both!important;z-index:5!important;}
.az20-chest-opening .az17-chest-beam{filter:drop-shadow(0 0 18px #e8aaff)!important;animation:az20-chest-beam 2.2s ease-out both!important}
@keyframes az20-chest-reveal{0%{transform:translateY(5px) scale(.87);filter:brightness(.67)}35%{transform:translateY(0) scale(1);filter:brightness(1)}72%{filter:brightness(1.7)}100%{transform:translateY(0) scale(1);filter:brightness(1.12)}}
@keyframes az20-chest-lid{0%,34%{transform:rotateX(0deg) translateY(0);opacity:1}58%{transform:rotateX(-62deg) translateY(-30px);opacity:.96}85%,100%{transform:rotateX(-70deg) translateY(-35px);opacity:0}}
@keyframes az20-chest-beam{0%,32%{opacity:0;transform:scale(.2)}55%{opacity:1;transform:scale(1.1)}100%{opacity:.55;transform:scale(.75)}}
.az17-cards-1 .az-flip-card{width:min(276px,76vw)!important;height:min(410px,62vh)!important;}
/* Spell particles, true healing paths and a grounded, visible boss entrance shockwave. */
.az20-combat-float{position:absolute;z-index:21;pointer-events:none;white-space:nowrap;transform:translate(-50%,0);font-size:clamp(13px,1.18vw,18px);font-weight:1000;letter-spacing:.045em;text-shadow:0 1px 3px #001b16,0 0 8px currentColor,0 0 16px #002b1f;}
.az20-magic-sigil{position:absolute;z-index:16;width:76px;height:40px;border:2px solid var(--magic-color,#ac80ff);border-radius:50%;box-shadow:0 0 14px var(--magic-color,#ac80ff),inset 0 0 18px var(--magic-color,#ac80ff);pointer-events:none;transform:translate(-50%,-50%);}
.az20-magic-sigil.wide{width:120px;height:64px;box-shadow:0 0 24px var(--magic-color,#ac80ff),inset 0 0 24px var(--magic-color,#ac80ff)}
.az20-magic-sigil::after{content:'✦';position:absolute;left:45%;top:-18px;color:var(--magic-color,#ac80ff);font-size:23px;text-shadow:0 0 9px currentColor}
.az20-boss-telegraph,.az20-ground-shockwave{position:absolute;z-index:18;pointer-events:none;transform:translate(-50%,-50%);border-radius:50%;border:3px solid #ff5744;background:radial-gradient(ellipse at center,transparent 30%,rgba(255,67,40,.2) 70%,rgba(255,67,40,.02) 85%);box-shadow:0 0 30px #ef3b2a9c,0 0 18px inset #fb533682;}
.az20-boss-telegraph{width:45%;aspect-ratio:1.6/1}.az20-ground-shockwave{width:44%;height:28%;border-width:6px;background:radial-gradient(ellipse at center,rgba(255,180,79,.15),rgba(255,72,52,.13),transparent);}
.az20-boss-countdown{position:fixed;left:50%;top:clamp(115px,16vh,185px);transform:translateX(-50%);z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:170px;max-width:250px;padding:9px 17px;border:2px solid #f66c57;border-radius:12px;background:linear-gradient(140deg,rgba(49,8,24,.97),rgba(17,7,27,.94));box-shadow:0 0 25px #e53d4390,0 12px 34px #000b;pointer-events:none;}
.az20-boss-countdown span{font-size:10px;font-weight:900;color:#ffd1b8;letter-spacing:.08em}.az20-boss-countdown strong{font-size:40px;line-height:1.05;color:#fff;text-shadow:0 0 15px #ff503d}.az20-boss-countdown small{font-size:9px;color:#ffc784;letter-spacing:.07em}
/* The current hero data is authoritative, not a decorative critical chance. */
.az20-hero-skills{display:grid;gap:3px;margin-top:6px;color:#cde4f3;font-size:10px;line-height:1.35;}
.az20-hero-skills b{color:#ffd792;font-size:11px}.az20-hero-skills span{overflow-wrap:anywhere}
.az20-roster-critical{font-weight:800;color:#ffda82;font-size:10px;letter-spacing:.025em}
.forge-hero .power-row{grid-template-columns:repeat(4,minmax(0,1fr))!important}
/* Live update prompt: do not replace existing game modals or affect their state. */
.az20-update-dialog{position:fixed;right:clamp(12px,2.5vw,32px);bottom:clamp(12px,3vh,35px);z-index:6000;width:min(405px,calc(100vw - 24px));color:#f9e9d5;border:2px solid #e6b96c;border-radius:16px;background:linear-gradient(155deg,#1c2a42 0%,#0c1a2d 75%);box-shadow:0 16px 46px #000c,0 0 24px #dbac5d38;animation:az20-update-enter .36s ease-out both;}
.az20-update-heading{padding:18px 20px}.az20-update-heading>strong{color:#ffdf9c;font-weight:1000;letter-spacing:.04em;font-size:16px}.az20-update-heading p{font-size:13px;line-height:1.5;color:#e2eaf7;margin:10px 0}.az20-update-heading small{display:block;color:#a9cfec;margin:0 0 14px}.az20-update-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.az20-update-actions button{min-height:39px}.az20-update-actions .primary{background:#e9bc76!important;color:#142035!important;font-weight:900}
@keyframes az20-update-enter{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){.az17-landing-copy{width:54%!important}.az19-hero-showcase.az17-landing-characters{width:42%!important;height:72%!important;right:1%!important}.az17-secondary-nav>button .az59-animated-icon,.az17-secondary-nav>button .az17-frame-icon{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important}}
@media(max-width:650px){.az17-landing-copy{width:100%!important}.az19-hero-showcase.az17-landing-characters{width:62%!important;height:70%!important;opacity:.26!important}.az17-secondary-nav{grid-template-columns:repeat(2,minmax(0,1fr))!important}.az17-secondary-nav>button{min-height:65px!important}.az17-secondary-nav>button .az59-animated-icon,.az17-secondary-nav>button .az17-frame-icon{width:39px!important;height:39px!important;min-width:39px!important;min-height:39px!important}.az20-boss-countdown{top:90px}}
@media(prefers-reduced-motion:reduce){.az19-hero-showcase.az17-landing-characters img,.az20-pack-chest{animation:none!important}.az20-update-dialog{animation:none!important}}
