:root{color:#443747;font-synthesis:none;background:#f7efe4;font-family:ui-rounded,system-ui,-apple-system,sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0}button{font:inherit;cursor:pointer}button:focus-visible{outline-offset:3px;outline:3px solid #8066ac}#app{max-width:1260px;margin:auto;padding:24px 28px 12px}.topbar{justify-content:space-between;align-items:center;gap:16px;padding:0 0 25px;display:flex}.brand{letter-spacing:-.03em;font-family:ui-rounded,system-ui,sans-serif;font-size:1.35rem;font-weight:700}.brand-mark{color:#de8274;vertical-align:middle;margin-right:5px;font-size:1.55rem}.trial{color:#b58c75;letter-spacing:.11em;vertical-align:middle;border:1px solid #d8bba0;border-radius:6px;margin-left:8px;padding:4px 6px;font-size:.55rem;font-weight:700}.topbar-right{align-items:center;gap:15px;display:flex}.server-status{color:#6a9678;white-space:nowrap;font-size:.78rem;font-weight:700}.sound-button{color:#6e5b63;background:0 0;border:1px solid #cdbca9;border-radius:9px;padding:7px 10px;font-size:.78rem;font-weight:800}.sound-button[aria-pressed=true]{background:#fff8ed;border-color:#a8b794}.layout{grid-template-columns:minmax(0,1fr) 320px;align-items:start;gap:22px;display:grid}.scene-card,.panel{background:#fffaf1;border:1px solid #eadcc8;border-radius:20px;box-shadow:0 7px #ead9c2}.scene-card{padding:25px 25px 10px;overflow:hidden}.scene-heading{justify-content:space-between;align-items:start;gap:10px;padding:0 1px 20px;display:flex}.eyebrow{color:#ad8a75;text-transform:uppercase;letter-spacing:.14em;margin-bottom:8px;font-size:.68rem;font-weight:700}h1,h2,p{margin-top:0}h1{margin-bottom:0;font-size:clamp(1.45rem,2.5vw,2.15rem);font-weight:700;line-height:1.18}.scene-clock{color:#9d725f;white-space:nowrap;background:#fff0d2;border-radius:100px;padding:7px 11px;font-size:.78rem;font-weight:800}#game{aspect-ratio:16/9;background:#fbf0d7;border:4px solid #d7bb9b;border-radius:13px;width:100%;overflow:hidden}#game canvas{display:block}.scene-caption{text-align:center;color:#987d71;min-height:40px;margin-bottom:5px;padding-top:16px;font-size:.82rem;font-weight:800}.side-panel{gap:17px;display:grid}.panel{padding:20px 20px 17px}.panel h2{margin:0 0 17px;font-size:1.2rem;font-weight:700;line-height:1.2}.mood-pill{letter-spacing:0;color:#56745b;vertical-align:middle;background:#e1f0d9;border-radius:100px;margin-left:4px;padding:5px 7px;font-size:.68rem;font-weight:800;display:inline-block}.meter-row{grid-template-columns:62px 1fr 31px;align-items:center;gap:8px;margin:12px 0 0;font-size:.72rem;font-weight:800;display:grid}.meter-row progress{accent-color:#9ac7ac;background:#e9e1d6;border:none;border-radius:99px;width:100%;height:12px}.meter-row progress::-webkit-progress-bar{background:#e9e1d6;border-radius:99px}.meter-row progress::-webkit-progress-value{background:#9ac7ac;border-radius:99px}.meter-row:nth-of-type(3) progress::-webkit-progress-value{background:#e3ac7c}.meter-row span{color:#9f8c7e}.quest-panel{background:#fff4df;border-color:#e9cfac;box-shadow:0 7px #e8d0b0}.quest-panel h2{margin-bottom:7px}.quest-panel p{color:#8f796a;margin-bottom:0;font-size:.78rem;line-height:1.45}.action-grid{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.action-grid button,.cosmetic{color:#765355;background:#fff0e4;border:1px solid #d6b8a4;border-bottom-width:4px;border-radius:11px;font-weight:800}.action-grid button{min-height:69px;padding:9px 5px;font-size:.76rem}.action-grid button span{color:#ce8378;font-size:1.25rem;line-height:1.25;display:block}.action-grid button:hover,.cosmetic:hover{background:#fce3d8}.action-grid button:active,.cosmetic:active{border-bottom-width:2px;transform:translateY(2px)}button:disabled{opacity:.55;cursor:wait}.cosmetic{color:#705a89;background:#f4ecfb;border-color:#cbb4d6;width:100%;margin-top:10px;padding:10px;font-size:.79rem}.cosmetic[aria-pressed=true]{background:#eadcf3}.error{color:#b94450;margin:10px 0 0;font-size:.76rem}footer{color:#a39486;text-align:center;padding:25px 0 8px;font-size:.69rem;font-weight:700}@media (width<=850px){#app{padding:17px 15px}.layout{grid-template-columns:1fr}.side-panel{grid-template-columns:repeat(2,1fr)}.controls-panel{grid-column:1/-1}}@media (width<=560px){.topbar{align-items:start}.topbar-right{flex-direction:column;align-items:end;gap:6px}.trial{display:none}.scene-card{padding:17px 13px 6px}.scene-heading{padding-bottom:13px}.scene-clock{display:none}.side-panel{grid-template-columns:1fr}.controls-panel{grid-column:auto}}.server-status[data-status=offline],.server-status[data-status=unsaved]{color:#b94450}.server-status[data-status=saving],.server-status[data-status=connecting]{color:#a08a5c}.sound-button,.cosmetic,.retry{min-height:44px}.memory{color:#6d4a3a;background:#fff4df;border:2px solid #e3ac7c;border-radius:14px;align-items:center;gap:10px;margin:8px 0 14px;padding:12px 14px;font-size:1rem;font-weight:800;display:flex}.memory[hidden]{display:none}.memory-icon{color:#ce8378;font-size:1.4rem}.memory-close{color:#987d71;background:0 0;border:none;min-width:44px;min-height:44px;margin-left:auto;font-size:1.1rem}.error{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.retry{color:#765355;background:#fff0e4;border:1px solid #d6b8a4;border-bottom-width:3px;border-radius:10px;padding:6px 12px;font-weight:800}#recovery-toggle.nudge{background:#fff0e4;border-color:#de8274}.recovery-panel .cosmetic{margin-top:0}.code-box{background:#fff;border:2px dashed #cbb4d6;border-radius:12px;justify-content:space-between;align-items:center;gap:8px;margin:12px 0;padding:10px 12px;display:flex}.code-box code{letter-spacing:.08em;-webkit-user-select:all;user-select:all;word-break:break-all;font-size:1.15rem;font-weight:800}.recover-form{gap:8px;margin-top:14px;display:grid}.recover-form label{color:#8f796a;font-size:.76rem;font-weight:800}.recover-form input{min-height:44px;font:inherit;letter-spacing:.06em;text-transform:uppercase;border:1px solid #cdbca9;border-radius:10px;padding:0 12px;font-size:1rem}.recovery-message{color:#765355;min-height:1.2em;margin:10px 0 0;font-size:.78rem}.linklike{color:#987d71;background:0 0;border:none;min-height:44px;padding:12px 0 4px;font-size:.72rem;text-decoration:underline}#game{position:relative}.pip-note{text-align:center;color:#987d71;margin:10px 0 0;font-size:.82rem;font-weight:800}.pip-note[hidden]{display:none}body.pip{background:#fbf0d7;margin:0;overflow:hidden}body.pip #game{aspect-ratio:auto;border:0;border-radius:0;width:100vw;height:100vh}.sandbox{flex-wrap:wrap;align-items:center;gap:8px;margin-top:14px;display:flex}.sandbox button{background:#fff0e4;border:1px solid #d6b8a4;border-radius:10px;min-height:44px;padding:0 12px;font-weight:800}.chip{color:#6e5b63;background:0 0;border:1px solid #cdbca9;border-radius:9px;min-height:44px;padding:0 12px;font-size:.78rem;font-weight:800}.chip[aria-pressed=true]{background:#fff8ed;border-color:#a8b794}.chip.wide{text-align:left;width:100%;margin-top:8px;padding:8px 12px}.chip:hover:not(:disabled){background:#fce3d8}.chip.nudge,#recovery-toggle.nudge{background:#fff0e4;border-color:#de8274}.tester-banner{color:#ffe49b;text-align:center;background:#3b2a2a;border-radius:12px;margin:0 0 16px;padding:10px 14px;font-weight:800}.tester-banner[hidden]{display:none}.story{z-index:4;text-align:center;background:#fbf0d7f0;border-radius:20px;align-content:center;justify-items:center;gap:12px;padding:24px;display:grid;position:absolute;inset:0}.story[hidden]{display:none}.story h2{margin:0;font-size:1.4rem}.story p{color:#6d4a3a;max-width:34ch;margin:0;line-height:1.55}.story.passing{color:#fff4e0;background:linear-gradient(#2a2140,#4a3b72)}.story.passing p{color:#f3e6ff}.story.passing .story-stars:before{content:"✦  ·  ✧  ·  ✦";letter-spacing:.4em;font-size:1.6rem;animation:3.2s ease-in-out infinite rise;display:block}@keyframes rise{0%{opacity:0;transform:translateY(18px)}40%{opacity:1}to{opacity:0;transform:translateY(-26px)}}.scene-card{position:relative}.primary{color:#3b2a2a;background:#e8a99b;border:0;border-bottom:4px solid #c96f63;border-radius:12px;min-height:44px;padding:0 22px;font-weight:800}.leaving{color:#4f3b6b;background:#efe6fb;border:1px solid #cbb4d6;border-radius:12px;margin:6px 0 12px;padding:10px 14px;font-size:.9rem;font-weight:800}.leaving[hidden]{display:none}.status-line{color:#8a6f62;min-height:1.3em;margin:-8px 0 8px;font-size:.86rem;font-weight:800}.name-form{gap:8px;margin-top:12px;display:grid}.name-form[hidden]{display:none}.name-form label{color:#8f796a;font-size:.76rem;font-weight:800}.name-row{gap:8px;display:flex}.name-row input{min-height:44px;font:inherit;border:1px solid #cdbca9;border-radius:10px;flex:1;padding:0 12px}.action-grid{grid-template-columns:repeat(2,1fr)}.action-grid button[hidden]{display:none}.hint{color:#987d71;margin:10px 0 0;font-size:.74rem;line-height:1.4}.mood-grid{flex-wrap:wrap;gap:8px;display:flex}.fold{padding:0}.fold summary{cursor:pointer;min-height:44px;padding:16px 20px;font-weight:800}.fold>div{padding:0 20px 16px}.wardrobe-group h3{color:#ad8a75;margin:10px 0 0;font-size:.8rem}.keepsake{background:#fff;border:1px solid #eadcc8;border-radius:12px;margin-top:8px;padding:10px 12px}.keepsake p{margin:4px 0;font-size:.82rem}.needs[hidden],.tester-panel[hidden],.mood-panel[hidden]{display:none}@media (prefers-reduced-motion:reduce){.story.passing .story-stars:before{opacity:1;animation:none}*{scroll-behavior:auto!important}}.mood-grid[hidden],.retry[hidden]{display:none}.name-count{color:#987d71;align-self:center;min-width:3ch;font-size:.72rem;font-weight:800}.name-count.over{color:#b94450}
