*{box-sizing:border-box}body{margin:0;background:#100e12;color:#f9ead1;font-family:'DM Sans',sans-serif;overscroll-behavior:none}button{font:inherit;cursor:pointer;touch-action:manipulation;color:inherit;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid white;outline-offset:3px}main{max-width:1450px;margin:auto;padding:0 24px}header{height:77px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff14}.brand{font-weight:800;letter-spacing:3px;text-decoration:none;color:#fff;font-size:15px}.brand span{color:#eab85d}.title{font-family:'Playfair Display',Georgia,serif;font-size:25px;letter-spacing:3px}.title b{color:#e7a14b}.tools{display:flex;gap:8px}.tools button{background:none;border:1px solid #ffffff26;border-radius:6px;padding:10px;font-size:10px;letter-spacing:1px}.hud{display:flex;align-items:center;justify-content:space-between;padding:19px 8px;gap:15px}small{display:block;font-size:10px;letter-spacing:1.8px;color:#b4a693}.hud strong{display:block;font-size:20px;margin-top:5px}.hud>div:first-child strong{font-family:Georgia,serif}.applause{width:22%}meter{width:100%;height:18px;margin-top:6px}meter::-webkit-meter-bar{background:#29232a;border:0}meter::-webkit-meter-optimum-value{background:linear-gradient(90deg,#c97b36,#f8d87f)}.stage{height:min(58vw,580px);min-height:330px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 25%,#315f60,#142b35 60%,#14101e);border-radius:10px 10px 0 0;--accent:#831e33}.architecture{position:absolute;inset:0 6% 20%;display:flex;justify-content:space-around;opacity:.5}.architecture i{width:19%;border:7px double #ceab6a;border-radius:90px 90px 0 0;background:linear-gradient(90deg,#070d18aa,transparent,#0008);box-shadow:0 0 30px #0008}.curtain{position:absolute;top:0;bottom:22%;width:11%;z-index:3;background:repeating-linear-gradient(90deg,var(--accent),#220e1b 22%,var(--accent) 40%);box-shadow:0 8px 20px #0009}.curtain.left{left:-4%;transform:rotate(8deg);border-radius:0 0 90% 0}.curtain.right{right:-4%;transform:rotate(-8deg);border-radius:0 0 0 90%}.lights{position:absolute;inset:0;background:conic-gradient(from 145deg at 20% 0%,transparent,#ffe8a21c 13deg,transparent 35deg),conic-gradient(from 145deg at 80% 0%,transparent,#ffe8a21c 13deg,transparent 35deg)}.floor{position:absolute;inset:61% 0 0;background:repeating-linear-gradient(92deg,transparent 0 79px,#30180f66 80px 82px),linear-gradient(#9a5a35,#c28a51 48%,#5a3020);transform:perspective(400px) rotateX(18deg);transform-origin:top;box-shadow:0 -6px 20px #ffc96c22}.musician{position:absolute;top:17%;width:23%;height:53%;text-align:center;transform-origin:50% 100%}.musician:nth-child(1){left:4%}.musician:nth-child(2){left:27%}.musician:nth-child(3){left:50%}.musician:nth-child(4){left:73%}.character{width:100%;height:100%;background-image:url('assets/cast.png');background-size:500% 100%;background-repeat:no-repeat;filter:drop-shadow(0 12px 6px #0007)}.musician .character{animation:breathe 2s ease-in-out infinite}.musician:nth-child(2) .character{animation-delay:-.6s}.musician:nth-child(3) .character{animation-delay:-1.1s}.musician:nth-child(4) .character{animation-delay:-1.6s}.label{position:absolute;top:102%;left:50%;transform:translateX(-50%);white-space:nowrap;color:#ffedce;font-size:10px;letter-spacing:1px;text-shadow:0 2px 3px #000}.cue{position:absolute;top:-15%;left:50%;transform:translateX(-50%);border:3px solid #fff5;border-radius:50%;width:42px;height:42px;display:grid;place-items:center;opacity:0;background:#26202b;color:#fff;font-size:24px;box-shadow:0 0 0 6px #0003}.warning .cue{opacity:1;color:#ffe2a3}.ready .cue{border-color:#ffcb59;background:#91631c;box-shadow:0 0 24px #ffce67;animation:pulse .6s infinite}.warning .character{animation:wobble .35s infinite}.crash .character{animation:crash .6s ease-out}.saved .character{animation:happy .5s ease-out}.hero{position:absolute;left:38.5%;bottom:3%;height:40%;width:20%;transform:translateX(-50%);transition:left .17s ease-out;z-index:4;pointer-events:none}.hero .character{background-position:0 0;animation:breathe 1.2s infinite}.hero.conduct .character{animation:conduct .28s ease-out}.hero.walk .character{animation:wobble .17s}.hero span{position:absolute;top:0;left:55%;font-weight:800;color:#ffe2a3;white-space:nowrap;text-shadow:0 2px 5px black}.footlights{position:absolute;bottom:0;left:0;right:0;height:8px;background:repeating-linear-gradient(90deg,#ffcf71 0 6px,#261b22 6px 90px);box-shadow:0 0 20px #ffbc4e55;z-index:5}#toast{position:absolute;top:5%;left:50%;transform:translateX(-50%);z-index:6;text-align:center;background:#15111dd9;padding:10px 20px;border-radius:30px;font-size:13px;opacity:0;transition:opacity .15s;pointer-events:none}.overlay{position:absolute;inset:0;z-index:10;background:linear-gradient(90deg,#0f0b14ef,#0f0b14b0 60%,#0f0b1455),url('assets/concept-v101.webp') center/cover;display:flex;align-items:center;padding:6%;backdrop-filter:blur(3px)}.overlay.hidden{display:none}.intro{max-width:530px}.eyebrow{font-size:10px;letter-spacing:3px;color:#edbc68}h1{font:900 clamp(30px,4vw,57px)/1.05 'Playfair Display',Georgia,serif;margin:15px 0}h1 em{color:#edbc68;font-style:normal}.intro p{font-size:14px;line-height:1.7;color:#d6cebf;max-width:450px}.instructions{display:flex;gap:30px;margin:22px 0;font-weight:bold}.instructions small{font-weight:400;letter-spacing:0;margin-top:5px}.primary{border:0;background:#f1c575;color:#241b1c;font-weight:800;letter-spacing:1px;border-radius:6px;padding:17px 24px}.primary span{margin-left:25px}.soundHint{margin-top:14px;letter-spacing:.4px}footer{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#201a21;padding:17px 25px;border-radius:0 0 10px 10px;border:1px solid #ffffff10}.arrows,.actions{display:flex;gap:10px}.arrows button{width:72px;height:65px;font-size:35px;background:#302832;border:1px solid #76604c;border-radius:12px;box-shadow:0 4px #100d12}.actions button{height:65px;border-radius:12px;padding:0 24px;font-weight:800;font-size:14px;background:#e9b95f;color:#211b20;border:1px solid #ffdf94;box-shadow:0 4px #866536}.actions small{color:inherit;font-size:8px;margin-top:5px;letter-spacing:1px}.actions #hush{background:#283d46;color:#c8e1e5;border-color:#51666a;box-shadow:0 4px #15262d}.actions button:disabled{opacity:.35}.arrows button:active,.actions button:active{transform:translateY(3px);box-shadow:none}.rhythm{text-align:center}.beats{display:flex;gap:18px;justify-content:center;margin:12px 0 6px}.beats i{width:14px;height:14px;background:#53454a;border-radius:50%;border:1px solid #ad9370}.beats i.on{background:#ffe2a1;box-shadow:0 0 18px #ffbf52;transform:scale(1.3)}.rhythm>span{font-size:9px;color:#97868b;letter-spacing:1px}.bottom{display:flex;justify-content:space-between;padding:16px 0;color:#6e636e;font-size:9px;letter-spacing:2px}@keyframes breathe{50%{transform:translateY(-4px) rotate(1deg)}}@keyframes wobble{25%{transform:rotate(-4deg)}75%{transform:rotate(4deg)}}@keyframes conduct{50%{transform:rotate(-13deg) translateY(-15px)}}@keyframes crash{40%{transform:rotate(20deg) translateY(-15px)}80%{transform:rotate(-12deg)}}@keyframes happy{50%{transform:translateY(-24px)}}@keyframes pulse{50%{transform:translateX(-50%) scale(1.15)}}
@media(max-width:650px){main{padding:0 8px}header{height:60px}.brand{font-size:10px;letter-spacing:1px}.title{font-size:17px;letter-spacing:1px}.tools button{padding:8px 5px;font-size:8px}.hud{padding:12px 3px;gap:7px}.hud strong{font-size:14px}.hud small{font-size:8px;letter-spacing:1px}.hud>div:first-child{max-width:38%}.stage{height:58vh;min-height:355px;max-height:530px}.musician{top:25%;height:37%}.hero{width:27%;height:30%;bottom:12%}.character{background-size:500% 100%}.cue{width:30px;height:30px;font-size:19px}.label{font-size:7px}.intro p{font-size:12px}.instructions{gap:19px;font-size:12px;margin:15px 0}.intro{width:100%}.overlay{padding:6%}.primary{padding:14px 18px}.soundHint{font-size:9px}footer{padding:12px 8px;gap:8px}.arrows{gap:6px}.arrows button{width:48px;height:60px;font-size:29px}.actions{gap:6px}.actions button{padding:0 12px;height:60px;font-size:11px}.actions #hush{padding:0 7px;font-size:9px}.actions small{font-size:6px;letter-spacing:.3px}.beats{gap:7px}.beats i{width:10px;height:10px}.rhythm small{font-size:7px;letter-spacing:.4px}.bottom{font-size:7px;letter-spacing:.6px}.applause{width:20%}}

/* Individual sheet windows preserve complete silhouettes and proportions. */
.hero .character{width:auto;height:100%;max-width:100%;aspect-ratio:472/732;margin:auto;background-size:455.296610% 100%;background-position:0.000000% 0;}
.musician:nth-child(1) .character{width:auto;height:100%;max-width:100%;aspect-ratio:375/732;margin:auto;background-size:573.066667% 100%;background-position:26.606539% 0;}
.musician:nth-child(2) .character{width:auto;height:100%;max-width:100%;aspect-ratio:369/732;margin:auto;background-size:582.384824% 100%;background-position:47.584270% 0;}
.musician:nth-child(3) .character{width:auto;height:100%;max-width:100%;aspect-ratio:407/732;margin:auto;background-size:528.009828% 100%;background-position:69.804822% 0;}
.musician:nth-child(4) .character{width:auto;height:100%;max-width:100%;aspect-ratio:526/732;margin:auto;background-size:408.555133% 100%;background-position:100.000000% 0;}

/* V1.1: larger foreground hero and contextual teaching. */
.hero{height:64%;width:32%;bottom:0;z-index:4}.hero .character{max-width:none}.musician{top:20%;height:47%}.label{top:103%}.musician.selected:after{content:"";position:absolute;bottom:-8%;left:15%;right:15%;height:12px;border:2px solid #f8d087;border-radius:50%;box-shadow:0 0 20px #f4c66b66;pointer-events:none}.callout{position:absolute;top:-12%;left:50%;transform:translateX(-50%);white-space:nowrap;background:#f8c46c;color:#251a1b;border-radius:8px;padding:7px 10px;font-weight:800;font-size:12px;display:none}.warning .callout{display:block}.cue{top:12%;left:88%;z-index:5}.dangerbar{position:absolute;top:0;left:25%;right:25%;height:5px;background:#1f1422;border-radius:5px;display:none;overflow:hidden}.warning .dangerbar{display:block}.dangerbar i{display:block;height:100%;background:#f6ae66}.stage #guide{position:absolute;top:12px;left:50%;transform:translateX(-50%);width:max-content;max-width:94%;padding:10px 20px;border-radius:9px;background:#19121eeb;color:#ffe4af;font-size:14px;text-align:center;font-weight:700;z-index:7;pointer-events:none}.stage #guide:empty{display:none}.stage #guide.go{background:#17513b;color:#e0ffde}.actions #direct.go{background:#a7ed9e;color:#133a24;border-color:#dcffd1;box-shadow:0 0 22px #9bff8a66,0 4px #447536}.actions #direct{min-width:190px}.actions #direct small{font-size:8px;letter-spacing:.4px}#toast{top:auto;bottom:5%;z-index:6}.intro p{line-height:1.9}.intro .instructions{margin:14px 0}
@media(max-width:650px){.hero{height:49%;width:40%;bottom:3%}.musician{top:34%;height:31%}.callout{font-size:8px;padding:5px;top:-17%}.stage #guide{font-size:11px;padding:9px 10px}.actions #direct{min-width:103px;padding:0 7px}.actions #direct small{font-size:6px;max-width:98px}.cue{width:23px;height:23px;font-size:15px;left:84%}.dangerbar{top:-2%}.intro p{line-height:1.7}h1{margin:10px 0}}

/* V2: animated stage, back-facing Maestro, three-act concert. */
#scene{position:absolute;inset:0;width:100%;height:100%;z-index:4;pointer-events:none}#cast{position:absolute;inset:0;z-index:5;pointer-events:none}.musician,.musician:nth-child(n){top:13%;height:48%;width:22%;transform:none}.musician:nth-child(1){left:3.2%}.musician:nth-child(2){left:27%}.musician:nth-child(3){left:50.8%}.musician:nth-child(4){left:74.6%}.musician.selected:after{display:none}.callout{top:0;font-size:11px;max-width:100%;white-space:normal;min-width:140px;text-align:center}.dangerbar{top:13%;left:18%;right:18%;height:5px}.urgent .callout{background:#ff9d76}.urgent .dangerbar i{background:#ff755f}.label{top:103%;background:#1c131a99;border-radius:20px;padding:5px 9px}.actions #jump{background:#343047;color:#e6ddff;border-color:#6e608c;box-shadow:0 4px #181426}.actions #direct{min-width:150px}.actions button{padding:0 18px}.rhythm{min-width:130px}.floor{inset:59% 0 0}.paused *{animation-play-state:paused!important}.intro p{max-width:520px}.stage #guide{font-size:12px;padding:9px 15px}#toast{bottom:1.5%;padding:8px 18px}#loadError{color:#ffc490;font-size:12px}.overlay{z-index:12}.stage:has(.overlay:not(.hidden)) #guide{display:none}
@media(max-width:850px){footer{flex-wrap:wrap;justify-content:center}.rhythm{order:3;width:100%;display:flex;align-items:center;justify-content:center;gap:18px}.beats{margin:0}.rhythm>span{font-size:10px}.arrows{margin-right:auto}.actions{margin-left:auto}.actions button{padding:0 10px}.actions #direct{min-width:114px}.stage{height:57vw;min-height:345px;max-height:580px}.callout{font-size:9px;min-width:80px}.dangerbar{top:17%}.label{font-size:8px;padding:3px 5px}.musician,.musician:nth-child(n){top:19%;height:41%}}
@media(max-width:500px){header .brand{display:none}.stage{height:380px;min-height:0}.arrows button{width:44px;height:58px}.actions button{padding:0 7px;height:58px;font-size:10px}.actions #direct{min-width:98px}.actions #jump{font-size:9px}.actions #hush{font-size:8px;padding:0 5px}.actions small{font-size:6px}.callout{font-size:8px;min-width:68px;padding:5px 3px}.musician,.musician:nth-child(n){top:24%;height:36%}.dangerbar{top:22%}.stage #guide{font-size:10px;max-width:96%}.intro .instructions{gap:20px}footer{padding:10px 5px;gap:10px}.actions{gap:5px}.arrows{gap:5px}.rhythm{gap:14px}.bottom{font-size:6px}}

/* V3: the characters carry the warnings; level choice appears only between concerts. */
.level-picker{display:flex;gap:9px;margin-top:18px}.level-picker button{border:1px solid #bfa36b;background:#27202d;color:#f7dfad;width:42px;height:40px;border-radius:8px;font-weight:700}.level-picker .current{background:#f0c472;color:#271b20}.level-picker button:disabled{opacity:.25;cursor:default}.stage #scene{z-index:4}

/* The audience sits below the stage without reducing its playable area. */
.audience-box{height:108px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 0,#5a3240,#160e18 75%);border-top:1px solid #ca99543d}#audience{display:block;width:100%;height:100%;pointer-events:none}@media(max-width:650px){.audience-box{height:78px}}

/* Holding an arrow moves through a growing orchestra, without touch scrolling. */
.arrows button{touch-action:none}.hud>div:first-child strong{font-size:clamp(12px,1.6vw,20px)}
