:root{color-scheme:light;--ink:#514264;--paper:#fff8ee;--mint:#9bd8c6;--pink:#ef91a2;--gold:#efc66b;--muted:#8c7d96;--line:#dfd1de;--panel:#fff8ee;font-family:Pretendard,-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Noto Sans KR',sans-serif}*{box-sizing:border-box}body{margin:0;background:#d7d5e6;color:var(--ink);font-size:14px}button,select,a{-webkit-tap-highlight-color:transparent}button,select{font:inherit;color:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #ac74bb;outline-offset:2px}button{border:2px solid var(--ink);border-radius:9px;background:var(--paper);box-shadow:0 3px 0 #514264;min-height:44px}button:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 var(--ink)}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.app{max-width:1120px;margin:24px auto;border:3px solid var(--ink);border-radius:17px;overflow:hidden;background:var(--paper);box-shadow:0 9px 0 #51426422}header{height:53px;background:var(--ink);color:#fff3df;display:flex;justify-content:space-between;align-items:center;padding:0 20px;gap:10px}.brand{font-size:18px;letter-spacing:1px;font-weight:900;white-space:nowrap}.brand small{font-size:9px;letter-spacing:0;color:#b7aad1;margin-left:6px}header>div{display:flex;align-items:center;gap:10px}#save-state{font-size:9px;color:#c7bbd6}#mute{font-size:10px;min-height:32px;padding:4px 10px;background:#665577;border-color:#a190b0;color:#fff8ee;box-shadow:none}.hud{height:70px;padding:10px 24px;display:grid;grid-template-columns:repeat(3,1fr);gap:15px;border-bottom:2px solid var(--ink);background:#f8ecd9}.currency{display:flex;gap:10px;align-items:center}.currency>span{width:35px;height:35px;display:grid;place-items:center;color:#ab754a;background:#ffe19a;border:2px solid #b89355;border-radius:9px;font-size:22px;box-shadow:inset 0 -3px #efc66b}.currency small{display:block;font-size:10px;margin-bottom:3px;color:#87748a}.currency b{font-size:21px;font-weight:900;line-height:1}.currency .cap{display:inline;font-size:9px}.currency em{font-size:8px;font-style:normal}.inspiration>span{color:#547e84;background:#c2e6d7;border-color:#80ac9f;box-shadow:inset 0 -3px #9fd2bd}.fame>span{color:#aa6988;background:#fbd2d4;border-color:#cb98b1;box-shadow:inset 0 -3px #f0b4c8}.game-layout{display:grid;grid-template-columns:58% 42%;grid-template-rows:520px 66px}.studio{background:#e1d9ec;border-right:2px solid var(--ink);position:relative;overflow:hidden;padding:18px 22px}.room-top{display:flex;justify-content:space-between;font-size:12px;font-weight:800}.room-top>span:first-child{background:#fff4df;border:2px solid #aa92b8;border-radius:6px;padding:6px 9px}.passive{font-size:9px;align-self:center;color:#7d698b}.world{height:350px;position:relative;margin-top:4px}.world svg{height:100%;width:100%;overflow:visible}.world #room-art{height:100%;pointer-events:none}.speech{position:absolute;top:18px;left:7%;max-width:62%;padding:9px 13px;background:#fffcf0;border:2px solid #7d657d;border-radius:10px;box-shadow:0 3px #51426418;font-size:11px;line-height:1.45}.speech:after{content:'';position:absolute;left:20px;bottom:-7px;width:10px;height:10px;background:#fffcf0;border-right:2px solid #7d657d;border-bottom:2px solid #7d657d;transform:rotate(45deg)}.speech b{color:#b97491;display:block;font-size:10px;margin-bottom:3px}.speech span{display:block;font-weight:700}#tap-note{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);min-width:160px;min-height:48px;background:#ffe1a1;font-size:12px;font-weight:800;padding:5px 12px;white-space:nowrap}#tap-note:active{transform:translateX(-50%) translateY(2px)}#tap-note>span{display:inline-block;font-size:17px;padding-right:4px}#tap-note small{display:block;font-size:8px;font-weight:500;margin:2px}.studio-ticker{text-align:center;font-size:9px;color:#81718e;position:absolute;bottom:-2px;width:100%}.quest{background:#fdf6e6;border:2px solid #b4a0be;border-radius:9px;display:flex;align-items:center;gap:10px;padding:9px 12px;margin:12px 0 10px}.quest>span{display:grid;place-items:center;background:#f5cc77;border:2px solid #ac8561;border-radius:50%;width:25px;height:25px;font-weight:900}.quest>div{flex:1;min-width:0}.quest small{font-size:8px;color:#9b83a0;display:block;margin-bottom:3px}.quest b{font-size:11px;display:block}.quest em{font-size:9px;font-style:normal;color:#a18898}.progress-line{height:9px;background:#c5b9d4;border:2px solid #a48fb6;border-radius:9px;overflow:hidden}.progress-line>div{height:100%;width:0;background:#8cbeab;transition:width .15s}.progress-caption{display:flex;justify-content:space-between;font-size:9px;margin-top:5px;gap:8px}.action-tray{grid-column:2;grid-row:1 / 3;overflow:auto;background:var(--paper);scrollbar-width:thin;scrollbar-color:#c8b4cc transparent}.game-panel{padding:20px}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-bottom:12px;border-bottom:2px dashed var(--line)}h2{font-size:17px;margin:0;font-weight:900}.panel-heading small{font-size:9px;color:var(--muted)}.client-intro{display:flex;gap:9px;align-items:center;margin:14px 0 8px}.avatar{width:37px;height:45px;flex-shrink:0;background:#eadde8;border:2px solid #c4aac5;border-radius:6px;overflow:hidden}.avatar svg{width:100%;height:100%;display:block}.client-intro strong{font-size:13px}.client-intro p{font-size:9px;margin:4px 0;color:var(--muted)}blockquote{margin:8px 0 10px;padding:9px 11px;background:#f6e8ec;border-radius:8px;font-size:11px;line-height:1.65}.brief{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0}.tag{font-size:8px;border:1px solid #ceb7d0;padding:4px 7px;border-radius:5px;background:#f1e8f2}.tag.match{background:#e2efde;color:#607d6b;border-color:#bdcfaf}.lead-note{display:none}.field-label{font-size:11px;font-weight:800;margin:13px 0 7px;display:flex;justify-content:space-between}.field-label>span{display:none}.style-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.style-choice{min-height:58px;padding:5px 2px;border-color:#c6b4cb;box-shadow:0 2px #c6b4cb;font-size:10px}.style-choice:before{content:'♫';display:block;font-size:19px;color:var(--accent)}.style-choice strong{display:block;font-size:10px}.style-choice small{display:none}.style-choice.active{background:#e0efdf;border-color:#88ac96;box-shadow:0 2px #88ac96}.moods{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.mood{min-height:36px;font-size:10px;border-color:#ceb9ca;box-shadow:0 2px #ceb9ca}.mood.active{background:#ffe2a9;border-color:#be9a6f;box-shadow:0 2px #be9a6f}.primary{background:#ed92a2;color:#553b55;border-color:#7c536e;box-shadow:0 4px #7c536e;min-height:49px;padding:10px 15px;font-weight:900;font-size:13px;display:flex;justify-content:space-between;align-items:center}.full{width:100%;margin-top:16px}.fine-print{font-size:9px;color:#9b899d;line-height:1.7;margin:9px 0}.secondary{background:#e3eddd;border-color:#8ca697;box-shadow:0 3px #8ca697;min-height:42px;font-size:11px;padding:9px 12px}.creation .step-track{display:flex;align-items:center;gap:8px;margin:17px 0}.step-track span{width:24px;height:24px;display:grid;place-items:center;border:2px solid #bca6c5;border-radius:50%;font-size:9px}.step-track span.active{background:#ffd897;border-color:#be976e}.step-track i{height:2px;background:#ddd0dd;flex:1}.eyebrow{font-size:8px;letter-spacing:1px;color:#a288a3}.creation h3{font-size:21px;line-height:1.4;margin:11px 0}.creation>p{font-size:11px;color:#9b839b;line-height:1.65}.choice{width:100%;display:block;text-align:left;padding:13px;margin-top:12px;background:#fff3d9;border-color:#c5a184;box-shadow:0 3px #c5a184}.choice strong{display:block;font-size:12px;line-height:1.5}.choice small{display:block;font-size:10px;color:#927b8d;line-height:1.6;margin-top:7px}.choice em{display:block;font-size:9px;color:#b57988;font-style:normal;margin-top:6px}.waiting-orb{font-size:40px;text-align:center;margin:26px auto 18px;animation:bop 1.1s steps(2) infinite}.waiting{text-align:center}.game-nav{display:grid;grid-template-columns:repeat(4,1fr);border-top:2px solid var(--ink);border-right:2px solid var(--ink);background:#fff7e8;padding:6px 13px;gap:8px;grid-row:2;grid-column:1}.game-nav button{border:0;box-shadow:none;background:transparent;min-height:49px;font-size:10px;border-radius:8px;color:#a593ab}.game-nav button b{display:block;font-size:21px;line-height:25px}.game-nav .active{color:#7d4d77;background:#f4d8db}.request-card{display:block;width:100%;text-align:left;margin:14px 0;padding:13px;background:#f8ecdc;border-color:#baa1b8;box-shadow:0 3px #baa1b8}.request-card.active{background:#e2ecdc;border-color:#8dab97;box-shadow:0 3px #8dab97}.request-card .row{display:flex;gap:10px;align-items:center}.request-card strong{font-size:13px}.request-card small{display:block;font-size:10px;margin-top:4px}.request-card p{font-size:10px;margin:9px 0;color:#9a8299}.request-card .bottom{font-size:10px;font-weight:800;color:#a47289}.panel-help{font-size:11px;line-height:1.6;color:#9b869d}.skill-card{margin:15px 0;border-top:1px solid var(--line);padding-top:13px}.skill-top{display:flex;justify-content:space-between}.skill-top strong{font-size:12px}.skill-top b{font-size:18px}.skill-top small{font-size:9px;font-weight:400}.skill-card p{font-size:9px;color:#9b879e}.skill-meter{height:5px;background:#e1d4e2;overflow:hidden;border-radius:5px}.skill-meter i{height:100%;display:block;background:#bb99bf}.skill-actions{display:flex;gap:7px;margin-top:10px}.skill-actions button{flex:1;font-size:10px;min-height:39px;border-color:#bba6c0;box-shadow:0 2px #bba6c0}.skill-actions .selected{background:#dcebdd;color:#688271}.equipment-card{background:#ece3f1;padding:14px;border:2px solid #c9b1d0;border-radius:10px;margin-top:15px}.equipment-card strong{font-size:14px}.equipment-card p{font-size:10px;color:#9b849e;line-height:1.6}.equipment-card button{width:100%;background:#e6c3df;font-size:11px;border-color:#a680a6;box-shadow:0 3px #a680a6}.empty{text-align:center;font-size:11px;color:#a18ba3;padding:25px 8px;line-height:1.7}.empty p{font-size:10px}.song-row{display:flex;gap:8px;align-items:center;border-bottom:1px solid var(--line);padding:14px 0}.mini-record{width:31px;height:31px;border-radius:50%;background:#66516f;flex-shrink:0;border:7px double #89738f}.song-title{flex:1;min-width:0}.song-title strong{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.song-title span{display:block;font-size:8px;color:#9f8aa1;margin-top:5px}.song-grade{font-size:9px;text-align:right;flex-shrink:0}.song-grade b{display:block;color:#ba7b8f}.song-grade span{font-size:8px;color:#ad98ad}.listen{min-width:37px;min-height:37px;border:1px solid #b7a2be;box-shadow:0 2px #b7a2be;border-radius:50%;font-size:11px}.subheading{font-size:13px;margin:26px 0 4px;border-top:2px dashed var(--line);padding-top:15px}.demo-card{margin:15px 0;padding:12px;background:#f3e9ef;border-radius:9px}.demo-card strong{font-size:12px}.demo-card p,.demo-card label{font-size:9px;line-height:1.6;color:#a087a0}.demo-card label{display:block}.demo-card select{display:block;width:100%;padding:7px;min-height:40px;font-size:10px;border:1px solid #b9a4be;border-radius:6px;margin:7px 0}.demo-card button{width:100%}.log-entry{border-bottom:1px solid var(--line);padding:11px 0}.log-entry strong{font-size:11px}.log-entry p{font-size:9px;color:#a58ba4;line-height:1.6}.notice{padding:10px 14px;background:#ffe6b2;font-size:10px;line-height:1.6;border-bottom:2px solid #caa776}dialog{max-width:440px;width:calc(100% - 28px);max-height:90dvh;overflow:auto;border:3px solid #705370;background:#fff5e5;color:var(--ink);border-radius:15px;padding:22px;box-shadow:0 7px #513a5733}dialog::backdrop{background:#352b4baa;backdrop-filter:blur(3px)}.result-stage{height:115px;background:linear-gradient(#6b527d,#a47d9f);border:3px solid #775b86;border-radius:8px;position:relative;display:flex;align-items:flex-end;justify-content:center;gap:7px;padding:15px 5px;overflow:hidden}.result-stage:before{content:'';position:absolute;inset:0;background:linear-gradient(110deg,transparent 20%,#ffe9be22 22% 35%,transparent 37% 65%,#ffe9be33 67% 80%,transparent 82%)}.result-stage .artist{position:absolute;width:44px;height:65px;top:6px;left:calc(50% - 22px)}.result-stage .artist svg{height:100%;width:100%}.result-stage i{width:9px;height:12px;background:#584962;border-top:7px solid #e0bcae;border-radius:4px 4px 0 0;z-index:1}.result-stage.hit i{background:#f5d29b;border-top-color:#ffd0b9;animation:bop .5s steps(2) infinite alternate}.result-stage.hit i:nth-child(2n){animation-delay:.25s}.result-head{text-align:center;margin-top:16px}.result-head h2{font-size:23px;line-height:1.35;margin:8px 0}.result-head p{font-size:10px;color:#a0869a}.result-quote{text-align:center;font-size:12px;line-height:1.8;margin:15px 0}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;gap:5px;background:#f4e5da;padding:13px 5px;border-radius:7px}.result-stats small{font-size:9px;display:block;margin-bottom:7px;color:#a18a9b}.result-stats strong{font-size:19px}.result-stats strong span{font-size:8px}.result-note{font-size:9px;line-height:1.8;color:#a18b9e;margin-top:13px}.story-heading{font-size:23px;line-height:1.4;margin:12px 0}.story-body{font-size:12px;line-height:1.85;color:#927e94}.story-portrait{width:65px;height:75px;margin:0 auto;background:#edd8dd;border:2px solid #b79bb8;border-radius:9px}.story-portrait svg{width:100%;height:100%}#toast{position:fixed;bottom:88px;left:50%;transform:translateX(-50%) translateY(12px);max-width:90%;border:2px solid #705472;background:#fff4d9;color:#725575;border-radius:9px;padding:11px 18px;font-size:11px;opacity:0;pointer-events:none;transition:.2s;z-index:10;box-shadow:0 3px #70547255}#toast.on{opacity:1;transform:translateX(-50%) translateY(0)}.floating-note{position:absolute;left:50%;top:56%;font-size:19px;color:#fff4c6;text-shadow:2px 2px #765578;font-weight:900;animation:floatUp .8s steps(10) forwards;pointer-events:none}.visitor-sprite{animation:idle 1.7s steps(2) infinite;transform-origin:100px 250px}.working .producer-sprite{animation:idle .4s steps(2) infinite}.working .monitor-notes{animation:blink .6s steps(2) infinite}.ambient-notes{animation:bop 1.5s steps(2) infinite}.working .ambient-notes{fill:#f194ad}.room-upgraded #room-art{animation:upgradeFlash .7s steps(4)}@keyframes idle{50%{translate:0 -2px}}@keyframes bop{50%{transform:translateY(-4px)}}@keyframes blink{50%{opacity:.25}}@keyframes floatUp{to{transform:translate(18px,-75px);opacity:0}}@keyframes upgradeFlash{50%{filter:brightness(1.6)}}
@media(max-width:700px){body{background:var(--paper);overflow:hidden}.app{height:100svh;margin:0;border:0;border-radius:0;box-shadow:none;display:flex;flex-direction:column;max-width:520px}header{height:42px;flex-shrink:0;padding:0 13px}.brand{font-size:15px}.brand small{font-size:8px}#save-state{display:none}.hud{height:61px;flex-shrink:0;padding:8px 14px;gap:8px}.currency{gap:6px}.currency>span{width:29px;height:31px;font-size:19px}.currency b{font-size:19px}.currency small{font-size:8px}.currency .cap{font-size:7px}.currency em{display:none}.game-layout{display:flex;flex:1;min-height:0;flex-direction:column}.studio{flex-shrink:0;height:calc(34svh + 40px);min-height:230px;max-height:338px;border-right:0;border-bottom:2px solid #aa8eba;padding:9px 14px 7px}.room-top{position:absolute;z-index:1;top:7px;left:14px;right:14px;font-size:10px}.room-top>span:first-child{padding:4px 7px;border-width:1px}.passive{font-size:8px}.world{height:calc(100% - 80px);margin:17px -10px 0}.world svg{display:block;max-width:440px;margin:auto}.speech{left:10%;top:5px;font-size:9px;padding:6px 9px;max-width:67%}.speech b{font-size:8px;margin-bottom:2px}#tap-note{bottom:8px;min-width:139px;min-height:40px;font-size:11px;padding:2px 9px}#tap-note small{font-size:7px}#tap-note>span{font-size:14px}.studio-ticker{display:none}.quest{margin:4px 0 5px;padding:5px 8px;gap:7px;border-width:1px}.quest>span{width:18px;height:18px;font-size:11px;border-width:1px}.quest small{display:none}.quest b{font-size:9px}.quest em{font-size:8px}.progress-line{height:7px;border-width:1px}.progress-caption{font-size:8px;margin-top:3px}.action-tray{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}.game-panel{padding:13px 16px 18px}.panel-heading{padding-bottom:8px}.panel-heading h2{font-size:14px}.panel-heading small{font-size:8px}.client-intro{margin:10px 0 6px}.client-intro .avatar{width:29px;height:35px}.client-intro strong{font-size:11px}.client-intro p{font-size:8px;margin:2px 0}.desk blockquote{display:none}.desk .brief{margin:6px 0}.desk .brief .tag:nth-child(-n+3){display:none}.field-label{font-size:10px;margin:9px 0 6px}.style-choice{min-height:48px}.style-choice:before{font-size:15px}.mood{min-height:35px}.primary{min-height:44px;font-size:12px}.full{margin-top:12px}.desk>.panel-heading{display:none}.fine-print{font-size:8px;margin:7px 0}.game-nav{height:59px;flex-shrink:0;padding:4px 12px calc(4px + env(safe-area-inset-bottom));border-right:0;gap:5px;min-height:calc(59px + env(safe-area-inset-bottom))}.game-nav button{min-height:45px;font-size:9px}.game-nav button b{font-size:20px;line-height:23px}.creation .step-track{margin:1px 0 10px}.creation h3{font-size:18px;margin:6px 0}.creation>p{font-size:10px;margin:7px 0}.creation .eyebrow{display:none}.creation .choice{padding:10px 12px;margin-top:10px}.choice strong{font-size:11px}.choice small{font-size:9px;margin-top:4px}.choice em{font-size:8px;margin-top:4px}.waiting-orb{margin:10px auto;font-size:33px}.notice{position:absolute;top:47px;left:12px;right:12px;z-index:5;border:2px solid #caa776;border-radius:8px;padding:8px 10px;font-size:9px}#welcome:empty{display:none}.song-title span{font-size:8px}.speech{pointer-events:none}dialog{padding:18px}.result-head h2{font-size:21px}.result-quote{font-size:11px}}
@media(max-height:720px) and (max-width:700px){.studio{height:240px;min-height:210px}.world{margin-top:13px}.speech{max-width:73%;font-size:8px}.speech b{display:none}.quest{margin-top:0}.game-panel{padding-top:8px}.client-intro{margin-top:4px}.creation>p{margin:4px 0}.fine-print{line-height:1.4}.hud{height:55px}.game-nav{height:53px;min-height:53px}.game-nav button{min-height:40px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

.needs-choice [data-tab="compose"]{position:relative}.needs-choice [data-tab="compose"]:after{content:"!";position:absolute;right:15%;top:1px;display:grid;place-items:center;background:#ed92a2;border:1px solid #7d4d77;color:#fff;width:15px;height:15px;border-radius:50%;font-size:10px;font-weight:900}
/* Chapter scenes keep their own scroll area; progress is saved per page. */
.quest{width:100%;text-align:left;color:inherit;font-family:inherit}.chapter-label{font-size:10px;color:#ac6583;margin:0 0 5px}.chapter-invite{width:100%;text-align:left;background:#f3d9df;border:1px solid #ba87a6;border-radius:8px;padding:10px;color:#61435f;font-weight:800;font-size:12px;margin:3px 0 9px}.chapter-invite small{display:block;font-size:9px;margin-top:4px;font-weight:400}.chapter-inbox h3{font-size:23px;line-height:1.5}.chapter-inbox p{font-size:12px;line-height:1.8}.scene-place{font-size:10px;display:block;padding:10px;background:#ede2f0;border-radius:6px;margin-bottom:15px;color:#795a7e}.story-speaker{font-size:12px;font-weight:800;color:#ba688a;margin:16px 0 5px}.scene-text{white-space:pre-line;color:#5c4864;font-size:15px;line-height:2;word-break:keep-all}.page-dots{display:flex;gap:6px;align-items:center;margin:18px 0}.page-dots i{width:7px;height:7px;border-radius:50%;background:#ddd0df}.page-dots i.on{background:#b77293}.page-dots small{margin-left:auto;font-size:10px;color:#977b9b}.stage-prose{font-size:13px;line-height:1.95;color:#614d65;margin-top:16px;word-break:keep-all}.stage-prose p{margin:12px 0}.fan-comment{background:#e9eee1;border-left:3px solid #96b39d;padding:12px;font-size:12px;line-height:1.8;margin:12px 0;color:#57755e}.result-numbers summary{padding:13px 0;font-size:12px;color:#8a7294;cursor:pointer}.song-description{text-align:left;background:#f3e9df;border:1px dashed #c19fb6;padding:12px;border-radius:8px;margin:12px 0;font-size:12px;line-height:1.8}.song-description p{margin:6px 0}.memory-heading{display:flex;justify-content:space-between;font-size:11px;gap:10px}.memory-heading b{color:#b56e8b;font-size:10px}.keepsake{padding:13px;background:#f4e3dd;border:1px solid #d7b3bd;border-radius:7px;margin:10px 0;font-size:12px;line-height:1.8}.keepsake.gold{background:#fff0bf;border-color:#ceb073}.memory-button{display:block;width:100%;padding:12px;text-align:left;background:#f2e9f0;color:#654f70;border:1px solid #cab3ce;border-radius:6px;margin:7px 0;font-size:12px}.memory-button span{float:right;font-size:10px}.ending-trophy{text-align:center;font-size:58px;color:#dfac4c;text-shadow:3px 3px #967c52}.song-row{flex-wrap:wrap}.story-heading{font-size:22px}#story .choice{min-height:60px}#story .choice strong{font-size:13px;line-height:1.7}#story .choice em{font-size:10px;line-height:1.7}
@media(max-width:700px){.scene-text{font-size:14px;line-height:1.95}.story-heading{font-size:21px}.stage-prose{font-size:12px}.chapter-label{font-size:9px;margin:0}.chapter-invite{font-size:11px}.song-description{font-size:11px}.memory-heading{flex-direction:column;gap:4px}.chapter-inbox h3{font-size:20px}}
