@font-face {
  font-family: "Parade Storybook";
  src: url("../fraunces-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
* {
  box-sizing: border-box;
  scrollbar-color: #c78ea0 transparent;
}
:root {
  --paper: #fff4e2;
  --plum: #422449;
  --plum-soft: #72566e;
  --coral: #d9575e;
  --display-font: "Parade Storybook", "Yuanti SC", "Hiragino Maru Gothic ProN",
    "Microsoft YaHei", system-ui, sans-serif;
}
html {
  background: #efdfcf;
  color: var(--plum);
  font:
    16px system-ui,
    sans-serif;
}
body {
  margin: 0;
  padding: 10px;
}
button,
input {
  font: inherit;
}
button {
  border: 7px solid transparent;
  border-image: url("../secondary.png") 85 100 85 100 fill / 22px / 0 stretch;
  background: transparent;
  color: var(--plum);
  min-height: 44px;
  padding: 3px 9px;
  cursor: pointer;
  font-weight: 700;
  font-family: var(--display-font);
  font-variation-settings:
    "SOFT" 100,
    "WONK" 1,
    "opsz" 18;
  line-height: 1.2;
  transition:
    transform 120ms ease,
    filter 120ms ease;
}
button:hover:not(:disabled) {
  border-image-source: url("../secondary.png");
  transform: translateY(-1px);
}
button:active:not(:disabled),
button[aria-pressed="true"] {
  border-image-source: url("../secondary.png");
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
button.primary,
.song-tab[aria-pressed="true"] {
  border-image-source: url("../primary.png");
  color: #fff8e9;
  text-shadow: 0 1px 0 #a63f43;
}
button.primary .button-icon,
.song-tab[aria-pressed="true"] .song-icon {
  filter: brightness(0) invert(0.97);
}
button.primary:hover:not(:disabled),
.song-tab[aria-pressed="true"]:hover {
  border-image-source: url("../primary.png");
  filter: brightness(1.06);
}
button:disabled {
  border-image-slice: 85 90 85 90 fill;
  border-image-source: url("../disabled-secondary.png");
  color: #725d70;
  cursor: default;
}
button.primary:disabled {
  border-image-source: url("../disabled-primary.png");
}
button:focus-visible,
input:focus-visible {
  outline: 3px solid #713b93;
  outline-offset: 2px;
}
.button-icon {
  width: 21px;
  height: 21px;
  object-fit: contain;
  flex: 0 0 auto;
}
.button-label {
  min-width: 0;
}
.panel {
  border: 10px solid transparent;
  border-image: url("../panel.png") 64 fill / 16px / 0 stretch;
  padding: 5px;
}
#game {
  max-width: 1260px;
  margin: auto;
  position: relative;
  outline: none;
  border: 12px solid transparent;
  border-image: url("../panel.png") 64 fill / 18px / 0 stretch;
}
.theater-header {
  position: relative;
  height: 180px;
  border: 0;
  padding: 0;
  isolation: isolate;
}
.header-scenery {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: 18px 18px 0 0;
  background: #c9a3d3 url("../header.webp") center bottom / 100% auto no-repeat;
}
.brand-lockup {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo {
  width: 360px;
  height: 122px;
  max-width: 100%;
  object-fit: contain;
}
#transport {
  position: absolute;
  top: 10px;
  inset-inline: 12px;
  display: flex;
  gap: 7px;
  justify-content: flex-end;
}
.transport-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}
.transport-play {
  margin-inline-end: auto;
  border-image-source: url("../cream.png") !important;
  color: var(--plum) !important;
  text-shadow: none !important;
  min-height: 46px;
  font: bold 18px/1.1 var(--display-font);
}
.transport-play .button-icon {
  filter: none !important;
}
.transport-button:not(.transport-play) {
  border: 0;
  width: 50px;
  height: 50px;
  padding: 12px;
  background: url("../medallion.png") center / contain no-repeat;
}
.transport-button:not(.transport-play):hover {
  border-image: none;
  filter: brightness(1.06);
}
.transport-button:not(.transport-play):active {
  border-image: none;
}
.transport-button:not(.transport-play) .button-label {
  display: none;
}
.song-ribbon {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 9px;
  margin: -38px 0 -4px;
  padding: 4px max(18px, calc((100% - 760px) / 2)) 8px;
  border: 0;
}
.song-tab {
  min-width: 0;
  min-height: 72px;
  border-image-width: 36px 36px;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
}
.song-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  grid-row: 1 / 3;
}
.song-copy {
  min-width: 0;
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 700;
  hyphens: auto;
  overflow-wrap: normal;
}
.song-tab small {
  display: none;
}
#arena {
  position: relative;
  width: 100%;
  aspect-ratio: 3.15;
  overflow: hidden;
  border: 12px solid transparent;
  border-image: url("../panel.png") 64 fill / 18px / 0 stretch;
  background: #fff0dd;
}
#arena canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border-radius: 24px;
}
#performers {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  direction: ltr;
}
.stage-performer {
  position: absolute;
  top: 78%;
  left: 9%;
  transform: translate(-50%, -50%);
  width: 57px;
  height: 57px;
  min-height: 0;
  border: 0;
  border-image: none;
  padding: 8px;
  background: url("../medallion.png") center / contain no-repeat;
  pointer-events: auto;
  border-radius: 50%;
}
.stage-performer:hover:not(:disabled),
.stage-performer:active:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.08);
  border-image: none;
}
.stage-performer[aria-pressed="true"] {
  outline: 3px solid #db676c;
  outline-offset: 1px;
  border-image: none;
}
.stage-performer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
.stage-performer span {
  position: absolute;
  inset-inline-end: -3px;
  bottom: -1px;
  width: 18px;
  height: 18px;
  line-height: 18px;
  background: url("../medallion.png") center / contain;
  font-size: 10px;
}
.stage-performer[data-empty="true"] img {
  opacity: 0.55;
}
.stage-performer:nth-child(2) {
  left: 25.4%;
}
.stage-performer:nth-child(3) {
  left: 41.8%;
}
.stage-performer:nth-child(4) {
  left: 58.2%;
}
.stage-performer:nth-child(5) {
  left: 74.6%;
}
.stage-performer:nth-child(6) {
  left: 91%;
}
#storage {
  margin: 3px 8px;
  color: #9a4252;
  font-size: 13px;
}
.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1px;
  align-items: stretch;
}
.work-panel {
  min-width: 0;
  margin: 0;
  padding: 5px 7px 7px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin: 0 0 8px;
  min-height: 25px;
}
.section-heading h2 {
  font-family: var(--display-font);
  font-size: 21px;
  margin: 0;
  line-height: 1.1;
}
.section-chevron {
  width: 14px;
  height: 14px;
  background: url("../icon-chevron.png") center / contain no-repeat;
  font-size: 0;
}
#sounds {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
}
.sound-chip {
  position: relative;
  min-width: 0;
  width: 100%;
  aspect-ratio: 1;
  min-height: 0;
  border: 0;
  border-image: none;
  background: none;
  padding: 0;
  border-radius: 13px;
}
.sound-chip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sound-chip span {
  position: absolute;
  inset-inline: 4%;
  bottom: 5%;
  height: 27%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1.1;
  white-space: nowrap;
  text-align: center;
}
.sound-panel {
  padding-block: 8px 10px;
}
.sound-chip:hover:not(:disabled),
.sound-chip:active:not(:disabled) {
  border-image: none;
  filter: brightness(1.04);
  color: var(--plum);
  transform: none;
}
.sound-chip[aria-pressed="true"] {
  border-image: none;
  outline: 3px solid #c75170;
  outline-offset: 1px;
}
#selected-performer {
  margin-bottom: 6px;
}
.performer-card {
  min-height: 79px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 3px;
  border: 7px solid transparent;
  border-image: url("../subpanel.png") 64 fill / 14px / 0 stretch;
}
.performer-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex: 0 0 auto;
}
.performer-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--display-font);
}
.performer-copy strong {
  font-size: 22px;
}
.performer-copy span {
  font-size: 15px;
  line-height: 1.2;
  hyphens: auto;
}
#actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
}
.action-button {
  border-image-slice: 120 110 120 110 fill;
  border-image-source: url("../action-normal.png");
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 64px;
  border-image-width: 30px 32px;
  padding: 2px 0;
  border-width: 5px;
  font: bold 16px/1.1 var(--display-font);
  white-space: nowrap;
}
.action-button .button-icon {
  width: 24px;
  height: 24px;
}
#actions button[aria-pressed="true"] {
  border-image-source: url("../action-pressed.png");
  outline: 2px solid #87508d;
  outline-offset: 1px;
  border-radius: 20px;
}
.action-button:hover:not(:disabled) {
  border-image-source: url("../action-hover.png");
}
.action-button:active:not(:disabled) {
  border-image-source: url("../action-pressed.png");
}
.footer-button:hover:not(:disabled) {
  border-image-source: url("../cream-hover.png");
}
.footer-button:active:not(:disabled) {
  border-image-source: url("../cream-pressed.png");
}
#start-tour:active:not(:disabled) {
  border-image-source: url("../primary-pressed.png");
}
#hint {
  margin: 5px 3px 0;
  color: var(--plum-soft);
  font-size: 12px;
  line-height: 1.3;
}
.quiet {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px !important;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}
.arrangement-card {
  display: grid;
  grid-template-rows: 24px 32px 55px 15px;
  align-items: center;
  justify-items: center;
  gap: 2px;
  min-width: 0;
  padding: 4px 1px;
  min-height: 0;
  border: 4px solid transparent;
  border-image: url("../panel.png") 64 fill / 12px / 0 stretch;
  text-align: center;
}
.arrangement-card[aria-pressed="true"] {
  border-image-source: url("../panel-selected.png");
}
.arrangement-card:hover:not(:disabled) {
  border-image-source: url("../panel.png");
  filter: brightness(1.025);
}
.arrangement-card[aria-pressed="true"]:hover {
  border-image-source: url("../panel-selected.png");
}
.arrangement-card:active:not(:disabled) {
  border-image-source: url("../panel-selected.png");
}
.card-number {
  font: bold 23px/1 var(--display-font);
}
.card-title {
  width: 100%;
  font-size: 12px;
  line-height: 1.15;
  hyphens: auto;
  overflow-wrap: normal;
  word-break: normal;
}
.arrangement-art {
  width: 100%;
  height: 55px;
  object-fit: contain;
}
.arrangement-card small {
  font-size: 11px;
  color: var(--plum-soft);
  font-variant-numeric: tabular-nums;
}
.tour-footer {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr) minmax(0, 352px);
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 5px 12px 0;
}
#arrange {
  display: flex;
  gap: 7px;
  min-width: 0;
}
.footer-button {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 3px 5px;
  border-image-source: url("../cream.png");
  border-image-width: 38px 42px;
  min-height: 76px;
  font-family: var(--display-font);
  font-size: 26px;
}
.footer-button .button-icon {
  width: 31px;
  height: 31px;
}
.footer-button .button-label {
  white-space: nowrap;
}
.footer-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-emblem img {
  width: 100%;
  max-width: 250px;
  height: 65px;
  object-fit: contain;
}
.tour-launch {
  min-width: 0;
}
#start-tour {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 82px;
  border-image-width: 40px 40px;
  padding: 3px 7px;
  font: bold 30px/1.1 var(--display-font);
}
#start-tour .button-icon {
  width: 32px;
  height: 32px;
}
#status {
  grid-column: 1 / -1;
  margin: -8px 4px 0;
  font-size: 11px;
  line-height: 1.25;
  color: var(--plum-soft);
  font-variant-numeric: tabular-nums;
}
#overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #3924448a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  backdrop-filter: blur(3px);
}
#overlay[hidden] {
  display: none;
}
#sheet {
  outline: none;
  width: 100%;
  max-width: 500px;
  max-height: 95dvh;
  overflow: auto;
  text-align: center;
  padding: 14px 20px;
  border-width: 14px;
  border-image-width: 22px;
  overscroll-behavior: contain;
}
#sheet h2 {
  margin: 4px 0 16px;
  font: bold 28px/1.1 var(--display-font);
}
#sheet .logo {
  width: 300px;
  height: 100px;
  max-width: 95%;
}
#sheet p {
  font-size: 15px;
  line-height: 1.6;
  margin: 10px 0;
}
#sheet button {
  width: 100%;
  margin: 4px 0;
  flex-shrink: 0;
}
#sheet .dialog-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  min-width: min(180px, 100%);
  max-width: 100%;
  min-height: 48px;
  margin: 10px auto 4px;
  padding: 5px 16px;
}
.dialog-button .button-label {
  overflow-wrap: anywhere;
}
[dir="rtl"] .dialog-button img[src$="icon-back.png"] {
  transform: scaleX(-1);
}
#sheet.ready-sheet {
  position: relative;
  max-width: 300px;
  margin-top: 265px;
  margin-inline-end: max(28px, calc((100vw - 1260px) / 2 + 28px));
  transform: rotate(-2deg);
}
#overlay[data-view="ready"] {
  align-items: flex-start;
  justify-content: flex-end;
  background: #39244412;
  backdrop-filter: none;
  padding: 0;
}
#sheet .ready-help {
  position: absolute;
  inset-inline-end: 0;
  top: 0;
  width: 34px;
  height: 34px;
  min-height: 34px;
  border: 0;
  border-image: none;
  padding: 9px;
  background: url("../medallion.png") center / contain no-repeat;
}
.ready-help .button-icon {
  width: 17px;
  height: 17px;
}
.ready-help .button-label {
  display: none;
}
.ready-word {
  display: block;
  width: 100%;
  height: 50px;
  object-fit: contain;
}
.ready-sheet .primary,
.ready-sheet .primary:hover:not(:disabled),
.ready-sheet .primary:active:not(:disabled) {
  border-image: url("../ribbon.png") 100 350 100 350 fill / 15px 52px / 0
    stretch;
  padding: 12px 38px;
  min-height: 58px;
}
.ready-sheet .primary:active:not(:disabled) {
  filter: brightness(0.95);
}
.startup {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: contain;
  margin: 0 auto;
}
.startup[hidden] {
  display: none;
}
.ready-sheet p {
  text-align: start;
}
.tour-overview {
  list-style: none;
  margin: 12px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.tour-overview li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  text-align: start;
  border: 6px solid transparent;
  border-image: url("../subpanel.png") 64 fill / 12px / 0 stretch;
  padding: 3px;
}
.tour-overview img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.tour-overview span {
  font-size: 13px;
  hyphens: auto;
}
.track {
  height: 24px;
  border: 7px solid transparent;
  border-image: url("../cream.png") 85 100 85 100 fill / 12px / 0 stretch;
}
#fill {
  height: 100%;
  width: 0;
  border: 4px solid transparent;
  border-image: url("../primary.png") 85 100 85 100 fill / 6px / 0 stretch;
}
.volume {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) 44px;
  align-items: center;
  gap: 8px;
  margin: 18px 0;
  font-size: 14px;
  text-align: start;
}
.volume input {
  appearance: none;
  min-width: 0;
  width: 100%;
  height: 24px;
  border: 5px solid transparent;
  border-image: url("../secondary.png") 85 100 85 100 fill / 12px / 0 stretch;
  background: none;
}
.volume input::-webkit-slider-thumb {
  appearance: none;
  width: 28px;
  height: 28px;
  background: url("../medallion.png") center / contain no-repeat;
}
.volume input::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 0;
  background: url("../medallion.png") center / contain no-repeat;
}
/* Three workbench columns need enough room for six readable chip labels. */
@media (min-width: 701px) and (max-width: 1279px) {
  .song-ribbon {
    padding-inline: 30px;
  }
  .workbench {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }
  .sound-panel {
    grid-column: 1 / -1;
  }
  #sounds {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    max-width: 580px;
    margin-inline: auto;
    gap: 8px;
  }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .section-heading h2 {
    font-size: 19px;
  }
  .tour-footer {
    grid-template-columns: 1fr 0.4fr 1fr;
  }
  .footer-button {
    font-size: 17px;
  }
  #start-tour {
    font-size: 21px;
  }
}
@media (max-width: 700px) {
  body {
    padding: 4px;
  }
  #game {
    border-width: 7px;
    border-image-width: 12px;
  }
  .theater-header {
    height: 110px;
  }
  .header-scenery {
    background-size: 100% auto;
    border-radius: 12px 12px 0 0;
  }
  .logo {
    width: 205px;
    height: 80px;
  }
  #transport {
    top: 0;
    inset-inline: 0;
    gap: 3px;
  }
  .transport-button {
    width: 32px !important;
    height: 32px !important;
    min-height: 32px;
    padding: 8px !important;
  }
  .transport-play {
    border: 0;
    border-image: none !important;
    background: url("../medallion.png") center / contain no-repeat;
  }
  .transport-button .button-icon {
    width: 17px;
    height: 17px;
  }
  .transport-button .button-label {
    display: none;
  }
  .song-ribbon {
    gap: 3px;
    margin: -6px 0 -4px;
    padding: 4px 3px 6px;
  }
  .song-tab {
    min-height: 64px;
    border-width: 5px;
    border-image-width: 32px 30px;
    padding: 2px 3px;
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .song-icon {
    display: none;
  }
  .song-copy {
    font: bold 15px/1.1 var(--display-font);
  }
  .song-tab small {
    font-size: 9px;
  }
  #arena {
    aspect-ratio: 1.25;
    border-width: 7px;
    border-image-width: 12px;
  }
  .stage-performer {
    top: 50%;
    width: 39px;
    height: 39px;
    padding: 5px;
  }
  .stage-performer:nth-child(n + 4) {
    top: 89%;
  }
  .stage-performer:nth-child(3n + 1) {
    left: 20%;
  }
  .stage-performer:nth-child(3n + 2) {
    left: 50%;
  }
  .stage-performer:nth-child(3n) {
    left: 80%;
  }
  .stage-performer span {
    width: 14px;
    height: 14px;
    line-height: 14px;
    font-size: 9px;
    inset-inline-end: -3px;
  }
  .workbench {
    display: block;
  }
  .work-panel {
    border-width: 7px;
    border-image-width: 12px;
    padding: 3px 3px 5px;
  }
  .section-heading {
    min-height: 19px;
    margin-bottom: 4px;
  }
  .section-heading h2 {
    font: bold 16px/1.1 var(--display-font);
  }
  #sounds {
    gap: 3px;
  }
  .sound-chip {
    border-radius: 9px;
  }
  .sound-chip span {
    font-size: 11.5px;
  }
  .performer-panel .section-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  #selected-performer {
    margin: 0;
  }
  .performer-card {
    min-height: 37px;
    border: 0;
    border-image: none;
    padding: 0 3px 3px;
    gap: 6px;
  }
  .performer-card img {
    width: 32px;
    height: 32px;
  }
  .performer-copy {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 5px;
    font-family: system-ui, sans-serif;
  }
  .performer-copy strong,
  .performer-copy span {
    font-size: 14px;
  }
  #actions {
    gap: 4px;
  }
  .action-button {
    flex-direction: row;
    gap: 4px;
    min-height: 40px;
    padding: 2px;
    border-width: 4px;
    border-image-width: 20px 22px;
    font-size: 13px;
    white-space: normal;
  }
  .action-button .button-icon {
    width: 16px;
    height: 16px;
  }
  #hint {
    font-size: 12px;
  }
  #cards {
    gap: 4px;
  }
  .arrangement-card {
    grid-template-rows: 21px 28px 36px 14px;
    border-width: 3px;
    border-image-width: 10px;
    padding: 3px 1px;
  }
  .card-number {
    font-size: 19px;
  }
  .arrangement-art {
    height: 36px;
  }
  .card-title {
    font-size: 12px;
    line-height: 1.13;
  }
  .arrangement-card small {
    font-size: 10px;
  }
  .tour-footer {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 4px;
    padding: 3px 2px 2px;
    border-width: 7px;
    border-image-width: 12px;
  }
  #arrange {
    gap: 2px;
  }
  .footer-button {
    gap: 3px;
    min-height: 44px;
    border-width: 4px;
    border-image-width: 22px 24px;
    padding: 2px 1px;
    font: bold 13px/1.1 var(--display-font);
  }
  .footer-button .button-icon {
    width: 16px;
    height: 16px;
  }
  .footer-emblem {
    display: none;
  }
  #start-tour {
    min-height: 56px;
    border-width: 4px;
    border-image-width: 28px 27px;
    padding: 3px 2px;
    gap: 4px;
    font: bold 14px/1.1 var(--display-font);
  }
  #start-tour .button-icon {
    width: 18px;
    height: 18px;
  }
  #status {
    margin: 0 3px;
    font-size: 10px;
  }
  #sheet {
    padding: 10px;
    border-width: 10px;
    border-image-width: 18px;
  }
  #sheet.ready-sheet {
    max-width: 290px;
    margin: 0;
  }
  #overlay[data-view="ready"] {
    align-items: center;
    justify-content: center;
    padding: 16px;
  }
  #sheet .logo {
    height: 82px;
  }
  .startup {
    height: 190px;
  }
  #sheet p {
    font-size: 14px;
    line-height: 1.5;
  }
  .volume {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 40px;
    font-size: 13px;
  }
}
@media (max-width: 440px) {
  #sounds {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .sound-chip span {
    font-size: 12px;
  }
}
@media (max-width: 360px) {
  .sound-chip {
    aspect-ratio: 1.1;
  }
  .action-button {
    flex-direction: column;
    gap: 2px;
    min-height: 44px;
  }
  .action-button .button-icon {
    width: 13px;
    height: 13px;
  }
  .song-copy {
    font-size: 12px;
  }
  .tour-footer {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
  .footer-button .button-icon {
    width: 14px;
    height: 14px;
  }
  .footer-button,
  #start-tour {
    font-size: 12px;
  }
  .card-title {
    hyphens: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
html[dir="rtl"] .song-tab,
html[dir="rtl"] .performer-card,
html[dir="rtl"] .section-heading {
  direction: rtl;
}
html:is(
    [lang="de"],
    [lang="fr"],
    [lang="ru"],
    [lang="es"],
    [lang="pt"],
    [lang="it"]
  )
  .arrangement-card {
  grid-template-rows: 24px 48px 55px 15px;
}
@media (max-width: 700px) {
  html:is(
      [lang="de"],
      [lang="fr"],
      [lang="ru"],
      [lang="es"],
      [lang="pt"],
      [lang="it"]
    )
    .arrangement-card {
    grid-template-rows: 21px 48px 36px 14px;
  }
}
@media (max-width: 360px) {
  html[lang="ru"] .arrangement-card {
    grid-template-rows: 21px 56px 36px 14px;
  }
}
@media (min-width: 701px) and (max-height: 650px) {
  #sheet.ready-sheet {
    margin-top: 16px;
    max-height: calc(100dvh - 32px);
  }
}
/* Round controls keep their image states even on mobile; no pill hover overlay. */
.transport-button:not(.transport-play):hover:not(:disabled),
#sheet .ready-help:hover:not(:disabled) {
  border-image: none;
  background-image: url("../medallion-hover.png");
}
.transport-button:not(.transport-play):active:not(:disabled),
#sheet .ready-help:active:not(:disabled) {
  border-image: none;
  background-image: url("../medallion-pressed.png");
}
.footer-button:disabled {
  border-image-source: url("../disabled-cream.png");
}
.section-chevron {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
/* Keep the soft display axes after component font shorthands, including mobile. */
button,
.song-copy,
.section-heading h2,
.performer-copy,
#sheet h2 {
  font-variation-settings:
    "SOFT" 100,
    "WONK" 1,
    "opsz" 18;
}
@media (max-width: 700px) {
  .transport-play:hover:not(:disabled) {
    background-image: url("../medallion-hover.png");
  }
  .transport-play:active:not(:disabled) {
    background-image: url("../medallion-pressed.png");
  }
}
