:root{--ui: #ffffff;--ui-bg: rgba(0, 0, 0, .55)}*{box-sizing:border-box}html,body{margin:0;padding:0;height:100%;overflow:hidden;background:#87ceeb;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:var(--ui)}canvas{display:block}#hud{position:fixed;inset:0;pointer-events:none}#underwater{position:fixed;inset:0;display:none;pointer-events:none;z-index:5;background:radial-gradient(ellipse at center,#146ea02e,#0a3c6480),linear-gradient(#125a8252,#0c466e6b);box-shadow:inset 0 0 220px #001428bf}#crosshair{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:24px;opacity:.9;color:#fff;text-shadow:0 0 4px rgba(0,0,0,.7);transition:transform 90ms ease-out,color 90ms ease-out,opacity 90ms ease-out,text-shadow 90ms ease-out}#crosshair.targeting{transform:translate(-50%,-50%) scale(1.28);opacity:1;color:#cdeeff;text-shadow:0 0 6px rgba(143,226,255,.65),0 0 3px rgba(0,0,0,.7)}#status{position:absolute;top:12px;left:50%;transform:translate(-50%);padding:7px 16px;background:var(--ui-bg);border-radius:8px;border-left:3px solid #8aa0b8;box-shadow:0 4px 18px #00000059;font-size:13px;font-weight:600;max-width:calc(100vw - 24px);text-align:center;pointer-events:none}#status[data-kind=success]{border-left-color:#6bff9c}#status[data-kind=warn]{border-left-color:#ff8080}#status.toast-in{animation:toast-in .2s ease}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,-8px)}to{opacity:1;transform:translate(-50%)}}#status-chip{position:absolute;top:12px;left:12px;display:flex;align-items:center;gap:6px;padding:5px 11px;background:var(--ui-bg);border-radius:999px;font-size:12px;font-weight:600;color:#cfdae6;pointer-events:none;max-width:calc(100vw - 24px);white-space:nowrap}.sc-dot{width:8px;height:8px;border-radius:50%;background:#8aa0b8;flex-shrink:0}#status-chip[data-conn=online] .sc-dot{background:#6bff9c;box-shadow:0 0 6px #6bff9c}#status-chip[data-conn=connecting] .sc-dot{background:#ffd66b;animation:sc-pulse 1s ease-in-out infinite}@keyframes sc-pulse{0%,to{opacity:.35}50%{opacity:1}}.sc-sep{color:#4a5a6e}.sc-id{color:#e8eef5}.sc-id[data-kind=name]{color:#ffd66b}body.is-touch #status-chip{top:calc(8px + env(safe-area-inset-top));left:calc(8px + env(safe-area-inset-left))}#compass-chip{position:absolute;top:52px;right:16px;display:flex;align-items:center;gap:7px;padding:5px 11px;background:var(--ui-bg);border-radius:999px;font-size:12px;font-weight:600;color:#cfdae6;pointer-events:none;white-space:nowrap;font-variant-numeric:tabular-nums}.cc-dir{color:#ffd66b;min-width:1.4em;text-align:center;letter-spacing:.5px}.cc-sep{color:#4a5a6e}.cc-coord{font-family:ui-monospace,SF Mono,Menlo,monospace;color:#dbe6f2}body.is-touch #compass-chip{top:calc(56px + env(safe-area-inset-top));right:calc(8px + env(safe-area-inset-right))}#interact-prompt{position:absolute;top:calc(50% + 26px);left:50%;transform:translate(-50%,-2px);display:flex;align-items:center;gap:7px;padding:5px 11px;background:var(--ui-bg);border-radius:8px;font-size:13px;font-weight:600;color:#e8eef5;pointer-events:none;white-space:nowrap;opacity:0;transition:opacity .11s ease,transform .11s ease}#interact-prompt.show{opacity:1;transform:translate(-50%)}.ip-key{padding:1px 7px;border:1px solid #4a5a6e;border-radius:5px;background:#11181f;color:#ffd66b;font-size:11px;font-weight:700}.ip-verb{text-transform:capitalize}#debug{position:fixed;top:12px;left:12px;padding:6px 10px;background:var(--ui-bg);color:#cfeefa;border-radius:4px;font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:11px;line-height:1.5;pointer-events:none;z-index:10;white-space:pre}#hotbar{position:absolute;bottom:16px;left:50%;transform:translate(-50%);display:flex;gap:4px;background:var(--ui-bg);padding:6px;border-radius:6px}#vitals,#hunger,#air{position:absolute;left:50%;display:none;line-height:1}#vitals{bottom:80px;margin-left:-244px;gap:1px}#hunger{bottom:80px;margin-left:244px;transform:translate(-100%);gap:1px}#air{bottom:104px;margin-left:244px;transform:translate(-100%);gap:2px}.heart,.bubble{font-size:19px;line-height:1;filter:drop-shadow(1px 1px 0 rgba(0,0,0,.85))}.heart.full{color:#ff3b46}.heart.empty{color:#43262b}.heart.half{background:linear-gradient(90deg,#ff3b46 50%,#43262b 50%);-webkit-background-clip:text;background-clip:text;color:transparent}.bubble.full{color:#bfeaff}.bubble.empty{color:#2a3942}.drumstick{position:relative;display:inline-block;width:19px;height:19px;font-size:17px;line-height:19px;filter:drop-shadow(1px 1px 0 rgba(0,0,0,.85))}.drumstick:before{content:"🍗";position:absolute;left:0;top:0;filter:grayscale(1) brightness(.45)}.dfill{position:absolute;left:0;top:0;width:19px;overflow:hidden;white-space:nowrap}#damage-flash{position:fixed;inset:0;z-index:50;pointer-events:none;opacity:0;background:radial-gradient(ellipse at center,#aa000c00 38%,#aa000c99)}#death{position:fixed;inset:0;z-index:60;display:none;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:#2d040499;backdrop-filter:blur(2px)}#death.show{display:flex}#death h1{margin:0;color:#ff6a6a;font-size:42px;letter-spacing:1px;text-shadow:2px 2px 0 #000}#death p{margin:0;color:#e6c4c4;font-size:14px}#respawn-btn{margin-top:6px;padding:10px 26px;font-size:15px;font-weight:700;color:#1a1010;background:#ffd66b;border:none;border-radius:7px;cursor:pointer}#respawn-btn:hover{background:#ffe08a}.slot{position:relative;width:56px;height:56px;display:flex;align-items:center;justify-content:center;border:2px solid #555;border-radius:4px;background:#222;flex-direction:column;gap:2px}.slot.active{border-color:#ffd66b;box-shadow:0 0 8px #ffd66b80}.slot .icon{width:36px;height:36px;image-rendering:auto;filter:drop-shadow(0 1px 1px rgba(0,0,0,.5))}.slot .key{font-size:9px;opacity:.75;text-align:center;line-height:1.1}.slot .slot-count{position:absolute;bottom:1px;right:1px;min-width:13px;height:15px;padding:0 3px;line-height:15px;text-align:center;font-size:11px;font-weight:800;color:#fff;background:#080c12e0;border-radius:7px;box-shadow:0 0 0 1px #00000080;text-shadow:0 1px 1px #000;pointer-events:none}.slot .slot-dura{position:absolute;bottom:2px;left:4px;right:4px;height:3px;border-radius:2px;background:#000;display:none}.slot .slot-dura:after{content:"";position:absolute;inset:0;width:calc(var(--dura, 1) * 100%);border-radius:2px;background:hsl(calc(var(--dura, 1) * 120),80%,50%)}#menu-button{position:absolute;top:12px;right:16px;pointer-events:auto;background:var(--ui-bg);color:var(--ui);border:2px solid #ffd66b;border-radius:8px;padding:8px 14px;font-size:14px;font-weight:700;cursor:pointer}#menu-button:hover{background:#ffd66b40}#menu-overlay{position:fixed;inset:0;background:#0000008c;display:flex;align-items:center;justify-content:center;z-index:100}#menu-panel{width:440px;max-width:calc(100vw - 32px);max-height:min(640px,calc(100vh - 40px));overflow-y:auto;background:#1b2330;color:#e8eef5;border:1px solid #2f3e52;border-radius:14px;padding:18px 20px 20px;box-shadow:0 16px 60px #0000008c}.menu-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.menu-title{font-size:20px;font-weight:800;color:#ffd66b}.menu-x{background:none;border:none;color:#8aa0b8;font-size:18px;cursor:pointer}.menu-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.menu-tile{display:flex;flex-direction:column;align-items:center;gap:3px;padding:12px 6px;background:#2f3e52;color:#e8eef5;border:1px solid #3c4f68;border-radius:10px;cursor:pointer;transition:background .12s ease,border-color .12s ease,transform 80ms ease}.menu-tile:hover{background:#3c4f68;border-color:#ffd66b;transform:translateY(-1px)}.menu-tile-icon{font-size:24px;line-height:1.1}.menu-tile-label{font-size:13px;font-weight:600}.menu-tile-hint{font-size:11px;color:#8aa0b8;font-variant-numeric:tabular-nums}.menu-controls-toggle{width:100%;margin-top:14px;background:none;border:1px solid #2f3e52;color:#cfdae6;border-radius:8px;padding:9px;font-size:13px;cursor:pointer}.menu-controls-toggle:hover{border-color:#3c4f68;background:#232c3a}.menu-controls{margin-top:8px;padding:4px 2px}.menu-control-line{color:#cfdae6;font-size:12px;line-height:1.8}.menu-resume{width:100%;margin-top:12px;background:#ffd66b;color:#1b2330;border:none;border-radius:8px;padding:12px;font-size:15px;font-weight:800;cursor:pointer}.menu-resume:hover{background:#ffe08a}#tutorial-nudge{position:absolute;bottom:92px;left:50%;transform:translate(-50%);max-width:min(520px,calc(100vw - 32px));padding:10px 18px;background:#0d1b2ad1;color:#fff;border:1px solid #ffd66b;border-radius:10px;font-size:14px;font-weight:600;text-align:center;pointer-events:none;opacity:0;transition:opacity .3s ease;box-shadow:0 6px 24px #0006}body.is-touch #tutorial-nudge{top:calc(60px + env(safe-area-inset-top));bottom:auto}#creator-quest{position:absolute;top:60px;right:16px;width:272px;max-width:calc(100vw - 32px);background:#1b2330ed;border:1px solid #ffd66b;border-radius:10px;padding:12px 14px;pointer-events:none;box-shadow:0 8px 30px #00000073}.cq-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.cq-title{color:#ffd66b;font-weight:700;font-size:14px}.cq-x{pointer-events:auto;background:none;border:none;color:#8aa0b8;font-size:14px;cursor:pointer}.cq-step{display:flex;gap:8px;padding:5px 0;opacity:.55}.cq-step.current{opacity:1}.cq-step.done{opacity:.85}.cq-mark{color:#8aa0b8;font-weight:700;flex-shrink:0}.cq-step.current .cq-mark{color:#ffd66b}.cq-step.done .cq-mark{color:#6bff9c}.cq-step-label{font-size:12px;font-weight:600;color:#e8eef5}.cq-hint{font-size:11px;color:#8aa0b8;line-height:1.3}body.is-touch #creator-quest{top:calc(56px + env(safe-area-inset-top))}#settings-overlay{position:fixed;inset:0;background:#0000008c;display:flex;align-items:center;justify-content:center;z-index:100}#settings-panel{width:340px;max-width:calc(100vw - 32px);max-height:min(620px,calc(100vh - 40px));overflow-y:auto;background:#1b2330;color:#e8eef5;border:1px solid #2f3e52;border-radius:12px;padding:16px 20px 18px;box-shadow:0 12px 48px #00000080;font-size:14px}.s-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.s-title{font-size:16px;font-weight:700;color:#ffd66b}.s-close{background:none;border:none;color:#8aa0b8;font-size:16px;cursor:pointer}.s-row{margin-bottom:11px}.s-label-row{display:flex;justify-content:space-between;margin-bottom:6px}.s-label{color:#cfdae6}.s-value{color:#ffd66b;font-variant-numeric:tabular-nums}.s-slider{width:100%;accent-color:#ffd66b;cursor:pointer}.s-toggle-row{display:flex;align-items:center;justify-content:space-between;cursor:pointer}.s-toggle{width:18px;height:18px;accent-color:#ffd66b;cursor:pointer}.s-reset{width:100%;margin-top:6px;background:#2f3e52;color:#e8eef5;border:none;border-radius:6px;padding:9px;font-size:13px;cursor:pointer}.s-reset:hover{background:#3c4f68}.s-done{width:100%;margin-top:8px;background:#ffd66b;color:#1b2330;border:none;border-radius:6px;padding:11px;font-size:14px;font-weight:800;cursor:pointer}.s-done:hover{background:#ffe08a}.s-keys-toggle{text-align:left}.s-key-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.s-key{min-width:70px;padding:5px 12px;background:#11181f;color:#ffd66b;border:1px solid #3c4f68;border-radius:6px;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;cursor:pointer}.s-key:hover{border-color:#ffd66b}.s-key.capturing{color:#1b2330;background:#ffd66b;border-color:#ffd66b}.s-presets{display:flex;gap:8px;margin:6px 0 2px}.s-preset{flex:1;background:#2f3e52;color:#e8eef5;border:1px solid #3c4f68;border-radius:6px;padding:9px;font-size:13px;font-weight:600;cursor:pointer}.s-preset:hover{background:#3c4f68;border-color:#ffd66b}.s-hint{color:#8aa0b8;font-size:12px;text-align:center;margin-top:10px}#inv-overlay{position:fixed;inset:0;background:#0000008c;display:flex;align-items:center;justify-content:center;z-index:100}#inv-panel{width:640px;max-width:calc(100vw - 32px);max-height:calc(100vh - 48px);overflow-y:auto;background:#1b2330;color:#e8eef5;border:1px solid #2f3e52;border-radius:12px;padding:16px 18px 18px;box-shadow:0 12px 48px #00000080}.inv-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.inv-title{font-size:16px;font-weight:700;color:#ffd66b}.inv-close{background:none;border:none;color:#8aa0b8;font-size:16px;cursor:pointer}.inv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:8px}.inv-slot{display:flex;flex-direction:column;align-items:center;gap:3px;background:#11181f;border:1px solid #2f3e52;border-radius:8px;padding:8px 4px 5px;cursor:pointer}.inv-slot:hover{border-color:#ffd66b;background:#16202b}.inv-slot img{width:40px;height:40px;image-rendering:auto}.inv-name{font-size:9px;color:#aebccc;text-align:center;line-height:1.1}.inv-hint{margin-top:12px;font-size:11px;color:#8aa0b8;text-align:center}.w-overlay{position:fixed;inset:0;background:#0000008c;display:flex;align-items:center;justify-content:center;z-index:100}.w-panel{width:360px;max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);overflow-y:auto;background:#1b2330;color:#e8eef5;border:1px solid #2f3e52;border-radius:12px;padding:18px 20px 20px;box-shadow:0 12px 48px #00000080;font-size:14px}.w-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.w-title{font-size:16px;font-weight:700;color:#ffd66b}.w-close{background:none;border:none;color:#8aa0b8;font-size:16px;cursor:pointer}.w-desc{color:#aebccc;line-height:1.45;margin:6px 0 14px}.w-label{color:#8aa0b8;font-size:11px;text-transform:uppercase;letter-spacing:.04em;margin:14px 0 4px}.w-input{width:100%;box-sizing:border-box;background:#11181f;border:1px solid #2f3e52;border-radius:6px;color:#e8eef5;padding:9px 10px;font-size:14px;margin-bottom:8px}.w-textarea{resize:vertical;min-height:64px;font-family:ui-monospace,Menlo,monospace}.w-btn{width:100%;background:#ffd66b;color:#1b2330;border:none;border-radius:6px;padding:10px;font-weight:700;font-size:14px;cursor:pointer;margin-top:4px}.w-btn:hover{background:#ffe08a}.w-btn-sm{background:#2f3e52;color:#e8eef5;border:none;border-radius:6px;padding:8px 12px;font-size:12px;cursor:pointer;white-space:nowrap}.w-btn-sm:hover{background:#3c4f68}.w-link{width:100%;background:none;border:none;color:#8aa0b8;font-size:12px;cursor:pointer;margin-top:12px;text-decoration:underline}.w-danger{color:#ff8080}.w-status{font-size:12px;color:#aebccc;margin-top:8px;min-height:14px}.w-error{color:#ff8080}.w-qr{display:block;margin:4px auto 8px;width:160px;height:160px;image-rendering:pixelated;border-radius:8px}.w-addr-row,.w-bal-row{display:flex;gap:8px;align-items:center}.w-addr{flex:1;word-break:break-all;font-size:12px;background:#11181f;padding:8px 10px;border-radius:6px}.w-bal{flex:1;font-size:18px;font-weight:700;color:#6bff9c}.w-muted{color:#8aa0b8;font-size:13px;font-weight:400}.w-net-row{display:flex;gap:6px;margin-bottom:12px}.w-net{flex:1;background:#11181f;color:#8aa0b8;border:1px solid #2f3e52;border-radius:6px;padding:6px;font-size:12px;text-transform:capitalize;cursor:pointer}.w-net-active{background:#2f3e52;color:#ffd66b;border-color:#ffd66b;font-weight:700}.w-actions{display:flex;gap:16px;margin-top:8px}.w-actions .w-link{margin-top:8px}.w-seed{margin-top:12px;padding:12px;background:#11181f;border:1px dashed #ff8080;border-radius:8px;font-family:ui-monospace,Menlo,monospace;line-height:1.6;word-spacing:4px;color:#ffd66b}.w-tabs{display:flex;gap:4px;margin-bottom:12px;border-bottom:1px solid #2f3e52}.w-tab{flex:1;background:transparent;border:none;color:#8aa0b8;padding:8px 6px;font-size:13px;font-weight:600;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px}.w-tab:hover{color:#e8eef5}.w-tab-active{color:#ffd66b;border-bottom-color:#ffd66b}.w-history{display:flex;flex-direction:column;gap:6px;margin:6px 0 10px}.w-tx{display:flex;align-items:center;justify-content:space-between;background:#11181f;border-radius:6px;padding:8px 10px;cursor:pointer}.w-tx:hover{background:#161f28}.w-tx-left{display:flex;flex-direction:column;gap:2px;min-width:0}.w-tx-id{font-family:ui-monospace,Menlo,monospace;font-size:11px;color:#aebccc}.w-tx-conf{font-size:11px;color:#6b7a8c}.w-tx-amt{font-size:14px;font-weight:700;white-space:nowrap;margin-left:10px}.w-tx-in{color:#6bff9c}.w-tx-out{color:#ff9c6b}.nft-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:12px;max-height:60vh;overflow-y:auto}.nft-card{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px;background:#11181f;border:1px solid #2f3e52;border-radius:8px}.nft-thumb{width:96px;height:96px;image-rendering:auto;background:radial-gradient(circle at 50% 40%,#1c2a3a,#0c1118);border-radius:6px}.nft-name{font-size:12px;font-weight:600;color:#e8eef5;text-align:center}.nft-rarity{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}#mkt-grid{grid-template-columns:repeat(2,1fr)}#mkt-grid .nft-card .w-input{margin:4px 0 0;padding:5px 7px;font-size:12px}#mkt-grid .nft-card .w-btn-sm{width:100%;margin-top:4px}#mkt-grid .nft-card .w-status{font-size:10px;text-align:center;margin:2px 0 0;word-break:break-word}.craft-overlay{position:fixed;inset:0;background:#06090e99;backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;z-index:100}.craft-panel{width:420px;max-width:calc(100vw - 32px);max-height:calc(100vh - 64px);overflow-y:auto;background:linear-gradient(180deg,#20293a,#161d28);color:#e8eef5;border:1px solid #34465c;border-radius:14px;padding:18px 20px 20px;box-shadow:0 18px 60px #0000008c,inset 0 1px #ffffff0a}.craft-label{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#7f93a8}.craft-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.craft-title{font-size:16px;font-weight:700;color:#ffd66b}.craft-close{background:none;border:none;color:#8aa0b8;font-size:16px;cursor:pointer}.craft-list{display:flex;flex-direction:column;gap:6px}.craft-row{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:#11181f;border:1px solid #2f3e52;border-radius:8px;padding:8px 10px;cursor:pointer;color:inherit}.craft-row:hover:not(.craft-row-disabled){border-color:#ffd66b;background:#16202b}.craft-row-disabled{opacity:.45;cursor:not-allowed}.craft-out-icon{width:36px;height:36px;image-rendering:auto;flex-shrink:0}.craft-info{flex:1;min-width:0}.craft-name{font-size:14px;font-weight:600}.craft-inputs{font-size:11px;color:#9fb2c6}.craft-ing-short{color:#ff8f8f}.craft-missing{font-size:11px;color:#ffb86b;margin-top:2px}.craft-hint{margin-top:12px;font-size:11px;color:#8aa0b8;text-align:center}.board-save{display:block;width:100%;margin-top:8px;padding:8px 0;background:#2a5c3e;border:1px solid #3d8f5f;border-radius:6px;color:#7fffa8;font-size:14px;font-weight:700;cursor:pointer;transition:background .12s}.board-save:hover{background:#347a52}.board-save:active{background:#1e4530}.craft-search{width:100%;margin-bottom:10px;padding:8px 10px;background:#11181f;border:1px solid #2f3e52;border-radius:8px;color:#e8eef5;font-size:13px;font-family:inherit;outline:none}.craft-search:focus{border-color:#ffd66b}.craft-search::placeholder{color:#6c7d92}.furnace-body{display:flex;align-items:center;justify-content:center;gap:18px;padding:14px 0}.furnace-col{display:flex;flex-direction:column;align-items:center;gap:8px}.furnace-slot-wrap{display:flex;flex-direction:column;align-items:center;gap:3px}.furnace-slot{position:relative;width:56px;height:56px;background:linear-gradient(180deg,#161f2b,#0e141c);border:2px solid #2a3848;border-radius:7px;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;box-shadow:inset 0 1px 1px #0006;transition:border-color .12s,box-shadow .12s,transform .05s}.furnace-slot:hover{border-color:#ffd66b;box-shadow:0 0 0 1px #ffd66b40,0 3px 10px #0006}.furnace-slot:active{transform:translateY(1px)}.furnace-slot img{width:44px;height:44px;image-rendering:auto;filter:drop-shadow(0 1px 1px rgba(0,0,0,.5))}.furnace-count{position:absolute;bottom:2px;right:2px;min-width:14px;height:16px;padding:0 4px;line-height:16px;text-align:center;font-size:12px;font-weight:800;color:#fff;background:#080c12e6;border-radius:8px;box-shadow:0 0 0 1px #00000080;text-shadow:0 1px 1px #000;pointer-events:none}.furnace-label{font-size:10px;color:#8aa0b8}.furnace-flame{width:18px;height:18px;border-radius:50%;background:#333}.furnace-flame.lit{background:radial-gradient(circle,#ffd66b,#ff7a1a);box-shadow:0 0 8px #ff8a1a}.furnace-arrow{position:relative;width:70px;height:8px;background:#11181f;border-radius:4px;overflow:hidden}.furnace-progress{position:absolute;inset:0;width:calc(var(--p, 0) * 100%);background:#ffd66b}.bp-dura{position:absolute;left:4px;right:4px;bottom:3px;height:3px;border-radius:2px;background:#3a0d0d}.bp-dura:before{content:"";position:absolute;inset:0;width:calc(var(--dura, 1) * 100%);border-radius:2px;background:hsl(calc(var(--dura, 1) * 120),80%,50%)}#bp-cursor{position:fixed;z-index:1000;transform:translate(-50%,-50%);pointer-events:none;width:48px;height:48px}#bp-cursor img{width:44px;height:44px;image-rendering:auto;filter:drop-shadow(0 2px 3px rgba(0,0,0,.6))}.bp-cursor-count{position:absolute;bottom:0;right:2px;font-size:12px;font-weight:700;color:#fff;text-shadow:1px 1px 0 #000}html,body{overscroll-behavior:none;touch-action:none}canvas{touch-action:none}#touch-controls{position:fixed;inset:0;pointer-events:none;z-index:6}#touch-controls.hidden{display:none}body:not(.is-touch) #touch-controls{display:none}body.is-touch #hud{z-index:7}#touch-move,#touch-look{position:absolute;top:0;height:100%;width:50%;pointer-events:auto;touch-action:none}#touch-move{left:0}#touch-look{right:0}#touch-stick{position:absolute;width:120px;height:120px;border-radius:50%;border:2px solid rgba(255,255,255,.35);background:#ffffff14;transform:translate(-50%,-50%);display:none;pointer-events:none}#touch-stick.active{display:block}#touch-knob{position:absolute;left:50%;top:50%;width:54px;height:54px;border-radius:50%;background:#ffffff80;transform:translate(-50%,-50%)}#touch-actions{position:absolute;right:calc(20px + env(safe-area-inset-right));bottom:calc(84px + env(safe-area-inset-bottom));display:flex;align-items:flex-end;gap:14px;pointer-events:none}.t-btn{pointer-events:auto;width:64px;height:64px;border-radius:50%;border:2px solid #ffd66b;background:#00000073;color:#fff;font-size:26px;line-height:1;display:flex;align-items:center;justify-content:center;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.t-btn:active{background:#ffd66b59}.t-btn.active{background:#ffd66b80;border-color:#fff;color:#fff}.t-btn-mine{width:80px;height:80px;font-size:34px}.t-btn-sm{width:52px;height:52px;font-size:22px}#touch-move-actions{position:absolute;left:calc(20px + env(safe-area-inset-left));bottom:calc(84px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;pointer-events:none}#touch-hotbar-nav{position:absolute;left:50%;bottom:calc(74px + env(safe-area-inset-bottom));transform:translate(-50%);display:flex;gap:200px;pointer-events:none}.t-chev{pointer-events:auto;width:46px;height:46px;border-radius:50%;border:2px solid #ffd66b;background:#00000073;color:#fff;font-size:24px;line-height:1;display:flex;align-items:center;justify-content:center;touch-action:none;user-select:none;-webkit-user-select:none}.t-chev:active{background:#ffd66b59}body.is-touch #menu-button{top:calc(8px + env(safe-area-inset-top));right:calc(8px + env(safe-area-inset-right));padding:9px 14px}#rotate-hint{display:none}@media (orientation: portrait){body.is-touch #rotate-hint{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;position:fixed;inset:0;z-index:150;background:#0d1b2af0;color:#e8eef5;text-align:center;font-size:18px;font-weight:600;pointer-events:none;padding:24px}body.is-touch #rotate-hint .rot-icon{font-size:56px;color:#ffd66b;animation:rot-spin 2.4s ease-in-out infinite}}@keyframes rot-spin{0%,70%{transform:rotate(0)}85%{transform:rotate(-90deg)}to{transform:rotate(-90deg)}}body.is-touch #hotbar{bottom:calc(14px + env(safe-area-inset-bottom));pointer-events:auto}body.is-touch #hotbar .slot{touch-action:none}@media (max-width: 720px){body.is-touch #hotbar .slot{width:40px;height:40px}body.is-touch #vitals{margin-left:-198px}body.is-touch #hunger,body.is-touch #air{margin-left:198px}}@media (max-width: 480px){#menu-panel{width:360px;padding:16px}.menu-grid{grid-template-columns:repeat(2,1fr)}}#start-overlay{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:200;background:#0d1b2a;background-image:radial-gradient(60% 50% at 50% 38%,rgba(78,102,168,.35),transparent 70%),radial-gradient(40% 40% at 80% 80%,rgba(120,80,160,.22),transparent 70%);transition:opacity .6s ease}#start-overlay.fading{opacity:0;pointer-events:none}#start-panel{width:420px;max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);overflow-y:auto;text-align:center;background:#1b2330;color:#e8eef5;border:1px solid #2f3e52;border-radius:14px;padding:28px 26px 22px;box-shadow:0 16px 60px #0000008c;font-size:14px}.start-title{margin:0;font-size:40px;font-weight:800;letter-spacing:.5px;color:#ffd66b;text-shadow:0 2px 18px rgba(255,214,107,.35)}.start-sub{color:#8aa0b8;margin-top:2px;font-size:13px}.start-tagline{color:#cfdae6;margin:10px 0 18px;font-size:13px}.start-bar{width:100%;height:8px;background:#11181f;border-radius:5px;overflow:hidden}#start-bar-fill{width:0%;height:100%;background:linear-gradient(90deg,#ffd66b,#ffb347);transition:width .12s linear}#start-progress-label{color:#8aa0b8;font-size:12px;margin-top:8px;font-variant-numeric:tabular-nums}#start-enter{width:100%;margin-top:16px;background:#ffd66b;color:#1b2330;border:none;border-radius:8px;padding:13px;font-size:16px;font-weight:800;cursor:pointer;transition:opacity .15s ease,transform 80ms ease}#start-enter:disabled{opacity:.4;cursor:default}#start-enter.ready{box-shadow:0 0 22px #ffd66b80}#start-enter.ready:hover{transform:translateY(-1px)}#start-enter.entering{opacity:.7;animation:start-enter-pulse 1.1s ease-in-out infinite}@keyframes start-enter-pulse{0%,to{opacity:.5}50%{opacity:.85}}#start-bar-fill.entering{background-image:linear-gradient(90deg,#ffb347,#ffe9a8,#ffb347);background-size:200% 100%;animation:start-shimmer 1.1s linear infinite}@keyframes start-shimmer{0%{background-position:200% 0}to{background-position:0 0}}@media (prefers-reduced-motion: reduce){#start-enter.entering,#start-bar-fill.entering{animation:none}}.start-section{text-align:left;margin-top:18px;padding-top:16px;border-top:1px solid #2f3e52}.start-section-title{color:#ffd66b;font-size:13px;font-weight:700;margin-bottom:10px}.start-btn{width:100%;background:#2f3e52;color:#e8eef5;border:none;border-radius:7px;padding:10px;font-size:14px;font-weight:600;cursor:pointer}.start-btn:hover{background:#3c4f68}.start-note{color:#8aa0b8;font-size:12px;margin-top:8px;line-height:1.45}.start-seg{display:flex;gap:8px}.start-seg-btn{flex:1;background:#2f3e52;color:#e8eef5;border:1px solid #3c4f68;border-radius:7px;padding:9px;font-size:13px;font-weight:600;cursor:pointer}.start-seg-btn:hover{border-color:#ffd66b}.start-seg-btn.active{background:#ffd66b;color:#1b2330;border-color:#ffd66b}.start-server{margin-top:8px}.start-input{width:100%;box-sizing:border-box;background:#11181f;color:#e8eef5;border:1px solid #2f3e52;border-radius:6px;padding:8px 10px;font-size:13px}.start-input:focus{outline:none;border-color:#ffd66b}.start-section .start-btn+.start-btn{margin-top:8px}.start-onboard-list{margin:0 0 12px;padding-left:2px;list-style:none}.start-onboard-list li{color:#cfdae6;font-size:13px;line-height:1.7}@media (prefers-reduced-motion: reduce){#start-overlay{transition:opacity 1ms linear}}
