.score-film {
  --film-offset:0ms;
  position: relative;
  height: 270px;
  overflow: hidden;
  border: 2px solid #92ad78;
  border-radius: 17px;
  background:
    linear-gradient(
      #f8f0d1,
      #fff9e5 68%,
      #d3dfae 68%);
  isolation: isolate;
}
.score-world {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
}
.score-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12%;
  height: 10%;
  border-radius: 50%;
  background: #a5b47b40;
}
.score-rings {
  position: absolute;
  top: -35%;
  right: -35%;
  bottom: -35%;
  left: -35%;
  background:
    repeating-conic-gradient(
      from 0deg,
      #f5d87d40 0 12deg,
      transparent 12deg 24deg);
  animation-name: score-rays;
  opacity: .55;
}
.score-actor {
  position: absolute;
  left: 0;
  bottom: 14%;
  height: 91%;
  aspect-ratio: 4/5;
  z-index: 3;
  transform-origin: 50% 98%;
  animation-name: score-acting;
}
.score-film[data-beat="0"] .pose-boast,
.score-film[data-beat="1"] .pose-shout,
.score-film[data-beat="2"] .pose-panic,
.score-film[data-beat="3"] .pose-flop {
  display: block;
}
.score-shield {
  position: absolute;
  right: 4%;
  top: 8%;
  width: 103px;
  height: 106px;
  border: 4px solid #c89828;
  border-radius: 50% 50% 43% 43%;
  background: linear-gradient(#fff9c4, #f2da78);
  color: #775626;
  text-align: center;
  padding-top: 16px;
  box-shadow: 0 4px 0 #a6853c;
  z-index: 4;
  transform-origin: 50% 80%;
  animation-name: score-shield;
}
.score-shield > b {
  font-size: 32px;
  line-height: 35px;
}
.score-shield > span {
  font-size: 18px;
}
.score-shield small {
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
}
.score-film[data-bills=true] .score-shield {
  filter: saturate(.3);
}
.score-stamp {
  position: absolute;
  right: 4%;
  top: 48%;
  border: 3px solid #ae6550;
  border-radius: 5px;
  padding: 4px 7px;
  background: #fff5db;
  color: #b26049;
  font-size: 18px;
  font-weight: 900;
  z-index: 5;
  animation-name: score-stamping;
}
.score-audience {
  position: absolute;
  bottom: 14%;
  left: 3%;
  right: 3%;
  height: 38px;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  z-index: 1;
  opacity: .5;
}
.score-audience i {
  width: 22px;
  height: 23px;
  background: #a5b67f;
  border-radius: 50% 50% 0 0;
  position: relative;
}
.score-audience i:before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: inherit;
  left: 5px;
  top: -7px;
}
.score-bills {
  position: absolute;
  right: 7%;
  top: 15%;
  width: 120px;
  height: 150px;
  z-index: 6;
}
.score-bill {
  position: absolute;
  width: 45px;
  height: 65px;
  padding: 5px 3px;
  border: 2px solid #bb8a67;
  background: #fffdf1;
  border-radius: 3px 8px 3px 3px;
  box-shadow: 0 2px 0 #ccad7e;
  animation-name: score-paperfall;
  transform-origin: 50% 80%;
}
.score-bill b {
  display: block;
  text-align: center;
  color: #aa654e;
  font-size: 10px;
}
.score-bill i {
  display: block;
  width: 80%;
  height: 2px;
  background: #c5ba9d;
  margin: 5px auto;
}
.score-bill span {
  display: block;
  text-align: center;
  color: #9b7252;
  font-size: 9px;
  font-weight: 800;
}
.score-pile {
  position: absolute;
  left: 10%;
  right: 8%;
  bottom: 14%;
  height: 72px;
  z-index: 7;
  animation-name: score-pile;
}
.score-pile i {
  position: absolute;
  bottom: 0;
  width: 47%;
  height: 53px;
  border: 2px solid #b2a17c;
  border-radius: 6px;
  background: repeating-linear-gradient(#fff9df 0 9px, #ded1ad 10px 12px);
  transform: rotate(-7deg);
}
.score-pile i:nth-child(2) {
  left: 28%;
  height: 67px;
  transform: rotate(6deg);
}
.score-pile i:nth-child(3) {
  right: 0;
  height: 42px;
  transform: rotate(-4deg);
}
.score-pile b {
  position: absolute;
  left: 26%;
  bottom: 8px;
  transform: rotate(-5deg);
  padding: 3px 7px;
  border: 2px solid #ad6351;
  background: #fff9e5;
  color: #ad6351;
  font-size: 14px;
  white-space: nowrap;
}
.score-prize {
  position: absolute;
  right: 5%;
  bottom: 14%;
  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: score-prize;
}
.score-prize img {
  width: 39px;
  height: 39px;
  object-fit: contain;
}
.score-prize b {
  font-size: 10px;
  color: #52702f;
}
.score-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;
}
.score-actor,
.score-shield,
.score-stamp,
.score-bill,
.score-pile,
.score-prize,
.score-rings {
  animation-duration: 8000ms;
  animation-timing-function: linear;
  animation-delay: var(--film-offset);
  animation-fill-mode: both;
  animation-play-state: paused;
}
@keyframes score-rays {
  0% {
    transform: rotate(0);
  }
  50% {
    transform: rotate(55deg);
    opacity: .55;
  }
  54%, 100% {
    transform: rotate(65deg);
    opacity: 0;
  }
}
@keyframes score-acting {
  0% {
    transform: translateY(0);
  }
  8% {
    transform: translateY(-3px) rotate(2deg);
  }
  16% {
    transform: none;
  }
  24.9% {
    transform: none;
  }
  25% {
    transform: translateY(-7px) rotate(-4deg);
  }
  29% {
    transform: translateY(2px) rotate(3deg);
  }
  35% {
    transform: rotate(-3deg);
  }
  39% {
    transform: rotate(3deg);
  }
  44% {
    transform: rotate(-2deg);
  }
  51% {
    transform: none;
  }
  52.5% {
    transform: translate(-6px, -5px) rotate(-7deg);
  }
  60% {
    transform: translate(-3px, 0) rotate(3deg);
  }
  68% {
    transform: rotate(-3deg);
  }
  74.9% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateY(14px) scale(.92);
  }
  83% {
    transform: translateY(5px) scale(.96);
  }
  100% {
    transform: translateY(8px) scale(.95);
  }
}
@keyframes score-shield {
  0% {
    transform: scale(.75) rotate(-6deg);
  }
  12% {
    transform: scale(1.04) rotate(3deg);
  }
  20%, 24% {
    transform: scale(1);
  }
  30% {
    transform: scale(.92) rotate(-6deg);
  }
  36% {
    transform: scale(1.09) rotate(5deg);
  }
  48% {
    transform: scale(1);
  }
  52.5% {
    transform: translateY(-4px) rotate(-9deg);
  }
  62% {
    transform: translate(8px, 8px) rotate(15deg);
    opacity: .7;
  }
  75%, 100% {
    transform: translate(25px, 75px) rotate(34deg) scale(.5);
    opacity: 0;
  }
}
@keyframes score-stamping {
  0%, 24.9% {
    opacity: 0;
    transform: scale(2) rotate(-15deg);
  }
  25% {
    opacity: 1;
    transform: scale(2) rotate(-15deg);
  }
  29%, 44% {
    opacity: 1;
    transform: scale(1) rotate(-10deg);
  }
  50%, 100% {
    opacity: 0;
    transform: translateY(12px) rotate(10deg);
  }
}
@keyframes score-paperfall {
  0%, 51.9% {
    opacity: 0;
    transform: translate(70px, -140px) rotate(15deg);
  }
  52% {
    opacity: 1;
    transform: translate(calc(90px + var(--x)), calc(-130px - var(--i)*9px)) rotate(15deg);
  }
  64% {
    opacity: 1;
    transform: translate(var(--x), var(--y)) rotate(var(--tilt));
  }
  74% {
    opacity: 1;
    transform: translate(calc(var(--x) - 28px), calc(var(--y) + 50px)) rotate(calc(var(--tilt)*-1));
  }
  86%, 100% {
    opacity: .8;
    transform: translate(calc(var(--x) - 55px), calc(var(--y) + 110px)) rotate(var(--tilt));
  }
}
@keyframes score-pile {
  0%, 74.9% {
    opacity: 0;
    transform: translateY(75px);
  }
  75% {
    opacity: 1;
    transform: translateY(45px);
  }
  82% {
    opacity: 1;
    transform: translateY(-3px);
  }
  89%, 100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes score-prize {
  0%, 87.4% {
    opacity: 0;
    transform: translateY(-55px) scale(.2);
  }
  87.5% {
    opacity: 1;
    transform: translateY(-40px) scale(.4);
  }
  95% {
    opacity: 1;
    transform: translateY(3px) scale(1.12);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
.score-film[data-reduced=true] * {
  animation: none !important;
}
.score-film[data-reduced=true] .score-stamp,
.score-film[data-reduced=true] .score-bills,
.score-film[data-reduced=true] .score-pile,
.score-film[data-reduced=true] .score-prize {
  display: none;
}
.score-film[data-reduced=true][data-beat="1"] .score-stamp,
.score-film[data-reduced=true][data-bills=true] .score-bills,
.score-film[data-reduced=true][data-buried=true] .score-pile,
.score-film[data-reduced=true][data-prize=true] .score-prize {
  display: block;
}
.score-film[data-reduced=true] .score-bill {
  transform: translate(var(--x), var(--y));
}
.score-film[data-reduced=true][data-buried=true] .score-bills {
  display: none;
}
.modal:has(.score-film) {
  padding: 12px 13px;
}
.modal:has(.score-film) h2 {
  font-size: 22px;
  margin: 2px 0 8px;
}
.modal:has(.score-film) .film-reward-note {
  margin: 7px 0 0;
  font-size: 11px;
  line-height: 16px;
}
.modal:has(.score-film) .short-progress {
  margin-top: 8px;
  height: 5px;
}
.modal:has(.score-film) .modal-actions .btn {
  min-height: 40px;
  margin-top: 6px;
  padding: 8px;
}
.modal:has(.score-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-3] .ct-actor {
  left: 6px;
  height: calc(100% - 26px);
}
.cartoon-tool-fx[data-character=chapter-3][data-phase=action] .ct-actor {
  animation: score-tool-acting 1.05s ease-in-out both;
}
.cartoon-tool-fx[data-character=chapter-3]:is([data-phase=result], [data-phase=exit]) .ct-actor {
  animation: score-tool-deflate .6s ease-out both;
}
@keyframes score-tool-acting {
  0% {
    transform: translateY(-5px) rotate(-2deg);
  }
  25% {
    transform: translateY(-9px) rotate(1deg);
  }
  42% {
    transform: translateY(4px) scaleY(.97);
  }
  61% {
    transform: translateY(-3px) rotate(1deg);
  }
  82% {
    transform: translateY(2px);
  }
  100% {
    transform: none;
  }
}
@keyframes score-tool-deflate {
  0% {
    transform: translateY(-3px);
  }
  55% {
    transform: translateY(6px) rotate(-2deg) scale(.97);
  }
  100% {
    transform: translateY(3px) scale(.98);
  }
}
.ct-score-badge {
  position: absolute;
  right: 8%;
  top: 20%;
  width: 63px;
  height: 66px;
  display: grid;
  place-content: center;
  border: 3px solid #bd953b;
  border-radius: 45%;
  background: #fff0ab;
  color: #87612f;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 3px 0 #c2ab67;
}
.ct-score-badge small {
  font-size: 10px;
  text-align: center;
}
.ct-paper-tail {
  position: absolute;
  right: 9%;
  top: 53%;
  padding: 4px 10px;
  border: 2px solid #b69977;
  border-radius: 4px;
  background: repeating-linear-gradient(#fff7dc 0 9px, #ddcfaa 10px 11px);
  font-size: 10px;
  color: #9b694b;
  opacity: 0;
}
.cartoon-tool-fx[data-character=chapter-3][data-phase=action] .ct-score-badge {
  animation: score-tool-crack .75s ease both;
}
.cartoon-tool-fx[data-character=chapter-3][data-phase=result] .ct-score-badge {
  opacity: 0;
}
.cartoon-tool-fx[data-character=chapter-3][data-phase=action] .ct-paper-tail {
  animation: score-tool-tail .8s ease both;
}
.cartoon-tool-fx[data-character=chapter-3][data-phase=result] .ct-paper-tail {
  opacity: 0;
}
@keyframes score-tool-crack {
  0% {
    transform: none;
    opacity: 1;
  }
  40% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    transform: translate(35px, 30px) rotate(45deg) scale(.2);
    opacity: 0;
  }
}
@keyframes score-tool-tail {
  0% {
    transform: scaleY(.1);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(20px) rotate(-12deg);
    opacity: 0;
  }
}
@media (max-height: 700px) {
  .score-film {
    height: 190px;
  }
  .score-shield {
    width: 78px;
    height: 82px;
    padding-top: 8px;
    border-width: 3px;
  }
  .score-shield > b {
    font-size: 27px;
    line-height: 32px;
  }
  .score-shield > span {
    font-size: 13px;
  }
  .score-shield small {
    font-size: 9px;
  }
  .score-stamp {
    font-size: 14px;
  }
  .score-bills {
    transform: scale(.75);
    transform-origin: 100% 0;
  }
  .score-pile {
    height: 52px;
    transform: scale(.8);
  }
  .score-pile i {
    height: 38px;
  }
  .score-pile i:nth-child(2) {
    height: 48px;
  }
  .score-pile b {
    font-size: 12px;
  }
  .score-prize {
    width: 47px;
    height: 51px;
  }
  .score-prize img {
    width: 28px;
    height: 28px;
  }
  .score-prize b {
    font-size: 9px;
  }
  .score-caption {
    font-size: 12px;
    line-height: 19px;
    bottom: 0;
  }
}
@media (max-width: 360px) {
  .score-actor {
    left: -1%;
  }
  .score-shield {
    right: 2%;
  }
  .score-stamp {
    right: 2%;
  }
  .modal:has(.score-film) {
    padding: 10px;
  }
  .modal:has(.score-film) h2 {
    font-size: 20px;
    margin-bottom: 6px;
  }
}
