.sentence-cut-splash {
  position: relative;
  height: 118px;
  margin: 10px 0 12px;
  overflow: hidden;
  border: 1px solid #DFE4D7;
  border-radius: 15px;
  background:#F5F4EF;
  pointer-events: none;
  isolation: isolate;
}

.sentence-cut-full,
.sentence-cut-pieces {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 12px;
  right: 12px;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  color: #1C3F33;
  font-size: clamp(14px, 3.7vw, 19px);
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

.sentence-cut-full {
  animation: sentence-cut-full 2.76s ease both;
}

.sentence-cut-pieces {
  opacity: 0;
  animation: sentence-cut-pieces 2.76s ease both;
}

.sentence-cut-piece {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 3px 7px 12px;
  border-radius: 8px;
  white-space: nowrap;
  color: #1C3F33;
  background: rgba(223,228,215,.76);
  transform: translateX(0) rotate(0);
  animation: sentence-cut-piece 2.76s cubic-bezier(.2,.75,.2,1) both;
}

.sentence-cut-piece[data-direction="left"] { --cut-escape-x: -24px; --cut-escape-r: -8deg; }
.sentence-cut-piece[data-direction="right"] { --cut-escape-x: 24px; --cut-escape-r: 8deg; }

.sentence-cut-piece.is-focus {
  z-index: 1;
  color: #16332A;
  background: #C9D0C1;
  box-shadow: 0 0 0 2px rgba(36,79,64,.48), 0 0 20px rgba(36,79,64,.6);
  animation-name: sentence-cut-focus;
}

.sentence-cut-fear {
  position: absolute;
  width: 22px;
  height: 13px;
  bottom: -1px;
  fill: #FFFEFA;
  stroke: #3E4F48;
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0;
  animation: sentence-cut-fear 2.76s ease both;
}

.sentence-cut-flash {
  position: absolute;
  z-index: 4;
  inset: 3px 0 0;
  width: 100%;
  height: 92px;
  overflow: visible;
  pointer-events: none;
}

.sentence-cut-flash path {
  fill: none;
  stroke: #244F40;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px #FFFEFA) drop-shadow(0 0 9px #244F40);
  stroke-dasharray: 470;
  stroke-dashoffset: 470;
  animation: sentence-cut-slash .84s cubic-bezier(.3,.1,.3,1) .68s both;
}

.sentence-cut-brain {
  position: absolute;
  z-index: 5;
  left: 0;
  bottom: -13px;
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 3px 2px rgba(30,46,40,.16));
  transform: translate(-115%, 15px) scale(.72);
  transform-origin: 48% 75%;
  animation: sentence-cut-brain 2.76s cubic-bezier(.2,.7,.2,1) both;
}

.sentence-cut-splash.is-reduced-motion .sentence-cut-full { animation-duration: .65s; }
.sentence-cut-splash.is-reduced-motion .sentence-cut-pieces { animation-duration: .65s; }
.sentence-cut-splash.is-reduced-motion .sentence-cut-piece,
.sentence-cut-splash.is-reduced-motion .sentence-cut-fear,
.sentence-cut-splash.is-reduced-motion .sentence-cut-brain { animation-duration: .65s; }
.sentence-cut-splash.is-reduced-motion .sentence-cut-flash path { animation-duration: .2s; }

@keyframes sentence-cut-full {
  0%, 24% { opacity: 1; transform: scale(1); }
  39%, 100% { opacity: 0; transform: scale(.97); }
}

@keyframes sentence-cut-pieces {
  0%, 25% { opacity: 0; }
  37%, 84% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes sentence-cut-piece {
  0%, 31% { opacity: 0; transform: translateX(0) rotate(0) scale(.96); }
  42% { opacity: 1; transform: translateX(0) rotate(0) scale(1.03); }
  54%, 78% { opacity: 1; transform: translateX(var(--cut-escape-x)) rotate(var(--cut-escape-r)) scale(.98); }
  100% { opacity: 0; transform: translateX(var(--cut-escape-x)) rotate(var(--cut-escape-r)) scale(.94); }
}

@keyframes sentence-cut-focus {
  0%, 31% { opacity: 0; transform: scale(.96); }
  42% { opacity: 1; transform: scale(1.08); }
  53%, 82% { opacity: 1; transform: scale(1.03); }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes sentence-cut-fear {
  0%, 39% { opacity: 0; transform: translateY(3px) scale(.8); }
  48%, 74% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-4px) scale(.85); }
}

@keyframes sentence-cut-slash {
  0% { opacity: 0; stroke-dashoffset: 470; transform: scale(.88); }
  28% { opacity: 1; }
  100% { opacity: 0; stroke-dashoffset: 0; transform: scale(1.04); }
}

@keyframes sentence-cut-brain {
  0%, 12% { opacity: 0; transform: translate(-115%, 15px) scale(.72); }
  32% { opacity: 1; transform: translate(8px, -2px) scale(.9); }
  48% { opacity: 1; transform: translate(75px, -5px) scale(.94) rotate(-4deg); }
  65% { opacity: 1; transform: translate(var(--cut-mid-x), 0) scale(.88) rotate(7deg); }
  100% { opacity: 0; transform: translate(var(--cut-travel-x), 12px) scale(.76) rotate(12deg); }
}

@media (prefers-reduced-motion: reduce) {
  .sentence-cut-splash:not(.is-reduced-motion) .sentence-cut-full,
  .sentence-cut-splash:not(.is-reduced-motion) .sentence-cut-pieces,
  .sentence-cut-splash:not(.is-reduced-motion) .sentence-cut-piece,
  .sentence-cut-splash:not(.is-reduced-motion) .sentence-cut-fear,
  .sentence-cut-splash:not(.is-reduced-motion) .sentence-cut-flash path,
  .sentence-cut-splash:not(.is-reduced-motion) .sentence-cut-brain {
    animation-duration: .65s;
  }
}
