/* 공방 모의전 카드와 공유 전 검토 화면입니다. */
.chat-message.has-battle{align-self:stretch;width:100%;gap:7px}.chat-message.has-battle>.chat-avatar{display:none}.chat-message.has-battle .chat-message-content{max-width:100%;min-width:0;flex:1}.chat-message.has-battle .chat-bubble{width:100%;padding:7px 8px;background:#142636;white-space:normal}.chat-battle-content{min-width:0;width:100%}.chat-battle-status{margin:8px;color:#a9c8d9;font-size:12px;line-height:1.5}.chat-battle-status[data-state=error]{color:#edc597}
.chat-battle-review,.chat-battle-replay{position:fixed;inset:auto;top:var(--chat-offset-top,0px);left:var(--chat-offset-left,0px);width:min(var(--chat-width,100vw),960px);max-width:100vw;height:var(--chat-height,100dvh);max-height:100dvh;margin:0;padding:0;border:0;background:#122332;color:#edf5fc;overflow:hidden}.chat-battle-review[open]{display:flex;flex-direction:column}.chat-battle-review::backdrop,.chat-battle-replay::backdrop,.chat-battle-confirm::backdrop{background:#03101ddd}.chat-battle-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none;padding:8px 10px;border-bottom:1px solid #36576a;background:#173044}.chat-battle-dialog-head h2{margin:0;font-size:17px;line-height:26px}.chat-battle-close,.chat-battle-actions button,.chat-battle-retry{padding:7px 11px;border:1px solid #5c8094;border-radius:7px;background:#233d50;color:#e4f0f9;font:600 13px/18px system-ui,sans-serif;white-space:nowrap}.chat-battle-review-body{min-height:0;min-width:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:8px}.chat-battle-actions{display:flex;justify-content:flex-end;gap:8px;flex:none;padding:9px 10px max(9px,env(safe-area-inset-bottom));border-top:1px solid #36576a}.chat-battle-actions .chat-battle-accept{background:#ffe077;border-color:#f0ca4e;color:#302509}.chat-battle-actions button:disabled{opacity:.55;cursor:default}
.chat-battle-progress{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;min-width:0;padding:7px 8px;margin-bottom:8px;border:1px solid #4b7187;border-radius:8px;background:#142b3c}.chat-battle-progress strong{font-size:13px;line-height:19px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-battle-progress small{font-size:10px;line-height:19px;font-variant-numeric:tabular-nums;color:#a5bfcd;white-space:nowrap}.chat-battle-progress p{grid-column:1/-1;min-width:0;height:17px;line-height:17px;margin:0;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#b5cbd7}.chat-battle-progress progress{grid-column:1/-1;width:100%;height:4px;accent-color:#63d5c5}.chat-battle-progress[data-state=running] strong{color:#ffe08b}.chat-battle-progress[data-state=ready]{border-color:#63cbb0}.chat-battle-progress[data-state=ready] strong{color:#8de5c0}.chat-battle-progress[data-state=error] strong{color:#edc597}
.chat-battle-confirm{width:calc(100vw - 24px);max-width:430px;max-height:calc(100dvh - 24px);padding:0;border:1px solid #658495;border-radius:11px;background:#152d3e;color:#edf5fc;overflow:auto}.chat-battle-confirm-body{padding:14px}.chat-battle-confirm h2{margin:0 0 10px;font-size:18px}.chat-battle-confirm p{font-size:13px;line-height:1.5}.chat-battle-confirm-rates{font-weight:750;color:#80e5d1}.chat-battle-confirm .chat-battle-actions{padding:10px 0 0}.chat-battle-hint{color:#a9c2d1;font-size:11px!important}.chat-battle-replay-body,.chat-battle-replay-surface{position:absolute;inset:0;min-width:0;min-height:0}.chat-battle-replay>.chat-battle-dialog-head{position:relative;z-index:1}.chat-battle-replay-body>.chat-battle-status{margin-top:60px}.chat-battle-replay[open]{display:block}
@media(max-width:360px){.chat-message.has-battle .chat-bubble{padding:6px}.chat-battle-review-body{padding:6px}.chat-battle-dialog-head{padding:6px 8px}.chat-battle-dialog-head h2{font-size:16px}}
