:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:#20242a;font-synthesis:none;text-rendering:optimizelegibility;background:#f3f5f7;font-family:Microsoft YaHei,PingFang SC,Noto Sans SC,system-ui,sans-serif}*{box-sizing:border-box}body{background:linear-gradient(#f8fafc 0,#f1f4f7 46%,#eef1f5 100%);min-width:320px;min-height:100vh;margin:0}button{font:inherit;border:0}button:disabled{cursor:not-allowed;opacity:.52}.app-shell{min-height:100vh;padding:16px}.app-shell.is-busy{cursor:progress}.top-shell{justify-content:space-between;align-items:center;gap:12px;max-width:1320px;min-height:44px;margin:0 auto 12px;display:flex}.top-shell>div,.top-shell nav,.top-shell button{align-items:center;gap:8px;display:inline-flex}.top-shell strong{letter-spacing:0;font-size:17px}.top-shell nav{flex-wrap:wrap;justify-content:flex-end}.top-shell button,.primary-command,.secondary-command,.inline-action,.card-actions button,.research-button,.draw-button,.deck-head button,.build-choice-card{cursor:pointer;border-radius:8px;min-height:36px;transition:transform .14s,border-color .14s,background .14s,box-shadow .14s}.top-shell button:hover:not(:disabled),.primary-command:hover:not(:disabled),.inline-action:hover:not(:disabled),.card-actions button:hover:not(:disabled),.research-button:hover:not(:disabled),.draw-button:hover:not(:disabled),.deck-head button:hover:not(:disabled),.build-choice-card:hover:not(:disabled),.difficulty-card:hover:not(:disabled){transform:translateY(-1px)}.top-shell button{color:#374151;background:#fff;border:1px solid #d7dde5;padding:0 12px}.top-shell button.active{color:#fff;background:#1f2937;border-color:#1f2937}.welcome-screen{place-items:center;min-height:calc(100vh - 84px);display:grid}.welcome-panel{background:#fff;border:1px solid #d8dee8;border-radius:8px;width:min(640px,100%);padding:24px;box-shadow:0 18px 42px #2532431a}.welcome-panel>span{color:#64748b;font-size:13px;font-weight:700}.welcome-panel h1{letter-spacing:0;margin:5px 0 18px;font-size:32px}.difficulty-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.echo-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 14px;display:grid}.echo-summary>div{background:#f7f9fc;border:1px solid #d8dee8;border-radius:8px;flex-direction:column;justify-content:center;gap:4px;min-height:62px;padding:10px;display:flex}.echo-summary span,.echo-card span{color:#64748b;font-size:12px;font-weight:700}.echo-summary strong{font-size:20px}.echo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;display:grid}.echo-card{color:#20242a;text-align:left;cursor:pointer;background:#fbfcfe;border:1px solid #d8dee8;border-radius:8px;flex-direction:column;gap:6px;min-height:118px;padding:10px;display:flex}.echo-card:hover:not(:disabled){border-color:#0f766e;box-shadow:0 10px 24px #0f766e1f}.echo-card strong{font-size:15px}.echo-card small{color:#526072;line-height:1.35}.echo-card em{color:#0f766e;margin-top:auto;font-style:normal;font-weight:700}.echo-card.purchased{background:#f7fbfa;border-color:#bddbd5}.difficulty-card{color:#20242a;cursor:pointer;background:#f9fbfd;border:1px solid #d8dee8;border-radius:8px;flex-direction:column;justify-content:center;gap:8px;min-height:118px;padding:14px;display:flex}.difficulty-card:hover:not(:disabled){border-color:#2563eb;box-shadow:0 10px 24px #2563eb1f}.difficulty-card strong{font-size:20px}.difficulty-card span{color:#526072}.game-layout{grid-template-rows:minmax(0,1fr) auto;grid-template-columns:190px minmax(0,1fr);gap:12px;max-width:1320px;min-height:calc(100vh - 76px);margin:0 auto;display:grid;position:relative}.left-panel,.center-panel,.deck-zone,.debug-console{background:#fffffff5;border:1px solid #d8dee8;border-radius:8px;box-shadow:0 12px 30px #25324314}.left-panel{flex-direction:column;gap:8px;padding:10px;display:flex}.left-panel div{background:#f7f9fc;border:1px solid #e5e9f0;border-radius:8px;flex-direction:column;justify-content:center;gap:5px;min-height:62px;padding:10px;display:flex}.left-panel span,.terms-head span,.mini-card-head span,.deck-head span{color:#64748b;font-size:12px;font-weight:700}.left-panel strong{overflow-wrap:anywhere;min-width:0;font-size:15px;line-height:1.25}.center-panel{grid-template-rows:auto minmax(0,1fr);gap:10px;min-width:0;min-height:0;padding:10px;display:grid}.console-strip{color:#dbeafe;white-space:nowrap;background:#1f2937;border-radius:8px;align-items:center;gap:14px;min-height:42px;padding:8px 10px;font-family:Consolas,Microsoft YaHei,monospace;font-size:13px;display:flex;overflow:hidden}.console-strip span{flex:none}.opportunity-progress{grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:10px;display:grid}.step-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.step-tabs div,.skip-step{color:#374151;background:#f8fafc;border:1px solid #d8dee8;border-radius:8px;min-height:56px}.step-tabs div{text-align:left;flex-direction:column;justify-content:center;gap:3px;padding:8px 10px;display:flex}.step-tabs div.active{color:#fff;background:#1f2937;border-color:#1f2937;box-shadow:0 10px 24px #1f29372e}.step-tabs strong,.step-tabs span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.step-tabs strong{font-size:14px}.step-tabs span{font-size:12px}.skip-step{color:#fff;background:#0f766e;border-color:#0f766e;min-width:180px;padding:0 14px;font-weight:700}.workbench-stage{min-height:0}.draw-zone{background:#f8fafc;border:1px dashed #b8c1cc;border-radius:8px;place-items:center;height:100%;min-height:380px;padding:16px;display:grid}.draw-empty{flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;display:flex}.draw-empty span{color:#667085;text-align:center;width:100%;font-size:13px}.draw-button{color:#fff;min-width:150px;padding:0 16px;font-weight:700}.draw-button.site{background:#0f766e}.draw-button.project{background:#2563eb}.operation-card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.build-stage{align-content:start;gap:10px;min-height:380px;display:grid}.build-progress-line{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.build-progress-line span{color:#475569;background:#f8fafc;border:1px solid #d8dee8;border-radius:8px;place-items:center;min-height:44px;font-size:13px;font-weight:700;display:grid}.build-order-card,.build-ready-box,.event-panel{background:#fff;border:1px solid #d8dee8;border-radius:8px;flex-direction:column;gap:12px;padding:16px;display:flex;box-shadow:0 10px 24px #25324312}.build-order-card.required{background:#fffaf0;border-color:#f2c572}.build-order-card.optional{background:#f7fbfa;border-color:#bddbd5}.build-order-card>span{color:#64748b;font-size:12px;font-weight:700}.build-order-card h2,.build-ready-box h2{letter-spacing:0;margin:0;font-size:22px}.build-ready-box p{color:#526072;margin:0;line-height:1.45}.event-stage{place-items:center;min-height:380px;display:grid}.event-panel{width:min(640px,100%)}.event-panel>span{color:#64748b;font-size:12px;font-weight:700}.event-panel h2{letter-spacing:0;margin:0;font-size:22px}.event-panel p{color:#526072;margin:0;line-height:1.45}.event-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.event-choice-card{color:#20242a;cursor:pointer;background:#f8fafc;border:1px solid #d8dee8;border-radius:8px;min-height:64px;padding:0 12px;font-weight:700}.build-order-actions{flex-wrap:wrap;gap:8px;display:flex}.build-progress-bar{background:#e5e9f0;border-radius:999px;height:10px;position:relative;overflow:hidden}.build-progress-bar span{border-radius:inherit;background:#1f2937;width:0;animation:.9s linear forwards research-fill;position:absolute;inset:0 auto 0 0}.build-choice-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.build-choice-card{color:#20242a;text-align:left;cursor:pointer;background:#fff;border:1px solid #d8dee8;border-radius:8px;flex-direction:column;gap:7px;min-height:148px;padding:10px;display:flex}.build-choice-card strong{font-size:15px}.build-choice-card>span{color:#526072;font-size:12px;line-height:1.35}.build-order-actions .secondary-command{width:auto;min-width:96px;margin-top:0;padding:0 14px}.build-open-command{justify-self:start}.slot-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.drop-slot{background:#fbfcfe;border:1px dashed #b8c1cc;border-radius:8px;min-height:226px;padding:10px}.drop-slot>span{color:#64748b;margin-bottom:7px;font-size:12px;font-weight:700;display:block}.drop-slot>p{color:#8a94a6;text-align:center;place-items:center;min-height:166px;margin:0;display:grid}.drop-slot.filled{border-style:solid}.confirm-box{background:#fff;border:1px solid #d8dee8;border-radius:8px;margin-top:10px;padding:12px}.confirm-box h2{letter-spacing:0;margin:0 0 8px;font-size:18px}.confirm-box ul{columns:2;margin:0 0 10px;padding-left:18px}.confirm-box li{margin-bottom:4px;font-size:13px}.primary-command{color:#fff;background:#1f2937;padding:0 14px;font-weight:700}.secondary-command{color:#1f2937;background:#eef2f7;width:100%;margin-top:10px}.deck-zone{grid-column:1/-1;min-height:188px;padding:10px}.deck-head{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.deck-head>div{align-items:center;gap:6px;display:inline-flex}.deck-head button{color:#1f2937;cursor:pointer;background:#f8fafc;border:1px solid #d8dee8;border-radius:8px;place-items:center;width:32px;height:32px;display:inline-grid}.deck-head h2{margin:0;font-size:15px}.deck-scroll{grid-auto-columns:184px;grid-auto-flow:column;gap:8px;padding-bottom:4px;display:grid;overflow-x:auto}.deck-empty{color:#8a94a6;background:#f8fafc;border:1px dashed #c7d0dc;border-radius:8px;place-items:center;min-height:132px;display:grid}.mini-card{background:#fff;border:1px solid #d8dee8;border-radius:8px;flex-direction:column;gap:7px;width:184px;height:210px;padding:11px;display:flex;box-shadow:0 8px 18px #25324312}.mini-card.compact{height:174px}.mini-card.art-card{gap:8px}.mini-card.art-card h3{align-items:center;min-height:46px;display:flex}.card-art{background:linear-gradient(135deg,#fff9,#fff0 42%),repeating-linear-gradient(45deg,#ffffff42 0 8px,#fff0 8px 16px),#e8eef5;border:1px solid #0f172a1a;border-radius:8px;min-height:118px;position:relative;overflow:hidden}.mini-card.compact .card-art{min-height:92px}.card-art.tone-site{background:linear-gradient(135deg,#ffffffa8,#fff0 42%),repeating-linear-gradient(45deg,#ffffff42 0 8px,#fff0 8px 16px),#cfe5df}.card-art.tone-project{background:linear-gradient(135deg,#ffffffa8,#fff0 42%),repeating-linear-gradient(45deg,#ffffff42 0 8px,#fff0 8px 16px),#d4e0f5}.card-art span{color:#26313f;text-overflow:ellipsis;white-space:nowrap;background:#ffffffc7;border-radius:8px;padding:5px 7px;font-size:11px;font-weight:700;display:block;position:absolute;bottom:8px;left:8px;right:8px;overflow:hidden}.mini-card.tone-site{background:#f7fbfa;border-color:#bddbd5}.mini-card.tone-project{background:#f7faff;border-color:#c6d7f6}.mini-card.tone-warn{background:#fff9ed;border-color:#f2d19b}.mini-card.tone-bad{background:#fff5f5;border-color:#f0b4b4}.mini-card.selected{border-color:#1f2937;box-shadow:inset 0 0 0 1px #1f2937}.mini-card-head{justify-content:space-between;align-items:center;min-height:18px;display:flex}.mini-card-head strong{color:#0f766e;font-size:12px}.mini-card h3{letter-spacing:0;min-height:42px;margin:0;font-size:17px;line-height:1.25;overflow:hidden}.event-card-mark{color:#7c2d12;text-overflow:ellipsis;white-space:nowrap;background:#ffedd5;border-radius:8px;align-self:flex-start;max-width:100%;padding:3px 6px;font-size:11px;font-weight:700;overflow:hidden}.mini-card p{color:#526072;min-height:36px;margin:0;font-size:13px;line-height:1.4;overflow:hidden}.mini-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;display:grid}.metric-dot{background:#ffffffc2;border-radius:8px;flex-direction:column;justify-content:center;gap:3px;min-height:42px;padding:6px;display:flex}.metric-dot small{color:#667085;font-size:11px}.metric-dot strong{overflow-wrap:anywhere;font-size:12px;line-height:1.2}.metric-dot.tone-good strong{color:#047857}.metric-dot.tone-warn strong{color:#b45309}.metric-dot.tone-bad strong{color:#b91c1c}.mini-tags{flex-wrap:wrap;gap:5px;display:flex}.mini-tags span{color:#475569;background:#eef2f7;border-radius:8px;padding:3px 6px;font-size:11px}.inline-action{color:#fff;background:#1f2937;justify-content:center;align-items:center;gap:4px;margin-top:auto;display:inline-flex}.card-actions{flex-wrap:wrap;gap:6px;margin-top:auto;display:flex}.mini-card-controls{margin-top:auto}.card-actions button{color:#1f2937;background:#eef2f7;flex:72px;font-size:12px}.research-stage{grid-template-columns:minmax(240px,300px) minmax(0,1fr);gap:10px;min-height:0;display:grid}.research-terms{background:#fff;border:1px solid #d8dee8;border-radius:8px;flex-direction:column;gap:10px;min-width:0;padding:10px;display:flex}.terms-head h2{letter-spacing:0;margin:4px 0 0;font-size:18px}.terms-list{background:#f7f9fc;border-radius:8px;flex:1;min-height:190px;margin:0;padding:10px;list-style:none;overflow:auto}.terms-list li{grid-template-columns:minmax(72px,auto) minmax(0,1fr);align-items:start;gap:8px;margin-bottom:9px;font-size:14px;line-height:1.35;display:grid}.terms-list li span{color:#64748b;font-weight:700}.terms-list li strong{overflow-wrap:anywhere;min-width:0}.research-button{color:#fff;background:#7c3aed;justify-content:center;align-items:center;gap:7px;font-weight:700;display:inline-flex;position:relative;overflow:hidden}.research-button>svg,.research-button>span:not(.research-progress){z-index:1;position:relative}.research-button.researching{background:#5b21b6}.research-progress{background:#ffffff38;width:0;animation:.9s linear forwards research-fill;position:absolute;inset:0 auto 0 0}@keyframes research-fill{0%{width:0}to{width:100%}}.research-terms p{color:#667085;text-align:center;margin:0;font-size:13px}.trial-line{color:#526072;margin-bottom:10px;font-size:14px;font-weight:700}.day-row{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-top:10px;display:grid}.formal-confirm-box{flex-wrap:wrap;align-items:stretch;gap:12px;display:flex}.formal-confirm-actions{flex-direction:column;justify-content:center;gap:8px;min-width:180px;display:flex}.formal-confirm-actions .secondary-command{margin-top:0}.formal-progress{align-content:center;place-items:center;gap:14px;min-height:380px;display:grid}.progress-ring{aspect-ratio:1;background:radial-gradient(circle at center, #fff 0 58%, transparent 59%), conic-gradient(#0f766e var(--progress), #e5e9f0 0);border-radius:50%;place-items:center;width:220px;animation:.9s linear forwards formal-progress-spin;display:grid;box-shadow:0 16px 38px #25324321}.formal-progress.tone-bad .progress-ring{background:radial-gradient(circle at center, #fff 0 58%, transparent 59%), conic-gradient(#b91c1c var(--progress), #e5e9f0 0)}.progress-ring>div{aspect-ratio:1;text-align:center;border-radius:50%;align-content:center;place-items:center;gap:5px;width:132px;display:grid}.progress-ring strong{font-size:17px;line-height:1.25}.progress-ring span,.formal-progress p{color:#64748b;font-size:13px;font-weight:700}.formal-progress p{margin:0}@keyframes formal-progress-spin{0%{transform:rotate(-5deg)}to{transform:rotate(0)}}.result-panel{background:#fff;border:1px solid #d8dee8;border-radius:8px;flex-direction:column;gap:12px;width:min(920px,100%);margin:auto;padding:18px;display:flex}.cash-flow-panel{flex-direction:column;gap:10px;display:flex}.cash-flow-panel h3{letter-spacing:0;margin:0;font-size:16px}.formula-box{color:#334155;background:#f8fafcd1;border:1px solid #d8dee8;border-radius:8px;gap:6px;padding:10px 12px;font-size:13px;line-height:1.45;display:grid}.curve-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.curve-card{background:#f8fafc;border:1px solid #d8dee8;border-radius:8px;flex-direction:column;gap:8px;min-width:0;padding:12px;display:flex}.curve-card header{justify-content:space-between;align-items:center;gap:10px;display:flex}.curve-card header span{color:#475569;font-size:13px;font-weight:700}.curve-card header strong{color:#1f2937;overflow-wrap:anywhere;text-align:right;font-size:15px}.curve-card svg{aspect-ratio:7/3;width:100%;overflow:visible}.curve-card line{stroke:#cbd5e1;stroke-width:1px}.curve-card polyline{fill:none;stroke:#2563eb;stroke-width:3px;stroke-linecap:round;stroke-linejoin:round}.curve-card circle{fill:#fff;stroke:#2563eb;stroke-width:2px}.curve-card.tone-good polyline,.curve-card.tone-good circle{stroke:#0f766e}.curve-card.tone-warn polyline,.curve-card.tone-warn circle{stroke:#b45309}.curve-labels{color:#64748b;text-align:center;grid-template-columns:repeat(12,minmax(0,1fr));gap:2px;font-size:11px;display:grid}.decision-empty{color:#667085;text-align:center;background:#f8fafc;border:1px dashed #b8c1cc;border-radius:8px;place-items:center;min-height:226px;padding:14px;display:grid}.drawer-mask{z-index:40;background:#0f172a57;justify-content:flex-end;display:flex;position:fixed;inset:0}.notice-toast{z-index:60;color:#0f172a;-webkit-backdrop-filter:blur(12px)saturate(1.2);backdrop-filter:blur(12px)saturate(1.2);text-align:center;background:#f0f9ffc7;border:1px solid #bae6fd;border-radius:8px;width:min(520px,100vw - 28px);padding:11px 14px;font-size:14px;position:fixed;top:70px;left:50%;transform:translate(-50%);box-shadow:0 14px 34px #25324329}.notice-toast.error{color:#991b1b;background:#fef2f2d1;border-color:#fecaca}.detail-drawer{background:#fff;flex-direction:column;gap:12px;width:min(390px,92vw);min-height:100vh;padding:16px;display:flex;box-shadow:-14px 0 36px #2532432e}.detail-drawer header{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.detail-drawer header span{color:#64748b;font-size:12px;font-weight:700}.detail-drawer h2{letter-spacing:0;margin:4px 0 0;font-size:24px}.detail-drawer header button{color:#1f2937;cursor:pointer;background:#eef2f7;border-radius:8px;place-items:center;width:34px;height:34px;display:inline-grid}.detail-drawer>p{color:#526072;margin:0;line-height:1.45}.detail-terms{min-height:0}.result-panel h2{letter-spacing:0;margin:0;font-size:26px}.result-description{color:#526072;margin:-4px 0 2px;line-height:1.45}.debug-console{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:1320px;margin:0 auto;padding:10px;display:grid}.debug-section{background:#fff;border:1px solid #d8dee8;border-radius:8px;min-width:0}.debug-section h2{border-bottom:1px solid #e5e9f0;margin:0;padding:9px 10px;font-size:14px}.debug-section pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:430px;margin:0;padding:10px;font-size:12px;line-height:1.45;overflow:auto}@media (width<=1120px){.game-layout{grid-template-columns:160px minmax(0,1fr)}.day-row,.operation-card-grid,.build-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=760px){.app-shell{padding:10px}.top-shell{flex-direction:column;align-items:flex-start}.game-layout,.difficulty-grid,.echo-grid,.echo-summary,.slot-row,.research-stage,.day-row,.operation-card-grid,.curve-grid,.build-choice-grid,.event-choice-grid,.debug-console{grid-template-columns:1fr}.game-layout{grid-template-rows:auto}.opportunity-progress{grid-template-columns:1fr}.left-panel{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.confirm-box ul{columns:1}}@media (width<=520px){.left-panel,.mini-metrics{grid-template-columns:1fr}.deck-scroll{grid-auto-columns:168px}.mini-card{width:168px}}
