:root{color-scheme:dark;--gold:#d6ae73;--ivory:#f5ebd9;--red:#a82f22}*{box-sizing:border-box}body{margin:0;background:#120d0a;color:var(--ivory);font-family:'Songti SC','Noto Serif CJK SC','SimSun',serif}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;border:1px solid #9f8c70;background:transparent;border-radius:5px;padding:12px 22px;transition:background .2s,box-shadow .2s}button:hover,button:focus-visible{background:#d6ae731b;outline:1px solid var(--gold)}button:disabled{opacity:.4;cursor:default}[hidden]{display:none!important}header{height:80px;display:flex;align-items:center;justify-content:space-between;margin:0 3%;border-bottom:1px solid #b18b4b88;position:relative;z-index:5}a{color:inherit;text-decoration:none}.brand{font-size:29px;white-space:nowrap;letter-spacing:3px;display:flex;align-items:center;gap:12px}.brand img{height:42px;width:42px;object-fit:contain;display:block}nav{display:flex;gap:54px;height:100%}nav button{border:0;border-radius:0;font-size:21px;padding:0 8px;position:relative}nav button.active{color:var(--gold)}nav button.active:after{content:'';height:3px;background:var(--gold);position:absolute;bottom:0;left:0;right:0}#homeBtn{border:0;font-size:17px}#home{position:relative;min-height:calc(100svh - 80px);background:url(assets/cover.png) center/cover}.coverShade{position:absolute;inset:0;background:linear-gradient(90deg,#0b0805aa,#0b080533,#0b080577)}.homeCopy{position:relative;text-align:center;padding:18vh 20px 100px}.homeCopy small{letter-spacing:8px;color:var(--gold)}.homeCopy h1{font-size:clamp(60px,8vw,120px);margin:26px 0;letter-spacing:20px}.homeCopy p{font-size:22px;letter-spacing:4px}.homeCopy button{margin:26px}.homeCopy .subtle{font-size:14px;letter-spacing:1px;color:#cfbfaa}.stage{height:calc(100svh - 302px);min-height:470px;position:relative;overflow:hidden;background:linear-gradient(90deg,transparent 40%,#100b08b0 72%),url(assets/stage.png) center/cover}.chapter{position:absolute;top:25px;left:3%;z-index:3;letter-spacing:3px;color:#d9c6a7;font-size:18px}.instrumentVisual{position:absolute;width:59%;height:100%;left:0;bottom:0}.sceneWindow{position:absolute;inset:32px 0 0;overflow:hidden;mask-image:linear-gradient(90deg,transparent,black 9%,black 87%,transparent)}.sceneWindow img{position:absolute;width:175%;max-width:none;height:auto;left:-2%;top:-17%;}.strike{position:absolute;left:45%;top:52%;width:100px;height:40px;border:1px solid #e7b968;border-radius:50%;opacity:0;pointer-events:none}.hit .strike{animation:ripple .55s ease-out}.hit .sceneWindow{animation:tap .2s ease-out}@keyframes ripple{0%{opacity:.7;transform:scale(.2)}100%{opacity:0;transform:scale(2)}}@keyframes tap{50%{transform:translateY(3px)}}aside{position:absolute;left:62%;right:4%;top:8%;bottom:40px;z-index:2}.eyebrow{font-size:12px;letter-spacing:4px;color:#b29b7d}aside h1{font-size:clamp(28px,3vw,51px);font-weight:500;color:var(--gold);letter-spacing:3px;margin:12px 0 12px}aside .lead{font-size:19px;letter-spacing:3px;margin:0 0 24px}.goldLine{height:3px;width:44px;background:var(--gold);margin-bottom:22px}h2{font-weight:400;font-size:27px;margin:10px 0}.bodyText{font-size:16px;line-height:1.9;color:#d5c7b4}.instrumentChoices{display:flex;gap:12px;margin-top:18px}.instrumentChoices button{border:1px solid transparent;padding:0 0 7px;width:33%;color:#d6c8b5}.instrumentChoices button.selected{border-bottom-color:var(--gold);color:var(--gold)}.thumb{display:block;aspect-ratio:1.2;position:relative;overflow:hidden;border-radius:6px;mask-image:radial-gradient(ellipse,black 50%,transparent 75%)}.thumb img{position:absolute;width:300%;max-width:none;left:-45%;top:-33%}.instrumentChoices strong{font-size:22px;font-weight:400}.draft{color:#a99780;font-size:13px;line-height:1.6;margin-top:15px}.cameraToggle{position:absolute;bottom:15px;left:3%;z-index:4;background:#100b08bb;font-size:14px;padding:9px 14px}.controls{border-top:1px solid #b18b4b88;padding:15px 3% 46px;background:linear-gradient(#1c120e,#100b08)}.controlHint{display:flex;justify-content:space-between;font-size:15px;letter-spacing:1px;color:#c9bca9}#camStatus{color:#b7aa99}.timeline{display:flex;gap:20px;align-items:center;margin:16px 0 18px;font-family:Georgia,serif;font-size:14px}.timeline input{flex:1;accent-color:var(--gold);height:4px;cursor:pointer}.actions{display:flex;justify-content:space-between}.actions button{min-width:190px;padding:12px 24px;font-size:18px}.primary{background:linear-gradient(110deg,#c33b27,#8b281e);border-color:#b94b35}.next{color:var(--gold);border-color:var(--gold)}.ai{position:fixed;bottom:8px;left:3%;font:clamp(18px,2.8vmin,30px)/1.2 sans-serif;color:#c7b69c;z-index:6;pointer-events:none}.sleeveVisual{position:absolute;left:5%;bottom:0;width:55%;height:92%;display:flex;justify-content:center}.sleeveVisual img{height:100%;max-width:100%;object-fit:contain}.previewTag{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:12px;color:#c7b69d;padding:5px 12px;background:#130e0bce;border-radius:20px}.notes{display:flex;flex-direction:column;gap:18px;margin-top:35px;color:#cbbb9f}.notes i{font-size:12px;font-style:normal;color:#8d806e;margin-left:14px}.faceVisual{position:absolute;left:-8%;width:80%;bottom:0}.faceVisual svg{width:100%;display:block;overflow:visible}.faceVisual .previewTag{bottom:8px}#movingArm{transform-origin:550px 650px}.roleHeading{display:flex;align-items:center;gap:18px}.roleHeading h2{font-size:36px;color:var(--gold);letter-spacing:6px}.roleHeading span{background:#862e24;padding:7px 12px;font-size:15px}.maskChoices{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-top:18px}.maskChoices button{padding:5px 3px;border-color:#5b4935;border-radius:3px;position:relative}.maskChoices img{height:49px;width:100%;object-fit:contain}.maskChoices small{display:block;font:10px sans-serif;color:#bcaa8d}.maskChoices .selected{border-color:var(--gold);background:#d6ae7326}#toast{position:fixed;top:90px;left:50%;transform:translateX(-50%);z-index:20;background:#302118;padding:12px 24px;border:1px solid #b18b4b;opacity:0;pointer-events:none;transition:opacity .3s}#toast.visible{opacity:1}#camera{position:fixed;bottom:230px;left:3%;width:200px;z-index:10;border:1px solid var(--gold);transform:scaleX(-1);border-radius:6px}#cursor{position:fixed;width:32px;height:32px;border:2px solid var(--gold);border-radius:50%;pointer-events:none;z-index:100;transform:translate(-50%,-50%);background:#d6ae7344}.dwelling{box-shadow:inset 0 -5px #d6ae73!important}dialog{background:#21160f;border:1px solid var(--gold);color:var(--ivory);padding:45px;text-align:center;border-radius:8px}dialog::backdrop{background:#000b}dialog button{margin:20px 8px 0}dialog small{color:var(--gold);letter-spacing:5px}@media(max-width:850px){header{height:64px}.brand{font-size:20px;gap:8px}.brand img{height:34px;width:34px}nav{gap:12px}nav button{font-size:16px}#homeBtn{font-size:12px;padding:5px}.stage{height:auto;min-height:850px}aside{top:450px;left:7%;right:7%;bottom:auto}.instrumentVisual{height:440px;width:100%;top:10px}.sceneWindow img{width:172%}.sleeveVisual{height:430px;width:90%;left:5%;top:20px}.faceVisual{width:110%;left:-5%;top:50px;bottom:auto}.instrumentChoices{max-width:420px}.thumb{max-height:90px}.cameraToggle{bottom:10px}.actions button{min-width:0;padding:10px 14px;font-size:14px}.controlHint{font-size:12px}.ai{position:static;padding:10px 3%;font-size:20px}.maskChoices img{height:42px}.faceVisual .previewTag{display:none}.stage:has(#faceVisual:not([hidden])){min-height:900px}}
.sceneWindow{inset:35px 0 25px;mask-image:radial-gradient(ellipse 65% 65%,#000 65%,transparent 98%)}.sceneWindow svg{width:100%;height:100%;display:block}.thumb{mask-image:radial-gradient(ellipse,black 45%,transparent 73%)}
.faceVisual{left:0;width:63%}.faceVisual svg{overflow:hidden}.faceVisual .previewTag{left:55%}@media(max-width:850px){.faceVisual{width:100%;left:0}}
#movingArm{transform-origin:0 0}

#instrumentArt{width:100%;height:100%;padding-top:35px}.faceVisual canvas{width:100%;display:block}.faceNav{display:flex;gap:14px;align-items:center;margin-top:28px}.faceNav button{padding:9px 14px;font-size:14px}.faceNav span{color:var(--gold);font:14px Georgia}.roleHeading{margin-top:28px}#maskDetail{min-height:100px}
.sleeveVisual{left:0;width:61%;height:100%;align-items:center}.sleeveVisual video{width:100%;height:100%;object-fit:contain}.stage:has(#sleeveVisual:not([hidden])){background-color:#0d0907}@media(max-width:850px){.sleeveVisual{width:100%;height:430px;top:25px}}

.stage:has(#sleeveVisual:not([hidden])){background:#100b08}.sleeveVisual video{mask-image:linear-gradient(90deg,transparent,#000 2%,#000 96%,transparent)}

/* Shared three-act composition: generous stage, compact reading panel. */
header{height:68px}nav{gap:42px}.brand{font-size:26px}
.stage,.stage:has(#sleeveVisual:not([hidden])){height:calc(100svh - 238px);min-height:500px;background:linear-gradient(90deg,transparent 52%,#100b08a8 72%,#100b08c9),url(assets/stage.png) center/cover}
.chapter{top:22px;font-size:15px;letter-spacing:2px}
aside{left:72%;right:2.4%;top:7%;bottom:auto;max-height:86%;overflow:auto;padding:22px 22px 24px;background:linear-gradient(135deg,#251910ed,#100c09e8);border:1px solid #b18b4b55;border-radius:3px;box-shadow:0 14px 42px #0003}
.panelLabel{font-size:13px;color:var(--gold);letter-spacing:3px;border-bottom:1px solid #b18b4b38;padding-bottom:13px;margin-bottom:18px;display:flex;align-items:center;justify-content:space-between}.panelLabel span{font:9px Georgia;letter-spacing:2px;color:#a18a68}
aside h1{font-size:clamp(23px,2.05vw,37px);line-height:1.4;letter-spacing:1px;margin:7px 0 9px}aside .lead{font-size:14px;letter-spacing:1px;margin-bottom:18px}.eyebrow{font-size:10px}.goldLine{width:29px;height:2px;margin-bottom:18px}h2{font-size:23px}.bodyText{font-size:15px;line-height:1.9}.draft{font-size:11px;line-height:1.65}.instrumentChoices{gap:7px;margin-top:16px}.instrumentChoices strong{font-size:19px}.thumb{max-height:95px}.notes{gap:14px;margin-top:22px;font-size:14px}
.instrumentVisual{left:0;width:71%;height:100%;bottom:0}#instrumentArt{padding-top:18px;padding-bottom:15px;overflow:visible}
.sleeveVisual{left:0;top:0;bottom:0;width:71%;height:100%;display:block;overflow:hidden}.sleeveVisual video{position:absolute;left:50%;bottom:-5%;transform:translateX(-50%);height:125%;width:auto;max-width:none;object-fit:contain;mask-image:none;background:transparent}
.faceVisual{left:0;bottom:0;top:auto;width:71%;height:94%;display:flex;align-items:center;justify-content:center;overflow:hidden}.faceVisual canvas{width:100%;height:auto;max-height:100%;object-fit:contain}.faceVisual .previewTag{bottom:9px;left:50%}
.roleHeading{margin-top:12px;gap:10px;flex-wrap:wrap}.roleHeading h2{font-size:32px;letter-spacing:4px}.roleHeading span{font-size:13px;padding:6px 9px}#maskDetail{min-height:0}.faceNav{gap:8px;margin-top:18px;justify-content:space-between}.faceNav button{font-size:12px;padding:8px}.faceNav span{font-size:12px}
.controls{padding:11px 3% 44px;height:170px}.controlHint{font-size:12px}.timeline{margin:12px 0 14px;gap:15px}.actions button{min-width:185px;font-size:16px;padding:11px 20px}.cameraToggle{font-size:12px;bottom:16px;padding:8px 12px}.ai{font-size:clamp(20px,2.8vmin,30px)}
@media(min-width:1700px){aside{padding:30px}.bodyText{font-size:18px}aside .lead{font-size:18px}.instrumentChoices .thumb{max-height:135px}.roleHeading h2{font-size:44px}}
@media(max-width:900px){header{height:64px}.brand{font-size:19px}nav{gap:10px}nav button{font-size:15px}.stage,.stage:has(#sleeveVisual:not([hidden])),.stage:has(#faceVisual:not([hidden])){height:auto;min-height:950px}.instrumentVisual{top:35px;width:100%;height:490px}.sleeveVisual{top:35px;width:100%;height:490px}.faceVisual{top:50px;width:100%;height:475px;bottom:auto}aside{top:550px;left:5%;right:5%;bottom:auto;max-height:none;padding:20px}.instrumentChoices{max-width:320px}.cameraToggle{top:505px;bottom:auto}.controls{height:170px}.actions button{min-width:0;font-size:13px;padding:10px 12px}.ai{position:static}.panelLabel{margin-bottom:10px}}

.sleeveVisual video{height:118%;bottom:-3%}

/* Anchor the complete torso to the stage edge; never leave a floating cutout. */
.faceVisual{align-items:flex-end;bottom:0}.faceVisual canvas{object-position:center bottom}.faceVisual .previewTag{display:none}
#faceFlash{position:fixed;inset:68px 0 0;background:#f7e7c9;opacity:0;pointer-events:none;z-index:15}
@media(prefers-reduced-motion:reduce){#faceFlash{display:none}}
@media(max-width:900px){#faceFlash{inset:64px 0 0}}

.sleeveVisual video{height:100%;bottom:0;width:100%;object-fit:contain;object-position:center bottom}

.sleeveVisual video{height:96%;width:100%;bottom:0;object-fit:contain;object-position:center bottom}

/* Compact educational copy, within the existing reading panel. */
.knowledge{margin:16px 0 0}.knowledge>div{margin:0 0 13px}.knowledge dt{color:#d3ae72;font-size:14px;letter-spacing:2px;margin-bottom:4px}.knowledge dd{margin:0;color:#e5d9c9;font-size:15px;line-height:1.75}.knowledgeFoot{color:#bfb2a1;font-size:12px;line-height:1.8;margin:16px 0 0}.patternBlock{margin-top:24px}.patternBlock small{font-size:11px;color:#b7a184}.patternBlock h3{font-size:21px;line-height:1.55;color:#d3ae72;font-weight:400;margin:12px 0}.patternBlock .bodyText{font-size:17px;line-height:1.9}aside:has(#instrumentInfo:not([hidden])) .lead,aside:has(#sleeveInfo:not([hidden])) .lead{display:none}aside:has(#instrumentInfo:not([hidden])) .goldLine,aside:has(#sleeveInfo:not([hidden])) .goldLine{margin:12px 0}aside:has(#instrumentInfo:not([hidden])) .thumb{max-height:70px}.sleeveNotes>div{margin-bottom:12px}@media(min-width:1700px){.knowledge dd{font-size:17px}.knowledge dt{font-size:16px}.knowledgeFoot{font-size:14px}}
/* Keep the complete note visible without shrinking body text. */
aside .eyebrow{display:none}aside .panelLabel{padding-bottom:9px;margin-bottom:10px}aside .knowledge>div{margin-bottom:10px}aside .instrumentChoices{margin-top:10px}aside .knowledgeFoot{margin-top:10px}aside:has(#instrumentInfo:not([hidden])) .thumb{max-height:55px}aside{top:4%;max-height:92%;padding-top:16px;padding-bottom:16px}

/* Lighter sleeve notes and a discreet, readable AI label. */
aside .sleeveNotes>div{margin-bottom:18px}.ai{font-size:clamp(14px,1.8vmin,18px);line-height:1.4;letter-spacing:.5px}

/* Final approved drum: same unmodified source for stage and selector. */
[data-instrument="0"] .thumb{mask-image:none}
[data-instrument="0"] .thumb img{position:static;width:100%;height:100%;object-fit:contain;max-width:100%}

/* Ensemble entry: open stage and editorial notes, original instrument assets. */
.ensembleMode aside{left:70%;right:3%;top:7%;background:linear-gradient(90deg,transparent,#140c08b0);border:0;box-shadow:none;padding:15px 12px;max-height:88%}.ensembleMode .panelLabel{display:none}.ensembleMode .instrumentVisual{width:70%}.ensembleMode aside h1{font-size:clamp(25px,2.7vw,44px)}.ensembleMode aside .lead{display:block;font-size:18px}.ensembleMode #instrumentArt{padding:35px 0 8px}.ensembleIntro{font-size:17px;line-height:1.8;margin:20px 0 25px}.ensembleMode h2{font-size:20px;margin-bottom:16px}.soloLinks{display:grid;gap:12px}.soloLinks button{text-align:left;border-color:#c3a16c;padding:12px 18px;font-size:19px}.soloLinks span{float:right}.ensembleMode .knowledgeFoot{font-size:13px;margin-top:22px}.animationNote{font-size:11px;color:#ad9a80;line-height:1.8;margin-top:12px}#backEnsemble{font-size:13px;padding:7px 10px;margin-bottom:14px;color:var(--gold)}
@media(max-width:900px){.ensembleMode aside{top:530px;left:5%;right:5%;max-height:none;padding:18px}.ensembleMode .instrumentVisual{width:100%}.ensembleMode .stage{min-height:1050px}.ensembleMode .soloLinks{grid-template-columns:repeat(3,1fr);gap:8px}.soloLinks button{font-size:14px;padding:10px}.ensembleMode .cameraToggle{top:490px}.ensembleMode aside h1{font-size:28px}}

/* Ensemble layout matched to the approved composition; solo pages stay unchanged. */
.ensembleMode .stage{height:calc(100svh - 228px);min-height:540px;background:var(--shared-stage-background)}
.ensembleMode .instrumentVisual{width:69%;height:100%}.ensembleMode #instrumentArt{padding:0 0 12px}
.ensembleMode aside{left:70.5%;right:3.2%;top:5.5%;padding:8px 0;background:none;max-height:90%;overflow:auto}.ensembleMode aside:before{content:'合奏欣赏';display:block;font-size:19px;margin:0 0 16px;color:#f2e3c9}.ensembleMode aside h1{font-size:clamp(28px,2.85vw,48px);font-weight:600;letter-spacing:1px;white-space:nowrap;margin:0 0 8px}.ensembleMode aside .lead{font-size:clamp(17px,1.65vw,27px);margin:0 0 24px}.ensembleMode .goldLine{display:none}.ensembleIntro{font-size:clamp(16px,1.35vw,23px);line-height:1.7;margin:18px 0 26px}.ensembleMode h2{font-size:clamp(18px,1.65vw,27px);margin-bottom:18px}.ensembleMode .soloLinks{gap:16px;padding:0 7% 0 4%}.ensembleMode .soloLinks button{font-size:clamp(17px,1.5vw,25px);padding:10px 17px;border-radius:9px}.ensembleMode .knowledgeFoot{font-size:clamp(12px,1vw,17px);line-height:1.7;margin-top:26px}.ensembleMode .knowledgeFoot:last-child{font-size:clamp(11px,.85vw,14px);margin-top:24px}
.ensembleMode .controls{position:relative;height:160px;padding:20px 26% 38px}.ensembleMode .timeline{margin:8px 0 24px;gap:22px}.ensembleMode #elapsed{order:2;min-width:42px}.ensembleMode #duration{display:none}.ensembleMode .timeline input{min-width:0}.ensembleMode .actions{gap:28px}.ensembleMode .actions button{min-width:0;flex:1;white-space:nowrap;padding:10px 12px;font-size:17px}.ensembleMode .controlHint>span:first-child{position:absolute;left:3%;top:68px;font-size:14px}.ensembleMode #camStatus{position:absolute;right:3%;top:24px;font-size:14px}.ensembleMode .cameraToggle{position:fixed;bottom:105px;left:3%;border:0;background:none;font-size:20px;padding:0;z-index:8}.ensembleMode .ai{font-size:14px}
@media(max-width:900px){.ensembleMode .stage{height:auto;min-height:1100px}.ensembleMode .instrumentVisual{width:100%;top:45px;height:480px}.ensembleMode aside{top:550px;left:6%;right:6%;max-height:none}.ensembleMode aside h1{white-space:normal}.ensembleMode .soloLinks{padding:0;gap:10px}.ensembleMode .controls{height:205px;padding:68px 4% 38px}.ensembleMode .actions{gap:10px}.ensembleMode .actions button{font-size:13px}.ensembleMode .cameraToggle{position:absolute;top:505px;bottom:auto;font-size:15px}.ensembleMode .controlHint>span:first-child{top:18px;font-size:12px}.ensembleMode #camStatus{top:40px;font-size:12px}.ensembleMode .timeline{margin-bottom:18px}}

/* One approved stage background for ensemble and solo instrument views. */
:root{--shared-stage-background:linear-gradient(90deg,transparent 52%,#100b08a8 72%,#100b08c9),url(assets/stage.png) center/cover}
.stage,.ensembleMode .stage{background:var(--shared-stage-background)}

/* Anchor the ensemble to the visible foreground floor. */
.ensembleMode #instrumentArt{overflow:visible;padding-bottom:0}

/* ===== 比赛版升级（P0/P1/P2）===== */

/* —— 开场加载屏 —— */
#loader{position:fixed;inset:0;z-index:80;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#120d0a;gap:14px;transition:opacity .9s ease}
#loader.done{opacity:0;pointer-events:none}
.loaderMark{width:120px;height:120px;display:flex;align-items:center;justify-content:center;animation:loaderMark 1.6s ease-in-out infinite;filter:drop-shadow(0 0 18px #d6ae7355)}
.loaderMark img{width:100%;height:100%;object-fit:contain}
.loaderTitle{font-size:34px;letter-spacing:10px;color:#d6ae73;animation:loaderTitle 1.2s ease both}
.loaderSub{font-size:13px;letter-spacing:6px;color:#a18a68}
@keyframes loaderMark{0%,100%{transform:scale(1)}50%{transform:scale(1.07)}}
@keyframes loaderGlow{0%,100%{text-shadow:0 0 12px #d6ae7355}50%{text-shadow:0 0 26px #d6ae73}}
@keyframes loaderTitle{from{opacity:0;letter-spacing:22px}to{opacity:1;letter-spacing:10px}}

/* —— 幕布过渡 —— */
#curtain{position:fixed;inset:0;z-index:60;pointer-events:none;visibility:hidden}
#curtain .panel{position:absolute;top:0;bottom:0;width:50.5%;transition:transform .5s cubic-bezier(.65,0,.35,1);box-shadow:0 0 60px #000c}
#curtain .panel.l{left:0;transform:translateX(-101%);background:url(assets/curtain-left.png) right center/cover}
#curtain .panel.r{right:0;transform:translateX(101%);background:url(assets/curtain-right.png) left center/cover}
#curtain.closed{visibility:visible}
#curtain.closed .panel.l,#curtain.closed .panel.r{transform:translateX(0)}

/* —— 首页开场：慢推近 + 金粉 + 标题逐字 —— */
#home{overflow:hidden;background:none}
#home::before{content:'';position:absolute;inset:-4%;background:url(assets/cover.png) center/cover;animation:kenburns 34s ease-in-out infinite alternate;z-index:0}
#home .coverShade{z-index:1}
#home .homeDust{z-index:1}
#home .homeCopy{z-index:2}
@keyframes kenburns{from{transform:scale(1)}to{transform:scale(1.08)}}
.heroTitle span{display:inline-block;opacity:0;transform:translateY(.5em);animation:charIn .8s cubic-bezier(.2,.7,.2,1) forwards}
.heroTitle span:nth-child(1){animation-delay:.15s}.heroTitle span:nth-child(2){animation-delay:.32s}.heroTitle span:nth-child(3){animation-delay:.49s}.heroTitle span:nth-child(4){animation-delay:.66s}
@keyframes charIn{to{opacity:1;transform:none}}
.homeDust{position:absolute;inset:0;pointer-events:none}
.homeDust i{position:absolute;bottom:-10px;border-radius:50%;background:radial-gradient(circle,#f3d9a0,#d6ae7300);opacity:0;animation:dust 9s linear infinite}
@keyframes dust{0%{transform:translateY(0);opacity:0}12%{opacity:.9}88%{opacity:.6}100%{transform:translateY(-96vh);opacity:0}}
#home .primary{background:linear-gradient(110deg,#e6b85c,#c98a3a 45%,#a76a2a);border-color:#e6b85c;color:#2a1608;font-weight:600;animation:pulse 2.6s ease-in-out infinite}
#home .primary:hover,#home .primary:focus-visible{box-shadow:0 0 34px #d6ae7366;animation:none}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 #d6ae7355}50%{box-shadow:0 0 26px 4px #d6ae7344}}

/* —— 自动演示 —— */
body.autoDemo{cursor:none}
body.autoDemo #cursor{display:none!important}
#autoDemoBtn{border:0;font-size:15px;color:#c9bca9;padding:8px 10px}
#autoDemoBtn:hover{color:var(--gold)}

/* —— 面板入场 —— */
aside.panelIn{animation:panelIn .7s cubic-bezier(.2,.7,.2,1) both}
@keyframes panelIn{from{opacity:0;transform:translateX(26px)}to{opacity:1;transform:none}}

/* —— 脸谱色彩图例 + 人物背景 —— */
.colorLegend{display:flex;flex-wrap:wrap;gap:8px 14px;margin:0 0 18px;padding:10px 12px;border:1px solid #b18b4b38;border-radius:4px;background:#140c08a0}
.colorLegend .legendTitle{flex-basis:100%;font-size:11px;letter-spacing:2px;color:#a18a68}
.colorLegend span{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#d5c7b4}
.colorLegend i{width:14px;height:14px;border-radius:50%;background:var(--c);border:1px solid #d6ae7355;display:inline-block}
.colorLegend .legendNote{flex-basis:100%;font-size:11px;line-height:1.7;color:#a18a68;margin:6px 0 0}
.roleBio{margin:10px 0 0;padding-left:12px;border-left:2px solid #862e24;font-size:14px;color:#c9b894;line-height:1.75}

/* —— 打击乐：锣鼓经 —— */
.gongCulture{margin:0 0 10px;color:#d3ae72!important}
.gongjing{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 18px;position:relative}
.gongjing span{font-family:Georgia,'Songti SC',serif;font-size:20px;color:#e5d9c9;border:1px solid #b18b4b55;border-radius:4px;padding:4px 9px;background:#1a110c}
.gongjing .pair{color:#d6ae73;border-color:#c9a03c}
.gongjing:after{content:'（拟声谱 · 示意）';display:block;width:100%;font-size:10px;color:#8d806e;letter-spacing:2px}

/* —— 结束页 —— */
.endTag{color:#c9bca9}
.endCredits{margin:22px 0 4px;padding-top:18px;border-top:1px solid #b18b4b44}
.endCredits p{font-size:15px;color:#d5c7b4;letter-spacing:2px}
.endCredits .ref{font-size:12px;color:#a18a68;letter-spacing:1px;line-height:1.8}
.endSeal{display:block;width:72px;height:72px;margin:0 auto 16px;object-fit:contain}
.endBody{font-size:14px;color:#c9bca9;letter-spacing:1px;line-height:1.8}
.endRef{margin-top:18px;text-align:left;font-size:12px;color:#a18a68}
.endRef summary{cursor:pointer;color:#d3ae72;letter-spacing:2px;font-size:13px;margin-bottom:8px}
.endRef ul{margin:0;padding-left:18px;line-height:2}
.endRef a{color:#c9b894;text-decoration:underline;text-underline-offset:3px}
.endRef a:hover{color:var(--gold)}

/* —— 第二幕水袖科普卡片：桌面放宽面板、面板内部可滚动查看 —— */
@media(min-width:851px){aside:has(#sleeveInfo:not([hidden])){left:58%;right:2.5%;top:3%;bottom:auto;max-height:94%;overflow:auto;padding:20px 20px}}
