/* UI 017.3A.6 — terminal finishing hit -> premium verdict -> native result.
   Presentation only. The native finished/reward screen remains untouched underneath. */

body.arena-battle014-active #battle014-root.b173a6-terminal-active{
  isolation:isolate!important;
}

body.arena-battle014-active #battle014-root.b173a6-terminal-active>.b165-finale{
  display:none!important;
}

body.arena-battle014-active #battle014-root .b173a6-terminal-stage{
  position:absolute!important;
  z-index:2147483200!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  pointer-events:auto!important;
  touch-action:none!important;
  isolation:isolate!important;
  background:#08070c!important;
  opacity:1;
}

body.arena-battle014-active #battle014-root .b173a6-terminal-stage>.battle014{
  position:absolute!important;
  z-index:1!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  margin:0!important;
  pointer-events:none!important;
  overflow:hidden!important;
}

body.arena-battle014-active #battle014-root .b173a6-terminal-stage .b14-tactics{
  opacity:.58!important;
  filter:saturate(.72) brightness(.78)!important;
  transition:opacity .38s ease,filter .38s ease!important;
}
body.arena-battle014-active #battle014-root .b173a6-terminal-stage .b14-topline{
  opacity:.84!important;
  filter:saturate(.86) brightness(.92)!important;
  transition:opacity .38s ease,filter .38s ease!important;
}
body.arena-battle014-active #battle014-root .b173a6-terminal-stage .b14-scene{
  filter:saturate(1) brightness(1)!important;
  transition:filter .46s ease!important;
}

/* Keep the finishing exchange readable and above all terminal shading. */
body.arena-battle014-active #battle014-root .b173a6-terminal-stage .b173a6-layer{
  z-index:44!important;
}
body.arena-battle014-active #battle014-root .b173a6-terminal-stage .b161-result{
  z-index:48!important;
}

/* Once the finishing HP drain has settled, quiet the copied battle and reveal the verdict. */
body.arena-battle014-active #battle014-root .b173a6-terminal-stage.is-verdict .b14-tactics{
  opacity:.25!important;
  filter:saturate(.42) brightness(.46)!important;
}
body.arena-battle014-active #battle014-root .b173a6-terminal-stage.is-verdict .b14-topline{
  opacity:.50!important;
  filter:saturate(.50) brightness(.64)!important;
}
body.arena-battle014-active #battle014-root .b173a6-terminal-stage.is-verdict .b14-scene{
  filter:saturate(.72) brightness(.62)!important;
}

.b173a6-verdict{
  position:absolute;
  z-index:80;
  inset:0;
  overflow:hidden;
  pointer-events:none;
  opacity:1;
}

.b173a6-verdict-shade{
  position:absolute;
  inset:0;
  opacity:0;
  background:
    radial-gradient(circle at 50% 43%,rgba(242,186,65,.07) 0 12%,transparent 34%),
    radial-gradient(circle at 50% 44%,transparent 0 24%,rgba(5,4,8,.25) 51%,rgba(2,2,5,.78) 100%),
    linear-gradient(180deg,rgba(4,3,7,.08),rgba(3,2,6,.62));
}
.b173a6-verdict.is-loss .b173a6-verdict-shade{
  background:
    radial-gradient(circle at 50% 43%,rgba(137,31,46,.10) 0 15%,transparent 36%),
    radial-gradient(circle at 50% 44%,transparent 0 22%,rgba(15,4,8,.32) 52%,rgba(2,1,4,.82) 100%),
    linear-gradient(180deg,rgba(18,3,7,.08),rgba(4,2,5,.68));
}
.b173a6-verdict.is-live .b173a6-verdict-shade{
  animation:b173a6ShadeIn .64s ease-out both;
}

.b173a6-verdict-halo{
  position:absolute;
  left:50%;
  top:43%;
  width:190px;
  height:190px;
  translate:-50% -50%;
  border-radius:50%;
  opacity:0;
  border:1px solid rgba(255,218,124,.64);
  box-shadow:
    0 0 18px rgba(255,213,102,.26),
    0 0 46px rgba(235,169,57,.18),
    inset 0 0 30px rgba(255,232,156,.10);
}
.b173a6-verdict-halo::before,
.b173a6-verdict-halo::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:250px;
  height:1px;
  translate:-50% -50%;
  background:linear-gradient(90deg,transparent,rgba(255,232,155,.88),transparent);
  box-shadow:0 0 12px rgba(255,199,77,.55);
}
.b173a6-verdict-halo::before{rotate:24deg}
.b173a6-verdict-halo::after{rotate:-32deg}
.b173a6-verdict.is-loss .b173a6-verdict-halo{
  border-color:rgba(187,91,104,.48);
  box-shadow:0 0 18px rgba(173,58,73,.20),inset 0 0 28px rgba(154,48,63,.08);
}
.b173a6-verdict.is-loss .b173a6-verdict-halo::before,
.b173a6-verdict.is-loss .b173a6-verdict-halo::after{
  background:linear-gradient(90deg,transparent,rgba(183,91,104,.64),transparent);
  box-shadow:0 0 10px rgba(147,48,62,.36);
}
.b173a6-verdict.is-live .b173a6-verdict-halo{
  animation:b173a6Halo 1.22s .08s cubic-bezier(.12,.74,.18,1) both;
}

.b173a6-verdict-copy{
  position:absolute;
  z-index:4;
  left:50%;
  top:44%;
  width:min(90%,480px);
  translate:-50% -50%;
  text-align:center;
  opacity:0;
  filter:blur(6px);
}
.b173a6-verdict-copy::before,
.b173a6-verdict-copy::after{
  content:"";
  position:absolute;
  left:50%;
  width:min(74vw,330px);
  height:1px;
  translate:-50% 0;
  background:linear-gradient(90deg,transparent,rgba(246,207,111,.96),transparent);
  box-shadow:0 0 12px rgba(238,177,66,.54);
}
.b173a6-verdict-copy::before{top:-15px}
.b173a6-verdict-copy::after{bottom:-17px}
.b173a6-verdict-copy small{
  display:block;
  margin-bottom:8px;
  color:#d6c29a;
  font:900 9px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:.29em;
  text-transform:uppercase;
  text-shadow:0 2px 5px rgba(0,0,0,.94);
}
.b173a6-verdict-copy strong{
  display:block;
  color:#ffe7a4;
  font:900 clamp(36px,10vw,58px)/.92 Georgia,"Times New Roman",serif;
  letter-spacing:.075em;
  text-shadow:
    0 0 7px rgba(255,249,213,.96),
    0 0 22px rgba(244,191,73,.78),
    0 0 45px rgba(197,117,28,.34),
    0 5px 7px rgba(0,0,0,.98);
}
.b173a6-verdict.is-loss .b173a6-verdict-copy::before,
.b173a6-verdict.is-loss .b173a6-verdict-copy::after{
  background:linear-gradient(90deg,transparent,rgba(171,83,96,.76),transparent);
  box-shadow:0 0 9px rgba(134,42,55,.38);
}
.b173a6-verdict.is-loss .b173a6-verdict-copy small{color:#c1a6a9}
.b173a6-verdict.is-loss .b173a6-verdict-copy strong{
  color:#efd0d2;
  text-shadow:
    0 0 8px rgba(235,200,203,.48),
    0 0 24px rgba(160,57,71,.48),
    0 5px 7px rgba(0,0,0,.98);
}
.b173a6-verdict.is-boss .b173a6-verdict-copy strong{
  font-size:clamp(30px,8.5vw,51px);
}
.b173a6-verdict.is-live .b173a6-verdict-copy{
  animation:b173a6VerdictTitle 1.25s .18s cubic-bezier(.12,.75,.18,1) both;
}

.b173a6-verdict.is-leaving{
  animation:b173a6VerdictOut .30s ease-in both;
}
.b173a6-terminal-stage.is-revealing-result{
  animation:b173a6StageOut .22s ease-in both;
}

@keyframes b173a6ShadeIn{
  from{opacity:0}
  to{opacity:1}
}
@keyframes b173a6Halo{
  0%{opacity:0;scale:.30;rotate:-10deg}
  18%{opacity:.96;scale:.76;rotate:-4deg}
  48%{opacity:.76;scale:1.03;rotate:1deg}
  100%{opacity:0;scale:1.72;rotate:10deg}
}
@keyframes b173a6VerdictTitle{
  0%{opacity:0;scale:.70;filter:blur(7px) brightness(1.5)}
  16%{opacity:1;scale:1.09;filter:blur(0) brightness(1.22)}
  35%{opacity:1;scale:.99;filter:blur(0) brightness(1.05)}
  70%{opacity:1;scale:1;filter:blur(0) brightness(1)}
  100%{opacity:.98;scale:1.018;filter:blur(0) brightness(1.03)}
}
@keyframes b173a6VerdictOut{
  to{opacity:0;filter:brightness(.72)}
}
@keyframes b173a6StageOut{
  to{opacity:0;filter:brightness(.62)}
}

@media(max-width:430px){
  .b173a6-verdict-copy{top:43.5%}
  .b173a6-verdict-halo{width:160px;height:160px}
  .b173a6-verdict-copy strong{font-size:clamp(34px,11vw,51px)}
}

@media(prefers-reduced-motion:reduce){
  /* The user explicitly requested a visible terminal sequence. Keep it readable,
     but reduce expansion rather than removing it. */
  .b173a6-verdict.is-live .b173a6-verdict-halo{animation-duration:.82s!important}
  .b173a6-verdict.is-live .b173a6-verdict-copy{animation-duration:.86s!important}
}