:root{color-scheme:dark;--ink:#e7eae3;--dim:#98acae;--outer:#ddba7e;--inner:#79cbc8;background:#0c1a22;color:var(--ink);font-family:"Segoe UI","Microsoft JhengHei",sans-serif;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 52% 35%,#1a3039 0,#10212a 45%,#0b1820 85%)}button,input,a,summary{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a,summary{touch-action:manipulation}button{color:inherit;cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid var(--inner);outline-offset:5px}header{height:66px;padding:0 5%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff0c;font-size:10px;letter-spacing:2px}header a{color:var(--ink);text-decoration:none}header a span{color:var(--dim);margin-left:14px}.edition{color:var(--dim);letter-spacing:2.5px}main{max-width:1660px;margin:auto}.stage{position:relative;min-height:530px;height:calc(100svh - 258px);max-height:940px;overflow:hidden}.heading{position:absolute;top:38px;left:5%;pointer-events:none;z-index:2}.eyebrow{font-size:10px;letter-spacing:4px;color:var(--outer);margin:0 0 14px}h1{font-family:"Noto Serif TC","Songti TC","PMingLiU",serif;font-weight:400;font-size:clamp(30px,3.3vw,52px);letter-spacing:5px;margin:0}.subtitle{font-size:12px;letter-spacing:1.6px;color:var(--dim);margin-top:16px}.legend{position:absolute;right:5%;top:50px;display:flex;gap:22px;font-size:11px;z-index:2}.legend span{display:flex;align-items:center;gap:8px}.legend b{font-size:8px;font-weight:400;letter-spacing:1.5px;color:var(--dim)}i{display:inline-block;width:24px;height:2px}i.outer{background:var(--outer)}i.inner{background:var(--inner)}i.flat{background:#afc0bd}#ice{width:100%;height:100%;display:block}#surface path{fill:url(#ice-light);stroke:#85acb42a;stroke-width:1}#surface .inset{fill:none;stroke:#85acb410}#guide{fill:none;stroke:#a7c0c7;stroke-width:.7;stroke-dasharray:2 10;opacity:.1}#trails path{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;stroke-width:1.3}#skater .limb{fill:none;stroke:#eff5ed;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.45;opacity:.49}#skater .torso{opacity:.26;stroke-width:1}#skater .joint{fill:#d3e6df;opacity:.48}#skater .head{fill:#d5e7df08;stroke:#e2ece6;stroke-width:1;opacity:.65}#skater .blade{fill:none;stroke-width:2.2;stroke-linecap:round}.stage-note{position:absolute;bottom:18px;left:5%;right:5%;display:flex;justify-content:space-between;color:var(--dim);font-size:10px;letter-spacing:2px}#edge-readout{font-size:10px;letter-spacing:1px}#start{position:absolute;left:50%;top:60%;transform:translate(-50%,-50%);display:flex;flex-direction:column;gap:12px;align-items:center;background:#132a32cc;border:1px solid #9ab5b746;border-radius:60px;width:110px;height:110px;justify-content:center;font-size:10px;letter-spacing:1px;backdrop-filter:blur(5px)}#start svg{width:24px;height:24px;fill:var(--outer)}#start[hidden]{display:none}.transport{margin:0 5%;padding:23px 0 13px;border-top:1px solid #abc5c126}.track-row{display:flex;justify-content:space-between;align-items:center}.tracks{display:flex;gap:8px}.tracks button{background:none;border:1px solid #b3c3be35;border-radius:30px;padding:9px 18px;font-size:11px;letter-spacing:.6px}.tracks button[aria-pressed=true]{background:var(--outer);border-color:var(--outer);color:#1c2c30}.credit{color:var(--dim);font-size:11px;letter-spacing:2px}.play-row{display:flex;align-items:center;gap:17px;margin-top:16px;font-variant-numeric:tabular-nums;font-size:11px}.round{border:1px solid #9ab5b758;border-radius:50%;width:38px;height:38px;display:grid;place-items:center;background:none;flex-shrink:0}.round svg{width:14px;height:14px;fill:var(--ink)}input[type=range]{flex:1;min-width:40px;accent-color:var(--outer);height:18px;cursor:pointer}.text-button{border:0;background:none;color:var(--dim);padding:5px;font-size:11px}.text-button:hover{color:var(--ink)}.options{display:flex;align-items:center;gap:22px;font-size:10px;color:var(--dim);margin:9px 0 0 52px}.options label{display:flex;align-items:center;gap:5px;cursor:pointer}.options input{accent-color:var(--inner)}.hint{margin-left:auto;color:#6f878c}#status{font-size:12px;color:var(--outer);margin:8px 0 0;min-height:0}#status:empty{display:none}footer{padding:17px 5% 22px;display:flex;justify-content:space-between;align-items:start;font-size:10px;color:#768e94;letter-spacing:1px}details{max-width:460px;text-align:right}summary{cursor:pointer}details p{line-height:1.9;text-align:left;letter-spacing:.4px}details a{color:var(--inner)}audio{display:none}@media(min-width:1500px){.stage{min-height:620px}}@media(max-width:650px){header{height:54px;padding:0 6%;font-size:9px;letter-spacing:1px}header a span{margin-left:7px}.edition{font-size:8px;letter-spacing:1px}.stage{height:58svh;min-height:390px;max-height:640px}.heading{top:25px;left:6%}h1{font-size:33px}.eyebrow{font-size:8px;letter-spacing:3px;margin-bottom:10px}.subtitle{font-size:10px;letter-spacing:.5px}.legend{top:auto;bottom:43px;left:6%;right:auto;gap:20px}.legend b{display:none}.stage-note{left:6%;right:6%;bottom:16px;letter-spacing:1px;font-size:9px}#edge-readout{font-size:9px}#start{width:94px;height:94px;top:61%}.transport{margin:0 6%;padding-top:18px}.credit{display:none}.tracks{width:100%}.tracks button{flex:1;padding:10px 7px;font-size:10px;letter-spacing:0}.play-row{gap:11px}.options{margin-left:0;gap:12px;justify-content:space-between}.hint{display:none}.options label,.text-button{font-size:10px}.round{width:32px;height:32px}footer{padding:15px 6%;font-size:9px}details{max-width:62%}}

#hand-trails path{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;stroke-width:1.15}.mode-button{border:1px solid #9ab5b746;border-radius:18px;background:#142a32;color:var(--ink);padding:7px 11px;font-size:10px;white-space:nowrap}.mode-button:hover{border-color:var(--inner)}#hand-legend{position:absolute;right:5%;top:78px;font-size:10px;letter-spacing:1px;display:flex;gap:18px}#hand-legend[hidden]{display:none}#hand-legend span:first-child{color:#bca8df}#hand-legend span:last-child{color:#e2a799}@media(max-width:650px){.options{flex-wrap:wrap;justify-content:flex-start;gap:10px}.mode-button{padding:7px 9px}#hand-legend{top:auto;bottom:67px;left:6%;right:auto}}

.input-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:14px}.input-row button[aria-pressed=true]{border-color:var(--inner);color:var(--inner)}.input-row [hidden]{display:none!important}.input-help{font-size:10px;line-height:1.7;color:var(--dim);max-width:850px;margin:8px 0 0}.input-row label{font-size:10px;color:var(--dim);display:flex;align-items:center;gap:8px}#input-level{width:80px;height:9px}#seek:disabled{opacity:.3;cursor:default}

.experiments-toggle{position:relative;display:inline-flex;align-items:center;gap:5px;padding:5px 7px;min-height:32px;border:0;background:none;color:var(--dim);font-size:10px;white-space:nowrap}.experiments-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}.experiments-toggle:hover,.experiments-toggle[aria-expanded=true]{color:var(--inner)}.experiments-toggle[data-active=true]::after{content:"";width:5px;height:5px;background:var(--inner);border-radius:50%;margin-left:3px}.experiments-panel{margin:12px 0 0 52px;padding:14px 16px;border:1px solid #9ab5b726;border-radius:10px;background:#0c1a2266}.experiments-panel[hidden]{display:none}.experiments-panel .input-row{margin-top:0}.experiment-actions{display:flex;gap:14px;margin-top:12px;padding-top:10px;border-top:1px solid #9ab5b71a}@media(max-width:650px){.experiments-panel{margin-left:0;padding:12px}.experiments-toggle{padding:5px 2px}}

#ice.thick-trails #trails path{stroke-width:3.6}.thick-trails-option{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:var(--dim);cursor:pointer}.thick-trails-option input{accent-color:var(--inner)}.experiment-actions{align-items:center;flex-wrap:wrap}

#ice.pointer-control{touch-action:none;cursor:crosshair}#pointer-target{fill:none;stroke:#c9ddd1;stroke-width:1;opacity:.55;pointer-events:none}#pointer-help{margin:10px 0 0 52px}#pointer-help[hidden]{display:none}body:has(#ice.pointer-control) .legend{pointer-events:none}@media(max-width:650px){#pointer-help{margin-left:0}}

/* Readable controls and notes without changing the visual hierarchy. */
header{font-size:12px}.eyebrow{font-size:12px}.subtitle{font-size:14px}.legend{font-size:13px}.legend b{font-size:10px}.stage-note,#edge-readout{font-size:12px}#start{font-size:12px}.tracks button{font-size:13px}.credit,.play-row,.text-button{font-size:13px}.options,.mode-button,.experiments-toggle{font-size:12px}.input-row label,.input-help,.thick-trails-option{font-size:13px}.input-help{line-height:1.85}#hand-legend{font-size:12px}footer{font-size:12px;gap:24px}details{max-width:600px}details p{font-size:14px;line-height:1.95;letter-spacing:.3px}summary{font-size:13px}#status{font-size:14px}.stage-note{letter-spacing:1px}
@media(max-width:650px){header{font-size:11px}.edition{font-size:10px}.eyebrow{font-size:10px}.subtitle{font-size:12px;letter-spacing:.3px}.legend,.stage-note,#edge-readout{font-size:11px}.stage-note{letter-spacing:0}.tracks button{font-size:12px}.options label,.text-button,.mode-button,.experiments-toggle{font-size:12px}.play-row{font-size:12px;gap:9px}.input-help,.input-row label,.thick-trails-option{font-size:12px}footer{font-size:11px;gap:12px}details{max-width:70%}details p{font-size:14px}summary{font-size:13px}.input-row{gap:8px}.heading .subtitle{max-width:285px;line-height:1.7}}

.text-button:disabled{opacity:.38;cursor:default}@media(max-width:650px){footer>span{white-space:nowrap}footer:has(details[open]){flex-wrap:wrap}footer details[open]{flex-basis:100%;max-width:100%;width:100%}}

/* Header settings float above the stage; opening them never changes layout. */
header{position:relative;z-index:10;gap:18px}.header-actions{display:flex;align-items:center;gap:22px}.header-actions .experiments-toggle{min-height:36px;letter-spacing:.5px}.experiments-panel{position:absolute;top:calc(100% + 8px);right:5%;width:min(460px,90vw);max-height:calc(100dvh - 90px);overflow:auto;overscroll-behavior:contain;margin:0;padding:16px 18px;background:#10242bf5;border-color:#9ab5b746;box-shadow:0 16px 45px #0007;backdrop-filter:blur(16px);font-size:13px;letter-spacing:0;z-index:20}.settings-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;color:var(--ink);font-size:13px;letter-spacing:1px}.settings-heading .text-button{padding:4px 8px;font-size:15px}.visual-options{display:flex;align-items:center;gap:14px;flex-shrink:0}.pointer-option{white-space:nowrap;min-height:32px}.pointer-option:has(input:checked){color:var(--inner)}.options{flex-wrap:wrap}.experiments-panel .input-help{margin-top:12px}
@media(max-width:650px){header{gap:10px}.header-actions{gap:0}.header-actions .edition{display:none}.experiments-panel{right:4%;width:92%;max-height:calc(100dvh - 76px);padding:14px}.visual-options{gap:10px}.options{column-gap:16px;row-gap:6px}.pointer-option{font-size:12px}}

footer{flex-wrap:wrap}.evolution-link{font-size:12px;color:var(--inner);text-decoration:none;white-space:nowrap}.evolution-link:hover{text-decoration:underline}

/* Choreography stays outside the experimental settings; the display/pointer pair stays together. */
select{font:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}select:focus-visible{outline:2px solid var(--inner);outline-offset:5px}.action-option{min-width:0;max-width:100%;white-space:nowrap}.options .action-option{gap:9px}#skating-action{min-width:0;max-width:100%;border:1px solid #9ab5b746;border-radius:18px;padding:7px 28px 7px 11px;background:#142a32;color:var(--ink);cursor:pointer}#skating-action:disabled{opacity:.45;cursor:default}#action-help{margin:10px 0 0 52px}#action-help[hidden]{display:none}
@media(max-width:650px){#action-help{margin-left:0}#skating-action{font-size:12px}body:has(#ice[data-action^="three-"]) .stage-note{flex-direction:column;gap:3px;line-height:1.5}body:has(#ice[data-action^="three-"]) .legend{bottom:63px}body:has(#ice[data-action^="three-"]) #hand-legend{bottom:87px}}

/* A/B shares one music clock. The program opens below the main controls. */
.choreography-row{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:16px}.choreography-switch{display:flex;align-items:center;flex-wrap:wrap;gap:3px}.choreography-ai{display:flex;gap:3px;border:1px solid #9ab5b746;border-radius:22px;padding:3px;background:#0b1e26}.choreography-label{font-size:13px;color:var(--dim);margin:0 7px 0 14px;white-space:nowrap}#choreography-old{border:1px solid #9ab5b746}.choreography-switch button{border:0;border-radius:18px;padding:7px 15px;background:transparent;color:var(--dim);font-size:13px}.choreography-switch button[aria-pressed=true]{color:#10242b;background:var(--inner)}#choreography-description{font-size:13px;line-height:1.7;color:var(--dim);margin:0}.options .action-option[hidden],.choreography-cue[hidden],.choreography-program[hidden]{display:none}.choreography-cue{display:flex;gap:10px 22px;align-items:center;flex-wrap:wrap;margin:13px 0 0 52px;font-size:12px;color:var(--dim);line-height:1.7}#choreography-section{color:var(--outer)}#choreography-element{color:var(--ink)}#choreography-next{margin-left:auto}.choreography-program{text-align:left;max-width:none;margin:12px 0 0 52px;padding:0;border:0}.choreography-program summary{color:var(--dim);font-size:12px}.choreography-program p{font-size:13px;max-width:900px}.choreography-program[open]{padding:12px 0 4px}.choreography-program[open] summary{margin-bottom:12px;color:var(--inner)}#choreography-timeline{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.choreography-section-button{text-align:left;line-height:1.65;font-size:12px;padding:9px 11px;background:#122b34;border:1px solid #9ab5b72e;border-radius:7px;color:var(--dim)}.choreography-section-button:hover,.choreography-section-button[aria-current=true]{border-color:var(--inner);color:var(--ink)}.choreography-links{display:flex;flex-wrap:wrap;gap:8px 20px}.choreography-links a{color:var(--inner)}
@media(max-width:900px){#choreography-timeline{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){.choreography-row{gap:8px;margin-bottom:13px}.choreography-switch button{font-size:12px;padding:7px 13px}#choreography-description{font-size:12px}.choreography-cue,.choreography-program{margin-left:0}.choreography-cue{gap:3px 12px}#choreography-next{margin-left:0;font-size:11px}#choreography-timeline{grid-template-columns:repeat(2,minmax(0,1fr))}#ice:is([data-choreography=new],[data-choreography=expansive],[data-choreography=strides],[data-choreography=expressive])~.stage-note{flex-direction:column;gap:3px;line-height:1.5}body:has(#ice:is([data-choreography=new],[data-choreography=expansive],[data-choreography=strides],[data-choreography=expressive])) .legend{bottom:63px}body:has(#ice:is([data-choreography=new],[data-choreography=expansive],[data-choreography=strides],[data-choreography=expressive])) #hand-legend{bottom:87px}}
