/* Short, local, event-driven feedback. No layout, timer or input changes. */
body.cp-polish .v1958Impact,
body.cp-polish .vCombatImpact,
body.cp-polish .vCombatCritTitle,
body.cp-polish #levelUpBanner,
body.cp-polish #levelUpRays,
body.cp-polish #bossBanner.cp-banner-replaced { display: none !important; }
body.cp-polish #game .field.vCombatShake,
body.cp-polish #flashFx { animation: none !important; }
.cp-arena { position: absolute; inset: 0 0 auto; overflow: hidden; pointer-events: none; contain: layout paint; z-index: 3; }
.cp-arena *, .cp-arena *::before, .cp-arena *::after { box-sizing: border-box; pointer-events: none; }
.cp-impact, .cp-counter, .cp-boss-aura, .cp-growth-aura, .cp-defeat {
  --cp-color: #ffc56c; --cp-light: #fff6d7;
  position: absolute; width: var(--cp-size, 170px); height: var(--cp-size, 170px);
  transform: translate(-50%, -50%); isolation: isolate;
}
.cp-ranger { --cp-color: #73efcf; --cp-light: #e5fff8; }
.cp-mage { --cp-color: #b79aff; --cp-light: #f3e9ff; }
.cp-core { position: absolute; inset: 28%; border-radius: 50%; background: radial-gradient(circle, var(--cp-light) 0 10%, var(--cp-color) 18%, transparent 67%); animation: cpCore .43s ease-out both; }
.cp-ring { position: absolute; inset: 21%; border: 2px solid var(--cp-light); border-radius: 50%; box-shadow: 0 0 14px var(--cp-color), inset 0 0 9px var(--cp-color); animation: cpRing .6s ease-out both; }
.cp-strike { position: absolute; left: -2%; top: 49%; width: 104%; height: 7px; border-radius: 100%; background: linear-gradient(90deg, transparent, var(--cp-color) 22%, #fff 52%, var(--cp-color) 70%, transparent); box-shadow: 0 0 13px var(--cp-color); transform: rotate(-36deg); animation: cpStrike .48s cubic-bezier(.2,.8,.25,1) both; }
.cp-strike-b { transform: rotate(34deg); animation-delay: 65ms; height: 5px; }
.cp-ranger .cp-strike { height: 3px; transform: rotate(-9deg); }
.cp-ranger .cp-strike-b { top: 40%; left: -8%; animation-delay: 35ms; }
.cp-ranger .cp-strike-c { top: 59%; left: 5%; animation-delay: 70ms; }
.cp-ranger .cp-ring { border-width: 1px; inset: 25%; }
.cp-mage .cp-strike { height: 3px; transform: rotate(45deg); }
.cp-mage .cp-strike-b { transform: rotate(-45deg); }
.cp-rune { position: absolute; inset: 17%; border: 1px solid var(--cp-color); transform: rotate(45deg); box-shadow: inset 0 0 14px var(--cp-color), 0 0 14px var(--cp-color); animation: cpRune .75s ease-out both; }
.cp-rune::before { content: ''; position: absolute; inset: 11%; border: 1px solid var(--cp-light); transform: rotate(45deg); }
.cp-spark { position: absolute; left: calc(50% - 2px); top: calc(50% - 2px); width: 4px; height: 4px; border-radius: 1px; background: var(--cp-light); box-shadow: 0 0 7px var(--cp-color); animation: cpSpark .61s var(--cp-delay, 0ms) ease-out both; }
.cp-critical .cp-core, .cp-finisher .cp-core { inset: 16%; }
.cp-critical .cp-ring, .cp-finisher .cp-ring { inset: 7%; border-width: 3px; animation-duration: .72s; }
.cp-critical .cp-strike, .cp-finisher .cp-strike { width: 128%; left: -14%; height: 9px; }
.cp-critical .cp-spark, .cp-finisher .cp-spark { width: 6px; height: 6px; }
.cp-hit-label { position: absolute; left: 50%; top: -4%; transform: translateX(-50%); color: var(--cp-light); font: 900 clamp(16px, 3.8vw, 27px)/1.1 Arial, sans-serif; letter-spacing: .1em; white-space: nowrap; text-shadow: 0 2px 2px #32200c, 0 0 16px var(--cp-color); animation: cpWord .76s ease-out both; }
.cp-finisher { --cp-color: #72dcff; --cp-light: #edfdff; }
.cp-counter { --cp-color: #77dbfa; --cp-light: #dcfaff; }
.cp-counter-mark { position: absolute; inset: 23% 28%; border: 3px solid var(--cp-light); background: linear-gradient(150deg, #8de9ff38, #16495d25); border-radius: 9px 9px 45% 45%; box-shadow: 0 0 22px #6fd9ff80, inset 0 0 16px #a9eaff55; animation: cpGuard .55s ease-out both; }
.cp-counter-label { position: absolute; left: 50%; top: 12%; transform: translateX(-50%); white-space: nowrap; color: var(--cp-light); font: 900 clamp(13px, 3vw, 20px)/1.2 Arial, sans-serif; letter-spacing: .14em; text-shadow: 0 2px 8px #071825; animation: cpWord .7s ease-out both; }
.cp-hurt { --cp-color: #ff8d77; --cp-light: #ffdfcc; }
.cp-hurt .cp-counter-mark { inset: 20%; border-radius: 50%; border-width: 2px; background: radial-gradient(circle, transparent 45%, #ff77533b 65%, transparent 75%); box-shadow: none; }
.cp-hurt .cp-counter-label { color: #ffd9cb; letter-spacing: .05em; }
.cp-evade .cp-counter-mark { inset: 24% 10%; border: 0; border-top: 2px solid var(--cp-light); border-bottom: 2px solid var(--cp-color); border-radius: 50%; background: none; box-shadow: none; transform: rotate(-18deg); }
.cp-evade .cp-ring { border-style: dashed; box-shadow: none; }
.cp-banner, .cp-growth { position: absolute; text-align: center; color: #fff4d5; transform: translate(-50%, -50%); border: 1px solid #edce7977; border-radius: 4px 15px; background: linear-gradient(120deg, #11212bef, #08141df5 65%, #24302aea); box-shadow: 0 12px 38px #0008, inset 0 1px #ffedb825; animation: cpReward 1.4s ease-out both; }
.cp-banner { --cp-banner-color: #ffb790; width: min(78vw, 450px); padding: 15px 24px 17px; border-color: #ee8e6677; background: linear-gradient(120deg, #291a23ef, #170f20f5 65%, #372429ef); z-index: 6; }
.cp-banner::before, .cp-banner::after { content: ''; position: absolute; top: 50%; width: 7px; height: 7px; background: var(--cp-banner-color); transform: rotate(45deg); box-shadow: 0 0 13px var(--cp-banner-color); }
.cp-banner::before { left: -4px; }.cp-banner::after { right: -4px; }
.cp-banner-eyebrow, .cp-growth-eyebrow { display: block; font: 800 9px/1.4 Arial, sans-serif; letter-spacing: .22em; color: var(--cp-banner-color, #efd992); }
.cp-banner-title { display: block; font: 900 clamp(21px, 5vw, 34px)/1.2 Georgia, serif; margin: 5px 0 6px; color: #fff5de; letter-spacing: .04em; }
.cp-banner-detail { display: block; font-size: 11px; line-height: 1.5; color: #e2caca; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-banner-clear { --cp-banner-color: #ffe3a1; border-color: #ffdc9477; background: linear-gradient(120deg, #253028ef, #132021f5 65%, #303428ef); animation-duration: 1.2s; }
.cp-banner-clear .cp-banner-detail { color: #dcdec7; }
.cp-banner-phase { --cp-banner-color: #ff8868; }
.cp-boss-aura { --cp-color: #ff876b; --cp-light: #ffca8e; }
.cp-boss-aura .cp-ring { inset: -8%; animation-duration: 1.1s; border-width: 1px; }
.cp-boss-aura .cp-rune { inset: 8%; animation-duration: 1.2s; }
.cp-growth { width: 220px; padding: 13px 15px 14px; z-index: 5; animation-duration: 1.8s; }
.cp-growth-level { display: block; font: 900 31px/1.1 Georgia, serif; margin: 4px 0 8px; color: #fff0bb; }
.cp-growth-stat { display: block; font-size: 15px; font-weight: 900; color: #e0f5bb; line-height: 1.45; }
.cp-growth-detail { display: block; font-size: 10px; line-height: 1.45; margin-top: 3px; color: #c2d5c1; }
.cp-growth-aura { --cp-color: #e9d185; --cp-light: #fff4c8; }
.cp-growth-aura .cp-ring { inset: -10%; animation-duration: .85s; }
.cp-defeat { --cp-color: #d7b573; --cp-light: #fff0b6; }
.cp-defeat .cp-ring { border-width: 1px; animation-duration: .72s; }
.cp-defeat .cp-spark { width: 5px; height: 7px; }
.cp-defeat-boss .cp-ring { inset: 3%; border-width: 2px; }

@keyframes cpCore { 0% { opacity: 0; scale: .2; } 16% { opacity: .9; scale: 1; } 100% { opacity: 0; scale: 1.35; } }
@keyframes cpRing { 0% { opacity: .1; scale: .2; } 18% { opacity: .9; } 100% { opacity: 0; scale: 1.4; } }
@keyframes cpStrike { 0% { opacity: 0; scale: .2 1; } 20% { opacity: 1; scale: 1 1; } 100% { opacity: 0; scale: 1.18 .3; } }
@keyframes cpRune { 0% { opacity: 0; scale: .5; rotate: -25deg; } 18% { opacity: .7; } 100% { opacity: 0; scale: 1.12; rotate: 25deg; } }
@keyframes cpSpark { 0% { opacity: 0; translate: 0 0; scale: .4; } 15% { opacity: 1; } 100% { opacity: 0; translate: var(--cp-dx) var(--cp-dy); scale: .2; rotate: 100deg; } }
@keyframes cpWord { 0% { opacity: 0; translate: 0 8px; } 18%, 62% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 -8px; } }
@keyframes cpGuard { 0% { opacity: 0; scale: .65; } 22% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 1.16; } }
@keyframes cpReward { 0% { opacity: 0; translate: 0 8px; scale: .92; } 12%, 76% { opacity: 1; translate: 0 0; scale: 1; } 100% { opacity: 0; translate: 0 -5px; scale: 1; } }
@media (max-width: 540px) {
  .cp-banner { width: min(80vw, 340px); padding: 11px 18px 12px; }
  .cp-banner-detail { font-size: 10px; }
  .cp-growth { padding: 10px 9px 11px; }
  .cp-growth-level { font-size: 25px; margin-bottom: 5px; }
  .cp-growth-stat { font-size: 13px; }
  .cp-growth-detail { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .cp-arena *, .cp-arena *::before, .cp-arena *::after { animation: none !important; transition: none !important; }
  .cp-spark, .cp-core, .cp-strike, .cp-rune, .cp-growth-aura, .cp-boss-aura, .cp-defeat { display: none; }
  .cp-impact .cp-ring, .cp-counter .cp-ring { opacity: .5; box-shadow: none; }
  .cp-counter-mark { opacity: .6; box-shadow: none; }
  .cp-hit-label, .cp-counter-label { text-shadow: 0 2px 6px #000; }
  body.cp-polish #game .fighter,
  body.cp-polish #game .projectile,
  body.cp-polish #game .wSword,
  body.cp-polish #game .wSwordTrail { animation: none !important; }
}
