.battle-view .battle-number.player-damage {
  left: 70%; top: 29%; z-index: 17;
  padding: 3px 9px; border: 1px solid #eec58a; border-radius: 10px;
  background: #261733ec; color: #fff0bf;
  font: 850 clamp(25px,7vw,36px)/1.2 system-ui,sans-serif;
  white-space: nowrap; text-shadow: 0 2px 5px #1b0e28;
  animation: player-damage-in .15s ease-out both;
}
.battle-view .battle-number.player-damage.support { left: 79%; top: 43%; }
.battle-view .battle-number.player-damage.charged { border-color: #ffdf8d; color: #ffe5a0; }
@keyframes player-damage-in {
  from { transform: translate(-50%,3px) scale(.95); }
  to { transform: translate(-50%,-3px); }
}
html.reduce-motion .battle-view .battle-number.player-damage { animation: none; }
@media(prefers-reduced-motion:reduce) {
  .battle-view .battle-number.player-damage { animation: none; }
}
.battle-cutin-copy small { font-size: 13px; }

#modal:has(.new-companion-result) > .modal-box {
  width: min(100%,455px); max-height: calc(100dvh - 32px - var(--safe-top,0px) - var(--safe));
  padding: 14px 12px 12px; background: linear-gradient(160deg,#39234e,#1d132e 72%);
  overflow: auto;
}
#modal .new-companion-result { gap: 8px; text-align: center; }
#modal .new-companion-result h2 { margin: 0; font-size: clamp(20px,5vw,26px); color: #ffe3a4; }
#modal .new-companion-result h3 { margin: 0; font-size: clamp(19px,5vw,24px); color: #fff1cc; }
.new-companion-portrait {
  position: relative; isolation: isolate;
  width: 100%; height: min(43dvh,410px); display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 55%,#a355c859,transparent 64%);
}
.new-companion-portrait .creature-art {
  width: 100%; height: 100%; max-width: none; margin: 0;
}
#modal .new-companion-lore { margin: 0 auto; max-width: 38ch; color: #efe0f3; font-size: 14px; line-height: 1.4; }
.capture-reward-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin: 0; padding: 0; list-style: none; }
.capture-reward-chips li {
  padding: 5px 8px; border: 1px solid #ba92b58a; border-radius: 99px;
  color: #f8ddb5; background: #362346; font-size: 13px;
}
.capture-reward-details { padding: 0 10px; border-top: 1px solid #a780ab6e; color: #f6e8f5; }
.capture-reward-details summary { cursor: pointer; padding: 12px 6px; min-height: 44px; font-size: 13px; }
#modal .capture-reward-details p { margin: 2px 0 8px; font-size: 13px; }
#modal .new-companion-result .modal-actions { position: static; margin: 0; }

#modal:has(.new-companion-result) > .modal-box {
  height: min(90dvh, 810px);
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
}
#modal .new-companion-result {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
}
.capture-receipt { min-height: 0; overflow-y: auto; padding: 12px; overscroll-behavior: contain; }
.capture-receipt > * + * { margin-block-start: 7px; }
.capture-receipt:has(.core-loot-reveal) .new-companion-portrait { height: clamp(130px, 24dvh, 230px); }
#modal .new-companion-result .capture-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 8px 12px calc(8px + var(--safe));
  background: #2b1a3c;
  border-top: 1px solid #92739e;
}
#modal .capture-actions button { min-height: 48px; white-space: normal; }
#modal .capture-reward-details summary { line-height: 1.2; white-space: normal; }
