/* Five illustrated instruments share the common game shell and adult controls. */
body[data-game="band"] .game-progress { display: none; }
body[data-game="band"] .game-content { width: min(1120px,100%); }
body[data-game="band"] .play-heading h1 { font-size: clamp(1.35rem,2.7vw,2rem); }
.band-scene { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.band-stage { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); grid-template-rows: minmax(0,1fr); gap: clamp(8px,2vw,24px); align-items: center; }
.band-musician { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 0; width: 100%; max-height: 370px; height: 100%; padding: 12px 0; border: 0; border-radius: 22px; background: transparent; color: var(--tf-text); touch-action: manipulation; }
.band-character { display: block; width: 100%; min-height: 0; max-height: 270px; flex: 0 1 auto; aspect-ratio: 180/210; }
.band-character svg { width: 100%; height: 100%; }
.band-body { transform-origin: 90px 170px; }
.band-arm,.band-shaker { transform-box: fill-box; transform-origin: center; }
.band-member-label { display: flex; flex: 0 0 auto; flex-direction: column; gap: 2px; margin-top: 3px; text-align: center; line-height: 1.25; font-size: clamp(16px,1.8vw,22px); font-weight: 600; }
.band-part { font-size: clamp(11px,1.1vw,14px); color: var(--tf-muted); font-weight: 400; }
.band-state { position: relative; flex: 0 0 auto; margin-top: 12px; display: flex; align-items: center; justify-content: center; width: 31px; height: 31px; color: var(--tf-muted); border: 1.5px solid var(--tf-border); border-radius: 50%; font-size: 23px; line-height: 1; }
.band-state-play { display: none; }
.band-musician[aria-pressed="true"] .band-state { color: #243b43; background: var(--band-color); border-color: var(--band-color); }
.band-musician[aria-pressed="true"] .band-state-rest { display: none; }
.band-musician[aria-pressed="true"] .band-state-play { display: block; }
.band-musician[aria-pressed="true"] .band-ground { opacity: .6; }
.band-musician[aria-pressed="false"] .band-character { opacity: .76; }
.band-key { position: absolute; top: 50%; left: calc(100% + 7px); transform: translateY(-50%); color: var(--tf-subtle); font-size: 11px; }
.band-beat { flex: 0 0 20px; display: flex; align-items: center; justify-content: center; gap: 13px; padding-top: 3px; }
.band-beat span { width: 7px; height: 7px; border: 1px solid var(--tf-border); border-radius: 50%; }
.band-beat .is-beat { background: var(--tf-muted); border-color: var(--tf-muted); }
.band-silent-note { flex: 0 0 auto; margin: 0; text-align: center; color: var(--tf-muted); font-size: .78rem; line-height: 1.4; }
.band-silent-note[hidden] { display: none; }
.band-hint .band-musician:first-child .band-state { outline: 2px solid var(--tf-accent-text); outline-offset: 4px; }
.band-parent-tools { padding: 16px 0; border-bottom: 1px solid var(--tf-border); }
.band-parent-tools .tf-help { margin-bottom: 0; }
.band-save-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.band-save-actions > .tf-button { flex: 1 1 170px; }
.band-parent-tools .tf-help { margin-top: 10px; }
.band-tune-ready { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.band-tune-ready[hidden] { display: none; }
.band-tune-ready audio { display: block; flex: 1 1 240px; min-width: 0; width: 100%; max-width: 100%; height: 44px; }
.band-tune-ready > a { flex: 0 0 auto; }
@media (hover:hover) { .band-musician:hover { background: var(--play-hover); } }
@media (max-width: 820px) and (max-aspect-ratio: 1/1) {
  .band-stage { grid-template-columns: repeat(6,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); gap: 12px; }
  .band-musician { grid-column: span 2; padding-top: 0; max-height: 300px; }
  .band-musician:nth-child(4) { grid-column: 2 / span 2; }
  .band-musician:nth-child(5) { grid-column: 4 / span 2; }
  .band-character { max-height: 215px; }
}
@media (max-width: 480px) {
  body[data-game="band"] .play-heading { padding-bottom: 16px; }
  .band-scene { gap: 7px; }
  .band-stage { gap: 8px; }
  .band-musician { padding-bottom: 0; }
  .band-member-label { font-size: 15px; margin-top: 0; }
  .band-part { font-size: 10px; }
  .band-state { width: 24px; height: 24px; font-size: 18px; margin-top: 8px; }
  .band-key { display: none; }
  .band-beat { flex-basis: 14px; }
  .band-silent-note { font-size: 11px; }
}
@media (max-height: 650px) and (max-aspect-ratio: 1/1) {
  body[data-game="band"] .play-heading { padding-bottom: 8px; }
  body[data-game="band"] .play-heading h1 { font-size: 20px; }
  body[data-game="band"] .play-heading > p:last-child { font-size: 11px; margin-top: 5px; }
  .band-stage { gap: 6px; }
  .band-member-label { font-size: 13px; }
  .band-part { display: none; }
}
@media (max-height: 600px) and (min-aspect-ratio: 1/1) {
  body[data-game="band"] .play-topline { flex-basis: 68px; }
  body[data-game="band"] .play-heading { position: absolute; top: 18px; left: 155px; right: 105px; padding: 0; }
  body[data-game="band"] .play-heading h1 { font-size: 17px; }
  body[data-game="band"] .play-heading > p:last-child { font-size: 11px; margin-top: 4px; }
  body[data-game="band"] .play-brand { display: none; }
  body[data-game="band"] .play-view { --play-bottom-space: calc(58px + env(safe-area-inset-bottom,0px)); }
  .band-stage { gap: 8px; }
  .band-musician { padding-top: 0; padding-bottom: 0; }
  .band-member-label { font-size: 13px; margin-top: 0; }
  .band-part { display: none; }
  .band-state { width: 23px; height: 23px; font-size: 18px; margin-top: 6px; }
  .band-scene { gap: 5px; }
  .band-beat { flex-basis: 12px; }
}
@media (prefers-reduced-motion: reduce) { .band-body,.band-arm,.band-shaker { transition: none; animation: none; } }
