/* The playground (play.js), scoped under .play. */
.play .ptabs { display: flex; gap: .2rem; padding: .3rem; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; overflow-x: auto; }
.play .ptabs button { font: 600 15px var(--font); color: var(--fg); background: transparent; border: 0; border-radius: 999px; box-shadow: none; padding: .5rem 1rem; min-height: 2.5rem; cursor: pointer; }
.play .ptabs button:hover { background: var(--accent-soft); color: var(--fg); box-shadow: none; }
.play .ptabs button[aria-selected="true"], .play .ptabs button[aria-selected="true"]:hover { color: #ffffff; background: var(--brand); box-shadow: 0 4px 14px -4px color-mix(in srgb, var(--brand) 70%, transparent); }
.play .pcard { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 1.3rem; margin: .8rem 0; }
.play .part { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; align-items: center; margin: .35rem 0; }
.play .part b { font-weight: 600; min-width: 10rem; color: var(--fg); }
.play #choir-songs label { display: block; margin-top: .6rem; }
.play #choir-songs textarea { font-size: 13px; }
.play .lede { color: var(--mute); margin: 0 0 .8rem; font-size: 15px; }
.play textarea { width: 100%; font: 15px/1.45 var(--mono); padding: .7rem; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); color: inherit; resize: vertical; }
.play .row { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; margin: .7rem 0 0; }
.play label { color: var(--mute); font-size: 14px; }
.play input[type=number] { font: inherit; font-size: 15px; background: var(--bg); color: inherit; border: 1.5px solid var(--line); border-radius: 999px; padding: .3rem .7rem; min-height: 2.25rem; }
.play select { font-size: 15px; min-height: 2.25rem; }
.play input[type=number] { width: 4.8rem; }
.play .chips { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-top: .6rem; }
.play .chips .what { color: var(--link); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; min-width: 6.5rem; }
.play .chips button { font: 500 13.5px var(--font); padding: .3rem .85rem; min-height: 2rem; border-radius: 999px; background: transparent; color: var(--fg); border: 1.5px solid var(--line); cursor: pointer; box-shadow: none; }
.play .chips button:hover { background: var(--accent-soft); border-color: var(--brand); color: var(--fg); box-shadow: none; }
.play .chips button.on, .play .chips button.on:hover { border-color: var(--brand); background: var(--brand); color: #ffffff; font-weight: 600; }
.play details { color: var(--mute); font-size: 14px; margin-top: .7rem; }
.play .note { color: var(--mute); font-size: 14px; margin: .6rem 0 0; }
.play .read { font: 600 15px var(--mono); color: var(--fg); margin-top: .6rem; min-height: 1.5em; }
.play .viz { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1rem; }
.play .viz figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: .8rem .9rem .9rem; min-width: 0; }
.play .viz .wide { grid-column: 1 / -1; }
.play .viz h2 { font: 700 12px var(--font); text-transform: uppercase; letter-spacing: .12em; color: var(--link); margin: 0; display: flex; align-items: center; gap: .6rem; }
.play .viz h2 .tools { margin-left: auto; display: flex; gap: .3rem; }
.play .viz h2 button { font-size: 12px; padding: .2rem .6rem; min-height: 1.75rem; text-transform: none; letter-spacing: 0; }
.play .viz h2 .files { display: inline-flex; align-items: center; gap: .3rem; margin-left: .5rem; font-size: 12px; text-transform: none; letter-spacing: 0; }
.play .viz h2 button.wanted { border-color: var(--brand); color: var(--brand); }
.play .viz figcaption { color: var(--mute); font-size: 13px; margin: .2rem 0 .6rem; line-height: 1.4; }
.play .viz canvas { display: block; width: 100%; }
.play .stagebox { position: relative; }
.play .tip { position: absolute; top: 4px; right: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .45rem .7rem; font-size: 12.5px; line-height: 1.45; max-width: 62%; box-shadow: 0 6px 24px rgb(0 0 0 / .25); }
.play .tip b { display: block; font-size: 13px; }
.play .tip div { color: var(--mute); }
.play .key { display: flex; flex-wrap: wrap; gap: .2rem .9rem; font-size: 12px; color: var(--mute); margin-top: .5rem; }
.play .key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.play .chain { display: grid; grid-template-columns: repeat(var(--wide, 5), minmax(0, 1fr)); gap: .7rem 1.1rem; }
.play .step { position: relative; display: flex; flex-direction: column; gap: .1rem; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .65rem; }
.play .step::after { content: none; position: absolute; right: -.8rem; top: 50%; width: 7px; height: 7px; border-top: 1.5px solid var(--faint); border-right: 1.5px solid var(--faint); transform: translateY(-50%) rotate(45deg); }
.play .step.go-wide::after { content: ""; }
.play .step b { font-size: 13.5px; }
.play .step span { font-size: 11.5px; color: var(--mute); line-height: 1.3; }
.play .step output { font: 600 12.5px var(--mono); color: var(--made); min-height: 1.4em; margin-top: .15rem; overflow-wrap: anywhere; }
.play .meter { display: block; height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: auto; }
.play .meter > i { display: block; height: 100%; width: 0; background: var(--made); }
.play .meter.bad > i { background: var(--bad); }
.play .curve { width: 100%; height: 70px; margin-top: .2rem; }
.play #nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .6rem 1.2rem; margin: .8rem 0 0; }
.play #nums b { display: block; font-size: 26px; font-weight: 800; color: var(--brand); letter-spacing: -.03em; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.play #nums span { color: var(--mute); font-size: 12.5px; line-height: 1.3; display: block; }
/* the transport, always at hand */
.play .pbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; border-top: 3px solid var(--brand); box-shadow: 0 -10px 30px -12px rgb(43 16 36 / .25);
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom)); }
.play .pbar .in { max-width: 72rem; margin: 0 auto; display: flex; gap: .7rem; align-items: center; }
.play #status { flex: 1; min-width: 0; color: var(--mute); font-size: 13.5px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.play #status.err { color: var(--bad); }
.play #go { min-width: 6.5rem; }
.play #go.busy { cursor: default; }
body.play-page { padding-bottom: 5rem; }
@media (max-width: 1000px) {
  .play .chain { grid-template-columns: repeat(var(--half, 4), minmax(0, 1fr)); }
  .play .step.go-wide::after { content: none; }
  .play .step.go-half::after { content: ""; }
}
@media (max-width: 720px) {
  .play .viz { grid-template-columns: 1fr; }
  .play .chain { grid-template-columns: 1fr; gap: .8rem; }
  .play .step { display: grid; grid-template-columns: 1fr auto; column-gap: .8rem; align-items: baseline; }
  .play .step b { grid-area: 1 / 1; }
  .play .step output { grid-area: 1 / 2; margin: 0; text-align: right; min-height: 0; }
  .play .step span, .play .step .meter, .play .step .curve { grid-column: 1 / -1; }
  .play .step .meter { margin-top: .35rem; }
  .play .step.go-half::after { content: none; }
  .play .step.go-down::after { content: ""; right: auto; left: 1.2rem; top: auto; bottom: -.62rem; transform: rotate(135deg); }
  .play .pcard { padding: .8rem; }
}
.play .hint { color: var(--mute); font-size: 13px; }
