/* Arena-only styling: the current account UI and navigation remain intact. */
#arena.play-battle{display:block;padding:0;height:clamp(360px,43vw,480px);isolation:isolate;background:linear-gradient(#0a10252b,#080b1c65),var(--scene) center/cover;overflow:hidden}
#arena.play-battle .fighter{position:absolute;aspect-ratio:1;height:auto;z-index:3}
#arena.play-battle .chibi{position:relative;aspect-ratio:1;width:100%;height:100%;background-repeat:no-repeat;background-position:center;background-size:contain}
#arena.play-battle .battle-pal-art{background-image:var(--art);filter:drop-shadow(0 3px 3px #10102080)!important}
#arena.play-battle .ground-shadow{position:absolute;bottom:2%;height:6%;width:60%;left:20%;border-radius:50%;background:#090b17a6;filter:blur(3px);z-index:-1}
#arena.play-battle .battle-status{position:absolute;left:16px;top:16px;color:#eee7ff;background:#0a1022ce;border:1px solid #c3a0ff55;padding:6px 9px;border-radius:6px;font-size:10px;letter-spacing:.12em;z-index:8}
#arena.play-battle .arena-fighters-labels{position:absolute;left:6%;right:6%;bottom:43px;display:flex;justify-content:space-between;z-index:8}
#arena.play-battle .arena-fighters-labels span{display:flex;flex-direction:column;gap:3px;text-shadow:0 2px 3px #000}
#arena.play-battle .arena-fighters-labels span:last-child{text-align:right}
#arena.play-battle .rounds{z-index:8;bottom:16px}
#arena.play-battle .signature-label{position:absolute;left:6%;top:15%;opacity:0;z-index:7;color:#e9faff;background:#102138de;padding:7px 9px;border-radius:5px;font-size:11px;max-width:44%;pointer-events:none}
#arena.play-battle .signature-label.visible{opacity:1}
#arena.play-battle .effectiveness-label{position:absolute;right:10%;top:37%;opacity:0;z-index:7;color:#fff4b8;text-shadow:0 2px 4px #000;pointer-events:none;display:flex;gap:6px;font-size:12px}
#arena.play-battle .effectiveness-label.is-visible{opacity:1}
#arena.play-battle .combat-echo{position:absolute;opacity:0;pointer-events:none;z-index:2;aspect-ratio:1}
#arena.play-battle .kaito-ink-wash,#arena.play-battle .kaito-cutin,#arena.play-battle .kaito-impact-word{display:none}
@media(max-width:650px){#arena.play-battle{height:365px}#arena.play-battle .battle-status{font-size:8px;left:10px}#arena.play-battle .signature-label{top:18%;font-size:10px}}
@media(prefers-reduced-motion:reduce){#arena.play-battle .combat-echo{display:none}#arena.play-battle canvas{animation:none!important}}

#arena[data-full-motion=true] .anime-skin{display:block!important}#arena[data-full-motion=true] .monster-model.model-ready>.monster-fullbody,#arena[data-full-motion=true] .hero-model-ready>.battle-pal-art{visibility:hidden!important}
#arena[data-full-motion=true] .hero-fighter.rig-ready .kaito-puppet{display:block!important}
/* Keep exactly one live representation of each fighter, even with reduced-motion enabled. */
#arena.play-battle[data-full-motion=true] .anime-skin{display:block!important}
/* Play keeps combat enabled: reduced-motion fallback rules must not hide its
   effects layer while leaving the fighters attacking empty air. */
#arena.play-battle[data-full-motion=true] #battle-fx{visibility:visible}
#arena.play-battle[data-full-motion=true] .monster-model.model-ready>.monster-fullbody,
#arena.play-battle[data-full-motion=true] .hero-model-ready>.battle-pal-art{visibility:hidden!important}
#arena.play-battle.kaito-ink[data-full-motion=true] .hero-fighter.rig-ready>.chibi{visibility:hidden!important}
#arena.play-battle.kaito-ink[data-full-motion=true] .hero-fighter.rig-ready>.kaito-puppet{display:block!important}
.wardrobe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.wardrobe-grid article{display:flex;flex-direction:column;align-items:center;gap:10px;border:1px solid var(--line);border-radius:12px;padding:12px;text-align:center}.wardrobe-grid img{width:100%;aspect-ratio:1;object-fit:contain;max-height:230px}.wardrobe-grid small{color:var(--mute)}.wardrobe-grid .btn{margin-top:auto}#wardrobe{scroll-margin-top:90px}@media(max-width:600px){.wardrobe-grid{grid-template-columns:1fr 1fr}.wardrobe-grid article:first-child{grid-column:1/-1}.wardrobe-grid article:first-child img{max-height:160px}}

/* Plant monsters on the ground. Short-bodied models (Furnace Horn Juggernaut, Mire Maw Stalker) are drawn with
   empty space under their feet, so they sat ~60px / ~27px above their shadow. Drop only the artwork by a
   percentage of its own height; the ground shadow and box stay where they are. (Visual only.) */
#arena.play-battle .enemy-fighter .chibi{translate:0 var(--foot-drop,0%)}
#arena.play-battle[data-monster-id="frosttitan"] .enemy-fighter .chibi{--foot-drop:19.4%}
#arena.play-battle[data-monster-id="stormserpent"] .enemy-fighter .chibi{--foot-drop:8.4%}
#arena.play-battle .enemy-fighter .chibi{animation:opponent-settle 4.1s ease-in-out infinite!important}
.is-active #arena.play-battle .enemy-fighter .chibi,#arena.play-battle.is-active .enemy-fighter .chibi{animation-duration:2.6s!important}
@keyframes opponent-settle{0%,100%{transform:translateY(0) scale(1,1)}50%{transform:translateY(-1.5px) scale(1,1.008)}}
@media(prefers-reduced-motion:reduce){#arena.play-battle .enemy-fighter .chibi{animation:none!important}}
#arena.play-battle[data-monster-id="frosttitan"] .enemy-fighter .ground-shadow{bottom:3.5%!important}
#arena.play-battle[data-monster-id="stormserpent"] .enemy-fighter .ground-shadow{bottom:1.2%!important}

/* The arena never shows the demo "locked form" look, and move labels stay inside the scene. */
#arena.play-battle.evolution-locked::after,#arena.play-battle .evolution-locked::after{display:none!important}
#arena.play-battle.evolution-locked .anime-skin,#arena.play-battle .evolution-locked .anime-skin,#arena.play-battle.evolution-locked img,#arena.play-battle .evolution-locked img,#arena.play-battle .evolution-locked.battle-pal-art{filter:none!important;opacity:1!important}
#arena.play-battle .signature-label,#arena.play-battle .signature-label.visible{left:6%;right:auto;transform:rotate(-2deg)!important;animation:none!important;white-space:normal;max-width:min(46%,300px)}
#arena.play-battle .defense-label,#arena.play-battle .enemy-attack-label{white-space:normal;max-width:min(44%,260px)}
