*{box-sizing:border-box}body{margin:0;background:#f6f3ed;color:#242833;font:16px/1.5 system-ui,sans-serif}button,input,select{font:inherit}button,a{touch-action:manipulation}button{background:#fff;border:1px solid #c7c2b8;border-radius:7px;padding:10px 15px;cursor:pointer;color:#242833}button:hover{background:#efe5d3}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #bc632e;outline-offset:3px}a{color:inherit}header{background:#fff;border-bottom:1px solid #ddd;display:flex;justify-content:space-between;align-items:center;padding:12px 5vw}header img{width:185px;height:80px;object-fit:contain}nav{display:flex;gap:24px;align-items:center;font-size:14px}nav a{text-decoration:none}.draft{background:#f7e5c5;color:#764119;padding:5px 10px;border-radius:20px;font-weight:700;font-size:12px}main{max-width:1440px;margin:auto;padding:28px 4vw}.title{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.title p{margin:5px 0}h1{font:clamp(35px,4vw,55px)/1.1 Georgia,serif;margin:7px 0}.eyebrow{letter-spacing:2px;font-size:11px;font-weight:800}.toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#242833;color:white;padding:12px}.toolbar button{font-size:13px;padding:8px 10px}.toolbar strong{margin-left:auto;font-size:26px;font-variant-numeric:tabular-nums}.toolbar span{font-size:13px}#projector{border-radius:14px;overflow:hidden;box-shadow:0 12px 35px #18201d20}#stage{position:relative;height:570px;isolation:isolate;background:#3e4436 url('assets/independence/room-cleared.png') center/cover}.shade{position:absolute;inset:0;background:linear-gradient(#101d1c70,transparent 50%,#101510d9);z-index:-1}.mission{position:absolute;top:24px;left:30px;color:white;text-shadow:0 2px 12px #000}.mission span{font-size:10px;letter-spacing:2px;color:#f2d6a6;font-weight:800}.mission h2{font:clamp(21px,3vw,34px) Georgia,serif;margin:6px 0}#delegates{position:absolute;inset:130px 4% 48px;display:flex;align-items:flex-end;justify-content:center;gap:4%}.delegate{width:21%;max-width:210px;text-align:center;opacity:0;transform:translateY(100px) scale(.85);transition:transform 1s,opacity .7s;color:#fff}.delegate.visible{opacity:1;transform:translateY(0) scale(1)}.delegate img{display:block;width:100%;height:220px;border:5px solid #b99256;border-radius:50% 50% 12px 12px;object-fit:cover;object-position:center 20%;box-shadow:0 8px 20px #0009;background:#322d25}.delegate h3{font-size:15px;margin:8px 0 0;text-shadow:0 2px 5px #000}.delegate span{font-size:10px;letter-spacing:1px;color:#eed9b2}#stage.alarm .delegate{opacity:0;transform:translateY(130px) rotate(9deg) scale(.7);transition-duration:.65s}#king{position:absolute;inset:70px 12% 45px;display:flex;justify-content:center;align-items:center;gap:25px;z-index:4}#king[hidden]{display:none}#king figure{margin:0;width:245px;color:white;text-align:center;font-family:Georgia,serif}#king img{height:330px;width:100%;object-fit:cover;object-position:50% 16%;border:6px solid #d1b16d;box-shadow:0 10px 30px #0009;border-radius:110px 110px 10px 10px}#king figcaption{background:#702c2a;padding:8px}.royal{font:28px Georgia,serif;background:#f9efdc;padding:20px;border-radius:12px;max-width:300px;box-shadow:0 8px 30px #0005}.royal small{display:block;font:14px system-ui;margin-top:10px}#welcome{position:absolute;left:50%;top:53%;transform:translate(-50%,-50%);width:min(600px,90%);background:#faf6eeed;box-shadow:0 12px 40px #0005;text-align:center;padding:27px;border:1px solid #e0cfaf;border-radius:12px}#welcome[hidden]{display:none}#welcome small{display:block;font-size:11px;margin-top:15px}#welcome p{margin-top:0}.primary{background:#ad5328;color:white;border-color:#ad5328}.primary:hover{background:#90421e}.stagefoot{position:absolute;bottom:0;left:0;right:0;padding:14px 25px;color:#e4d2ac;display:flex;justify-content:space-between;font-size:11px;letter-spacing:1px}.soundbar{display:flex;align-items:center;gap:20px;background:white;padding:18px 24px}.soundbar b,.soundbar span{font-size:13px;white-space:nowrap}.meter{height:12px;position:relative;background:#e9e5de;border-radius:10px;flex:1}.meter i{display:block;background:#63816a;height:100%;width:0;border-radius:10px}.meter em{position:absolute;left:30%;top:-5px;height:22px;width:3px;background:#242833}.notes{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin-top:20px;font-size:14px}.notes p{background:#fff;border:1px solid #ded8ce;padding:18px;border-radius:8px}.notes b{display:block;font-size:11px;letter-spacing:1px;margin-bottom:8px}details{font-size:13px;margin-top:15px;padding:18px;background:#ece7dc;border-radius:8px}summary{cursor:pointer;font-weight:700}dialog{border:0;border-radius:13px;padding:30px;width:min(540px,94vw);max-height:90vh;box-shadow:0 20px 80px #0006}dialog::backdrop{background:#121b28aa}dialog h2{font-family:Georgia,serif}dialog label{display:block;margin:17px 0;font-size:14px;font-weight:600}dialog input:not([type=checkbox]),dialog select{display:block;width:100%;margin-top:6px;padding:9px}dialog p{font-size:13px;color:#62666a}.close{float:right;border:0}.check{display:flex;gap:8px}.reportrow{display:flex;justify-content:space-between;border-bottom:1px solid #ddd;padding:10px 0}#restart{margin-top:22px}#demoControls{background:#e6ddc9;padding:12px;border-radius:8px;margin-top:15px;font-size:12px}#error{color:#a12e2e}body.immersive{overflow:hidden}body.immersive #projector{position:fixed;inset:0;z-index:10;border-radius:0;display:flex;flex-direction:column}body.immersive #stage{flex:1;height:auto}body.immersive .soundbar{padding:10px 20px}@media(max-width:700px){header{padding:10px}header img{width:120px}nav{gap:10px;font-size:11px}nav a:last-child{display:none}main{padding:18px 12px}.title{align-items:flex-start}.eyebrow{font-size:9px}.toolbar{gap:5px}.toolbar button{font-size:11px;padding:7px}.toolbar strong{font-size:22px}#stage{height:460px}.mission{left:18px;top:15px}.delegate img{height:140px;border-width:3px}.delegate h3{font-size:11px}.delegate span{font-size:8px}#delegates{gap:3%;inset:120px 3% 55px}#king{inset:90px 5% 50px;gap:10px}#king figure{width:165px}#king img{height:230px}.royal{font-size:19px;padding:12px;max-width:160px}.notes{grid-template-columns:1fr;gap:0}.soundbar{gap:10px;padding:12px}.soundbar b{max-width:125px;white-space:normal;font-size:11px}.stagefoot{font-size:9px;padding:12px}.draft{font-size:9px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* Full-length historical figures replace framed portrait cards. */
#stage{height:650px;background-position:center 46%}
#delegates{inset:125px 9% 42px;gap:2%;align-items:flex-end}
.delegate{width:23%;max-width:240px;position:relative}
.delegate img{height:390px;width:100%;object-fit:contain;object-position:center bottom;border:0;border-radius:0;box-shadow:none;background:transparent;filter:drop-shadow(8px 10px 6px #15181150)}
.delegate h3{background:#18251cbd;display:table;margin:6px auto 0;padding:2px 9px;border-radius:4px;font-size:14px}
.delegate span{font-size:9px;text-shadow:0 1px 4px #000}
#stage.alarm .delegate{transform:translateX(-150px) translateY(40px);opacity:0}
#king{inset:95px 12% 45px}
#king figure{width:290px}
#king img{height:420px;width:100%;object-fit:contain;object-position:center bottom;border:0;border-radius:0;box-shadow:none;filter:drop-shadow(7px 10px 8px #0005)}
#king figcaption{border-radius:4px;font:16px Georgia,serif}
body.immersive .delegate img{height:min(59vh,530px)}
body.immersive #king img{height:min(66vh,570px)}
@media(max-width:700px){#stage{height:470px}#delegates{inset:125px 3% 50px;gap:0}.delegate{width:25%}.delegate img{height:215px}.delegate h3{font-size:10px;padding:2px 4px}.delegate span{font-size:7px}#king{inset:85px 5% 45px}#king figure{width:175px}#king img{height:275px}.royal{font-size:17px}body.immersive .delegate img{height:min(56vh,400px)}}
/* Keep comparable full-body scale despite differently shaped source canvases. */
.delegate{--figure-height:370px}
#hancock{--figure-height:390px}#adams{--figure-height:355px}#franklin{--figure-height:370px}#jefferson{--figure-height:410px}
.delegate img{height:var(--figure-height);width:auto;max-width:none;margin-left:50%;transform:translateX(-50%)}
body.immersive .delegate img{height:min(calc(var(--figure-height)*1.2),56vh)}
@media(max-width:700px){.delegate img{height:calc(var(--figure-height)*.54)}body.immersive .delegate img{height:min(calc(var(--figure-height)*.85),51vh)}}

/* Locomotion: travel across the room with separately articulated lower legs. */
#delegates{overflow:visible;pointer-events:none}
.delegate,.delegate.visible,#stage.alarm .delegate{transition:none;transform:none}
#stage.alarm .delegate.visible{opacity:1}
.delegate .personRig{--figure-ratio:.5;position:relative;height:var(--figure-height);width:calc(var(--figure-height)*var(--figure-ratio));margin:0 auto;transform-origin:50% 100%;filter:drop-shadow(7px 8px 5px #101a1d40)}
.delegate .personRig img{position:absolute;inset:0;width:100%;height:100%;max-width:none;margin:0;transform:none;object-fit:fill;filter:none;border:0;background:transparent}
.personRig>img:first-child{clip-path:polygon(0 0,100% 0,100% 75%,0 75%)}
.personRig .strideLeg.left{clip-path:polygon(0 74.7%,51% 74.7%,51% 100%,0 100%);transform-origin:40% 75%}
.personRig .strideLeg.right{clip-path:polygon(51% 74.7%,100% 74.7%,100% 100%,51% 100%);transform-origin:61% 75%}
.walking .personRig{animation:walkingWeight .62s ease-in-out infinite}
.walking .strideLeg.left{animation:leftStep .62s ease-in-out infinite}
.walking .strideLeg.right{animation:rightStep .62s ease-in-out infinite}
.fleeing .personRig,.fleeing .strideLeg{animation-duration:.3s!important}
.motionPaused .personRig,.motionPaused .strideLeg,.teacherPaused .personRig,.teacherPaused .strideLeg{animation-play-state:paused!important}
@keyframes walkingWeight{0%,100%{transform:translateY(0) rotate(-.6deg)}25%,75%{transform:translateY(-4px)}50%{transform:translateY(0) rotate(.6deg)}}
@keyframes leftStep{0%,100%{transform:rotate(7deg)}50%{transform:rotate(-7deg)}}
@keyframes rightStep{0%,100%{transform:rotate(-7deg)}50%{transform:rotate(7deg)}}
body.immersive .delegate .personRig{height:min(calc(var(--figure-height)*1.2),56vh);width:calc(min(var(--figure-height)*1.2,56vh)*var(--figure-ratio))}
#king:not([hidden]) figure{animation:royalEntrance 1.1s ease-out both}
@keyframes royalEntrance{from{transform:translateX(180px);opacity:0}to{transform:translateX(0);opacity:1}}
@media(max-width:700px){.delegate .personRig{height:calc(var(--figure-height)*.54);width:calc(var(--figure-height)*.54*var(--figure-ratio))}body.immersive .delegate .personRig{height:min(calc(var(--figure-height)*.85),51vh);width:calc(min(var(--figure-height)*.85,51vh)*var(--figure-ratio))}}
@media(prefers-reduced-motion:reduce){.walking .personRig,.walking .strideLeg,#king:not([hidden]) figure{animation:none!important}}

.royalRig{position:relative;width:100%;height:420px;transform-origin:50% 100%}
#king .royalRig img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:none}
.royalRig>img:first-child{clip-path:polygon(0 0,100% 0,100% 75%,0 75%)}
.royalRig .strideLeg.left{clip-path:polygon(0 74.7%,51% 74.7%,51% 100%,0 100%);transform-origin:40% 75%}
.royalRig .strideLeg.right{clip-path:polygon(51% 74.7%,100% 74.7%,100% 100%,51% 100%);transform-origin:61% 75%}
#king:not([hidden]) .royalRig{animation:walkingWeight .55s ease-in-out 2}
#king:not([hidden]) .strideLeg.left{animation:leftStep .55s ease-in-out 2}
#king:not([hidden]) .strideLeg.right{animation:rightStep .55s ease-in-out 2}
body.immersive .royalRig{height:min(66vh,570px)}
.motionPaused .royalRig,.motionPaused #king figure,.motionPaused #king .strideLeg{animation-play-state:paused!important}
@media(max-width:700px){.royalRig{height:275px}}
@media(prefers-reduced-motion:reduce){#king .royalRig,#king .strideLeg{animation:none!important}}

/* The complete assembly: seven staggered rows, one distinct figure per signer. */
#stage{container-type:size;overflow:hidden}
#delegates{display:block;inset:115px 2% 55px;pointer-events:none}
.delegate,#hancock,#adams,#franklin,#jefferson{--figure-height:calc(16cqh + var(--depth)*2cqh);position:absolute;width:1px;max-width:none;height:var(--figure-height);padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;pointer-events:none;outline-offset:12px}
.delegate.visible{pointer-events:auto}
.delegate:hover,.delegate:focus-visible{background:transparent;z-index:80!important}
.delegate .personRig,body.immersive .delegate .personRig{position:absolute;bottom:0;left:0;height:var(--figure-height);width:calc(var(--figure-height)*var(--figure-ratio));margin:0;translate:-50% 0;filter:drop-shadow(2px 5px 3px #131c1770)}
.standingArt{background-repeat:no-repeat}
.delegate .personRig>.standingArt{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;transform:none;background-color:transparent}
.personRig>.standingArt:first-child{clip-path:polygon(0 0,100% 0,100% 75%,0 75%)}
.delegate .nameTag{display:none;position:absolute;bottom:calc(100% + 8px);left:50%;translate:-50% 0;white-space:nowrap;color:#fff;background:#172b24ee;padding:6px 9px;border:1px solid #c7a974;border-radius:5px;font:12px system-ui;letter-spacing:0}
.delegate:hover .nameTag,.delegate:focus-visible .nameTag{display:block}
.delegate.walking{will-change:transform,opacity}
#arrival{position:absolute;right:24px;top:95px;z-index:85;color:#fff;background:#172b24de;border:1px solid #d4b88070;border-radius:7px;padding:10px 14px;min-width:180px;pointer-events:none}
#arrival small,#arrival b,#arrival span{display:block}#arrival small{font-size:8px;letter-spacing:1.8px;color:#e3c492}#arrival b{font:19px Georgia;margin:3px 0}#arrival span{font-size:10px;color:#e4d7bd}
#signing{position:absolute;top:95px;left:24px;z-index:86;border-left:3px solid #c78c40;background:#fbf0dfe8;padding:12px 20px;pointer-events:none;border-radius:4px;max-width:300px}
#signing small,#signing strong,#signing .signature{display:block}#signing small{font-size:8px;letter-spacing:1.8px}#signing strong{font:20px Georgia;margin:4px 0}#signing .signature{font:italic 32px 'Brush Script MT',Georgia,serif;color:#393024;clip-path:inset(0);animation:signatureReveal 1.5s 2.5s both}#signing p{font-size:10px;margin:3px 0}
@keyframes signatureReveal{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}
.rosterDialog{width:min(970px,96vw)}.rosterDialog h2{font-size:32px;margin:8px 0}.rosterFilters{display:grid;grid-template-columns:1fr 1fr;gap:20px}.rosterFilters label{margin:8px 0}.rosterFilters input,.rosterFilters select{border:1px solid #cbc7bf;border-radius:5px;background:#fff}
#rosterList{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;max-height:49vh;overflow-y:auto;padding:5px}
.rosterCard{display:flex;align-items:center;gap:12px;text-align:left;min-height:125px;padding:8px;border:1px solid #ddd6ca;background:#faf8f2}
.rosterCard[hidden]{display:none}.rosterCard.collected{border-color:#9aaa8a;background:#f0f4ed}.rosterCard span{min-width:0}.rosterCard b,.rosterCard small,.rosterCard em{display:block}.rosterCard b{font-size:13px}.rosterCard small{font-size:10px;color:#5f625c;margin:4px 0}.rosterCard em{font-size:9px;font-style:normal;letter-spacing:.4px;color:#7b552c}
.rosterArt{width:54px;height:108px;flex-shrink:0;object-fit:contain}.rosterArt:not(img){width:calc(108px*var(--tile-ratio));max-width:80px}
#assemblyProgress{display:inline-block;padding:5px 10px;background:#e7eddc;color:#3d563c;border-radius:20px;margin:0 0 10px;font-weight:600;font-size:12px}
#detailArt{height:310px;display:flex;justify-content:center;background:#eeece4;border-radius:9px;padding:10px}.detailArt{height:290px;width:calc(290px*var(--tile-ratio));object-fit:contain;max-width:none}
#signerSource{font-size:12px}#signerLikeness,.historyCaveat{font-size:11px;color:#777}
#king{z-index:90}.mission{z-index:88;pointer-events:none}#welcome{z-index:95}.stagefoot{z-index:85;pointer-events:none}#stage.alarm .mission h2{font-size:clamp(28px,4vw,52px);color:#ffe5b5}
@media(max-width:700px){.draft{max-width:132px;text-align:center;font-size:8px}#delegates{inset:125px 0 50px}.delegate,#hancock,#adams,#franklin,#jefferson{--figure-height:calc(14cqh + var(--depth)*1.8cqh)}#arrival{right:12px;top:85px;padding:6px 9px;min-width:140px}#arrival b{font-size:14px}#signing{left:12px;top:85px;max-width:190px;padding:8px}#signing strong{font-size:15px}#signing .signature{font-size:23px}#signing p{display:none}#rosterList{grid-template-columns:repeat(2,1fr);gap:5px}.rosterCard{gap:6px;padding:5px}.rosterCard b{font-size:11px}.rosterArt{width:40px;height:90px}.rosterArt:not(img){width:calc(90px*var(--tile-ratio))}.rosterFilters{gap:8px}.rosterDialog{padding:20px}.toolbar span{font-size:11px}#welcome p{font-size:13px}}
@media(prefers-reduced-motion:reduce){#signing .signature{animation:none}}

/* Shared scene navigation. */
.sceneSwitcher{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;padding:15px 20px;background:#f4eee3;border-bottom:1px solid #d8cbb6;color:#203b3d;font:13px system-ui,sans-serif}.sceneSwitcher>span{font-size:9px;letter-spacing:1.4px;font-weight:750;margin-right:8px}.sceneSwitcher a{display:block;text-decoration:none;padding:9px 14px;border:1px solid #cfc3b0;border-radius:6px;color:#203b3d;background:#fff9ee}.sceneSwitcher a[aria-current=page]{background:#263f40;color:#fff6e2;border-color:#263f40}.sceneSwitcher a:focus-visible{outline:3px solid #ad5328;outline-offset:3px}body.presentation>.sceneSwitcher,body.immersive>.sceneSwitcher{display:none}@media(max-width:600px){.sceneSwitcher{padding:10px;gap:7px}.sceneSwitcher>span{width:100%;text-align:center;margin:0}.sceneSwitcher a{padding:8px 10px;font-size:11px}}

/* Foreground arrivals: the newest delegate dances large until replaced. */
.delegate{transform-origin:50% 100%}
.delegate.spotlight:hover,.delegate.spotlight:focus-visible{z-index:110!important}
.delegate.spotlight .personRig{filter:drop-shadow(3px 8px 5px #13201666)}
.delegate.spotlight .personRig{animation:colonialShuffle 1.1s ease-in-out infinite}
.delegate.spotlight .strideLeg.left{animation:shuffleLeft 1.1s ease-in-out infinite}
.delegate.spotlight .strideLeg.right{animation:shuffleRight 1.1s ease-in-out infinite}
.delegate.spotlight[data-dance="1"] .personRig{animation:libertyTwist 1.3s ease-in-out infinite}
.delegate.spotlight[data-dance="1"] .strideLeg.left{animation:twistLeft 1.3s ease-in-out infinite}
.delegate.spotlight[data-dance="1"] .strideLeg.right{animation:twistRight 1.3s ease-in-out infinite}
.delegate.spotlight[data-dance="2"] .personRig{animation:huzzahHop 1.4s ease-in-out infinite}
.delegate.spotlight[data-dance="2"] .strideLeg.left{animation:hopLeft 1.4s ease-in-out infinite}
.delegate.spotlight[data-dance="2"] .strideLeg.right{animation:hopRight 1.4s ease-in-out infinite}
.delegate.spotlight[data-dance="3"] .personRig{animation:patriotJig .95s ease-in-out infinite}
.delegate.spotlight[data-dance="3"] .strideLeg.left{animation:jigLeft .95s ease-in-out infinite}
.delegate.spotlight[data-dance="3"] .strideLeg.right{animation:jigRight .95s ease-in-out infinite}
.delegate.spotlight[data-dance="4"] .personRig{animation:congressSlide 1.8s ease-in-out infinite}
.delegate.spotlight[data-dance="4"] .strideLeg.left{animation:slideLeft 1.8s ease-in-out infinite}
.delegate.spotlight[data-dance="4"] .strideLeg.right{animation:slideRight 1.8s ease-in-out infinite}
.delegate.spotlight[data-dance="5"] .personRig{animation:independenceBounce 1.2s ease-in-out infinite}
.delegate.spotlight[data-dance="5"] .strideLeg.left{animation:bounceLeft 1.2s ease-in-out infinite}
.delegate.spotlight[data-dance="5"] .strideLeg.right{animation:bounceRight 1.2s ease-in-out infinite}
@keyframes colonialShuffle{0%,100%{transform:translateX(-5px) rotate(-3deg)}25%,75%{transform:translateY(-4px)}50%{transform:translateX(5px) rotate(3deg)}}
@keyframes shuffleLeft{0%,100%{transform:rotate(12deg)}50%{transform:rotate(-9deg) translateY(-3px)}}
@keyframes shuffleRight{0%,100%{transform:rotate(-9deg) translateY(-3px)}50%{transform:rotate(12deg)}}
@keyframes libertyTwist{0%,100%{transform:skewY(-2deg) scaleX(.9) rotate(-4deg)}50%{transform:skewY(2deg) scaleX(1) rotate(4deg)}}
@keyframes twistLeft{0%,100%{transform:rotate(-13deg)}50%{transform:rotate(13deg)}}
@keyframes twistRight{0%,100%{transform:rotate(-13deg)}50%{transform:rotate(13deg)}}
@keyframes huzzahHop{0%,35%,70%,100%{transform:translateY(0)}18%{transform:translateY(-13px) rotate(-3deg)}53%{transform:translateY(-13px) rotate(3deg)}}
@keyframes hopLeft{0%,35%,70%,100%{transform:rotate(0)}18%{transform:rotate(15deg)}53%{transform:rotate(-10deg)}}
@keyframes hopRight{0%,35%,70%,100%{transform:rotate(0)}18%{transform:rotate(-10deg)}53%{transform:rotate(15deg)}}
@keyframes patriotJig{0%,100%{transform:translateX(-4px) rotate(-2deg)}25%,75%{transform:translateY(-6px)}50%{transform:translateX(4px) rotate(2deg)}}
@keyframes jigLeft{0%,100%{transform:rotate(-18deg) translateY(-3px)}50%{transform:rotate(7deg)}}
@keyframes jigRight{0%,100%{transform:rotate(-7deg)}50%{transform:rotate(18deg) translateY(-3px)}}
@keyframes congressSlide{0%,100%{transform:translateX(-12px) rotate(-2deg)}50%{transform:translateX(12px) rotate(2deg)}}
@keyframes slideLeft{0%,100%{transform:rotate(-6deg)}50%{transform:rotate(12deg)}}
@keyframes slideRight{0%,100%{transform:rotate(-12deg)}50%{transform:rotate(6deg)}}
@keyframes independenceBounce{0%,50%,100%{transform:translateY(0) scaleY(.97)}25%,75%{transform:translateY(-8px) scaleY(1.02)}25%{rotate:-3deg}75%{rotate:3deg}}
@keyframes bounceLeft{0%,50%,100%{transform:rotate(7deg)}25%,75%{transform:rotate(-5deg)}}
@keyframes bounceRight{0%,50%,100%{transform:rotate(-7deg)}25%,75%{transform:rotate(5deg)}}
#arrival{max-width:38%;min-width:0}#arrival b{font-size:clamp(18px,2.4cqw,30px)}#arrival em{display:block;margin-top:6px;color:#f0c77e;font-size:11px;font-style:normal}#king{z-index:125}
.motionPaused .delegate.spotlight .personRig,.motionPaused .delegate.spotlight .strideLeg,.delegate.teacherPaused.spotlight .personRig,.delegate.teacherPaused.spotlight .strideLeg{animation-play-state:paused!important}
@media(max-width:700px){#arrival{max-width:44%;top:95px}#arrival b{font-size:16px}#arrival em{font-size:9px}}
@media(prefers-reduced-motion:reduce){.delegate.spotlight .personRig,.delegate.spotlight .strideLeg{animation:none!important}}

/* Keep microphone permission feedback visible in normal and projector modes. */
#welcome #error{color:#8f2620;background:#fff0e7;border:1px solid #d7a291;border-radius:6px;padding:12px;margin:14px 0 0;font-size:13px;line-height:1.5;text-align:left;max-height:28vh;overflow:auto}#welcome #error:empty{display:none}#welcome #micStatus{padding:10px;border-radius:6px;background:#e7efe8;color:#244b36;font-size:13px;line-height:1.5}#welcome #cancelMic{font-size:12px;padding:7px 10px}#welcome{max-height:calc(100% - 130px);overflow:auto}#welcome [hidden]{display:none!important}

.shushSettings{border:1px solid #d9c9af;border-radius:8px;padding:12px 16px;margin:22px 0}.shushSettings legend{font-weight:700;font-size:14px;color:#775028}.shushSettings label{margin:12px 0}.shushSettings output{float:right;color:#775028}.shushSettings #shushNotice{font-size:11px;line-height:1.5}.shushSettings input[type=range]{padding:0}

.sceneSwitcher label{display:flex;align-items:center;gap:12px;margin:0;font:9px system-ui;letter-spacing:1px}.sceneSwitcher select{width:260px;margin:0;padding:9px 12px;border:1px solid #c9bba5;border-radius:5px;color:#233c3b;background:#fff;font:13px system-ui;letter-spacing:0}.sceneSwitcher a.allScenes{background:#263f40;color:#fff6e2}.sceneSwitcher{padding:12px 20px}@media(max-width:600px){.sceneSwitcher{flex-direction:column}.sceneSwitcher select{width:240px}.sceneSwitcher label{gap:8px}}

/* Teacher-configurable King George III strikes */
#strikeStatus{font-size:17px;margin-left:0;background:#ead7b0;color:#3c2818;padding:6px 12px;border-radius:7px}#strikeStatus.atLimit{background:#ad382a;color:white}.strikeSettings{border:1px solid #c6b38f;border-radius:9px;margin:20px 0;padding:16px}.strikeSettings legend{font-weight:800}.strikeSettings p{font-size:14px}.strikeSettings button{margin:8px}#strikeEnd{position:absolute;inset:30% 8% auto;z-index:180;padding:28px;background:#fff3dcf5;border:3px solid #9a412b;border-radius:12px;text-align:center;box-shadow:0 10px 30px #0007}#strikeEnd b,#strikeEnd strong,#strikeEnd span{display:block}#strikeEnd strong{font:clamp(25px,3vw,42px)/1.2 Georgia,serif;margin:15px 0}#reportStrikeMessage{font-size:24px;font-weight:800;color:#8a3024}#reportStrikeTools{margin:16px 0;padding:14px;background:#f7ead2;border-radius:8px}#reportStrikeTools button{margin:4px}#strikeRule{font-weight:700;color:#883725}[hidden]{display:none!important}

.micFeedback{background:white;padding:0 20px;flex-shrink:0}.micFeedback p{margin:0;padding:8px 0;font-size:13px}.micFeedback button{margin-bottom:10px}

/* Arrival geography and historical autograph */
#arrivalContext{position:absolute;left:2.5%;top:23%;width:clamp(170px,25%,310px);max-height:72%;z-index:110;pointer-events:none;background:#fbf3e2f5;color:#26332d;border:1px solid #c3a56b;border-radius:10px;padding:12px 14px;box-shadow:0 8px 24px #17251d44;text-align:center;overflow:hidden;opacity:1}#arrivalContext>small{font-size:9px;font-weight:800;letter-spacing:1.7px;color:#84502c}#contextName{display:block;font:clamp(17px,1.7vw,25px)/1.15 Georgia,serif;margin:5px 0}#contextColony{display:block;font-size:14px;font-weight:750;color:#8b4228}#arrivalContext figure{margin:8px 0 0}#colonyImage{display:block;margin:auto;width:auto;height:clamp(130px,21vh,220px);max-width:100%;border-radius:5px}#arrivalContext figcaption{font-size:9px;color:#685c47;margin-top:4px;letter-spacing:.3px}.signatureInk{height:60px;display:flex;align-items:center;justify-content:center;border-top:1px solid #c3a56b77;padding-top:7px}.signatureInk img{max-width:100%;max-height:100%;object-fit:contain;mix-blend-mode:multiply}#arrivalContext.inkReveal .signatureInk img{animation:signatureInkReveal 2.1s ease-out both}#arrivalContext.paused .signatureInk img{animation-play-state:paused}#arrivalContext.signatureOnly{top:44%;max-height:42%}body.immersive #colonyImage{height:clamp(130px,27vh,300px)}@keyframes signatureInkReveal{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}@media(max-width:700px){#arrivalContext{left:10px;top:26%;width:32%;min-width:0;padding:8px;max-height:69%}#contextName{font-size:14px}#contextColony{font-size:11px}#arrivalContext>small{font-size:7px}#colonyImage{height:135px}#arrivalContext figcaption{font-size:7px}.signatureInk{height:45px}body.immersive #colonyImage{height:20vh}}@media(prefers-reduced-motion:reduce){#arrivalContext.inkReveal .signatureInk img{animation:none}}

#arrivalContext.paused .signatureInk img{animation:none;clip-path:none}

#micRecovery{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:0 0 10px;font-size:12px}#micRecovery label{display:flex;gap:6px;align-items:center}#micRecovery select{max-width:260px;padding:5px;font-size:12px}#micRecovery button{padding:6px 9px;font-size:12px}#micSignal{display:block;font-size:11px;color:#5b605d}body.immersive .micFeedback{max-height:150px;overflow:auto}@media(max-width:700px){#micRecovery select{max-width:180px}}

/* Guided demo uses the real controls with temporary settings. */
#demoControls{flex-wrap:wrap;align-items:center}#demoTip{flex-basis:100%;margin:4px 0 10px;line-height:1.5;font-size:15px}.demoSettingsTip{background:#e8eddf;border-left:4px solid #63816a;padding:12px;line-height:1.5;color:#263f40}#demoGuide{font-weight:700}

/* Large Washington shushing logo on the opening screen. */
#welcome{width:min(800px,94%);top:52%;padding:22px;max-height:calc(100% - 100px)}
#welcome .welcomeLogo{display:block;width:min(690px,100%);height:auto;max-height:clamp(115px,27cqh,200px);object-fit:contain;margin:0 auto 20px}
@media(max-width:700px){#welcome{padding:16px;max-height:calc(100% - 90px)}#welcome .welcomeLogo{max-height:118px;margin-bottom:14px}#welcome button{margin:3px 0}#welcome small{margin-top:10px}}

/* Keep legs attached and fully painted throughout dances and entrances. */
.personRig>.standingArt:first-child,.personRig>img:first-child,.royalRig>img:first-child{clip-path:none;opacity:1}
.personRig .strideLeg,.royalRig .strideLeg{display:none!important}

.ambientSettings{border:1px solid #c6b38f;border-radius:9px;padding:16px;margin:20px 0}.ambientSettings legend{font-weight:800}.ambientSettings output{float:right;color:#775028}.ambientSettings input[type=range]{padding:0}.ambientSettings p{line-height:1.5}#ambientToggle[aria-pressed=true]{background:#e6eddc;color:#2d4c39}

/* Keep both streaks visible above the scene, even after the current run resets. */
.toolbar .streakStat{font-size:12px;letter-spacing:0;font-variant-numeric:tabular-nums;padding:6px 9px;border:1px solid #ffffff35;border-radius:6px;white-space:nowrap}.toolbar .bestStreak{background:#ead7b0;color:#3c2818;border-color:#ead7b0}#workModeHelp{background:#f4eee2;padding:10px;border-radius:6px}#targetLabel{white-space:normal;text-align:right;max-width:170px}#strikeEndConsequence{font-weight:600;margin-bottom:12px}

.kingVoiceSettings{border:1px solid #c6b38f;border-radius:9px;padding:16px;margin:20px 0}.kingVoiceSettings legend{font-weight:800}.kingVoiceSettings output{float:right;color:#775028}.kingVoiceSettings input[type=range]{padding:0}.kingVoiceSettings p{line-height:1.5}

/* Projection-sized progress counters stay in a dedicated row above the Hall. */
.classroomStats{display:flex;gap:12px;padding:12px 16px;background:#242833;border-top:1px solid #ffffff35;flex-shrink:0}
.classroomStats .streakStat,.classroomStats #strikeStatus{flex:1;min-width:0;margin:0;display:flex;align-items:center;justify-content:center;gap:18px;padding:12px 18px;border:2px solid #ffffff55;border-radius:8px;color:#fff;background:#343c48}
.classroomStats .bestStreak{background:#ead7b0;color:#33220e;border-color:#ead7b0}
.classroomStats #strikeStatus{background:#f7e6d0;color:#542612;border-color:#e2b57a}
.classroomStats #strikeStatus.atLimit{background:#a32d24;color:#fff;border-color:#edb3a9}
.classroomStats span{font-size:clamp(16px,1.6vw,24px);font-weight:750;line-height:1.2}
.classroomStats strong{font-size:clamp(34px,3.3vw,54px);font-weight:850;line-height:1.1;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:.01em}
body.immersive .classroomStats strong{font-size:clamp(38px,3.8vw,64px)}
@media(max-width:1000px){.classroomStats .streakStat,.classroomStats #strikeStatus{flex-direction:column;gap:5px;padding:10px 6px;text-align:center}}
@media(max-width:600px){.classroomStats{gap:6px;padding:8px}.classroomStats span{font-size:13px}.classroomStats strong,body.immersive .classroomStats strong{font-size:28px}.classroomStats .streakStat,.classroomStats #strikeStatus{padding:9px 4px}}

/* The royal warning has its own clear space above George's entrance. */
#stage.alarm .mission{z-index:140;top:14px;left:16px;right:16px;padding:12px 18px;text-align:center;background:#17251df5;border:2px solid #e4c58b;border-radius:9px;box-shadow:0 5px 18px #0006}
#stage.alarm .mission h2{margin:5px 0 0;font-size:clamp(28px,3.6vw,48px);line-height:1.15;color:#fff1cf}
#stage.alarm #king{top:150px}
#stage.alarm #king .royalRig,body.immersive #stage.alarm #king .royalRig{height:min(570px,calc(100cqh - 250px))}
@media(max-width:700px){#stage.alarm .mission{top:10px;left:10px;right:10px;padding:10px}#stage.alarm .mission h2{font-size:clamp(25px,5vw,34px)}#stage.alarm #king{top:140px}}

/* Constitutional Convention: a silent reminder keeps the assembly on stage. */
#quietNotice{position:absolute;z-index:120;inset:auto 5% 7%;margin-inline:auto;width:max-content;max-width:90%;padding:16px 30px;background:#f9efdc;color:#362a21;border:2px solid #bd8e55;border-radius:12px;text-align:center;box-shadow:0 8px 24px #0007}
#quietNotice strong{display:block;font:700 clamp(24px,4vw,42px)/1.2 Georgia,serif}
#quietNotice span{display:block;margin-top:5px}
[data-scene="convention"] .delegate .personRig{--figure-height:clamp(72px,17cqh,136px)}
[data-scene="convention"] .delegate.spotlight .personRig{--figure-height:clamp(130px,54cqh,460px)}
[data-scene="convention"] .detailArt{object-fit:contain}
.sceneDropdown a.sceneOption{color:inherit;text-decoration:none}
