/* The battle's own timeline is a disclosure, independent of quarter reveals. */
.combat-log.combat-history{padding:0;border:1px solid #a779c17a;background:linear-gradient(135deg,#271637ed,#131021ed);border-radius:18px;overflow:hidden;box-shadow:0 12px 30px #08061126}
.combat-log.combat-history>summary{margin:0;padding:20px 24px;min-height:88px;list-style:none;gap:18px}
.combat-history>summary::-webkit-details-marker{display:none}
.combat-history>summary:focus-visible{outline:3px solid #74e5e8;outline-offset:-4px}
.combat-log.combat-history>summary>span{color:#e8d1f8}
.combat-history .combat-history-heading{display:grid;gap:5px;min-width:0}
.combat-history-heading strong{font-size:clamp(22px,2vw,28px);font-weight:900;line-height:1.25}
.combat-history-heading small{font-size:15px;font-weight:500;line-height:1.4;color:#cbb4dd}
.combat-history-count{display:flex;align-items:center;gap:18px;flex:none;font-size:16px!important;font-weight:750!important;font-variant-numeric:tabular-nums}
.combat-history-chevron{display:grid;place-items:center;width:36px;height:36px;border:1px solid #b991d662;border-radius:10px;background:#b68ddd14;color:#ddc2fa;font-size:26px;line-height:1;transition:transform .16s ease}
.combat-history[open] .combat-history-chevron{transform:rotate(180deg)}
.combat-history-body{border-top:1px solid #a779c14d;padding:22px 24px 0}
.combat-history-current>h3{margin:0 0 14px;font-size:18px;color:#ebdaf6;font-weight:850}
.combat-history-lineups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.combat-history-lineup{border:1px solid #a779c13f;border-radius:12px;padding:18px;background:#130d20a6;min-width:0}
.combat-history-lineup>h4{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 12px;color:#f5edff;font-size:20px;font-weight:850;overflow-wrap:anywhere}
.combat-history-lineup>h4>span{font:700 11px/1.3 var(--font-body,system-ui,sans-serif);letter-spacing:.07em;text-transform:uppercase;color:#82e8e2;border:1px solid #82e8e24d;border-radius:5px;padding:4px 6px}
.combat-history-lineup>ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));list-style:disc;padding:0 0 0 20px;margin:0 0 14px;gap:8px 24px}
.combat-history-lineup>ul>li{display:list-item;border:0;padding:0;font-size:16px;line-height:1.5;color:#dfd0ea;overflow-wrap:anywhere}
.combat-history-lineup>p{font-size:16px;line-height:1.55;color:#cbb4dd;margin:0}
.combat-history-lineup .combat-history-spell{border-top:1px solid #a779c13d;padding-top:12px;margin-top:12px;color:#e9d5ff}
.combat-history-spell>b{color:#f1d985;margin-right:8px}
.combat-history-order{margin:22px 0 12px;font-size:13px;line-height:1.5;color:#bca5ce}
.combat-log.combat-history .combat-history-events{max-height:560px;max-height:min(65vh,560px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#8767a5 #160e22;padding:0 12px 16px 0;margin:0;list-style:none}
.combat-log.combat-history .combat-history-event{display:grid;grid-template-columns:90px minmax(0,1fr);gap:18px;padding:18px 0;border-top:1px solid #a779c13d}
.combat-history-time{font-size:13px;line-height:1.5;color:#baa0cf}
.combat-history-time>b{display:block;font-size:16px;font-weight:800;color:#e2c5f6;margin-top:4px;font-variant-numeric:tabular-nums}
.combat-history-event-heading{display:flex;align-items:center;flex-wrap:wrap;gap:7px 12px;margin-bottom:7px}
.combat-history-event-heading>span{font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#bda4cf}
.combat-history-event-heading>strong{font-size:16px;font-weight:850;color:#f0d78c;overflow-wrap:anywhere}
.combat-log.combat-history .combat-history-content>p{margin:0;font-size:18px;line-height:1.65;color:#e7d9f0;overflow-wrap:anywhere}
.combat-history-turn .combat-history-event-heading>span,.combat-history-formation .combat-history-event-heading>span{color:#87e8e1}
.combat-history .combat-log-empty{margin-top:20px}
@media(max-width:650px){
 .combat-log.combat-history>summary{padding:18px 16px;gap:12px}
 .combat-history-heading small{font-size:13px}
 .combat-history-count{font-size:13px!important;gap:8px}
 .combat-history-chevron{width:28px;height:28px}
 .combat-history-body{padding:18px 16px 0}
 .combat-history-lineups{grid-template-columns:1fr}
 .combat-history-lineup>ul{gap:8px 20px}
 .combat-log.combat-history .combat-history-event{grid-template-columns:62px minmax(0,1fr);gap:12px}
 .combat-history-time{font-size:11px}
 .combat-history-time>b{font-size:14px}
 .combat-log.combat-history .combat-history-content>p{font-size:16px}
}
@media(prefers-reduced-motion:reduce){.combat-history-chevron{transition:none}}
