@font-face{font-family:Pixelora;src:url(fonts/DejaVuSans.ttf) format('truetype');font-display:swap}@font-face{font-family:Pixelora;src:url(fonts/DejaVuSans-Bold.ttf) format('truetype');font-weight:700;font-display:swap}
:root{--ink:#141b2c;--panel:#182236;--line:#ffffff14;--muted:#94a3b8;--lime:#c4f575;--purple:#a795ff;--text:#f1f5f9}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;background:var(--ink);color:var(--text);font-family:Pixelora,system-ui,sans-serif;font-size:14px}button,input,select{font:inherit}button{cursor:pointer;border:0;color:inherit;background:none;touch-action:manipulation}button:disabled{opacity:.45;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--lime);outline-offset:3px}a{color:inherit;text-decoration:none}.hidden{display:none!important}.welcome{min-height:100dvh;padding:30px 6vw 20px;overflow:hidden;background:radial-gradient(ellipse at 80% 42%,#253755 0,transparent 55%),#101827}.welcome-top{display:flex;align-items:center;justify-content:space-between}.brand{display:inline-flex;align-items:center;gap:11px;font-size:29px;font-weight:700;letter-spacing:-1.7px}.brand img{width:39px;height:39px}.brand-dot{color:var(--lime)}.version,.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:#b3bfd0}.welcome-grid{display:grid;grid-template-columns:1fr 1.1fr;max-width:1400px;margin:62px auto 38px;gap:4vw;align-items:center}.welcome-copy h1{font-size:clamp(42px,4.8vw,76px);line-height:1.05;letter-spacing:-4px;margin:18px 0 22px}.welcome-copy h1 span{color:var(--lime)}.welcome-copy>p{max-width:440px;line-height:1.8;color:#a7b6c9;font-size:14px}.feature-row{display:flex;gap:25px;margin:23px 0 30px;font-size:12px}.feature-row span:first-child{color:var(--lime)}.feature-row span:nth-child(2){color:#a995fb}.feature-row span:nth-child(3){color:#f1c079}.auth-card{background:#1b273bbd;border:1px solid #ffffff10;border-radius:18px;padding:23px;max-width:410px;box-shadow:0 20px 80px #0002}.tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin-bottom:19px}.tabs button{padding:4px 15px 15px;color:var(--muted);font-size:12px}.tabs button.active{color:var(--lime);border-bottom:2px solid var(--lime)}label{display:block;color:#b4c1d4;font-size:11px;margin:13px 0}input,select{display:block;background:#101a2b;border:1px solid #ffffff18;border-radius:8px;padding:12px 13px;color:var(--text);width:100%;margin-top:7px;font-size:12px}input::placeholder{color:#6e8099}input[type=color]{height:46px;padding:4px}.primary{background:var(--lime);color:#182637;border-radius:9px;padding:13px 20px;font-weight:700;font-size:12px}.primary:hover{background:#d9ffa1;transform:translateY(-1px)}.wide{width:100%;display:flex;justify-content:space-between;margin-top:18px}.auth-card small{display:block;text-align:center;font-size:9px;color:#7c8fa9;margin-top:18px}.form-error{font-size:11px;color:#ffadad;min-height:0;line-height:1.6}.welcome-art{position:relative;align-self:stretch;display:flex;align-items:center}.welcome-art>img{width:100%;image-rendering:pixelated;border-radius:28px;box-shadow:0 40px 90px #0005;border:1px solid #ffffff10}.art-badge{position:absolute;top:10%;right:-18px;background:#1d2d42;border:1px solid #ffffff19;border-radius:14px;padding:16px 18px;display:flex;gap:10px;align-items:center;font-size:10px;box-shadow:0 15px 40px #0003}.art-badge strong{color:var(--lime);font-size:12px}.live-dot{display:inline-block;width:6px;height:6px;border-radius:100%;background:var(--lime);box-shadow:0 0 9px #c4f57555}.art-caption{position:absolute;bottom:5%;left:20px;font-size:9px;letter-spacing:2px;color:#91a9c4}.welcome-footer{display:flex;justify-content:space-between;font-size:10px;color:#667b98;max-width:1400px;margin:auto}.game{position:fixed;inset:0;overflow:hidden;background:#789dba}#world-canvas{position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated;outline:0;touch-action:none}.game-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(#09122388,transparent 150px,transparent 75%,#09122377)}.game-header{position:absolute;top:max(15px,env(safe-area-inset-top));left:23px;right:23px;display:flex;justify-content:space-between;align-items:center;gap:15px}.brand.small{font-size:25px;text-shadow:0 2px 5px #0004;letter-spacing:-1.4px}.brand.small img{width:31px;height:31px}.world-pill{display:flex;align-items:center;gap:15px;background:#111d2dda;border:1px solid #ffffff17;border-radius:11px;padding:10px 17px;min-width:205px;box-shadow:0 8px 25px #0002}.world-pill small{display:block;font-size:7px;letter-spacing:1px;color:#879bb3;text-align:left;margin-bottom:5px}.world-pill strong{display:block;font-size:13px;letter-spacing:1px;text-align:left}.world-pill>span:last-child{margin-left:auto}.world-orb{color:var(--lime);font-size:28px}.header-right{display:flex;align-items:center;gap:12px}.gem-pill{font-size:15px;color:#a999ff;background:#111d2dda;border:1px solid #ffffff15;border-radius:9px;padding:12px 17px}.gem-pill b{font-size:12px;color:white;margin-left:5px}.avatar-button{font-size:23px;border:1px solid #ffffff25;background:#303e66;border-radius:10px;width:43px;height:43px}.world-status{position:absolute;top:86px;left:25px;display:flex;gap:15px;align-items:center;color:#d9e5ef;font-size:9px;text-shadow:0 1px 3px #0008}.world-status span{display:flex;align-items:center;gap:6px}.game-nav{position:absolute;right:22px;top:120px;display:flex;flex-direction:column;gap:9px}.game-nav button{background:#132137d9;border:1px solid #ffffff17;border-radius:11px;width:57px;padding:9px 0;box-shadow:0 3px 10px #0002;transition:.18s}.game-nav button:hover{background:#354363;transform:translateX(-3px)}.game-nav span{display:block;font-size:21px;color:#d5dfed;height:25px}.game-nav small{display:block;font-size:8px;color:#b3c3d7;margin-top:3px}.bottom-bar{position:absolute;bottom:max(24px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:9px;border-radius:13px;padding:8px;background:#111c2de8;border:1px solid #ffffff20;box-shadow:0 10px 40px #0004}.bag-button{height:51px;width:43px;border-radius:8px;font-size:20px}.bag-button small{display:block;font-size:8px;margin-top:3px}.hotbar{display:flex;gap:6px}.hotbar button{width:50px;height:51px;border-radius:7px;background:#ffffff09;position:relative;border:2px solid transparent;padding:6px}.hotbar button.active{border-color:var(--lime);background:#c4f57515}.hotbar img{width:30px;height:30px;image-rendering:pixelated}.hotbar .key-number{position:absolute;top:3px;left:4px;font-size:7px;color:#8393ab}.hotbar .quantity{position:absolute;bottom:2px;right:4px;font-size:8px}.control-hint{position:absolute;bottom:7px;left:50%;transform:translateX(-50%);font-size:8px;color:#c1d0df;white-space:nowrap}.control-hint span{padding:0 8px}.chat-box{position:absolute;bottom:126px;left:22px;width:275px;border:1px solid #ffffff19;background:#152238c9;border-radius:11px;overflow:hidden}.chat-heading{width:100%;display:flex;align-items:center;gap:8px;padding:12px;color:#c1d1e3;font-size:10px;border-bottom:1px solid var(--line)}.chat-heading span:last-child{margin-left:auto}.chat-messages{height:115px;overflow:auto;padding:5px 13px;font-size:10px;line-height:1.6;scrollbar-width:thin}.chat-messages p{margin:5px 0;overflow-wrap:anywhere}.chat-messages b{color:var(--lime);margin-right:6px}.chat-messages .system{color:#869bb5;font-size:9px}.chat-box form{display:flex;border-top:1px solid var(--line);padding:4px 10px;gap:4px}.chat-box input{border:0;background:none;margin:0;padding:8px 0;font-size:10px}.chat-box form button{color:var(--lime)}.chat-box.collapsed .chat-messages,.chat-box.collapsed form{display:none}.world-title-float{position:absolute;top:24%;left:50%;transform:translateX(-50%);text-align:center;pointer-events:none;opacity:0}.world-title-float.show{animation:worldEntry 3s ease both}.world-title-float span{display:block;font-size:10px;letter-spacing:4px;color:#e7f1ff}.world-title-float strong{display:block;font-size:38px;letter-spacing:5px;color:white;text-shadow:0 3px 0 #384773;margin-top:8px}@keyframes worldEntry{0%{opacity:0;top:26%}15%,70%{opacity:1;top:24%}100%{opacity:0;top:21%}}.tile-tooltip{position:absolute;pointer-events:none;background:#111d2deb;border:1px solid var(--line);padding:8px 11px;border-radius:7px;font-size:10px;max-width:230px;z-index:3;white-space:pre-line}.zoom-controls{position:absolute;left:24px;top:122px;display:flex;background:#132137d9;border:1px solid var(--line);border-radius:9px;overflow:hidden}.zoom-controls button{width:33px;height:34px;font-size:18px;border-right:1px solid var(--line)}.zoom-controls button.on{color:var(--lime)}.mobile-controls{display:none}.modal{position:fixed;inset:0;z-index:10;background:#070d1ca6;backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;padding:20px}.modal-card{background:#172135;border:1px solid #ffffff19;border-radius:19px;width:min(780px,100%);max-height:85dvh;display:flex;flex-direction:column;box-shadow:0 35px 120px #0005;animation:pop .15s ease-out}.modal-card>header{display:flex;align-items:center;justify-content:space-between;padding:25px 28px;border-bottom:1px solid var(--line)}.modal-card>header span{font-size:8px;color:var(--lime);letter-spacing:2px}.modal-card h2{font-size:22px;letter-spacing:-.6px;margin:6px 0 0}.close-button{background:#ffffff09;border:1px solid var(--line);border-radius:8px;width:34px;height:34px;font-size:24px;color:#a1b1c7}#modal-body{overflow:auto;padding:22px 28px;scrollbar-width:thin}#modal-body p{font-size:12px;color:#9fb1c8;line-height:1.8}.panel-note{color:#91a4be;font-size:11px;line-height:1.7;margin:0 0 17px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(115px,1fr));gap:10px}.item-card{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;padding:17px 8px 11px;border:1px solid var(--line);background:#1f2c43;border-radius:10px;min-height:124px;transition:.15s}.item-card:hover{border-color:#c4f57566;background:#293850}.item-card.active{border-color:var(--lime)}.item-card img{width:42px;height:42px;image-rendering:pixelated;margin-bottom:9px}.item-card strong{font-size:9px;line-height:1.6}.item-card small{font-size:9px;color:#9aabc3;margin-top:5px}.item-card em{position:absolute;top:7px;right:8px;font-style:normal;font-size:8px;color:var(--lime)}.toolbar{display:flex;gap:8px;align-items:center;margin-bottom:17px;flex-wrap:wrap}.toolbar input{margin:0;flex:1;min-width:140px}.chip{border:1px solid var(--line);padding:8px 11px;border-radius:7px;font-size:10px;color:#a9b9d0}.chip.active{color:var(--lime);background:#c4f57510;border-color:#c4f57566}.world-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.world-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#1f2c43;text-align:left;padding:0;transition:.15s}.world-card:hover{border-color:var(--lime);transform:translateY(-2px)}.world-card .preview{height:95px;background-size:cover;background-position:center;image-rendering:pixelated;position:relative}.world-card .preview.forest{background-image:url(biomes/forest.png)}.world-card .preview.desert{background-image:url(biomes/desert.png)}.world-card .preview.snow{background-image:url(biomes/snow.png)}.world-card .preview span{position:absolute;right:8px;top:8px;background:#132137c9;border-radius:5px;padding:4px 6px;font-size:8px}.world-card .info{padding:13px}.world-card strong{font-size:12px;letter-spacing:1px}.world-card small{display:block;font-size:8px;color:#8fa5c0;margin-top:6px}.create-world{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.inline-form{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.inline-form label{flex:1;min-width:120px}.inline-form button{margin-bottom:13px}.list{display:flex;flex-direction:column;gap:9px}.list-row{display:flex;align-items:center;gap:13px;padding:13px;border:1px solid var(--line);background:#1e2b41;border-radius:10px}.list-row img{width:36px;height:36px;image-rendering:pixelated}.list-row .info{flex:1}.list-row strong{font-size:11px}.list-row small{display:block;color:#91a7c1;font-size:9px;margin-top:5px;line-height:1.6}.list-row button{font-size:10px;white-space:nowrap}.secondary{padding:10px 14px;border:1px solid #ffffff20;background:#293750;border-radius:7px;font-size:11px}.danger{color:#ffadad;border-color:#ffadad44}.empty{padding:40px;text-align:center;font-size:12px;color:#9cadc4;background:#101a2b;border-radius:11px}.balance{display:flex;align-items:center;gap:10px;padding:16px;background:#a795ff12;border:1px solid #a795ff33;border-radius:11px;margin-bottom:20px;font-size:12px}.balance b{color:#b5a4ff;font-size:19px}.progress{height:5px;border-radius:5px;background:#ffffff10;margin-top:10px;overflow:hidden}.progress i{display:block;height:100%;background:var(--lime);width:0;transition:width .3s}.trade-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}.trade-column{background:#101a2b;border:1px solid var(--line);border-radius:11px;padding:17px}.trade-column h3{font-size:13px;margin:0 0 14px}.trade-column p{margin:7px 0}.trade-column .offer{min-height:65px;font-size:11px;line-height:1.8;color:#c1d0e2}.trade-state{font-size:9px;margin-top:10px;color:var(--lime)}.trade-buttons{display:flex;gap:9px;justify-content:flex-end;margin-top:18px;flex-wrap:wrap}.trade-offer-builder{margin-top:18px;border-top:1px solid var(--line);padding-top:15px}.notification{background:#1f2d43;border:1px solid #ffffff1c;border-left:3px solid var(--lime);padding:13px 17px;border-radius:8px;font-size:11px;max-width:350px;line-height:1.5;box-shadow:0 8px 25px #0003;animation:pop .2s ease}.notification.error{border-left-color:#f39a9a}.notifications{position:fixed;right:24px;bottom:112px;z-index:30;display:flex;flex-direction:column;gap:8px;pointer-events:none}.loading{position:fixed;inset:0;z-index:40;background:#111a2b;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px}.loading img{width:52px;animation:bob 1s ease-in-out infinite alternate}.loading strong{font-size:12px;color:#a9bdd5}.loading span{color:var(--lime)}.profile-card{display:flex;align-items:center;gap:18px;padding:19px;background:#1d2c43;border:1px solid var(--line);border-radius:11px}.profile-card canvas{width:80px;height:100px;image-rendering:pixelated}.profile-card h3{margin:0 0 8px}.profile-card small{color:#a1b3cb}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0}.stat-grid div{padding:15px;border:1px solid var(--line);border-radius:9px;text-align:center}.stat-grid strong{display:block;font-size:21px;color:var(--lime)}.stat-grid small{display:block;font-size:9px;color:#90a5c0;margin-top:6px}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.help-grid section{background:#1e2b41;padding:16px;border-radius:10px}.help-grid h3{font-size:12px;color:var(--lime);margin:0}.help-grid p{font-size:11px!important}.banner{background:#c4f57512;border:1px solid #c4f57533;padding:14px;border-radius:9px;font-size:11px;line-height:1.7;color:#d1e4bb;margin-bottom:17px}.offer-entry{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;padding:6px 0}.offer-entry button{color:#ffadad}.wide-note{font-size:9px;color:#879db9;margin-top:12px;line-height:1.6}@keyframes pop{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes bob{from{transform:translateY(0)}to{transform:translateY(-8px)}}
@media (max-width:900px){.welcome-grid{gap:20px;margin-top:35px}.welcome-copy h1{letter-spacing:-2.5px}.welcome-art{align-self:center}.art-badge{display:none}.welcome-art>img{border-radius:18px}.game-header{left:15px;right:15px}.game-nav{right:14px;gap:7px;top:108px}.game-nav button{width:46px;padding:7px 0}.game-nav span{font-size:18px;height:22px}.game-nav small{font-size:7px}.chat-box{width:215px;left:15px;bottom:125px}.chat-messages{height:85px}.hotbar button{width:43px;height:47px}.hotbar{gap:4px}.hotbar img{width:26px;height:26px}.world-status{left:17px}.brand.small{font-size:20px}.brand.small img{width:27px;height:27px}}
@media (pointer:coarse){.mobile-controls{display:flex;position:absolute;bottom:110px;left:17px;right:17px;justify-content:space-between;pointer-events:none;align-items:end}.mobile-controls>div{display:flex;gap:12px}.mobile-controls button{pointer-events:auto;touch-action:none;width:54px;height:54px;background:#14243cbf;border:1px solid #ffffff30;border-radius:12px;color:#e8f2fa;font-size:19px;user-select:none;-webkit-user-select:none}.mobile-controls button.pressed{background:#c4f575bb;color:#152039}.chat-box{bottom:182px}.control-hint{display:none}}
@media (max-width:600px){.welcome{padding:22px 22px 18px}.welcome-top .version{font-size:7px;letter-spacing:1px}.brand{font-size:24px}.brand img{width:33px;height:33px}.welcome-grid{display:flex;flex-direction:column-reverse;margin:25px 0;gap:25px}.welcome-art{width:100%;height:160px;overflow:hidden;border-radius:14px}.welcome-art>img{height:100%;object-fit:cover;object-position:center 45%}.art-caption{display:none}.welcome-copy{width:100%}.eyebrow{font-size:8px;letter-spacing:1.3px}.welcome-copy h1{font-size:42px;margin:13px 0 16px;letter-spacing:-2px}.welcome-copy>p{font-size:12px;line-height:1.7;margin:0}.feature-row{margin:16px 0 20px;font-size:10px;justify-content:space-between;gap:10px}.auth-card{max-width:none;padding:18px}.welcome-footer{font-size:8px;line-height:1.6;gap:20px}.welcome-footer span:last-child{text-align:right}.game-header{top:max(10px,env(safe-area-inset-top));left:10px;right:10px;gap:6px}.brand.small span{display:none}.brand.small img{width:30px;height:30px}.world-pill{min-width:135px;padding:8px 11px;gap:9px;border-radius:9px}.world-pill small{font-size:6px;letter-spacing:.2px}.world-pill strong{font-size:10px}.world-orb{font-size:22px}.header-right{gap:6px}.gem-pill{padding:11px 9px;font-size:12px}.gem-pill b{font-size:10px}.avatar-button{width:33px;height:37px;font-size:19px}.world-status{top:70px;left:12px;gap:10px;font-size:7px}.game-nav{right:10px;top:101px;gap:5px}.game-nav button{width:39px;padding:6px 0;border-radius:8px}.game-nav span{font-size:16px;height:20px}.game-nav small{font-size:6px}.bottom-bar{padding:6px;gap:4px;bottom:max(14px,env(safe-area-inset-bottom));max-width:calc(100% - 16px);border-radius:11px}.hotbar{gap:3px}.hotbar button{width:34px;height:42px;padding:3px}.hotbar img{width:24px;height:24px}.hotbar .key-number{display:none}.hotbar .quantity{font-size:7px}.bag-button{width:29px;height:42px;font-size:17px}.bag-button small{font-size:6px}.chat-box{width:190px;left:10px;bottom:172px}.chat-messages{height:64px;font-size:8px}.chat-heading{padding:9px;font-size:8px}.chat-box form{padding:3px 8px}.chat-box input{font-size:9px}.zoom-controls{left:10px;top:100px}.zoom-controls button{width:28px;height:29px;font-size:15px}.mobile-controls{bottom:86px;left:12px;right:12px}.mobile-controls button{width:49px;height:49px}.modal{padding:10px;align-items:center}.modal-card{max-height:88dvh;border-radius:14px}.modal-card>header{padding:17px}.modal-card h2{font-size:18px}#modal-body{padding:17px}.grid{grid-template-columns:repeat(3,1fr);gap:7px}.item-card{min-height:105px;padding:13px 5px 9px}.item-card img{width:34px;height:34px}.item-card strong{font-size:8px}.world-grid{grid-template-columns:repeat(2,1fr);gap:8px}.world-card .preview{height:75px}.world-card .info{padding:10px}.world-card strong{font-size:10px}.world-card small{font-size:7px}.notifications{right:12px;left:12px;bottom:78px}.notification{font-size:10px;max-width:none}.trade-columns{gap:7px}.trade-column{padding:10px}.trade-column h3{font-size:10px}.trade-column .offer{font-size:9px}.help-grid{grid-template-columns:1fr}.list-row{padding:10px;gap:9px}.list-row strong{font-size:10px}.list-row small{font-size:8px}.list-row button{padding:9px;font-size:9px}.world-title-float strong{font-size:26px}.inline-form{gap:8px}.inline-form label{min-width:100px}.stat-grid strong{font-size:18px}.stat-grid{gap:8px}.stat-grid div{padding:10px}.banner{font-size:10px}}
@media (max-height:520px) and (orientation:landscape){.game-header{top:8px}.game-nav{top:75px;flex-direction:row;right:10px}.game-nav button{width:36px}.game-nav small{display:none}.world-status{top:63px}.chat-box{bottom:89px;width:180px}.chat-messages{height:45px}.bottom-bar{bottom:10px}.mobile-controls{bottom:78px}.zoom-controls{top:85px}.control-hint{display:none}}
@media (prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
.lobby{min-height:100dvh;background:radial-gradient(ellipse at 70% 0,#38446055,transparent 60%),#101827;padding:25px 5vw 20px}.lobby-header{display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:1400px;margin:auto}.lobby-version{font-size:9px;letter-spacing:2px;color:#92a3be}.lobby-account{display:flex;align-items:center;gap:15px;font-size:11px}.lobby-account>span{color:#baa7ec;background:#ffffff06;border:1px solid var(--line);padding:10px 14px;border-radius:8px}.lobby-account button{color:#c3d1e4;font-size:11px}.lobby-content{max-width:1400px;margin:30px auto}.lobby-hero{min-height:330px;border:1px solid #ffffff14;border-radius:24px;overflow:hidden;position:relative;display:flex;background:#1a2b40}.hero-copy{position:relative;z-index:2;padding:42px;flex:1;background:linear-gradient(90deg,#17263f 62%,#17263f00)}.hero-copy h1{font-size:clamp(32px,4vw,53px);letter-spacing:-2px;line-height:1.1;margin:18px 0}.hero-copy h1 em{color:var(--lime);font-style:normal}.hero-copy p{color:#a4b9ce;font-size:12px;line-height:1.8}.lobby-hero>img{position:absolute;right:0;top:0;width:55%;height:100%;object-fit:cover;image-rendering:pixelated;object-position:center 46%}.hero-actions{display:flex;gap:12px;margin-top:22px;flex-wrap:wrap}.lobby-control-guide{margin-top:22px;font-size:9px;color:#9fb2cc;display:flex;align-items:center;gap:8px}.lobby-control-guide kbd{font-family:inherit;border:1px solid #ffffff24;border-radius:4px;background:#ffffff08;padding:4px 6px;font-size:9px;color:#d1e3ec}.hero-version{position:absolute;right:25px;bottom:25px;padding:13px 18px;z-index:3;background:#14213ee6;border:1px solid #ffffff26;border-radius:12px;text-align:center}.hero-version span{display:block;font-size:8px;letter-spacing:2px;color:#a898dd}.hero-version strong{display:block;color:var(--lime);font-size:28px;margin:7px 0}.hero-version small{font-size:9px;color:#bdcce0}.lobby-columns{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:23px;margin-top:25px;align-items:start}.lobby-section{background:#182338;border:1px solid var(--line);border-radius:16px;padding:23px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.section-heading span{color:#91a5c1;letter-spacing:1.3px;font-size:8px}.section-heading h2{font-size:21px;margin:7px 0 0;letter-spacing:-.8px}.section-heading button{font-size:10px;color:#abc1de;padding:8px;background:#ffffff06;border:1px solid var(--line);border-radius:6px}.lobby-join{display:flex;gap:10px;margin-top:18px}.lobby-join input{margin:0}.lobby-join button{white-space:nowrap}.lobby-shortcuts{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:15px}.lobby-shortcuts button{background:#1d2b42;border:1px solid var(--line);border-radius:12px;padding:20px;position:relative;text-align:left}.lobby-shortcuts button>span{float:left;font-size:28px;color:#b4a0e5;width:45px;padding-top:2px}.lobby-shortcuts button>strong{display:block;font-size:11px}.lobby-shortcuts button>small{display:block;color:#899fbc;font-size:9px;margin-top:7px}.lobby-shortcuts button:hover{border-color:#baa5e577;background:#27334d}.lobby-side{display:flex;flex-direction:column;gap:15px}.adventurer-card{display:flex;flex-direction:column;align-items:center;background:#1c2840;border:1px solid var(--line);border-radius:16px;padding:16px 20px 20px}.adventurer-card canvas{width:95px;height:115px;image-rendering:pixelated}.adventurer-card>span{font-size:16px;font-weight:700;margin-top:5px}.adventurer-card>strong{font-size:10px;color:#a0b4ce;margin-top:8px;font-weight:400}.adventurer-card .progress{width:100%;margin-top:15px}.adventurer-card>small{font-size:8px;color:#91a5bc;margin-top:8px}.adventurer-card>button{margin-top:15px;width:100%;font-size:10px}.gift-card{background:#a491df12;border:1px solid #a491df33;border-radius:13px;padding:18px}.gift-card>span{font-size:28px;color:#d6c195}.gift-card h3,.daily-card h3{font-size:13px;margin:8px 0}.gift-card p{font-size:10px;color:#a6b7d0;line-height:1.7;margin:9px 0 15px}.gift-card button{width:100%;font-size:10px}.daily-card{background:#c4f57508;border:1px solid #c4f57522;border-radius:13px;padding:18px}.daily-card>span{font-size:7px;letter-spacing:1px;color:#abbc92}.daily-card h3{margin:10px 0 15px}.daily-card>button{width:100%;font-size:10px;color:#bfdba0}.lobby-side-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.lobby-side-actions button{border:1px solid var(--line);background:#19243a;padding:12px 9px;border-radius:8px;font-size:9px;color:#a6b8d0}.lobby-footer{display:flex;justify-content:space-between;max-width:1400px;margin:auto;font-size:8px;letter-spacing:1px;color:#667d9d}.world-card-wrap{position:relative}.world-card-wrap .world-card{width:100%}.favorite-button{position:absolute;bottom:12px;right:9px;width:25px;height:25px;border-radius:6px;background:#ffffff09;color:#8198b8;font-size:16px}.favorite-button.active{color:#e6d29a}.fullscreen-button{background:#142239de;border:1px solid #ffffff18;border-radius:9px;width:39px;height:40px;font-size:23px}.interaction-hint{position:absolute;bottom:105px;left:50%;transform:translateX(-50%);background:#142440e8;border:1px solid #c4f57544;border-radius:8px;padding:10px 15px;font-size:11px;color:#d4e9b9;pointer-events:none;white-space:nowrap}.wing-status{position:absolute;top:87px;right:25px;padding:7px 11px;font-size:9px;color:#dacbed;background:#142139a8;border-radius:7px}.joystick-zone{position:relative;width:150px;height:95px;pointer-events:auto;touch-action:none;display:none!important}.joystick-ready #joystick-zone{display:block!important}.joystick-ready #direction-fallback{display:none!important}.mobile-actions{display:flex;gap:12px;align-items:end}.mobile-controls small{display:block;font-size:7px;font-weight:700;margin-top:3px}.mobile-controls .jump-button{background:#b3a0e8bb;border-color:#d6c6ff77;color:#172136}.mobile-controls .mobile-actions button{width:58px;height:58px}.storage-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.storage-panel{border:1px solid var(--line);background:#101a2c;border-radius:12px;padding:17px}.storage-panel h3{font-size:12px;margin:0 0 14px}.storage-panel .item-card{min-height:75px;padding:8px}.storage-panel .item-card img{width:27px;height:27px;margin-bottom:3px}.storage-panel .grid{grid-template-columns:repeat(3,1fr);gap:6px;max-height:220px;overflow:auto}.storage-panel strong{font-size:8px}.storage-panel button.primary{width:100%;margin-top:8px}.storage-quantity{display:flex;gap:7px}.storage-quantity label{flex:1}.storage-quantity input{min-width:0}.storage-heading{display:flex;gap:12px;align-items:center;margin-bottom:17px}.storage-heading img{width:40px;height:40px;image-rendering:pixelated}.storage-heading p{margin:0;font-size:10px!important}.pause-buttons{display:grid;gap:12px;grid-template-columns:1fr 1fr}.pause-buttons button{padding:22px 12px}.wearable-tag{color:#d1b8ed!important}.catalog-pager{display:flex;gap:10px;align-items:center;justify-content:center;margin:20px 0 0;font-size:10px;color:#9bb0ca}.touch-guide{font-size:9px;line-height:1.6;color:#93a9c3;margin-top:12px}.modal-card.chest-view{width:min(880px,100%)}
@media (max-width:1000px){.lobby{padding:22px 3vw}.lobby-columns{grid-template-columns:minmax(0,1fr) 230px;gap:16px}.hero-copy{padding:30px}.lobby-hero{min-height:300px}.lobby-section{padding:18px}.lobby-main .world-grid{grid-template-columns:repeat(2,1fr)}.lobby-version{font-size:7px}.lobby-shortcuts button{padding:16px}.lobby-shortcuts button>span{font-size:23px;width:34px}.lobby-shortcuts button>strong{font-size:9px}.lobby-shortcuts button>small{font-size:8px}}
@media (max-width:700px){.lobby{padding:18px 15px}.lobby-header{gap:12px}.lobby-header .brand{font-size:23px;gap:8px}.lobby-header .brand img{width:31px;height:31px}.lobby-version{display:none}.lobby-account{gap:8px}.lobby-account>span{font-size:10px;padding:9px}.lobby-account button{font-size:9px}.lobby-content{margin-top:20px}.lobby-hero{min-height:300px;border-radius:16px}.hero-copy{padding:24px;background:linear-gradient(90deg,#17263fed 50%,#17263f70);flex:1}.hero-copy h1{font-size:37px;margin:14px 0;letter-spacing:-1.7px}.hero-copy p{font-size:10px;max-width:255px}.lobby-hero>img{width:100%;opacity:.35;object-position:right 40%}.hero-actions{gap:8px;margin-top:17px}.hero-actions button{font-size:10px;padding:12px}.hero-version{display:none}.lobby-control-guide{font-size:8px;gap:5px;margin-top:20px}.lobby-control-guide kbd{font-size:8px;padding:3px 5px}.lobby-columns{grid-template-columns:1fr;margin-top:18px}.lobby-side{display:grid;grid-template-columns:1fr 1fr;gap:11px}.adventurer-card{grid-row:span 2;padding:13px}.adventurer-card canvas{height:95px;width:76px}.adventurer-card>span{font-size:13px}.gift-card,.daily-card{padding:13px}.gift-card h3,.daily-card h3{font-size:11px}.gift-card p{font-size:9px}.lobby-side-actions{grid-column:1/-1;grid-template-columns:repeat(4,1fr)}.lobby-footer{font-size:6px;gap:10px;line-height:1.6}.lobby-section .world-grid{grid-template-columns:repeat(2,1fr)}.lobby-shortcuts button{padding:15px 12px}.lobby-shortcuts button>strong{font-size:9px}.lobby-shortcuts button>small{font-size:7px}.section-heading h2{font-size:18px}.lobby-join input{font-size:10px}.lobby-join button{font-size:10px}.fullscreen-button{width:28px;height:35px;font-size:20px}.header-right{gap:4px}.game-header{gap:4px}.world-pill{min-width:113px;padding:8px;gap:6px}.world-orb{font-size:18px}.world-pill strong{font-size:9px}.world-pill small{font-size:5px}.wing-status{top:71px;right:12px;font-size:7px;padding:5px 8px}.storage-columns{grid-template-columns:1fr;gap:12px}.storage-panel{padding:13px}.storage-panel .grid{max-height:145px;grid-template-columns:repeat(4,1fr)}.storage-panel .item-card{min-height:66px}.interaction-hint{bottom:146px;font-size:8px;padding:8px;max-width:80%}.mobile-controls .mobile-actions button{width:50px;height:50px}.mobile-actions{gap:8px}.joystick-zone{width:125px;height:86px}.mobile-controls{bottom:79px}.chat-box{bottom:184px}.control-hint{display:none}.mobile-controls .jump-button{font-size:18px}}
@media (max-height:520px) and (orientation:landscape){.game-header{top:max(7px,env(safe-area-inset-top))}.game-nav{top:64px;right:max(10px,env(safe-area-inset-right))}.world-status{top:57px}.wing-status{top:54px;right:12px;font-size:8px}.zoom-controls{top:85px;left:12px}.chat-box{bottom:78px;left:12px;width:180px}.chat-heading{padding:8px}.chat-messages{height:45px}.mobile-controls{bottom:max(18px,env(safe-area-inset-bottom));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));align-items:center}.bottom-bar{bottom:max(10px,env(safe-area-inset-bottom))}.mobile-controls .mobile-actions button{width:52px;height:52px}.joystick-zone{width:125px;height:80px}.interaction-hint{bottom:88px;font-size:9px}.game-nav small{display:none}.game-nav button{width:35px;padding:6px}.modal-card{max-height:94dvh}.storage-columns{grid-template-columns:1fr 1fr}.storage-panel .grid{max-height:120px}.storage-panel h3{margin-bottom:8px}.storage-heading{margin-bottom:10px}.storage-panel label{margin:8px 0}.storage-panel input,.storage-panel select{padding:8px}.lobby-hero{min-height:260px}.lobby-columns{grid-template-columns:minmax(0,1fr) 230px}.lobby-side{display:flex}.lobby-side-actions{grid-template-columns:1fr 1fr}.hero-copy{padding:25px}.hero-copy h1{font-size:34px}.lobby-version{display:none}}
body:has(#game:not(.hidden)){overflow:hidden;overscroll-behavior:none}html{height:-webkit-fill-available}body{min-height:100dvh;-webkit-tap-highlight-color:transparent}.game-header,.bottom-bar,.mobile-controls,.game-nav{user-select:none;-webkit-user-select:none}.mobile-controls button{font-weight:700}.game:fullscreen,#app:fullscreen{width:100vw;height:100dvh}

@media (pointer:coarse){input:not([type=color]),select{font-size:16px}.chat-box input{font-size:16px;transform-origin:left center}.game-header{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}}
#app:fullscreen{overflow:auto;background:#111727}#app:fullscreen:has(#game:not(.hidden)){overflow:hidden}
/* 1.3 exploration, equipment and management */
.exp-toolbar{display:flex;gap:10px;margin:18px 0;align-items:center}.exp-toolbar input{flex:1;min-width:100px}.exp-toolbar select{max-width:190px}.equipment-strip{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.exp-item img{image-rendering:pixelated;transition:transform .2s}.exp-item:hover img{transform:translateY(-4px) scale(1.14)}.item-rarity{color:#c4f575!important;letter-spacing:.04em;font-size:10px!important}.item-detail{display:flex;align-items:center;gap:24px;line-height:1.8;margin:22px 0}.item-detail img{width:96px;height:96px;image-rendering:pixelated;filter:drop-shadow(0 8px 16px #0006)}.adventure-intro{padding:24px;border:1px solid #958ac448;border-radius:16px;background:linear-gradient(120deg,#2b274b,#183440);margin-bottom:20px}.adventure-intro h3{font-size:30px;margin:12px 0;color:#edf2dc}.adventure-intro p{color:#c0c7d8;line-height:1.8}.adventure-intro button{margin:8px 8px 0 0}.exp-region-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}.exp-region{padding:22px;border-radius:16px;background:linear-gradient(150deg,#242b42,#1b2035);border:1px solid #576580;position:relative;overflow:hidden}.exp-region:before{content:'';position:absolute;width:100px;height:100px;border:18px double var(--region-color);border-radius:14px;transform:rotate(35deg);right:-35px;top:-35px;opacity:.15;pointer-events:none}.exp-region>small{color:var(--region-color);letter-spacing:.08em}.exp-region h3{font-size:22px;margin:15px 0}.exp-region p{font-size:13px;line-height:1.65;color:#bbc5d5}.exp-region button{display:block;margin-top:20px}.exp-region.locked{opacity:.6}.combat-hud{position:absolute;left:22px;top:132px;width:250px;padding:10px 12px;background:#172439e0;border:1px solid #64719180;border-radius:10px;pointer-events:none;color:#dae6f3;font-size:11px}.health-bar{height:18px;background:#422b38;border-radius:5px;position:relative;overflow:hidden;margin-bottom:7px}.health-bar i{position:absolute;inset:0;background:linear-gradient(90deg,#e88c71,#f6ba84);transition:width .2s}.health-bar b{position:relative;display:block;text-align:center;color:#142233;line-height:18px}.combat-hud small{display:block;color:#c4f575;margin-top:5px}.attack-button{background:#a8624c!important;color:#fff5d1!important;border-color:#e1a17f!important}.admin-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.admin-metrics section{padding:20px 15px;border:1px solid #566079;border-radius:12px;background:linear-gradient(150deg,#2e344b,#22263d)}.admin-metrics strong{display:block;font-size:25px;color:#d5f4a7}.admin-metrics small{display:block;margin-top:7px;color:#b3bed1}.admin-log{padding:14px 16px;margin:10px 0;border-radius:10px;background:#151d30;border:1px solid #414d65}.admin-log strong,.admin-log small,.admin-log code{display:block}.admin-log small{color:#939fb7;margin:8px 0}.admin-log code{color:#c0d0b6;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.admin-delivery{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:22px 0;padding:20px;background:#232b43;border-radius:12px}.admin-delivery button{grid-column:1/-1}.lobby-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))}.game-nav{max-height:calc(100dvh - 180px);overflow-y:auto}.lobby-hero .hero-version strong{font-size:27px}
@media (max-width:600px){.exp-toolbar{flex-wrap:wrap}.exp-toolbar input{width:100%;flex-basis:100%}.exp-toolbar select{flex:1;max-width:none}.exp-region-grid{grid-template-columns:1fr}.admin-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-delivery{grid-template-columns:1fr}.combat-hud{left:12px;top:115px;width:190px;font-size:10px}.item-detail{flex-direction:column}.lobby-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-actions{gap:7px}.mobile-actions button{width:54px!important;height:54px!important}.mobile-actions small{font-size:8px}.game-nav{max-height:calc(100dvh - 220px)}}
@media (pointer:coarse) and (orientation:landscape){.combat-hud{left:15px;top:99px;width:180px;padding:7px;font-size:9px}.mobile-actions button{width:54px!important;height:54px!important}.game-nav{max-height:calc(100dvh - 180px)}}
/* 1.3.1: one fist, three items and independent touch targets */
#world-canvas{touch-action:none}.bottom-bar{gap:8px;padding:8px}.hotbar button{width:60px;height:62px;padding:5px 8px 17px}.hotbar img{width:34px;height:34px}.hotbar .slot-caption{position:absolute;bottom:4px;left:3px;right:3px;font-size:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hotbar .quantity{top:3px;right:4px;bottom:auto;font-size:9px;color:#d7eaba}.hotbar .key-number{font-size:9px}.hotbar button:first-child{background:#e4bf9020;border-color:#8f7058}.hotbar button:first-child.active{border-color:#ffd19a;box-shadow:0 0 14px #eab37b26}.bag-button{width:42px;height:52px}.touch-menu-button{display:none}.joystick-zone{width:112px;height:112px!important;display:block!important;contain:layout paint;user-select:none;touch-action:none}.joystick-base{position:absolute;width:82px;height:82px;border:2px solid #c1c9dd66;border-radius:50%;background:#14253dd4;left:50%;top:50%;transform:translate(-50%,-50%);box-shadow:0 5px 20px #0004;pointer-events:none}.joystick-stick{position:absolute;width:40px;height:40px;left:19px;top:19px;background:linear-gradient(140deg,#c9b7f2,#8575c0);border:2px solid #f1e2ffbb;border-radius:50%;box-shadow:0 3px 8px #0007;pointer-events:none;will-change:transform}.joystick-zone.pressed .joystick-base{border-color:#d6f39a}.joystick-ready #direction-fallback{display:none!important}.mobile-actions{gap:8px;pointer-events:none}.mobile-actions button{pointer-events:auto;touch-action:none}.mobile-controls{z-index:6}.bottom-bar{z-index:7}.game-nav{z-index:5}.mobile-controls .jump-button{background:#bfa4eef0}.mobile-controls .attack-button{background:#b77754ed!important}.mobile-controls #interact-button{background:#355675eb}.mobile-controls .pressed{filter:brightness(1.3);transform:scale(.96)}.touch-device .mobile-controls{display:flex;position:absolute;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));justify-content:space-between;align-items:center;pointer-events:none}.touch-device .mobile-controls button{width:52px;height:52px;font-size:18px;border:1px solid #ffffff40;border-radius:12px;user-select:none}.touch-device .mobile-controls small{font-size:8px}.touch-device .joystick-zone{pointer-events:auto}.touch-device .bottom-bar{bottom:calc(max(12px,env(safe-area-inset-bottom)) + 104px);padding:6px;gap:7px}.touch-device .hotbar button{width:48px;height:54px}.touch-device .hotbar img{width:30px;height:30px}.touch-device .hotbar .key-number{display:block;font-size:8px}.touch-device .hotbar .slot-caption{font-size:7px}.touch-device .control-hint{display:none}.touch-device .game-nav{right:10px;top:108px;gap:7px;flex-direction:column;overflow:visible}.touch-device .game-nav button{display:none;width:42px;height:39px;padding:7px 0}.touch-device .game-nav button[data-panel=inventory],.touch-device .game-nav button[data-panel=expeditions],.touch-device .game-nav button[data-panel=craft],.touch-device .game-nav .touch-menu-button{display:block}.touch-device .game-nav small{display:none}.touch-device .game-nav span{font-size:19px;height:22px}.touch-device .chat-box{bottom:205px;max-width:calc(100% - 75px)}.touch-device .interaction-hint{bottom:178px;max-width:85%;white-space:normal;text-align:center;line-height:1.5}.touch-device .combat-hud{left:12px;top:110px;width:190px}.touch-device .wing-status{top:77px;right:10px}.touch-device .zoom-controls{top:224px;left:12px;gap:5px}
@media (orientation:landscape){.touch-device .mobile-controls{bottom:max(8px,env(safe-area-inset-bottom))}.touch-device .joystick-zone{width:100px;height:100px!important}.touch-device .bottom-bar{bottom:max(12px,env(safe-area-inset-bottom));max-width:none;padding:5px;gap:5px;left:47%}.touch-device .hotbar{gap:4px}.touch-device .hotbar button{width:43px;height:49px}.touch-device .hotbar img{width:26px;height:26px}.touch-device .bag-button{width:32px;height:42px}.touch-device .mobile-actions button{width:48px!important;height:48px!important}.touch-device .mobile-actions{gap:6px}.touch-device .game-nav{top:58px;right:12px;flex-direction:row;gap:6px}.touch-device .game-nav button{width:33px;height:33px;padding:6px}.touch-device .game-nav span{font-size:17px;height:20px}.touch-device .combat-hud{top:101px;padding:7px;width:174px;font-size:9px}.touch-device .wing-status{top:93px;right:12px}.touch-device .zoom-controls{top:101px;left:200px}.touch-device .chat-box{bottom:115px;width:190px}.touch-device .chat-box.collapsed{bottom:115px}.touch-device .interaction-hint{bottom:80px;max-width:45%;font-size:9px}}
@media (orientation:landscape) and (max-width:600px){.touch-device .joystick-zone{width:78px;height:78px!important}.touch-device .joystick-base{width:66px;height:66px}.touch-device .joystick-stick{width:34px;height:34px;left:14px;top:14px}.touch-device .hotbar button{width:37px;height:46px}.touch-device .hotbar img{width:25px;height:25px}.touch-device .hotbar{gap:3px}.touch-device .bag-button{width:28px}.touch-device .mobile-actions button{width:42px!important;height:44px!important}.touch-device .mobile-actions{gap:4px}.touch-device .mobile-controls{left:8px;right:8px}.touch-device .bottom-bar{left:46%}.touch-device .combat-hud{width:155px}.touch-device .zoom-controls{left:175px}}
.modal-card.inventory-view{width:min(960px,100%)}.inventory-hero{display:flex;gap:20px;align-items:center;padding:14px 24px;background:linear-gradient(120deg,#273a56,#262440);border:1px solid #97a9d333;border-radius:14px;margin-bottom:18px}.inventory-hero canvas{width:72px;height:90px;image-rendering:pixelated}.inventory-hero h3{font-size:22px;margin:10px 0}.inventory-hero p{color:#b5c5d9;margin:0;font-size:11px}.inventory-quickbar{display:flex;flex-wrap:wrap;gap:8px;padding:14px;border:1px solid #7383a433;border-radius:12px;background:#111e31}.inventory-quickbar>small{flex-basis:100%;color:#9fafc5;font-size:9px;letter-spacing:.08em}.quickbar-assignment{display:flex;gap:8px;align-items:center;flex:1;min-width:110px;padding:8px 10px;background:#223149;border:1px solid #55647e;border-radius:7px;font-size:10px}.quickbar-assignment img{width:28px;height:28px;image-rendering:pixelated}.quickbar-assignment span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.quickbar-assignment.active{border-color:#c4f575;background:#384747}.inventory-view .equipment-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.equipment-cell{display:flex;flex-direction:column;align-items:center;justify-content:space-between;min-height:108px;border:1px solid #9babca33;background:#1b2840;border-radius:10px;padding:10px;gap:6px}.equipment-cell small{color:#a2b1c7;font-size:10px}.equipment-cell img{width:38px;height:38px;image-rendering:pixelated}.equipment-cell>span:last-child{font-size:9px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.equipment-cell:disabled{opacity:.6;cursor:default}.empty-equipment{font-size:26px;color:#48566c}.inventory-sort{display:flex;gap:12px;align-items:center;justify-content:flex-end;margin:12px 0 18px;color:#a7b5ce}.inventory-sort select{width:auto;margin:0;padding:7px 10px;font-size:11px}.inventory-entry{position:relative;min-width:0}.inventory-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.inventory-entry .item-card{width:100%;min-height:162px;height:100%;padding:16px 8px 22px}.inventory-entry .item-card img{width:40px;height:40px}.inventory-entry .item-card strong{font-size:10px;line-height:1.4;min-height:28px}.inventory-entry .item-card small:not(.item-rarity){font-size:9px;line-height:1.4}.inventory-entry .item-card em{position:absolute;bottom:7px;left:9px;color:#d5e8b2;font-style:normal;font-size:10px}.inventory-info{position:absolute;bottom:5px;right:5px;width:22px;height:22px;border:1px solid #97a2ba55;background:#102034;border-radius:50%;font-size:11px;color:#aabce0}.inventory-info:hover{background:#3c4c69}.equipped-badge{position:absolute;top:5px;right:5px;font-size:7px;color:#c4f575;background:#152b2ddc;padding:3px;border-radius:3px}.item-slot-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.item-slot-actions p{flex-basis:100%;margin-bottom:0}.item-detail img{background:radial-gradient(#64739144,transparent 70%);border-radius:20px;padding:6px}.item-card strong{overflow-wrap:anywhere}
@media (max-width:700px){.inventory-view .equipment-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.inventory-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.inventory-entry .item-card{min-height:146px}.inventory-entry .item-card strong{font-size:9px}.inventory-entry .item-card img{width:38px;height:38px}.inventory-hero{padding:12px;gap:15px}.inventory-hero h3{font-size:19px}.inventory-quickbar{padding:10px}.quickbar-assignment{flex:1 0 40%;min-width:0}.equipment-cell{min-height:92px}.inventory-view #modal-body{padding:15px}.item-slot-actions button{font-size:11px;padding:10px}}
@media (max-height:520px) and (orientation:landscape){.inventory-view .equipment-strip{grid-template-columns:repeat(6,minmax(0,1fr))}.inventory-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.inventory-hero{padding:8px 15px}.inventory-hero canvas{height:66px;width:53px}.equipment-cell{min-height:85px}.quickbar-assignment{flex:1 0 20%}}
/* 1.4: wrench, passage doors, currency and batch storage */
.hotbar button:nth-child(2){background:#b1cbda14;border-color:#557b94}.hotbar button:nth-child(2).active{border-color:#a1e0f1;box-shadow:0 0 13px #8ddbe926}.touch-device .hotbar button{width:42px}.touch-device .hotbar img{width:28px}.touch-device .bottom-bar{gap:5px}.storage-search{display:flex;gap:6px;margin-bottom:12px}.storage-search input{margin:0;min-width:0}.storage-search button{padding:8px;font-size:10px}.storage-panel .storage-selection-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:42dvh;gap:8px;padding:2px}.storage-choice{background:#1a2a42;border:1px solid #51627c;border-radius:8px;padding:8px;min-width:0}.storage-choice.selected{border-color:#c4f575;background:#293b3f}.storage-choice-label{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;margin:0!important;cursor:pointer;min-height:83px}.storage-choice-label input[type=checkbox]{position:absolute;top:0;left:0;width:16px;height:16px;margin:0;accent-color:#c4f575}.storage-choice-label img{width:30px;height:30px;image-rendering:pixelated}.storage-choice strong{font-size:9px!important;line-height:1.4;text-align:center;overflow-wrap:anywhere}.storage-choice-label small{font-size:9px;color:#bccbe0}.storage-choice>label{display:flex;gap:6px;align-items:center;margin:5px 0 0;color:#9cadc5;font-size:9px}.storage-choice input[type=number]{width:100%;min-width:0;padding:7px;margin:0;font-size:12px}.storage-batch-actions{display:flex;gap:6px;margin-top:12px}.storage-batch-actions button{padding:8px;font-size:10px}.storage-picked{display:block;color:#c4f575;margin:12px 0}.storage-panel>button.primary{font-size:11px}.door-preview{display:flex;align-items:center;gap:18px;margin:10px 0 20px}.door-preview img{width:64px;height:64px;image-rendering:pixelated}.lock-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.lock-card{display:flex;flex-direction:column;align-items:center;gap:10px;background:#1e2d45;border:1px solid #879cbc44;padding:20px 10px;border-radius:12px}.lock-card img{width:48px;height:48px;image-rendering:pixelated}.lock-card strong{font-size:11px;text-align:center}.lock-card b{color:#e6d69f;font-size:22px}.lock-exchange{display:flex;align-items:center;gap:10px;background:#1d2b41;padding:16px;border-radius:10px;border:1px solid #66799355}.lock-exchange strong{flex:1;font-size:12px}.lock-exchange input{width:78px;padding:8px;margin:0}.lock-exchange button{padding:10px;font-size:11px}.item-rarity{color:#d3e59d!important}.inventory-quickbar .quickbar-assignment{min-width:100px}.inventory-quickbar>small{font-size:9px}
@media (orientation:landscape){.touch-device .hotbar button{width:38px;height:47px}.touch-device .hotbar img{width:25px;height:25px}.touch-device .hotbar .slot-caption{font-size:6px}.touch-device .bottom-bar{left:46%;padding:4px}.touch-device .hotbar{gap:3px}}
@media (orientation:landscape) and (max-width:600px){.touch-device .hotbar button{width:32px;height:44px;padding-left:3px;padding-right:3px}.touch-device .hotbar img{width:23px;height:23px}.touch-device .bag-button{width:25px}.touch-device .hotbar{gap:2px}.touch-device .bottom-bar{left:44%}}
@media (max-width:700px){.storage-panel .storage-selection-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:33dvh}.storage-choice{padding:6px}.storage-batch-actions{flex-wrap:wrap}.lock-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lock-exchange{flex-wrap:wrap;gap:8px;padding:12px}.lock-exchange strong{flex-basis:100%}.inventory-quickbar .quickbar-assignment{flex:1 0 26%;min-width:0}.inventory-quickbar .quickbar-assignment img{width:24px;height:24px}.inventory-quickbar .quickbar-assignment span{font-size:9px}}
/* QuBook: one place to learn, discover and choose a recipe. */
.book-tabs{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:18px}.book-intro{display:flex;gap:18px;align-items:center;padding:20px;background:#203b3b;border:1px solid #61837b;border-radius:14px;font-size:18px;color:#f0dfb9}.book-intro img{width:60px;height:60px;image-rendering:pixelated}.book-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}.book-step{background:#1a2638;border:1px solid #344456;border-radius:12px;padding:18px}.book-step h3{font-size:14px;margin:0 0 10px;color:#d8d9b5}.book-step p{font-size:12px;line-height:1.8;color:#b9c5cf}.book-step button{margin-top:8px}.splice-selectors{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:12px;align-items:center}.splice-selectors label{min-width:0}.splice-selectors select{width:100%;min-width:0}.splice-plus{font-size:24px;color:#c5dc9c}.splice-result{display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:#253c3e;padding:22px;border:1px solid #739289;border-radius:12px;margin:16px 0}.splice-result img{width:48px;height:48px;image-rendering:pixelated}.game-nav{gap:7px}.game-nav small{font-size:10px}.touch-device .game-nav button[data-panel=qubook]{display:block}.lobby-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.lobby-shortcuts button{min-height:105px}.lock-exchange input{max-width:90px}#modal-body>button{margin:8px 8px 4px 0}
@media (max-width:600px){.book-steps{grid-template-columns:1fr}.book-step{padding:14px}.book-tabs .chip{font-size:10px;padding:10px}.splice-selectors{grid-template-columns:1fr}.splice-plus{text-align:center}.splice-result{gap:10px;padding:15px}.splice-result img{width:40px;height:40px}.book-intro{font-size:14px;padding:14px}.lobby-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}}
.tile-tooltip{left:0;top:0;contain:layout paint style;will-change:transform;transition:none;min-height:30px;max-width:230px}.admin-item-preview{display:flex;align-items:center;gap:18px;background:#203344;border:1px solid #6c8295;border-radius:12px;padding:16px;min-height:104px}.admin-item-preview>img{width:64px;height:64px;image-rendering:pixelated}.admin-item-preview strong{display:block;color:#e9dfbb;font-size:16px}.admin-item-preview small{display:block;margin-top:8px;color:#b3c5cb}.admin-item-preview p{font-size:12px;line-height:1.7}.admin-item-preview canvas{margin-left:auto;width:100px;height:128px;image-rendering:pixelated}.crystal-preview{font-size:52px;color:#b79fea}.admin-pick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:12px 0}.admin-pick-item{display:flex;align-items:center;gap:7px;background:#1d2b3e;border:1px solid #435367;border-radius:8px;padding:10px;text-align:left;font-size:10px;line-height:1.4}.admin-pick-item img{width:32px;height:32px;image-rendering:pixelated}.admin-pick-item.active{background:#314943;border-color:#b6d785}.admin-pick-item span{overflow-wrap:anywhere}@media (max-width:600px){.admin-pick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-item-preview{gap:10px;padding:12px}.admin-item-preview strong{font-size:13px}.admin-item-preview canvas{width:66px;height:86px}.admin-item-preview>img{width:48px;height:48px}.combat-hud{width:185px}}

#net-status{white-space:nowrap;max-width:150px;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
@media (max-width:600px){#net-status{max-width:110px;font-size:10px}}
