:root{color-scheme:dark;font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;color:#eee;background:#000}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input{font:inherit}button{cursor:pointer}button:focus-visible,summary:focus-visible{outline:2px solid #ffff00;outline-offset:5px}[hidden]{display:none!important}
#launcher{min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:38px 24px 24px}.launch-screen{width:min(900px,100%)}.import-panel{background:#1b1b1b;border:3px solid;border-color:#b8b8b8 #454545 #454545 #b8b8b8;padding:32px 40px 35px;text-align:center}.game-brand{display:flex;justify-content:center;align-items:center;gap:18px}.brand-icon{width:70px;height:70px;object-fit:contain}.brand-copy{text-align:left}h1{margin:0;color:#ffff00;font-size:clamp(25px,4vw,38px);line-height:1.2;letter-spacing:.04em;font-weight:900}h1 span{color:#f02716}.expansion{margin:8px 0 0;color:#ddd;font-size:17px;letter-spacing:.25em}.import-title{color:#ffff00;font-size:17px;font-weight:700;margin:30px 0 22px}.drop-zone{border:2px dashed #484848;padding:27px 20px 26px;transition:border-color .15s,background .15s;position:relative}.drop-zone.dragging{border-color:#ffff00;background:#29220b}.resource-illustration{height:109px;display:flex;align-items:center;justify-content:center;gap:21px}.folder-art{width:106px;height:88px;filter:drop-shadow(4px 5px 1px #0005)}.file-art{width:58px;height:73px;transform:rotate(8deg);margin-left:-54px;margin-top:23px;filter:drop-shadow(2px 2px 1px #0006)}.drop-arrow{height:33px;width:96px;margin:10px auto 13px;background:#3d3d3d;clip-path:polygon(15% 0,85% 0,85% 42%,100% 42%,50% 100%,0 42%,15% 42%)}.drop-title{font-size:20px;color:#c6c6c6;font-weight:700;margin:0}.drop-subtitle{font-size:12px;color:#818181;margin:9px 0 24px}.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:15px;max-width:475px;margin:0 auto}.resource-slot{min-width:0}.menu-button{display:flex;align-items:center;justify-content:center;gap:11px;width:100%;height:48px;border:1px solid #f02417;background:#a90000;color:#ffff00;font-weight:750;font-size:18px;padding:0 15px;white-space:nowrap;box-shadow:inset 1px 1px #dd1d13,inset -1px -1px #680000}.menu-button:hover:not(:disabled){background:#ce0a00;border-color:#ff5144}.menu-button:active:not(:disabled){box-shadow:inset 2px 2px #630000;background:#8a0000}.menu-button svg{flex-shrink:0;height:21px;width:23px;fill:none;stroke:currentColor;stroke-width:1.8}.menu-button .play-icon{fill:currentColor;stroke:none;width:16px;height:21px}.launch-button{min-width:0}.menu-button:disabled{background:#292929;color:#747474;border-color:#515151;box-shadow:inset 1px 1px #3e3e3e,inset -1px -1px #111;cursor:not-allowed}.folder-selected .menu-button{color:#ffff00}.folder-name{margin:10px auto 0;font-size:11px;line-height:1.5;color:#b9a987;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.folder-meta{display:none}.selection-note{color:#888;font-size:11px;margin:19px 0 0}.feedback{min-height:19px;font-size:12px;line-height:1.7;color:#e3d08f;margin:18px 0 0;overflow-wrap:anywhere}.feedback.error{color:#ff9984}.progress-area{margin:22px auto 0;max-width:475px}.progress-track{height:10px;background:#0d0d0d;border:1px solid #535353;padding:1px}.progress-fill{height:100%;width:0;background:#e3c400;transition:width .2s}.progress-copy{display:flex;justify-content:space-between;gap:15px;font-size:11px;color:#b4a465;margin-top:8px}.progress-copy span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.error-details{font-size:11px;color:#aaa;margin:12px 0 0}.error-details summary{cursor:pointer}.error-details pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:100px;overflow:auto;background:#111;padding:12px;text-align:left;font:10px/1.7 monospace}.retry{border:1px solid #8d3025;background:#610900;color:#ffdc99;padding:8px 16px;font-size:12px;margin-top:12px}.footer{margin:16px 0 0;display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#777;gap:15px}.environment{display:flex;align-items:center;gap:7px}.dot{height:5px;width:5px;background:#867135}.environment.ready .dot{background:#b7ae45}.environment.error .dot{background:#dd482e}.help{position:relative}.help summary{cursor:pointer;list-style:none;color:#a1a1a1}.help summary::-webkit-details-marker{display:none}.help-copy{position:absolute;bottom:23px;right:0;z-index:2;width:285px;padding:15px 18px;text-align:left;line-height:1.8;background:#202020;border:1px solid #727272;box-shadow:0 4px 22px #000}.help-copy p{margin:0 0 8px}.help-copy p:last-child{margin-bottom:0}.edition{color:#414141;font:10px Arial,sans-serif;letter-spacing:.09em;text-align:center;margin-top:25px}#button-caption,#status{display:none}
#game{position:fixed;inset:0;width:100%;height:100%;height:100dvh;opacity:0;pointer-events:none;z-index:-1;background:#000}canvas{display:block;width:100%;height:100%;outline:none;touch-action:none}body.playing{overflow:hidden;background:#000}body.playing #launcher{display:none}body.playing #game{opacity:1;pointer-events:auto;z-index:0}
@media(max-width:600px){#launcher{padding:24px 14px}.import-panel{padding:25px 18px}.game-brand{gap:12px}.brand-icon{width:51px;height:51px}h1{font-size:27px}.expansion{font-size:14px}.import-title{font-size:14px;line-height:1.7;margin-top:25px}.drop-zone{padding:22px 12px}.drop-title{font-size:17px}.drop-subtitle{font-size:10px}.actions{display:flex;gap:14px;flex-direction:column;align-items:center}.resource-slot,.launch-button{width:min(265px,100%)}.menu-button{font-size:17px}.folder-name{margin-bottom:3px}.selection-note{font-size:10px;line-height:1.7}.footer{font-size:10px}.edition{margin-top:20px}}@media(max-height:740px) and (min-width:601px){#launcher{padding-top:22px}.import-panel{padding-top:23px;padding-bottom:24px}.brand-icon{width:57px;height:57px}h1{font-size:32px}.import-title{margin:20px 0 18px}.resource-illustration{height:84px}.folder-art{width:90px;height:74px}.file-art{width:49px;height:62px}.drop-zone{padding-top:18px;padding-bottom:21px}.drop-arrow{height:23px;margin:8px auto 10px}.drop-subtitle{margin-bottom:20px}.feedback{margin-top:14px}.edition{margin-top:18px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.disclaimer{width:min(900px,100%);margin-top:28px;font-size:11px;line-height:1.8;color:#979797;text-align:left}.disclaimer strong{color:#c4c4c4;font-size:12px}.disclaimer p{margin:4px 0 0}
.disclaimer a{color:#c4c4c4;text-underline-offset:3px}.disclaimer a:hover{color:#ffff00}.disclaimer a:focus-visible{outline:2px solid #ffff00;outline-offset:3px}

#storage-tools{position:fixed;bottom:10px;left:12px;right:12px;z-index:6;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:9px;font-size:11px;color:#aaa;background:#151515e8;padding:7px}#storage-tools button{background:#252525;color:#ddd;border:1px solid #777;padding:5px 9px;font-size:11px}#storage-status.error{color:#ff9984}body:not(.playing) #launcher{padding-bottom:80px}body.playing #storage-tools{display:none}

#storage-panel summary{cursor:pointer;padding:5px;text-align:center}.storage-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;justify-content:center;padding:8px}.folder-meta{display:block;font-size:11px;color:#aaa;margin-top:5px}button:focus-visible,summary:focus-visible{outline:2px solid #ffff00;outline-offset:4px}
