*{box-sizing:border-box;-webkit-user-select:none;user-select:none;margin:0;padding:0}html,body{touch-action:none;background-color:#c4dff5;width:100%;height:100dvh;font-family:-apple-system,BlinkMacSystemFont,Pretendard,Malgun Gothic,Segoe UI,sans-serif;overflow:hidden}.shop-mobile-label{display:none}#game-canvas{width:100%;height:100%;display:block}#world-labels-layer{pointer-events:none;z-index:10;position:fixed;inset:0;overflow:hidden}.world-sign{white-space:nowrap;will-change:transform;pointer-events:none;background:#0f172ae6;border:2px solid #f59e0b;border-radius:10px;flex-direction:column;align-items:center;gap:1px;padding:4px 10px;display:none;position:fixed;top:0;left:0;box-shadow:0 4px 12px #00000052}.world-sign-title{color:#fff;text-shadow:0 1px 2px #000000b3;font-size:12.5px;font-weight:900;line-height:1.2}.world-sign-sub{color:#fde047;font-size:10.5px;font-weight:800;line-height:1.2}#cold-vignette{pointer-events:none;z-index:12;opacity:0;transition:opacity .25s;position:fixed;inset:0;box-shadow:inset 0 0 90px 28px #38bdf8d9}#loading-screen{z-index:1000;background:radial-gradient(circle,#1e293b 0%,#0f172a 100%);justify-content:center;align-items:center;transition:opacity .35s;display:flex;position:fixed;inset:0}#loading-screen.hidden{opacity:0;pointer-events:none}.loading-card{text-align:center;color:#f8fafc;background:#0f172aeb;border:2px solid #ffffff40;border-radius:20px;width:min(360px,88vw);padding:26px 24px;box-shadow:0 20px 50px #00000073}.loading-title{letter-spacing:.5px;margin-bottom:8px;font-size:24px;font-weight:900}.loading-sub{color:#94a3b8;margin-bottom:16px;font-size:13px}.loading-bar-bg{background:#334155;border-radius:999px;width:100%;height:12px;overflow:hidden}.loading-bar-fill{background:linear-gradient(90deg,#38bdf8,#facc15);width:0%;height:100%;transition:width .2s}#top-left-hud{z-index:20;pointer-events:none;flex-direction:column;gap:7px;display:flex;position:fixed;top:14px;left:14px}.hud-row-top{align-items:center;gap:8px;display:flex}.btn-settings{color:#fff;cursor:pointer;pointer-events:auto;background:#0f172ae0;border:2.5px solid #fff;border-radius:50%;justify-content:center;align-items:center;width:40px;height:40px;font-size:18px;transition:transform .1s;display:flex;box-shadow:0 4px 12px #00000047}.btn-settings:active{transform:scale(.92)}.level-pill{color:#fff;background:#0f172ae0;border:2.5px solid #fff;border-radius:20px;align-items:center;gap:7px;padding:5px 11px;font-size:12.5px;font-weight:900;display:flex;box-shadow:0 4px 12px #00000040}.xp-bar-bg{background:#334155;border-radius:999px;width:58px;height:8px;overflow:hidden}.xp-bar-fill{background:linear-gradient(90deg,#38bdf8,#a855f7);width:0%;height:100%;transition:width .2s}.phase-pill{color:#fff;border:2.5px solid #fff;border-radius:20px;padding:5px 11px;font-size:12px;font-weight:900;box-shadow:0 4px 12px #00000040}.phase-pill.day{background:#0284c7e6}.phase-pill.twilight{background:#d97706eb}.phase-pill.night{color:#bae6fd;background:#1e293bf2;border-color:#93c5fd}.stat-bar{background:#0f172ae0;border:2.5px solid #fff;border-radius:12px;align-items:center;width:196px;height:22px;display:flex;position:relative;box-shadow:0 4px 10px #0000003d}.stat-bar-fill{border-radius:9px;height:100%;transition:width .2s}.stat-bar-fill.health{background:linear-gradient(90deg,#22c55e,#16a34a);width:100%}.stat-bar-fill.hunger{background:linear-gradient(90deg,#f97316,#ea580c);width:100%}.stat-bar-fill.warmth{background:linear-gradient(90deg,#38bdf8,#f59e0b);width:100%}.stat-bar-label{color:#fff;text-shadow:1px 1px 2px #000000d9;font-size:10.5px;font-weight:800;position:absolute;left:10px}.stat-bar-icon{background:#fff;border-radius:50%;justify-content:center;align-items:center;width:26px;height:26px;font-size:14px;display:flex;position:absolute;right:-6px;box-shadow:0 2px 6px #0000004d}.stat-bar-icon img{object-fit:contain;width:18px;height:18px}#mission-banner{color:#fef08a;text-align:center;white-space:nowrap;text-overflow:ellipsis;z-index:20;pointer-events:none;background:#0f172ae0;border:2.5px solid #f59e0b;border-radius:999px;max-width:min(620px,100vw - 440px);padding:7px 18px;font-size:13px;font-weight:800;position:fixed;top:66px;left:50%;overflow:hidden;transform:translate(-50%);box-shadow:0 6px 18px #00000047}#top-right-hud{z-index:20;pointer-events:none;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:7px;display:flex;position:fixed;top:14px;right:14px}.resource-pill{color:#fff;background:#0f172ae0;border:2.5px solid #fff;border-radius:14px;align-items:center;gap:6px;padding:5px 11px;font-size:14px;font-weight:900;display:flex;box-shadow:0 4px 12px #00000040}.resource-pill img{object-fit:contain;width:20px;height:20px}.btn-shop{color:#fff;cursor:pointer;pointer-events:auto;background:linear-gradient(135deg,#f59e0b,#d97706);border:2.5px solid #fff;border-radius:14px;align-items:center;gap:5px;padding:5px 11px;font-size:13px;font-weight:900;transition:transform .1s;display:flex;box-shadow:0 4px 14px #0000004d}.btn-shop:active{transform:scale(.93)}.btn-shop img{object-fit:contain;width:20px;height:20px}#bottom-right-actions{z-index:25;flex-direction:column;align-items:flex-end;gap:10px;display:flex;position:fixed;bottom:22px;right:18px}.btn-dash{color:#fff;cursor:pointer;background:linear-gradient(135deg,#0284c7,#0369a1);border:2.5px solid #fff;border-radius:18px;padding:12px 18px;font-size:14px;font-weight:900;transition:transform .1s;position:relative;overflow:hidden;box-shadow:0 6px 18px #00000052}.btn-dash:active{transform:scale(.93)}.btn-dash.cooldown{opacity:.72}.dash-label{z-index:2;position:relative}.dash-cd{z-index:1;background:#0f172a94;width:0%;height:100%;position:absolute;bottom:0;left:0}.btn-context-action{color:#fff;cursor:pointer;background:linear-gradient(135deg,#ea580c,#c2410c);border:2.5px solid #fef08a;border-radius:16px;padding:11px 16px;font-size:13.5px;font-weight:900;box-shadow:0 6px 18px #00000057}#toast-pill{color:#fff;z-index:40;pointer-events:none;background:#0f172af0;border:2px solid #38bdf8;border-radius:999px;padding:9px 18px;font-size:13px;font-weight:800;display:none;position:fixed;bottom:72px;left:50%;transform:translate(-50%);box-shadow:0 8px 24px #00000059}#toast-pill.visible{display:block}#joystick-overlay{pointer-events:none;z-index:15;background:#0f172a52;border:2px solid #ffffff73;border-radius:50%;width:110px;height:110px;display:none;position:fixed;transform:translate(-50%,-50%)}#joystick-overlay.visible{display:block}#joystick-knob{background:#ffffffd9;border-radius:50%;width:46px;height:46px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 4px 10px #0000004d}#settings-modal,#shop-modal{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);z-index:100;background:#0f172aa6;justify-content:center;align-items:center;display:none;position:fixed;inset:0}#settings-modal.open,#shop-modal.open{display:flex}.modal-dialog{-webkit-overflow-scrolling:touch;color:#0f172a;background:#fff;border-radius:22px;flex-direction:column;gap:12px;width:min(400px,92vw);max-height:calc(100dvh - 28px);padding:20px;display:flex;overflow-y:auto;box-shadow:0 20px 50px #00000059}.shop-dialog{width:min(460px,94vw)}.modal-header{justify-content:space-between;align-items:center;display:flex}.modal-title{font-size:18px;font-weight:900}.modal-close{color:#334155;cursor:pointer;background:#f1f5f9;border:none;border-radius:50%;width:34px;height:34px;font-size:16px;font-weight:900}.shop-wallet{text-align:center;color:#1e293b;background:#f1f5f9;border:1.5px solid #cbd5e1;border-radius:12px;padding:8px 12px;font-size:13px;font-weight:900}.shop-grid{flex-direction:column;gap:9px;display:flex}.shop-card{background:#f8fafc;border:1.5px solid #e2e8f0;border-radius:14px;align-items:center;gap:11px;padding:10px 12px;display:flex}.shop-card img{object-fit:cover;border:1.5px solid #cbd5e1;border-radius:10px;flex-shrink:0;width:48px;height:48px}.shop-craft-icon{background:#e2e8f0;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:48px;height:48px;font-size:26px;display:flex}.shop-card-info{flex:1;min-width:0}.shop-card-title{color:#0f172a;font-size:13.5px;font-weight:900}.shop-card-desc{color:#64748b;margin-top:2px;font-size:11.5px;font-weight:700}.btn-buy{color:#fff;cursor:pointer;white-space:nowrap;background:#0284c7;border:none;border-radius:10px;padding:8px 12px;font-size:12px;font-weight:900}.btn-buy:disabled,.btn-buy.done{cursor:default;background:#94a3b8}.setting-row{background:#f8fafc;border:1.5px solid #e2e8f0;border-radius:14px;justify-content:space-between;align-items:center;padding:10px 14px;font-size:14px;font-weight:800;display:flex}.btn-toggle{color:#fff;cursor:pointer;background:#16a34a;border:none;border-radius:10px;min-width:62px;padding:6px 12px;font-weight:900}.btn-toggle.off{background:#94a3b8}.save-box{background:#f1f5f9;border:1.5px solid #cbd5e1;border-radius:14px;flex-direction:column;gap:8px;padding:12px;display:flex}.save-box-header{justify-content:space-between;align-items:center;font-size:13px;font-weight:900;display:flex}#save-status-text{color:#0284c7;font-size:11px;font-weight:700}.save-actions{grid-template-columns:repeat(3,1fr);gap:6px;display:grid}.save-actions button{cursor:pointer;border-radius:10px;padding:8px 4px;font-size:12.5px;font-weight:900}.btn-save{color:#fff;background:#0284c7;border:2px solid #0369a1}.btn-load{color:#0369a1;background:#e0f2fe;border:2px solid #38bdf8}.btn-reset{color:#b91c1c;background:#fee2e2;border:2px solid #f87171}.controls-guide{color:#475569;background:#f8fafc;border:1.5px solid #e2e8f0;border-radius:14px;padding:12px;font-size:12px;line-height:1.65}.controls-title{color:#0f172a;margin-bottom:4px;font-weight:900}@media (width<=960px){#mission-banner{max-width:calc(100vw - 24px);font-size:12px;top:auto;bottom:16px}}@media (width<=768px){.kbd-hint{display:none}.shop-mobile-label{display:inline}.world-sign{border-width:1.5px;border-radius:8px;padding:3px 8px}.world-sign-title{font-size:11.5px}.world-sign-sub{font-size:10px}#top-right-hud{top:calc(10px + env(safe-area-inset-top,0px));flex-wrap:nowrap;justify-content:space-between;gap:4px;left:8px;right:8px}.resource-pill{white-space:nowrap;border-width:2px;border-radius:11px;gap:3px;padding:4px 6px;font-size:11px}.resource-pill img{width:14px;height:14px}.btn-shop{white-space:nowrap;border-width:2px;border-radius:11px;gap:4px;padding:4px 8px;font-size:11.5px}.btn-shop img{width:15px;height:15px}#top-left-hud{top:calc(48px + env(safe-area-inset-top,0px));gap:5px;left:10px}.hud-row-top{gap:5px}.btn-settings{border-width:2px;width:32px;height:32px;font-size:15px}.level-pill{border-width:2px;gap:5px;padding:4px 8px;font-size:11px}.xp-bar-bg{width:38px;height:6px}.phase-pill{border-width:2px;padding:4px 8px;font-size:11px}.stat-bar{border-width:2px;border-radius:10px;width:146px;height:18px}.stat-bar-label{font-size:9.5px;left:8px}.stat-bar-icon{width:22px;height:22px;font-size:11px;right:-5px}.stat-bar-icon img{width:14px;height:14px}#mission-banner{top:auto;bottom:calc(10px + env(safe-area-inset-bottom,0px));white-space:normal;border-width:2px;border-radius:16px;max-width:none;padding:6px 12px;font-size:11px;line-height:1.3;left:10px;right:10px;transform:none}#bottom-right-actions{right:12px;bottom:calc(64px + env(safe-area-inset-bottom,0px));gap:7px}.btn-dash{border-width:2px;border-radius:15px;padding:10px 15px;font-size:13px}.btn-context-action{border-width:2px;border-radius:14px;padding:9px 13px;font-size:12.5px}#toast-pill{bottom:calc(122px + env(safe-area-inset-bottom,0px));white-space:normal;text-align:center;max-width:calc(100vw - 24px);padding:7px 14px;font-size:12px}}
