.duck-film {
  --film-offset:0ms;
  --duck-end:90px;
  position: relative;
  height: 270px;
  overflow: hidden;
  border: 2px solid #92ad78;
  border-radius: 17px;
  background:
    linear-gradient(
      #fff7d9,
      #f9f7e7 68%,
      #d3e3b7 68%);
  isolation: isolate;
}
.duck-world {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
}
.duck-floor {
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 13%;
  height: 10%;
  border-radius: 50%;
  background: #adba7b33;
}
.duck-rays {
  position: absolute;
  top: -30%;
  right: -30%;
  bottom: -30%;
  left: -30%;
  background:
    repeating-conic-gradient(
      from 20deg,
      #f3d36d40 0 12deg,
      transparent 12deg 24deg);
  animation-name: duck-rays;
}
.duck-flash {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    radial-gradient(
      ellipse at 60% 15%,
      #fffef1,
      transparent 60%);
  animation-name: duck-flash;
  z-index: 5;
  pointer-events: none;
}
.duck-actor {
  position: absolute;
  left: 0;
  bottom: 14%;
  height: 91%;
  aspect-ratio: 4/5;
  z-index: 3;
  transform-origin: 50% 98%;
  animation-name: duck-acting;
}
.duck-film[data-beat="1"] .duck-actor {
  height: 84%;
}
.duck-film[data-beat="0"] .pose-boast,
.duck-film[data-beat="1"] .pose-shout,
.duck-film[data-beat="2"] .pose-panic,
.duck-film[data-beat="3"] .pose-flop {
  display: block;
}
.duck-banner {
  position: absolute;
  right: 6%;
  top: 6%;
  font-size: 24px;
  line-height: 27px;
  font-weight: 900;
  color: #96742d;
  text-align: center;
  transform: rotate(5deg);
  animation-name: duck-banner;
}
.duck-banner span {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
}
.duck-credits {
  position: absolute;
  right: 7%;
  top: 33%;
  width: 112px;
  height: 127px;
  z-index: 2;
}
.duck-credit {
  position: absolute;
  top: calc(var(--i)*37px);
  width: 108px;
  height: 32px;
  padding: 4px 5px;
  border: 2px solid #b6a274;
  border-radius: 4px;
  background: #fffbed;
  color: #887340;
  box-shadow: 0 2px 0 #cabd93;
  text-align: center;
  animation-name: duck-credit;
}
.duck-credit b {
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}
.duck-credit i {
  display: block;
  width: 80%;
  height: 2px;
  margin: 2px auto;
  background: #d5cba8;
}
.duck-credit .duck-team {
  display: none;
  color: #487d65;
}
.duck-film[data-credits=true] .duck-own {
  display: none;
}
.duck-film[data-credits=true] .duck-team {
  display: block;
}
.duck-film[data-credits=true] .duck-credit {
  border-color: #8faf91;
}
.duck-film[data-credits=true] .duck-credits {
  top: 4%;
  z-index: 7;
}
.duck-star {
  position: absolute;
  right: 4%;
  top: 14%;
  width: 113px;
  height: 113px;
  object-fit: contain;
  mix-blend-mode: multiply;
  z-index: 6;
  transform-origin: 50% 80%;
  animation-name: duck-flight;
}
.duck-ripple {
  position: absolute;
  right: 2%;
  bottom: 15%;
  width: 115px;
  height: 26px;
  border: 3px solid #75aba3;
  border-radius: 50%;
  z-index: 4;
  animation-name: duck-ripple;
}
.duck-sticker {
  position: absolute;
  right: 5%;
  bottom: 15%;
  padding: 4px 7px;
  border: 2px solid #aa8f48;
  border-radius: 7px;
  background: #fff2ad;
  color: #88682b;
  font-size: 13px;
  font-weight: 850;
  transform: rotate(-5deg);
  z-index: 7;
  animation-name: duck-sticker;
}
.duck-prize {
  position: absolute;
  left: 45%;
  bottom: 13%;
  display: grid;
  justify-items: center;
  width: 56px;
  height: 64px;
  padding: 4px;
  border: 2px solid #91a65c;
  border-radius: 12px;
  background: #f7ffdf;
  z-index: 9;
  animation-name: duck-prize;
}
.duck-prize img {
  width: 39px;
  height: 39px;
  object-fit: contain;
}
.duck-prize b {
  font-size: 10px;
  color: #52702f;
}
.duck-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  min-height: 25px;
  padding: 3px 4px;
  box-sizing: border-box;
  background: #fff9e8;
  font-size: 13px;
  line-height: 19px;
  font-weight: 800;
  text-align: center;
  color: #4e6037;
  z-index: 10;
}
.duck-actor,
.duck-rays,
.duck-flash,
.duck-credit,
.duck-star,
.duck-banner,
.duck-ripple,
.duck-sticker,
.duck-prize {
  animation-duration: 8000ms;
  animation-timing-function: linear;
  animation-delay: var(--film-offset);
  animation-fill-mode: both;
  animation-play-state: paused;
}
@keyframes duck-rays {
  0% {
    transform: rotate(0);
    opacity: .6;
  }
  50% {
    transform: rotate(45deg);
    opacity: .6;
  }
  60%, 100% {
    transform: rotate(55deg);
    opacity: 0;
  }
}
@keyframes duck-banner {
  0%, 48% {
    opacity: 1;
    transform: rotate(5deg);
  }
  55%, 100% {
    opacity: 0;
    transform: translateY(-15px) rotate(15deg);
  }
}
@keyframes duck-flash {
  0%, 24.9% {
    opacity: 0;
  }
  28% {
    opacity: .75;
  }
  32% {
    opacity: 0;
  }
  38% {
    opacity: .65;
  }
  43%, 100% {
    opacity: 0;
  }
}
@keyframes duck-acting {
  0% {
    transform: none;
  }
  10% {
    transform: rotate(2deg) translateY(-2px);
  }
  21%, 24.9% {
    transform: none;
  }
  25% {
    transform: translateY(-7px) rotate(-2deg);
  }
  31% {
    transform: translateY(2px) rotate(2deg);
  }
  38% {
    transform: translateY(-5px);
  }
  46%, 51% {
    transform: none;
  }
  52.5% {
    transform: translateX(-5px) rotate(-4deg);
  }
  61% {
    transform: translateX(4px) rotate(2deg);
  }
  69% {
    transform: translateX(-5px) rotate(-3deg);
  }
  74.9% {
    transform: none;
  }
  75% {
    transform: translateY(12px) scale(.94);
  }
  85%, 100% {
    transform: translateY(6px) scale(.96);
  }
}
@keyframes duck-credit {
  0%, 24.9% {
    opacity: .7;
    transform: rotate(var(--tilt));
  }
  28%, 49% {
    opacity: 1;
    transform: rotate(var(--tilt)) translateY(-2px);
  }
  52.5% {
    opacity: 1;
    transform: translate(18px, 0) rotate(calc(var(--tilt)*-1));
  }
  65% {
    opacity: 1;
    transform: translate(0, 0) rotate(var(--tilt));
  }
  76%, 100% {
    opacity: 1;
    transform: translate(-5px, 0) rotate(var(--tilt));
  }
}
@keyframes duck-flight {
  0%, 52.4% {
    opacity: 0;
    transform: translate(-150px, 30px) rotate(-25deg) scale(.3);
  }
  52.5% {
    opacity: 1;
    transform: translate(-150px, 30px) rotate(-25deg) scale(.3);
  }
  63% {
    opacity: 1;
    transform: translate(0, calc(var(--duck-end) - 25px)) rotate(12deg) scale(1);
  }
  72% {
    opacity: 1;
    transform: translate(5px, calc(var(--duck-end) + 18px)) rotate(-8deg);
  }
  78% {
    opacity: 1;
    transform: translate(-4px, calc(var(--duck-end) - 16px)) rotate(8deg) scale(1.05);
  }
  86% {
    opacity: 1;
    transform: translate(0, calc(var(--duck-end) + 3px)) rotate(-4deg);
  }
  100% {
    opacity: 1;
    transform: translate(0, var(--duck-end));
  }
}
@keyframes duck-ripple {
  0%, 68% {
    opacity: 0;
    transform: scale(.4);
  }
  72% {
    opacity: .75;
    transform: scale(.6);
  }
  82%, 100% {
    opacity: 0;
    transform: scale(1.1);
  }
}
@keyframes duck-sticker {
  0%, 74.9% {
    opacity: 0;
    transform: translateY(20px) rotate(-5deg);
  }
  83%, 100% {
    opacity: 1;
    transform: rotate(-5deg);
  }
}
@keyframes duck-prize {
  0%, 87.4% {
    opacity: 0;
    transform: translateY(-50px) scale(.2);
  }
  87.5% {
    opacity: 1;
    transform: translateY(-35px) scale(.4);
  }
  95% {
    opacity: 1;
    transform: translateY(3px) scale(1.12);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
.duck-film[data-reduced=true] * {
  animation: none !important;
}
.duck-film[data-reduced=true] .duck-flash,
.duck-film[data-reduced=true] .duck-star,
.duck-film[data-reduced=true] .duck-sticker,
.duck-film[data-reduced=true] .duck-prize,
.duck-film[data-reduced=true] .duck-ripple {
  display: none;
}
.duck-film[data-reduced=true] .duck-credit {
  transform: rotate(var(--tilt));
}
.duck-film[data-reduced=true][data-released=true] .duck-star {
  display: block;
  transform: translateY(var(--duck-end));
}
.duck-film[data-reduced=true][data-beat="3"] .duck-sticker,
.duck-film[data-reduced=true][data-prize=true] .duck-prize {
  display: grid;
}
.modal:has(.duck-film) {
  padding: 12px 13px;
}
.modal:has(.duck-film) h2 {
  font-size: 22px;
  margin: 2px 0 8px;
}
.modal:has(.duck-film) .film-reward-note {
  margin: 7px 0 0;
  font-size: 11px;
  line-height: 16px;
}
.modal:has(.duck-film) .short-progress {
  margin-top: 8px;
  height: 5px;
}
.modal:has(.duck-film) .modal-actions .btn {
  min-height: 40px;
  margin-top: 6px;
  padding: 8px;
}
.modal:has(.duck-film) .modal-actions .btn:last-child {
  min-height: 30px;
  padding: 3px 8px;
  border: 0;
  background: none;
  box-shadow: none;
  font-size: 11px;
  color: #81916b;
}
.cartoon-tool-fx[data-character=chapter-4][data-phase=action] .ct-speech {
  left: 52%;
  right: 0;
}
.cartoon-tool-fx[data-character=chapter-4] .ct-actor {
  left: 6px;
  height: calc(100% - 26px);
}
.cartoon-tool-fx[data-character=chapter-4][data-phase=action] .ct-actor {
  animation: duck-tool-lift 1.05s ease-in-out both;
}
.cartoon-tool-fx[data-character=chapter-4]:is([data-phase=result], [data-phase=exit]) .ct-actor {
  animation: duck-tool-slip .6s ease-out both;
}
.ct-duck-credit {
  position: absolute;
  right: 8%;
  top: 20%;
  padding: 5px 9px;
  border: 2px solid #b49b5d;
  border-radius: 7px;
  background: #fff0b2;
  color: #8b6d32;
  font-size: 14px;
  font-weight: 900;
  transform: rotate(7deg);
}
.cartoon-tool-fx[data-character=chapter-4][data-phase=action] .ct-duck-credit {
  animation: duck-tool-credit .85s ease both;
}
.cartoon-tool-fx[data-character=chapter-4]:is([data-phase=result], [data-phase=exit]) .ct-duck-credit {
  opacity: 0;
}
@keyframes duck-tool-lift {
  0% {
    transform: translateY(3px);
  }
  30% {
    transform: translateY(-8px) rotate(-1deg);
  }
  57% {
    transform: translateY(1px) rotate(2deg);
  }
  80% {
    transform: translateY(-3px);
  }
  100% {
    transform: none;
  }
}
@keyframes duck-tool-slip {
  0% {
    transform: none;
  }
  45% {
    transform: translateY(6px) rotate(-2deg);
  }
  100% {
    transform: translateY(3px);
  }
}
@keyframes duck-tool-credit {
  0% {
    opacity: 1;
    transform: rotate(7deg);
  }
  50% {
    transform: rotate(-10deg) scale(1.15);
  }
  100% {
    opacity: 0;
    transform: translateY(35px) rotate(30deg) scale(.5);
  }
}
@media (max-height: 700px) {
  .duck-film {
    height: 190px;
    --duck-end:70px;
  }
  .duck-credit {
    top: calc(var(--i)*31px);
    height: 27px;
    padding: 3px 5px;
  }
  .duck-banner {
    font-size: 20px;
    line-height: 23px;
  }
  .duck-banner span {
    font-size: 9px;
  }
  .duck-credits {
    top: 29%;
    transform: scale(.75);
    transform-origin: 100% 0;
  }
  .duck-star {
    width: 85px;
    height: 85px;
    top: 4%;
  }
  .duck-sticker {
    font-size: 11px;
    padding: 3px 6px;
  }
  .duck-ripple {
    width: 90px;
    height: 18px;
  }
  .duck-prize {
    left: 44%;
    width: 46px;
    height: 51px;
  }
  .duck-prize img {
    width: 28px;
    height: 28px;
  }
  .duck-prize b {
    font-size: 9px;
  }
  .duck-caption {
    font-size: 12px;
    line-height: 19px;
  }
}
@media (max-width: 360px) {
  .duck-actor {
    left: -1%;
  }
  .duck-banner {
    right: 3%;
  }
  .duck-credits {
    right: 3%;
  }
  .duck-star {
    right: 2%;
  }
  .modal:has(.duck-film) {
    padding: 10px;
  }
  .modal:has(.duck-film) h2 {
    font-size: 20px;
    margin-bottom: 6px;
  }
}
