/* V1.81 · Target-local heal confirmation with restrained surge hierarchy. */
.settlement-heal-confirm {
  --heal-size: 82px;
  position: fixed;
  z-index: 119;
  width: var(--heal-size);
  height: var(--heal-size);
  display: block;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  contain: layout style paint;
  animation: settlement-heal-confirm 720ms cubic-bezier(.14,.76,.18,1) both;
}

.settlement-heal-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 66%;
  height: 66%;
  display: block;
  border: 1px solid rgba(119, 255, 197, .72);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 232, 169, .17), rgba(41, 151, 116, .05) 48%, transparent 70%);
  box-shadow: inset 0 0 12px rgba(130, 255, 215, .14), 0 0 11px rgba(65, 224, 166, .22);
  transform: translate(-50%, -50%);
  animation: settlement-heal-ring 620ms cubic-bezier(.12,.72,.2,1) both;
}

.settlement-heal-ring.ring-b {
  width: 88%;
  height: 88%;
  border-color: rgba(207, 255, 232, .32);
  background: none;
  box-shadow: none;
  animation-delay: 46ms;
}

.settlement-heal-glyph {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 18%;
  height: 18%;
  display: block;
  border-radius: 3px;
  background: rgba(224, 255, 240, .94);
  box-shadow: 0 0 9px rgba(105, 255, 192, .76);
  transform: translate(-50%, -50%);
  animation: settlement-heal-glyph 560ms 24ms ease-out both;
}

.settlement-heal-glyph::before,
.settlement-heal-glyph::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 2px;
  background: inherit;
  transform: translate(-50%, -50%);
}

.settlement-heal-glyph::before {
  width: 218%;
  height: 42%;
}

.settlement-heal-glyph::after {
  width: 42%;
  height: 218%;
}

.settlement-heal-label {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -1px;
  min-width: 42px;
  display: inline-flex;
  justify-content: center;
  padding: 3px 8px 4px;
  border: 1px solid rgba(151, 255, 211, .56);
  border-radius: 999px;
  color: #eafff4;
  background: linear-gradient(180deg, rgba(24, 130, 92, .94), rgba(5, 48, 41, .97));
  box-shadow: inset 0 1px rgba(255,255,255,.14), 0 4px 10px rgba(0,0,0,.3);
  font-size: 8px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: .11em;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,.7);
  white-space: nowrap;
  transform: translateX(-50%);
  animation: settlement-heal-label 610ms 36ms ease-out both;
}

.settlement-heal-confirm.is-surge .settlement-heal-ring {
  border-width: 2px;
  border-color: rgba(171, 255, 218, .9);
  box-shadow: inset 0 0 18px rgba(139, 255, 211, .2), 0 0 16px rgba(75, 241, 176, .34);
}

.settlement-heal-confirm.is-surge .settlement-heal-label {
  border-color: rgba(213, 255, 231, .78);
  color: #f5fff8;
  background: linear-gradient(180deg, rgba(44, 164, 107, .97), rgba(5, 59, 43, .98));
}

.settlement-heal-target {
  outline: 1px solid rgba(108, 245, 181, .28);
  outline-offset: 2px;
}

.settlement-heal-target[data-settlement-heal-tier="surge"] {
  outline-width: 2px;
  outline-color: rgba(137, 255, 198, .38);
}

@keyframes settlement-heal-confirm {
  0% { opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.88); }
  18%, 66% { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); }
  100% { opacity: 0; transform: translate3d(-50%, -53%, 0) scale(1.04); }
}

@keyframes settlement-heal-ring {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.52); }
  34%, 70% { opacity: .96; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.18); }
}

@keyframes settlement-heal-glyph {
  0% { opacity: 0; transform: translate(-50%, -44%) scale(.64); filter: brightness(1.5); }
  32%, 72% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: brightness(1.08); }
  100% { opacity: 0; transform: translate(-50%, -62%) scale(.94); filter: brightness(1); }
}

@keyframes settlement-heal-label {
  0% { opacity: 0; transform: translateX(-50%) translateY(3px) scale(.9); }
  28%, 74% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-2px) scale(.98); }
}

body[data-vfx-quality="low"] .settlement-heal-ring.ring-b {
  display: none;
}

body[data-vfx-quality="low"] .settlement-heal-ring,
body[data-vfx-quality="low"] .settlement-heal-glyph {
  box-shadow: none;
}

@media (max-width: 720px) {
  .settlement-heal-confirm {
    width: min(var(--heal-size), 74px);
    height: min(var(--heal-size), 74px);
  }

  .settlement-heal-label {
    min-width: 37px;
    padding: 2px 6px 3px;
    font-size: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .settlement-heal-confirm,
  .settlement-heal-ring,
  .settlement-heal-glyph,
  .settlement-heal-label {
    animation-duration: 150ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    filter: none !important;
  }
}
