:root{--bg:#171a1c;--surface:#202426;--surface-2:#292d2f;--line:#ffffff12;--line-2:#ffffff24;--amber:#ecc16c;--amber-hi:#f4d393;--text:#f1f0eb;--muted:#a0a5a6;--dim:#71797b;--green:#8fcea8;--red:#ecc16c;--mono:Consolas,monospace;--side-w:288px;font-family:"Microsoft YaHei","PingFang SC",sans-serif;color:var(--text);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{min-width:320px}button{font-family:inherit}button,img{-webkit-user-drag:none}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:2px solid var(--amber);outline-offset:4px}a{color:inherit}button{transition:background .2s,border-color .2s,color .2s,box-shadow .2s}button:disabled{cursor:default}
.page{height:100dvh;min-height:680px;display:flex;flex-direction:column;padding:0 28px 24px;max-width:1920px;margin:auto}
.topbar{height:94px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:center;gap:14px;text-decoration:none}.brand-mark{width:42px;height:42px;display:flex;align-items:center;justify-content:center;gap:4px;border:1px solid #ecc16c42;border-radius:13px;background:#ecc16c0c}.brand-mark i{height:18px;width:4px;background:var(--amber);border-radius:2px;transform:skew(-15deg)}.brand-mark i:nth-child(2){height:26px}.brand-mark i:nth-child(3){height:13px}.brand-copy{display:flex;flex-direction:column;gap:9px}.brand h1{margin:0;font-size:21px;letter-spacing:.08em;font-weight:600;line-height:1}.brand-sub{font-size:10px;letter-spacing:.12em;color:var(--muted)}.brand-sub b{margin:0 8px;color:#ecc16c80;font-weight:400}
.mode-switch{display:flex;gap:4px;padding:5px;background:#111416;border:1px solid var(--line);border-radius:12px}.mode-switch button{height:40px;min-width:142px;padding:0 18px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--muted);font-size:14px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:12px}.mode-switch button:hover{color:var(--text);background:#ffffff08}.mode-switch button[aria-selected=true]{background:#ecc16c;color:#29251e;border-color:#f2cf8b;box-shadow:0 2px 8px #0002}.mode-index{font:12px var(--mono);opacity:.55}
.layout{flex:1;min-height:0;display:grid;grid-template-columns:var(--side-w) minmax(0,1fr);gap:18px}
.side{display:flex;flex-direction:column;min-height:0;gap:20px;padding:25px 20px 20px;background:var(--surface);border:1px solid var(--line);border-radius:18px}.side-head{flex:none}.eyebrow{margin:0 0 13px;display:flex;flex-direction:column;align-items:flex-start;gap:10px}.eyebrow-code{color:var(--amber);font:10px var(--mono);letter-spacing:.15em}#mode-label{font-size:25px;font-weight:600;letter-spacing:.04em}.description{margin:0;color:var(--muted);font-size:12px;line-height:1.9}
.status-card{padding:14px;background:#ffffff04;border:1px solid var(--line);border-radius:10px;flex:none}.status-row{display:flex;align-items:center;justify-content:space-between;gap:6px}#progress{font-size:13px;font-weight:500;margin:0}.meter{height:4px;background:#ffffff0c;border-radius:4px;margin:12px 0 9px;overflow:hidden}.meter i{display:block;width:0;height:100%;background:var(--amber);transition:width .4s;border-radius:4px}.tray-hint{font-size:10px;line-height:1.6;color:var(--dim);margin:0}.side.is-complete #progress{color:var(--green)}.side.is-complete .meter i{background:var(--green)}#reset-match{padding:0;border:0;background:none;color:var(--amber);font-size:11px}body.is-learn #reset-match{display:none}
.bank{flex:1;min-height:80px;display:flex;flex-direction:column}.bank-title{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;letter-spacing:.08em;margin:0 0 10px}.bank-title small{margin-left:auto;font:10px var(--mono);color:var(--dim);padding:3px 6px;border:1px solid var(--line);border-radius:4px}body.is-learn .for-practice,body.is-practice .for-learn{display:none}.part-index{list-style:none;margin:0;padding:0 3px 0 0;overflow:auto;scrollbar-width:thin;scrollbar-color:#454a4c transparent}.part-index li+li{margin-top:3px}.part-item{display:flex;align-items:center;gap:10px;width:100%;height:34px;padding:0 10px;border:1px solid transparent;background:none;color:#c3c6c5;border-radius:7px;text-align:left;font-size:12px}.part-item b{width:18px;flex:none;font:10px var(--mono);color:var(--dim)}.part-item span{flex:1;white-space:nowrap}.part-item i{width:5px;height:5px;border-radius:50%;background:#ffffff15}.part-item:hover{background:#ffffff06;color:var(--text)}.part-item.is-viewed i{background:var(--amber)}.part-item.is-active{border-color:#ecc16c24;background:#ecc16c0e;color:var(--amber)}.part-item.is-active b{color:var(--amber)}
.detail-panel{flex:none;padding-top:17px;border-top:1px solid var(--line)}.detail-heading{display:flex;align-items:center;justify-content:space-between;font-size:10px;letter-spacing:.1em;color:var(--dim);height:18px}.detail-heading button{font-size:20px;border:0;color:var(--muted);background:none;line-height:1;padding:0 4px}.detail-panel h2{font-size:14px;font-weight:500;margin:10px 0 8px;color:var(--amber)}.detail-panel p{font-size:11px;line-height:1.9;color:var(--muted);margin:0;max-height:116px;overflow:auto;scrollbar-width:thin;scrollbar-color:#454a4c transparent}body.is-practice .detail-panel{display:none}
.chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:auto;align-content:start;scrollbar-width:thin;scrollbar-color:#454a4c transparent}.chip{display:flex;align-items:center;justify-content:center;min-height:48px;padding:9px 8px;border:1px solid #ffffff1a;border-radius:8px;background:#2b3032;color:#dcdfdc;font-size:12px;line-height:1.5;text-align:center;touch-action:none;user-select:none;cursor:grab}.chip:hover{border-color:#ecc16c70;background:#343630}.chip.is-selected{background:var(--amber);border-color:var(--amber);color:#24241e}.chip.is-holding{opacity:.3}.chip.is-matched{display:none}.chip-ghost{position:fixed;left:0;top:0;z-index:50;pointer-events:none;border-color:var(--amber);box-shadow:0 12px 35px #0006}body.is-learn .chips,body.is-practice .part-index{display:none}
.play{position:relative;isolation:isolate;min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;padding:92px 28px 54px;border:1px solid #ffffff14;border-radius:18px;background:radial-gradient(ellipse at 50% 46%,#3e4140 0%,#303334 48%,#25292b 100%);overflow:hidden}.play::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,transparent 49.9%,#ffffff05 50%,transparent 50.1%);opacity:.3}.stage-head{position:absolute;top:27px;left:30px;right:30px;display:flex;align-items:center;justify-content:space-between;gap:16px}.stage-kicker{color:var(--dim);font:9px var(--mono);letter-spacing:.2em;margin:0 0 9px}.stage-head h2{font-size:17px;letter-spacing:.04em;font-weight:400;margin:0;color:#dddeda}.stage-badge{display:flex;align-items:center;gap:7px;border:1px solid #ffffff14;border-radius:20px;padding:7px 10px;color:#b6c2b9;font-size:10px;white-space:nowrap;background:#ffffff03}.stage-badge i{width:5px;height:5px;border-radius:50%;background:#a3c5ab}.stage-footer{position:absolute;left:30px;right:30px;bottom:20px;display:flex;justify-content:space-between;align-items:center;gap:12px;color:#8f9898;font-size:10px;letter-spacing:.02em}.stage-footer>span:first-child{display:flex;align-items:center;gap:8px}.stage-footer i{width:12px;height:15px;border:1px solid #9fa6a580;border-radius:6px;position:relative}.stage-footer i::after{content:"";position:absolute;top:3px;left:4px;width:2px;height:4px;background:var(--amber);border-radius:1px}.stage-footer>span:last-child{font:9px var(--mono);letter-spacing:.13em;color:var(--dim)}.stage-footer b{color:#ecc16c66;margin:0 6px;font-weight:400}
.diagram{position:relative;display:flex;align-items:stretch;justify-content:center;max-width:100%;max-height:100%;min-height:0;overflow:visible}.machine-window{position:relative;max-width:100%;max-height:100%;overflow:hidden}.machine-fit{position:relative;width:100%}.photo{width:100%;mask-image:linear-gradient(to right,transparent,#000 8%,#000 92%,transparent),linear-gradient(to bottom,transparent,#000 7%,#000 88%,transparent);mask-composite:intersect}.photo-clean{display:block;height:auto}.photo-labeled{position:absolute;inset:0;height:100%;object-fit:fill;opacity:0;transition:opacity .6s;pointer-events:none}.play.is-revealed .photo-labeled{opacity:1}
.callout-col{position:absolute;top:0;bottom:0;z-index:6;width:0}.play.is-cards:not(.is-overlay) .callout-col.is-left{left:-206px;width:206px}.play.is-cards:not(.is-overlay) .callout-col.is-right{left:100%;width:206px}.play.is-overlay .callout-col.is-left{left:0;width:auto}.play.is-overlay .callout-col.is-right{right:0;left:auto;width:auto}.pin{position:absolute;left:12px;right:12px}.tag{display:flex;align-items:center;gap:9px;width:100%;min-height:38px;padding:9px 11px;border:1px solid #ffffff25;border-radius:8px;background:#303536eb;color:#d7dcda;font-size:12px;font-weight:400;line-height:1.3;text-align:left;white-space:nowrap;box-shadow:0 4px 14px #0000000a}.tag::before{content:attr(data-number);font:9px var(--mono);color:#a8a895;flex:none}.tag:hover{border-color:#ecc16c88;background:#3d403a;color:#f4dcad;transform:translateY(-1px)}.tag.is-active{border-color:#ecc16c99;background:#ecc16c;color:#30291d;box-shadow:0 4px 18px #0002}.tag.is-active::before{color:#6a5838}.tag.is-blank{border:1px dashed #b7bfb65c;color:#a7afad;background:#222829aa}.tag.is-blank::after{content:"待配对";font-size:11px;letter-spacing:.12em;opacity:.6}.tag.is-blank.is-over{border-color:var(--amber);background:#514b3d}.tag.is-filled{border-color:#94be9b80;color:#c4e3c9;background:#2c3c34;animation:tag-pop .3s}.tag.is-wrong,.slot.is-wrong{animation:slot-shake .35s}.play.is-overlay .pin{left:auto;right:auto;width:max-content}.play.is-overlay .callout-col.is-left .pin{left:0}.play.is-overlay .callout-col.is-right .pin{right:0}.play.is-overlay .tag{width:auto;min-height:30px;padding:7px 8px;font-size:10px;gap:5px;background:#2b3031ed}.play.is-overlay .tag.is-active{background:var(--amber)}.play.is-overlay .tag.is-blank{width:88px}.leaders{position:absolute;inset:0;z-index:4;width:100%;height:100%;overflow:visible;pointer-events:none}.leaders path{stroke:var(--amber);opacity:.8}.leaders circle{fill:var(--amber)}body.is-practice .leaders path{opacity:.4}body.is-practice .leaders circle{opacity:.7}
.slot-layer{position:absolute;inset:0;pointer-events:none}.slot{position:absolute;padding:0;border:0;border-radius:5px;background:transparent;color:inherit;pointer-events:auto}.slot-label{display:none}.slot:hover,.slot:focus-visible{background:#ecc16c18;box-shadow:inset 0 0 0 1px #ecc16c88}.slot.is-active::before{content:"";position:absolute;left:var(--hx,50%);top:var(--hy,50%);width:6px;height:6px;border-radius:50%;background:var(--amber);box-shadow:0 0 0 4px #ecc16c33;transform:translate(-50%,-50%);pointer-events:none}.note-dock{display:none}.live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}body.is-dragging{overscroll-behavior:none}
@keyframes slot-shake{25%{transform:translateX(-5px)}60%{transform:translateX(5px)}85%{transform:translateX(-2px)}}@keyframes tag-pop{0%{transform:scale(1.04)}100%{transform:scale(1)}}
@media(min-width:1600px){:root{--side-w:310px}.side{gap:24px;padding:28px 24px}.part-item{height:38px;font-size:13px}.detail-panel p{font-size:12px}.tag{font-size:13px}}
@media(max-width:1100px){:root{--side-w:250px}.page{padding:0 18px 18px}.layout{gap:12px}.side{padding:21px 16px;gap:17px}.play{padding-left:18px;padding-right:18px}.stage-head{left:22px;right:22px}.stage-head h2{font-size:15px}.stage-badge{display:none}.stage-footer{left:22px;right:22px}.stage-footer>span:last-child{display:none}}
@media(max-width:800px){.page{height:auto;min-height:100dvh;padding:0 12px 12px}.topbar{height:78px;gap:10px}.brand{gap:9px}.brand-mark{width:32px;height:36px;border-radius:10px}.brand h1{font-size:16px}.brand-sub{font-size:8px;letter-spacing:.02em}.brand-sub b{margin:0 4px}.mode-switch{gap:2px;padding:4px;border-radius:10px}.mode-switch button{height:34px;min-width:0;padding:0 11px;font-size:12px;gap:6px}.layout{display:flex;flex-direction:column;gap:12px}.play{order:0;height:max(570px,calc(100dvh - 235px));flex:none;padding:80px 20px 45px}.side{order:1;gap:12px;padding:15px;min-height:0}.side-head,.bank-title,.tray-hint{display:none}.status-card{padding:0;border:0;background:none;display:flex;gap:16px;align-items:center}.status-row{flex:none;gap:16px}.meter{flex:1;margin:0}.bank{min-height:0}.part-index{display:flex;gap:6px;overflow-x:auto;padding:0 0 4px}.part-index li+li{margin:0}.part-item{width:auto;min-height:38px;border-color:var(--line);gap:7px}.part-item i{display:none}.chips{display:flex;overflow-x:auto;padding-bottom:4px;gap:7px}.chip{flex:none;min-height:38px;white-space:nowrap;touch-action:pan-x}.detail-panel{display:none}.detail-panel.has-detail{display:block}.detail-panel p{max-height:140px;font-size:12px}.stage-head{top:23px}.stage-kicker{font-size:8px}.stage-head h2{font-size:15px}.stage-footer{bottom:17px;font-size:9px}.play.is-dock.has-note .note-dock{display:block;position:absolute;left:12px;right:12px;bottom:44px;z-index:20;background:#202628f5;border:1px solid #ecc16c55;border-radius:12px;padding:15px;box-shadow:0 10px 35px #0005;max-height:180px;overflow:auto;backdrop-filter:blur(16px)}.note h3{font-size:13px;color:var(--amber);margin:0 28px 8px 0}.note p{font-size:12px;color:#c4cbca;line-height:1.85;margin:0}.note-close{position:absolute;top:8px;right:9px;border:0;background:transparent;color:var(--muted);font-size:22px;padding:2px 6px}.detail-panel.has-detail{display:none}}
@media(max-width:420px){.mode-index{display:none}.brand h1{font-size:14px}.brand-mark{display:none}.mode-switch button{padding:0 9px;font-size:11px}.play{padding-left:12px;padding-right:12px}.stage-head{left:18px}.tag::before{font-size:8px}.play.is-overlay .tag{font-size:10px;padding:7px 6px}.play.is-overlay .tag.is-blank{width:78px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}


/* The interaction color stays distinct from the machine's yellow panels. */
:root{--guide:#62eaff;--guide-soft:#62eaff20}
.part-item.is-viewed i{background:var(--guide)}
.part-item.is-active{border-color:#62eaff45;background:var(--guide-soft);color:var(--guide)}
.part-item.is-active b,.detail-panel h2{color:var(--guide)}
.tag:hover{border-color:#62eaff99;background:#253b3d;color:#e8fbff}
.tag.is-active,.play.is-overlay .tag.is-active{border-color:#a9f5ff;background:#53dcef;color:#092a32;box-shadow:0 0 0 2px #071014,0 6px 22px #0005}
.tag.is-active::before{color:#23545b}
.tag.is-blank.is-over{border-color:var(--guide);background:#1c454c}
.chip:hover,.chip.is-selected,.chip-ghost{border-color:var(--guide)}
.chip.is-selected{background:var(--guide);color:#092a32}
.leaders path{stroke:var(--guide);stroke-width:2.4;opacity:1;filter:drop-shadow(0 0 4px #62eaff88)}
.leaders .leader-glow{fill:var(--guide);opacity:.3;filter:blur(7px)}
.leaders .leader-pulse{fill:none;stroke:var(--guide);stroke-width:1.6;opacity:0;transform-box:fill-box;transform-origin:center;animation:leader-heat 2.2s ease-out infinite}
.leaders .leader-pulse-2{animation-delay:1.1s}
.leaders .leader-core{fill:#e9fdff;stroke:var(--guide);stroke-width:2;filter:drop-shadow(0 0 5px var(--guide))}
body.is-practice .leaders path{stroke-width:1.6;opacity:.85;filter:none}
.slot:hover,.slot:focus-visible{background:#62eaff27;box-shadow:inset 0 0 0 2px var(--guide)}
.slot.is-active::before{display:none}
@keyframes leader-heat{0%{opacity:.9;transform:scale(.85)}70%{opacity:.38}100%{opacity:0;transform:scale(4)}}
@media(prefers-reduced-motion:reduce){.leaders .leader-pulse{animation:none;opacity:.6;transform:scale(2)}}
@media(max-width:800px){.play.is-dock.has-note .note-dock{border-color:#62eaff88}.note h3{color:var(--guide)}}

/* Make the selected part's explanation the primary information card. */
:root{--side-w:320px}
.side{gap:15px}
.detail-panel{position:relative;isolation:isolate;flex:none;min-height:202px;overflow:hidden;padding:20px 19px 18px;border:1px solid #62eaff35;border-radius:15px;background:linear-gradient(145deg,#1c353c,#20292d 58%,#21272a);box-shadow:inset 0 1px 0 #ffffff12,0 12px 30px #0003}
.detail-panel::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(var(--guide),#54bfc9 55%,transparent)}
.detail-panel::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle at 100% 0%,#62eaff1f,transparent 55%)}
.detail-panel.has-detail{border-color:#62eaff91;background:linear-gradient(140deg,#21454c,#203139 62%,#1e292e);box-shadow:0 0 0 1px #62eaff2c,0 13px 34px #0005,0 0 38px #62eaff13}
.detail-heading{height:auto;color:#a7e7ee;font-size:11px;font-weight:700;letter-spacing:.08em}
.detail-heading b{font:10px var(--mono);color:#78abb3;margin-left:6px;letter-spacing:.08em}
.detail-heading button{color:#ccf9fc;font-size:21px}
.detail-panel h2{color:#e3faff;font-size:20px;font-weight:700;line-height:1.4;margin:17px 0 10px;letter-spacing:.02em}
.detail-panel.has-detail h2{color:var(--guide)}
.detail-panel p{color:#d4e1e3;font-size:13px;line-height:1.8;max-height:130px;min-height:48px;overflow:auto}
.detail-foot{display:flex;align-items:center;gap:8px;margin-top:14px;color:#8ebdc3;font:9px var(--mono);letter-spacing:.13em}
.detail-foot i{width:14px;height:14px;border:1px solid var(--guide);border-radius:50%;box-shadow:0 0 12px #62eaff55}
.detail-panel.has-detail .detail-foot{display:none}
.detail-panel.is-appearing{animation:detail-reveal .45s cubic-bezier(.18,.8,.18,1) both}
.detail-panel.is-appearing::after{animation:detail-flash .7s ease-out}
@keyframes detail-reveal{from{opacity:.72;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes detail-flash{0%{background:#62eaff48}100%{background:radial-gradient(circle at 100% 0%,#62eaff1f,transparent 55%)}}
.bank-title{margin-top:2px}
#reset-match{margin-left:6px;padding:5px 9px;border:1px solid #62eaff66;border-radius:6px;background:#62eaff13;color:var(--guide);font-size:11px;letter-spacing:0}
#reset-match:hover{background:#62eaff2b;border-color:var(--guide)}
@media(max-width:1100px){:root{--side-w:275px}.detail-panel{padding:17px 15px;min-height:185px}.detail-panel h2{font-size:17px}.detail-panel p{font-size:12px}}
@media(max-width:800px){.side{gap:10px}.detail-panel,.detail-panel.has-detail{display:none}body.is-practice .bank-title{display:flex;margin:0 0 7px}.bank-title small{margin-left:0}#reset-match{margin-left:auto}.play.is-dock.has-note .note-dock{border:1px solid #62eaffba;background:linear-gradient(145deg,#1b3b43f5,#1d2a2ff7);box-shadow:0 0 0 1px #62eaff28,0 16px 44px #000a,0 0 40px #62eaff22;animation:detail-reveal .38s ease-out}.note-kicker{display:block;margin:0 0 10px;color:#9bdfe8;font:10px var(--mono);letter-spacing:.12em}.note h3{font-size:18px;margin-bottom:10px}.note p{font-size:13px;line-height:1.85}}
@media(prefers-reduced-motion:reduce){.detail-panel.is-appearing,.detail-panel.is-appearing::after,.play.is-dock.has-note .note-dock{animation:none}}
@media(max-width:800px){
  .play.is-dock.has-note .note-dock{max-height:220px;overflow:auto;background:linear-gradient(145deg,#21464d,#1e3037);scrollbar-width:thin;scrollbar-color:#62eaff88 transparent}
}

/* Larger names make each machine part easier to scan. */
.part-item{height:39px;font-size:14px}
.part-item b{font-size:11px}
.chip{min-height:54px;font-size:14px;padding:10px 9px}
.tag{min-height:43px;font-size:15px;font-weight:600;padding:10px 11px;line-height:1.25}
.tag::before{font-size:10px}
.tag.is-blank::after{font-size:13px}
@media(min-width:1600px){.tag{font-size:16px}.part-item{font-size:15px}.chip{font-size:15px}}
@media(max-width:800px){.part-item{min-height:44px;font-size:14px}.chip{min-height:44px;font-size:14px}.play.is-overlay .tag{min-height:34px;max-width:142px;padding:7px 8px;font-size:12px;line-height:1.25;white-space:normal;overflow-wrap:anywhere}.play.is-overlay .tag.is-blank{width:99px}.play.is-overlay .tag.is-blank::after{font-size:11px}}
@media(max-width:420px){.play.is-overlay .tag{font-size:12px;padding:6px 7px;max-width:132px}.play.is-overlay .tag.is-blank{width:91px}}

/* Second readability increase for part names. */
.part-item{font-size:16px}
.part-item b{font-size:12px}
.chip{font-size:16px;line-height:1.4;min-height:58px}
.tag{font-size:17px;min-height:46px;padding:10px 11px}
.tag::before{font-size:11px}
.tag.is-blank::after{font-size:14px}
@media(min-width:1600px){.part-item{font-size:17px}.chip{font-size:17px}.tag{font-size:18px}}
@media(max-width:800px){.part-item{font-size:16px;min-height:46px}.chip{font-size:16px;min-height:48px}.play.is-overlay .tag{font-size:14px;min-height:38px;max-width:150px;padding:8px 9px;line-height:1.3;white-space:normal;overflow-wrap:anywhere}.play.is-overlay .tag.is-blank{width:104px}.play.is-overlay .tag.is-blank::after{font-size:13px}}
@media(max-width:420px){.play.is-overlay .tag{font-size:14px;max-width:138px;padding:7px 8px}.play.is-overlay .tag.is-blank{width:96px}}

/* Keep the desktop name bank in a single readable column. */
.chips{grid-template-columns:minmax(0,1fr)}
.chip{min-height:46px;white-space:nowrap;text-align:left;justify-content:flex-start;padding:9px 14px}
@media(max-width:800px){.chips{display:flex;flex-direction:row}.chip{min-height:48px;white-space:nowrap;text-align:center;justify-content:center;padding:10px 14px}}

/* Give part notes enough room to read without an inner scrollbar. */
:root{--side-w:350px}
.detail-panel{min-height:220px;padding:24px 22px;overflow:visible}
.detail-heading{font-size:13px}
.detail-panel h2{font-size:23px;margin:16px 0 12px}
.detail-panel p{font-size:16px;line-height:1.85;max-height:none;overflow:visible}
@media(max-width:1100px){:root{--side-w:310px}.detail-panel{padding:21px 18px}}
@media(max-width:800px){
  .play.is-dock.has-note .note-dock{max-height:none;overflow:visible}
  .note-kicker{font-size:13px}
  .note h3{font-size:21px}
  .note p{font-size:16px;line-height:1.8}
}

/* The existing desktop layout is designed on a 1920 × 1080 canvas. */
body.is-scaled-canvas{overflow:hidden}
body.is-scaled-canvas .page{
  position:fixed;
  left:50%;
  top:50%;
  width:1920px;
  height:1080px;
  min-height:0;
  max-width:none;
  margin:0;
  transform:translate(-50%,-50%) scale(var(--canvas-scale,1));
  transform-origin:center center;
}
#stage-hint{font-size:14px;font-weight:500;letter-spacing:.02em;color:#d6e2e3}
.stage-footer>span:first-child{gap:10px}
.stage-footer i{width:15px;height:18px;border-color:#c4d0d1cc}
.stage-footer i::after{left:5px;top:4px;height:5px}
.chip.is-wrong{border-color:#ff6672;background:#4b272c;color:#fff0f1;box-shadow:0 0 0 2px #ff526244,0 0 20px #ff526266}
.tag.is-wrong{border-color:#ff6672;background:#51272d;color:#fff0f1;box-shadow:0 0 0 2px #ff526244,0 0 18px #ff526266}
.tag.is-wrong::before,.tag.is-wrong::after{color:#ffd9dc;opacity:1}
.slot:hover{background:transparent;box-shadow:none}
