@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@500;600;700&display=swap');
:root{color-scheme:dark;--ink:#eef7e8;--muted:#a2b5a6;--panel:#162720;--line:#c5e3ae24;--green:#c7e89a;--gold:#f4ce72;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{font:14px 'DM Sans',system-ui,sans-serif;color:var(--ink);background:#142922}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid var(--line);color:var(--ink);background:#20372bd9;border-radius:12px;min-height:42px;padding:10px 14px;transition:background .18s,border-color .18s,transform .18s}button:hover{background:#36523c;border-color:#c7e89a80}button:active{transform:translateY(1px)}button:disabled{opacity:.45;cursor:wait}a{color:inherit;text-decoration:none}input,select{background:#0c1b16;border:1px solid #aac89445;color:var(--ink);padding:12px 14px;border-radius:10px;width:100%;min-height:46px}input:focus,select:focus{outline:2px solid #b7d98a;outline-offset:1px}button:focus-visible,a:focus-visible{outline:2px solid var(--green);outline-offset:3px}#game{position:absolute;inset:0;width:100%;height:100%;touch-action:none;outline:none;image-rendering:pixelated}.hidden{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.hud{position:absolute;z-index:4}.top{top:calc(16px + var(--safe-top));left:20px;right:20px;display:flex;align-items:center;gap:14px;pointer-events:none}.top>*{pointer-events:auto}.brand{display:flex;align-items:center;gap:9px;font-family:'Space Grotesk',sans-serif;font-size:20px;letter-spacing:3px;text-shadow:0 2px 5px #0008}.brand-cube{display:grid;place-items:center;width:35px;height:35px;background:var(--green);color:#1f3b27;box-shadow:inset -4px -4px #82a660;font-size:24px;font-weight:700;border-radius:5px;letter-spacing:0}.world-chip{display:flex;gap:8px;align-items:center;padding:9px 12px;min-height:40px;background:#12251de6;box-shadow:0 4px 20px #0002;font-family:'Space Grotesk',sans-serif;font-size:12px;letter-spacing:1px}.world-chip small{color:var(--muted);border-left:1px solid var(--line);padding-left:9px}.status-dot{width:6px;height:6px;background:#c2df9c;border-radius:50%;display:inline-block;box-shadow:0 0 10px #bde79666}.wallets{margin-left:auto;display:flex;gap:6px}.wallet{display:flex;gap:7px;align-items:center;min-height:40px;font-size:13px;background:#10241ee8;box-shadow:0 4px 20px #0002;padding:8px 11px}.wallet i{font-style:normal;font-size:18px}.gem{color:#9bd9e5}.coin{color:var(--gold)}.wallet small{font-size:10px;color:var(--muted)}.top-actions{display:flex;gap:6px}.icon-button{width:40px;height:40px;min-height:40px;padding:4px;display:grid;place-items:center;font-size:23px;background:#12251de8;box-shadow:0 4px 20px #0002}.avatar-icon{color:var(--green);font-size:25px}
.lobby{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#09201830,#08221a10 50%,#07191185)}.lobby-card{width:min(450px,calc(100% - 38px));text-align:center;margin-bottom:32px;position:relative;padding:36px 30px 28px;background:linear-gradient(155deg,#1f362cee,#0e241cec);border:1px solid #c7e89a33;border-radius:24px;box-shadow:0 30px 90px #08171066;backdrop-filter:blur(8px)}.eyebrow{font-family:'Space Grotesk',sans-serif;color:#b9d599;letter-spacing:4px;font-size:10px}h1{font:700 clamp(62px,9vw,92px)/1 'Space Grotesk',sans-serif;letter-spacing:-6px;margin:16px 0 20px;color:#e0f5c4;text-shadow:0 5px #6b8d5666}.title-dot{color:#e8bd6f}.lobby-icons{display:flex;justify-content:center;gap:17px;margin:0 0 28px}.lobby-icons span{width:38px;height:38px;border-radius:10px;background:#30462e;border:1px solid #b3ce9130;display:grid;place-items:center;font-size:21px}.lobby form{display:grid;gap:10px}.lobby input{text-align:center;letter-spacing:2px;font-family:'Space Grotesk';background:#091b14b3;font-size:16px}.primary{background:var(--green);color:#223821;border-color:var(--green);font-weight:700;display:flex;justify-content:center;gap:20px;align-items:center;min-height:48px}.primary:hover{background:#daefa9}.lobby-links{display:flex;justify-content:center;gap:8px;margin-top:18px}.lobby-links button{padding:6px 10px;min-height:32px;border:0;background:transparent;color:#bccab5;font-size:12px}.lobby-footer{position:absolute;bottom:calc(22px + var(--safe-bottom));font-size:11px;letter-spacing:1px;display:flex;gap:9px;align-items:center;color:#c6d5bd}
.tool-rail{position:absolute;left:20px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:5px;padding:6px;border:1px solid var(--line);background:#12251dd9;border-radius:16px;z-index:3}.tool-rail button{position:relative;width:42px;height:42px;padding:3px;font-size:23px;border-color:transparent;background:transparent;min-height:42px}.tool-rail small{position:absolute;right:4px;bottom:3px;font-size:9px;color:var(--muted)}.tool-rail .selected{color:#152c20;background:var(--green);border-color:#e1f3ba}.side-actions{position:absolute;right:20px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:7px;z-index:3}.bottom-hud{position:absolute;left:50%;bottom:calc(22px + var(--safe-bottom));transform:translateX(-50%);z-index:3}.hotbar{display:flex;gap:5px;background:#10241de6;padding:7px;border:1px solid #c4dd9a35;border-radius:15px;box-shadow:0 8px 25px #0004}.hotbar button{position:relative;min-width:45px;width:45px;height:45px;min-height:45px;padding:4px;border-color:transparent;background:#32433290;display:grid;place-items:center;border-radius:8px}.hotbar button.active{border:2px solid #e2efb6;background:#566640}.hotbar button .qty{font-size:10px;position:absolute;bottom:2px;right:4px;text-shadow:0 1px 2px #000}.item-icon{display:block;width:26px;height:26px;border-radius:3px;box-shadow:inset -5px -5px #0003,inset 3px 3px #ffffff22;border:1px solid #ffffff18;position:relative}.item-icon.seed{width:16px;height:22px;border-radius:50% 20% 45% 20%;transform:rotate(25deg);box-shadow:inset -4px -3px #0003}.item-icon.lock::after{content:'▣';position:absolute;color:#fff9;left:5px;top:1px;font-size:20px}.selection-label{font-size:11px;text-align:center;margin-top:7px;color:#ebf1df;text-shadow:0 2px 4px #000;letter-spacing:.5px}.world-badge{position:absolute;left:20px;top:calc(70px + var(--safe-top));font-size:11px;background:#10241ddd;padding:7px 12px;border-radius:20px;border:1px solid var(--line);color:#cadcb7}.touch-controls{display:none;position:absolute;inset:0;pointer-events:none;z-index:3}.touch-controls button{pointer-events:auto;user-select:none;touch-action:none;width:55px;height:55px;background:#173126af;border:1px solid #d0e7c05c;box-shadow:0 5px 15px #0003;font-size:21px;border-radius:15px}.touch-directions{position:absolute;left:16px;bottom:calc(110px + var(--safe-bottom));display:flex;gap:8px}#jumpTouch{position:absolute;right:16px;bottom:calc(110px + var(--safe-bottom))}.chat-feed{position:absolute;left:85px;bottom:calc(115px + var(--safe-bottom));max-width:330px;font-size:11px;pointer-events:none;text-shadow:0 1px 4px #000}.chat-feed div{padding:4px 7px;background:#0e211aaa;border-radius:6px;margin-top:4px;overflow-wrap:anywhere}.chat-feed strong{color:var(--green)}.tutorial-chip{position:absolute;left:20px;bottom:calc(23px + var(--safe-bottom));display:flex;gap:4px;z-index:3}.tutorial-chip button{font-size:11px;min-height:34px;padding:7px 10px}.tutorial-chip button:last-child{padding:7px 9px}
#toast{position:absolute;top:calc(80px + var(--safe-top));left:50%;transform:translateX(-50%) translateY(-8px);padding:12px 18px;border:1px solid #c7e89a55;border-radius:12px;background:#12261ff5;box-shadow:0 8px 20px #0004;z-index:20;max-width:calc(100% - 40px);font-size:13px;text-align:center;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s}#toast.show{opacity:1;transform:translateX(-50%)}dialog{padding:0;width:min(640px,calc(100% - 24px));max-height:calc(100dvh - 70px);border:1px solid #acc7854d;border-radius:20px;background:#14271ff9;color:var(--ink);box-shadow:0 24px 100px #0009;overflow:hidden}dialog::backdrop{background:#04140cb0;backdrop-filter:blur(6px)}dialog header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:14px 20px}dialog h2{font:600 20px 'Space Grotesk';margin:0}#panelBody{overflow-y:auto;max-height:calc(100dvh - 145px);padding:20px}dialog h3{font:600 15px 'Space Grotesk';margin:22px 0 10px}dialog p{line-height:1.65;color:#bdcdbb;font-size:13px}dialog .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.item-card{border:1px solid var(--line);border-radius:12px;background:#22372a80;padding:13px;display:flex;flex-direction:column;align-items:center;gap:9px;min-height:115px;text-align:center;position:relative}.item-card .item-icon{width:35px;height:35px}.item-card .item-icon.seed{width:23px;height:31px}.item-card strong{font-size:12px;font-weight:500}.item-card small{font-size:10px;color:var(--muted)}.item-card button{padding:6px 12px;min-height:30px;font-size:11px}.item-card.unknown{opacity:.45}.item-card.unknown .item-icon{background:#7d8b76!important;filter:brightness(.5)}.row{display:flex;align-items:center;gap:9px;margin:10px 0}.row>*{flex:1}.row .compact{flex:0}.tabs{display:flex;gap:7px;margin-bottom:16px;flex-wrap:wrap}.tabs button{font-size:12px;padding:8px 12px;min-height:35px}.tabs button.active{border-color:var(--green);color:var(--green)}.form-stack{display:grid;gap:12px}.form-stack label{font-size:12px;color:var(--muted)}.form-stack label input,.form-stack label select{margin-top:7px}.muted{font-size:12px;color:var(--muted);line-height:1.6}.empty{text-align:center;padding:22px;color:var(--muted);font-size:13px}.balance-card{background:#21372b;border:1px solid var(--line);border-radius:14px;padding:16px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.balance-card strong{font:600 24px 'Space Grotesk';color:var(--gold)}.pill{font-size:10px;color:var(--green);border:1px solid var(--line);border-radius:12px;padding:3px 7px}.world-row{display:flex;align-items:center;justify-content:space-between;padding:11px 13px;border:1px solid var(--line);border-radius:10px;margin:7px 0;gap:10px}.world-row strong{font-size:13px}.code{font:600 22px 'Space Grotesk';letter-spacing:2px;text-align:center;padding:18px;background:#0c1c15;border:1px dashed #a9c58277;border-radius:10px;user-select:all}.danger{color:#f9b1a8;border-color:#c96a5c66}.recipe-line{display:flex;justify-content:center;gap:8px;align-items:center;font-size:11px;color:var(--muted);margin:4px 0}.info-table{width:100%;border-collapse:collapse;font-size:12px}.info-table td,.info-table th{padding:9px 7px;text-align:left;border-bottom:1px solid var(--line)}.info-table th{color:var(--green)}.setting-line{display:flex;justify-content:space-between;align-items:center;margin:14px 0;font-size:13px}.setting-line input{width:auto;min-height:unset}summary{cursor:pointer;padding:12px 0;color:var(--green);font-size:13px}details{border-bottom:1px solid var(--line)}
@media(pointer:coarse){.touch-controls{display:block}.tool-rail small{display:none}}
@media(max-width:700px){.top{left:12px;right:12px;top:calc(12px + var(--safe-top));gap:7px;flex-wrap:wrap}.brand strong{display:none}.brand-cube{width:31px;height:31px;font-size:21px}.world-chip{font-size:10px;padding:6px 8px;min-height:35px;max-width:145px}.world-chip #worldLabel{max-width:90px;overflow:hidden;text-overflow:ellipsis}.wallets{gap:4px}.wallet{padding:5px 7px;gap:4px;min-height:35px;font-size:11px}.wallet i{font-size:14px}.wallet small{font-size:8px}.icon-button{width:35px;height:35px;min-height:35px;font-size:21px}.top-actions{gap:4px}.wa-wallet{display:none}.world-badge{left:12px;top:calc(57px + var(--safe-top));padding:5px 9px;font-size:9px}.tool-rail{left:12px;padding:4px;gap:2px}.tool-rail button{width:33px;height:35px;min-height:35px;font-size:20px}.side-actions{right:12px;gap:6px}.bottom-hud{bottom:calc(18px + var(--safe-bottom))}.hotbar{padding:5px;gap:3px;border-radius:12px}.hotbar button{width:35px;min-width:35px;height:37px;min-height:37px;padding:2px}.hotbar .item-icon{width:23px;height:23px}.hotbar .item-icon.seed{width:14px;height:20px}.hotbar button .qty{font-size:9px}.selection-label{font-size:10px}.tutorial-chip{left:12px;bottom:calc(187px + var(--safe-bottom))}.tutorial-chip button{padding:5px 7px;font-size:10px;min-height:28px}.chat-feed{left:58px;bottom:calc(190px + var(--safe-bottom));max-width:calc(100% - 120px);font-size:10px}.lobby-card{padding:32px 24px 24px;max-width:380px}.lobby-card h1{font-size:74px}dialog .grid{grid-template-columns:repeat(3,1fr);gap:7px}.item-card{padding:10px 6px;min-height:105px}.item-card strong{font-size:11px}#panelBody{padding:16px}.lobby-footer{font-size:10px}}
@media(max-width:380px){.top{gap:5px}.world-chip{max-width:116px}.wallet{padding:5px}.wallet small{display:none}.hotbar{gap:2px}.hotbar button{width:32px;min-width:32px}dialog .grid{grid-template-columns:repeat(2,1fr)}}
@media(max-height:500px){.tool-rail{flex-direction:row;left:12px;top:auto;bottom:calc(18px + var(--safe-bottom));transform:none}.tool-rail button{width:30px;height:32px;min-height:32px;font-size:18px}.side-actions{flex-direction:row;top:calc(65px + var(--safe-top));right:12px;transform:none}.bottom-hud{bottom:calc(15px + var(--safe-bottom))}.touch-directions{bottom:calc(80px + var(--safe-bottom))}#jumpTouch{bottom:calc(80px + var(--safe-bottom))}.tutorial-chip{bottom:calc(150px + var(--safe-bottom))}.lobby-card{padding:18px 24px;margin:35px 0 0;width:340px}.lobby-card h1{font-size:50px;margin:8px 0}.lobby-icons{display:none}.lobby-links{margin-top:9px}.eyebrow{font-size:9px}.lobby-footer{display:none}.chat-feed{bottom:105px}.hotbar button{width:34px;min-width:34px;height:35px;min-height:35px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Valen's paper-and-pixel game UI. Flat frames, tactile buttons, original sprite icons. */
:root{color-scheme:light;--ink:#483c30;--muted:#877358;--panel:#fff0d0;--line:#b397694d;--green:#b9d981;--gold:#bd8539}
body{font-family:Verdana,system-ui,sans-serif}button{color:#4c3c2b;background:#f9e9c4;border:2px solid #836343;border-radius:5px;box-shadow:0 3px 0 #695138;font-weight:600;transition:filter .12s,transform .12s}button:hover{background:#fff1cf;border-color:#674d36;filter:brightness(1.05)}button:active{transform:translateY(2px);box-shadow:0 1px 0 #695138}button:disabled{cursor:default}input,select{background:#fff7e3;color:#4b3b29;border:2px solid #b19568;border-radius:4px;box-shadow:inset 0 2px 0 #e4d1a4}input:focus,select:focus{outline-color:#7eab5b}.pixel-icon{width:26px;height:26px;display:block;shape-rendering:crispEdges;image-rendering:pixelated}.brand{font-family:'Pixelify Sans',monospace;text-shadow:0 2px #fff0cf;color:#405638;font-size:24px;letter-spacing:1px}.brand-cube{background:#aad370;color:#466633;box-shadow:inset -4px -4px #7d9c50,0 3px #604b34;border:2px solid #4d683d;border-radius:3px}.world-chip,.wallet,.icon-button{background:#fff0d5ed;border:2px solid #8c704e;box-shadow:0 3px 0 #715338;color:#4b412e;border-radius:5px}.world-chip{font-family:'Pixelify Sans',monospace;font-size:15px;letter-spacing:.3px}.world-chip small,.wallet small{color:#907b58}.status-dot{background:#709c4b;box-shadow:none}.wallet i .pixel-icon{width:20px;height:20px}.wallet{font-weight:700}.wallet small{font-weight:400}.world-badge{background:#fff0d1ee;color:#675539;border:1px solid #8f714c;border-radius:4px;font-family:'Pixelify Sans',monospace;font-size:13px}.lobby{background:linear-gradient(180deg,#bfe4d600 65%,#3e684127)}.lobby-card{background:none;border:none;box-shadow:none;backdrop-filter:none;padding:25px 30px}.eyebrow{font:600 13px 'Pixelify Sans',monospace;letter-spacing:3px;color:#426047;text-shadow:0 1px #e3f0c4}h1{margin:12px 0 14px;text-shadow:none}.valen-logo{width:100%;max-width:370px;filter:drop-shadow(0 4px 0 #fff4cc99);shape-rendering:crispEdges}.lobby-icons{margin-bottom:24px}.lobby-icons span{border:2px solid #7e7049;background:#fff1ca;border-radius:5px;box-shadow:0 3px #79603e;width:40px;height:40px}.lobby-icons .pixel-icon{width:28px;height:28px}.lobby input{background:#fff4daf5;font-family:'Pixelify Sans',monospace;font-size:20px;border-color:#7c654b;box-shadow:inset 0 3px #dfcba4}.primary{color:#374a2f;background:#bad680;border:2px solid #628443;box-shadow:0 3px 0 #4a6638;font-family:'Pixelify Sans',monospace;font-size:19px}.primary:hover{background:#cde696;border-color:#567839}.lobby-links button{background:#fff0d8db;border:1px solid #836644;color:#584a31;border-radius:4px;box-shadow:0 2px #806743;font-weight:400}.lobby-footer{color:#f6edcc;background:#456843;border:2px solid #2e4a30;padding:7px 13px;border-radius:4px;box-shadow:0 2px #263f27}.lobby-footer .status-dot{background:#c7df8b}.tool-rail{background:#e8d6accf;border:2px solid #836847;border-radius:5px;padding:5px;box-shadow:0 4px #715538;backdrop-filter:none}.tool-rail button{background:#fbebc4;border:1px solid #ad9063;border-radius:3px;box-shadow:0 2px #bea275}.tool-rail .selected{background:#c2dd90;border:2px solid #638444;box-shadow:inset 0 2px #e3efb7,0 2px #759451}.tool-rail small{color:#887355}.side-actions .icon-button{width:42px;height:42px}.hotbar{background:#ecdab3e8;border:2px solid #80633e;border-radius:5px;box-shadow:0 4px #604c35;padding:6px;gap:5px}.hotbar button{border:1px solid #ad9064;background:#fff1d2;border-radius:3px;box-shadow:inset 0 2px #fff8e4,0 2px #c4a574}.hotbar button.active{background:#d3e5a2;border:2px solid #608145;box-shadow:inset 0 2px #eaf4ca,0 2px #769651}.hotbar button .qty{color:#fff7e3;text-shadow:1px 1px #513c27,-1px -1px #513c27;font-weight:700}.item-icon{border-radius:1px;border:1px solid #694e3e99;box-shadow:inset -5px -5px #0003,inset 3px 3px #ffffff44}.selection-label{color:#fff0d1;text-shadow:1px 2px #3d4d32;font-family:'Pixelify Sans',monospace;font-size:14px}.touch-controls button{background:#f4e5bed9;border:2px solid #816640;color:#574a32;border-radius:6px;box-shadow:0 4px #6c573c}.chat-feed div{background:#f5e9cbea;color:#5a4b36;text-shadow:none;border:1px solid #9b8058;border-radius:3px}.chat-feed strong{color:#4a713d}.tutorial-chip button{background:#fff0d2e8;color:#705538;border:1px solid #9b7950;border-radius:4px;box-shadow:0 2px #79603f}#toast{background:#fff0d6fa;color:#67482e;border:2px solid #8d704b;border-radius:5px;box-shadow:0 4px #6b5136;font-size:12px}dialog{background:#fff1d5;color:#4a3b29;border:3px solid #765a39;border-radius:7px;box-shadow:0 7px #57432d,0 12px 60px #1c382a66}dialog::backdrop{background:#203e3560;backdrop-filter:none}dialog header{background:#ddc493;border-bottom:2px solid #a68856;padding:12px 17px}dialog h2{font:700 25px 'Pixelify Sans',monospace;color:#59462e}dialog h3{font-family:'Pixelify Sans',monospace;font-size:19px;color:#5d4d33}dialog p{color:#756348;font-size:12px}dialog .icon-button{background:#f5e4ba;box-shadow:0 2px #957747}#panelBody{background:#fff1d5}.item-card{background:#f2dfb6;border:2px solid #c0a16d;border-radius:5px;box-shadow:inset 0 2px #fff4d8}.item-card strong{color:#614e34}.item-card small{color:#897148}.item-card button{border-radius:3px;font-weight:500}.inventory-pick{display:flex;flex-direction:column;align-items:center;gap:9px;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;width:100%;min-height:58px}.balance-card{background:#f2dfb6;border:2px solid #baa06d;border-radius:5px}.balance-card strong{font-family:'Pixelify Sans',monospace;color:#af7c31}.pill{color:#597841;border-color:#a7b078;background:#e3e6b5;border-radius:3px}.tabs button.active{background:#d3e6a3;color:#4b6d38;border-color:#809759}.world-row{background:#f1dfb6;border:1px solid #bd9f70;border-radius:4px}.danger{color:#8f4637;border-color:#ae7352;background:#f2d2af}summary{color:#607e3e;font-weight:600}details{border-color:#c6ac7c}.info-table th{color:#597d3e}.trade-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:15px}.trade-columns section{border:2px solid #c0a06a;background:#f7e7c3;padding:12px;border-radius:4px}.trade-columns h3{margin:0 0 12px;font-size:18px}.trade-item{display:flex;align-items:center;gap:8px;font-size:11px;margin:8px 0}.trade-item .item-icon{width:21px;height:21px;flex:none}.trade-item span:nth-child(2){flex:1}.trade-item button{min-height:26px;padding:3px 7px}.trade-item strong{font-size:11px}
@media(max-width:700px){.world-chip{font-size:13px}.world-badge{font-size:11px}.side-actions .icon-button{width:35px;height:35px}.pixel-icon{width:24px;height:24px}.tool-rail .pixel-icon{width:25px;height:25px}.wallet i .pixel-icon{width:17px;height:17px}.selection-label{font-size:12px}.lobby-card h1{margin:12px 0}.valen-logo{max-width:330px}.lobby input{font-size:19px}.trade-columns{gap:7px}.trade-columns section{padding:9px}.trade-item{font-size:10px}.trade-item .item-icon{width:18px;height:18px}}
@media(max-height:500px){.lobby-card{padding:10px 24px}.lobby-card h1{margin:4px 0}.valen-logo{height:65px}.side-actions .icon-button{width:34px;height:34px}.tool-rail{padding:4px}.tool-rail button .pixel-icon{width:23px;height:23px}}
dialog.preview-panel{margin:auto auto 25px;width:min(330px,calc(100% - 24px))}dialog.preview-panel::backdrop{background:transparent}
.layer-button{position:absolute;left:25px;top:calc(50% + 170px);min-height:32px;width:45px;padding:4px;font:600 15px 'Pixelify Sans',monospace;z-index:3}.layer-button.active{background:#c5de96;border-color:#638544}
@media(max-width:700px){.layer-button{left:16px;top:calc(50% + 128px);width:33px;font-size:13px;min-height:28px}}
@media(max-height:500px){.layer-button{left:236px;top:auto;bottom:calc(23px + var(--safe-bottom));width:32px}}
@media(max-width:450px){.top{display:grid;grid-template-columns:30px minmax(35px,1fr) auto 64px;gap:5px}.top .brand-cube{width:30px;height:30px}.top .world-chip{max-width:100%;padding:5px 7px;gap:6px}.top .world-chip #worldLabel{max-width:100%;font-size:12px}.top .world-chip small{display:none}.wallets{margin-left:0;gap:4px}.wallet{padding:5px;gap:4px;min-height:32px}.wallet small{font-size:8px}.wallet i .pixel-icon{width:15px;height:15px}.top-actions .icon-button{width:30px;height:32px;min-height:32px}.top-actions .pixel-icon{width:23px;height:23px}.world-badge{top:calc(55px + var(--safe-top))}}
.item-icon.sprite{background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;transform:none!important;object-fit:contain;image-rendering:pixelated;width:32px;height:32px}.inventory-pick .sprite{width:44px;height:44px}.hotbar .sprite{width:32px;height:32px}.empty-slot{width:43px;height:48px;border:2px solid #b49a6c;box-shadow:inset 0 2px #8c75472b;border-radius:3px;background:#d8c19555}.hotbar{contain:layout paint}canvas{touch-action:none}
@media(max-width:700px){.hotbar .sprite{width:25px;height:25px}.empty-slot{width:32px;height:39px}}
.grow-hint{position:absolute;z-index:4;transform:translate(-50%,-100%);min-height:32px;padding:7px 11px;white-space:nowrap;background:#fff1d5f5;border:2px solid #816640;box-shadow:0 3px #695138;font-family:'Pixelify Sans',monospace;font-size:16px}.grow-hint:active{transform:translate(-50%,-100%)}.grow-hint::after{content:'';position:absolute;left:calc(50% - 5px);bottom:-9px;border:5px solid transparent;border-top-color:#816640}.grow-hint[hidden]{display:none}.plant-heading{display:flex;align-items:center;justify-content:center;gap:14px;margin:4px 0 20px}.plant-heading .sprite{width:48px;height:48px}.plant-heading strong{font:26px 'Pixelify Sans',monospace;color:#54783d}.plant-care{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:20px}.plant-care button{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}.plant-care .sprite{width:34px;height:34px}.plant-care small{font-size:11px;color:#648846}.craft-card{display:flex;flex-direction:column;align-items:center;gap:9px;padding:14px 8px;background:#f2dfb6;min-width:0}.craft-card.craftable{border-color:#7e9b53;background:#e5e5b4}.craft-card strong{font-size:12px}.craft-card>.sprite{width:40px;height:40px}.craft-card small{font-size:11px}.craft-ingredients{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}.craft-ingredients>span{display:flex;align-items:center;gap:2px;font-size:11px}.craft-ingredients .sprite{width:19px;height:19px}.missing{color:#ad4d35}.craft-result{display:flex;justify-content:center;align-items:center;gap:18px;margin:4px 0 18px}.craft-result .sprite{width:64px;height:64px}.craft-result strong{font:28px 'Pixelify Sans',monospace}.craft-need{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid #d9bf92}.craft-need .sprite{width:28px;height:28px}.craft-need span{flex:1}.craft-need strong{font-size:12px}
@media(max-width:450px){.grow-hint{font-size:14px}.plant-care{gap:8px}.plant-care button{padding:8px}.craft-card{padding:11px 5px}.craft-ingredients{gap:4px}.craft-card strong{font-size:11px}}
