.battle-presentation{position:absolute;left:8px;z-index:16;background:var(--visual-paper);border:2px solid var(--visual-deep);box-shadow:0 5px 0 #24473f22;pointer-events:none;overflow:hidden;display:flex;flex-direction:column;padding:8px;gap:6px}.battle-presentation[hidden]{display:none}
.battle-presentation>header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;min-height:36px;font-size:14px;border-bottom:1px solid var(--visual-grid)}.battle-presentation>header button{pointer-events:auto;min-height:36px;min-width:48px;padding:4px 8px;font-size:12px;background:var(--visual-deep);color:white}
.scene-duel{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,1.2fr) minmax(0,1fr);gap:12px;min-height:0;flex:1}
.scene-unit{display:flex;align-items:center;flex-direction:column;min-height:0;min-width:0;gap:2px;border-bottom:3px solid var(--red)}.scene-unit[data-team="1"]{border-color:var(--blue)}.scene-unit>.character-visual{flex:1;min-height:0;width:100%;max-width:155px;aspect-ratio:auto}.scene-unit strong{font-size:13px;line-height:1.2}.scene-unit small{font-size:12px}.scene-unit figcaption{display:none}.scene-empty{border:0}
.scene-result{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;overflow:auto}.scene-result p{font-size:14px;line-height:1.4;text-align:center;margin:4px 0}.scene-dice{display:flex;gap:10px}.scene-dice>span{display:grid;place-items:center;font-size:48px;line-height:1;background:var(--red);color:white;padding:3px 6px}.scene-dice>.blue{background:var(--blue)}.scene-dice b{font-size:14px;line-height:1.2}
.battle-presentation[data-reduced=false] .scene-unit[data-pose=Attack]{animation:scene-attack .5s ease-in-out}.battle-presentation[data-reduced=false] .scene-unit[data-pose=Hit]{animation:scene-hit .6s ease-out}.battle-presentation[data-reduced=false] .scene-dice{animation:scene-dice .35s ease-out}
@keyframes scene-attack{0%{transform:translateX(-8px)}50%{transform:translateX(8px)}100%{transform:none}}@keyframes scene-hit{0%,100%{transform:none}30%{transform:translateX(6px);opacity:.55}}@keyframes scene-dice{from{transform:scale(.85);opacity:.4}to{transform:scale(1);opacity:1}}
.scene-compact{display:block;padding:3px 52px 3px 4px}.scene-compact>header{display:contents}.scene-compact>header>strong{display:none}.scene-compact>header button{position:absolute;right:3px;top:3px;height:calc(100% - 6px);min-height:36px;width:44px;min-width:44px;padding:2px}.scene-compact .scene-unit>.character-visual{display:none}.scene-compact .scene-duel{height:100%;align-items:center;gap:3px;grid-template-columns:42px minmax(0,1fr) 42px}.scene-compact .scene-unit strong{font-size:10px}.scene-compact .scene-unit small{font-size:9px}.scene-compact .scene-result p{font-size:10px;line-height:1.2;margin:1px 0}.scene-compact .scene-dice{gap:3px}.scene-compact .scene-dice>span{font-size:20px;padding:0 2px}.scene-compact .scene-dice b{font-size:10px}
.visual-preferences{font-size:12px;margin-top:auto;border-top:1px solid var(--visual-grid)}.visual-preferences summary{cursor:pointer;min-height:32px;display:flex;align-items:center}.visual-preferences label{display:flex;gap:6px;align-items:center;min-height:36px}.visual-preferences input{width:18px;height:18px}.visual-preferences button{width:100%}
@media(max-width:650px){.scene-duel{gap:6px;grid-template-columns:minmax(0,1fr) minmax(90px,1.3fr) minmax(0,1fr)}.scene-result p{font-size:12px}.scene-dice>span{font-size:32px}.scene-unit strong{font-size:11px}.battle-presentation{padding:5px}}
@media(prefers-reduced-motion:reduce){.battle-presentation *{animation:none}}
