#battleDicePanel details{margin:0 0 12px}.battleDiceTiming{display:flex;gap:10px;flex-wrap:wrap}.battleDiceTiming label{flex:1;min-width:140px}#battleDicePanel article{border:1px solid #829baa;border-radius:8px;padding:12px;margin:10px 0;overflow-wrap:anywhere}#battleDicePanel article button{margin:4px 7px 0 0}
#battleDiceOverlay.damageBattleDice>div{pointer-events:auto}.damageDiceFaces{flex-wrap:wrap;gap:10px}.battleDiceFaces .damageDie{clip-path:none;border:2px solid #527258;border-radius:9px;width:70px;height:74px;box-sizing:border-box;padding:6px 3px;font-size:25px}.damageDie small{font-size:9px;line-height:1.2;overflow-wrap:anywhere}.damageDieFixed{animation:none!important}.battleDiceFaces.damageDiceFaces>p{font-size:12px}
#battleDiceOverlay{position:fixed;inset:auto 12px 22px;z-index:1410;display:flex;justify-content:center;pointer-events:none}#battleDiceOverlay[hidden]{display:none}#battleDiceOverlay>div{width:min(560px,calc(100vw - 32px));max-height:50dvh;overflow:auto;box-sizing:border-box;border:1px solid #c4d6bd;border-radius:12px;background:#14241df5;box-shadow:0 8px 30px #0009;padding:16px;text-align:center}#hideBattleDice{float:right;font-size:10px;padding:4px 7px;pointer-events:auto}#battleDiceActor{display:block;text-align:left;padding-top:4px}
.battleDiceFaces{display:flex;justify-content:center;gap:24px;margin:14px}.battleDiceFaces span{display:grid;place-items:center;width:70px;height:70px;background:#eee8d2;color:#1a3024;border:4px double #527258;clip-path:polygon(50% 0,78% 10%,95% 35%,95% 65%,78% 90%,50% 100%,22% 90%,5% 65%,5% 35%,22% 10%);font-size:28px;font-weight:bold}.rollingBattleDice .battleDiceFaces span{animation:battleDieTumble .3s linear infinite}.rollingBattleDice .battleDiceFaces span+span{animation-direction:reverse}#battleDiceResult{white-space:pre-line;font-size:14px;line-height:1.6;margin-bottom:0}
@keyframes battleDieTumble{0%,100%{transform:rotate(-10deg) translateY(-3px)}50%{transform:rotate(10deg) translateY(3px)}}@media(prefers-reduced-motion:reduce){.rollingBattleDice .battleDiceFaces span{animation:none}}@media(max-width:600px){#battleDiceOverlay{bottom:10px}.battleDiceFaces{gap:16px;margin:10px}.battleDiceFaces span{width:54px;height:54px;font-size:23px}#battleDiceResult{font-size:12px}}
#combatPanel #combatFlow{display:contents}
.combatFlowHeader{position:sticky;top:-12px;z-index:3;background:#24272e;border-bottom:1px solid #627385;padding:8px 0;margin-bottom:10px}
.combatFlowHeader h2{margin:0 0 4px}
#combatNext{margin:0 0 6px;color:#d4eaf3;font-size:13px;overflow-wrap:anywhere}
.combatJumps{display:flex;flex-wrap:wrap;gap:5px}.combatJumps button{font-size:12px}
#combatActive [data-combat-action],#combatDiceSlot [data-battle-dice],#combatActions [data-combat-action],#combatPanel #attackActor{scroll-margin-top:125px}
.combatStep{border-left:3px solid #8bc8e4;background:#1c2b38;padding:7px 9px;color:#edf6fa;overflow-wrap:anywhere}
.combatStep strong{display:block;font-size:11px;color:#b4d9eb;margin-bottom:3px}
#combatRecent{margin-top:18px}
@media(max-width:600px){.combatFlowHeader{top:-10px}}
