.movie-dialog {
  width: min(1000px, calc(100% - 28px));
  padding: 24px 34px;
  color: #163f42;
}
.movie-stage {
  height: 520px;
  position: relative;
  text-align: center;
  padding: 17px 20px 5px;
  overflow: hidden;
}
.movie-stage h2 {
  margin: 5px auto 10px;
  font-size: 2.5rem;
  max-width: 800px;
}
.movie-chapter {
  font-size: 0.8rem;
  color: #536d60;
}
.movie-art {
  position: absolute;
  inset: 88px 20px 110px;
  display: grid;
  place-items: center;
}
.movie-art img {
  height: 280px;
  width: 280px;
  object-fit: contain;
}
.movie-art[hidden] {
  display: none;
}
.movie-dial {
  max-width: 460px;
  margin: -20px auto 0;
}
.movie-dial[hidden],
.movie-spectrum[hidden] {
  display: none;
}
.movie-clue {
  font-size: 1.8rem;
  font-weight: 700;
  min-height: 35px;
  position: relative;
  z-index: 2;
}
.movie-spectrum {
  font-size: 1.1rem;
  max-width: 600px;
  margin: -15px auto 0;
}
.movie-score {
  position: absolute;
  top: 115px;
  right: 10%;
  font-size: 3.5rem;
  font-weight: 700;
  color: #a92a3d;
}
.movie-people {
  position: absolute;
  bottom: 75px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: center;
  gap: 70px;
}
.movie-people .avatar {
  height: 60px;
  width: 60px;
}
.movie-people > div {
  position: relative;
  transition: transform 0.25s;
}
.movie-people .speaking {
  transform: translateY(-9px);
}
.movie-ready {
  position: absolute;
  right: -12px;
  top: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #13584a;
}
.movie-caption {
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  font-size: 1.1rem;
  line-height: 1.4;
  max-width: 820px;
  margin: 0 auto;
  min-height: 65px;
}
.movie-player-controls {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 15px;
  border-top: 1px solid #a8baa8;
  padding-top: 18px;
  margin-top: 15px;
}
.movie-player-controls .primary {
  min-width: 160px;
}
.movie-player-controls input {
  min-height: 44px;
  padding: 0;
  accent-color: #b52b3e;
  min-width: 0;
  border: 0;
  background: transparent;
}
.movie-player-controls output {
  font-size: 0.8rem;
  min-width: 40px;
}
.movie-player-controls .quiet {
  padding: 10px;
  font-size: 0.85rem;
}
.movie-chapters {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 12px auto;
}
.movie-chapters button {
  min-width: 44px;
  padding: 7px;
  font-size: 0.8rem;
}
.movie-chapters [aria-current="true"] {
  background: #d6e0cc;
  color: #143e40;
  border-radius: 50%;
  font-weight: 700;
  text-decoration: none;
}
.movie-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 0.75rem;
  color: #4c6458;
}
.movie-bottom .secondary {
  color: #164b4c;
  border-color: #658472;
  font-size: 0.85rem;
}
.movie-rule-example {
  position: absolute;
  top: 190px;
  left: 12%;
  right: 12%;
  display: grid;
  gap: 20px;
  font-size: 1.3rem;
}
.movie-rule-example span {
  padding: 15px 20px;
  background: #d7e0c9;
  border-radius: 5px;
}
.movie-rule-example span + span {
  background: #efcdbf;
}
.movie-stage[data-chapter="6"] .movie-dial,
.movie-stage[data-chapter="6"] .movie-spectrum {
  opacity: 0.13;
}
.movie-stage[data-chapter="0"] .movie-people {
  display: none;
}
.movie-stage:not([data-chapter="3"]):not([data-chapter="4"]) .movie-people {
  display: none;
}
.movie-stage[data-chapter="3"] .movie-dial,
.movie-stage[data-chapter="4"] .movie-dial {
  max-width: 360px;
}
.movie-dialog .target-bands {
  animation: none;
}
.movie-stage.is-paused * {
  animation-play-state: paused;
}
.practice-note {
  max-width: 700px;
  margin: 12px auto 20px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #e2d6a3;
}
.hint-choices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 25px 0;
}
.hint-choices button {
  font-size: 0.95rem;
}
.pack-choice img {
  transition: transform 0.2s;
}
.pack-choice:hover img {
  transform: rotate(-3deg) scale(1.07);
}
.avatar-button .avatar-head {
  transition: filter 0.2s;
}
.avatar-button:hover .avatar-head {
  filter: brightness(1.07);
}
@media (max-width: 1050px) {
  .movie-stage {
    height: 470px;
  }
  .movie-stage h2 {
    font-size: 2.1rem;
  }
  .movie-dial {
    max-width: 460px;
  }
  .movie-people {
    bottom: 75px;
  }
  .movie-art img {
    width: 240px;
    height: 240px;
  }
  .movie-caption {
    font-size: 1rem;
    min-height: 65px;
  }
  .movie-rule-example {
    top: 160px;
  }
  .movie-player-controls {
    gap: 10px;
  }
  .movie-bottom span {
    max-width: 230px;
  }
}
@media (max-width: 700px) {
  .movie-dialog {
    padding: 16px 16px;
    max-height: calc(100dvh - 16px);
  }
  .movie-stage {
    height: 430px;
    padding: 15px 0 0;
  }
  .movie-stage h2 {
    font-size: 1.8rem;
    margin: 6px auto 12px;
    min-height: 42px;
  }
  .movie-art {
    inset: 90px 10px 145px;
  }
  .movie-art img {
    width: 210px;
    height: 210px;
  }
  .movie-dial {
    margin: 15px auto 0;
  }
  .movie-clue {
    font-size: 1.5rem;
    min-height: 28px;
  }
  .movie-people {
    bottom: 85px;
    gap: 40px;
    left: 0;
    right: 0;
  }
  .movie-people .avatar {
    width: 48px;
    height: 48px;
  }
  .movie-stage[data-chapter="3"] .movie-dial,
  .movie-stage[data-chapter="4"] .movie-dial {
    max-width: 260px;
  }
  .movie-caption {
    min-height: 80px;
    font-size: 0.95rem;
    line-height: 1.4;
    left: 3px;
    right: 3px;
  }
  .movie-spectrum {
    font-size: 1rem;
    gap: 90px;
    margin-top: -8px;
  }
  .movie-player-controls {
    grid-template-columns: 1fr 1fr auto;
    gap: 6px;
    margin-top: 10px;
    padding-top: 12px;
  }
  .movie-player-controls .primary {
    min-width: 0;
    font-size: 1rem;
    padding: 12px 15px;
  }
  .movie-player-controls input {
    grid-row: 2;
    grid-column: 1/3;
  }
  .movie-player-controls output {
    grid-row: 2;
    grid-column: 3;
  }
  .movie-player-controls .quiet {
    grid-column: 2/4;
    font-size: 0.8rem;
  }
  .movie-chapters {
    display: grid;
    grid-template-columns: repeat(4, minmax(44px, 1fr));
    gap: 0;
    margin: 4px auto;
  }
  .movie-chapters button {
    min-width: 44px;
    padding: 5px;
  }
  .movie-bottom {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  .movie-bottom > span {
    font-size: 0.7rem;
    text-align: center;
    max-width: none;
  }
  .movie-bottom button {
    width: 100%;
  }
  .movie-score {
    font-size: 2.5rem;
    right: 6%;
    top: 110px;
  }
  .movie-rule-example {
    top: 135px;
    left: 3%;
    right: 3%;
    font-size: 1.05rem;
    gap: 14px;
  }
  .movie-rule-example span {
    padding: 12px;
  }
  .movie-dialog .tutorial-top {
    padding-bottom: 10px;
    position: sticky;
    top: -16px;
    z-index: 5;
    background: #f3eddd;
  }
  .movie-dialog .tutorial-top > span {
    font-size: 0.8rem;
  }
  .movie-dialog .tutorial-top button {
    font-size: 0.75rem;
  }
}
@media (max-width: 380px) {
  .movie-stage {
    height: 450px;
  }
  .movie-stage h2 {
    font-size: 1.6rem;
    min-height: 54px;
  }
  .movie-people {
    bottom: 120px;
  }
  .movie-caption {
    min-height: 102px;
  }
  .movie-chapters button {
    min-width: 44px;
  }
  .movie-dialog {
    padding: 12px;
  }
  .movie-player-controls .primary {
    font-size: 0.85rem;
  }
  .movie-dialog .tutorial-top {
    gap: 5px;
  }
}
