.music-card-scene {
  background: #e8e4f1;
}
.music-card-scene > svg {
  width: 100%;
  height: 100%;
}
.music-card-gazelle,
.music-card-peppa {
  position: absolute;
  bottom: 12%;
  height: 76%;
}
.music-card-gazelle {
  left: 22%;
}
.music-card-peppa {
  left: 49%;
  height: 63%;
}
.music-card-gazelle svg,
.music-card-peppa svg {
  width: auto;
  height: 100%;
}
.music-card-notes {
  position: absolute;
  right: 14%;
  top: 19%;
  color: #9973a0;
  font-size: 30px;
  transform: rotate(9deg);
}
.music-card-caption {
  position: absolute;
  bottom: 10px;
  left: 16px;
  padding: 5px 10px;
  background: #fffaf0eb;
  border-radius: 8px;
  color: #7a6383;
  font-size: 11px;
}
.game-card.lilac .card-tag {
  color: #8c7198;
}

.game-dialog.game-music.is-runner {
  background: #edf2e8;
}
.game-dialog.game-music.is-runner .game-feedback {
  display: none !important;
}
.game-dialog.game-music.is-runner .game-header h2 {
  color: #685972;
}
.game-dialog.game-music.is-runner .game-bottom {
  left: auto;
  bottom: auto;
}
.music-world {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr) auto;
  padding: 79px 28px 20px;
  background: #edf2e8;
  color: #60586a;
  user-select: none;
  -webkit-user-select: none;
}
.music-world [hidden] {
  display: none !important;
}
.music-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(960px, 100%);
  margin: 0 auto;
}
.music-route {
  display: flex;
  gap: 26px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
}
.music-route li {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #838878;
  white-space: nowrap;
}
.music-route li span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #c4cbbd;
  border-radius: 50%;
  font-size: 11px;
}
.music-route li.is-current {
  color: #80658f;
  font-weight: 700;
}
.music-route li.is-current span {
  background: #9b7da8;
  color: #fff;
  border-color: #9b7da8;
}
.music-route li.is-done span {
  background: #b0c797;
  border-color: #b0c797;
  color: #344e32;
}
.music-mode {
  font-size: 11px;
  color: #777e6a;
  white-space: nowrap;
}
.music-vista {
  position: relative;
  container: music-vista / size;
  overflow: hidden;
  width: min(1060px, 100%);
  margin: 12px auto 0;
  border-radius: 24px 24px 0 0;
}
.music-scenery {
  position: absolute;
  inset: 0;
}
.music-scenery > svg {
  display: block;
  width: 100%;
  height: 100%;
}
.music-scenery > .music-scenery-compact,
.music-card-scene > .music-scenery-compact {
  display: none;
}
@container music-vista (max-aspect-ratio: 1 / 1) {
  .music-scenery > .music-scenery-wide {
    display: none;
  }
  .music-scenery > .music-scenery-compact {
    display: block;
  }
}
.music-director {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 9px 20px;
  border-radius: 14px;
  background: #fffdf2ed;
  color: #766080;
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 3px 0 #866a7710;
}
.music-band {
  position: absolute;
  left: 22%;
  right: 15%;
  bottom: 7%;
  height: min(73%, 226px);
  display: flex;
  align-items: end;
  justify-content: space-around;
  gap: 14px;
  transform: translateX(var(--music-march, 0%));
}
.music-friend {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 82%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #695668;
  opacity: 1;
  cursor: default;
  transform: translateY(var(--music-lift, 0px));
}
.music-friend > svg {
  display: block;
  height: calc(100% - 24px);
  width: 100%;
  min-height: 0;
  filter: drop-shadow(0 3px 0 #8f927113);
}
.music-friend > span {
  flex-shrink: 0;
  height: 24px;
  font-size: 11px;
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 6px;
  background: #fff5dce8;
}
.music-teacher {
  height: 100%;
}
.music-teacher .music-conductor-arm {
  transform-origin: 119px 140px;
  transform: rotate(var(--music-conductor-angle, 0deg));
}
.music-george {
  height: 71%;
}
.music-rebecca {
  height: 83%;
}
.music-friend:disabled {
  opacity: 1;
}
.music-friend:enabled {
  cursor: pointer;
  touch-action: manipulation;
  border-radius: 15px;
}
.music-friend:enabled > span {
  color: #725180;
  background: #fffcf4;
  box-shadow: 0 2px 0 #a190a744;
}
.music-friend:enabled:hover > span {
  background: #eee2f6;
}
.music-friend.is-playing > span {
  background: #f9df9c;
}
.music-drum-left {
  transform-origin: 61px 134px;
}
.music-drum-right {
  transform-origin: 135px 135px;
}
.music-george.is-playing .music-drum-left {
  transform: rotate(54deg);
}
.music-george.is-playing .music-drum-right {
  transform: rotate(-54deg);
}
.music-bell-arm {
  transform-origin: 103px 121px;
}
.music-rebecca.is-playing .music-bell-arm {
  transform: rotate(-26deg);
}
.music-rebecca.is-playing .music-bell-clapper {
  transform: translateX(3px);
}
.music-console {
  position: relative;
  z-index: 2;
  align-self: end;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 18px 24px 11px;
  border: 1px solid #dedeca;
  border-radius: 23px;
  background: #fffdf4;
  box-shadow: 0 6px 0 #8d947b15;
}
.music-performance {
  outline: none;
}
.music-scoreline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.music-scoreline > div:first-child {
  min-width: 0;
}
.music-phase-label {
  display: block;
  color: #92739f;
  font-size: 10px;
  letter-spacing: 1px;
}
.music-cue-text {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-top: 4px;
}
.music-score {
  display: flex;
  flex-direction: column;
  text-align: right;
  gap: 4px;
  flex-shrink: 0;
}
.music-accuracy {
  font-size: 12px;
  color: #617457;
}
.music-beat-count {
  color: #8a8e7b;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.music-track {
  position: relative;
  overflow: hidden;
  height: 88px;
  margin-top: 12px;
  background: #f1efe6;
  border: 1px solid #e7e2d4;
  border-radius: 17px;
}
.music-track-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  border-top: 2px dashed #d7d1c4;
}
.music-target {
  position: absolute;
  left: 20%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border: 3px solid #9d80ac;
  border-radius: 50%;
  background: #e8ddef77;
  box-shadow: 0 0 0 5px #fffaf080;
}
.music-target > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #9b82a9;
}
.music-target.is-ready {
  border-color: #7f9c6a;
  box-shadow: 0 0 0 5px #bacd9766;
}
.music-target.is-rest {
  border-style: dashed;
  border-color: #9d80ac;
  box-shadow: 0 0 0 5px #d7c6e377;
}
.music-note {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 51px;
  height: 60px;
  border-radius: 13px;
  border: 2px solid #d9a2a8;
  background: #f9dedd;
  color: #a65d6c;
  box-shadow: 0 3px 0 #a7858522;
  will-change: left;
}
.music-note > svg {
  width: 31px;
  height: 31px;
}
.music-note > small {
  font-size: 9px;
  line-height: 15px;
}
.music-note-step {
  color: #597e87;
  background: #d7e9e9;
  border-color: #98bac1;
  border-radius: 50%;
}
.music-note-rest {
  color: #857596;
  background: #ebe4f0;
  border-color: #c0b1cc;
  border-style: dashed;
}
.music-note.in-time {
  box-shadow: 0 0 0 3px #fffdf8;
}
.music-note[data-outcome="hit"],
.music-note[data-outcome="quiet"] {
  opacity: 0.38;
}
.music-note[data-outcome="wrong"],
.music-note[data-outcome="miss"] {
  opacity: 0.3;
  filter: grayscale(1);
}
.music-track-caption {
  display: flex;
  justify-content: space-between;
  margin: 5px 4px 12px;
  color: #8f887c;
  font-size: 10px;
}
.music-track-caption > span:first-child {
  margin-left: calc(20% - 30px);
  color: #93769e;
}
.music-pads {
  display: grid;
  grid-template-columns: 1fr 78px 1fr;
  gap: 12px;
  align-items: center;
}
.music-pad {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid #e5bdba;
  border-radius: 16px;
  background: #f6d8d3;
  color: #975b67;
  box-shadow: 0 4px 0 #dbb3ae;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.music-pad > svg {
  width: 34px;
  height: 34px;
}
.music-pad > span {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.2;
}
.music-pad small {
  display: block;
  font-weight: 400;
  font-size: 10px;
  margin-top: 4px;
}
.music-step {
  background: #dcebea;
  color: #527c80;
  border-color: #b6d1ce;
  box-shadow: 0 4px 0 #a9c7c4;
}
.music-pad kbd,
.music-free-pads kbd {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid currentColor;
  border-radius: 7px;
  font-size: 13px;
  opacity: 0.7;
  font-family: inherit;
}
.music-pad:disabled {
  opacity: 0.58;
  cursor: default;
}
.music-pad.is-playing {
  transform: translateY(3px);
  box-shadow: none;
}
.music-rest-legend {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  color: #877596;
  font-size: 10px;
}
.music-rest-legend svg {
  width: 27px;
  height: 27px;
}
.music-mastery {
  margin: 14px 0 0;
  color: #8b8879;
  font-size: 10px;
  text-align: center;
}
.music-review,
.music-celebration {
  min-height: 235px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.music-review > small,
.music-celebration > small {
  color: #957ca0;
  font-size: 11px;
}
.music-review h3,
.music-celebration h3 {
  margin: 10px 0;
  font-size: 24px;
  font-weight: 600;
  outline: none;
}
.music-review p,
.music-celebration p {
  font-size: 13px;
  line-height: 1.8;
  margin: 4px 0;
}
.music-review .music-review-rule {
  color: #8b887b;
  font-size: 11px;
  margin: 6px 0;
}
.music-review-actions {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}
.music-review-actions .button,
.music-celebration .button {
  min-height: 45px;
  padding: 10px 22px;
  font-size: 13px;
}
.music-free-pads {
  display: flex;
  gap: 14px;
  margin: 6px 0;
}
.music-free-pads button {
  display: flex;
  gap: 9px;
  align-items: center;
  background: #f3ede5;
  color: #7a6585;
  border: 1px solid #dcd3df;
  border-radius: 10px;
  padding: 6px 15px;
  min-height: 44px;
  font-size: 12px;
  touch-action: manipulation;
}
.music-free-pads svg {
  width: 24px;
  height: 24px;
}
.music-celebration .music-final-score {
  max-width: 490px;
  color: #827a85;
  font-size: 11px;
  margin: 2px 0 9px;
}
.music-world button:focus-visible {
  outline: 3px solid #9575ac;
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .game-dialog.game-music.is-runner .game-header h2 {
    font-size: 15px;
  }
  .music-world {
    padding: 76px 14px 16px;
  }
  .music-route {
    gap: 16px;
    font-size: 11px;
  }
  .music-mode {
    display: none;
  }
  .music-heading {
    justify-content: center;
  }
  .music-band {
    left: 9%;
    right: 9%;
    gap: 8px;
    height: min(65%, 210px);
  }
  .music-console {
    padding: 15px 16px 11px;
  }
  .music-pads {
    gap: 8px;
    grid-template-columns: 1fr 64px 1fr;
  }
  .music-pad {
    gap: 10px;
  }
  .music-pad kbd {
    width: 22px;
    height: 24px;
  }
}
@media (max-width: 480px) {
  .game-dialog.game-music.is-runner .game-header {
    top: 12px;
    left: 12px;
    right: 12px;
    gap: 8px;
  }
  .game-dialog.game-music.is-runner .game-header h2 {
    font-size: 12px;
    max-width: 116px;
    line-height: 1.4;
    white-space: normal;
  }
  .game-dialog.game-music.is-runner .game-header .icon-button {
    width: 36px;
    height: 38px;
  }
  .game-dialog.game-music.is-runner .game-header-actions {
    gap: 5px;
  }
  .game-dialog.game-music.is-runner .game-header .fullscreen-button {
    display: none;
  }
  .game-dialog.game-music.is-runner .game-bottom {
    top: 12px;
    right: 95px;
    width: 47px;
    height: 38px;
  }
  .game-dialog.game-music.is-runner .game-bottom .show-current-hint {
    height: 38px;
    min-height: 38px;
    font-size: 10px;
  }
  .music-world {
    padding: 66px 10px 12px;
    grid-template-rows: auto minmax(120px, 1fr) auto;
  }
  .music-route {
    gap: 13px;
    font-size: 10px;
  }
  .music-route li {
    gap: 5px;
  }
  .music-route li span {
    width: 21px;
    height: 21px;
  }
  .music-vista {
    margin-top: 10px;
    border-radius: 17px 17px 0 0;
  }
  .music-director {
    top: 13px;
    font-size: 11px;
    padding: 8px 12px;
  }
  .music-band {
    left: 3%;
    right: 3%;
    bottom: 8%;
    gap: 3px;
  }
  .music-friend > span {
    font-size: 9px;
    padding: 3px 4px;
  }
  .music-console {
    padding: 13px 12px 10px;
    border-radius: 18px;
  }
  .music-cue-text {
    font-size: 13px;
  }
  .music-phase-label {
    font-size: 9px;
  }
  .music-accuracy {
    font-size: 10px;
  }
  .music-track {
    height: 80px;
    margin-top: 10px;
  }
  .music-target {
    width: 61px;
    height: 61px;
  }
  .music-note {
    width: 42px;
    height: 54px;
  }
  .music-note > svg {
    width: 27px;
    height: 27px;
  }
  .music-pads {
    grid-template-columns: 1fr 53px 1fr;
    gap: 6px;
  }
  .music-pad {
    height: 65px;
    gap: 8px;
    border-radius: 13px;
  }
  .music-pad > span {
    font-size: 16px;
  }
  .music-pad > svg {
    width: 29px;
    height: 29px;
  }
  .music-pad kbd {
    display: none;
  }
  .music-mastery {
    font-size: 9px;
    margin-top: 12px;
  }
  .music-review,
  .music-celebration {
    min-height: 238px;
  }
  .music-review h3,
  .music-celebration h3 {
    font-size: 20px;
  }
  .music-review p,
  .music-celebration p {
    font-size: 11px;
  }
  .music-review .music-review-rule {
    font-size: 10px;
  }
  .music-review-actions {
    gap: 8px;
  }
  .music-review-actions .button {
    padding: 9px 15px;
    font-size: 12px;
  }
}
@media (max-height: 540px) and (min-width: 481px) {
  .game-dialog.game-music.is-runner .game-header {
    top: 8px;
    height: 36px;
  }
  .game-dialog.game-music.is-runner .game-header .icon-button {
    height: 36px;
    width: 36px;
  }
  .game-dialog.game-music.is-runner .game-header h2 {
    font-size: 14px;
  }
  .game-dialog.game-music.is-runner .game-bottom {
    top: 8px;
    height: 36px;
    right: calc(var(--scene-inset) + 138px);
  }
  .game-dialog.game-music.is-runner .game-bottom .show-current-hint {
    height: 36px;
    min-height: 36px;
  }
  .music-world {
    padding: 52px 18px 10px;
    grid-template-columns: minmax(160px, 1fr) minmax(320px, 1.3fr);
    grid-template-rows: 24px minmax(0, 1fr);
    gap: 8px 16px;
  }
  .music-heading {
    grid-column: 1 / -1;
  }
  .music-mode {
    display: block;
  }
  .music-vista {
    height: 100%;
    margin: 0;
    border-radius: 18px;
  }
  .music-director {
    top: 12px;
    max-width: calc(100% - 20px);
    white-space: normal;
    width: 240px;
    font-size: 11px;
    padding: 8px;
  }
  .music-band {
    height: 60%;
    left: 1%;
    right: 1%;
    bottom: 10%;
    gap: 0;
  }
  .music-friend > span {
    font-size: 8px;
    padding-inline: 3px;
  }
  .music-console {
    align-self: center;
    padding: 10px 13px 8px;
  }
  .music-cue-text {
    font-size: 12px;
    margin-top: 2px;
  }
  .music-track {
    height: 69px;
    margin-top: 6px;
  }
  .music-target {
    width: 58px;
    height: 58px;
  }
  .music-note {
    width: 40px;
    height: 52px;
  }
  .music-note svg {
    width: 26px;
    height: 26px;
  }
  .music-track-caption {
    margin-bottom: 7px;
    font-size: 9px;
  }
  .music-pad {
    height: 54px;
    gap: 8px;
  }
  .music-pad > svg {
    width: 28px;
    height: 28px;
  }
  .music-pad > span {
    font-size: 15px;
  }
  .music-pad kbd {
    display: none;
  }
  .music-mastery {
    font-size: 9px;
    margin-top: 9px;
  }
  .music-review,
  .music-celebration {
    min-height: 209px;
  }
  .music-review h3,
  .music-celebration h3 {
    font-size: 18px;
    margin: 7px 0;
  }
  .music-review p,
  .music-celebration p {
    font-size: 11px;
    line-height: 1.5;
  }
  .music-review .music-review-rule,
  .music-celebration .music-final-score {
    font-size: 9px;
  }
  .music-review-actions {
    margin-top: 9px;
    gap: 8px;
  }
  .music-review-actions .button,
  .music-celebration .button {
    font-size: 11px;
    padding: 8px 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .music-world *,
  .music-world *::before {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-height: 540px) and (max-width: 700px) {
  .music-instrument-name {
    display: none;
  }
}
