#echo-dungeons .dg-battle-party{position:absolute;top:90px;bottom:120px;right:14px;width:min(370px,42%);border:1px solid #bda57566;border-radius:16px;background:linear-gradient(#201927bf,#181525dd);padding:14px;display:flex;flex-direction:column;justify-content:center;gap:14px;text-align:center;color:#e7d8b9;z-index:4}
.dg-battle-party>p{margin:0;font-size:10px;letter-spacing:2px;color:#d5bc82}.dg-battle-party>small{font-size:10px;color:#c5b0c8}.dg-actors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.dg-actors article{min-width:0;position:relative}.dg-actors article>div{position:relative;height:110px;display:flex;align-items:center;justify-content:center}.dg-actors img{width:100%;height:105px;object-fit:contain;filter:drop-shadow(0 5px 5px #0008)}.dg-actors strong{display:block;font-size:11px;line-height:15px;overflow-wrap:anywhere;max-height:30px;overflow:hidden}.dg-actors small{display:block;font-size:9px;color:#d9bc7e;margin-top:4px}.dg-weapon{position:absolute;right:2px;bottom:8px;font-size:22px;color:#ffe59f;text-shadow:0 2px #111}.dg-attacking img{animation:dg-party-lunge .35s ease-out}.dg-attacking .dg-weapon{animation:dg-sword .35s ease-out}.dg-shielded{box-shadow:inset 0 0 20px #75decd77,0 0 15px #75decd55!important;border-color:#90f3e1!important}.dg-shielded article>div:after{content:'';position:absolute;inset:5%;border:2px solid #8eeadb;border-radius:50%;box-shadow:0 0 12px #83f0df77}.dg-healing img{filter:drop-shadow(0 0 16px #baf193)!important}.dg-effects{position:absolute;inset:0;z-index:9;pointer-events:none;overflow:hidden}.dg-party-shot{position:absolute;font-style:normal;font-size:27px;color:#ffdf7e;text-shadow:0 0 9px #ffb958;animation:dg-party-shot .32s ease-in forwards}.dg-party-shot.dg-slash{font-size:36px}.dg-party-shot.dg-power-shot{font-size:48px;color:#fff4b3;text-shadow:0 0 20px #ff8d54}
#echo-dungeons .dg-party-hud{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;padding:7px 14px;align-items:stretch}.dg-power-bar{display:contents}#echo-dungeons .dg-party-hud .dg-health{grid-column:1/-1;width:100%;max-width:none;display:flex;align-items:center;gap:9px}#echo-dungeons .dg-health span{flex-shrink:0;min-width:140px}#echo-dungeons .dg-health progress{margin:0;height:10px;flex:1}#echo-dungeons .dg-party-hud button{min-width:0;min-height:57px;white-space:normal;padding:5px!important;font-size:11px}#echo-dungeons [data-dg-power]{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px}#echo-dungeons [data-dg-power]:before{content:'';position:absolute;inset:0;background:#07131bb3;transform-origin:bottom;transform:scaleY(var(--cooldown,0));z-index:-1;pointer-events:none}#echo-dungeons [data-dg-power]>span{font-size:20px;line-height:20px}#echo-dungeons [data-dg-power]>b{font-size:10px;line-height:12px}#echo-dungeons [data-dg-power]>small{font-size:9px;line-height:10px;color:#cff095}#echo-dungeons [data-dg-power]:disabled{opacity:.7}.dg-actors article.dg-attacking{background:#ffde7b0d;border-radius:8px}
#echo-dungeons.dg-phone-open .dg-battle-party{top:calc(65px + env(safe-area-inset-top));bottom:calc(112px + env(safe-area-inset-bottom));right:calc(9px + env(safe-area-inset-right));width:40%;padding:8px;gap:7px}
#echo-dungeons.dg-phone-open .dg-actors{gap:6px}#echo-dungeons.dg-phone-open .dg-actors article>div{height:70px}#echo-dungeons.dg-phone-open .dg-actors img{height:68px}#echo-dungeons.dg-phone-open .dg-actors strong{font-size:10px;line-height:12px;max-height:24px}#echo-dungeons.dg-phone-open .dg-actors small{font-size:8px;margin-top:3px}#echo-dungeons.dg-phone-open .dg-battle-party>p{font-size:9px}#echo-dungeons.dg-phone-open .dg-battle-party>small{font-size:9px}#echo-dungeons.dg-phone-open .dg-party-hud{padding:5px calc(8px + env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left));gap:4px}#echo-dungeons.dg-phone-open .dg-health span{min-width:125px;font-size:9px}#echo-dungeons.dg-phone-open .dg-party-hud button{min-height:55px}#echo-dungeons.dg-phone-open .dg-arrows{bottom:calc(108px + env(safe-area-inset-bottom))}#echo-dungeons.dg-phone-open .dg-explore-actions{bottom:calc(122px + env(safe-area-inset-bottom))}#echo-dungeons.dg-phone-open .dg-notice{bottom:calc(110px + env(safe-area-inset-bottom))}.dg-effects .dg-party-shot{will-change:transform,opacity}
@keyframes dg-party-shot{0%{opacity:1;transform:translate(0,0) scale(.7)}85%{opacity:1}100%{opacity:0;transform:translate(var(--shot-x),var(--shot-y)) scale(1.1)}}@keyframes dg-party-lunge{45%{transform:translateX(-12px) rotate(-6deg)}}@keyframes dg-sword{50%{transform:rotate(-60deg) translateX(-8px)}}
@media(max-height:340px) and (orientation:landscape){#echo-dungeons.dg-phone-open .dg-battle-party{top:57px;gap:4px}#echo-dungeons.dg-phone-open .dg-actors article>div{height:52px}#echo-dungeons.dg-phone-open .dg-actors img{height:51px}#echo-dungeons.dg-phone-open .dg-battle-party>small{display:none}}
@media(prefers-reduced-motion:reduce){.dg-attacking img,.dg-attacking .dg-weapon{animation:none}.dg-party-shot{animation:none;left:29%!important;top:38%!important;opacity:.8}}

#echo-dungeons .dg-party-hud{grid-template-columns:repeat(6,minmax(0,1fr))}.dg-party-shot.dg-fireball{font-size:48px;filter:drop-shadow(0 0 12px #ff6c21);text-shadow:0 0 24px #ffc05e}#echo-dungeons .dg-party-hud [data-dg-power=fireball]{border-color:#c58158;color:#ffe2a5}

/* Classic four-direction plus-shaped pad. */
#echo-dungeons .dg-arrows{grid-template-rows:repeat(3,46px)}#echo-dungeons .dg-arrows [data-dg-move=forward]{grid-column:2;grid-row:1}#echo-dungeons .dg-arrows [data-dg-move=left]{grid-column:1;grid-row:2}#echo-dungeons .dg-arrows [data-dg-move=right]{grid-column:3;grid-row:2}#echo-dungeons .dg-arrows [data-dg-move=back]{grid-column:2;grid-row:3}#echo-dungeons.dg-phone-open .dg-arrows{grid-template-rows:repeat(3,43px)}
