:root{--wood-dark: rgba(24, 18, 16, .88);--wood-border: rgba(217, 160, 91, .65);--gold: #fbbf24;--cream: #fef3c7;--muted: #cbd5e1}*{box-sizing:border-box;margin:0;padding:0;user-select:none;-webkit-user-select:none;touch-action:none}html,body{width:100%;height:100%;overflow:hidden;background:#121820;font-family:Segoe UI,system-ui,-apple-system,sans-serif;color:var(--cream)}#game-canvas{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100%;display:block}.hud-root{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:10;display:flex;flex-direction:column;justify-content:space-between;padding:10px 12px}.hud-top-row{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.panel-wood{background:var(--wood-dark);border:2px solid var(--wood-border);border-radius:12px;box-shadow:0 8px 24px #0000008c;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);pointer-events:auto}.vitals-wrap{display:flex;flex-direction:column;gap:6px}.vitals-card{display:flex;align-items:center;gap:10px;padding:7px 10px}.avatar-badge{position:relative;width:44px;height:44px;border-radius:50%;border:2px solid var(--gold);background:radial-gradient(circle at 35% 35%,#60a5fa,#1e293b);display:flex;align-items:center;justify-content:center;font-weight:900;font-size:18px}.lv-chip{position:absolute;bottom:-4px;right:-4px;background:#0f172a;border:1.5px solid var(--gold);color:var(--gold);border-radius:99px;font-size:9px;font-weight:900;padding:1px 5px}.bars-col{display:flex;flex-direction:column;gap:4px;min-width:124px}.bar-row{display:flex;align-items:center;gap:6px;font-size:10px;font-weight:800}.bar-track{flex:1;height:9px;border-radius:99px;background:#ffffff24;overflow:hidden;border:1px solid rgba(0,0,0,.6)}.bar-fill{height:100%;transition:width .15s ease}.bar-fill.hp{background:linear-gradient(90deg,#dc2626,#f87171)}.bar-fill.hunger{background:linear-gradient(90deg,#d97706,#fbbf24)}.bar-fill.thirst{background:linear-gradient(90deg,#0284c7,#38bdf8)}.bar-fill.stamina{background:linear-gradient(90deg,#16a34a,#4ade80)}.temp-row{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:10px;font-weight:800;color:#e2e8f0;white-space:nowrap}.quest-card{padding:7px 10px;max-width:245px;font-size:11px}.quest-title{color:var(--gold);font-weight:900;font-size:12px;margin-bottom:3px}.quest-obj{display:flex;justify-content:space-between;gap:8px;color:#e2e8f0;font-size:10.5px}.quest-obj.done{color:#4ade80;text-decoration:line-through}.status-toast{position:fixed;top:12px;left:50%;transform:translate(-50%);padding:6px 14px;border-radius:99px;background:#0f172ae6;border:1.5px solid var(--gold);color:#fef3c7;font-size:12px;font-weight:800;pointer-events:none;white-space:nowrap;z-index:20}.hidden{display:none!important}.topright-wrap{display:flex;align-items:flex-start;gap:8px}.clock-card{padding:7px 10px;display:flex;flex-direction:column;gap:3px;font-size:11px;font-weight:800;text-align:right}.biome-pill{font-size:9.5px;color:#38bdf8;font-weight:900;letter-spacing:.6px}.minimap-ring{width:86px;height:86px;border-radius:50%;border:2.5px solid var(--wood-border);overflow:hidden;background:#0f172a;box-shadow:0 6px 20px #0009;pointer-events:auto}#hud-minimap{width:100%;height:100%;display:block}.top-btn-col{display:flex;flex-direction:column;gap:5px;pointer-events:auto}.mini-btn{padding:5px 8px;border-radius:8px;border:1.5px solid var(--wood-border);background:var(--wood-dark);color:var(--cream);font-size:10px;font-weight:900;cursor:pointer}.hud-mid-row{display:flex;justify-content:space-between;align-items:center;flex:1;pointer-events:none}.left-rail{display:flex;flex-direction:column;gap:5px;pointer-events:auto}.rail-btn{width:44px;height:36px;border-radius:9px;border:1.5px solid var(--wood-border);background:var(--wood-dark);color:var(--cream);font-size:10px;font-weight:900;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center}.rail-btn.active{border-color:#fde047;background:#78350feb}.drawer-modal{position:fixed;top:50%;left:68px;transform:translateY(-50%);width:min(360px,72vw);max-height:72vh;overflow-y:auto;padding:14px;z-index:30;touch-action:pan-y}.drawer-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;border-bottom:1px solid rgba(255,255,255,.14);padding-bottom:6px}.drawer-title{font-size:14px;font-weight:900;color:var(--gold)}.drawer-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:7px 8px;margin-bottom:6px;border-radius:8px;background:#ffffff0f;font-size:11.5px}.craft-btn{padding:5px 10px;border-radius:7px;border:1px solid var(--gold);background:#b45309;color:#fff;font-size:10px;font-weight:900;cursor:pointer}.hud-bottom-row{display:flex;justify-content:space-between;align-items:flex-end;gap:10px}.joystick-pad{width:104px;height:104px;border-radius:50%;border:2.5px solid rgba(254,243,199,.45);background:#0f172a7a;position:relative;pointer-events:auto;flex-shrink:0}.joystick-knob{width:42px;height:42px;border-radius:50%;background:radial-gradient(circle,#fde68a,#b45309);border:2px solid #fff;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none}.hotbar-dock{display:flex;gap:5px;padding:5px;background:#140e0ae0;border:2px solid var(--wood-border);border-radius:11px;pointer-events:auto}.hot-slot{width:42px;height:42px;border-radius:7px;border:1.5px solid rgba(255,255,255,.22);background:#ffffff0f;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;color:#fff;font-size:9px;font-weight:800}.hot-slot.selected{border-color:#fde047;box-shadow:0 0 10px #fde04780;background:#b4530973}.hot-count{position:absolute;bottom:2px;right:3px;font-size:9px;font-weight:900;color:#fde68a}.action-cluster{display:grid;grid-template-columns:repeat(3,46px);gap:6px;pointer-events:auto;flex-shrink:0}.act-btn{width:46px;height:46px;border-radius:50%;border:2px solid var(--wood-border);background:#141822d9;color:#fff;font-size:9px;font-weight:900;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 4px 12px #00000080}.act-btn.primary{border-color:#fde047;background:radial-gradient(circle,#b45309,#451a03)}.act-btn.active{border-color:#4ade80;background:#166534e6}@media(max-width:920px),(max-height:480px){.hud-root{padding:6px 8px;gap:4px}.vitals-card{padding:5px 8px;gap:7px}.avatar-badge{width:36px;height:36px;font-size:15px}.bars-col{min-width:112px;gap:2.5px}.bar-track{height:7px}.temp-row{font-size:9px;gap:8px}.quest-card{display:none}.clock-card{padding:5px 8px;font-size:10px}.minimap-ring{width:62px;height:62px}.mini-btn{padding:4px 7px;font-size:9.5px}.left-rail{display:grid;grid-template-columns:repeat(2,40px);gap:4px}.rail-btn{width:40px;height:32px;font-size:9px}.hotbar-dock{padding:4px;gap:4px}.hot-slot{width:34px;height:34px;font-size:8px}.joystick-pad{width:78px;height:78px}.joystick-knob{width:30px;height:30px}.action-cluster{grid-template-columns:repeat(3,38px);gap:4px}.act-btn{width:38px;height:38px;font-size:8px}}
