/* Armory Zero v0.5.17 – single final layer: visible animated dungeon, clean RPG HUD and cards */
:root{--az17-gold:#f3c57a;--az17-line:rgba(239,193,112,.31);--az17-slate:#0c1931}
/* The base image is always present even if the video cannot play or the previous tab hid it. */
#arena-stage{isolation:isolate!important;position:relative!important;overflow:hidden!important;background:#0b1423 url('/assets/arena-v0517/scene.webp') center/100% 100% no-repeat!important}
#arena-media{display:block!important;position:absolute!important;inset:0!important;z-index:0!important;visibility:visible!important;opacity:1!important;background:#0b1423 url('/assets/arena-v0517/scene.webp') center/100% 100% no-repeat!important}
#arena-media>img{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:fill!important;visibility:visible!important;opacity:1!important;z-index:1!important}
#arena-media>video{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:fill!important;z-index:2!important;mix-blend-mode:normal!important;opacity:0!important;visibility:visible!important;background:transparent!important}
body[data-page=home] #arena-media>video,body[data-page=dungeon] #arena-media>video{opacity:.82!important;visibility:visible!important}
body[data-page=home] #scene,body[data-page=dungeon] #scene{opacity:0!important;visibility:hidden!important;background:transparent!important}
#az-sprite-arena{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:1!important;z-index:6!important;background:transparent!important;pointer-events:none!important;mix-blend-mode:normal!important}
.t53-compatible-field{z-index:5!important;pointer-events:none!important;background:transparent!important}
#world-labels{z-index:7!important;pointer-events:none!important}
body[data-page=home] #viewport,body[data-page=dungeon] #viewport{background:#111625 url('/assets/arena-v0517/scene.webp') center/cover no-repeat!important}
/* Respect prefers-reduced-motion, never disable the static dungeon poster. */
@media(prefers-reduced-motion:reduce){#arena-media>video{opacity:0!important}}

/* RPG identity: newly rendered art, with 4 real image frames per icon. */
.az17-frame-icon{display:block!important;flex-shrink:0!important;width:58px!important;height:58px!important;overflow:hidden!important;border-radius:12px!important;background-repeat:no-repeat!important;background-size:400% 100%!important;background-position:0 0!important;animation:az17-idle-frames 2.8s steps(1,end) infinite!important;filter:drop-shadow(0 3px 7px #0009)!important}
.az17-frame-icon.az17-squad{background-image:url('/assets/brand-v0517/heroes-frames.webp')!important}
.az17-frame-icon.az17-supplies{background-image:url('/assets/brand-v0517/supplies-frames.webp')!important}
.az17-frame-icon.az17-profile{background-image:url('/assets/brand-v0517/profile-frames.webp')!important}
.az17-frame-icon.az17-nav-icon{width:32px!important;height:32px!important;border-radius:6px!important}
@keyframes az17-idle-frames{0%,100%{background-position:0 0}24.99%{background-position:0 0}25%,49.99%{background-position:33.333% 0}50%,74.99%{background-position:66.667% 0}75%,99.99%{background-position:100% 0}}
.az17-top-currency{width:29px!important;height:29px!important;object-fit:contain!important;filter:drop-shadow(0 2px 3px #0009)!important}
.currency.azc-scrap{color:#f4b955}.currency.token{color:#f6ca75}
@media(prefers-reduced-motion:reduce){.az17-frame-icon{animation:none!important}}

/* Landing – fewer visual distractions and meaningful grouping. */
.az17-landing{position:relative;z-index:2;height:100%;overflow:auto;background:linear-gradient(135deg,#081327,#0d172b 60%,#070f20);color:#f4f0e9;pointer-events:auto}
.az17-landing-scene{position:relative;isolation:isolate;display:flex;align-items:center;min-height:clamp(300px,42vh,520px);overflow:hidden;border-bottom:1px solid var(--az17-line);
 background:#101323 url('/assets/arena-v0517/scene.webp') center 45%/cover no-repeat}
.az17-landing-wash{position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(4,10,23,.98),rgba(6,13,28,.9) 36%,rgba(6,13,28,.17) 78%),linear-gradient(0deg,#060d1e 0%,transparent 27%)}
.az17-landing-copy{position:relative;z-index:3;width:min(540px,58%);padding:30px 22px 34px clamp(24px,4.2vw,68px)}
.az17-landing-copy .eyebrow{color:#73e9dc;letter-spacing:.16em;font-size:11px}
.az17-landing-copy h1{font-size:clamp(38px,5.6vw,73px);line-height:1.02;margin:12px 0;color:#fff;font-weight:950;letter-spacing:-.045em;text-shadow:0 4px 35px #000}
.az17-landing-copy h1 em{font-style:normal;color:#f6ca7e}
.az17-landing-copy p{font-size:clamp(13px,1.24vw,17px);color:#e2e8f4;line-height:1.5;max-width:530px;text-shadow:0 2px 8px #000b}
.az17-landing-stats{display:flex;gap:11px;flex-wrap:wrap;margin:20px 0}
.az17-landing-stats span{font-weight:700;font-size:12px;display:flex;align-items:center;gap:7px;color:#dce8ef;padding:8px 10px;background:#06172bba;border-radius:9px;border:1px solid #8a8f9c67}
.az17-landing-stats b{color:#ffcf82;font-size:17px}
.az17-landing-actions{display:flex;gap:10px;flex-wrap:wrap}.az17-landing-actions .btn{padding:12px 18px;min-height:42px;border-radius:8px;font-size:13px}
.az17-landing-characters{position:absolute;right:clamp(30px,5vw,90px);bottom:0;width:44%;height:97%;z-index:2;display:flex;justify-content:center;align-items:end;pointer-events:none;filter:drop-shadow(0 14px 35px #000d)}
.az17-landing-characters img{object-fit:contain;max-width:none;width:42%;height:94%;margin-left:-7%;object-position:bottom center;filter:drop-shadow(0 10px 14px #000b);animation:az17-hero-breathe 4s ease-in-out infinite}
.az17-landing-characters img:nth-child(1){height:79%;transform:translateY(7px);animation-delay:-1.2s}
.az17-landing-characters img:nth-child(2){height:100%;z-index:3}
.az17-landing-characters img:nth-child(3){height:78%;animation-delay:-2.2s}
@keyframes az17-hero-breathe{0%,100%{translate:0 0}50%{translate:0 -6px}}
.az17-home-dashboard{display:grid;grid-template-columns:minmax(0,1fr) minmax(285px,360px);gap:18px;padding:18px clamp(18px,3vw,46px) 35px;max-width:1650px;margin:0 auto;align-items:start}
.az17-home-primary{min-width:0}.az17-home-heading{display:flex;justify-content:space-between;gap:12px;align-items:end;margin-bottom:12px}
.az17-home-heading h2{font-size:23px;color:#fff;margin:4px 0}.az17-home-heading small{font-size:11px;color:#a5b8d0}
.az17-action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.az17-action-tile{min-height:113px;padding:12px 7px;display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;background:linear-gradient(157deg,#1e2d43,#101b2e);border:1px solid var(--az17-line);border-radius:12px;color:#f6e3c6;transition:transform .15s,background .15s}
.az17-action-tile:hover{background:linear-gradient(150deg,#34314b,#1e2d46);transform:translateY(-3px);border-color:#e4b879}
.az17-action-tile b{font-size:12px;letter-spacing:.03em;color:#ffdd9b}.az17-action-tile small{font-size:10px;color:#acc2db;line-height:1.3}
.az17-tile-art{min-height:52px;display:flex;align-items:center;justify-content:center}.az17-tile-art .az59-animated-icon{width:52px;height:52px!important}
.az17-secondary-nav{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:11px}
.az17-secondary-nav button{display:flex;gap:7px;align-items:center;justify-content:center;min-height:53px;color:#e7effe;border:1px solid #49627b7c;background:#142035;border-radius:9px;font-size:10px;font-weight:800}
.az17-secondary-nav button:hover{border-color:#f0c782;background:#233451}.az17-secondary-nav .az59-animated-icon,.az17-secondary-nav .az17-frame-icon{width:33px!important;height:33px!important;min-height:33px!important}
.az17-home-right{display:grid;gap:12px;min-width:0}
@media(max-width:1140px){.az17-home-dashboard{grid-template-columns:1fr}.az17-home-right{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:730px){.az17-landing-scene{min-height:310px}.az17-landing-copy{width:100%;padding-left:20px;background:#06142e4d}.az17-landing-characters{opacity:.27;right:0;width:65%}.az17-home-dashboard{padding:14px}.az17-action-grid{grid-template-columns:repeat(2,1fr)}.az17-secondary-nav{grid-template-columns:repeat(2,1fr)}.az17-home-right{grid-template-columns:1fr}}

/* Discord booster: no fake verification from the front end. */
.az17-booster,.community-card{border:1px solid #806f657c!important;border-radius:12px!important;background:linear-gradient(150deg,#15263d,#0b172b)!important;box-shadow:0 12px 30px #0005;color:#e3eeff;padding:14px!important}
.az17-booster-top h3{font-size:18px;margin:4px 0;color:#ffdc9a}.az17-booster-top p{font-size:12px;color:#c4d2e6;margin:0;line-height:1.5}
.az17-booster-rewards{display:grid;gap:7px;margin:13px 0}.az17-booster-rewards>div{display:flex;align-items:center;justify-content:space-between;gap:9px;background:#101a2e;border:1px solid #55647c64;padding:9px;border-radius:9px}
.az17-booster-rewards b{font-size:11px}.az17-booster-rewards small{color:#f2c781;text-align:right;font-weight:800;font-size:10px}
.az17-booster-account{font-size:11px;margin:8px 0!important}.az17-booster-account span{color:#8dd6bd}
.az17-booster-actions{display:flex;gap:7px;flex-wrap:wrap;margin:9px 0}.az17-booster-actions .btn{min-height:36px!important;font-size:10px!important}
.az17-booster-warning{display:block;color:#ffca83!important;font-size:11px;margin:7px 0}.az17-booster>small{font-size:10px;line-height:1.35;color:#9aadc8}
.community-card{min-width:0}.community-head{display:flex;justify-content:space-between}.community-head h3{font-size:17px;margin:3px 0 9px}
.community-feed{display:grid;gap:6px;max-height:210px;overflow:auto}.community-msg{padding:7px 9px;border-left:2px solid #e9bd78;background:#0b1930b5;border-radius:6px}
.community-msg strong{color:#ffd894;font-size:11px}.community-msg span{display:block;font-size:12px;color:#e1ebfb;overflow-wrap:anywhere}.community-msg small{font-size:9px;color:#889ebc}
.community-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;margin-top:9px}.community-compose input{width:100%;min-width:0;background:#09162a;color:#fff;border:1px solid #57637c;border-radius:7px;padding:9px;font-size:12px}
.community-compose .btn{font-size:10px;min-height:33px}.community-empty{padding:10px;color:#97a8bc;font-size:12px}

/* Crate page: real chest illustration, not a rounded square placeholder. */
.az17-invoke-visual{position:relative;display:grid;place-items:center;min-height:185px;width:100%;background:radial-gradient(ellipse at center,#7c3a7133 0%,transparent 64%)}
.az17-invoke-visual img{display:block;max-width:min(295px,80%);width:100%;height:240px;object-fit:contain;filter:drop-shadow(0 8px 28px #ce61ed9c);animation:az17-chest-float 3.1s ease-in-out infinite}
.az17-chest-reveal{position:relative;width:220px;height:151px;margin:4px auto 14px;display:grid;place-items:center;flex:0 0 auto}
.az17-chest-body{position:relative;z-index:2;width:173px;height:136px;display:grid;place-items:center;filter:drop-shadow(0 7px 12px #0009);animation:az17-chest-pop 1.25s ease-out both}
.az17-chest-body>img{display:block;width:173px;height:136px;object-fit:contain}
.az17-chest-lid{position:absolute;inset:0;background:url('/assets/brand-v0517/chest.webp') center/173px 136px no-repeat;clip-path:polygon(7% 4%,93% 4%,94% 47%,7% 47%);transform-origin:50% 42%;animation:az17-chest-lid 1.4s .2s both}
.az17-chest-beam{position:absolute;z-index:1;left:50%;bottom:22%;width:85px;height:160px;transform:translateX(-50%);background:linear-gradient(0deg,#ffb4fa9a,transparent);filter:blur(12px);clip-path:polygon(34% 100%,66% 100%,100% 0%,0 0%);animation:az17-chest-light 1.5s .4s both}
@keyframes az17-chest-float{0%,100%{translate:0 0}50%{translate:0 -6px}}
@keyframes az17-chest-pop{0%{transform:scale(.76);opacity:.3}35%{transform:scale(1.12);opacity:1}100%{transform:scale(1);opacity:1}}
@keyframes az17-chest-lid{0%,33%{transform:translateY(0) rotateX(0)}56%,100%{transform:translateY(-20px) rotateX(64deg)}}
@keyframes az17-chest-light{0%,33%{opacity:0;transform:translate(-50%,25px) scale(.2)}62%{opacity:1;transform:translate(-50%,0) scale(1.15)}100%{opacity:.48;transform:translate(-50%,-5px) scale(1)}}
/* Correct card ratios for 1, 5 or 10 boxes. A single card may NOT occupy one-fifth of the width. */
.crate-modal .az17-cards{display:flex!important;flex-wrap:wrap!important;align-content:start!important;justify-content:center!important;align-items:flex-start!important;gap:12px!important;width:100%!important;max-height:min(58vh,585px)!important;min-height:280px!important;overflow-y:auto!important;flex:1 1 auto!important;margin:4px 0!important;padding:7px!important;grid-template-columns:none!important;grid-template-rows:none!important}
.crate-modal .az17-cards>.az-flip-card{width:175px!important;height:258px!important;min-width:0!important;min-height:0!important;max-width:220px!important;flex:0 0 auto!important;grid-column:auto!important;animation:az17-card-rise .8s .55s both!important}
.crate-modal .az17-cards-1>.az-flip-card{width:220px!important;height:313px!important}
.crate-modal .az17-cards-10>.az-flip-card{width:145px!important;height:212px!important}
.crate-modal .az17-cards .az-flip-inner{width:100%!important;height:100%!important;display:block!important}
.crate-modal .az17-cards .az-flip-face{inset:0!important;overflow:hidden!important;backface-visibility:hidden!important}
.crate-modal .az17-cards .az-card-front{background:linear-gradient(157deg,#18344c,#0c1529)!important;opacity:1!important;mix-blend-mode:normal!important}
.crate-modal .az17-cards .az-card-front .crate-result-img{height:calc(100% - 56px)!important;max-height:none!important;flex:1 1 auto!important;background:radial-gradient(ellipse at center,color-mix(in srgb,var(--rarity) 24%,transparent),transparent 75%)!important}
.crate-modal .az17-cards .az-card-front .crate-result-img img{width:95%!important;height:95%!important;max-height:100%!important;object-fit:contain!important;opacity:1!important;filter:drop-shadow(0 7px 5px #000b)!important}
.crate-modal .az17-cards .az-card-front>b{font-size:14px!important;color:#fff!important}
.crate-modal .az17-cards .az-card-front>small{font-size:11px!important}
@keyframes az17-card-rise{0%{opacity:0;translate:0 -25px;scale:.78}100%{opacity:1;translate:0 0;scale:1}}
@media(max-width:700px){.crate-modal .az17-cards>.az-flip-card{width:145px!important;height:217px!important}.crate-modal .az17-cards-1>.az-flip-card{width:208px!important;height:288px!important}.az17-chest-reveal{height:110px}.az17-chest-body{scale:.77}}

/* Fusion: true opaque card on both faces; no 3D ghosting through the character. */
.az54-ritual-field{isolation:isolate!important;background:linear-gradient(165deg,#0e1e37,#121b35 50%,#0d172a)!important}
.az54-fusion-final.az17-fusion-card{perspective:none!important;width:195px!important;height:235px!important;background:#101c35!important;border:2px solid #9c7ac1!important;border-radius:13px!important;box-shadow:0 0 22px #7a4da644!important;isolation:isolate!important;opacity:1!important;filter:none!important;backdrop-filter:none!important}
.az17-fusion-card .az54-fusion-card-inner{transform:none!important;transform-style:flat!important;transition:none!important}
.az17-fusion-card .az54-fusion-card-back,.az17-fusion-card .az54-fusion-card-front{transform:none!important;backface-visibility:visible!important;background-color:#13243b!important;overflow:hidden!important}
.az17-fusion-card .az54-fusion-card-back{visibility:visible!important;opacity:1!important;z-index:2!important}
.az17-fusion-card .az54-fusion-card-front{visibility:hidden!important;opacity:0!important;z-index:1!important;transform:none!important;background:linear-gradient(155deg,#203450,#0d1830)!important;filter:none!important}
.az17-fusion-card.is-revealed .az54-fusion-card-back{visibility:hidden!important;opacity:0!important}
.az17-fusion-card.is-revealed .az54-fusion-card-front{visibility:visible!important;opacity:1!important;z-index:3!important;animation:none!important}
.az17-fusion-card .az54-fusion-card-front img{width:94%!important;height:180px!important;object-fit:contain!important;opacity:1!important;mix-blend-mode:normal!important;filter:drop-shadow(0 8px 9px #000d)!important}
.az17-fusion-card .az54-fusion-card-front strong,.az17-fusion-card .az54-fusion-card-front em{opacity:1!important;position:relative!important;z-index:4!important;text-shadow:0 1px 4px #000!important}

/* A compact, legible hunting HUD; chat collapses so the map remains central. */
@media(min-width:1000px){:root{--t53-left:255px;--t53-right:295px}
 body[data-page=dungeon] #viewport{left:calc(var(--t53-left) + 12px)!important;right:calc(var(--t53-right) + 12px)!important;bottom:75px!important}
 .v48-hud-left,.v48-hud-right{width:auto!important}
}
.az17-hunt-chat{position:fixed;bottom:72px;left:calc(var(--t53-left,255px) + 18px);z-index:22;width:min(310px,calc(100vw - 30px));pointer-events:auto;color:#e9f2ff}
.az17-hunt-chat>summary{display:inline-flex;cursor:pointer;list-style:none;background:#15233adf;border:1px solid #b8955c;border-radius:10px;padding:9px 13px;color:#ffdb97;font-weight:900;font-size:11px;box-shadow:0 7px 20px #0008}
.az17-hunt-chat[open]>summary{margin-bottom:5px}.az17-hunt-chat .community-card{max-height:330px}.az17-hunt-chat .community-feed{max-height:180px}
@media(max-width:800px){.az17-hunt-chat{position:relative;left:auto;bottom:auto;width:94%;margin:8px auto}}
