*{box-sizing:border-box;margin:0;padding:0;-webkit-user-select:none;user-select:none}html,body{width:100%;height:100%;height:100dvh;overflow:hidden;overscroll-behavior:none;background:#0d1612;font-family:Microsoft YaHei,PingFang SC,-apple-system,BlinkMacSystemFont,sans-serif;color:#eef5f0;-webkit-tap-highlight-color:transparent}#canvas-wrap{position:fixed;top:0;right:0;bottom:0;left:0;width:100vw;height:100vh;height:100dvh;touch-action:none}.mobile-only{display:none}.glass-panel{background:#0e1813b8;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(176,224,190,.16);box-shadow:0 12px 36px #0000005c;border-radius:14px}#hud-top{position:fixed;top:14px;left:16px;right:16px;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 16px;transition:opacity .25s ease,transform .25s ease}.brand{display:flex;align-items:center;gap:11px}.brand-dot{width:10px;height:10px;border-radius:50%;background:#5ee68a;box-shadow:0 0 12px #5ee68a;flex-shrink:0}.brand h1{font-size:15px;font-weight:600;letter-spacing:.3px;line-height:1.25}.brand p{font-size:11px;color:#d4eadab8;margin-top:2px}.mode-switch{display:flex;background:#00000052;border:1px solid rgba(255,255,255,.1);border-radius:999px;padding:3px;gap:3px}.mode-btn{border:none;background:transparent;color:#e6f2eac2;font-size:12.5px;font-weight:500;padding:6px 14px;border-radius:999px;cursor:pointer;transition:all .2s ease}.mode-btn.active{background:linear-gradient(135deg,#2ca35a,#1d7a46);color:#fff;box-shadow:0 2px 10px #2ca35a73}.top-actions{display:flex;gap:8px}.icon-btn{border:1px solid rgba(190,232,200,.22);background:#ffffff0f;color:#e4f2e8;font-size:12px;padding:6px 12px;border-radius:8px;cursor:pointer;transition:all .18s ease}.icon-btn:hover,.icon-btn.active{background:#4ac6783d;border-color:#5ee68a8c;color:#fff}#btn-show-ui{position:fixed;top:14px;right:16px;z-index:30;padding:8px 14px;color:#e8f5ec;font-size:12px;cursor:pointer}#hud-right{position:fixed;top:74px;right:14px;width:238px;z-index:20;padding:12px;display:flex;flex-direction:column;gap:11px;transition:opacity .25s ease,transform .25s ease}.ctrl-section{display:flex;flex-direction:column;gap:8px}.ctrl-section+.ctrl-section{border-top:1px solid rgba(255,255,255,.08);padding-top:12px}.sec-head{display:flex;justify-content:space-between;align-items:baseline;font-size:12px;color:#dceee2d9}.sec-head strong{color:#7df0a4;font-weight:600;font-size:12.5px}.sub-hint{font-size:10.5px;color:#c8e0d08c}input[type=range]{-webkit-appearance:none;width:100%;height:5px;border-radius:99px;background:linear-gradient(90deg,#3c5475,#f5b963 32%,#72c4ff 52%,#f48c42 78%,#1e2d4a);outline:none;cursor:pointer}#mist-slider{background:linear-gradient(90deg,#ffffff2e,#9beec6cc)}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:15px;height:15px;border-radius:50%;background:#fff;border:2px solid #2aa85c;box-shadow:0 0 8px #00000073}.time-ticks{display:flex;justify-content:space-between;font-size:10px;color:#c8ded08c}.preset-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:2px}.chip{border:1px solid rgba(255,255,255,.12);background:#ffffff0d;color:#e8f5ecdb;font-size:11px;padding:5px 4px;border-radius:7px;cursor:pointer;transition:all .16s ease}.chip:hover{background:#5ee68a2e;border-color:#5ee68a73}.chip.active{background:#2ca35a5c;border-color:#63e693;color:#fff;font-weight:600}.layer-list{display:flex;flex-direction:column;gap:6px}.layer-item{display:flex;align-items:center;gap:8px;font-size:11.5px;color:#e8f4ece0;cursor:pointer}.layer-item input{accent-color:#39ba6c;cursor:pointer}.swatch{width:10px;height:10px;border-radius:3px;flex-shrink:0}.stats-bar{font-size:11px;color:#cae0d2b8;gap:4px}.stats-bar div{display:flex;justify-content:space-between;gap:8px}.stats-bar b{color:#e6f5eb;font-weight:500}#hud-bottom{position:fixed;bottom:16px;left:50%;transform:translate(-50%);z-index:20;padding:7px 10px;display:flex;align-items:center;gap:6px;max-width:calc(100vw - 32px);overflow-x:auto;transition:opacity .25s ease,transform .25s ease}.cam-btn{border:1px solid rgba(255,255,255,.1);background:#ffffff0d;color:#e4f2e8;font-size:12px;padding:7px 12px;border-radius:9px;white-space:nowrap;cursor:pointer;transition:all .18s ease}.cam-btn:hover{background:#5ee68a33;border-color:#5ee68a73}.cam-btn.active{background:linear-gradient(135deg,#2ca35a,#1d7a46);border-color:#6df09f;color:#fff;font-weight:600}.divider{width:1px;height:20px;background:#ffffff2e;margin:0 2px}.tour-btn{background:#eba83433;border-color:#f5c05c73;color:#ffe3a8}.tour-btn.playing{background:#eb783466;border-color:#ffab66;color:#fff}#ref-drawer{position:fixed;bottom:74px;left:16px;width:440px;max-width:calc(100vw - 320px);z-index:25;padding:10px}.ref-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;font-size:11.5px}.ref-tabs{display:flex;gap:4px}.ref-tab{border:1px solid rgba(255,255,255,.14);background:#ffffff0f;color:#dcece0;font-size:10.5px;padding:3px 7px;border-radius:6px;cursor:pointer}.ref-tab.active{background:#2ca35a;border-color:#6df09f;color:#fff}.close-x{border:none;background:#ffffff1a;color:#fff;width:22px;height:22px;border-radius:6px;cursor:pointer;font-size:14px;line-height:1}#ref-img{width:100%;max-height:240px;object-fit:cover;border-radius:8px;display:block}body.ui-hidden #hud-top,body.ui-hidden #hud-right,body.ui-hidden #hud-bottom,body.ui-hidden #ref-drawer{opacity:0;pointer-events:none;transform:translateY(-6px)}.hidden{display:none!important}#loader{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#0b140feb;display:flex;align-items:center;justify-content:center;transition:opacity .45s ease}#loader.done{opacity:0;pointer-events:none}.loader-card{display:flex;flex-direction:column;align-items:center;gap:14px;font-size:13px;color:#cbe6d3}.spinner{width:34px;height:34px;border:3px solid rgba(94,230,138,.22);border-top-color:#5ee68a;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#hud-bottom,#hud-right{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch}#hud-bottom::-webkit-scrollbar,#hud-right::-webkit-scrollbar{display:none}@media(max-width:860px){.mobile-only{display:flex}#hud-top{top:max(8px,env(safe-area-inset-top));left:10px;right:10px;padding:8px 10px;gap:8px;flex-wrap:wrap;border-radius:13px}.brand{gap:8px;flex:1 1 auto;min-width:0}.brand h1{font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand p{display:none}.top-actions{gap:5px;flex-shrink:0}.icon-btn{font-size:11.5px;padding:6px 9px;border-radius:8px;white-space:nowrap}.mode-switch{order:3;width:100%;justify-content:space-between;padding:2px}.mode-btn{flex:1;font-size:12px;padding:6px 8px;text-align:center}#btn-show-ui{top:max(10px,env(safe-area-inset-top));right:10px;padding:8px 12px;font-size:12px}#hud-right{top:auto;left:10px;right:10px;bottom:calc(66px + env(safe-area-inset-bottom));width:auto;max-height:58dvh;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:10px 14px 14px;gap:12px;border-radius:16px;z-index:28;opacity:0;pointer-events:none;transform:translateY(24px);transition:opacity .22s ease,transform .24s cubic-bezier(.22,1,.36,1)}#hud-right.sheet-open{opacity:1;pointer-events:auto;transform:translateY(0)}.mobile-sheet-head{flex-direction:column;gap:8px;padding-bottom:6px;border-bottom:1px solid rgba(255,255,255,.1)}.sheet-handle{width:38px;height:4px;border-radius:99px;background:#d2eedc59;margin:0 auto}.sheet-title-row{display:flex;align-items:center;justify-content:space-between;font-size:12.5px;font-weight:600;color:#9bf3b8}input[type=range]{height:7px}input[type=range]::-webkit-slider-thumb{width:22px;height:22px}.preset-grid{grid-template-columns:repeat(5,1fr);gap:5px}.chip{font-size:11px;padding:7px 2px}.layer-list{gap:9px}.layer-item{font-size:12.5px;gap:9px}.layer-item input{width:17px;height:17px}.stats-bar{font-size:11.5px}#hud-bottom{bottom:max(10px,env(safe-area-inset-bottom));left:10px;right:10px;transform:none;max-width:none;width:auto;padding:6px 8px;gap:6px;border-radius:13px}.cam-btn{font-size:12px;padding:8px 11px;border-radius:9px;flex-shrink:0}#ref-drawer{left:10px;right:10px;bottom:calc(66px + env(safe-area-inset-bottom));width:auto;max-width:none;padding:10px;z-index:29}.ref-head{flex-wrap:wrap;gap:6px}#ref-title{width:100%;font-size:12px;color:#9bf3b8}.ref-tabs{flex:1}.ref-tab{padding:5px 8px;font-size:11px}#ref-img{max-height:36dvh}}@media(max-height:460px)and (max-width:960px){.mobile-only{display:flex}#hud-top{top:6px;left:10px;right:10px;padding:5px 10px;flex-wrap:nowrap}.brand p{display:none}.mode-switch{order:0;width:auto}#hud-right{top:52px;bottom:54px;left:auto;right:10px;width:268px;max-height:none;overflow-y:auto;opacity:0;pointer-events:none;transform:translate(18px)}#hud-right.sheet-open{opacity:1;pointer-events:auto;transform:translate(0)}#hud-bottom{bottom:6px;padding:4px 8px}.cam-btn{padding:5px 9px;font-size:11px}}
