@font-face{font-family:ShopPixel;src:url('./assets/fonts/pixel-zh.woff2') format('woff2');font-display:swap}
:root{--ink:#503b2c;--muted:#806b51;--wood:#795139;--wood-dark:#493427;--paper:#fff1cf;--cream:#f6e2b6;--tan:#dfbf88;--green:#617747;--green-dark:#405936;--gold:#d39735;--red:#ad6650;--line:#b38c58;--font:ShopPixel,'Microsoft YaHei',sans-serif}
*{box-sizing:border-box}html{height:100%;background:#3e3a35}body{margin:0;min-height:100%;padding:clamp(12px,2.1vw,32px);display:grid;place-items:center;color:var(--ink);font-family:var(--font);font-size:14px;background:#ded0ac}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.46}button:focus-visible,a:focus-visible{outline:3px solid #356f76;outline-offset:3px}button:active:not(:disabled){transform:translateY(2px)}a{color:inherit;text-decoration:none}svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:square;stroke-linejoin:miter;flex-shrink:0}button{transition:background .12s,transform .12s}::selection{background:#aec893;color:#283c22}[hidden]{display:none!important}canvas{image-rendering:pixelated;image-rendering:crisp-edges}h1,h2,p{margin:0}h2{font-size:16px;font-weight:400}b{font-weight:400}.game-shell{width:min(1536px,100%);background:var(--paper);border:4px solid var(--wood-dark);box-shadow:0 0 0 3px var(--tan),0 0 0 6px var(--wood),0 18px 45px #49342736;position:relative}.game-shell:before,.game-shell:after{content:'';position:absolute;width:6px;height:6px;background:#c9a26c;border:1px solid #513b28;top:12px;z-index:2}.game-shell:before{left:12px}.game-shell:after{right:12px}.topbar{height:105px;border-bottom:4px solid var(--wood);display:flex;align-items:center;padding:14px 25px;gap:28px;background:#f2d9a5;box-shadow:inset 0 3px #ffeccc,inset 0 -3px #d5b079}.brand{display:flex;align-items:center;gap:12px;min-width:240px}.brand h1{font-size:32px;letter-spacing:4px;line-height:1.2;text-shadow:2px 2px #fff1d2}.brand p{font-size:12px;color:var(--wood);margin-top:7px}.brand-lamp{width:36px;height:40px;background:#eac173;clip-path:polygon(35% 0,65% 0,65% 18%,85% 18%,85% 35%,100% 35%,100% 88%,85% 88%,85% 100%,15% 100%,15% 88%,0 88%,0 35%,15% 35%,15% 18%,35% 18%);box-shadow:inset 0 0 0 6px #9c693c;position:relative}.brand-lamp:after{content:'';position:absolute;left:12px;top:15px;width:12px;height:18px;background:#fff5c8}.shift-info{display:flex;align-items:center;gap:12px;flex:1}.shift-info>div{display:flex;flex-direction:column;gap:7px;white-space:nowrap}.shift-info b{font-size:16px}.shift-info>div>span{font-size:12px;color:var(--muted)}.moon-icon{width:26px;height:26px;border-radius:50%;background:#ddad56;position:relative;display:inline-block;flex-shrink:0}.moon-icon:after{content:'';position:absolute;left:10px;top:-4px;width:23px;height:23px;border-radius:50%;background:#f2d9a5}.open-sign{font-size:12px;background:var(--green);color:#fff0c8;transform:rotate(-4deg);padding:5px 8px;border:2px solid var(--green-dark);margin-left:5px;letter-spacing:1px}.resources{display:flex;gap:25px;padding-right:5px}.resource{display:flex;align-items:center;gap:10px;min-width:105px}.resource>div{display:flex;flex-direction:column;gap:7px}.resource small{font-size:12px;color:var(--muted)}.resource b{font-size:22px;font-variant-numeric:tabular-nums}.coin-icon{display:block;width:28px;height:28px;border:4px solid #a7762f;background:#f5ce66;outline:2px solid #f9e2a2;box-shadow:inset 3px 3px #ffe99d}.coin-icon:after{content:'';display:block;width:4px;height:12px;background:#bc8830;margin:4px auto}.energy-icon{display:block;width:23px;height:31px;background:#7a9754;clip-path:polygon(45% 0,100% 0,65% 39%,100% 39%,15% 100%,37% 54%,0 54%)}.header-actions{display:flex;gap:8px}.icon-btn{width:36px;height:36px;border:2px solid #b18a54;background:#f9e5bd;display:grid;place-items:center;box-shadow:inset 0 2px #fff1d4}.icon-btn:hover{background:#ffefca}.game-content{display:grid;grid-template-columns:minmax(0,1.36fr) minmax(0,1.02fr) minmax(210px,.68fr);gap:22px;padding:22px 24px 20px;align-items:start}.section-line{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px;margin-bottom:12px}.quiet{font-size:11px;color:var(--muted)}.scene-frame{position:relative;border:3px solid var(--wood-dark);box-shadow:0 0 0 2px #bc935f;background:#423b50;overflow:hidden}.scene-frame>canvas{width:100%;display:block;aspect-ratio:16/9;object-fit:cover}.scene-plaque{position:absolute;top:9%;left:50%;transform:translateX(-50%);background:#795136;color:#fff0ca;border:2px solid #bf9357;padding:5px 13px;white-space:nowrap;font-size:17px;text-shadow:2px 2px #493427}.plaque-small{font-size:10px;padding-left:10px;color:#dfc392}.tiny-lamp{display:inline-block;width:5px;height:7px;background:#edc56e;margin-right:9px;box-shadow:0 0 7px #f5ce73}.scene-level{position:absolute;left:10px;bottom:10px;background:#30303ddd;color:#efddb9;padding:6px 8px;font-size:11px}.shop-status{display:flex;align-items:center;gap:7px;min-height:41px;font-size:11px;color:var(--muted);border-bottom:1px dashed #c5a477;line-height:1.4}.status-dot{width:6px;height:6px;background:#82905b;flex-shrink:0}.income{margin-left:auto;color:#587146;white-space:nowrap}.staff-heading{margin-top:19px;margin-bottom:10px}.text-btn{border:0;background:none;padding:3px 0;font-size:12px;color:var(--green-dark)}.text-btn:hover{color:#b47e32}.text-btn span{color:var(--muted);font-size:10px}.staff-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.staff-card{background:#f1ddb4;border:2px solid #c8a374;min-height:105px;text-align:center;position:relative;padding:7px 4px;display:flex;flex-direction:column;align-items:center;gap:5px}.staff-card canvas{width:48px;height:48px;display:block}.staff-card b{font-size:12px}.staff-card small{font-size:10px;color:var(--muted)}.staff-card.empty{background:#f5e7c9;border-style:dashed;justify-content:center;color:var(--muted);gap:8px;cursor:pointer}.staff-card.empty svg{width:24px;height:24px;opacity:.65}.staff-star{position:absolute;right:6px;top:6px;font-size:10px;color:#9c702f}.staff-merge{position:absolute;bottom:4px;right:4px;width:20px;height:20px;border:1px solid var(--green-dark);background:var(--green);color:var(--paper);font-size:14px}.day-goal{display:flex;align-items:center;gap:10px;margin-top:17px;background:#ecddb8;padding:12px;border-top:2px solid #bfa477;border-bottom:2px solid #bfa477}.goal-icon{display:grid;place-items:center;color:#9b783b;width:26px}.day-goal>div:nth-child(2){flex:1}.day-goal b{font-size:12px}.day-goal p{font-size:10px;margin:7px 0;color:var(--muted);line-height:1.5}.goal-track{height:5px;background:#d3bc91;max-width:200px}.goal-track i{height:100%;display:block;background:#82915b;width:0;transition:width .3s}.small-btn{border:2px solid #ac8755;background:#f8e9c5;padding:7px 8px;font-size:11px;white-space:nowrap}.board-frame{padding:8px;background:#bd9867;border:3px solid var(--wood);box-shadow:inset 0 0 0 2px #e4c58d,0 3px #d8bc88}.board{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;touch-action:none;user-select:none}.cell{border:0;outline:2px solid #cba874;outline-offset:-2px;background:#f2dbae;aspect-ratio:1;position:relative;padding:0;display:flex;align-items:center;justify-content:center;box-shadow:inset 2px 2px #fae7c5,inset -2px -2px #e2c38f}.cell:nth-child(even){background:#eed3a4}.cell:empty:after{content:'';position:absolute;inset:36%;border:1px solid #d8b98a}.cell:hover{background:#ffe8ba}.cell.selected{outline:3px solid #70834c;outline-offset:-3px;background:#fff0c3}.cell.merge-target{outline:3px solid #e3b04c;outline-offset:-3px}.cell canvas{width:76%;height:76%;pointer-events:none;transition:transform .15s}.cell:hover canvas{transform:translateY(-3px)}.cell .item-level{font-size:9px;position:absolute;right:5px;bottom:4px;color:#8c744f;pointer-events:none}.cell .order-mark{position:absolute;width:7px;height:7px;right:6px;top:6px;background:#7d9653;box-shadow:1px 1px #4d6534}.cell.spawn canvas{animation:pop .28s ease-out}.merge-hint{font-size:11px;line-height:1.7;display:flex;align-items:center;gap:8px;justify-content:center;margin:14px 0;color:var(--muted)}.hint-squares{width:15px;height:10px;border:2px solid #bc9861;display:inline-block;position:relative}.hint-squares:after{content:'';width:6px;height:6px;border:2px solid #bc9861;position:absolute;top:-6px;left:-7px;background:var(--paper)}.producers{display:grid;grid-template-columns:1fr 1fr;gap:9px}.producer{border:2px solid #a67b4e;box-shadow:inset 0 2px #ffe8c1,0 3px #bd9766;background:#edca91;padding:9px 6px;display:flex;align-items:center;gap:6px;text-align:left;min-height:71px}.producer:hover{background:#f7dca7}.producer.drink{background:#d9dfbb;border-color:#93a079;box-shadow:inset 0 2px #f0f2d7,0 3px #a6b08b}.producer canvas{width:36px;height:36px}.producer b{font-size:11px;display:block;white-space:nowrap}.producer div>span{display:block;font-size:9px;color:#806b51;margin-top:8px;white-space:nowrap}.producer em{font-style:normal;color:#587146;display:block;margin-top:4px}.produce-plus{font-size:18px;margin-left:auto}.workbench-tools{display:flex;align-items:center;justify-content:space-between;margin-top:17px;gap:8px}.workbench-tools .text-btn{font-size:10px}.reward-link{display:flex;align-items:center;gap:5px}.reward-link svg{width:16px;height:16px}.order-stamp{color:#8b6245;border:1px solid #b78a62;font-size:10px;padding:3px 5px;transform:rotate(3deg)}.orders{display:flex;flex-direction:column;gap:13px}.order{position:relative;background:#fae8be;border:2px solid #c1a072;box-shadow:0 3px #e0c395;padding:11px 11px 10px}.order.ready{border-color:#7c8e58}.order-head{display:flex;align-items:center;gap:8px}.customer-portrait{width:34px;height:34px;background:#e2cea0;border:1px solid #c2a373;image-rendering:pixelated}.order-customer{font-size:12px;flex:1}.order-customer small{display:block;font-size:9px;color:var(--muted);margin-top:6px}.order-refresh{border:0;background:transparent;color:#967e58;padding:2px;display:grid;place-items:center}.order-refresh svg{width:15px;height:15px}.order-goods{display:flex;gap:8px;align-items:center;margin:10px 0;min-height:45px}.order-good{display:flex;align-items:center;gap:5px}.order-good canvas{width:36px;height:36px}.order-good span{font-size:11px;color:#967d56}.order-good.satisfied span{color:var(--green-dark)}.order-bottom{display:flex;align-items:center;justify-content:space-between;gap:5px}.order-reward{font-size:12px;color:#946726;display:flex;align-items:center;gap:6px}.order-reward .coin-icon{width:14px;height:14px;border-width:2px;outline-width:1px;box-shadow:none}.order-reward .coin-icon:after{width:2px;height:6px;margin:2px auto}.deliver-btn{background:#e9d2a4;border:2px solid #bd9c6e;padding:6px 12px;font-size:11px}.order.ready .deliver-btn{background:var(--green);color:#fff2ce;border-color:var(--green-dark);box-shadow:inset 0 2px #859966}.order.ready .deliver-btn:hover{background:#758957}.customer-note{position:relative;transform:rotate(-2deg);background:#efe2b9;padding:17px 14px 11px;margin:19px 6px 0;box-shadow:2px 3px #d5bd8a66}.customer-note p{font-size:12px;color:#8b7553;line-height:1.8}.customer-note>span:last-child{display:block;font-size:9px;margin-top:8px;text-align:right;color:#947e58}.note-pin{position:absolute;width:7px;height:7px;top:5px;left:50%;background:#a47554;border:1px solid #78503c}.bottom-bar{border-top:3px solid #b8915e;background:#ecd4a6;min-height:91px;display:flex;align-items:center;justify-content:space-between;padding:15px 24px;gap:20px;box-shadow:inset 0 2px #fff0cf}.bottom-links{display:flex;gap:25px}.bottom-links>button{position:relative;border:0;background:none;display:flex;align-items:center;gap:8px;font-size:13px;padding:5px 0;color:#745439;white-space:nowrap}.bottom-links>button:hover{color:#375e3a}.bottom-links svg{width:23px;height:23px;color:#987246}.new-dot{width:5px;height:5px;background:#b86b45;position:absolute;right:-7px;top:1px}.night-action{display:flex;align-items:center;gap:20px}.night-action>div{text-align:right}.night-action b{font-size:13px;display:block}.night-action>div>span{font-size:10px;color:var(--muted);display:block;margin-top:7px}.primary-btn{display:flex;align-items:center;justify-content:center;gap:12px;min-height:49px;padding:11px 20px;border:2px solid var(--green-dark);box-shadow:inset 0 2px #95aa72,0 4px #384b2f;background:var(--green);color:#fff1ca;font-size:14px}.primary-btn:hover{background:#728951}.primary-btn .moon-icon{width:20px;height:20px;background:#efce82}.primary-btn .moon-icon:after{width:18px;height:18px;left:7px;top:-4px;background:var(--green)}.primary-btn:hover .moon-icon:after{background:#728951}.primary-btn svg{width:18px;height:18px}.toast{position:fixed;bottom:35px;left:50%;transform:translate(-50%,20px);background:#4b3b2c;color:#fff1c9;border:2px solid #c3a16c;padding:13px 22px;z-index:200;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:90vw;font-size:13px;line-height:1.6;box-shadow:0 6px 22px #382b2844}.toast.visible{opacity:1;transform:translate(-50%,0)}.drag-ghost{position:fixed;top:0;left:0;z-index:150;pointer-events:none;filter:drop-shadow(2px 5px 2px #4c362944);opacity:.9}.drag-ghost canvas{width:64px;height:64px}dialog{background:var(--paper);color:var(--ink);font:inherit;width:min(610px,90vw);max-height:85vh;padding:30px;border:4px solid var(--wood);box-shadow:0 0 0 3px #d8b47c,0 20px 60px #30251e66;overflow:auto}dialog::backdrop{background:#302632a8}dialog>form{position:absolute;right:10px;top:10px}.modal-close{font-size:23px;width:29px;height:29px}.modal-title{font-size:23px;margin:5px 25px 12px 0;line-height:1.5}.modal-copy{font-size:13px;line-height:1.9;color:var(--muted);margin:10px 0 18px}.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}.secondary-btn{border:2px solid #b89564;background:#ecd6ac;padding:10px 17px;min-height:44px;font-size:13px}.modal-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;padding:18px 0;border-top:1px dashed #bfa071;border-bottom:1px dashed #bfa071}.modal-stats b{display:block;font-size:25px;color:#75824c;margin:9px 0}.modal-stats span{font-size:11px;color:var(--muted)}.guide-list{display:flex;flex-direction:column;gap:13px;margin-top:17px}.guide-monster{display:flex;align-items:center;gap:16px;padding-bottom:13px;border-bottom:1px dashed #c2a370}.guide-monster canvas{width:68px;height:68px;background:#eedcb7}.guide-monster h3{font-size:15px;font-weight:400;margin:0 0 8px}.guide-monster p{font-size:12px;color:var(--muted);line-height:1.7}.reward-note{font-size:11px;background:#e9d8b4;color:#87653e;padding:11px;line-height:1.7}.battle-hud{position:absolute;top:10px;left:10px;right:10px;padding:12px;background:#312d3ddd;color:#ffedc3;border:2px solid #b69466}.battle-hud>div:first-child{display:flex;justify-content:space-between;font-size:14px}.hp-track{height:10px;background:#544657;margin:8px 0}.hp-track i{height:100%;display:block;background:#9bb46c;width:100%;transition:width .15s}.battle-hud small{font-size:10px}.battle-mode .scene-plaque{display:none}.battle-mode .scene-frame>canvas{aspect-ratio:16/9}.landscape-hint{display:none}.help-steps{padding-left:22px;font-size:13px;line-height:1.9}.help-steps li{margin:10px 0}.chapter-reward{font-size:14px;color:#687c45}.modal-upgrade-scene{background:#e5d2a9;padding:14px;display:flex;align-items:center;gap:14px}.modal-upgrade-scene svg{width:42px;height:42px}.modal-upgrade-scene b{font-size:15px}.modal-upgrade-scene p{font-size:12px;line-height:1.8;color:var(--muted);margin-top:7px}.modal-goods{display:flex;align-items:center;justify-content:center;gap:25px;margin:20px}.modal-goods canvas{width:80px;height:80px}.selected-name{color:var(--green-dark)}.confetti{position:fixed;pointer-events:none;z-index:250;animation:fall 1s ease-in forwards;width:7px;height:7px}
@keyframes pop{0%{transform:scale(.5)}65%{transform:scale(1.13)}100%{transform:scale(1)}}@keyframes fall{to{transform:translate(var(--dx),180px) rotate(160deg);opacity:0}}
@media(min-width:1500px){.game-content{gap:28px;padding:26px 30px}.staff-card{min-height:122px}.staff-card canvas{width:60px;height:60px}.scene-plaque{font-size:21px}.order{padding:15px}.order-goods{margin:14px 0}.producer{min-height:81px}.producer canvas{width:44px;height:44px}.producer b{font-size:12px}.producer em{display:inline;margin-left:4px}}
@media(max-width:1200px){body{padding:12px}.topbar{gap:15px;padding:12px 18px;height:92px}.brand{min-width:205px}.brand h1{font-size:28px}.brand-lamp{width:30px;height:34px}.resources{gap:13px}.resource{min-width:83px}.header-actions{gap:5px}.game-content{gap:15px;padding:19px 17px;grid-template-columns:minmax(0,1.23fr) minmax(0,1fr) minmax(190px,.7fr)}.section-line h2{font-size:14px}.store-column>.section-line>.quiet{font-size:9px}.income{display:none}.staff-card b{font-size:10px}.staff-card small{font-size:9px}.day-goal{padding:9px;gap:7px}.day-goal p{font-size:9px}.bottom-bar{padding:15px 18px}.bottom-links{gap:18px}.night-action{gap:13px}.night-action>div{display:none}.producer{padding:8px 4px;gap:2px}.producer canvas{width:30px;height:30px}.producer b{font-size:10px}.produce-plus{font-size:14px}.merge-hint{font-size:10px}.order{padding:9px}.customer-note{margin-top:16px;padding:12px}.day-goal .goal-icon{display:none}.shop-status{font-size:10px}.scene-plaque{font-size:14px;padding:4px 10px}}
@media(max-width:950px){body{display:block;padding:8px;overflow-x:auto}.game-shell{min-width:900px}.topbar{height:83px}.game-content{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(180px,.7fr);padding:14px;gap:13px}.brand{min-width:200px}.shift-info{gap:8px}.open-sign{display:none}.resources{gap:14px}.resource small{font-size:10px}.resource b{font-size:18px}.staff-heading{margin-top:12px}.staff-card{min-height:96px}.staff-card canvas{width:40px;height:40px}.day-goal{margin-top:12px}.section-line{margin-bottom:9px}.scene-plaque{font-size:12px}.producer div>span{font-size:8px}.workbench-tools{margin-top:13px}.customer-note p{font-size:11px}.bottom-bar{min-height:78px}.bottom-links{gap:22px}.bottom-links>button{font-size:12px}.primary-btn{font-size:12px;padding:9px 13px}.producers{gap:6px}.staff-list{gap:6px}.order-goods{margin:7px 0;min-height:36px}.order-good canvas{width:30px;height:30px}.order-good{gap:2px}.orders{gap:9px}.order-good span{font-size:10px}.merge-hint{font-size:9px;margin:12px 0}.scene-frame{border-width:2px}}
@media(max-width:600px) and (orientation:portrait){.landscape-hint{display:flex;align-items:center;justify-content:center;flex-direction:column;position:fixed;inset:0;background:#4d4137ee;color:#ffefc8;z-index:300;padding:30px;gap:20px;text-align:center;font-size:22px;line-height:1.7}.landscape-hint span{font-size:13px;color:#dbc49a}.landscape-hint button{background:#71834d;border:2px solid #b1c08c;color:#fff2cd;padding:12px 22px;font-size:15px}}
@media(max-height:600px) and (min-width:600px){body{padding:6px}.game-shell{min-width:900px}.topbar{height:65px;padding-top:8px;padding-bottom:8px}.brand h1{font-size:24px}.brand p{font-size:9px;margin-top:3px}.game-content{padding:10px 14px;gap:14px}.section-line{min-height:18px;margin-bottom:7px}.scene-frame>canvas{aspect-ratio:2.1}.scene-plaque{top:6%}.shop-status{min-height:27px;font-size:9px}.staff-heading{margin-top:8px}.staff-card{min-height:76px;padding:4px;gap:3px}.staff-card canvas{width:33px;height:33px}.staff-card small{font-size:8px}.day-goal{margin-top:8px;padding:7px}.day-goal p{margin:4px 0}.day-goal b{font-size:10px}.small-btn{padding:5px}.board-frame{padding:6px}.board{gap:3px;max-height:260px}.cell{max-height:49px}.cell canvas{width:72%;height:72%}.merge-hint{margin:7px 0;font-size:9px}.producer{min-height:51px;padding:5px}.producer div>span{margin-top:4px}.producer canvas{width:28px;height:28px}.workbench-tools{margin-top:8px}.order{padding:7px}.order-head{gap:6px}.customer-portrait{width:27px;height:27px}.order-customer{font-size:10px}.order-customer small{font-size:8px;margin-top:4px}.order-goods{min-height:29px;margin:5px 0}.order-good canvas{width:27px;height:27px}.deliver-btn{padding:4px 9px;font-size:10px}.customer-note{display:none}.bottom-bar{min-height:65px;padding:10px 18px}.primary-btn{min-height:39px}.staff-heading h2{font-size:12px}.text-btn{font-size:10px}.resource>div{gap:4px}.section-line h2{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
/* A landscape game scales as a complete stage, keeping every control in view. */
body.fit-landscape{display:block;height:100vh;min-height:0;overflow:hidden;padding:0}
.fit-landscape .game-shell{position:absolute;transform-origin:top left}
@media(min-width:951px){.topbar{height:88px}.game-content{padding-top:17px;padding-bottom:17px}.shop-status{min-height:31px}.staff-heading{margin-top:12px;margin-bottom:8px}.staff-card{min-height:89px;padding:5px 4px;gap:3px}.staff-card canvas{width:44px;height:44px}.day-goal{margin-top:12px;padding:9px 10px}.day-goal p{margin:5px 0}.bottom-bar{min-height:78px;padding-top:11px;padding-bottom:11px}.merge-hint{margin-top:10px;margin-bottom:10px}.producer{min-height:64px}.workbench-tools{margin-top:13px}.order-goods{margin:8px 0}.customer-note{margin-top:15px}}
.battle-mode .store-column{grid-column:1/3}.battle-mode .workbench{display:none}.battle-mode .staff-heading,.battle-mode .staff-list,.battle-mode .day-goal{display:none}.battle-mode .scene-frame>canvas{aspect-ratio:16/9;height:auto}.battle-mode .scene-level{bottom:10px}.battle-mode .orders-column{opacity:.7}
.landscape-hint{display:none!important}
.rotated-stage dialog{position:fixed;margin:0;left:50%;top:50%;width:min(610px,calc(100dvh - 32px));max-width:none;max-height:calc(100dvw - 32px);transform:translate(-50%,-50%) rotate(90deg)}
.rotated-stage .toast{left:28px;top:50%;bottom:auto;max-width:75dvh;width:max-content;transform:translate(-50%,-50%) rotate(90deg)}
.rotated-stage .toast.visible{transform:translate(-50%,-50%) rotate(90deg)}
.rotated-stage .drag-ghost canvas{transform:rotate(90deg)}
