*{box-sizing:border-box}body{margin:0;background:#dedbd5;color:#34362f;font-family:Arial,"Microsoft YaHei",sans-serif;display:grid;place-items:center;min-height:100dvh}button,input{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}button:focus-visible,input:focus-visible{outline:2px solid #85896f;outline-offset:5px}button:disabled,input:disabled{opacity:.35;cursor:default}[hidden]{display:none!important}.phone{width:min(100vw,56.25dvh);height:min(177.7778vw,100dvh);position:relative;overflow:hidden;background:#aaa8a1;isolation:isolate}.stage{position:absolute;inset:0}canvas{display:block;width:100%;height:100%}.topbar{position:absolute;left:24px;right:20px;top:max(22px,env(safe-area-inset-top));display:flex;justify-content:space-between;align-items:center;color:#f3f0e7;text-shadow:0 1px 8px #3333}.brand{font-family:serif;font-size:22px;letter-spacing:5px}.brand span{display:block;font-family:Arial,sans-serif;font-size:7px;letter-spacing:2px;margin-top:5px;color:#e6e2d8}.actions{display:flex;gap:6px}.actions button{width:34px;height:34px;border-radius:50%;background:#f5f0e615;backdrop-filter:blur(6px);display:grid;place-items:center;color:#f1eee6}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round}.caption{position:absolute;left:26px;top:88px;pointer-events:none;color:#eeebe2;text-shadow:0 1px 10px #3333}.caption>span{font-size:8px;letter-spacing:2.5px;opacity:.65}.caption h1{font-family:serif;font-size:23px;font-weight:400;letter-spacing:4px;margin:10px 0}.caption p{font-size:9px;letter-spacing:2px;opacity:.75;margin:8px 0}.control-panel{position:absolute;bottom:18px;left:14px;right:14px;padding:9px 18px 12px;border-radius:23px;background:linear-gradient(145deg,#faf9f0ec,#f0eee4e8);backdrop-filter:blur(24px);border:1px solid #fff6;box-shadow:0 10px 32px #25251a10;color:#45483d}.handle{height:3px;width:25px;border-radius:3px;background:#c3c4b780;margin:0 auto 9px}.scenes{display:flex;justify-content:space-around;gap:8px;padding-bottom:12px;border-bottom:1px solid #c6c6b633}.scenes button{display:flex;align-items:center;justify-content:center;gap:6px;flex:1;padding:10px 3px;border-radius:11px;font-size:10px;color:#888c7d;transition:background .2s,color .2s}.scenes svg{width:18px;height:18px}.scenes button[aria-pressed=true]{color:#4f5943;background:#dfe3d4aa}.tab-row{display:flex;justify-content:space-between;align-items:center;padding:12px 0 7px}.tab-row [role=tablist]{display:flex;gap:20px}.tab-row [role=tab]{padding:4px 0;font-size:11px;letter-spacing:1px;color:#a0a295}.tab-row [aria-selected=true]{color:#4d5643}.tab-row [aria-selected=true]:after{content:"";display:block;width:12px;height:2px;border-radius:2px;background:#858d70;margin:5px auto 0}#reset{font-size:9px;color:#969b88}.slider-row{display:grid;grid-template-columns:30px 1fr 33px;gap:12px;align-items:center;min-height:37px}.slider-row label{font-size:10px;color:#747969}.slider-row output{text-align:right;font-size:9px;color:#8b907f;font-variant-numeric:tabular-nums}input[type=range]{appearance:none;height:3px;border-radius:3px;width:100%;margin:0;background:linear-gradient(to right,#919b7d var(--fill,25%),#d6d8cb var(--fill,25%));cursor:pointer}input[type=range]::-webkit-slider-thumb{appearance:none;width:13px;height:13px;border-radius:50%;background:#fafbf4;border:2px solid #909b7a;box-shadow:0 1px 4px #606a4330}input[type=range]::-moz-range-thumb{width:9px;height:9px;border-radius:50%;background:#fafbf4;border:2px solid #909b7a}.footnote{font-size:8px;letter-spacing:1px;text-align:center;color:#a1a58f;margin:9px 0 0;min-height:10px}#loading{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);font-size:11px;letter-spacing:2px;color:#f2eee4}#show{position:absolute;bottom:25px;left:50%;transform:translateX(-50%);padding:12px 20px;border-radius:24px;background:#f5f2e8cc;backdrop-filter:blur(12px);font-size:11px;letter-spacing:2px}#notice{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);font-size:11px;border-radius:20px;background:#fff9;padding:9px 18px;opacity:0;pointer-events:none;transition:opacity .2s}#notice.visible{opacity:1}@media(min-width:600px){.phone{border-radius:22px;box-shadow:0 16px 65px #34342b1c;width:min(480px,54dvh);height:min(853px,96dvh)}}@media(max-height:650px){.control-panel{bottom:8px;padding-top:7px;padding-bottom:8px}.scenes{padding-bottom:6px}.scenes button{gap:3px;padding:6px 1px;font-size:9px}.scenes svg{width:15px;height:15px}.tab-row{padding:6px 0 3px}.slider-row{min-height:28px}.caption{top:84px}.footnote{margin-top:4px}}

#show{left:auto;right:18px;transform:none;bottom:20px;padding:10px 16px;font-size:10px;letter-spacing:1px;background:#f5f2e8b3}#closePanel{display:flex;align-items:center;gap:6px;margin:0 0 3px auto;font-size:9px;color:#7b806d;padding:3px 0 6px}.control-panel{left:20px;right:20px;padding:9px 16px 10px}.control-panel .footnote{display:none}.control-panel .scenes{padding-bottom:7px}.control-panel .scenes button{padding:7px 2px}.control-panel .tab-row{padding-top:8px}.control-panel .slider-row{min-height:33px}


.topbar{justify-content:flex-end}.control-panel{z-index:3}#show{z-index:2;left:0;right:0;bottom:0;width:100%;height:56px;padding:0;background:transparent;border-radius:0;backdrop-filter:none;transform:none;letter-spacing:0}#show:focus-visible{outline:1px solid #fff8;outline-offset:-8px}

.mode-switch{display:flex;gap:4px;background:#dddfd333;border-radius:9px;padding:3px;margin:2px 0 5px}.mode-switch button{flex:1;font-size:10px;padding:6px;border-radius:7px;color:#929884}.mode-switch [aria-pressed=true]{background:#dfe3d4aa;color:#4f5943}.sound-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:38px}#soundToggle{font-size:10px;padding:7px 9px;background:#dfe3d4aa;border-radius:8px;white-space:nowrap}#soundProfile{font-size:8px;color:#929884}.night .control-panel{background:linear-gradient(145deg,#202937ee,#1b2430eb);border-color:#9bb2d522;color:#dce3ee}.night .scenes button,.night .slider-row label,.night .tab-row [role=tab]{color:#a0adc0}.night .scenes button[aria-pressed=true],.night .mode-switch [aria-pressed=true],.night #soundToggle{background:#829bbb22;color:#dce5f2}.night .tab-row [aria-selected=true]{color:#e0e7f2}.night .mode-switch{background:#809bbb0c}.night .mode-switch button{color:#a0adc0}.night #closePanel,.night #reset,.night #soundProfile,.night .slider-row output{color:#9daec5}.night .slider-row input{background:linear-gradient(to right,#91a5c1 var(--fill,25%),#3d4a5e var(--fill,25%))}.night .slider-row input::-webkit-slider-thumb{border-color:#8ea5c3;background:#cdd8e9}.night .tab-row [aria-selected=true]:after{background:#91a5c1}
body{transition:background .6s}body.night{background:#171c23}
.scenes{gap:4px}.scenes button{gap:4px}.scenes svg{width:16px;height:16px}@media(max-width:360px){.scenes button{flex-direction:column;gap:3px;font-size:9px}}

/* Subtle save control for an uninterrupted light-and-shadow view. */
.actions #save{background:rgba(245,240,230,.045);color:rgba(243,240,231,.32);backdrop-filter:none;-webkit-backdrop-filter:none;transition:color .2s,background .2s}.actions #save svg{width:16px;height:16px;stroke-width:1}.actions #save:hover,.actions #save:focus{background:rgba(245,240,230,.12);color:rgba(243,240,231,.72)}
