*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;font-family:Segoe UI,Arial,sans-serif;color:#263d4e;background:#dce5ed}button{font:inherit;border:0;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.48;cursor:default}button:focus-visible{outline:3px solid #258a79}[hidden]{display:none!important}.app{position:relative;height:100dvh;width:100%;max-width:480px;margin:auto;overflow:hidden;background:#e7edf4}header{position:absolute;top:calc(env(safe-area-inset-top) + 10px);left:12px;right:12px;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:12px;pointer-events:none}.brand{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:850;letter-spacing:1px;background:#fffffff0;border-radius:12px;padding:9px 12px;box-shadow:0 3px 14px #53657512}.brand-icon{color:#298e7c;font-size:20px}.brand small{display:none}.wallet{background:#273f50ef;color:#fff;border-radius:12px;padding:8px 13px;text-align:right}.wallet small{font-size:9px;display:block;color:#c0d3dc}.wallet b{font-size:20px;display:block}.floors{position:absolute;top:calc(env(safe-area-inset-top) + 66px);left:12px;right:12px;z-index:5;display:flex;gap:5px}.floors button{flex:1;border-radius:9px;padding:9px 2px;background:#ffffffdc;color:#506779;font-size:11px;white-space:nowrap;box-shadow:0 2px 7px #40546712}.floors .active{background:#2c6159;color:#fff}.floors .pending{outline:2px solid #6ca695}.scene{position:absolute;inset:0;overflow:hidden}canvas{display:block;width:100%;height:100%;touch-action:none}.scene-label{display:none}.mission{position:absolute;top:calc(env(safe-area-inset-top) + 110px);left:12px;right:12px;z-index:5;display:flex;gap:8px;align-items:center;padding:8px 11px;background:#fff9e8e8;border:1px solid #e5d6b3;border-radius:10px;box-shadow:0 3px 12px #5c634010}.mission-icon{font-size:17px;color:#ae8849}.mission-copy{flex:1;min-width:0}.mission-copy small{display:none}.mission-copy b{font-size:12px;display:block}.track{height:3px;background:#e4ddc8;margin-top:5px;overflow:hidden;border-radius:3px}.track span{height:100%;display:block;background:#64a68c;transition:width .3s}.mission button{background:#e8d9ae;border-radius:7px;color:#70592e;padding:9px 7px;font-size:11px;font-weight:700}.mission button:disabled{display:none}.toast{position:absolute;top:calc(env(safe-area-inset-top) + 165px);left:20px;right:20px;border-radius:10px;background:#344c60eb;color:#fff;text-align:center;font-size:12px;padding:10px 12px;line-height:1.4;z-index:4;pointer-events:none;transition:opacity .3s}.toast.hide{opacity:0}#joystick{position:absolute;left:21px;bottom:calc(env(safe-area-inset-bottom) + 34px);width:104px;height:104px;display:grid;place-items:center;border-radius:50%;background:#ffffff70;border:2px solid #ffffffc9;box-shadow:0 3px 14px #53677922;touch-action:none;user-select:none;z-index:4}#knob{width:47px;height:47px;border-radius:50%;border:2px solid #ccd7df;background:#fffaf0e8;box-shadow:0 3px 8px #46586c33;pointer-events:none}.joystick-hint{position:absolute;bottom:calc(env(safe-area-inset-bottom) + 16px);left:44px;font-size:10px;color:#597083;pointer-events:none}.collect{position:absolute;right:16px;bottom:calc(env(safe-area-inset-bottom) + 40px);padding:13px 15px;min-width:136px;border-radius:13px;background:#edbb67;color:#584321;box-shadow:0 4px 0 #bd954e;display:flex;align-items:center;gap:12px;z-index:4;font-size:12px}.collect b{font-size:20px}.collect.ready{outline:2px solid #fff3c9}#liftButton{position:absolute;right:16px;bottom:calc(env(safe-area-inset-bottom) + 98px);background:#edf2ffdd;border-radius:9px;padding:11px 18px;min-width:136px;color:#536b86;font-size:12px;z-index:4}#zoneHint{position:absolute;bottom:calc(env(safe-area-inset-bottom) + 159px);left:18px;right:18px;z-index:3;text-align:center;font-size:12px;color:#4f655a;background:#ffffffe8;border-radius:9px;padding:9px 12px;pointer-events:none}#travel{position:absolute;inset:0;z-index:7;display:grid;place-items:center;padding:24px;text-align:center;background:#e3ecf1ef;font-size:22px;font-weight:700;color:#587082}.machine-panel{position:absolute;bottom:calc(env(safe-area-inset-bottom) + 12px);left:12px;right:12px;padding:12px;background:#fffcf3f5;border:1px solid #d7e0d8;border-radius:14px;z-index:6;box-shadow:0 7px 25px #41526625}.machine-heading{display:flex;align-items:center;gap:8px}.product-icon{display:grid;place-items:center;width:33px;height:37px;border-radius:9px;font-size:23px;flex-shrink:0}.machine-heading>div{flex:1;min-width:0}.machine-heading h1{margin:0;font-size:16px}.machine-heading p{margin:3px 0 0;color:#7b8c96;font-size:11px}.stock{font-size:12px;padding:7px;background:#e8eeec;border-radius:7px;white-space:nowrap}.stock.empty{background:#f8e9df;color:#b77755}#approach{display:none}.stock-track{height:4px;border-radius:4px;background:#e4eae5;margin:9px 0;overflow:hidden}.stock-track span{display:block;height:100%;background:#6caf96}.actions{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.actions button{border-radius:9px;padding:9px 4px;background:#e9efed;color:#547265;min-height:46px}.actions button:first-child{background:#458e7c;color:#fff}.actions span{display:block;font-size:12px}.actions b{display:block;font-size:11px;margin-top:3px}.unlock{display:block;width:100%;padding:12px;background:#537e62;color:#fff;border-radius:9px;font-size:14px;font-weight:600}.panel-hint{font-size:11px;line-height:1.4;color:#6c8073;margin:8px 0 0}.zone-track{height:4px;background:#e0e9dd;border-radius:4px;margin-top:8px;overflow:hidden}#zoneProgress{display:block;height:100%;background:#75af66}.context-open #joystick{bottom:calc(env(safe-area-inset-bottom) + 221px)}.context-open .joystick-hint{bottom:calc(env(safe-area-inset-bottom) + 204px)}.context-open .collect{bottom:calc(env(safe-area-inset-bottom) + 227px)}.context-open #liftButton{bottom:calc(env(safe-area-inset-bottom) + 287px)}.context-open #zoneHint{display:none}footer{display:none}@media(max-height:720px){.context-open #joystick{bottom:calc(env(safe-area-inset-bottom) + 195px);width:84px;height:84px}.context-open .joystick-hint{bottom:calc(env(safe-area-inset-bottom) + 180px)}.context-open .collect{bottom:calc(env(safe-area-inset-bottom) + 203px)}.context-open #liftButton{bottom:calc(env(safe-area-inset-bottom) + 258px)}.machine-panel{padding:10px}.panel-hint{font-size:10px}.machine-heading p{font-size:10px}}@media(min-width:600px){.app{box-shadow:0 0 60px #53677d25}}

.machine-panel{bottom:calc(env(safe-area-inset-bottom) + 158px)}.context-open #joystick{bottom:calc(env(safe-area-inset-bottom) + 34px);width:104px;height:104px}.context-open .collect{bottom:calc(env(safe-area-inset-bottom) + 40px)}.context-open #liftButton{bottom:calc(env(safe-area-inset-bottom) + 98px)}.joystick-mode{position:absolute;left:20px;bottom:calc(env(safe-area-inset-bottom) + 5px);z-index:6;background:#ffffffb8;color:#526e7f;padding:7px 10px;border-radius:8px;font-size:11px;min-height:28px}.floating-joystick #joystick{opacity:0;pointer-events:none}.floating-joystick.joystick-active #joystick{opacity:1}.floating-joystick #knob{background:#ffffffa8}#zoneHint{font-size:11px;background:#ffffff9c;color:#60766b}.context-open .panel-hint{font-size:10px}@media(max-height:720px){.machine-panel{padding:10px}.context-open #joystick{bottom:calc(env(safe-area-inset-bottom) + 34px);width:104px;height:104px}.context-open .collect{bottom:calc(env(safe-area-inset-bottom) + 40px)}.context-open #liftButton{bottom:calc(env(safe-area-inset-bottom) + 98px)}}
/* Верхняя и нижняя панели имеют собственные зоны, не перекрывают интерьер. */
.world-view{position:absolute;top:calc(env(safe-area-inset-top) + 145px);bottom:calc(env(safe-area-inset-bottom) + 143px);left:0;right:0;background:#c8d7db}.app,.scene{background:#c8d7db}.brand{padding:6px 10px;gap:7px;letter-spacing:1.1px;font-size:14px;font-weight:700;background:#f9f8efed}.brand-icon{display:flex;width:31px;height:31px}.brand-icon svg{width:100%;height:100%}.brand small{display:block;font-size:7px;letter-spacing:1.3px;font-weight:500;color:#758983;margin-top:3px}.wallet{background:#315c57f0}.wallet small{font-size:10px}.floors{top:calc(env(safe-area-inset-top) + 62px)}.floors button{font-size:11px;padding:8px 1px}.mission{top:calc(env(safe-area-inset-top) + 104px);padding:7px 10px;background:#f4f0e3ec;border-color:#b9c9c3}.mission-copy b{font-size:11px}.toast{top:auto;bottom:calc(env(safe-area-inset-bottom) + 146px);font-size:12px;z-index:7}.collect{min-width:126px;font-size:12px;background:#d8b775;box-shadow:0 3px 0 #a88a54}#liftButton{min-width:126px;background:#f4f7f1e8;color:#375c58}#zoneHint{bottom:calc(env(safe-area-inset-bottom) + 115px);left:16px;right:auto;max-width:calc(100% - 164px);font-size:10px;padding:4px 7px;text-align:left;background:transparent;color:#4e6962}.machine-panel{bottom:calc(env(safe-area-inset-bottom) + 145px);background:#fbfaf0f5}.joystick-mode{color:#375c58;background:#f4f7f1ce}#joystick{background:#ffffff46;border-color:#ffffffaa;box-shadow:0 3px 12px #34554b20}.stock{font-size:13px;color:#305f4b}.machine-heading p{font-size:12px;color:#607770}@media(max-height:700px){.world-view{top:calc(env(safe-area-inset-top) + 132px);bottom:calc(env(safe-area-inset-bottom) + 127px)}header{top:calc(env(safe-area-inset-top) + 6px)}.floors{top:calc(env(safe-area-inset-top) + 57px)}.mission{top:calc(env(safe-area-inset-top) + 96px)}.collect{bottom:calc(env(safe-area-inset-bottom) + 30px);padding:10px 12px}#liftButton{bottom:calc(env(safe-area-inset-bottom) + 80px);padding:9px 15px}#zoneHint{bottom:calc(env(safe-area-inset-bottom) + 113px);max-width:calc(100% - 154px)}.machine-panel{bottom:calc(env(safe-area-inset-bottom) + 132px)}.toast{bottom:calc(env(safe-area-inset-bottom) + 132px)}}
@media(max-height:700px){header .wallet{padding:6px 11px}header .wallet b{font-size:18px;line-height:1.2}.world-view{top:calc(env(safe-area-inset-top) + 142px)}}
@media(max-height:700px){header .wallet{padding:6px 11px}header .wallet b{font-size:18px;line-height:1.2}.world-view{top:calc(env(safe-area-inset-top) + 142px)}}
/* Мир занимает весь экран; нижней панели и полосы ввода больше нет. */
.world-view{inset:0!important}.app,.scene{background:#a9d8e0}.brand{padding:5px 8px;font-size:12px;gap:5px}.brand small{display:none}.brand-icon{width:25px;height:25px}header{top:calc(env(safe-area-inset-top) + 8px);left:10px;right:10px}.wallet,header .wallet{padding:5px 9px}.wallet small{font-size:9px}.wallet b,header .wallet b{font-size:17px;line-height:1.15}.floors{top:calc(env(safe-area-inset-top) + 54px);left:10px;right:10px;gap:4px}.floors button{padding:6px 1px;font-size:10px}.mission{top:calc(env(safe-area-inset-top) + 88px);left:10px;right:58px;padding:5px 8px;border:0;background:#fffaf0db}.mission-copy b{font-size:10px}.mission button{padding:5px;font-size:10px}.track{margin-top:3px;height:2px}.mission-icon{font-size:13px}.joystick-mode{top:calc(env(safe-area-inset-top) + 88px);bottom:auto;left:auto;right:10px;width:40px;height:34px;min-height:0;padding:5px;font-size:0;border-radius:9px;opacity:.85}.joystick-mode::before{content:'◎';font-size:21px}.joystick-mode[aria-pressed=false]::before{content:'⌖'}#joystick,.context-open #joystick{width:76px;height:76px;bottom:calc(env(safe-area-inset-bottom) + 24px);left:20px;border:1px solid #ffffff90;background:#ffffff28;box-shadow:none}#knob{width:31px;height:31px;background:#ffffff95;box-shadow:0 2px 5px #34645a22;border:1px solid #ffffffc0}.floating-joystick #joystick{pointer-events:none}#collect,#liftButton,#zoneHint{display:none!important}.machine-panel{bottom:calc(env(safe-area-inset-bottom) + 10px)!important;padding:9px;left:100px;right:10px}.machine-heading{gap:5px}.product-icon{display:none}.machine-heading h1{font-size:13px}.machine-heading p{font-size:10px}.stock{padding:5px;font-size:11px}.actions{gap:4px}.actions button{padding:6px 2px;min-height:39px}.actions span,.actions b{font-size:10px}.panel-hint{display:none}.stock-track{margin:6px 0}.unlock{padding:9px;font-size:12px}.toast{bottom:calc(env(safe-area-inset-bottom) + 14px)!important;left:20px;right:20px;padding:7px 10px;font-size:11px}.context-open .toast{bottom:calc(env(safe-area-inset-bottom) + 146px)!important}@media(max-height:700px){.floors{top:calc(env(safe-area-inset-top) + 51px)}.mission,.joystick-mode{top:calc(env(safe-area-inset-top) + 84px)}}
