:root {
  color-scheme: light;
  --paper: #f4f2e9;
  --ink: #284338;
  --muted: #748073;
  --line: #d7ddd0;
  --orange: #bd643e;
  --serif: Georgia, 'Times New Roman', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  font-family: Inter, 'Helvetica Neue', 'Hiragino Kaku Gothic ProN', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 6px;
  transition:
    background 0.18s,
    border-color 0.18s,
    opacity 0.18s;
}
button:hover:not(:disabled) {
  background: #e5e9dd;
  border-color: #9eae99;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible,
#structure-viewport:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}
a {
  color: inherit;
  text-decoration: none;
}
p,
h1,
h2,
h3 {
  margin: 0;
}
[hidden] {
  display: none !important;
}
.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  max-width: 1800px;
  margin: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.7px;
}
.brand svg {
  width: 29px;
  height: 33px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.1;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-button {
  border-color: transparent;
  width: 38px;
  height: 38px;
  font-size: 19px;
  border-radius: 50%;
}
#help-open {
  font-family: var(--serif);
  font-size: 18px;
}
.architecture-button {
  padding: 10px 15px;
  font-size: 12px;
  white-space: nowrap;
  border-color: #b8c5ab;
  background: #f4f1e5;
}
#sound-toggle[aria-pressed='false'] {
  opacity: 0.4;
}
.finish-button {
  padding: 10px 16px;
  font-size: 11px;
  border-color: #b8c5ab;
  margin-right: 12px;
}
.finish-button span {
  margin-left: 8px;
}
main {
  max-width: 1800px;
  margin: auto;
  padding: 0 16px 16px;
}
.workspace {
  height: calc(100svh - 88px);
  min-height: 420px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #e8e8df;
  isolation: isolate;
}
#structure-viewport {
  position: absolute;
  inset: 0;
  touch-action: none;
}
#structure-viewport canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
#collapse-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 110px 25px #38271ab3;
  opacity: 0;
}
#collapse-caption {
  position: absolute;
  top: 21%;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  pointer-events: none;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 54px);
  letter-spacing: 0.12em;
  color: #fdf4de;
  text-shadow:
    0 2px 18px #342617b3,
    0 1px 2px #342617;
  white-space: nowrap;
}
#loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #e8e8df;
  padding: 30px;
  text-align: center;
  font-size: 13px;
  z-index: 10;
}
.stage-title {
  position: absolute;
  top: 28px;
  left: 32px;
}
.stage-title button {
  border: 0;
  padding: 0 0 7px;
  border-radius: 0;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.stage-title button:hover {
  background: transparent;
}
.chevron {
  font: 15px sans-serif;
  color: #7c8978;
}
.stage-title p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 11px;
  color: #52673f;
  letter-spacing: 0.8px;
}
.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #7f9770;
  border-radius: 50%;
}
.score-summary {
  position: absolute;
  right: 32px;
  top: 25px;
  width: 185px;
  border: 0;
  border-radius: 0;
  padding: 0 0 8px;
}
.score-summary:hover:not(:disabled) {
  background: transparent;
}
.score-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}
.score-line strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 37px;
  font-variant-numeric: tabular-nums;
}
.score-line small {
  font-size: 11px;
  margin-left: 6px;
  color: #7c8974;
}
.count-progress {
  white-space: nowrap;
}
.score-line .count-target {
  font-size: 15px;
}
.score-value strong {
  font-size: 23px;
}
.target-track {
  display: block;
  height: 3px;
  background: #c4cdb978;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 10px;
}
.target-track > span {
  display: block;
  width: 0;
  height: 100%;
  background: #718a5c;
  transition: width 0.4s;
}
.stage-bottom {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.stage-bottom button {
  pointer-events: auto;
}
.stage-hint {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 1.3px;
  color: #3d5043;
  padding: 11px 18px;
  background: #f4f2e9de;
  border-radius: 7px;
  text-align: center;
}
.piece-guide {
  margin: 7px 0 0;
  color: #485144;
  font-size: 11px;
  background: #f4f2e9de;
  padding: 5px 10px;
  border-radius: 4px;
}
.selected-label {
  display: grid;
  gap: 3px;
}
#selected-kind {
  font-size: 11px;
  white-space: nowrap;
  color: #624b2e;
}
.selection-dock {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid #bac6af;
  border-radius: 11px;
  background: #f7f8eef5;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 25px #30443217;
  pointer-events: auto;
}
.selected-piece {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
}
#selected-name {
  font: 11px monospace;
  color: #6e8061;
  white-space: nowrap;
}
#sound-wave {
  width: 54px;
  height: 27px;
  display: block;
}
.selection-dock button {
  height: 43px;
  padding: 0 17px;
  font-size: 12px;
  white-space: nowrap;
}
.selection-dock #probe {
  border-color: transparent;
}
#extract {
  padding: 0 23px;
}
#extract span {
  margin-left: 10px;
}
.selection-dock .deselect {
  border: 0;
  padding: 0;
  width: 36px;
  color: #52673f;
  font-size: 19px;
}
.selection-dock .candidate-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 38px;
  padding: 0;
  border: 0;
  font-size: 17px;
  color: #526b4d;
}
#candidate-position {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
button.primary {
  color: #f9f8ef;
  background: var(--ink);
  border-color: var(--ink);
}
button.primary:hover:not(:disabled) {
  background: #3d5b4a;
  border-color: #3d5b4a;
}
.audio-description {
  font-size: 11px;
  color: #607355;
  text-align: center;
  background: #f5f6e8cc;
  border-radius: 5px;
  padding: 6px 12px;
}
.ended-actions {
  display: flex;
  gap: 8px;
}
.ended-actions button {
  padding: 11px 22px;
  font-size: 11px;
  background: #f3f6e9;
}
.ended-actions button.primary {
  background: var(--ink);
}
.status {
  position: absolute;
  opacity: 0;
  margin: 0;
  pointer-events: none;
  text-align: center;
  font-size: 11px;
  line-height: 1.8;
  color: #5c7250;
  max-width: 100%;
  padding: 8px 15px;
  border-radius: 7px;
  background: #f9f9eef0;
}
.status.visible {
  position: static;
  opacity: 1;
}
.settling {
  position: absolute;
  left: 50%;
  bottom: 57px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #607258;
  white-space: nowrap;
  background: #f4f2e9ed;
  padding: 10px 15px;
  border-radius: 7px;
}
.settling .live-dot {
  animation: breathe 1s infinite;
}
.orbit-hint {
  position: absolute;
  left: 32px;
  bottom: 31px;
  font-size: 11px;
  letter-spacing: 1px;
  color: #3b4c3c;
  text-shadow: 0 1px 3px #f4f2e9;
  pointer-events: none;
}
.view-menu {
  position: absolute;
  bottom: 22px;
  right: 25px;
  z-index: 3;
}
.view-menu summary {
  padding: 10px;
  list-style: none;
  cursor: pointer;
  font-size: 11px;
  color: #3b4c3c;
  background: #f4f2e9de;
  border-radius: 5px;
}
.view-menu summary::-webkit-details-marker {
  display: none;
}
.view-menu summary span {
  margin-left: 10px;
}
.view-menu[open] summary {
  background: #f6f7ec;
}
.view-panel {
  position: absolute;
  bottom: 42px;
  right: 0;
  padding: 10px;
  border: 1px solid #c1ccb5;
  border-radius: 8px;
  background: #f7f8eff5;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px #30443212;
}
.view-tools {
  display: flex;
  gap: 3px;
}
.view-tools button {
  width: 34px;
  height: 36px;
  font-size: 17px;
  border: 0;
}
#original-toggle,
#members-toggle {
  width: 100%;
  padding: 11px 5px 7px;
  margin-top: 6px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  font-size: 11px;
}
#original-toggle[aria-pressed='true'],
#members-toggle[aria-pressed='true'] {
  color: var(--orange);
}
#members-toggle[aria-pressed='true']::before {
  content: '✓ ';
}
dialog {
  border: 1px solid #c0cbb5;
  border-radius: 14px;
  background: #f8f6ed;
  color: var(--ink);
  padding: 36px;
  max-width: min(580px, calc(100% - 32px));
  max-height: calc(100svh - 40px);
  box-shadow: 0 25px 90px #1b352a2e;
}
dialog::backdrop {
  background: #243e343d;
  backdrop-filter: blur(7px);
}
dialog h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  margin: 15px 0 24px;
  line-height: 1.5;
}
dialog p {
  font-size: 12px;
  line-height: 1.8;
  color: #78826d;
}
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.7px;
}
dialog .eyebrow {
  font-size: 11px;
  color: #78906b;
}
.close-dialog {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  font-size: 23px;
}
.settings-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: 650px;
  max-width: min(650px, calc(100% - 32px));
  padding: 0;
  overflow: hidden;
}
.settings-dialog[open] {
  display: flex;
  flex-direction: column;
}
.setup-content {
  padding: 36px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 20px;
}
.setup-footer {
  flex-shrink: 0;
  padding: 16px 36px 20px;
  border-top: 1px solid #d7dfcd;
  background: #f8f6ed;
}
.settings-dialog > .close-dialog {
  z-index: 1;
  background: #f8f6ed;
}
.stage-chapters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0 0 16px;
}
.stage-chapters button {
  padding: 10px 4px;
  font-size: 12px;
}
.stage-chapters [aria-pressed='true'] {
  background: #29443c;
  color: #f4f2e9;
}
.sound-cue {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin: 10px 0 0;
  font-size: 12px;
  color: #4e6559;
  padding: 6px 10px;
  background: #f4f2e9e6;
  border-radius: 7px;
}

.exhibits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.exhibit {
  display: flex;
  flex-direction: column;
  text-align: left;
  align-items: start;
  padding: 13px;
  min-width: 0;
  gap: 8px;
}
.exhibit[aria-pressed='true'] {
  background: #e8edde;
  border-color: #7f956e;
}
.exhibit-number {
  font-size: 11px;
  color: #52673f;
}
.exhibit strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  display: block;
}
.exhibit small {
  display: block;
  font-size: 11px;
  color: #7d8b73;
  margin-top: 6px;
}
.exhibit svg {
  width: 100%;
  height: 65px;
  stroke: #71876a;
  stroke-width: 0.8;
  fill: none;
  stroke-linecap: round;
  margin: 5px 0;
}
.assembly-note {
  margin: 22px 0 0;
  color: #7d8b73;
  font-size: 11px;
  line-height: 1.8;
}
.small-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #819076;
  font-size: 11px;
}
.small-heading h3 {
  font-size: 12px;
  font-weight: 400;
  color: #536c48;
}
.caption-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #6f8161;
  margin: 25px 0;
  cursor: pointer;
}
.music-setting {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  font-size: 11px;
  color: #6f8161;
}
.music-setting input {
  flex: 1;
  min-width: 0;
  height: 28px;
  accent-color: var(--ink);
}
.music-setting output {
  min-width: 32px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.caption-toggle input {
  accent-color: var(--ink);
  width: 15px;
  height: 15px;
  margin: 0;
}
.wide {
  width: 100%;
  padding: 14px;
  font-size: 12px;
}
.setup-note {
  text-align: center;
  font-size: 11px;
  margin: 8px 0 0;
}
.records-dialog {
  width: 440px;
}
#round-tag {
  margin-top: -12px;
  margin-bottom: 24px;
}
.target-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #6c825d;
  gap: 16px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.collection-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 22px 0 27px;
  gap: 10px;
}
.collection-meta b {
  font: 27px var(--serif);
  display: block;
}
.collection-meta span {
  font-size: 11px;
  color: #88967c;
  display: block;
  margin-top: 7px;
}
#beam-tray {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
  min-height: 75px;
  padding: 15px 2px;
}
.tray-empty {
  font-size: 11px;
  color: #52673f;
}
.tray-beam {
  width: 8px;
  height: 29px;
  border-radius: 2px;
  background: #8da18a;
  transform: rotate(21deg);
  border-top: 3px solid #c2b58b;
  border-bottom: 3px solid #c2b58b;
}
.tray-beam.empty {
  background: #d0d5c9;
}
.tray-beam.failed {
  background: #bd7455;
}
.record-note {
  font-size: 11px;
  margin-top: 15px;
}
.help-dialog ol {
  font-size: 12px;
  line-height: 1.9;
  padding-left: 20px;
}
.help-dialog li {
  margin-bottom: 14px;
  color: #7a856f;
}
.help-dialog li b {
  display: block;
  color: var(--ink);
  font-weight: 500;
}
.listening-guide {
  background: #e9ede0;
  padding: 19px;
  border-radius: 6px;
  margin: 22px 0;
}
.listening-guide h3 {
  font-size: 12px;
  margin-bottom: 9px;
}
.listening-guide small {
  display: block;
  font-size: 11px;
  color: #8b967e;
  margin-top: 11px;
}
.help-dialog .keyboard-guide {
  font-size: 11px;
  margin: 20px 0;
}
.result-dialog {
  text-align: center;
}
.result-numbers {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  margin: 26px 0;
  background: #eaeee1;
  border-radius: 6px;
  padding: 22px 13px;
}
.result-numbers strong {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  display: block;
}
.result-numbers span {
  font-size: 11px;
  color: #8c977c;
  display: block;
  margin-top: 7px;
}
.result-actions {
  display: grid;
  gap: 9px;
  margin-top: 23px;
}
.result-actions button {
  padding: 13px;
  font-size: 12px;
}
.result-dialog #save-status {
  font-size: 11px;
  margin-top: 7px;
}
.limit-timer {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #6f8161;
  text-align: right;
}
.limit-timer b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.score-summary.limit .target-track > span {
  transition: none;
  background: #9a8a52;
}
.score-summary.urgent .target-track > span {
  background: var(--orange);
}
.score-summary.urgent .limit-timer {
  color: var(--orange);
  animation: breathe 1s infinite;
}
.mode-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 0 14px;
}
.mode-picker button {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  text-align: left;
}
.mode-picker strong {
  font-size: 13px;
  font-weight: 600;
}
.mode-picker small {
  font-size: 10px;
  color: #7c8974;
}
.mode-picker [aria-pressed='true'] {
  background: #29443c;
  color: #f4f2e9;
}
.mode-picker [aria-pressed='true'] small {
  color: #c9d3bd;
}
.ranking {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.ranking h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
}
.ranking h3 small {
  font-weight: 400;
  color: #8c977c;
  margin-left: 6px;
}
.ranking-form {
  display: flex;
  gap: 6px;
}
.ranking-form[hidden] {
  display: none;
}
.ranking-form input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 13px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fffdf6;
  color: inherit;
}
.ranking-form button {
  padding: 9px 14px;
  font-size: 12px;
  white-space: nowrap;
}
.ranking-status,
.ranking-mine {
  font-size: 11px;
  color: #6f8161;
  margin: 8px 0;
}
.ranking-tabs {
  display: flex;
  gap: 6px;
  margin: 12px 0 6px;
}
.ranking-tabs button {
  padding: 5px 14px;
  font-size: 11px;
}
.ranking-tabs [aria-pressed='true'] {
  background: #29443c;
  color: #f4f2e9;
}
.ranking-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
}
.ranking-list li {
  display: grid;
  grid-template-columns: 2em 1fr auto;
  gap: 8px;
  padding: 6px 4px;
  border-bottom: 1px solid #e4e8dc;
}
.ranking-list li.empty {
  display: block;
  color: #8c977c;
}
.ranking-list li span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ranking-list b {
  font-family: var(--serif);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
@keyframes breathe {
  50% {
    opacity: 0.3;
  }
}
@media (max-width: 650px) {
  .site-header {
    height: 98px;
    padding: 7px 18px;
    position: relative;
    flex-wrap: wrap;
    align-content: center;
    gap: 4px;
  }
  .brand {
    font-size: 13px;
    letter-spacing: 1px;
    gap: 7px;
  }
  .brand svg {
    width: 24px;
  }
  .site-header nav {
    gap: 3px;
    width: 100%;
    justify-content: flex-end;
  }
  .architecture-button {
    font-size: 11px;
    padding: 9px 13px;
    min-height: 36px;
  }
  .icon-button {
    width: 32px;
    height: 36px;
  }
  .finish-button {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 11px;
    padding: 9px;
    margin-right: 5px;
  }
  .finish-button span {
    display: none;
  }
  main {
    padding: 0 8px 8px;
  }
  .workspace {
    height: calc(100svh - 106px);
    min-height: 350px;
    border-radius: 8px;
  }
  .stage-title {
    top: 24px;
    left: 21px;
    max-width: calc(100% - 164px);
  }
  .stage-title button {
    font-size: 21px;
    gap: 12px;
    max-width: 100%;
  }
  #stage-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .stage-title p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .stage-title p {
    font-size: 11px;
    margin-top: 5px;
  }
  .score-summary {
    top: 23px;
    right: 22px;
    width: 115px;
  }
  .score-line {
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
  }
  .score-line strong {
    font-size: 30px;
  }
  .score-value strong {
    font-size: 16px;
  }
  .score-line small {
    font-size: 11px;
    margin-left: 3px;
  }
  .score-line .count-target {
    font-size: 12px;
  }
  .stage-bottom {
    bottom: 64px;
    max-width: calc(100% - 24px);
    width: max-content;
  }
  .stage-hint {
    font-size: 13px;
    letter-spacing: 0.7px;
  }
  .selection-dock {
    gap: 5px;
    padding: 6px;
    border-radius: 9px;
  }
  .selected-piece {
    padding: 0 8px;
    gap: 5px;
  }
  #selected-name {
    font-size: 11px;
  }
  #sound-wave {
    width: 26px;
    height: 23px;
  }
  .selection-dock button {
    padding: 0 11px;
    font-size: 11px;
    height: 43px;
  }
  #extract {
    padding: 0 15px;
  }
  #extract span {
    margin-left: 7px;
  }
  .selection-dock .deselect {
    width: 32px;
    padding: 0;
  }
  .status {
    font-size: 11px;
  }
  .audio-description {
    max-width: 290px;
    font-size: 11px;
    padding: 7px 10px;
  }
  .settling {
    bottom: 89px;
    font-size: 11px;
  }
  .orbit-hint {
    bottom: 28px;
    left: 22px;
    font-size: 11px;
  }
  .view-menu {
    right: 13px;
    bottom: 17px;
  }
  dialog {
    padding: 30px 23px;
    max-height: calc(100svh - 28px);
  }
  dialog h2 {
    font-size: 24px;
  }
  .settings-dialog {
    padding: 0;
  }
  .setup-content {
    padding: 29px 20px 23px;
  }
  .setup-footer {
    padding: 14px 20px 12px;
  }
  .exhibits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .exhibit {
    padding: 11px;
    gap: 5px;
  }
  .exhibit strong {
    font-size: 16px;
  }
  .exhibit svg {
    height: 50px;
  }
  .exhibit small {
    font-size: 11px;
  }
  .result-numbers {
    padding: 20px 10px;
  }
  .result-numbers strong {
    font-size: 30px;
  }
}
@media (max-width: 359px) {
  .site-header {
    padding: 0 11px;
  }
  .brand {
    font-size: 11px;
    gap: 5px;
  }
  .brand svg {
    width: 22px;
  }
  .icon-button {
    width: 32px;
  }
  .finish-button {
    font-size: 11px;
    padding: 8px 6px;
    margin-right: 0;
  }
  .stage-title {
    left: 17px;
    max-width: calc(100% - 143px);
  }
  .stage-title button {
    font-size: 18px;
    gap: 7px;
  }
  .score-summary {
    right: 17px;
    width: 104px;
  }
  .selected-piece {
    padding: 0 5px;
  }
  #sound-wave {
    display: none;
  }
  .selection-dock button {
    padding: 0 9px;
  }
  #extract {
    padding: 0 13px;
  }
}
@media (max-height: 500px) {
  .setup-content {
    padding: 18px 24px;
  }
  .setup-content > .eyebrow {
    display: none;
  }
  .settings-dialog h2 {
    font-size: 22px;
    margin: 0 0 12px;
  }
  .stage-chapters {
    margin-bottom: 10px;
  }
  .stage-chapters button {
    padding: 8px 4px;
  }
  .setup-footer {
    padding: 10px 24px;
  }
  .setup-note {
    margin-top: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.tray-beam.pending {
  opacity: 0.45;
}

.startup-error {
  position: fixed;
  z-index: 100;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(28rem, calc(100% - 2rem));
  padding: 2rem;
  border: 1px solid #284338;
  border-radius: 1rem;
  background: #f4f2e9;
  color: #284338;
}
.startup-error[hidden] {
  display: none;
}
.startup-error h2 {
  font-size: 1.25rem;
}
.startup-error button {
  margin-top: 1rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
