@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap');
:root{color-scheme:dark;--pink:#ff388f;--lilac:#d9bcff;--ink:#110b1e;--muted:#b8a7c9;--line:#ead5ff26;--song-color:#ff4299}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--ink);color:#fff;font-family:'Noto Sans KR',sans-serif}button,input,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;border:1px solid var(--line);background:#21132cdb;transition:background .2s,border-color .2s,transform .2s,box-shadow .2s;padding:12px 18px}button:hover{border-color:#f787c1;background:#54213e}button:active{transform:scale(.97)}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #ffe382;outline-offset:4px}button:disabled{opacity:.4;cursor:wait}[hidden]{display:none!important}a{color:#ff9ac9}.muted{color:var(--muted);font-size:14px;line-height:1.8}.eyebrow{display:block;font-size:11px;font-weight:700;letter-spacing:3px;color:var(--lilac);margin-bottom:14px}.primary{background:var(--pink);border:1px solid #ff8bc1;color:#fff;font-weight:800;box-shadow:4px 5px 0 #691d58;padding:17px 24px;font-size:17px;position:relative;overflow:hidden}.primary::after{content:'';position:absolute;inset:0;background:linear-gradient(110deg,transparent 35%,#fff3 50%,transparent 65%);transform:translateX(-120%);transition:transform .6s;pointer-events:none}.primary:hover{background:#ff56a2;box-shadow:5px 7px 0 #691d58;transform:translateY(-2px)}.primary:hover::after{transform:translateX(120%)}.secondary{background:#1a1029d9;font-size:15px;font-weight:600;padding:15px 22px}.text-button{background:transparent;border:0;font-size:13px;color:#cbb7dd;padding:10px}.text-button:hover{background:#d8b6ff16;color:#fff}.back-button{font-size:13px;padding:11px 18px;background:#20152acc}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#game{height:100svh;min-height:720px;position:relative;overflow:hidden;isolation:isolate;--impact:0;--hurt:0;--room-light:1;--flame-light:.55;--shake-x:0px;--arrival-zoom:1;background:#140e22}#titleBackdrop{position:absolute;inset:0;background:url('assets/title-night.png') center/cover;transition:opacity .8s,filter .8s,transform 1.1s;z-index:0}.in-stage #titleBackdrop{opacity:0}#game[data-screen="select"] #titleBackdrop,#game[data-screen="loading"] #titleBackdrop{filter:blur(9px) brightness(.48);transform:scale(1.04)}.scene-world{position:absolute;left:50%;top:50%;pointer-events:none;opacity:0;transform:translate(calc(-50% + var(--shake-x)),-50%) scale(var(--arrival-zoom));filter:brightness(var(--room-light));transition:opacity .7s;z-index:0}.in-stage .scene-world{opacity:1}.architecture{position:absolute;inset:0;width:100%;height:100%}.wall-sconce{position:absolute;aspect-ratio:1312/1199;transform:translateX(-42%)}.wall-sconce.s1{left:7%;top:45%;width:3.5%}.wall-sconce.s2{left:47.3%;top:40%;width:2.5%}.wall-sconce.s3{left:64%;top:44%;width:3.1%}.wall-sconce.s4{left:87%;top:47%;width:3.7%}.sconce-body{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.candle-flame{position:absolute;left:63.6%;top:25.4%;width:40%;height:auto;aspect-ratio:1;transform:translate(-50%,-88%)}.sconce-light{position:absolute;left:63.6%;top:25.4%;width:320%;height:210%;object-fit:fill;transform:translate(-50%,-50%);filter:blur(18px);mix-blend-mode:screen;opacity:var(--flame-light)}.floor-light{position:absolute;top:69%;height:7%;width:13%;object-fit:fill;filter:blur(22px);mix-blend-mode:screen;opacity:calc(var(--flame-light)*.28)}.l1{left:43%}.l2{left:60%;top:74%}.l3{left:81%;top:80%}.shade{position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,#100b1ee8, #11091f77 44%,#100b1e09 77%),linear-gradient(0deg,#11091fc9,transparent 35%);transition:background .6s}.vignette{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none;z-index:4;opacity:.5;filter:brightness(.46)}.impact-vignette{z-index:7;opacity:calc(var(--impact)*.60);mix-blend-mode:screen;filter:brightness(1.7) saturate(1.6)}.hurt-vignette{z-index:7;opacity:calc(var(--hurt)*.80);filter:hue-rotate(-24deg) saturate(1.7)}
.topbar{position:absolute;left:4%;right:4%;top:22px;display:flex;align-items:center;justify-content:space-between;z-index:12;gap:15px}.brand{border:0;background:transparent;padding:0;display:flex;align-items:center;gap:10px;font:800 16px 'Noto Sans KR',sans-serif;letter-spacing:1.5px;text-align:left}.brand:hover{background:transparent}.brand>span>small{display:block;font-size:9px;letter-spacing:5px;color:#cbb6de;margin-top:5px}.top-actions{display:flex;align-items:center;gap:8px}.control{padding:9px 14px;font-size:14px;background:#160e24b3;backdrop-filter:blur(12px)}.control span{margin-left:5px}.play-control,.play-clock{display:none}.in-stage .play-control,.in-stage .play-clock{display:inline-block}.play-clock{font:13px monospace;color:#e7cfee;margin-right:10px}
.screen{position:absolute;z-index:6;animation:screenEnter .55s cubic-bezier(.2,.8,.2,1) both}.title-screen{left:7%;top:24%;width:min(480px,44%)}h1{font-family:Impact,'Arial Black',sans-serif;font-size:clamp(75px,8vw,133px);line-height:.84;letter-spacing:-4px;transform:skew(-5deg);text-shadow:4px 5px 0 #421540;margin:0}h1 em{font-style:normal;color:var(--pink)}h1 small{font:800 15px 'Noto Sans KR',sans-serif;display:block;letter-spacing:12px;color:#f1d8f4;margin-top:25px}.title-description{font-size:15px;line-height:1.9;color:#d7c3e4;margin:27px 0}.title-menu{display:flex;flex-direction:column;gap:14px;width:330px;max-width:100%}.title-menu .primary{display:flex;align-items:center;gap:15px;text-align:left;font-size:21px;padding:20px 23px}.title-menu .primary small{margin-left:auto;font-size:11px;font-weight:500;letter-spacing:0;opacity:.75}.title-menu .secondary{text-align:left;background:#21102a95}.title-note{display:flex;gap:14px;align-items:center;color:#ab96ba;font-size:11px;line-height:1.8;margin-top:24px}.title-note b{color:#d6bddf;font-weight:500}.music-note{font-size:29px;color:#ddaeec}
.character{position:absolute;right:-4%;bottom:-5%;width:min(69vw,100svh);aspect-ratio:1;z-index:2;pointer-events:none;transition:right .75s,width .75s,opacity .55s,transform .75s;translate:calc(var(--shake-x)*.5) 0}.character canvas,.actor-fallback{position:absolute;width:100%;height:100%;object-fit:contain;object-position:bottom}.character canvas{opacity:0}.character.ready canvas{opacity:1}.character.ready .actor-fallback{opacity:0}.speech{position:absolute;right:5%;bottom:12%;width:min(290px,28%);padding:16px 20px;background:#180e27ed;border:1px solid #e5a0d156;border-left:3px solid var(--pink);z-index:6;box-shadow:5px 6px 0 #08040f66;animation:bubbleEnter .3s cubic-bezier(.2,1.3,.4,1) both;pointer-events:none}.speech small{font-size:10px;font-weight:700;letter-spacing:2px;color:#ff83b7}.speech p{font-size:14px;line-height:1.75;margin:7px 0 0;min-height:24px}#game[data-screen="select"] .character,#game[data-screen="select"] .speech,#game[data-screen="loading"] .character,#game[data-screen="loading"] .speech{opacity:0;pointer-events:none}#game[data-screen="playing"] .character,#game[data-screen="paused"] .character{right:-8%;width:min(57vw,86svh);opacity:.92}#game[data-screen="playing"] .speech,#game[data-screen="paused"] .speech{right:3%;bottom:9%;width:270px}#game[data-screen="outro"] .character{right:50%;width:min(90vw,92svh);transform:translateX(50%);z-index:9;bottom:-4%}#game[data-screen="outro"] .scene-world{filter:brightness(.44)}#game[data-screen="outro"] .vignette{opacity:.7}#game[data-screen="outro"] .impact-vignette{opacity:calc(var(--impact)*.8)}#game[data-screen="result"] .character{right:-10%;width:min(64vw,95svh);opacity:.8}#game[data-screen="outro"] .topbar{opacity:0;pointer-events:none}#cinematicCaption{position:absolute;top:14%;left:10%;right:10%;text-align:center;z-index:10;animation:screenEnter .5s both;pointer-events:none}#cinematicLabel{font-size:12px;letter-spacing:4px;color:#e2beed}#cinematicText{font-size:26px;font-weight:800;text-shadow:0 3px 14px #000;margin:14px 0}.skip-button{position:absolute;bottom:35px;right:4%;z-index:13;background:#180e25b3;font-size:13px}
.song-screen{left:6%;right:6%;top:15%;bottom:9%;max-width:1300px;margin:auto}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px}.section-heading .eyebrow{margin-bottom:7px}.section-heading h2{font-size:30px;margin:0;font-weight:800;letter-spacing:-1px}.selection-grid{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(400px,1.1fr);gap:5%;height:calc(100% - 88px)}.song-detail{background:#140d21a8;border:1px solid #dcc4f52b;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 16px 60px #08030b55}.album-art{position:relative;height:44%;min-height:165px;background-size:cover;background-position:center;overflow:hidden;border-bottom:1px solid var(--line)}.album-art::after{content:'';position:absolute;inset:0;box-shadow:inset 0 0 60px #11071b55}.album-art>span{position:absolute;left:24px;top:16px;font:800 34px Impact,sans-serif;color:#fff4}.album-ring{position:absolute;width:155px;aspect-ratio:1;right:10%;top:50%;transform:translateY(-50%);opacity:.85}.album-soul{position:absolute;width:110px;right:14%;top:50%;transform:translateY(-50%)}.album-caption{position:absolute;left:24px;bottom:21px;z-index:1;right:20px}.album-caption span{display:block;font-size:10px;letter-spacing:3px;text-transform:uppercase;color:#e0c3ee}.album-caption b{display:block;font-size:23px;font-weight:800;margin-top:6px;letter-spacing:-1px}.detail-copy{padding:22px 25px}.composer{font-size:11px;color:var(--song-color);letter-spacing:1px}.detail-copy h3{font-size:28px;margin:8px 0 3px;letter-spacing:-1px}.detail-copy .muted{font-size:12px;margin:3px 0}.description{font-size:13px;color:#d2bfdf;line-height:1.8;margin:15px 0 20px;min-height:45px}.song-stats{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);padding-top:15px;gap:12px}.song-stats small{display:block;color:#a993bc;font-size:10px;margin-bottom:7px}.song-stats b{font-size:17px;font-weight:700}.selection-controls{display:flex;flex-direction:column;min-height:0}.list-heading,.difficulty-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.list-heading h3,.difficulty-heading h3{font-size:15px;margin:0}.list-heading>span{font:10px monospace;letter-spacing:2px;color:#ac93be}.song-list{display:flex;flex-direction:column;gap:10px;margin-top:14px}.song-card{position:relative;display:flex;gap:17px;align-items:center;text-align:left;width:100%;background:#21132dcc;border:1px solid #dcbaf52b;padding:19px 18px;animation:cardEnter .4s calc(var(--order)*.075s) both;min-height:86px}.song-card:hover{transform:translateX(-4px);background:#40203f}.song-card.selected{background:#48203dcc;border-color:var(--song-color);box-shadow:inset 4px 0 var(--song-color),0 0 30px #ff298d0c}.song-index{font:28px Impact,sans-serif;color:var(--song-color);opacity:.8;width:30px}.song-card-copy{display:block;flex:1}.song-card-copy b{display:block;font-size:17px;letter-spacing:-.4px}.song-card-copy small{display:block;font-size:10px;line-height:1.7;color:#baa3c9;margin-top:5px}.song-card-duration{font:12px monospace;color:#d4bfdc;white-space:nowrap}.selected-mark{display:none;font-size:10px;color:#ff95c7;position:absolute;right:18px;bottom:6px}.selected .selected-mark{display:block}.difficulty-heading{margin-top:24px;margin-bottom:12px}.difficulty-heading>span{font-size:10px;color:#aa92ba}.difficulty-options{display:flex;gap:10px}.difficulty{flex:1;padding:13px 15px;text-align:left;background:#21152ecc}.difficulty b{display:block;font-size:14px}.difficulty small{display:block;font-size:10px;color:#b6a0c4;margin-top:6px;line-height:1.5}.difficulty.active{border-color:var(--pink);background:#ff298d1b}.best-record{display:flex;justify-content:space-between;font-size:12px;color:#baa5cb;margin:18px 0;gap:15px}.best-record b{color:#f5d8ee;font-size:13px}.selection-actions{display:flex;gap:12px;margin-top:auto}.selection-actions .primary{flex:1;padding:16px 15px;font-size:16px}.selection-actions .secondary{font-size:12px;padding:15px}.selection-hint{font-size:10px;color:#ab94bd;text-align:right;margin:14px 0 0}.changing{animation:detailChange .32s both}
.hud{position:absolute;top:106px;left:4%;right:4%;display:none;align-items:flex-start;gap:36px;z-index:6;pointer-events:none;animation:screenEnter .4s both}.hud small{display:block;font-size:11px;font-weight:600;letter-spacing:1px;color:#d3b7e7;margin-bottom:7px}.hud strong{font:italic 32px Impact,'Arial Black',sans-serif;letter-spacing:1px;color:#fce5ff;text-shadow:2px 2px 0 #9d2468}.hud strong span{font-size:17px}.now-playing{margin-left:auto;max-width:200px;text-align:right}.now-playing b{display:block;font-size:16px}.now-playing>span{display:block;margin-top:5px;font-size:11px;color:#ac94bf}#hudCombo{display:block;height:48px;width:auto;margin-top:-8px;filter:drop-shadow(0 3px 0 #200d30)}#game[data-screen="playing"] .hud,#game[data-screen="paused"] .hud{display:flex}.starting .hud{opacity:0}#field,#comboPlane{position:absolute;left:3%;top:25%;width:66%;height:59%;z-index:5;display:none;touch-action:none}#comboPlane{z-index:7;pointer-events:none}#game[data-screen="playing"] #field,#game[data-screen="paused"] #field,#game[data-screen="playing"] #comboPlane,#game[data-screen="paused"] #comboPlane{display:block}.note,.note:hover{position:absolute;width:82px;height:82px;border:0;background:none;transform:translate(-50%,-50%);padding:0;touch-action:none;transition:none;box-shadow:none}.note:active{transform:translate(-50%,-50%)}.note img{position:absolute;pointer-events:none}.target-ring,.approach{inset:0;width:100%;height:100%}.target-ring{opacity:.7}.approach{opacity:.95}.note .spirit{width:90%;height:90%;inset:5%;object-fit:contain}.flipbook-effect{position:absolute;transform:translate(-50%,-50%);width:230px;height:230px;pointer-events:none;z-index:10}.flipbook-effect.good{filter:hue-rotate(22deg);opacity:.8}.flipbook-effect.miss{width:235px;height:235px}#comboPopup{position:absolute;display:flex;flex-direction:column;align-items:center;gap:0;transform:translate(-50%,-50%) scale(var(--pop,1));pointer-events:none;filter:drop-shadow(3px 4px 0 #180a29) drop-shadow(0 0 9px #ff298d55)}#comboPopup span{font:800 9px 'Noto Sans KR',sans-serif;letter-spacing:3px;color:#ffb2d6;margin-bottom:-8px}#comboPopup canvas{height:80px;width:auto;max-width:215px}#comboPopup.broken{filter:grayscale(.8);translate:0 15px}#feedback{position:absolute;left:32%;top:20%;color:#ffe58a;font:800 23px 'Noto Sans KR',sans-serif;z-index:8;pointer-events:none}.starting #feedback{opacity:0}
.modal-panel,dialog{background:#1b1127f5;border:1px solid #cf8bba77;box-shadow:10px 12px 0 #09041088,0 30px 100px #05020988;padding:35px;color:#fff;backdrop-filter:blur(22px);animation:modalEnter .38s cubic-bezier(.16,1,.3,1) both}.modal-panel{position:absolute;z-index:20;width:min(410px,90%);left:50%;top:50%;transform:translate(-50%,-50%)}.modal-panel h2,dialog h2{font-size:26px;letter-spacing:-1px;margin:7px 0 14px}.modal-panel p,dialog p{font-size:14px;color:#d1bcde;line-height:1.9}.modal-panel>.primary,.modal-panel>.secondary{display:block;width:100%;margin-top:15px}.modal-panel>.text-button{display:block;margin:12px auto 0}.modal-panel>.eyebrow{font-size:10px}.load-track{height:5px;background:#ffffff16;margin:25px 0}.load-track i{display:block;height:100%;background:var(--pink);transition:width .15s;width:0}#game[data-screen="paused"]::after,#game[data-screen="loading"]::after{content:'';position:absolute;inset:0;background:#0d061b70;z-index:15;backdrop-filter:blur(5px)}dialog{width:min(500px,92vw);max-height:85svh;overflow-y:auto;padding:35px}dialog[open]{animation:dialogEnter .35s cubic-bezier(.16,1,.3,1) both}dialog.closing{animation:dialogExit .17s both}dialog::backdrop{background:#080411b8;backdrop-filter:blur(7px)}dialog .close{float:right;margin:-12px -12px 0 0;padding:3px 12px;font-size:26px;border:0;background:transparent}.setting{display:grid;grid-template-columns:100px 1fr 58px;align-items:center;gap:12px;margin:25px 0;font-size:13px;color:#ead7f1}.setting input{width:100%;accent-color:var(--pink)}.setting output{font:12px monospace;text-align:right;color:#e7b1d4}.check-setting{font-size:13px;display:flex;gap:10px;align-items:center;margin-top:23px}.check-setting input{accent-color:var(--pink)}.help-demo{position:relative;height:150px;margin:20px auto;width:150px}.help-demo img:first-child{position:absolute;inset:0;width:100%;height:100%;animation:demoRing 2s ease-out infinite}.help-demo img:last-child{position:absolute;width:70%;height:70%;object-fit:contain;left:15%;top:15%}.help-grades{display:flex;gap:18px;font-size:12px;color:#baa0ce}.help-grades b{color:#fff;margin-right:6px}.toast{position:absolute;bottom:85px;left:50%;transform:translateX(-50%);width:min(520px,90%);padding:16px 20px;background:#381d35f5;border:1px solid #ff8fb8;font-size:13px;z-index:40;animation:screenEnter .3s both}
.result-screen{left:7%;top:17%;width:min(680px,56%);padding:27px 30px 23px;background:#180e24df;border:1px solid #ddb2eb33;backdrop-filter:blur(15px);box-shadow:0 25px 90px #08030f77}.result-screen>.eyebrow{font-size:10px}.result-screen>h2{font-size:32px;margin:0 0 6px;font-weight:800;letter-spacing:-1px}.result-screen>.muted{font-size:12px;margin:0}.result-main{display:flex;gap:25px;align-items:center;margin:26px 0 20px}.rank-badge{font:italic 100px Impact,'Arial Black',sans-serif;line-height:1;color:#ffe1a0;-webkit-text-stroke:1px #fff1bf;text-shadow:5px 6px 0 #8b305b;min-width:95px;text-align:center;animation:rankStamp .65s .15s cubic-bezier(.15,1.5,.35,1) both}.result-score small{font-size:11px;letter-spacing:1px;color:#bca0ce}.result-score strong{display:block;font:italic 44px Impact,'Arial Black',sans-serif;letter-spacing:1px;margin-top:5px;color:#ffe7f8}.result-score>span{display:block;font-size:10px;font-weight:800;letter-spacing:2px;color:#ff85b7;margin-top:9px;animation:recordGlow 1.7s infinite alternate}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:18px 0;gap:12px}.result-stats>div{animation:statEnter .4s .35s both}.result-stats>div:nth-child(2){animation-delay:.45s}.result-stats>div:nth-child(3){animation-delay:.55s}.result-stats small{font-size:11px;color:#b79ec9;display:block;margin-bottom:7px}.result-stats b{font-size:22px}.judgment-row{display:flex;justify-content:space-between;gap:10px;margin:18px 0;font-size:12px;color:#cbb3d9}.judgment-row span{display:flex;gap:7px;align-items:center}.judgment-row b{color:#fff}.judgment-row i{width:5px;height:14px;display:inline-block;transform:skew(-12deg)}.perfect-dot{background:#ffe3a0}.good-dot{background:#d1b3ff}.miss-dot{background:#ff6397}.result-message{font-size:12px;color:#c8acd6;line-height:1.8;margin:17px 0 20px}.result-actions{display:flex;gap:13px}.result-actions>button{flex:1;font-size:14px;padding:14px 15px}.result-screen>.text-button{display:block;margin:10px auto 0;font-size:11px}
footer{position:absolute;bottom:18px;left:4%;right:4%;display:flex;align-items:center;justify-content:space-between;z-index:10;color:#b59bc4;font-size:11px;letter-spacing:1px}.in-stage footer{display:none}.progress{position:absolute;bottom:0;left:0;width:100%;height:4px;background:#ffffff12;z-index:13}.progress i{display:block;height:100%;width:0;background:var(--pink)}#startTransition{position:absolute;inset:0;z-index:30;pointer-events:none;overflow:hidden;--opening:0}.shutter{position:absolute;top:0;bottom:0;width:51%;background:#100a1d url('assets/vignette.png') center/cover}.shutter-left{left:0;transform:translateX(calc(var(--opening)*-102%));border-right:2px solid #f1bbff}.shutter-right{right:0;transform:translateX(calc(var(--opening)*102%));border-left:2px solid #ff298d}.arrival-seal{position:absolute;left:50%;top:49%;width:min(46vw,420px);aspect-ratio:1;transform:translate(-50%,-50%) scale(calc(.7 + var(--opening)*.8));opacity:calc(1 - var(--opening));object-fit:contain}.arrival-soul{position:absolute;left:50%;top:49%;width:min(24vw,190px);transform:translate(-50%,-50%);opacity:calc(1 - var(--opening));object-fit:contain}
@keyframes screenEnter{from{opacity:0;translate:0 18px}to{opacity:1;translate:0 0}}@keyframes bubbleEnter{from{opacity:0;translate:0 10px;scale:.94}to{opacity:1;translate:0 0;scale:1}}@keyframes cardEnter{from{opacity:0;translate:20px 0}to{opacity:1;translate:0 0}}@keyframes detailChange{from{opacity:.45;translate:0 7px}to{opacity:1;translate:0 0}}@keyframes modalEnter{from{opacity:0;scale:.91;translate:0 10px}to{opacity:1;scale:1;translate:0 0}}@keyframes dialogEnter{from{opacity:0;transform:translateY(18px) scale(.93)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes dialogExit{to{opacity:0;transform:translateY(8px) scale(.97)}}@keyframes rankStamp{from{opacity:0;scale:1.7;rotate:-12deg}to{opacity:1;scale:1;rotate:0deg}}@keyframes statEnter{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}@keyframes recordGlow{from{opacity:.6}to{opacity:1}}@keyframes demoRing{0%{transform:scale(1.35);opacity:.3}80%,100%{transform:scale(1);opacity:1}}
@media(max-height:820px) and (min-width:901px){#game{min-height:680px}.title-screen{top:19%}h1{font-size:100px}.title-description{margin:20px 0}.title-note{margin-top:18px}.song-screen{top:14%;bottom:9%}.section-heading{margin-bottom:15px}.section-heading h2{font-size:26px}.selection-grid{height:calc(100% - 76px);gap:4%}.album-art{height:38%;min-height:145px}.detail-copy{padding:18px 22px}.detail-copy h3{font-size:25px}.description{margin:11px 0 13px;font-size:12px}.song-card{min-height:77px;padding:14px 17px}.song-list{gap:8px;margin-top:10px}.difficulty-heading{margin-top:17px}.difficulty{padding:11px 13px}.best-record{margin:14px 0}.result-screen{top:14%;padding:23px 27px}.result-main{margin:18px 0}.rank-badge{font-size:87px}.result-message{margin:13px 0}.result-stats{padding:14px 0}}
@media(max-width:1000px){.selection-grid{grid-template-columns:minmax(270px,.9fr) minmax(340px,1.1fr);gap:3%}.song-screen{left:4%;right:4%}.song-card-copy small{font-size:9px}.song-card{gap:12px;padding:15px 14px}.song-card-copy b{font-size:15px}.detail-copy{padding:20px}.detail-copy h3{font-size:25px}.difficulty-heading>span{font-size:9px}.difficulty small{font-size:9px}.selection-actions{gap:8px}.selection-actions .primary{font-size:14px}.selection-actions .secondary{padding:13px 12px}.result-screen{width:61%;left:4%}.title-screen{top:24%;width:47%}h1{font-size:clamp(76px,9vw,100px)}.character{right:-9%;width:min(76vw,100svh)}.now-playing{max-width:170px}.hud{gap:25px}}
@media(max-width:760px){#game{height:auto;min-height:100svh;height:100svh;min-height:760px}.topbar{top:18px;left:5%;right:5%}.brand{font-size:12px;gap:6px}.brand>span>small{font-size:8px;letter-spacing:3px}.control{padding:8px 10px;font-size:12px}.control span{margin-left:3px}.top-actions{gap:5px}.play-clock{font-size:10px;margin-right:0}.topbar .control:last-child{display:none}.title-screen{top:23%;left:7%;width:79%}h1{font-size:92px}.title-description{font-size:14px;margin:25px 0}.title-menu{width:300px}.title-menu .primary{padding:18px 20px;font-size:19px}.title-note{margin-top:21px}.character{width:112vw;right:-43%;bottom:-3%;opacity:.75}.speech{right:5%;bottom:9%;width:57%;max-width:270px;background:#180e27e8}.speech p{font-size:12px}.song-screen{left:5%;right:5%;top:115px;bottom:70px;overflow-y:auto;padding-bottom:20px;scrollbar-width:thin}.section-heading{margin-bottom:20px}.section-heading h2{font-size:24px}.section-heading .eyebrow{font-size:9px;letter-spacing:2px}.back-button{font-size:11px;padding:9px 12px}.selection-grid{display:flex;flex-direction:column;gap:23px;height:auto}.song-detail{display:grid;grid-template-columns:36% 1fr;min-height:210px;flex-shrink:0}.album-art{height:100%;min-height:210px;border:0;border-right:1px solid var(--line)}.album-art>span{left:12px;top:10px;font-size:23px}.album-ring{width:105px;right:5%;top:39%}.album-soul{width:77px;right:13%;top:39%}.album-caption{left:12px;bottom:15px;right:10px}.album-caption span{font-size:7px;letter-spacing:1px}.album-caption b{font-size:15px}.detail-copy{padding:16px}.composer{font-size:9px;letter-spacing:0}.detail-copy h3{font-size:22px}.detail-copy .muted{font-size:10px}.description{font-size:11px;margin:10px 0;min-height:0;line-height:1.7}.song-stats{padding-top:10px;gap:6px}.song-stats small{font-size:8px;margin-bottom:4px}.song-stats b{font-size:12px}.song-card{min-height:77px;padding:14px 15px}.song-card-copy b{font-size:16px}.song-card-copy small{font-size:10px}.difficulty-heading{margin-top:23px}.difficulty b{font-size:14px}.difficulty small{font-size:10px}.difficulty-heading>span{font-size:9px}.selection-actions{margin-top:6px}.selection-actions .primary{font-size:15px}.selection-actions .secondary{font-size:12px}.selection-hint{font-size:9px}.hud{top:93px;left:5%;right:5%;gap:23px}.hud small{font-size:10px}.hud strong{font-size:26px}#hudCombo{height:42px}.now-playing{display:none}#field,#comboPlane{left:5%;width:90%;top:26%;height:58%}.note{width:66px;height:66px}.flipbook-effect{width:180px;height:180px}.flipbook-effect.miss{width:190px;height:190px}#comboPopup canvas{height:64px;max-width:165px}#comboPopup span{font-size:8px}#game[data-screen="playing"] .character,#game[data-screen="paused"] .character{right:-40%;width:104vw;opacity:.50}#game[data-screen="playing"] .speech,#game[data-screen="paused"] .speech{right:5%;width:230px;bottom:8%;opacity:.92}#game[data-screen="outro"] .character{width:118vw;bottom:3%;right:50%}#cinematicCaption{top:20%;left:5%;right:5%}#cinematicText{font-size:19px;line-height:1.7}#cinematicLabel{font-size:10px;letter-spacing:2px}#game[data-screen="result"] .character{width:120vw;right:-30%;opacity:.32}.result-screen{left:5%;right:5%;top:16%;width:auto;padding:25px}.result-screen>h2{font-size:27px}.result-main{gap:17px;margin:23px 0}.rank-badge{font-size:93px;min-width:90px}.result-score strong{font-size:39px}.result-stats b{font-size:20px}.result-stats small{font-size:10px}.judgment-row{font-size:11px;gap:5px}.result-message{font-size:11px}.result-actions>button{font-size:13px;padding:14px 10px}.modal-panel{padding:29px}.modal-panel h2{font-size:25px}footer{left:5%;right:5%;bottom:15px;font-size:9px;letter-spacing:0}footer .text-button{font-size:11px;padding-left:0}.setting{grid-template-columns:90px 1fr 55px;font-size:12px;gap:8px}dialog{padding:29px}.vignette{opacity:.4}.impact-vignette{opacity:calc(var(--impact)*.4)}.hurt-vignette{opacity:calc(var(--hurt)*.65)}}
@media(max-width:430px){.topbar .control span{display:none}.control{font-size:17px;padding:7px 10px}.topbar .control:last-child{display:inline-block}.title-screen{top:22%}h1{font-size:85px}.title-description{font-size:13px}.title-menu{width:280px}.title-note{display:none}.song-screen{top:103px}.song-detail{grid-template-columns:32% 1fr}.album-ring{width:85px}.album-soul{width:67px;right:9%}.album-caption b{font-size:13px}.detail-copy{padding:14px}.detail-copy h3{font-size:21px}.description{font-size:10px}.song-stats b{font-size:11px}.difficulty-heading>span{font-size:8px}.result-screen{padding:22px}.result-score strong{font-size:34px}.result-stats b{font-size:18px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.scene-world{transform:translate(-50%,-50%)}.character{translate:0 0}#comboPopup{transform:translate(-50%,-50%)}.arrival-seal{transform:translate(-50%,-50%)}.impact-vignette{opacity:calc(var(--impact)*.18)}}.reduced-motion *, .reduced-motion *::before,.reduced-motion *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.reduced-motion .scene-world{transform:translate(-50%,-50%)}.reduced-motion .character{translate:0 0}.reduced-motion #comboPopup{transform:translate(-50%,-50%)}
/* Keep functional labels readable; compact text is reserved for metadata. */
.hud small{font-size:13px}.song-card-copy small{font-size:12px}.song-stats small,.result-stats small,.result-score small{font-size:12px}.description{font-size:14px}.difficulty-heading>span{font-size:12px}.best-record{font-size:14px}.setting{font-size:14px}.selection-hint{font-size:12px}.result-message{font-size:14px}.judgment-row{font-size:14px}.difficulty small{font-size:12px}.detail-copy .muted{font-size:13px}
@media(max-width:760px){.song-card-copy small{font-size:11px}.description{font-size:12px}.song-stats small,.hud small{font-size:11px}.difficulty small{font-size:11px}.difficulty-heading>span{font-size:10px}.result-message{font-size:12px}.judgment-row{font-size:12px}.setting{font-size:13px}.selection-hint{font-size:11px}}
/* Keep character frames comfortably sized beside the interface. */
.character{width:min(59vw,88svh);max-width:780px}#game[data-screen="playing"] .character,#game[data-screen="paused"] .character{width:min(47vw,78svh)}#game[data-screen="outro"] .character{width:min(86vw,88svh);max-width:840px}#game[data-screen="result"] .character{width:min(58vw,89svh)}
@media(max-width:760px){.character{width:108vw;max-width:none}#game[data-screen="playing"] .character,#game[data-screen="paused"] .character{width:100vw}#game[data-screen="outro"] .character{width:118vw}#game[data-screen="result"] .character{width:120vw}}
.actor-fallback{background:url('assets/reaper-idle.png') left top/400% 400% no-repeat}
/* Prevent focus-driven scrolling of the fixed game stage. Inner menus keep their own scrolling. */
#game{overflow:clip}
/* Pattern vocabulary: texture rings, readable input badges, and sprite-bead drag paths. */
.note .input-badge{position:absolute;left:50%;bottom:-15px;transform:translateX(-50%);font:800 10px 'Noto Sans KR',sans-serif;white-space:nowrap;padding:3px 8px;background:#2b1028ee;color:#ffc4df;border:1px solid #ff78b191;pointer-events:none;letter-spacing:.5px}.right-note>img{filter:hue-rotate(-65deg) saturate(.85) brightness(1.08)}.right-note .input-badge{background:#201337ee;color:#dfcaff;border-color:#bb98ff}.drag>img{filter:hue-rotate(190deg) saturate(.75)}.drag .input-badge{color:#b7ffed;background:#0e2d2aee;border-color:#7bf8d2}.note.drag{cursor:grab}.note.drag.holding{cursor:grabbing}.holding .target-ring{opacity:1;filter:hue-rotate(190deg) brightness(1.6)}.burst-order{position:absolute;top:-19px;left:50%;transform:translateX(-50%);font:800 10px 'Noto Sans KR',sans-serif;color:#ffe7a0;white-space:nowrap;pointer-events:none;text-shadow:0 2px 4px #13091d}.drag-path{position:absolute;inset:0;pointer-events:none;z-index:1}.drag-path img{position:absolute;width:16px;height:16px;transform:translate(-50%,-50%);filter:hue-rotate(190deg) brightness(1.15);opacity:.65}.drag-path img.drag-tail{width:65px;height:65px;opacity:.8}.flipbook-effect{z-index:3000}.health-meter{position:absolute;top:81px;left:0;width:240px;max-width:44vw}.health-label{display:flex;align-items:center;gap:10px;color:#e0cadf;font-size:12px;margin-bottom:7px}.health-label b{margin-left:auto;font:700 12px monospace;color:#a7ffe2}.health-label #healthState{font-size:10px;color:#9dcbbf}.health-track{height:9px;background:#140c21da;border:1px solid #d1b6dc4a;transform:skew(-12deg);overflow:hidden}.health-track i{display:block;height:100%;width:100%;background:#9cead0;transition:width .16s ease-out,background .2s}.low-health .health-label b,.low-health .health-label #healthState{color:#ff7eac}.low-health .health-track i{background:#ff4d91}.low-health .health-meter{animation:healthWarning 1s ease-in-out infinite alternate}.result-screen[data-failed="true"] .rank-badge{color:#ff82b0;-webkit-text-stroke-color:#ffd5e3}.result-screen[data-failed="true"]>h2{font-size:27px}.pattern-help{margin:20px 0;padding:4px 0 4px 15px;border-left:2px solid #ae75bc}.pattern-help p{font-size:12px;line-height:1.9}.pattern-help b{margin-right:8px}.pink-label{color:#ff8dbd}.purple-label{color:#d7b9ff}.mint-label{color:#a5ffe5}.gold-label{color:#ffe49b}@keyframes healthWarning{from{opacity:.65}to{opacity:1}}
/* The dialogue belongs to the character silhouette: an illustrated comic balloon, not a HUD panel. */
#game .character .speech{position:absolute;right:58%;top:17%;bottom:auto;left:auto;width:300px;max-width:none;height:165px;padding:29px 32px 43px;background:transparent url('assets/speech-bubble.png') center/100% 100% no-repeat;border:0;box-shadow:none;backdrop-filter:none;opacity:1;filter:drop-shadow(2px 5px 2px #0d071d35);color:#331a3f;z-index:4;pointer-events:none;display:flex;align-items:center;justify-content:center;text-align:center}#game .character .speech small{display:none}#game .character .speech p{font-size:14px;font-weight:700;line-height:1.65;letter-spacing:-.25px;color:#361b43;margin:0;min-height:0;overflow-wrap:anywhere}#game[data-screen="select"] .character .speech,#game[data-screen="loading"] .character .speech{opacity:0}
@media(max-width:760px){.health-meter{top:72px;width:205px;max-width:55vw}.health-label{font-size:11px}.note .input-badge{font-size:9px;bottom:-15px;padding:3px 6px}.burst-order{font-size:9px;top:-17px}.drag-path img{width:13px;height:13px}.drag-path img.drag-tail{width:54px;height:54px}#game .character .speech{right:53%;top:14%;width:238px;height:142px;padding:25px 25px 38px}#game .character .speech p{font-size:12px}#game[data-screen="title"] .character .speech{display:none}.result-screen[data-failed="true"]>h2{font-size:24px}}
/* Texture-lit procession: predictable route, beat breathing, readable targets. */
.procession{position:absolute;inset:0;pointer-events:none;z-index:1;overflow:hidden}
.route-bead,.orbit-soul,.cursor-wake{position:absolute;transform:translate(-50%,-50%);pointer-events:none}
.route-bead{width:12px;height:12px;filter:drop-shadow(0 0 5px #ff69c3);mix-blend-mode:screen}
.orbit-soul{width:36px;height:36px;object-fit:contain;filter:drop-shadow(0 0 9px #ff56bc);mix-blend-mode:screen;opacity:.8}
.orb-1{filter:hue-rotate(135deg) drop-shadow(0 0 12px #6fffe5)}
.cursor-wake{filter:drop-shadow(0 0 6px #a8ffef);mix-blend-mode:screen}
#game .vignette{opacity:0!important}
#game .hurt-vignette{opacity:calc(var(--hurt,0)*.85)!important}
#game[data-screen="title"] .character,#game[data-screen="select"] .character,#game[data-screen="loading"] .character{display:none}
#game .title-screen{left:50%;top:50%;width:min(520px,90%);transform:translate(-50%,-50%);text-align:center}
#game .title-menu{margin-inline:auto}#game .title-menu button{justify-content:center}
#game.in-stage .scene-world{filter:brightness(calc(var(--room-light,1) + var(--beat,0)*.045)) saturate(1.12)}
#game.in-stage .floor-light{filter:hue-rotate(var(--phrase-hue,0deg)) drop-shadow(0 0 22px #b66dff);opacity:calc(.26 + var(--beat,0)*.15)}
#game .note .target-ring{filter:drop-shadow(0 0 7px #ff63bd)}
#game .note .spirit{filter:drop-shadow(0 0 10px #ffd2ef)}
#judgmentPopup{position:absolute;z-index:6000;pointer-events:none;text-align:center;transform:translate(-50%,var(--grade-rise,0px));color:#ffeaa3;text-shadow:2px 3px #22152e,0 0 15px currentColor;white-space:nowrap}
#judgmentPopup b{display:block;font-size:clamp(22px,3vw,38px);font-weight:1000;font-style:italic;letter-spacing:2px;-webkit-text-stroke:1px #321d42}
#judgmentPopup small{display:block;font-size:11px;font-weight:800;letter-spacing:1px;color:#fff}
#judgmentPopup[data-grade="great"]{color:#ccb2ff}#judgmentPopup[data-grade="good"]{color:#92ffe2}#judgmentPopup[data-grade="miss"]{color:#ff518f}
.great-dot{background:#c8a4ff}.help-grades{flex-wrap:wrap}
#game.reduced-motion .cursor-wake{display:none}#game.reduced-motion .scene-world{filter:brightness(var(--room-light,1))}
