/* Hardware coordinates follow the approved 862 × 1822 artboard. */
body{margin:0;min-height:100dvh;display:flex;align-items:center;justify-content:center;background:#151222;color:#e4d2ff}
.cabinet{container-type:inline-size;position:relative;display:block;flex:none;width:min(100vw,calc(100dvh * .4731));height:auto!important;min-height:0!important;max-width:none;aspect-ratio:862/1822;margin:0;padding:0!important;border:0!important;border-radius:0;background:transparent url('yaka-hardware-clean.png') center/100% 100% no-repeat!important;box-shadow:none!important;overflow:hidden;isolation:isolate}
.cabinet>header{position:absolute;inset:2.2% 6.4% auto 6%;height:5.15%;padding:0;border:0;background:none;box-shadow:none;display:flex;align-items:center;justify-content:space-between;border-radius:0}.brand-star{display:none}.brand{display:block;font-size:6.5cqw;line-height:1;letter-spacing:.4cqw;color:#e0bdff;text-shadow:.25cqw .5cqw #312039;font-weight:700!important;transform:rotate(-4deg);padding-left:4cqw}.brand em{display:block!important;font-size:1.7cqw;letter-spacing:1cqw;line-height:1.4;color:#eddaff;margin:0}.top-actions{position:absolute;left:56%;right:0;top:0;bottom:0;gap:3%;display:flex;align-items:stretch}.top-actions button{flex:1;min-width:0!important;height:100%;min-height:0;border:0!important;background:none!important;box-shadow:none!important;border-radius:40%;padding:0!important;color:#30223d;font-size:2.1cqw!important;display:flex;flex-direction:column;justify-content:center;gap:.4cqw}.top-actions button:before{font-family:Arial,sans-serif;font-size:4cqw;line-height:1}.top-actions #replay-story:before{content:'▰'}.top-actions #sound:before{content:'♫'}.top-actions #pause:before{content:'Ⅱ'}.top-actions button:disabled{opacity:.55}.top-actions button:active{filter:brightness(.8);transform:translateY(.3cqw)}
.cabinet>.screen{position:absolute!important;inset:0!important;width:100%;height:100%;padding:0!important;margin:0;border:0!important;background:none!important;box-shadow:none!important;overflow:visible;pointer-events:none;display:block}
.screen>.hud{position:absolute;left:8%;top:8.85%;width:83%;height:2.85%;display:grid;grid-template-columns:1.25fr 1.2fr 1fr;gap:2%;padding:0!important;border:0;background:none;margin:0}.hud>div{border:0!important;padding:0!important;min-width:0;display:flex;align-items:center;gap:1cqw;justify-content:center}.hud b{font-size:3.5cqw;line-height:1;color:#dfbbff}.hud small{font-size:2cqw;white-space:nowrap}.hud .energy-box{display:flex;gap:1cqw}.energy-box>div{display:none}.energy-box progress{width:100%;height:2.4cqw;margin:0;border:0;border-radius:0}.energy-box progress::-webkit-progress-value{background:repeating-linear-gradient(90deg,#d3aaff 0 13%,#67507c 14% 16%)}.energy-box progress::-webkit-progress-bar{background:#352942}
.screen>.songline{position:absolute;left:8.1%;top:12.05%;width:83%;height:2.7%;display:flex;gap:2%;padding:0!important;border:0;background:none;pointer-events:auto}.songline>div{flex:1;min-width:0;height:auto!important}.songline #song-title{font-size:2.6cqw;line-height:1.3;color:#e4c9ff}.songline #song-meta{display:none}.songline #clock{font-size:1.9cqw!important;white-space:nowrap}.songline #song-select{width:13%;min-height:0;height:100%;font-size:2.1cqw;border:0;box-shadow:none;background:none;color:#30203f;padding:0;order:3}.progress-track{display:none}
.screen>.game{position:absolute;left:0;top:16.5%;width:100%;height:37.1%;display:block;min-height:0;overflow:visible;pointer-events:auto}.board-layout{position:absolute;inset:0;display:block!important;margin:0;padding:0!important;min-height:0}.board-wrap{position:absolute;left:25.6%;top:0;width:48.1%;height:100%;aspect-ratio:auto!important;border:0!important;border-radius:0;background:#191626;box-shadow:none;min-width:0}.board-wrap #board{display:block;width:100%!important;height:100%!important;min-height:0}
.live-card,.next-card{position:absolute;top:3.4%;width:13.5%;height:auto;min-height:0;display:flex;flex-direction:column;align-items:center;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}.live-card{left:8.1%;height:15.5%}.live-card>small{font-size:2.6cqw;color:#e2c6ff;line-height:1.3}.live-card>b{font-size:6.5cqw;line-height:1.3;color:#e2c6ff}.fan-chip{position:absolute;top:24cqw;width:100%;border:1px solid #a887bb;border-radius:6px;background:#1d1728ef;display:flex;flex-direction:column;align-items:center;padding:1cqw;visibility:hidden}.next-card{left:80.5%;height:60%;padding:0!important}.next-card>small{font-size:2.4cqw;white-space:nowrap;line-height:1.5}.next-card #next{width:100%;height:12cqw;margin:1.8cqw 0}.line-chip{margin-top:2cqw;width:100%;padding:1cqw;background:#22192e;border:1px solid #715486;border-radius:5px}.line-chip>span{display:none}.line-chip b{font-size:4.5cqw}.line-chip small{font-size:2cqw}#piece-count,#combo-label{display:none}.beat-meter{position:absolute;left:26%;bottom:-1.7%;width:47%;height:1.6%;padding:0!important;opacity:.8;pointer-events:none}.beat-meter>span{display:none}.beat-track{width:100%;height:3px}.beat-track b{display:none}.beat-track i{height:6px;width:6px;top:-2px}#judge{position:absolute;top:33%;left:25%;right:25%;font-size:3cqw;color:#fff2ff;text-shadow:0 2px 4px #100b18;pointer-events:none}
.cabinet>.stage{position:absolute!important;left:5.7%;top:55.9%;width:88.5%;height:18.2%!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:none!important;overflow:hidden;pointer-events:none}.stage:before,.stage:after,.stage .stage-label,.stage .crowd,.stage .sparkles{display:none!important}.stage .stage-lights{background:conic-gradient(from 160deg at 15% 0,transparent,#c8a4ff55 20deg,transparent 40deg);opacity:.2}.stage .idols{left:15%;right:15%;bottom:13%;height:73%!important;display:flex;align-items:flex-end;justify-content:center;gap:0}.stage .idol{width:34%;height:100%;flex:none;position:relative}.stage .idol .sprite{height:100%;width:100%;background-size:300% 100%;background-repeat:no-repeat;background-position-y:bottom;filter:drop-shadow(0 2px #120c1b88)}.stage .idol>span{display:none}.stage-notes{display:block}.fan-audience{display:none!important}
.controls{position:absolute!important;inset:78.8% 0 0!important;height:21.2%!important;width:100%;margin:0;padding:0!important;background:none!important;border:0!important;border-radius:0;box-shadow:none!important;pointer-events:none}.controls>.control-charm,.console-mark,.controls .console-heart,.controls footer{display:none!important}.control-deck{position:absolute!important;inset:0;height:100%;padding:0!important;display:block;transform:none}.control-deck>.direction-pad{position:absolute;left:5.1%;top:4.4%;width:43%;height:51%;padding:0;display:flex;gap:7%;transform:none;isolation:auto}.direction-pad:before{display:none}.direction-pad button{flex:1;aspect-ratio:1;width:46.5%;height:100%;border:0!important;border-radius:50%;padding:0;gap:0;color:#332b49;background:none!important;box-shadow:none!important;text-shadow:none;pointer-events:auto;display:flex;align-items:center;justify-content:center}.direction-pad button small{display:none}.direction-pad button .control-icon{width:46%;height:46%;stroke-width:4;filter:none}.soft-drop{position:absolute;left:8.5%;top:63.8%;bottom:auto;width:36.9%;height:20.2%;min-height:0;border:0!important;border-radius:40px;background:none!important;box-shadow:none!important;display:flex;align-items:center;justify-content:center;gap:1cqw;padding:0;color:#382548;pointer-events:auto}.soft-drop small{font-size:3.2cqw}.soft-drop .control-icon{width:3cqw;height:3cqw}.action-pad{position:absolute;left:60.3%;top:7.2%;width:34.2%;height:75.2%;display:flex;flex-direction:column;justify-content:space-between;gap:10%;pointer-events:none}.action-pad .drop,.action-pad .rotate{width:100%;height:44%;border:0!important;border-radius:40px;background:none!important;box-shadow:none!important;padding:0;gap:2cqw;display:flex;justify-content:center;align-items:center;pointer-events:auto;color:#3b244c;transform:none}.action-pad .rotate{color:#e4cafc}.action-pad button small{font-size:3.5cqw;color:inherit!important}.action-pad button .control-icon{height:5cqw;width:5cqw;filter:none}.action-pad button:active,.direction-pad button:active,.soft-drop:active,.active{filter:brightness(.8);transform:translateY(.35cqw)!important}
/* All narrative and menu pages use the same physical shell, not the old theatre chrome. */
.story,.after-story,.song-picker,.overlay{position:absolute!important;inset:8.5% 6.6% 3.4%!important;width:auto;height:auto;max-height:none;margin:0!important;border:2px solid #b49bd0!important;border-radius:2.2cqw!important;background:linear-gradient(135deg,#33253fec,#171320fc)!important;box-shadow:0 0 0 1cqw #171020,0 0 0 1.5cqw #a381bb,inset 0 2px #fff4!important;padding:3cqw!important;color:#e8d8f6;z-index:20;overflow:auto;overscroll-behavior:contain}.story{display:flex;flex-direction:column}.story[hidden],.after-story[hidden],.song-picker[hidden],.overlay[hidden]{display:none!important}.story-top,.story-bottom{display:flex;justify-content:space-between;align-items:center;gap:2cqw;border-color:#8b6da3!important;flex:none}.story-top{font-size:2.1cqw;color:#c9a8e7;padding-bottom:2cqw}.comic-heading{flex:none;padding:2cqw 0}.comic-heading>span{font-size:2.2cqw;color:#b89acc}.comic-heading h2{font-size:4.3cqw;margin:1cqw 0;color:#f2dcff}.comic-page{flex:1;min-height:0;width:100%;position:relative}.comic-panel,.vn-ending-panel{border:2px solid #c2a4df!important;border-radius:1.5cqw;outline:none!important;box-shadow:0 3px #100b1d,inset 0 0 0 2px #4e345e!important}.comic-bubble,.vn-heaven .comic-bubble,.vn-ending-dialogues .vn-ending-bubble{background:#f3eafa!important;color:#352140!important;border:1px solid #8a63a3!important;box-shadow:0 2px 3px #160d2044!important}.comic-bubble p,.comic-bubble.narration p,.comic-bubble.file p,.comic-bubble.thought p{color:#352140!important}.comic-bubble span{color:#7f5396!important}.comic-bubble.narration,.comic-bubble.file{border-radius:1.5cqw!important;background:#281a37ed!important}.comic-bubble.narration p,.comic-bubble.file p,.comic-bubble.narration span,.comic-bubble.file span{color:#f1ddff!important}.comic-bubble.speech:after{background:#f3eafa!important;border-color:#8a63a3!important}.comic-help{font-size:2.1cqw;color:#bfa6d2;margin:2cqw 0}.interactive-comic .story-bottom{padding-top:2cqw}.story button,.ending-actions button,.overlay>button,.cd-detail button,.picker-head button{border:2px solid #c6a4e2!important;border-radius:3cqw!important;background:linear-gradient(#b28ccd,#6e4b88)!important;color:#fff0ff!important;box-shadow:0 4px #140c20,inset 0 2px #fff4!important;font-size:3cqw;min-height:40px}.interactive-comic .story-bottom button:last-child,.overlay>.primary{background:linear-gradient(#d6b6f4,#a87bd2)!important;color:#33203f!important}.story-bottom>span{color:#d7b9ef!important}.after-story>.ending-header{height:auto!important;background:none!important;border:0!important;display:block!important;padding:0 0 3cqw}.ending-header h2{font-size:5cqw;color:#edceff}.ending-header span,.ending-header p{font-size:2.5cqw;color:#bda1d0}.vn-ending-page{gap:3cqw 2cqw;padding:1cqw}.ending-actions{display:flex;gap:3cqw;padding:4cqw 0;position:sticky;bottom:0;background:#20162fe8}.ending-actions button{flex:1}.overlay{display:flex;flex-direction:column;justify-content:center;align-items:center}.overlay h2{font-size:5cqw}.overlay p{font-size:3cqw}.overlay .result{font-size:3.4cqw;padding:3cqw;background:#a274ca18;border:1px solid #88619f;border-radius:2cqw}.overlay>button{width:85%;margin-bottom:3cqw;flex-shrink:0}.overlay .hint{font-size:2.6cqw}.song-picker{display:flex;flex-direction:column}.picker-head h2{font-size:5cqw}.picker-head{height:auto!important;background:none!important;padding:1cqw 0 3cqw;border-bottom:2px solid #8b68a1}.picker-head button{min-width:40px}.picker-foot,#song-feedback{font-size:2.5cqw}.cd-detail h3{font-size:4.6cqw}.cd-detail p,.cd-detail small{font-size:2.8cqw}.cd-detail button{font-size:4cqw;min-height:45px}.cd-detail{width:83%}
#lesson{position:absolute;inset:1% 25% auto!important;width:49%;margin:0;z-index:11;padding:1.5cqw;font-size:2.3cqw;box-shadow:0 2px 5px #100b1dcc}#lesson button{font-size:2.2cqw;padding:1cqw;min-height:30px}body:has(#lesson:not([hidden])) .game{display:block}#lesson-text{line-height:1.4}#countdown{font-family:var(--ui-font);color:#fff2ce}#local-debug{max-width:95vw;opacity:.9;font-size:10px;z-index:60}.desktop-note{display:none}
@media(max-height:600px) and (orientation:landscape){.cabinet{width:calc(100dvh * .4731)}#local-debug{left:auto;right:8px;width:auto;max-width:28vw}}

.screen>.songline #song-select{background:linear-gradient(#d5b4f0,#a27bc6);border:1px solid #cfaff1;border-radius:1.5cqw;box-shadow:0 2px #190e28}.top-actions button{font-size:1.8cqw!important}.stage .idol .sprite{background-size:300% 100%!important}body:has(#local-debug:not([hidden])){padding-bottom:44px}.cabinet{flex-shrink:0}body:has(#local-debug:not([hidden])) .cabinet{width:min(100vw,calc((100dvh - 44px) * .4731))}#local-debug{position:fixed;bottom:0;left:50%;right:auto;transform:translateX(-50%);height:40px;width:min(100vw,430px);display:flex;justify-content:space-between;padding:4px 10px;box-sizing:border-box}#local-debug[hidden]{display:none}#local-debug button{min-height:30px;font-size:11px}

.story,.after-story,.song-picker,.overlay{background:linear-gradient(135deg,#33253f,#171320)!important}.next-card{height:61%}.next-card .line-chip{margin-top:4cqw}.next-card #next{margin-top:2cqw}.story-top button{min-height:32px}

body[data-event=formal] .cabinet>.stage{background:#3a2a4c url('stage-school.svg') center/cover no-repeat!important}.story-top button,.story-bottom button{white-space:nowrap}.stage .idol>span{display:none}.overlay .modal-star{color:#d4acff}

.soft-drop{top:60.8%;height:26.2%;min-height:44px}.next-card .line-chip{position:absolute;top:19cqw;left:0;margin:0}
/* Reference-alignment pass: each readout is constrained to its own recess. */
.next-card{top:3.4%;left:80.5%;width:13.5%;height:61%;overflow:visible}.next-card>small{position:absolute;left:0;top:0;width:100%;line-height:1.4;text-align:center;margin:0;padding:0;font-size:2.4cqw}.next-card #next{position:absolute;left:0;top:4cqw;width:100%;height:12cqw;margin:0;padding:0}.next-card .line-chip{position:absolute;top:19.2cqw;left:0;width:100%;height:8.3cqw;min-height:0;margin:0;padding:.6cqw;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:.5cqw;border:0;background:transparent;box-shadow:none}.next-card .line-chip b{font-size:3.7cqw;line-height:1;margin:0}.next-card .line-chip small{font-size:2cqw;line-height:1.1;margin:0}.live-card{top:3.4%;height:15.5%}.live-card>small{margin:0;font-size:2.5cqw}.live-card>b{margin:0;padding-top:1cqw;line-height:1;font-size:6.5cqw}
/* Keep square sprite-sheet cells square instead of stretching them to the stage. */
.cabinet>.stage .idols{left:14%;right:14%;bottom:9%;height:78%!important;gap:0;align-items:flex-end}.cabinet>.stage .idol{width:33.333%;height:100%;position:relative;transform-origin:center bottom}.cabinet>.stage .idol .sprite{position:absolute;left:-10%;bottom:0;width:120%;height:auto!important;aspect-ratio:1;image-rendering:auto;background-size:300% 100%!important;background-repeat:no-repeat;background-position-y:bottom}.cabinet>.stage .meruto .sprite{background-position-x:0}.cabinet>.stage .riria .sprite{background-position-x:50%}.cabinet>.stage .nerune .sprite{background-position-x:100%}
/* Label positions are independent of runtime button wording. */
.top-actions button{font-size:0!important;gap:.15cqw}.top-actions button:before{font-size:0;width:5.5cqw;height:4.7cqw;display:block;background-position:center;background-repeat:no-repeat;background-size:contain;content:''}.top-actions button:after{font-size:2cqw;line-height:1.2;display:block;color:#3c284d}.top-actions #replay-story:after{content:'序章'}.top-actions #sound:after{content:'声音'}.top-actions #sound[aria-pressed=true]:after{content:'静音'}.top-actions #pause:after{content:attr(data-key-label)}
.top-actions #replay-story:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 28'%3E%3Cpath d='M3 3Q10 0 15 4V26Q9 22 3 24ZM29 3Q22 0 17 4V26Q23 22 29 24Z' fill='%23392b4c'/%3E%3C/svg%3E")}.top-actions #sound:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 28'%3E%3Cpath d='M2 10H8L16 3V25L8 18H2Z' fill='%23392b4c'/%3E%3Cpath d='M21 8Q27 14 21 20M25 3Q35 14 25 25' stroke='%23392b4c' stroke-width='3' fill='none'/%3E%3C/svg%3E")}.top-actions #pause:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 28'%3E%3Crect x='7' y='2' width='6' height='24' rx='2' fill='%23392b4c'/%3E%3Crect x='20' y='2' width='6' height='24' rx='2' fill='%23392b4c'/%3E%3C/svg%3E")}
.screen>.hud{grid-template-columns:1.25fr 1.2fr 1fr;align-items:center}.hud>div:first-child{justify-content:flex-start}.hud b{font-size:3.5cqw;line-height:1}.hud small{font-size:2.1cqw;line-height:1}.hud>div:last-child{justify-content:flex-end}.energy-box:before{content:'♥';color:#dfb8ff;font-size:4cqw;line-height:1}.energy-box progress{height:2.8cqw}.screen>.songline{left:8.4%;width:82.6%;gap:1.2cqw;align-items:center}.songline #song-title{font-size:3cqw;line-height:1.25;white-space:nowrap}.songline #clock{font-size:2.1cqw!important}.songline #song-select{font-size:2.4cqw;font-weight:600}.screen>.progress-track{display:block;position:absolute;left:40.5%;top:13.15%;height:.4%;width:17%;border:0;margin:0;background:#514269;z-index:2;border-radius:5px;pointer-events:none}.screen>.progress-track>div{background:#c7a1f8;height:100%;border-radius:5px}.songline>div:not(.album){flex:none;width:38%}.songline #clock{margin-left:auto}
.controls .direction-pad button .control-icon{stroke-width:1}.action-pad .drop .control-icon{stroke-width:5}.action-pad .rotate .control-icon{stroke-width:4}.action-pad button small{font-size:3.7cqw;font-weight:600!important}.action-pad .drop .control-icon{height:6cqw;width:6cqw}.action-pad .rotate .control-icon{height:6cqw;width:6cqw}.soft-drop small{font-size:3.6cqw;font-weight:600!important}
/* Preserve the approved illustrated Chinese logotype; English remains live correct text. */
.cabinet>header>div:first-child{position:absolute;inset:0 auto 0 0;width:50%}.brand{position:absolute;left:9.7cqw;top:-1.4cqw;width:25.52cqw;height:9.86cqw;padding:0;font-size:0!important;line-height:0;transform:none;text-shadow:none}.brand:before{content:'';position:absolute;inset:0;background:url('yaka-hardware-v1.png') 20.87% 1.612%/391.82% 2143.53% no-repeat;pointer-events:none}.brand em{position:absolute;left:3.7cqw;top:10cqw;margin:0;font-size:1.7cqw;line-height:1;letter-spacing:.8cqw;white-space:nowrap;color:#edd5ff;text-shadow:0 1px #29182f}
.cabinet>.stage .idol .sprite{background-image:url('idols-stage-face-v28.png');width:135%;left:-17.5%}.cabinet>.stage .idols{bottom:10%;height:81%!important}
/* Remove legacy centre-translation: it was shifting the whole band off stage. */
.cabinet>.stage .idols{transform:none!important;max-width:none!important;width:auto!important}
.screen>.songline>div:not(.album){flex:0 0 38%!important;width:38%!important;height:auto!important}.screen>.songline #song-title{width:100%}
.top-actions #replay-story:before,.top-actions #sound:before,.top-actions #pause:before{content:''!important}

.screen>.game #judge{position:absolute;left:25.6%;right:auto;top:36%;bottom:auto;width:48.1%;max-width:48.1%;transform:none;margin:0;padding:1cqw;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;text-align:center;font-size:2.6cqw;line-height:1.35;pointer-events:none;z-index:8}
/* v029: coordinates calibrated against the 862 × 1822 design artwork. */
.top-actions{top:20%;bottom:7%}.top-actions button:before{width:4.8cqw;height:3.8cqw;flex:none}.top-actions button:after{font-size:1.9cqw;line-height:1.1}.top-actions button{justify-content:center;gap:.35cqw}
.controls .direction-pad{left:5.1%;top:4.4%;width:46.2%;height:51%;gap:4%}.action-pad{left:58.5%;top:4.7%;width:36.8%;height:76.8%}.action-pad button small{line-height:1;white-space:nowrap}.action-pad .control-icon{flex:none}.soft-drop{top:56.3%;height:26.2%;min-height:44px;gap:1.2cqw;align-items:center}.soft-drop small{line-height:1}.soft-drop .control-icon{width:4cqw;height:4cqw;flex:none}
.screen>.songline>div:not(.album){margin-left:8cqw;flex:0 0 28%!important;width:28%!important}.songline #song-title{font-size:2.9cqw}.screen>.songline:before{content:'♫';position:absolute;left:3cqw;top:50%;transform:translateY(-50%);font-size:3.4cqw;color:#e2bfff}.screen>.songline #clock{font-size:2.35cqw!important;line-height:1}.screen>.songline #song-select{width:14%;font-size:2.6cqw;line-height:1}.screen>.hud>div:first-child{padding-left:4cqw!important;gap:1cqw}.hud small{font-size:2.4cqw}.hud b{font-size:3.7cqw}.hud>div:last-child small{font-size:2.2cqw}.screen>.progress-track{left:40.5%;top:13.15%;width:17%}
/* Four true queue canvases occupy the four existing recesses. */
.next-card{left:80.5%;top:3.4%;width:13.5%;height:63%;padding:0!important}.next-card>small{top:.4cqw;font-size:2.8cqw;line-height:1}.next-card canvas{position:absolute;left:0;width:100%;margin:0!important;padding:0;display:block;max-width:none;transform:none}.next-card #next{top:5cqw;height:11.8cqw}.next-card #next-2{top:18.7cqw;height:8.2cqw}.next-card #next-3{top:28.9cqw;height:8.2cqw}.next-card #next-4{top:39cqw;height:8.2cqw}
/* Clear count belongs to the left information display, never the queue. */
.live-card{top:3.4%;left:8.1%;width:13.5%;height:14.2cqw;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:7cqw 5cqw;gap:0;align-items:center;justify-items:center}.live-card>small{font-size:2.3cqw;line-height:1;margin:0}.live-card>b{font-size:4.4cqw;line-height:1;margin:0;padding:0}.live-card .line-chip{position:static;grid-column:1/-1;display:flex;flex-direction:row-reverse;align-items:center;justify-content:center;gap:1cqw;width:100%;height:auto;min-height:0;margin:0;padding:0;background:none;border:0;box-shadow:none}.live-card .line-chip>span{display:none}.live-card .line-chip b{font-size:3.2cqw;line-height:1}.live-card .line-chip small{font-size:2.1cqw;line-height:1;white-space:nowrap}
/* Feet meet the stage deck; foreground audience occludes them naturally. */
.cabinet>.stage .idols{left:14%;right:14%;bottom:22%;height:74%!important;z-index:3}.cabinet>.stage .idol .sprite{width:128%;left:-14%;bottom:0}.cabinet>.stage:after{content:'';display:block!important;position:absolute;top:auto;left:0;right:0;bottom:0;width:100%;height:26%;border:0;background: url('yaka-hardware-clean.png') 49.5% 73% / 113% 2035% no-repeat;z-index:7;pointer-events:none}.cabinet>.stage .stage-notes{z-index:4}
/* Keep the large combo numeral from the design; clear count is secondary. */
.live-card{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;height:14.2cqw}.live-card>small{height:3cqw;line-height:3cqw;font-size:2.5cqw}.live-card>b{font-size:6cqw;line-height:6cqw;height:6cqw;margin:0;padding:0}.live-card .line-chip{position:absolute;top:10.2cqw;left:0;height:2.8cqw;width:100%;gap:.8cqw;display:flex;flex-direction:row-reverse;align-items:center;justify-content:center}.live-card .line-chip b{font-size:2.3cqw;line-height:1}.live-card .line-chip small{font-size:1.8cqw;line-height:1}.action-pad button,.action-pad button small,.action-pad .control-icon,.soft-drop,.soft-drop small{text-shadow:none!important;filter:none}
.top-actions{left:56%;right:0;gap:0}.top-actions button{position:absolute;top:0;bottom:0;width:11.14cqw;flex:none;min-width:0!important}.top-actions #replay-story{left:0}.top-actions #sound{left:13.69cqw}.top-actions #pause{left:26.68cqw}
/* v030 typography, preview scale and key-symbol fidelity. */
@font-face{font-family:'Yaka Display Pixel';src:url('fonts/vt323.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
.cabinet #score,.cabinet #fans,.cabinet #combo,.cabinet #lines,.cabinet #clock{font-family:'Yaka Display Pixel',monospace!important;font-weight:400!important;font-variant-numeric:tabular-nums;font-synthesis:none;letter-spacing:.15cqw}
.screen>.hud{grid-template-columns:1.2fr 1.3fr 1fr;gap:2%;height:2.85%}.screen>.hud>div{position:relative}.screen>.hud>div:first-child{padding-left:4cqw!important}.hud>div:first-child:before{content:'✦';position:absolute;left:.6cqw;top:50%;transform:translateY(-50%);font-size:2cqw;color:#a77fd0}.screen>.hud>div:first-child:after,.screen>.hud>.energy-box:after{content:'';position:absolute;right:-1cqw;top:-.2cqw;bottom:-.2cqw;width:1px;background:linear-gradient(transparent,#b18ac577,transparent)}.screen>.hud>.energy-box{padding-left:5.5cqw!important;gap:1.0cqw;justify-content:flex-start}.energy-box:before{font-size:3.8cqw;text-shadow:0 0 1cqw #d3a9ff66}.energy-box progress{width:18.4cqw;flex:none;height:2.4cqw;box-shadow:inset 0 1px #e8c6ff22}.hud #score{font-size:4.8cqw;line-height:1;color:#d9b3ff;text-shadow:0 0 .5cqw #b687e866}.hud small{font-size:2.2cqw;line-height:1.1}.screen>.hud>div:last-child{display:grid;grid-template-columns:3.6cqw 5cqw 5.8cqw;gap:1cqw;justify-content:end;align-items:center}.hud>div:last-child:before{content:'';width:3.6cqw;height:3cqw;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 24'%3E%3Ccircle cx='15' cy='5' r='4' fill='%23d7b5f4'/%3E%3Ccircle cx='5' cy='8' r='3' fill='%23d7b5f4'/%3E%3Ccircle cx='25' cy='8' r='3' fill='%23d7b5f4'/%3E%3Cpath d='M10 11Q15 8 20 11L23 22H7ZM0 14Q4 10 8 14L5 23H0ZM22 14Q26 10 30 14V23H25Z' fill='%23d7b5f4'/%3E%3C/svg%3E") center/contain no-repeat}.hud>div:last-child small{font-size:2.2cqw;white-space:nowrap}.hud #fans{font-size:4.6cqw;text-align:right;line-height:1}.live-card #combo{font-size:8cqw;line-height:.85;color:#e2bfff}.live-card #lines{font-size:3cqw;line-height:1}
.screen>.songline #clock{font-size:2.5cqw!important;letter-spacing:0;line-height:1;color:#d7b7ef}.screen>.songline #song-title{font-size:2.9cqw;font-weight:400}.screen>.songline #song-select{font-weight:400;font-size:2.5cqw}.screen>.songline #song-select:before{content:'♫';margin-right:.6cqw;font-size:3cqw}.screen>.songline #song-select{width:14.5%}.screen>.progress-track{left:37.5%;width:18%;top:13.15%;height:.32%}.screen>.progress-track #progress{position:relative}.screen>.progress-track #progress:after{content:'';position:absolute;right:0;top:50%;width:1.1cqw;height:1.1cqw;border:1px solid #f1d7ff;background:#c299ec;transform:translate(50%,-50%) rotate(45deg);border-radius:.2cqw;box-shadow:0 0 .7cqw #ac7ddd66}.screen>.songline #clock{margin-left:auto}
.action-pad button small,.soft-drop small{font-size:3.15cqw;font-weight:400!important;font-variation-settings:'wght' 500,'wdth' 95;line-height:1;text-shadow:none!important}.action-pad button{gap:2.1cqw}.action-pad .drop .control-icon{width:5.5cqw;height:5.5cqw}.action-pad .rotate .control-icon{width:6.3cqw;height:6.3cqw}.controls .direction-pad button .control-icon{width:39%;height:39%}.soft-drop .control-icon{display:none}.soft-drop{justify-content:space-evenly;gap:0}.soft-drop:before,.soft-drop:after{content:'';display:block;width:2.4cqw;height:4cqw;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 24'%3E%3Cpath d='M3 3V21M8 3V21M13 3V21' stroke='%238967a4' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;opacity:.7;pointer-events:none}

.cabinet>.stage .riria[data-drum-stroke=down] .sprite{background-image:url('idols-drum-down-v30.png')}.cabinet>.stage .riria .sprite{transition:none}
@font-face{font-family:'Yaka Jersey';src:url('fonts/jersey10.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}.cabinet #score,.cabinet #fans,.cabinet #combo,.cabinet #lines{font-family:'Yaka Jersey',monospace!important;letter-spacing:.15cqw}.cabinet #clock{font-family:'Yaka Momo',sans-serif!important;font-weight:400;letter-spacing:0}.screen>.songline #clock{font-size:2.2cqw!important}.hud #score{font-size:4.6cqw}.hud #fans{font-size:4.6cqw}.live-card #combo{font-size:7cqw}
/* v031: one artboard coordinate system; content centres follow the painted recesses. */
.screen>.songline{left:9.5%;top:11.8%;width:81.2%;height:2.7%;display:block;overflow:visible}
.screen>.songline:before{left:3.5cqw;top:50%;font-size:3.1cqw;line-height:1}
.screen>.songline:after{content:'✦';position:absolute;left:.1cqw;top:50%;transform:translateY(-50%);font-size:2.6cqw;color:#c5a1e9}
.screen>.songline>div:not(.album){position:absolute;left:8cqw;top:0;width:21.5cqw!important;height:100%!important;margin:0;display:flex;align-items:center;overflow:hidden;flex:none!important}
.screen>.songline #song-title{font-size:2.65cqw;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.screen>.songline #clock{position:absolute;left:52.3cqw;top:0;width:14.5cqw;height:100%;display:flex;align-items:center;justify-content:center;margin:0;font-size:2.05cqw!important;white-space:nowrap}
.screen>.songline #song-select{position:absolute;left:69.4cqw;top:.15cqw;width:12cqw;height:4.55cqw;min-width:0;min-height:0;margin:0;padding:0;display:flex;align-items:center;justify-content:center;gap:.7cqw;font-size:2.45cqw;line-height:1;border-radius:1.4cqw;box-sizing:border-box}
.screen>.songline #song-select:before{margin:0;font-size:2.9cqw;line-height:1}
.screen>.progress-track{left:37.35%;top:13.35%;width:23%;height:.23%;z-index:2}
.screen>.hud{left:9.5%;top:8.85%;width:81.2%;height:2.75%;grid-template-columns:27% 37% 30%;gap:3%;align-items:center}
.screen>.hud>div:first-child{padding-left:2.6cqw!important;gap:1.6cqw;height:100%}.hud>div:first-child:before{left:.1cqw}
.screen>.hud>.energy-box{padding-left:1cqw!important;height:100%;gap:1.5cqw}.energy-box:before{font-size:4.3cqw}.energy-box progress{width:19cqw;height:2.5cqw}
.screen>.hud>div:last-child{height:100%;padding-right:3cqw!important;grid-template-columns:3.6cqw 5.5cqw auto;gap:1.2cqw}.hud small{font-size:2.5cqw}.hud>div:last-child small{font-size:2.5cqw}
.cabinet .hud #score,.cabinet .hud #fans{font-size:5.6cqw;line-height:1;display:flex;align-items:center;height:100%;letter-spacing:.15cqw}
/* Combo label is above the numeral recess, never alongside the number. */
.screen .live-card{left:7.66%;top:0;width:12.53%;height:16.2cqw;display:block;margin:0;padding:0}
.screen .live-card>small{position:absolute;left:0;top:3.7cqw;width:100%;height:3.5cqw;text-align:center;font-size:2.8cqw;line-height:3.5cqw}
.cabinet .live-card #combo{position:absolute;left:0;top:7.7cqw;width:100%;height:8.7cqw;display:flex;justify-content:center;align-items:center;font-size:11cqw;line-height:1;margin:0;padding:0;letter-spacing:0}
.screen .live-card .line-chip{display:none}
/* The canvas bounds match all four painted windows, including their inner padding. */
.screen .next-card{left:79.58%;top:0;width:13.46%;height:52cqw}
.screen .next-card>small{top:3.7cqw;height:3.5cqw;line-height:3.5cqw;font-size:2.8cqw}
.screen .next-card canvas{left:0;width:100%;box-sizing:border-box}
.screen .next-card #next{top:7.66cqw;height:13.69cqw}
.screen .next-card #next-2{top:21.35cqw;height:9.51cqw}
.screen .next-card #next-3{top:30.86cqw;height:10.09cqw}
.screen .next-card #next-4{top:40.95cqw;height:10.09cqw}
/* Actual hit areas and SVG viewboxes share the physical keycap centres. */
.controls .control-deck>.direction-pad{left:0;top:0;width:100%;height:100%;display:block;margin:0;padding:0}
.controls .direction-pad button{position:absolute;top:2.5%;width:22.5%;height:50%;flex:none;aspect-ratio:auto;display:flex;align-items:center;justify-content:center;transform:none;margin:0;padding:0}
.controls .direction-pad button[data-action=left]{left:3.1%}
.controls .direction-pad button[data-action=right]{left:27.75%}
.controls .direction-pad button .control-icon{display:block;width:38%;height:auto;aspect-ratio:1;flex:none;margin:0;padding:0;transform:none;overflow:visible}
.controls .direction-pad button:before,.controls .action-pad button:before{display:none!important}
.controls .action-pad{left:58.1%;top:3.8%;width:37%;height:77.2%;gap:0}
.controls .action-pad button{height:44%;display:flex;align-items:center;justify-content:center;gap:3.5cqw}
.controls .action-pad button small{display:block;margin:0;padding:0;font-size:3.4cqw;line-height:1}
.controls .soft-drop{left:7.65%;top:57.5%;width:37.8%;height:22%;min-height:0;margin:0;padding:0;display:flex;align-items:center;justify-content:space-evenly}
.controls .soft-drop small{font-size:3.4cqw;margin:0;padding:0;line-height:1}
.screen>.songline>div:not(.album){width:18cqw!important}
.screen>.songline>div:not(.album){width:19.5cqw!important}
.screen>.songline #song-title{font-size:2.45cqw}
/* Keep the select key legible inside its own cap, including during play. */
.cabinet .screen>.songline #song-select{background:linear-gradient(180deg,#e4c6ff 0%,#c49aef 55%,#ae7fdf 100%)!important;border:1px solid #d6b2fa!important;box-shadow:inset 0 1px #fff8,0 1px 0 #684487!important;color:#352245!important;font-size:2.95cqw!important;font-weight:600!important;height:4.8cqw;top:.1cqw;gap:.65cqw;opacity:1!important;filter:none!important;text-shadow:none!important}
.cabinet .screen>.songline #song-select:before{font-family:Arial,sans-serif;font-size:3.1cqw;line-height:1;color:inherit;opacity:1}
.cabinet .screen>.songline #song-select:disabled{cursor:default}
/* Lower-row keys keep the same breathing room above and below the cap. */
.screen>.songline{top:12.15%;height:2.3%}
/* Rounded vector arrows: optical centring compensates the triangle's visual mass. */
.controls .direction-pad button .control-icon{width:42%;height:auto;aspect-ratio:1;color:#332d48;filter:drop-shadow(0 .16cqw 0 #fff9)}
.controls .direction-pad button[data-action=left] .control-icon{transform:translateX(-3.5%)}
.controls .direction-pad button[data-action=right] .control-icon{transform:translateX(3.5%)}

/* Paint only: cue does not move or resize the preview slots. */
#next[data-birth-cue="ready"]{filter:drop-shadow(0 0 5px #eed1ff) brightness(1.35)}
@media(prefers-reduced-motion:reduce){#next[data-birth-cue="ready"]{filter:brightness(1.2)}}
