/* Play the room: the wave view, seat audio, two verdicts and the clap meter. Lives inside #sound (dark frame). */

.playroom-head { margin-top: var(--s7); }
.playroom-head .note { max-width: 62ch; }
.playroom { margin-top: var(--s5); }

.pr-stage { position: relative; width: 100%; border-radius: var(--radius); overflow: hidden; background: #240c10;
  box-shadow: 0 0 0 1px rgba(243, 236, 225, 0.12), 0 24px 60px rgba(0, 0, 0, 0.45); }
.pr-field, .pr-overlay, .pr-modemap { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pr-modemap { pointer-events: none; mix-blend-mode: screen; }
.pr-overlay { cursor: crosshair; }
.pr-hud { position: absolute; left: var(--s4); top: var(--s3); display: flex; gap: var(--s4); align-items: baseline; pointer-events: none;
  font-family: var(--type); font-size: var(--fs-xs); letter-spacing: 0.06em; color: var(--on-dark); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.pr-slow { color: var(--on-dark-2); }
.pr-hint { position: absolute; right: var(--s4); top: var(--s3); pointer-events: none; font-family: var(--script); font-size: var(--fs-lg); color: #f3e7d8; }

.pr-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s5); align-items: center; margin-top: var(--s5); }
.pr-controls .play { width: clamp(84px, 9vw, 112px); }
.pr-controls .play .tri { border-left-width: 16px; border-top-width: 10px; border-bottom-width: 10px; margin-left: 4px; }
.pr-controls .play.on { animation: pr-spin 1.8s linear infinite; }
@keyframes pr-spin { to { transform: rotate(360deg); } }
.pr-seat-line { margin: 0; font-size: var(--fs-md); color: var(--on-dark); }
.pr-seat .note { margin: var(--s1) 0 0; }
.pr-buttons { display: flex; gap: var(--s5); }

.pr-compare { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); align-items: center; margin-top: var(--s5); padding-top: var(--s4);
  border-top: 1px solid rgba(243, 236, 225, 0.15); }
.pr-compare-label { font-family: var(--type); font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-2); }
.pr-other { max-width: 100%; padding: 7px 10px; border-radius: var(--radius); border: 1.5px solid rgba(243, 236, 225, 0.5);
  background: transparent; color: var(--on-dark); font: inherit; font-size: var(--fs-sm); }
.pr-other option { color: var(--ink); }

.pr-verdicts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); margin-top: var(--s6); }
.pr-card { padding: var(--s5); border: 1.5px solid rgba(243, 236, 225, 0.22); border-radius: var(--radius); min-width: 0; }
.pr-card .eyebrow { margin-bottom: var(--s2); }
.pr-big { margin: 0 0 var(--s2); font-family: var(--serif); font-size: var(--fs-xl); color: var(--on-dark); }
.pr-card p:last-child { margin: 0; color: var(--on-dark-2); }

.pr-measure { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: start; margin-top: var(--s7); }
.pr-measure .sub-head { margin-top: 0; }
.pr-listen { margin-top: var(--s4); }
.pr-measure-out { min-height: 3em; color: var(--on-dark); }
.pr-decay { width: 100%; height: 220px; display: block; }
.pr-model { margin-top: var(--s3); color: var(--on-dark-2); }
.pr-model summary { cursor: pointer; color: #f3e7d8; }
.pr-model-form { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); margin-top: var(--s3); font-size: var(--fs-sm); }
.pr-model-form input, .pr-model-form select { width: 5.5em; padding: 5px 8px; border-radius: var(--radius); border: 1.5px solid rgba(243, 236, 225, 0.4);
  background: transparent; color: var(--on-dark); font: inherit; }
.pr-model-form select { width: auto; }
.pr-model-form option { color: var(--ink); }
.pr-model-out { color: var(--on-dark); }

.pr-extras { margin-top: var(--s5); }
.pr-range { margin-top: var(--s4); }
.pr-range-bar { position: relative; height: 14px; border-radius: 7px; background: rgba(243, 236, 225, 0.12); }
.pr-range-bar span { position: absolute; top: 0; bottom: 0; }
.pr-range-target { background: rgba(140, 190, 120, 0.35); border-radius: 7px; }
.pr-range-band { top: 3px !important; bottom: 3px !important; background: #f3d27a; border-radius: 4px; opacity: 0.85; }
.pr-range-mid { width: 2px; margin-left: -1px; background: #f3ece1; top: -3px !important; bottom: -3px !important; }
.pr-range-text { margin: var(--s2) 0 0; font-size: var(--fs-sm); color: var(--on-dark-2); }
.pr-fix-seg { margin-top: var(--s3); }
.pr-notes { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.pr-note { display: grid; padding: 6px 12px; border-radius: var(--radius); border: 1.5px solid rgba(243, 236, 225, 0.4); color: var(--on-dark);
  font-family: var(--serif); font-size: var(--fs-lg); line-height: 1.1; text-align: left; background: none; cursor: pointer; }
.pr-note small { font-family: var(--body); font-size: 12px; color: var(--on-dark-2); }
.pr-note:hover, .pr-note.on { background: rgba(243, 210, 122, 0.16); border-color: #f3d27a; }
.pr-mode-where { margin-top: var(--s3); }
.pr-upload { cursor: pointer; }

@media (max-width: 760px) {
  .pr-controls { grid-template-columns: auto minmax(0, 1fr); }
  .pr-buttons { grid-column: 1 / -1; }
  .pr-verdicts, .pr-measure { grid-template-columns: minmax(0, 1fr); }
  .pr-hint { display: none; }
  .pr-hud { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .pr-controls .play.on { animation: none; } }

/* compact: the whole feature fits on a laptop screen */
.playroom { max-width: 900px; }
.pr-stage { max-width: min(100%, 720px, calc((100vh - 320px) * 1.4)); }
.playroom-head { margin-top: var(--s5); }
.playroom-head .sub-head { font-size: var(--fs-lg); }
.pr-controls { gap: var(--s4); margin-top: var(--s3); }
.pr-controls .play { width: clamp(60px, 6vw, 76px); }
.pr-controls .play .tri { border-left-width: 12px; border-top-width: 8px; border-bottom-width: 8px; }
.pr-seat-line { font-size: var(--fs-sm); }
.pr-compare { margin-top: var(--s3); padding-top: var(--s3); }
.pr-verdicts { gap: var(--s3); margin-top: var(--s4); }
.pr-card { padding: var(--s3) var(--s4); }
.pr-big { font-size: var(--fs-lg); }
.pr-card p:last-child { font-size: var(--fs-sm); }
.pr-measure { gap: var(--s5); margin-top: var(--s5); }
.pr-decay { height: 150px; }
.pr-stage { max-width: min(100%, 600px, calc((100vh - 420px) * 1.45)); }
.pr-hud { font-size: 11px; gap: var(--s3); right: var(--s4); flex-wrap: wrap; }
.pr-hint { top: auto; bottom: var(--s2); font-size: var(--fs-md); }

/* while the chord plays, the record shows a pause sign */
.pr-play.on .tri { width: 14px; height: 18px; margin-left: 0; border: 0; background: linear-gradient(90deg, var(--wine) 0 35%, transparent 35% 65%, var(--wine) 65%); }

/* the four plain-language cards sit to the right of the room view */
.playroom { max-width: none; display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); column-gap: var(--s6); align-items: start; }
.playroom > .pr-stage, .playroom > .pr-controls, .playroom > .pr-compare { grid-column: 1; }
.playroom > .pr-verdicts { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; align-self: start; }
.playroom > .pr-verdicts.pr-extras { grid-row: 4; margin-top: var(--s3); }
.playroom > .pr-measure { grid-column: 1 / -1; }
.playroom .pr-verdicts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.playroom .pr-card { padding: var(--s3) var(--s4); }
.playroom .pr-card .eyebrow { font-size: 11px; margin-bottom: 4px; }
.playroom .pr-big { font-size: var(--fs-md); line-height: 1.25; margin-bottom: 4px; }
.playroom .pr-card p:not(.eyebrow):not(.pr-big) { font-size: var(--fs-xs); line-height: 1.45; }
.playroom .pr-range-text { font-size: var(--fs-xs); }
.playroom .pr-range { margin-top: var(--s2); }
@media (max-width: 1000px) {
  .playroom { grid-template-columns: 1fr; }
  .playroom > .pr-verdicts, .playroom > .pr-verdicts.pr-extras { grid-column: 1; grid-row: auto; margin-top: var(--s4); }
}
.playroom > .pr-verdicts { grid-row: 1; }
.playroom > .pr-verdicts.pr-extras { grid-row: 2 / span 2; margin-top: var(--s3); }
.playroom > .pr-stage { grid-row: 1 / span 3; }
.playroom > .pr-controls { grid-row: 4; }
.playroom > .pr-compare { grid-row: 5; }
.playroom > .pr-verdicts { grid-row: 1; }
.playroom > .pr-verdicts.pr-extras { grid-row: 2; margin-top: var(--s3); }
.playroom > .pr-measure { grid-row: 6; }
@media (max-width: 1000px) { .playroom > * { grid-row: auto !important; } }
.playroom .pr-controls { grid-template-columns: auto minmax(0, 1fr); }
.playroom .pr-buttons { grid-column: 1 / -1; flex-wrap: wrap; gap: var(--s2) var(--s5); }
