:root{color-scheme:dark;--ink:#f6eddc;--muted:#ada7ab;--gold:#edc889;--panel:#222532;--line:#3c3d49;font-family:ui-rounded,"Avenir Next",system-ui,-apple-system,sans-serif;background:#161924;color:var(--ink)}
*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(ellipse at 50% 0,#303040 0,#161924 65%)}button,input,select{font:inherit}button,select{color:inherit;background:#2c2e3c;border:1px solid #50505c;border-radius:12px;min-height:44px;padding:10px 16px}button{cursor:pointer;touch-action:manipulation;transition:background .15s,transform .15s}button:hover{background:#3b3c4a}button:active{transform:scale(.97)}button:focus-visible,select:focus-visible,input:focus-visible,[role=button]:focus-visible{outline:3px solid var(--gold);outline-offset:4px}button:disabled{opacity:.5;cursor:default}button[aria-pressed=true]{border-color:var(--gold);background:#514433}input[type=range]{accent-color:var(--gold);min-height:44px;cursor:pointer;width:100%;margin:0}input[type=checkbox]{accent-color:var(--gold);width:20px;height:20px;flex:none}.concert{max-width:1150px;margin:0 auto;padding:30px 24px 20px}.masthead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.eyebrow{margin:0 0 5px;text-transform:uppercase;letter-spacing:.2em;color:var(--gold);font-size:11px;font-weight:700}h1{margin:0;font:500 clamp(28px,4vw,42px)/1.2 Georgia,serif;letter-spacing:-.03em}h1 span{color:var(--gold);font-size:.7em}.masthead button{background:transparent;font-size:13px}.masthead button span{display:inline-grid;place-content:center;border:1px solid var(--muted);border-radius:50%;width:22px;height:22px;margin-left:5px}#help{padding:18px;line-height:1.7;border:1px solid var(--line);border-radius:12px;margin-bottom:20px;color:#d5ced0}.theatre{border:1px solid #5b4c48;border-radius:18px;overflow:hidden;background:#232431;box-shadow:0 20px 70px #0003}.stage-top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 24px;background:#222430;font-size:12px}.seat-label{color:#aaa0a0;letter-spacing:.2em;font-size:10px}#melody-caption{color:var(--gold)}#stage{display:block;width:100%;height:auto;overflow:hidden}.stage-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 22px;background:#1b1e2a;font-size:12px;color:#d6c9b6}.melody-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--gold);margin-right:7px;box-shadow:0 0 10px #edc88970}.switch{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer}.player{padding:22px 24px 15px;border:1px solid var(--line);background:#222532;border-radius:16px;margin-top:20px}.transport{display:flex;align-items:center;gap:18px}.play{background:var(--gold);color:#332c2a;border:0;min-width:105px;font-weight:700;min-height:54px}.play:hover{background:#f7d9a7}.piece-picker{flex:1;min-width:0}.piece-picker label{display:block;font-size:11px;letter-spacing:.15em;text-transform:uppercase;color:var(--muted);margin:0 0 4px}.piece-picker select{background:transparent;border:0;padding:0 22px 0 0;min-height:44px;font-size:19px;width:100%;max-width:540px}.piece-picker option{background:#222532}.piece-picker p{font-size:12px;color:var(--muted);margin:4px 0 0}.timeline{display:flex;align-items:center;gap:14px;margin:12px 0 0;font:12px ui-monospace,monospace;color:#c6bbad}.timeline input{flex:1}.settings{display:grid;grid-template-columns:1fr 1fr auto;gap:24px;align-items:center;border-top:1px solid var(--line);padding-top:12px}.settings>label:not(.switch){display:grid;grid-template-columns:1fr auto;font-size:12px;color:#c6c1c4}.settings input[type=range]{grid-column:1/-1}output{color:var(--gold)}.settings .switch{font-size:12px;color:var(--muted)}.mix{margin-top:25px}.mix-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}h2{font:500 23px Georgia,serif;margin:0}.mix-heading p{font-size:12px;color:var(--muted);margin:7px 0 0}.mix-heading button{font-size:12px}.sections{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.section-control{background:#222532;border:1px solid var(--line);border-radius:14px;overflow:hidden;position:relative}.section-control.is-melody{box-shadow:0 0 0 2px var(--gold),0 0 25px #edc88918}.section-toggle{border:0;border-radius:0;background:transparent;width:100%;display:flex;flex-direction:column;align-items:center;gap:7px;padding:14px 3px 12px;user-select:none;-webkit-user-select:none;touch-action:none}.section-toggle[aria-pressed=true]{background:transparent;border:0}.section-icon{color:var(--section-color);font:28px Georgia,serif}.section-name{font-size:12px;font-weight:600}.section-state{font-size:11px;color:var(--muted)}.section-control.is-muted .section-icon{opacity:.35}.section-control .solo{width:100%;border:0;border-top:1px solid var(--line);border-radius:0;padding:8px 4px;min-height:44px;font-size:11px;color:#c5bbab;background:#ffffff04}.section-control .solo[aria-pressed=true]{background:#665338;color:#ffe5b6}.build-bar{margin-top:15px;border:1px dashed #5a4e45;border-radius:14px;display:flex;align-items:center;gap:18px;padding:12px 16px}.build-bar>button{font-size:13px}.build-bar p{font-size:12px;color:var(--muted);flex:1;margin:0}footer{text-align:center;font-size:11px;color:#898590;margin-top:25px;letter-spacing:.03em}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
.orchestra-section{cursor:pointer;outline:none;touch-action:none;-webkit-user-select:none;user-select:none}.section-wash{fill:var(--section-color);opacity:.065;stroke:var(--section-color);stroke-width:1.5;transition:opacity .3s}.orchestra-section:hover .section-wash,.orchestra-section:focus-visible .section-wash{opacity:.2}.orchestra-section:focus-visible .section-wash{stroke:#fff0cf;stroke-width:4}.orchestra-section.is-melody .section-wash{fill:#ffe3a1;opacity:.25;stroke:#edc889;stroke-width:3}.section-title{fill:#fff2da;font:600 13px system-ui,sans-serif;text-anchor:middle;paint-order:stroke;stroke:#5c443c;stroke-width:3px;stroke-linejoin:round}.orchestra-section.is-muted .musicians{opacity:.45}.musicians{transition:opacity .2s}.musician .body-sway,.musician .bow,.musician .playing-arm,.musician .drumstick,.conductor-body,.baton-arm,.left-arm{transform-box:fill-box;transform-origin:center}.musician .bow{transform-origin:30% 60%;transform:rotate(25deg)}.musician .playing-arm{transform:rotate(13deg)}.is-playing .body-sway{animation:sway var(--beat,.5s) ease-in-out infinite alternate}.is-playing .bow{animation:bow var(--beat,.5s) ease-in-out infinite alternate}.is-playing .playing-arm{animation:breath var(--beat,.5s) ease-in-out infinite alternate}.is-playing .drumstick{animation:strike calc(var(--beat,.5s) / 2) ease-out infinite alternate}.is-running .conductor-body{animation:sway var(--beat,.5s) ease-in-out infinite alternate}.is-running .baton-arm{transform-origin:left bottom;animation:conduct var(--beat,.5s) ease-in-out infinite}.is-running .left-arm{animation:breath calc(var(--beat,.5s) * 2) ease-in-out infinite alternate}.conductor-hit{cursor:ns-resize;touch-action:none}.conductor-label{fill:#e5cfaf;font:9px system-ui,sans-serif;text-anchor:middle;letter-spacing:.13em}#conductor.is-dragging .conductor-label{fill:#fff}.note-spark{opacity:0;fill:var(--section-color)}.is-playing .note-spark{opacity:.7}.solo-halo{fill:none;stroke:#fff1c7;stroke-dasharray:5 5;stroke-width:2;opacity:0}.is-solo .solo-halo{opacity:.8}@keyframes sway{from{transform:rotate(-2deg)}to{transform:rotate(2deg)}}@keyframes bow{from{transform:translate(-4px,-2px) rotate(-5deg)}to{transform:translate(4px,2px) rotate(8deg)}}@keyframes breath{from{transform:rotate(-3deg)}to{transform:rotate(3deg)}}@keyframes strike{from{transform:rotate(-20deg)}to{transform:rotate(20deg)}}@keyframes conduct{0%,100%{transform:rotate(-12deg)}50%{transform:rotate(12deg)}}
@media(max-width:700px){.concert{padding:20px 14px}.masthead{margin-bottom:18px}.masthead button{font-size:0;padding:8px}.masthead button span{font-size:14px;margin:0}.stage-top{padding:12px 14px;font-size:11px}.seat-label{font-size:11px}.stage-bottom{padding:5px 12px;font-size:11px}.stage-bottom .switch{gap:4px}.player{padding:15px}.transport{gap:12px}.play{min-width:65px;padding:10px;font-size:17px}.play span{display:none}.piece-picker select{font-size:15px}.piece-picker p{font-size:11px}.settings{grid-template-columns:1fr 1fr;gap:8px 20px}.settings .switch{grid-column:1/-1;min-height:30px}.sections{grid-template-columns:repeat(3,1fr)}.build-bar{flex-wrap:wrap;gap:10px}.build-bar p{flex-basis:40%;line-height:1.5}.build-bar #add-section{width:100%}.section-title{font-size:16px}h2{font-size:21px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.is-playing .note-spark{opacity:1}.is-playing .bow{transform:rotate(0deg)}}

html,body{overscroll-behavior:none;-webkit-text-size-adjust:100%;-webkit-touch-callout:none}
.section-wash{opacity:.05;stroke-width:2}.orchestra-section:hover .section-wash,.orchestra-section:focus-visible .section-wash{opacity:.16}.orchestra-section.is-melody .section-wash{fill:#ffe3a1;opacity:.3;stroke:#edc889;stroke-width:3.5}.section-plaque{transition:opacity .2s,filter .25s}.orchestra-section.is-melody .section-plaque{filter:drop-shadow(0 0 7px #ffe1a0)}.section-title{fill:#41250f;font:600 13px Georgia,"Times New Roman",serif;text-anchor:middle;letter-spacing:.06em;stroke:none}.orchestra-section.is-muted .riser-tint{opacity:.12}.orchestra-section.is-muted .section-plaque{opacity:.72}
@media(max-width:700px){.section-title{font-size:15px}}
.melody-ring{fill:none;stroke:#e79b2a;stroke-width:6;stroke-linejoin:round;opacity:0;transition:opacity .25s;filter:drop-shadow(0 0 6px #ffd98a)}.orchestra-section.is-melody .melody-ring{opacity:.95}.orchestra-section.is-melody .section-wash{fill:#ffe3a1;opacity:.35}

/* ---- the concert ------------------------------------------------------ */

/* The set-list replaces the old dropdown. A concert is something you see,
   not something you pull down, so the pieces are laid out in order with the
   act they belong to. */
.programme{margin-top:25px}
.programme-heading{display:flex;align-items:baseline;justify-content:space-between;gap:15px;margin-bottom:14px;flex-wrap:wrap}
.programme-heading h2{font:500 23px Georgia,serif;margin:0}
.programme-heading p{font-size:12px;color:var(--muted);margin:0}
.acts{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.act{background:#222532;border:1px solid var(--line);border-radius:14px;padding:14px 16px 10px}
.act-title{margin:0;font:600 14px Georgia,serif;letter-spacing:.04em;color:var(--gold)}
.act-blurb{margin:5px 0 10px;font-size:11px;color:var(--muted);line-height:1.5}
.act-pieces{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.programme-piece{width:100%;display:grid;grid-template-columns:26px 1fr;grid-template-rows:auto auto;gap:1px 10px;align-items:center;text-align:left;background:#2c2e3c;border:1px solid #3f414e;border-radius:9px;min-height:44px;padding:8px 10px}
.programme-piece:hover{background:#3b3c4a}
.programme-number{grid-row:1/3;font:600 13px ui-monospace,monospace;color:var(--gold);opacity:.8;text-align:center}
.programme-piece-title{font-size:13px;font-weight:600;line-height:1.25}
.programme-composer{font-size:11px;color:var(--muted);line-height:1.3}
.programme-piece[aria-pressed=true]{border-color:var(--gold);background:#514433}
.programme-piece[aria-pressed=true] .programme-piece-title{color:#ffe5b6}
.programme-piece.is-current{box-shadow:0 0 0 1px var(--gold) inset}
#concert-position{color:#cbb9a4;font-size:11px;letter-spacing:.08em;white-space:nowrap}
.now-playing{font-size:15px!important;color:var(--ink)!important;margin:0!important;line-height:1.35}
.piece-picker label{margin-bottom:2px!important}

/* ---- the audience ----------------------------------------------------- */

/* The players put their instruments down and clap. The arms are drawn from
   the shoulder, so the rotation pivot is the shoulder. */
.clap-hands{opacity:0;transition:opacity .18s}
.is-clapping .clap-hands{opacity:1}
/* The forearms stay together. A clap that swings the hands apart reads as
   a shrug; this one presses them in and lets them separate only a little.
   The pivot is the elbow, so the forearm moves and the upper arm holds
   still, which is what a clap actually looks like. */
.clap-arm{transform-box:fill-box;transform-origin:100% 0%}
.is-clapping .clap-arm--left{animation:clap-left var(--clap-period,.42s) ease-in-out infinite;animation-delay:var(--clap-phase,0s)}
.is-clapping .clap-arm--right{animation:clap-right var(--clap-period,.42s) ease-in-out infinite;animation-delay:var(--clap-phase,0s)}
.clap-palms{transform-box:fill-box;transform-origin:center}
.is-clapping .clap-palms{animation:clap-press var(--clap-period,.42s) ease-in-out infinite;animation-delay:var(--clap-phase,0s)}
/* While the audience is applauding the players are not playing. */
.is-clapping .is-playing .bow,.is-clapping .is-playing .playing-arm,.is-clapping .is-playing .drumstick,.is-clapping .is-playing .body-sway{animation:none}
.is-clapping .note-spark{opacity:0}
/* The instruments come down onto the players' laps. Without this the
   applause is only a pair of small arms in front of a violin, which reads
   as a pose rather than as clapping. */
.is-clapping .instrument{opacity:0;transform:translateY(16px) rotate(24deg)}
.instrument{transition:opacity .22s,transform .28s}
@keyframes clap-left{0%,100%{transform:rotate(14deg)}45%{transform:rotate(1deg)}}
@keyframes clap-right{0%,100%{transform:rotate(-14deg)}45%{transform:rotate(-1deg)}}
@keyframes clap-press{0%,100%{transform:scale(1)}40%{transform:scale(.8)}}
/* A flash of light where the hands meet. It has to be bright and quick or
   it reads as a shirt button. */
.clap-spark{opacity:0;transform-box:fill-box;transform-origin:center}
.is-clapping .clap-spark{animation:clap-spark var(--clap-period,.42s) ease-out infinite;animation-delay:var(--clap-phase,0s)}
@keyframes clap-spark{0%,100%{opacity:0;transform:scale(.3)}10%{opacity:1;transform:scale(1.25)}36%{opacity:0;transform:scale(.55)}}
/* The conductor turns to the house and joins in. The baton comes down and
   the hands come together in front of the body, where the audience can see
   them, because the conductor is drawn from behind. */
.is-clapping .baton-arm,.is-clapping .left-arm{opacity:0}
.conductor-clap{opacity:0;transition:opacity .18s}
.is-clapping .conductor-clap{opacity:1}
.conductor-clap-arm{transform-box:fill-box;transform-origin:100% 0%}
.is-clapping .conductor-clap-arm--left{animation:conductor-clap-left var(--clap-period,.42s) ease-in-out infinite}
.is-clapping .conductor-clap-arm--right{animation:conductor-clap-right var(--clap-period,.42s) ease-in-out infinite}
.conductor-clap-palms{transform-box:fill-box;transform-origin:center}
.is-clapping .conductor-clap-palms{animation:clap-press var(--clap-period,.42s) ease-in-out infinite}
.conductor-clap-spark{opacity:0;transform-box:fill-box;transform-origin:center}
.is-clapping .conductor-clap-spark{animation:clap-spark var(--clap-period,.42s) ease-out infinite}
@keyframes conductor-clap-left{0%,100%{transform:rotate(12deg)}45%{transform:rotate(1deg)}}
@keyframes conductor-clap-right{0%,100%{transform:rotate(-12deg)}45%{transform:rotate(-1deg)}}

/* On a narrow screen the stage header has room for the caption but not for
   the act, so the act moves into the "now playing" line instead of being
   lost. The act is the thing that tells a child the concert has a shape. */
/* On a narrow screen the stage header has room for the caption but not for
   the act, so the act moves into the "now playing" line instead of being
   lost. The act is the thing that tells a child the concert has a shape. */
.programme-act{display:none}
@media(max-width:700px){
  .acts{grid-template-columns:1fr}
  .programme-heading h2{font-size:20px}
  #concert-position{display:none}
  .now-playing .programme-act{display:inline}
}

/* With reduced motion the audience still applauds, but it does not animate:
   the hands stay together and the caption carries the moment. */
@media(prefers-reduced-motion:reduce){
  .is-clapping .clap-arm{animation:none!important;transform:rotate(6deg)}
  .is-clapping .clap-hands{opacity:1}
}
