.battle-arena{overflow:hidden}.battle-arena h2{font-size:1.2rem;margin:3px 0}.battle-stage{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr);gap:5px;padding:20px 0 12px;background:linear-gradient(180deg,#8066d712,transparent);border-radius:14px}.battle-fighter{text-align:center;min-width:0}.battle-fighter h3{font-size:.85rem;min-height:2.6em;margin:0 0 8px;overflow-wrap:anywhere}.battle-portrait{height:140px;display:flex;align-items:center;justify-content:center}.battle-portrait .hero-outfit{width:120px;height:140px;max-width:100%}.battle-portrait .creature{width:110px;max-width:100%}.battle-vs{align-self:center;text-align:center;color:var(--gold)}.battle-vital{text-align:left;font-size:.7rem;padding:0 5px}.battle-vital>span{display:flex;gap:4px;justify-content:space-between;flex-wrap:wrap}.battle-vital strong{font-variant-numeric:tabular-nums}.battle-vital .track{height:8px;margin-top:6px}.battle-fighter:first-child .track i{background:#d995ac}.battle-boss .track i{background:#a08bdb}.battle-states{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.battle-states .pill{font-size:.68rem}.battle-rest{background:var(--pale);padding:12px;border-radius:12px}.battle-reward{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:12px;font-size:.8rem}.battle-log{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}.battle-log summary{min-height:32px;cursor:pointer}.battle-log p{font-size:.78rem;margin:8px 0;padding:8px;border-bottom:1px solid var(--line)}.battle-damage{position:absolute;top:65px;right:15%;font-size:1.5rem;font-weight:800;color:#b97825;text-shadow:0 1px white;pointer-events:none}.battle-new-hit .battle-damage{animation:battle-pop .6s both}.battle-new-hit .battle-boss .battle-portrait{animation:battle-hit .35s ease-out}@keyframes battle-pop{from{opacity:0;transform:translateY(20px) scale(.8)}30%{opacity:1;transform:translateY(0) scale(1.1)}to{opacity:0;transform:translateY(-25px)}}@keyframes battle-hit{25%{transform:translateX(5px)}65%{transform:translateX(-4px)}}html[data-motion=reduce] .battle-new-hit *{animation:none!important}@media(prefers-reduced-motion:reduce){.battle-new-hit *{animation:none!important}}html[data-theme=dark] .battle-rest{background:#302b45}

.battle-new-hit .battle-fighter:first-child .battle-portrait{animation:battle-attack .35s ease-out}.battle-counter .battle-boss .battle-portrait{animation:battle-attack .35s ease-out reverse}.battle-counter .battle-fighter:first-child .battle-portrait{animation:battle-hit .35s ease-out}@keyframes battle-attack{40%{transform:translateX(7px) scale(1.04)}}html[data-motion=reduce] .battle-counter *{animation:none!important}@media(prefers-reduced-motion:reduce){.battle-counter *{animation:none!important}}
