:root{font-family:"Noto Sans TC",system-ui,sans-serif;color:#344738;background:#edf0e9;font-synthesis:none;--ink:#344738;--muted:#778474;--line:#b9c5b4;--teal:#087d91;--paper:#f5f6ef;--orange:#ae643c}*{box-sizing:border-box}body{margin:0}button,select{font:inherit;color:inherit}button{cursor:pointer;background:#f5f6efea;border:1px solid #b8c4b2;border-radius:5px;padding:8px 11px;font-size:12px;line-height:1.3;transition:background .15s}button:hover{background:#e2e9dd}button:focus-visible,select:focus-visible{outline:2px solid var(--teal);outline-offset:3px}button:disabled{opacity:.42;cursor:default}.primary{color:#f8fcf3;background:var(--teal);border-color:var(--teal)}.primary:hover{background:#086b7c}.secondary{border-color:#97a992;color:#53674e}#arena{height:100dvh;min-height:500px;overflow:hidden;position:relative}#game{position:absolute;inset:0;width:100%;height:100%;display:block;outline:none;touch-action:none}.masthead{position:absolute;left:32px;top:27px;pointer-events:none}.eyebrow{font:10px ui-monospace,monospace;letter-spacing:2px;color:#61735e}.eyebrow span{margin-left:14px;letter-spacing:1px;color:#8e9a87}h1{font-size:22px;letter-spacing:2px;font-weight:500;margin:10px 0 5px}.masthead p{font-size:11px;color:var(--muted);letter-spacing:1px;margin:0}.toolbar{position:absolute;right:24px;top:27px;display:flex;gap:5px;max-width:60%;flex-wrap:wrap;justify-content:flex-end}.toolbar button{font-size:11px;padding:8px 10px}.small-label{font-size:10px;letter-spacing:1.3px;color:#7a8673}.order{position:absolute;left:32px;top:151px;width:222px;pointer-events:none}.order .small-label{display:flex;justify-content:space-between}.order h2{font-size:17px;font-weight:500;margin:12px 0 7px}.order p{font-size:11px;color:#75816e;line-height:1.8;margin:0 0 15px}.order-progress{height:3px;background:#d2dbcc}.order-progress span{display:block;height:100%;background:var(--teal);transition:width .3s}.order-meta{display:flex;justify-content:space-between;font-size:10px;color:#687860;margin-top:8px}.panel{position:absolute;right:24px;top:90px;width:280px;max-height:calc(100% - 220px);overflow:auto;background:#f5f6efed;border:1px solid #bdc8b6;border-radius:9px;padding:18px;box-shadow:0 8px 28px #34473808;scrollbar-width:thin}.panel[hidden]{display:none}.panel-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}.icon{background:none;border:0;font-size:23px;padding:0 0 3px 12px;color:#83907b}.panel h2{font-size:19px;font-weight:500;margin:8px 0}.panel p{font-size:11px;line-height:1.8;color:#7b8574}.panel h3{font-size:11px;letter-spacing:1px;font-weight:500;margin:21px 0 9px;color:#718068}.panel .row{display:flex;justify-content:space-between;align-items:center;margin:9px 0;font-size:12px;gap:8px}.panel .row small{font-size:10px;color:#85907e}.panel .row strong{font-size:12px;font-weight:500}.panel .actions{display:grid;gap:6px;margin:15px 0 4px}.panel .actions button{text-align:left}.panel .actions .primary{text-align:center}.panel .chip{font-size:10px;display:inline-block;border:1px solid #bccab6;border-radius:3px;padding:3px 6px;color:#64765e}.panel .empty{font-size:11px;color:#9aa28f}.panel .section{padding:12px 0;border-bottom:1px solid #dce2d4}.panel .section:last-child{border:0}.panel select{font-size:11px;border:1px solid #bcc7b4;background:#edf0e9;padding:5px;border-radius:3px;max-width:125px}.panel .segmented{display:flex;gap:4px;margin-top:12px}.panel .segmented button{flex:1}.panel .segmented button[aria-pressed=true]{background:#d8e8e1;border-color:#087d91;color:#087d91}.panel .micro{font-size:10px;color:#89937f}.panel progress{width:100%;height:5px;accent-color:var(--teal)}.panel a,dialog a{color:var(--teal)}.map-tools{position:absolute;left:32px;bottom:125px;display:flex;align-items:center;gap:5px}.map-tools span{font:10px ui-monospace,monospace;min-width:34px;text-align:center;color:#73836c}.map-tools button{font-size:11px;background:#f2f5edc9}.statusbar{position:absolute;left:24px;right:24px;bottom:22px;min-height:69px;background:#f5f6efed;border:1px solid #bac7b3;border-radius:8px;display:flex;align-items:center;gap:30px;padding:13px 21px}.resource{display:flex;flex-direction:column;gap:7px;min-width:58px}.resource strong{font-size:17px;font-weight:500;letter-spacing:.5px}.resource.inventory{min-width:230px;max-width:40%;flex:1}.resource.inventory strong{font-size:12px}.context-button{min-width:180px;text-align:center;font-size:12px;padding:12px 16px}.time{font:11px ui-monospace,monospace;margin-left:auto;display:flex;flex-direction:column;gap:8px;color:#71816a;text-align:right}.time span:last-child{font:9px system-ui}.keyhint{position:absolute;bottom:101px;left:32px;font-size:9px;color:#8c9784;pointer-events:none;letter-spacing:.3px}.keyhint span{margin:0 8px;color:#b9c4b1}#notice{position:absolute;bottom:103px;right:32px;max-width:42%;font-size:11px;color:#63795c;text-align:right;pointer-events:none}#pause-badge{position:absolute;left:50%;top:108px;transform:translateX(-50%);border:1px solid #bac7b3;border-radius:15px;font-size:10px;padding:7px 16px;background:#f5f6efce;pointer-events:none;color:#6c7f65}#placement-bar{position:absolute;left:50%;bottom:165px;transform:translateX(-50%);background:#f5f6eff5;border:1px solid #9eb292;border-radius:7px;padding:12px;display:flex;gap:8px;align-items:center;max-width:90%;box-shadow:0 4px 18px #34473810}#placement-bar[hidden]{display:none}#placement-message{font-size:11px;max-width:250px}dialog{width:min(650px,calc(100vw - 32px));max-height:85dvh;border:1px solid #b4c2ac;border-radius:10px;background:#f5f6ef;color:var(--ink);padding:26px;box-shadow:0 20px 90px #34473830}dialog::backdrop{background:#68775c55;backdrop-filter:blur(3px)}.modal-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #d6dfce;padding-bottom:12px;margin-bottom:16px}.modal-heading h2{font-size:19px;font-weight:500;margin:0}.modal-heading button{border:0;background:none;font-size:22px}dialog h3{font-size:14px;font-weight:500;margin-top:24px}dialog p,dialog li{font-size:12px;line-height:1.95;color:#63715e}dialog li{margin:7px 0}dialog .tag{font-size:10px;color:var(--teal);letter-spacing:1px;margin-bottom:5px}dialog .button-row{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}dialog kbd{font:11px ui-monospace,monospace;padding:2px 5px;border:1px solid #c5d0bc;border-radius:3px}.materials-row{display:flex;align-items:center;gap:6px}.material-dot{width:7px;height:7px;border:1px solid #fff;display:inline-block;transform:rotate(45deg)}#display-status{position:absolute;top:70px;left:50%;transform:translateX(-50%);background:#f5f6ef;padding:10px;font-size:11px;z-index:3}.success{color:#087d91}.warn{color:#ae643c}noscript{position:absolute;top:45%;left:30%}
@media(min-width:1550px){.order{width:250px}.panel{width:300px}.masthead{left:40px;top:35px}}
@media(max-width:1050px){.masthead{left:20px;top:20px}.masthead h1{font-size:18px}.toolbar{top:20px;right:16px;max-width:55%}.toolbar button{font-size:10px;padding:6px}.order{left:20px;top:136px;width:180px}.panel{right:16px;top:105px;width:255px}.statusbar{left:16px;right:16px;bottom:15px;gap:18px;padding:12px}.resource.inventory{min-width:140px}.context-button{min-width:145px}.keyhint{display:none}.map-tools{left:20px;bottom:123px}#notice{bottom:97px;max-width:65%}}
@media(max-width:680px){#arena{min-height:520px}.masthead{top:16px;left:16px}.masthead h1{font-size:16px;letter-spacing:.8px;margin:7px 0}.eyebrow{font-size:8px;letter-spacing:1.4px}.eyebrow span{display:none}.masthead p{font-size:9px}.toolbar{top:15px;right:12px;max-width:42%;gap:3px}.toolbar button{font-size:9px;padding:5px 6px}.toolbar #fullscreen,.toolbar #sound{display:none}.order{left:16px;top:111px;width:160px}.order h2{font-size:14px;margin-top:8px}.order p{font-size:10px;margin-bottom:8px}.order .small-label{font-size:8px}.order-meta{font-size:8px}.panel{top:auto;right:12px;left:12px;bottom:151px;width:auto;max-height:35dvh;padding:13px 16px;z-index:2}.panel-top{margin-bottom:0}.panel h2{font-size:16px;margin:2px 0}.panel h3{margin:12px 0 6px}.panel .actions{grid-template-columns:1fr 1fr;margin:9px 0}.panel .actions button{font-size:10px}.panel p{margin:6px 0}.panel .row{font-size:11px}.statusbar{left:10px;right:10px;bottom:10px;padding:10px 12px;gap:11px;min-height:109px;align-items:flex-start;flex-wrap:wrap}.resource{min-width:45px;gap:5px}.resource strong{font-size:14px}.resource .small-label{font-size:8px}.resource.inventory{min-width:80px;max-width:none}.resource.inventory strong{font-size:10px}.time{font-size:9px;gap:6px}.context-button{min-width:100%;padding:9px;font-size:11px;order:5}.map-tools{left:14px;bottom:130px;gap:3px}.map-tools button{font-size:9px;padding:5px 7px}.map-tools span{font-size:8px;min-width:28px}#notice{bottom:131px;right:14px;font-size:9px;max-width:45%;padding:3px;background:#edf0e9c9}#pause-badge{top:217px;font-size:9px;padding:5px 12px}#placement-bar{bottom:52%;flex-wrap:wrap;min-width:280px;justify-content:center;z-index:3}#placement-message{width:100%;text-align:center}dialog{padding:19px}.modal-heading h2{font-size:17px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Fit embedded and landscape windows as well as full-height phones. */
html,body{height:100%;overflow:hidden}#arena{min-height:320px}
@media(max-width:680px) and (max-height:600px){.masthead{top:12px}.masthead h1{font-size:14px}.masthead p{display:none}.order{top:85px;width:145px}.order p{display:none}.order h2{font-size:12px;margin:6px 0}.panel{max-height:30dvh;bottom:134px}.statusbar{min-height:94px;bottom:8px;padding:8px 10px;gap:8px}.map-tools{bottom:112px}#notice{bottom:113px;font-size:8px}#pause-badge{top:65px}.toolbar{top:10px}.panel .actions{grid-template-columns:1fr}.panel h2{font-size:14px}.context-button{padding:6px}}
