:root{font-family:'Microsoft YaHei','PingFang SC',sans-serif;color:#635780;background:#e9e1fb}*{box-sizing:border-box}body{margin:0;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(ellipse at 15% 15%,#dcfcf5,transparent 55%),radial-gradient(ellipse at 90% 80%,#ffd6ed,transparent 60%),#e6e1fc}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid #ba69ba;outline-offset:3px}button:disabled{opacity:.4}.cabinet{position:relative;width:min(100%,450px);height:min(930px,100dvh);min-height:600px;padding:12px 12px 0;display:flex;flex-direction:column;background:linear-gradient(145deg,#f6f7ff,#e2d3f7 45%,#edd0e8);border:2px solid #fff;border-radius:32px 32px 45px 45px;box-shadow:inset 0 0 0 3px #ffffff66,0 18px 55px #a28cc24a,0 0 0 1px #c8b5e3;overflow:hidden}header{height:49px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;padding:0 5px 7px}header>div:first-child{display:flex;align-items:center;gap:5px}.brand-star{color:#b49fe1;font-size:31px;text-shadow:1px 1px white}.brand{font-size:20px;font-weight:900;font-style:italic;color:#8c70b2;line-height:1}.brand em{display:block;font-size:10px;letter-spacing:4px;color:#c18fb4;text-align:right;margin-top:2px}.top-actions{display:flex;gap:6px}.top-actions button{border:1px solid #fff;background:#ffffff80;padding:7px 9px;border-radius:20px;font-size:10px;box-shadow:0 2px 7px #a79ac326}.screen{flex:1;min-height:200px;background:linear-gradient(145deg,#fff9ff,#eee9ff);border:2px solid #fff;border-radius:22px;padding:10px 9px 0;box-shadow:0 0 0 1px #c3acd8,0 4px 9px #b3a1cc40;display:flex;flex-direction:column;overflow:hidden}.hud{display:grid;grid-template-columns:1fr 1.5fr .8fr;gap:10px;align-items:center;flex-shrink:0;padding:0 3px 7px}.hud small{display:block;font-size:8px;letter-spacing:1px;color:#9483a5}.hud b{font:italic bold 17px monospace;color:#8d6cac}.hud>div:last-child{text-align:right}.energy-box>div{display:flex;align-items:center;justify-content:space-between;gap:4px}.energy-box small{letter-spacing:0}.energy-box span{font:9px monospace;color:#a389aa}progress{display:block;width:100%;height:8px;margin-top:6px;border:1px solid #fff;border-radius:10px;overflow:hidden;background:#e3d6ec}progress::-webkit-progress-bar{background:#e3d6ec}progress::-webkit-progress-value{background:linear-gradient(90deg,#e7a3d0,#c59ce5,#a1dfe1);border-radius:10px}.stage{height:clamp(125px,20dvh,175px);position:relative;flex-shrink:0;overflow:hidden;border-radius:15px;background:radial-gradient(ellipse at 50% 110%,#fff7ec 10%,transparent 70%),linear-gradient(120deg,#f4daf2,#dce0fc,#d9f2f2);border:1px solid #ffffff;transition:filter .6s,box-shadow .6s}.stage-label{position:relative;z-index:3;display:flex;justify-content:space-between;padding:7px 9px;font-size:8px;letter-spacing:.8px;color:#9a83b3}.stage-label span:last-child{letter-spacing:0}.stage-lights{position:absolute;inset:0;background:conic-gradient(from 160deg at 20% 0,transparent,#fff8 15deg,transparent 35deg),conic-gradient(from 175deg at 80% 0,transparent,#fff9 25deg,transparent 45deg);opacity:.45;transition:opacity .4s}.sparkles{position:absolute;top:30px;width:100%;text-align:center;font-size:22px;color:#fff;letter-spacing:10px;opacity:.35;transition:opacity .4s}.idols{position:absolute;left:6px;right:6px;bottom:18px;height:calc(100% - 33px);display:flex;z-index:2;align-items:flex-end}.idol{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;width:33.33%;height:100%;transform-origin:center bottom}.sprite{height:calc(100% - 16px);width:100%;background-image:url('idols-dream.png');background-size:300% 100%;background-repeat:no-repeat;background-position:0 center;filter:drop-shadow(0 4px 2px #a58cb225)}.riria .sprite{background-position:50% center}.nerune .sprite{background-position:100% center}.idol>span{font-size:9px;color:#8d75a5;line-height:16px;background:#fff8;border-radius:8px;padding:0 5px}.crowd{position:absolute;bottom:-2px;text-align:center;width:100%;color:#c6acd8;letter-spacing:6px;font-size:19px;opacity:.5;transition:opacity .4s}.songline{display:flex;align-items:center;gap:8px;padding:8px 3px 7px;flex-shrink:0}.album{width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(#ebc6ed,#bdedeb,#dfd8f8,#ebc6ed);border:2px solid white;color:#a08ac4;font-size:18px}.songline b{font-size:12px;display:block}.songline div>span{font:8px monospace;color:#a18faa}.songline>span{margin-left:auto;font:9px monospace;color:#a18faa}.progress-track{height:3px;background:#e8dff0;flex-shrink:0;border-radius:3px}.progress-track div{height:100%;width:0;background:linear-gradient(90deg,#eda4d4,#b3cfe9);border-radius:3px}.game{position:relative;display:flex;flex-direction:column;flex:1;min-height:110px;overflow:hidden}.board-layout{display:flex;flex:1;min-height:80px;justify-content:center;gap:10px;align-items:stretch;padding-top:7px}.board-wrap{height:100%;min-width:0;aspect-ratio:6/10;position:relative;border:2px solid white;border-radius:10px;background:#ffffffba;box-shadow:0 0 0 1px #cdb8e4,0 4px 12px #c2b1d640;overflow:hidden}#board{display:block;width:100%;height:100%}.live-card,.next-card{width:55px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;text-align:center;padding-top:10px;gap:3px}.live-card>small,.next-card>small{font-size:8px;letter-spacing:1px;color:#aa92b8}.live-card>b{font:italic bold 24px monospace;color:#c28fba;text-shadow:1px 2px white}.live-card>span{font-size:8px;color:#a48bac}.fan-chip{margin-top:11px;border:1px solid white;border-radius:14px;padding:6px 8px;background:linear-gradient(#fff9,#f8ddec99);color:#cb93b8;box-shadow:0 3px 9px #c7adce22}.fan-chip strong{display:block;font:italic bold 19px monospace}.fan-chip small{font-size:8px;display:block;white-space:nowrap}.live-card .micro{font-size:7px;line-height:1.8;margin-top:10px}.next-card{background:#ffffff70;border:1px solid white;border-radius:12px;height:fit-content;padding:9px 3px}.next-card>span{font:8px monospace;color:#a48bac;margin-top:6px}#next{width:48px;height:43px}.line-chip{border-top:1px solid #ecdef4;width:100%;padding-top:6px;display:flex;flex-direction:column;align-items:center;color:#b59bc9}.line-chip span{font-size:16px}.line-chip b{font:italic bold 18px monospace}.line-chip small{font-size:8px}.beat-meter{display:flex;align-items:center;gap:8px;padding:9px 4px 10px;flex-shrink:0}.beat-meter>span{font-size:9px;color:#a58db5}.beat-track{height:7px;position:relative;border-radius:10px;flex:1;background:linear-gradient(90deg,#e5dcf2,#e6b9de);border:1px solid white}.beat-track b{position:absolute;right:0;top:-7px;width:22px;height:19px;display:grid;place-items:center;color:#cf8eb8;font-size:20px;text-shadow:1px 1px white}.beat-track i{position:absolute;left:0;top:-3px;width:11px;height:11px;background:#b9a0df;border:2px solid white;box-shadow:0 0 6px #c6a1df;border-radius:50%;z-index:1}#judge{position:absolute;top:40%;width:100%;text-align:center;pointer-events:none;color:#b77fb8;font:bold 15px monospace;text-shadow:1px 1px white,-1px -1px white;z-index:2}#countdown{position:absolute;top:23%;width:100%;text-align:center;font:bold 30px monospace;color:#ba9dd4;text-shadow:2px 2px white;pointer-events:none}.controls{height:169px;flex-shrink:0;padding:8px 7px 9px;position:relative}.console-mark{display:flex;align-items:center;justify-content:space-between;font:7px monospace;letter-spacing:2px;color:#a78cb5;padding:0 5px}.speakers{font-size:13px;letter-spacing:2px;transform:rotate(-13deg);opacity:.45}.control-deck{display:flex;height:118px;position:relative;align-items:center;justify-content:space-between;padding:0 8px}.direction-pad{display:flex;gap:10px;position:relative;padding-top:7px}.direction-pad button{width:48px;height:48px;border:1px solid #fff;border-radius:50%;background:linear-gradient(145deg,#fff6,#bdafd9);box-shadow:0 4px 0 #aa99c7,0 7px 12px #9f89bd4d,inset 0 2px 4px #fffc;color:#fff;font-size:17px;text-shadow:0 1px #a28bb5}.direction-pad small{position:absolute;bottom:-22px;left:0;width:100%;text-align:center;font:8px monospace;letter-spacing:3px;color:#a38bb2}.console-heart{font-size:29px;color:#f7eefc;text-shadow:0 1px 1px #ac94bf;position:absolute;left:47%;top:40px}.action-pad{position:relative;width:139px;height:113px;transform:rotate(-4deg)}.action-pad button{position:absolute;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;border:2px solid #fff8;box-shadow:inset 0 3px 5px #fff9,0 5px 0 #ba8ab8,0 8px 12px #ad87bb55;color:#fff;text-shadow:0 1px #b485b7}.action-pad .rotate{width:49px;height:49px;top:5px;right:0;background:linear-gradient(135deg,#e5b4ee,#b895d9)}.action-pad .drop{width:65px;height:65px;bottom:0;left:4px;background:linear-gradient(135deg,#ffcee8,#e6a1ce)}.action-pad button span{font-size:23px;line-height:25px}.action-pad button small{font-size:9px}.direction-pad button.active,.action-pad button.active{transform:translateY(3px);box-shadow:inset 0 2px 4px #b991bd66,0 2px #a68bbb}.controls footer{display:flex;justify-content:space-between;gap:5px;font-size:8px;color:#9f88ad;padding:8px 3px 0;line-height:1.4}.overlay{position:absolute;left:25px;right:25px;top:19%;bottom:21%;background:linear-gradient(145deg,#fffffffa,#f5e9fffa,#ffedf8fa);border:2px solid white;border-radius:26px;box-shadow:0 13px 35px #917bad40,inset 0 0 0 1px #e5d7f3;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:20px;text-align:center;z-index:10;backdrop-filter:blur(12px)}.modal-star{font-size:48px;color:#dac8ed;text-shadow:2px 2px white}.tag{font:8px monospace;letter-spacing:1.5px;color:#a18bb4}.overlay h2{font-size:20px;color:#aa82b9;margin:14px 0 12px}.overlay p{font-size:11px;line-height:2;color:#9a84ad;margin:0 0 17px}.primary{background:linear-gradient(120deg,#efd3f3,#d7c7f4);border:2px solid white;border-radius:22px;box-shadow:0 5px 13px #c5addd70;padding:12px 28px;color:#9b6caa;font-size:14px;font-weight:bold;min-height:44px}.overlay .hint{font-size:9px;line-height:1.8;margin:17px 0 0}.result{font-size:11px;line-height:1.9;color:#a18ab0;margin-bottom:14px}.result b{font:italic bold 28px monospace;color:#cb91c1}.desktop-note{font-size:11px;color:#a08bb0;margin:18px 0 9px}[hidden]{display:none!important}.danger .stage{filter:saturate(.55) brightness(.9)}.danger progress::-webkit-progress-value{background:linear-gradient(90deg,#eeacc3,#e884ac)}.danger .energy-box{animation:warning 1s ease-in-out infinite}body[data-tier="1"] .stage-lights{opacity:.75}body[data-tier="1"] .sparkles{opacity:.7}body[data-tier="1"] .crowd{opacity:.8}body[data-tier="2"] .stage{box-shadow:inset 0 0 22px #fff6d5,0 0 12px #e0bbed}body[data-tier="2"] .stage-lights,body[data-tier="2"] .sparkles{opacity:1}body[data-tier="2"] .crowd{opacity:1;color:#df97c5}.performing .crowd{animation:cheer .6s ease-in-out infinite}.celebrate .sparkles{animation:burst .6s ease-out}.celebrate .board-wrap{animation:glow .55s ease-out}.mistake .screen{animation:warning .3s ease-out}#clear-flash{position:absolute;inset:0;pointer-events:none}.celebrate #clear-flash{animation:flash .45s ease-out}@keyframes flash{0%{background:#ffe6fc88}100%{background:transparent}}@keyframes cheer{50%{transform:translateY(-3px)}}@keyframes burst{40%{transform:scale(1.15);color:#ffedbc}}@keyframes glow{40%{box-shadow:0 0 20px #f0c3f3}}@keyframes warning{50%{opacity:.7}}@media(max-width:500px){body{display:block;overflow:hidden}.cabinet{width:100%;height:100dvh;min-height:0;border-radius:0 0 30px 30px;padding:8px 10px 0;padding-top:max(8px,env(safe-area-inset-top));padding-bottom:env(safe-area-inset-bottom);box-shadow:none;border-width:0}.desktop-note{display:none}}@media(max-height:730px){header{height:40px}.brand{font-size:17px}.brand-star{font-size:25px}.screen{padding:7px 7px 0}.stage{height:113px}.hud{padding-bottom:5px}.hud b{font-size:15px}.songline{padding:5px 3px}.controls{height:140px;padding-top:5px}.control-deck{height:98px}.action-pad{height:96px;width:122px}.action-pad .drop{width:56px;height:56px}.action-pad .rotate{width:44px;height:44px}.direction-pad button{width:43px;height:43px}.direction-pad small{bottom:-18px}.console-heart{top:33px}.controls footer{padding-top:7px;font-size:7px}.board-layout{gap:7px;padding-top:5px}.live-card,.next-card{width:46px}.live-card .micro{font-size:6px}.beat-meter{padding:7px 3px}.overlay{top:16%;bottom:19%;padding:15px}.overlay h2{font-size:18px}.modal-star{font-size:36px}.overlay p{font-size:10px}.overlay .hint{font-size:8px;margin-top:12px}}@media(max-height:600px){.stage{height:90px}.controls{height:126px}.control-deck{height:88px}.action-pad{height:85px}.console-mark{font-size:6px}.hud{gap:6px}.screen{border-radius:14px}.songline>span{font-size:8px}.live-card .micro{display:none}.fan-chip{margin-top:5px}.line-chip{padding-top:3px}.brand em{display:none}.next-card{padding-top:4px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
:root{color:#e3d4da;background:#100d12;--wine:#a52e4b;--ink:#170f19;--muted:#ad8e9e}body{background:radial-gradient(ellipse at 15% 10%,#421929,transparent 60%),radial-gradient(ellipse at 90% 90%,#251626,transparent 60%),#100d12}.cabinet{background:linear-gradient(145deg,#30222d,#201820 55%,#302029);border:2px solid #5e3c4c;border-radius:14px 14px 32px 32px;box-shadow:inset 0 0 0 2px #140f16,0 20px 55px #000a,0 0 0 1px #0c080e;padding-top:9px}header{height:45px}.brand-star{color:#c74a66;text-shadow:none;font-size:26px}.brand{font-size:23px;letter-spacing:4px;font-style:normal;color:#e3cdd2;font-family:serif}.brand em{font:7px monospace;letter-spacing:1.8px;color:#a98898;margin-top:5px}.top-actions{gap:4px}.top-actions button{background:linear-gradient(#382633,#251c26);border:1px solid #684253;border-radius:4px;color:#d5b8c7;padding:7px;font-size:10px;box-shadow:0 2px #100c13}.screen{background:linear-gradient(#1c141f,#15121b);border:2px solid #100c13;border-radius:9px;box-shadow:0 0 0 1px #654154,inset 0 0 15px #0008;padding-top:9px}.hud small{color:#ae8d9e}.hud b{color:#e6c3d0;font-style:normal}.energy-box span{color:#c1a3b1}progress{background:#342332;border-color:#513142}progress::-webkit-progress-bar{background:#342332}progress::-webkit-progress-value{background:linear-gradient(90deg,#8f1f3a,#cf536b);border-radius:3px}.stage{height:clamp(110px,17dvh,145px);border:1px solid #553044;border-radius:5px;background:linear-gradient(90deg,#3b10248c 0 13%,transparent 20% 80%,#3b10248c 87%),radial-gradient(ellipse at 50% 110%,#79324744,transparent 75%),#22131e}.stage::before,.stage::after{content:'';position:absolute;top:21px;bottom:18px;width:11px;background:repeating-linear-gradient(#161017 0 7px,#573443 8px 9px);border:2px solid #4c2b3b}.stage::before{left:4px}.stage::after{right:4px}.stage-label{font:8px monospace;color:#b893a7;padding:5px 7px}.stage-lights{background:conic-gradient(from 160deg at 20% 0,transparent,#bc345c55 15deg,transparent 35deg),conic-gradient(from 175deg at 80% 0,transparent,#d0b88733 25deg,transparent 45deg)}.sparkles{color:#db9bab;font-size:16px;letter-spacing:10px}.idols{left:15px;right:15px;bottom:14px;height:calc(100% - 29px)}.sprite{background-image:url('idols-nocturne.png');image-rendering:pixelated;filter:drop-shadow(0 3px 1px #0007)}.idol>span{color:#d0a7bc;background:#180e1bc9;font-size:9px;border-radius:2px}.crowd{background:#160d19;color:#af5d7b;border-top:1px solid #492338;height:15px;font-size:15px}.songline{padding:6px 3px}.album{background:conic-gradient(#5a203d,#a85873,#35172a,#5a203d);border-color:#713b53;color:#ddbccb}.songline b{color:#dfc4d1}.songline div>span,.songline>span{color:#b295a6}.progress-track{background:#3f293d}.progress-track div{background:linear-gradient(90deg,#7f2545,#c45377)}.board-wrap{border:2px solid #120d15;border-radius:3px;background:#211927;box-shadow:0 0 0 1px #7e4c64,0 4px 12px #0005;overflow:hidden}.live-card>small,.next-card>small{color:#b692a9}.live-card>b{color:#d385a6;text-shadow:1px 2px #000}.live-card>span{color:#bba0b0}.fan-chip{background:linear-gradient(#4a243b,#2b1b2c);border:1px solid #74465c;border-radius:4px;color:#dfa3ba;box-shadow:none}.next-card{background:#291a2c;border:1px solid #674059;border-radius:4px}.next-card>span{color:#c3a4b6}.line-chip{border-color:#513148;color:#d3b1c8}.micro{color:#bd98ae}.beat-meter>span{color:#c3a3b4}.beat-track{background:linear-gradient(90deg,#33233b,#6a2949);border-color:#644258}.beat-track i{background:#cc658b;border-color:#f1c1d6;box-shadow:0 0 6px #cd5989}.beat-track b{color:#e0a0b6;text-shadow:none}#judge{color:#edb1c8;text-shadow:1px 1px #211020,-1px -1px #211020;font-size:13px}#countdown{color:#d79ab7;text-shadow:2px 2px #100b13}.controls{height:176px;background:linear-gradient(160deg,#2f242d,#261a25);border-top:1px solid #493040;margin-top:8px;border-radius:9px 9px 30px 30px;padding-top:8px}.console-mark{color:#98768d;letter-spacing:1.5px}.control-deck{height:124px;padding:0 8px}.direction-pad{gap:0;padding:0;width:122px;height:81px;align-items:center;justify-content:center;background:linear-gradient(145deg,#18151c,#0f0d13);border:1px solid #4a3a48;border-radius:8px;box-shadow:inset 0 0 0 3px #1d1721,0 5px #100c13}.direction-pad::before{content:'';position:absolute;width:42px;height:102px;top:-11px;border-radius:6px;background:linear-gradient(90deg,#18151b,#24202a,#17121a);border:1px solid #493749;box-shadow:0 3px #100b13;pointer-events:none}.direction-pad button{position:relative;z-index:1;width:52px;height:62px;border:0;border-radius:4px;background:linear-gradient(140deg,#302a35,#1b1720);color:#a38a9f;text-shadow:0 1px #000;box-shadow:inset 0 2px 1px #584352,0 4px #08060b;font-size:19px;user-select:none}.direction-pad button:first-child{margin-right:4px}.direction-pad small{bottom:-25px;color:#91738b;font-size:8px}.console-heart{color:#652c49;text-shadow:0 1px #0a0710;left:49%;font-size:23px}.action-pad{width:139px;height:121px}.action-pad button{border:2px solid #ab5d73;box-shadow:inset 0 3px 2px #d37a8a88,inset 0 -4px 3px #3d0d22,0 6px #230a18,0 9px 8px #0008;color:#efc6d1;text-shadow:0 2px #50102a}.action-pad .rotate{width:53px;height:53px;background:linear-gradient(135deg,#872c49,#53152f);top:0;right:0}.action-pad .drop{width:69px;height:69px;background:linear-gradient(135deg,#b6425c,#792139);left:0;bottom:0}.action-pad button span{font:bold 22px monospace}.action-pad button small{font-size:9px}.direction-pad button.active,.action-pad button.active{transform:translateY(4px);background:#5a243b;box-shadow:inset 0 2px 4px #100711,0 1px #08040b}.controls footer{color:#b18d9f;font-size:8px}.overlay{background:linear-gradient(145deg,#291b2afc,#1e1622fc);border:1px solid #8e4b68;box-shadow:0 13px 35px #0009,inset 0 0 0 4px #352136;border-radius:9px;backdrop-filter:none}.modal-star{color:#a44467;text-shadow:none;font-size:35px}.tag{color:#bf90aa;font-size:8px}.overlay h2{color:#ecc9d8;font-size:19px}.overlay p{color:#ceb0c1;font-size:12px;line-height:1.9}.primary{background:linear-gradient(#90344e,#5d1b38);border:1px solid #b16a83;border-radius:4px;box-shadow:0 4px #1a0a17,inset 0 1px #d387a4;color:#ffe1ec;font-size:14px}.overlay .hint{color:#b58ba4;font-size:10px}.result{color:#d0afc4}.result b{color:#e9a9c1;font-size:24px}.danger .stage{filter:saturate(.5) brightness(.7)}.danger progress::-webkit-progress-value{background:linear-gradient(90deg,#a32a3c,#e66d77)}body[data-tier="2"] .stage{box-shadow:inset 0 0 19px #b9384944,0 0 10px #9a315b55}body[data-tier="2"] .crowd{color:#f383a6}.desktop-note{color:#a6849b}.celebrate #clear-flash{animation:redflash .45s ease-out}@keyframes redflash{0%{background:#dd6c9566}100%{background:transparent}}#lesson{position:absolute;top:3px;left:2px;right:2px;z-index:4;border:1px solid #b77a91;background:#211323f5;padding:8px;border-radius:3px;display:flex;align-items:center;gap:6px;color:#f0c6d8;font-size:11px;line-height:1.6}#lesson button{margin-left:auto;background:#42203a;border:1px solid #8c5c78;color:#dcb5c9;font-size:9px;padding:6px;white-space:nowrap;border-radius:3px}.story,.after-story{position:absolute;inset:0;z-index:30;background:#160f19;color:#e8d4de;display:flex;flex-direction:column;overflow:auto;padding:18px}.story-top,.story-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-shrink:0}.story-top{font:10px monospace;letter-spacing:1px;color:#c48ea9;padding-bottom:14px}.story button,.after-story button{background:#382033;border:1px solid #90536f;color:#ead0dd;border-radius:3px;padding:10px 12px;font-size:12px;min-height:40px}.story-top button{background:transparent;border-color:#573448;font-size:10px;padding:6px 9px;min-height:32px}.story-art{width:100%;aspect-ratio:1;flex-shrink:0;background-image:url('prologue-panels.png');background-size:200% 300%;border:1px solid #966779;box-shadow:5px 5px #08060b;image-rendering:auto}.story-copy{flex:1;padding:18px 0 10px}.story-copy>span{font:10px monospace;letter-spacing:1.5px;color:#bd7d98}.story-copy h2{font-size:22px;line-height:1.4;margin:9px 0 15px;font-family:serif;letter-spacing:1px}.story-copy p{font-size:13px;line-height:1.9;margin:8px 0;color:#d5becb}.story-copy p.thought{font-size:11px;color:#bd96ac;border-left:2px solid #793b59;padding-left:10px}.story-copy strong{color:#f0b7cd;font-weight:500}.story-bottom{border-top:1px solid #503045;padding-top:12px}.story-bottom>span{font-size:10px;color:#a9718c;letter-spacing:3px}.story-bottom button:last-child{background:#702340;border-color:#ac607c}.after-story{justify-content:center;align-items:center;text-align:center;padding:25px;background:radial-gradient(ellipse at 50% 30%,#442037,#160f19 70%)}.after-story h2{font:22px serif;margin:18px 0 12px;color:#ecc9da}.after-story>p{font-size:14px;line-height:2;max-width:320px;min-height:88px;color:#d7bccb}.after-portrait{width:140px;height:140px;flex-shrink:0;background-image:url('idols-nocturne.png');background-size:300% 100%;image-rendering:pixelated;margin:20px 0 4px;filter:drop-shadow(0 5px 3px #0009)}.after-actions{display:flex;gap:14px;align-items:center;margin-top:15px}.after-actions span{font:10px monospace;color:#ad829a}.after-actions button:first-child{font-size:10px;background:transparent;border-color:#65415a}.after-portrait.rival{width:100%;height:auto;aspect-ratio:1;background-image:url('prologue-panels.png');background-size:200% 300%;background-position:100% 100%;image-rendering:auto;border:1px solid #7a5266;max-width:280px}.story:focus-visible{outline:none}@media(max-width:500px){.cabinet{border-radius:0 0 22px 22px;padding-top:max(8px,env(safe-area-inset-top));border-width:0}.story,.after-story{padding-top:max(18px,env(safe-area-inset-top));padding-bottom:max(18px,env(safe-area-inset-bottom))}}@media(max-height:730px){header{height:40px}.stage{height:102px}.controls{height:152px}.control-deck{height:105px}.direction-pad{width:108px;height:64px}.direction-pad::before{height:88px;top:-12px;width:36px}.direction-pad button{width:46px;height:49px}.direction-pad small{bottom:-24px}.action-pad{height:103px;width:123px}.action-pad .rotate{width:47px;height:47px}.action-pad .drop{width:61px;height:61px}.controls footer{padding-top:6px}.story{padding:13px}.story-art{max-height:42dvh;background-size:200% 300%}.story-copy{padding:13px 0 7px}.story-copy h2{font-size:19px;margin:6px 0 8px}.story-copy p{font-size:12px;line-height:1.8;margin:5px 0}.story-top{padding-bottom:9px}.story-bottom{padding-top:8px}.after-portrait{height:110px;width:110px}.after-portrait.rival{max-width:210px}.after-story>p{font-size:13px;min-height:66px}}@media(max-height:600px){.stage{height:86px}.controls{height:137px}.control-deck{height:92px}.action-pad{height:90px;width:113px}.action-pad .drop{width:56px;height:56px}.direction-pad button{width:42px}.direction-pad{width:98px;height:56px}.direction-pad::before{height:77px;top:-10px}.controls footer{font-size:7px}.story-copy h2{font-size:17px}.story-copy p{font-size:11px}.story-art{max-height:38dvh}.after-portrait.rival{max-width:175px}.after-story h2{font-size:19px}.after-story>p{font-size:12px}.after-portrait{margin-top:12px}}
@media(max-height:730px){.story-art{width:min(100%,42dvh);margin:0 auto;max-height:none}}@media(max-height:600px){.story-art{width:min(100%,38dvh)}}

/* 纳挼点文宋 / NanoDyongMwenSong; author license: fonts/AUTHOR-README.md */
@font-face{font-family:'NanoSong P1';src:url('fonts/NanoDyongMwenSong-P1.woff') format('woff');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'NanoSong P2';src:url('fonts/NanoDyongMwenSong-P2.woff') format('woff');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'NanoSong P3';src:url('fonts/NanoDyongMwenSong-P3.woff') format('woff');font-style:normal;font-weight:400;font-display:swap}
:root{--story-font:'NanoSong P1','NanoSong P2','NanoSong P3','Microsoft YaHei','Yu Gothic','PingFang SC',sans-serif}
.brand,.story-copy h2,.story-copy p,.story button,.after-story h2,.after-story>p,.after-story button,.overlay h2,.overlay p,.primary,.idol>span,#lesson,#lesson button,.controls button small{font-family:var(--story-font);font-weight:400;font-synthesis:none}
.story-copy h2{font-size:24px;line-height:1.5}.story-copy p{font-size:16px;line-height:1.8}.story-copy p.thought{font-size:14px;line-height:1.8}.story-copy strong{font-weight:400}.story button{font-size:14px}.story-top button{font-size:12px}.after-story>p{font-size:16px;line-height:1.9}.overlay p{font-size:14px;line-height:1.9}.overlay h2{font-size:22px}.overlay .hint{font-size:12px}.idol>span{font-size:12px}.primary{font-size:16px}#lesson{font-size:13px}#lesson button{font-size:11px}
@media(max-height:730px){.story-copy h2{font-size:22px}.story-copy p{font-size:14px;line-height:1.75}.story-copy p.thought{font-size:12px}.after-story>p{font-size:14px}.overlay p{font-size:13px}.overlay .hint{font-size:11px}}
@media(max-height:600px){.story-copy h2{font-size:20px}.story-copy p{font-size:13px}.story-copy p.thought{font-size:12px}.story-art{width:min(100%,32dvh)}.overlay h2{font-size:20px}.overlay p{font-size:12px}.after-story>p{font-size:14px}}
.queued .action-pad .drop{background:linear-gradient(135deg,#da7189,#9e3655);box-shadow:inset 0 3px 3px #f6a4b4,0 6px #230a18,0 0 15px #b84b7380}.queued .board-wrap{box-shadow:0 0 0 1px #d48aa9,0 0 13px #aa4d7644}
/* v0.7 — 逐格互动漫画。画面、气泡和文字分别渲染。 */
.interactive-comic{padding:14px;background:linear-gradient(135deg,#100c17,#1a0f20);overflow:hidden}.interactive-comic .story-top{padding-bottom:9px}.comic-heading{flex-shrink:0;padding:0 1px 10px}.comic-heading>span{font:9px monospace;letter-spacing:1px;color:#c77fa6}.comic-heading h2{font-family:var(--story-font);font-size:20px;font-weight:400;line-height:1.3;margin:6px 0 0;color:#f0d5e6}.comic-page{position:relative;flex:1;min-height:0;width:100%;outline-offset:3px;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;isolation:isolate}.comic-page:focus-visible{outline:2px solid #c967a9}.comic-panel{position:absolute;overflow:visible;background-image:url('prologue-neon.png');background-repeat:no-repeat;background-color:#1a1025;border:1px solid #c9a8ce;box-shadow:4px 5px #05030a;image-rendering:pixelated}.comic-panel.panel-0{z-index:1}.comic-panel.panel-1{z-index:2}.comic-panel.panel-2{z-index:3}.comic-bubble{position:absolute;z-index:5;padding:10px 11px 11px;border:1.5px solid #201122;border-radius:45% / 24%;background:#fffcfa;color:#2c1934;box-shadow:1px 2px 0 #10051766;pointer-events:none;font-family:var(--story-font);font-synthesis:none}.comic-bubble>span{display:block;font-size:10px;line-height:1.25;color:#8a426c;margin:0 0 4px;letter-spacing:.3px}.comic-bubble>p{margin:0;font-size:15px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}.comic-bubble.speech::after{content:'';position:absolute;bottom:-9px;left:var(--tail,65%);width:14px;height:14px;background:#fffcfa;border-right:1.5px solid #201122;border-bottom:1.5px solid #201122;transform:skewY(22deg) rotate(36deg);z-index:-1}.comic-bubble.thought{background:#171020ef;color:#f2c2e6;border:1px solid #d086b7;border-radius:3px;box-shadow:3px 3px #08030c}.comic-bubble.thought>span{color:#cc8ab9}.comic-bubble.narration{border-radius:0;background:#0d0a16f2;border:1px solid #a7549b;color:#e9c9e5;padding:8px 10px;box-shadow:3px 3px #05030a}.comic-bubble.narration>span{font-size:9px;color:#d085ba}.comic-bubble.narration>p{font-size:13px;line-height:1.5}.comic-bubble.file{border-radius:2px;background:#f3e9dc;border:1px solid #a47b94;color:#3b243b;padding:10px}.comic-bubble.file>p{font-size:13px;line-height:1.8}.comic-help{flex-shrink:0;text-align:center;color:#a17d9b;font:10px var(--story-font);margin:10px 0 7px}.interactive-comic .story-bottom{padding-top:9px;border-top:1px solid #56314d}.interactive-comic .story-bottom button{font-family:var(--story-font);font-size:13px;min-height:40px;padding:8px 12px;background:#2d1833;border-color:#895078}.interactive-comic .story-bottom button:last-child{background:#642440;border-color:#bb6b9c}.interactive-comic .story-bottom>span{font:10px monospace;color:#c68cac}.comic-reveal{animation:comic-in .4s ease-out both}.bubble-reveal{animation:bubble-in .34s ease-out both;transform-origin:center center}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.after-portrait.rival{background-image:url('prologue-neon.png')}@keyframes comic-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes bubble-in{from{opacity:0;transform:translateY(5px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-height:730px){.interactive-comic{padding:11px}.comic-heading{padding-bottom:8px}.comic-heading h2{font-size:18px}.comic-bubble{padding:7px 8px 9px}.comic-bubble>p{font-size:14px;line-height:1.45}.comic-bubble>span{font-size:9px;margin-bottom:3px}.comic-bubble.narration{padding:6px 7px}.comic-bubble.narration>p,.comic-bubble.file>p{font-size:12px}.comic-help{font-size:9px;margin:8px 0 5px}.interactive-comic .story-top{font-size:9px;padding-bottom:7px}.interactive-comic .story-top button{min-height:29px;padding:4px 7px}.interactive-comic .story-bottom{padding-top:7px}.interactive-comic .story-bottom button{font-size:12px;min-height:36px}}@media(max-height:600px){.comic-heading h2{font-size:16px}.comic-heading>span{font-size:8px}.comic-bubble{padding:6px 7px 7px}.comic-bubble>p{font-size:13px;line-height:1.4}.comic-bubble>span{font-size:8px}.comic-bubble.narration>p,.comic-bubble.file>p{font-size:11px}.comic-bubble.narration>span{font-size:8px}.comic-help{font-size:8px}.comic-heading{padding-bottom:6px}}
@media(prefers-reduced-motion:reduce){.comic-reveal,.bubble-reveal{animation:none!important}}
