:root{--sand:#f2d48b;--ink:#10202a;--glass:rgba(10,25,34,.62);--line:rgba(255,255,255,.28);--accent:#ffe06a;--safe-t:env(safe-area-inset-top,0px);--safe-b:env(safe-area-inset-bottom,0px);--safe-l:env(safe-area-inset-left,0px);--safe-r:env(safe-area-inset-right,0px);--edge-fix-x:0px}
#game:not(.playing) #status-effects{display:none!important}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none!important;-webkit-user-select:none!important;user-select:none!important}html{width:100%;height:100%;margin:0;overflow:hidden;background:#79b8df;touch-action:none;overscroll-behavior:none}body{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;margin:0;overflow:visible;background:#79b8df;color:white;font-family:ui-monospace,"SFMono-Regular",Consolas,monospace;touch-action:none;overscroll-behavior:none}#game{position:fixed;inset:0;width:100vw;max-width:none;height:100vh;height:100dvh;overflow:visible;touch-action:none}button{font:inherit;color:inherit;touch-action:none}#canvas-host{position:absolute;top:0;bottom:0;left:calc(-1 * var(--edge-fix-x));right:calc(-1 * var(--edge-fix-x));width:auto;height:auto;display:block;overflow:hidden}#canvas-host>canvas{position:absolute;inset:0;width:100%!important;height:100%!important;display:block;touch-action:none}#underwater-overlay{position:absolute;top:0;bottom:0;left:calc(-1 * var(--edge-fix-x));right:calc(-1 * var(--edge-fix-x));z-index:2;pointer-events:none;opacity:0;background:radial-gradient(ellipse at 50% 42%,rgba(45,159,187,.12) 0,rgba(8,82,113,.3) 58%,rgba(3,35,55,.64) 100%);box-shadow:inset 0 0 80px rgba(0,35,58,.58);transition:opacity .18s ease}#underwater-overlay.active{opacity:1}#vignette{position:absolute;z-index:3;top:0;bottom:0;left:calc(-1 * var(--edge-fix-x));right:calc(-1 * var(--edge-fix-x));pointer-events:none;background:radial-gradient(circle,transparent 48%,rgba(3,12,18,.2) 100%)}.glass{background:var(--glass);border:1px solid var(--line);box-shadow:0 5px 24px rgba(0,0,0,.22);backdrop-filter:blur(5px)}
#crosshair{position:absolute;left:50%;top:50%;width:18px;height:18px;transform:translate(-50%,-50%);pointer-events:none;filter:drop-shadow(1px 1px 0 #000)}#crosshair:before,#crosshair:after{content:"";position:absolute;background:#fff}#crosshair:before{width:2px;height:18px;left:8px}#crosshair:after{width:18px;height:2px;top:8px}
#debug{position:absolute;left:calc(12px + var(--safe-l));top:calc(10px + var(--safe-t));font-size:11px;line-height:1.45;text-shadow:1px 1px #000;white-space:pre;pointer-events:none}#status-bars{position:absolute;z-index:4;left:50%;bottom:calc(84px + var(--safe-b));transform:translateX(-50%);display:flex;align-items:center;gap:24px;pointer-events:none}#status-effects{position:absolute;z-index:5;left:50%;bottom:calc(116px + var(--safe-b));transform:translateX(-50%);display:flex;gap:5px;pointer-events:none}#status-effects span{padding:4px 7px;border:2px solid rgba(255,255,255,.7);background:rgba(16,34,42,.85);font-size:8px;font-weight:900;letter-spacing:.05em;text-shadow:1px 1px #000}.effect-poison{border-color:#8bcf60!important;color:#baf28e}.effect-hunger{border-color:#97805a!important;color:#ead2a3}.effect-nausea{border-color:#b987d8!important;color:#e1bbfa}#hearts,#hunger{display:flex;align-items:center;gap:2px;min-width:158px}#hearts{justify-content:flex-end;font-size:21px;text-shadow:2px 2px #5c1116}.heart{color:#ff5563}.heart.empty{filter:grayscale(1);opacity:.35}#hunger{justify-content:flex-start}.food{position:relative;width:14px;height:15px;transform:rotate(-35deg);filter:drop-shadow(1px 1px 0 #3f2118)}.food:before{content:"";position:absolute;left:1px;top:1px;width:10px;height:9px;background:#c9643e;border:2px solid #7a3428;box-shadow:inset 2px 1px #ed9164}.food:after{content:"";position:absolute;right:0;bottom:0;width:4px;height:8px;background:#ead4ad;border:1px solid #8b735c}.food.empty{filter:grayscale(1);opacity:.24}
#hotbar{position:absolute;z-index:4;left:50%;bottom:calc(18px + var(--safe-b));transform:translateX(-50%);display:grid;grid-template-columns:repeat(9,52px);gap:4px;padding:5px;background:rgba(7,17,22,.58);border:1px solid rgba(255,255,255,.24);border-radius:6px}.slot{position:relative;width:52px;height:52px;background:rgba(22,37,43,.82);border:2px solid rgba(255,255,255,.21);display:grid;place-items:center;image-rendering:pixelated}.slot.selected{border-color:#fff;outline:2px solid #202b2e;transform:translateY(-3px)}.slot-canvas{width:40px;height:40px;image-rendering:pixelated}.slot-count{position:absolute;right:3px;bottom:1px;font-weight:bold;font-size:13px;text-shadow:1px 1px #000}.slot-key{position:absolute;left:3px;top:1px;color:rgba(255,255,255,.6);font-size:9px}.slot-name{display:none}
.icon-button{position:absolute;z-index:6;border-radius:8px;width:44px;height:44px;font-size:23px;cursor:pointer}#inventory-button{right:calc(16px + var(--safe-r));top:calc(14px + var(--safe-t))}#fullscreen-button{right:calc(68px + var(--safe-r));top:calc(14px + var(--safe-t))}#settings-button{display:none;right:calc(120px + var(--safe-r));top:calc(14px + var(--safe-t))}.touch #settings-button{display:block}#camera-button{right:calc(188px + var(--safe-r));top:calc(14px + var(--safe-t));font-size:18px}#camera-button svg{display:block;width:23px;height:23px;margin:auto;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.touch #camera-button{right:calc(230px + var(--safe-r))}.touch #save-menu-button{right:calc(172px + var(--safe-r))}#save-menu-button{right:calc(130px + var(--safe-r));top:calc(14px + var(--safe-t));width:44px;font-size:18px}#save-menu-button svg{display:block;width:23px;height:23px;margin:auto;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:square;stroke-linejoin:miter}
#mine-progress{display:none;position:absolute;left:50%;top:calc(50% + 22px);width:100px;height:6px;transform:translateX(-50%);background:#1d2c32;border:1px solid white}#mine-progress i{display:block;height:100%;width:0;background:var(--accent)}
.screen{position:absolute;z-index:20;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:linear-gradient(rgba(31,105,142,.48),rgba(24,62,76,.62));text-align:center;padding:30px}.title-mark{font-family:Impact,Haettenschweiler,sans-serif;font-style:italic;letter-spacing:2px;line-height:.76;text-shadow:0 7px 0 #174356,0 11px 25px rgba(0,0,0,.55);transform:skew(-4deg);font-size:clamp(64px,11vw,130px)}.title-mark span,.title-mark b{display:block}.title-mark span{color:#fff}.title-mark b{color:var(--accent)}.tagline{letter-spacing:.35em;font-size:clamp(10px,1.5vw,17px);font-weight:bold;margin:30px 0}.start-card{width:min(480px,88vw);padding:18px;border-radius:5px}.loading-row{display:flex;justify-content:space-between}.loading-track{height:9px;background:#152a32;margin-top:12px}.loading-track i{display:block;width:0;height:100%;background:linear-gradient(90deg,#62d785,#ffe06a);transition:width .2s}.start-actions{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}.play{border:2px solid white;background:#f3cc48;color:#16242a;font-weight:900;letter-spacing:.12em;padding:16px 34px;box-shadow:0 6px 0 #8a681e;margin-top:16px;cursor:pointer}.play:active{transform:translateY(4px);box-shadow:0 2px 0 #8a681e}.menu-secondary{border:1px solid rgba(255,255,255,.5);background:rgba(12,29,36,.82);padding:12px 18px;font-weight:800;letter-spacing:.08em;cursor:pointer}.start-actions .menu-secondary{margin-top:16px;padding:16px 24px}.controls-help{margin-top:22px;display:flex;flex-direction:column;gap:5px;font-size:12px;text-shadow:1px 1px #000}.controls-help b{color:var(--accent);letter-spacing:.2em}.death-title{font:italic 900 clamp(50px,10vw,100px) Impact;color:#ff6868;text-shadow:0 5px #49181c}
.panel{position:absolute;z-index:15;left:50%;top:50%;transform:translate(-50%,-50%);width:min(690px,94vw);max-height:92vh;overflow:auto;background:rgba(12,24,29,.94);border:2px solid rgba(255,255,255,.45);box-shadow:0 18px 70px rgba(0,0,0,.6);padding:20px;touch-action:pan-y}.panel header{display:flex;justify-content:space-between;align-items:start;border-bottom:1px solid #49616b;padding-bottom:12px}.panel header div{display:flex;flex-direction:column}.panel header b{font-size:25px;color:var(--accent)}.panel header small{letter-spacing:.15em;color:#9cc0cd}.panel header button{border:0;background:none;font-size:34px;line-height:1}.inventory-body{padding-top:18px}.craft-wrap{display:flex;align-items:center;justify-content:center;gap:22px;margin-bottom:24px}.craft-grid{display:grid;grid-template-columns:repeat(2,52px);gap:4px}.craft-grid.table{grid-template-columns:repeat(3,52px)}.craft-arrow{font-size:28px}.inventory-grid{display:grid;grid-template-columns:repeat(9,52px);gap:4px;justify-content:center}.inventory-grid .slot:nth-child(n+28){margin-top:12px}.inventory-help{text-align:center;color:#9eb4bd;font-size:11px;margin-bottom:0}.result{border-color:#f5d45b}
.modal-overlay{position:absolute;z-index:24;inset:0;background:rgba(2,10,14,.72);backdrop-filter:blur(3px)}.save-panel{z-index:26;width:min(900px,96vw);max-height:min(720px,94dvh);overflow:hidden}.pause-panel{display:flex;flex-direction:column}.pause-layout{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(300px,1.2fr);gap:14px;min-height:370px;padding:16px 0}.pause-actions{display:grid;align-content:start;gap:8px}.pause-action{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:11px;min-height:61px;padding:9px 12px;border:2px solid #607983;background:#1a343e;color:white;text-align:left;box-shadow:inset 2px 2px rgba(255,255,255,.1),0 4px 0 rgba(0,0,0,.32);cursor:pointer}.pause-action:active{transform:translateY(3px);box-shadow:inset 2px 2px rgba(255,255,255,.1),0 1px 0 rgba(0,0,0,.32)}.pause-action>span{display:grid;place-items:center;width:40px;height:40px;background:#294955;color:var(--accent);font-size:21px}.pause-action>div{display:flex;min-width:0;flex-direction:column;gap:4px}.pause-action b{font-size:12px;letter-spacing:.07em}.pause-action small{font-size:8px;color:#abc5cd}.pause-action.resume{border-color:#79ac67;background:#31572e}.pause-action.resume>span{background:#46753f;color:#e9ffd6}.pause-action.danger{border-color:#9b6060;background:#512c2c}.pause-action.danger>span{background:#713a3a;color:#ffd1d1}.pause-action:disabled{opacity:.35;cursor:not-allowed}.pause-world-card{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;min-width:0;padding:22px;border:2px solid #5c747e;background:radial-gradient(circle at 50% 35%,rgba(84,161,184,.25),transparent 42%),linear-gradient(150deg,#244b5a,#132a33 62%,#0c1d24);overflow:hidden;text-align:center;box-shadow:inset 0 0 0 3px rgba(0,0,0,.22)}.pause-world-card:after{content:"";position:absolute;inset:auto -12% -35% -12%;height:62%;background:linear-gradient(160deg,transparent 30%,rgba(74,118,65,.6) 31% 48%,rgba(38,74,43,.78) 49%);transform:skewY(-5deg);pointer-events:none}.pause-world-card>*{position:relative;z-index:1}.pause-logo{font-family:Impact,Haettenschweiler,sans-serif;font-style:italic;line-height:.78;letter-spacing:2px;text-shadow:0 4px #153847}.pause-logo b,.pause-logo strong{display:block;font-size:clamp(34px,5vw,62px)}.pause-logo b{color:white}.pause-logo strong{color:var(--accent)}.pause-world-card>span{margin-top:24px;padding:5px 9px;background:#17343f;border:1px solid #6a8995;color:#9fe4ff;font-size:9px;font-weight:900;letter-spacing:.12em}.pause-world-card h2{margin:13px 0 7px;font-size:16px;letter-spacing:.08em}.pause-world-card p{margin:0;color:#b9d0d8;font-size:10px}.pause-world-card>small{margin-top:10px;color:#ffe28a;font-size:8px}.save-slots{display:grid;gap:10px;max-height:430px;overflow-y:auto;padding:16px 4px 16px 0;touch-action:pan-y}.save-slot{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:14px;background:rgba(29,49,55,.72);border:1px solid rgba(255,255,255,.2);border-left:4px solid var(--accent)}.save-slot.empty{border-left-color:#627981}.save-info{min-width:0;display:flex;flex-direction:column;gap:6px}.save-info b{letter-spacing:.12em}.save-info span{color:#a9c2cb;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.save-actions{display:flex;gap:6px}.save-action{border:1px solid #607680;background:#20363e;padding:10px 12px;font-size:10px;font-weight:900;cursor:pointer}.save-action.primary{background:#d8b841;color:#14242a;border-color:#ffe577}.save-action.danger{color:#ff9b9b}.save-action:disabled{opacity:.28;cursor:not-allowed}.save-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #49616b;padding-top:14px}.save-footer small{color:#88a5af}.save-footer-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto}.save-footer .main-menu-return{border:2px solid #9b6060;background:#512c2c;color:#ffe1e1}.save-footer .main-menu-return:active{background:#713a3a}
.settings-panel{z-index:26;width:min(650px,94vw)}.settings-body{padding:16px 0}.settings-body>p{margin:0 0 14px;color:#bad0d8;font-size:11px;line-height:1.5}.quality-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.quality-options button{min-height:72px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;padding:12px;border:2px solid #49616b;background:#1b323a;text-align:left;cursor:pointer}.quality-options button b{font-size:13px;color:white;letter-spacing:.08em}.quality-options button span{font-size:9px;color:#9eb9c2}.quality-options button.selected{border-color:var(--accent);background:#35462f;box-shadow:inset 0 0 0 1px rgba(255,224,106,.25)}.quality-options button.selected b{color:var(--accent)}.quality-options button:disabled{opacity:.38;cursor:not-allowed}.settings-current{display:block;margin-top:13px;color:#9fc3ce}.settings-volume{display:grid;gap:7px;margin-top:14px;padding:11px 13px;border:2px solid #49616b;background:#142b34}.settings-volume-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.settings-volume-heading label{color:#fff;font-size:12px;font-weight:900;letter-spacing:.08em}.settings-volume-heading output{min-width:64px;color:var(--accent);font-size:12px;font-weight:900;text-align:right}.settings-volume>small{color:#91adb7;font-size:8px}.settings-volume input[type="range"]{--sfx-fill:100%;width:100%;height:30px;margin:0;appearance:none;-webkit-appearance:none;background:transparent;cursor:pointer;touch-action:pan-x}.settings-volume input[type="range"]::-webkit-slider-runnable-track{height:10px;border:2px solid #607984;background:linear-gradient(90deg,#ffe06a 0 var(--sfx-fill),#263d46 var(--sfx-fill) 100%)}.settings-volume input[type="range"]::-webkit-slider-thumb{width:27px;height:27px;margin-top:-10px;border:3px solid #fff;background:#2e4a55;box-shadow:0 3px 0 #07161c;appearance:none;-webkit-appearance:none}.settings-volume input[type="range"]::-moz-range-track{height:8px;border:2px solid #607984;background:linear-gradient(90deg,#ffe06a 0 var(--sfx-fill),#263d46 var(--sfx-fill) 100%)}.settings-volume input[type="range"]::-moz-range-thumb{width:23px;height:23px;border:3px solid #fff;border-radius:0;background:#2e4a55;box-shadow:0 3px 0 #07161c}.settings-volume input[type="range"]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.settings-footer{display:flex;justify-content:flex-end;border-top:1px solid #49616b;padding-top:14px}
#mobile-controls{display:none}.touch #mobile-controls{display:block}#joystick{position:absolute;z-index:7;left:calc(35px + var(--safe-l));bottom:calc(42px + var(--safe-b));width:126px;height:126px;border-radius:50%;background:rgba(7,20,27,.28);border:2px solid rgba(255,255,255,.28)}#joystick-knob{position:absolute;left:33px;top:33px;width:58px;height:58px;border-radius:50%;background:rgba(255,255,255,.48);border:2px solid rgba(255,255,255,.65)}.action{position:absolute;z-index:8;width:74px;height:74px;border-radius:50%;border:2px solid rgba(255,255,255,.56);background:rgba(9,24,32,.52);font-size:27px;text-shadow:1px 1px #000;touch-action:none;user-select:none;-webkit-user-select:none}.action span{display:block;font-size:8px;font-weight:bold}.action.pressed{background:rgba(244,209,81,.65);transform:scale(.94)}#jump-button{right:calc(30px + var(--safe-r));bottom:calc(116px + var(--safe-b))}#mine-button{right:calc(111px + var(--safe-r));bottom:calc(32px + var(--safe-b))}#place-button{right:calc(25px + var(--safe-r));bottom:calc(30px + var(--safe-b))}#sprint-button{left:auto;right:calc(120px + var(--safe-r));bottom:calc(120px + var(--safe-b));width:48px;height:48px;font-size:9px}#sneak-button{display:none;left:calc(151px + var(--safe-l));bottom:calc(80px + var(--safe-b));width:54px;height:48px;border-radius:9px;font-size:17px}#sneak-button span{font-size:6px}.touch #game[data-mode="skycubes"] #sneak-button,.touch #game[data-mode="onecube"] #sneak-button{display:block}#sneak-button.active{border-color:#fff18a;background:rgba(48,117,63,.78);box-shadow:inset 0 0 0 2px rgba(255,241,138,.22)}#game:not(.playing) #mobile-controls,#game:not(.playing) #hotbar,#game:not(.playing) #status-bars,#game:not(.playing) #crosshair,#game:not(.playing) #inventory-button,#game:not(.playing) #settings-button,#game:not(.playing) #save-menu-button,#game:not(.playing) #camera-button{display:none}
.hidden{display:none!important}#rotate-notice{display:none;position:fixed;z-index:60;top:0;bottom:0;left:calc(-1 * var(--edge-fix-x));right:calc(-1 * var(--edge-fix-x));align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:30px;background:linear-gradient(145deg,#102c39,#1b4c5f);color:white}#rotate-notice b{margin-top:22px;color:var(--accent);font-size:clamp(22px,6vw,32px);letter-spacing:.06em;text-shadow:0 3px #153340}#rotate-notice span{margin-top:10px;color:#c5dce4;font-size:13px}.rotate-phone{position:relative;width:54px;height:94px;border:5px solid white;border-radius:10px;box-shadow:0 6px 0 rgba(0,0,0,.25);animation:turn-phone 1.8s ease-in-out infinite}.rotate-phone:before{content:"";position:absolute;left:50%;top:5px;width:16px;height:3px;border-radius:3px;background:white;transform:translateX(-50%)}.rotate-phone i{position:absolute;left:50%;bottom:5px;width:6px;height:6px;border-radius:50%;background:var(--accent);transform:translateX(-50%)}@keyframes turn-phone{0%,18%{transform:rotate(0)}55%,82%{transform:rotate(90deg)}100%{transform:rotate(0)}}#toast{position:absolute;z-index:40;left:50%;top:18%;transform:translateX(-50%) translateY(-10px);background:rgba(5,17,23,.8);padding:9px 16px;border-radius:3px;opacity:0;transition:.2s;pointer-events:none}#toast.show{opacity:1;transform:translateX(-50%)}
#sleep-fade{position:absolute;z-index:55;inset:0;display:grid;place-items:center;background:#02070a;color:#f5d45b;font-size:clamp(18px,4vw,34px);letter-spacing:.18em;opacity:0;pointer-events:none;transition:opacity .35s}#sleep-fade.active{opacity:1}
@media(max-width:760px),(pointer:coarse){#mobile-controls{display:block}#hotbar{grid-template-columns:repeat(9,min(9vw,42px));bottom:calc(8px + var(--safe-b));gap:2px;padding:3px}#hotbar .slot{width:min(9vw,42px);height:min(9vw,42px)}#hotbar .slot-canvas{width:32px;height:32px}#status-bars{bottom:calc(56px + var(--safe-b));gap:12px}#hearts,#hunger{min-width:132px}#hearts{font-size:17px}.food{width:12px;height:13px}.food:before{width:9px;height:8px}.food:after{height:7px}#debug{font-size:8px;opacity:.8}#inventory-button,#fullscreen-button,#settings-button,#camera-button{width:40px;height:40px}#settings-button{right:calc(116px + var(--safe-r))}#camera-button{right:calc(222px + var(--safe-r))}#save-menu-button{right:calc(168px + var(--safe-r));width:40px;height:40px}.inventory-grid{grid-template-columns:repeat(9,min(9vw,48px));gap:2px}.inventory-grid .slot,.craft-grid .slot{width:min(9vw,48px);height:min(9vw,48px)}.panel{padding:12px}.panel header b{font-size:18px}.inventory-help{display:none}.pause-layout{grid-template-columns:minmax(190px,.85fr) minmax(0,1.15fr);gap:8px;min-height:320px;padding:9px 0}.pause-actions{gap:5px}.pause-action{grid-template-columns:35px minmax(0,1fr);min-height:50px;gap:8px;padding:6px 8px;box-shadow:0 2px 0 rgba(0,0,0,.32)}.pause-action>span{width:33px;height:33px;font-size:17px}.pause-action b{font-size:9px}.pause-action small{font-size:6px}.pause-world-card{padding:10px}.pause-world-card>span{margin-top:13px}.save-slot{grid-template-columns:1fr;gap:10px}.save-actions{display:grid;grid-template-columns:repeat(2,1fr)}.save-action{padding:10px 7px}.save-footer{align-items:flex-end}.save-footer small{font-size:8px}#crosshair{opacity:.8}}
@media(pointer:coarse) and (orientation:portrait){.screen{padding:16px}.title-mark{font-size:clamp(48px,18vw,78px)}.tagline{letter-spacing:.12em;margin:18px 0}.controls-help{font-size:10px;margin-top:12px}.panel{width:96vw;max-height:88dvh}#debug{display:none}#joystick{width:108px;height:108px;left:calc(14px + var(--safe-l));bottom:calc(94px + var(--safe-b))}#joystick-knob{width:50px;height:50px;left:27px;top:27px}.action{width:60px;height:60px;font-size:22px}#jump-button{right:calc(16px + var(--safe-r));bottom:calc(198px + var(--safe-b))}#mine-button{right:calc(80px + var(--safe-r));bottom:calc(112px + var(--safe-b))}#place-button{right:calc(14px + var(--safe-r));bottom:calc(104px + var(--safe-b))}#sprint-button{left:auto;right:calc(80px + var(--safe-r));bottom:calc(190px + var(--safe-b));width:44px;height:44px}#sneak-button{left:calc(113px + var(--safe-l));bottom:calc(151px + var(--safe-b));width:48px;height:44px}}
@media(pointer:coarse) and (orientation:portrait){#rotate-notice{display:flex}}
@media(max-height:520px) and (pointer:coarse){#joystick{width:104px;height:104px;left:calc(24px + var(--safe-l));bottom:calc(26px + var(--safe-b))}#joystick-knob{width:50px;height:50px;left:25px;top:25px}.action{width:62px;height:62px}#jump-button{bottom:calc(92px + var(--safe-b))}#mine-button{right:calc(94px + var(--safe-r));bottom:calc(22px + var(--safe-b))}#place-button{bottom:calc(20px + var(--safe-b))}#sprint-button{left:auto;right:calc(101px + var(--safe-r));bottom:calc(99px + var(--safe-b));width:48px;height:48px}#sneak-button{left:calc(132px + var(--safe-l));bottom:calc(86px + var(--safe-b));width:52px;height:44px}.tagline{margin:15px 0}.controls-help{margin-top:10px}}
@media(max-height:520px) and (pointer:coarse){#joystick{width:104px;height:104px;left:calc(24px + var(--safe-l));bottom:calc(26px + var(--safe-b))}#joystick-knob{width:50px;height:50px;left:25px;top:25px}.action{width:62px;height:62px}#jump-button{bottom:calc(92px + var(--safe-b))}#mine-button{right:calc(94px + var(--safe-r));bottom:calc(22px + var(--safe-b))}#place-button{bottom:calc(20px + var(--safe-b))}#sprint-button{left:auto;right:calc(101px + var(--safe-r));bottom:calc(99px + var(--safe-b));width:48px;height:48px}#sneak-button{left:calc(132px + var(--safe-l));bottom:calc(86px + var(--safe-b));width:52px;height:44px}.tagline{margin:15px 0}.controls-help{margin-top:10px}.pause-panel{height:calc(100dvh - var(--safe-t) - var(--safe-b) - 8px);max-height:none}.pause-layout{min-height:0;flex:1;grid-template-columns:minmax(0,1fr) minmax(180px,.85fr);gap:6px;padding:6px 0}.pause-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.pause-action{min-height:42px}.pause-world-card{min-height:0}.save-footer{align-items:center;gap:6px;padding-top:6px}.save-footer>small{display:none}.save-footer-actions{width:100%;justify-content:flex-end}.save-footer .main-menu-return,.save-footer #save-resume{min-height:38px;padding:7px 10px;font-size:8px}}
@media(max-height:520px){.pause-panel{height:calc(100dvh - var(--safe-t) - var(--safe-b) - 8px);max-height:none}.pause-layout{min-height:0;flex:1;grid-template-columns:minmax(0,1fr) minmax(180px,.85fr);gap:6px;padding:6px 0}.pause-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.pause-action{min-height:42px}.pause-world-card{min-height:0}.save-footer{align-items:center;gap:6px;padding-top:6px}.save-footer>small{display:none}.save-footer-actions{width:100%;justify-content:flex-end}.save-footer .main-menu-return,.save-footer #save-resume{min-height:38px;padding:7px 10px;font-size:8px}}
.craft-guide-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;padding:11px 12px;background:rgba(52,81,88,.55);border-left:4px solid var(--accent)}.craft-guide-bar>div{display:flex;flex-direction:column;gap:3px}.craft-guide-bar b{font-size:12px;color:var(--accent);letter-spacing:.08em}.craft-guide-bar span{font-size:10px;color:#c2d5dc;line-height:1.35}.craft-guide-bar button{flex:0 0 auto;border:1px solid #ffe577;background:#d8b841;color:#14242a;padding:9px 11px;font-size:9px;font-weight:900;cursor:pointer}.craft-guide{margin:-8px 0 18px;padding:14px;background:rgba(5,15,19,.64);border:1px solid #49616b}.guide-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:14px}.guide-steps>div{display:grid;grid-template-columns:24px 1fr;align-items:center;gap:7px;padding:7px;background:rgba(42,67,74,.58)}.guide-steps i{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--accent);color:#14242a;font-style:normal;font-weight:900}.guide-steps span{font-size:9px;line-height:1.35;color:#d2e1e6}.craft-recipe-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.recipe-card{display:grid;grid-template-columns:auto 18px minmax(0,1fr);align-items:center;gap:8px;min-height:88px;padding:9px;background:#172b32;border:1px solid #3d5962}.recipe-pattern{display:grid;gap:2px;align-content:center;justify-content:center;min-width:70px;min-height:70px}.recipe-cell{display:grid;place-items:center;width:22px;height:22px;background:#273d44;border:1px solid rgba(255,255,255,.16)}.recipe-icon{width:19px;height:19px;image-rendering:pixelated}.recipe-arrow{color:var(--accent);font-size:18px}.recipe-result{min-width:0;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:7px}.recipe-result-icon{position:relative;display:grid;place-items:center;width:34px;height:34px;background:#263c43;border:2px solid #ffe577}.recipe-result-icon .recipe-icon{width:28px;height:28px}.recipe-result-icon em{position:absolute;right:1px;bottom:0;font-size:9px;font-style:normal;text-shadow:1px 1px #000}.recipe-result-text{min-width:0;display:flex;flex-direction:column;gap:3px}.recipe-result-text b{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recipe-result-text small{font-size:7px;color:#9cb7c0;line-height:1.25}.recipe-badge{grid-column:1/-1;justify-self:start;padding:2px 5px;background:#34515a;color:#d8e9ee;font-size:7px;font-weight:900;letter-spacing:.06em}.recipe-badge.table{background:#9b7730;color:#fff3bd}@media(max-width:760px),(pointer:coarse){.craft-guide-bar{margin-bottom:12px;padding:8px}.craft-guide-bar span{font-size:8px}.craft-guide-bar button{padding:8px;font-size:8px}.craft-guide{padding:9px}.guide-steps{grid-template-columns:1fr;gap:4px}.craft-recipe-list{grid-template-columns:1fr}.recipe-card{min-height:76px;padding:7px}.recipe-cell{width:20px;height:20px}.recipe-pattern{min-height:62px}.inventory-body{padding-top:10px}}
.skin-panel{z-index:28;width:min(760px,95vw);max-height:94dvh;overflow:hidden}.skin-body{padding:14px 0 4px}.skin-body>p{margin:0 0 12px;color:#bad0d8;font-size:11px}.skin-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;max-height:min(390px,48dvh);overflow-x:hidden;overflow-y:auto;padding-right:6px;overscroll-behavior:contain;scrollbar-color:#d8b841 #1a3037;touch-action:pan-y;-webkit-overflow-scrolling:touch}.skin-card{position:relative;min-width:0;min-height:126px;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;gap:5px;padding:7px;background:linear-gradient(#365862,#1a3037);border:2px solid #49616b;cursor:pointer;overflow:hidden;touch-action:pan-y}.skin-card canvas,.skin-card b,.skin-card span{pointer-events:none}.skin-card canvas{width:56px;height:84px;image-rendering:pixelated;filter:drop-shadow(3px 4px 0 rgba(0,0,0,.25))}.skin-card b{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;letter-spacing:.05em}.skin-card span{position:absolute;left:5px;top:5px;padding:2px 5px;background:#d8b841;color:#14242a;font-size:8px;font-weight:900}.skin-card.selected{border-color:var(--accent);box-shadow:inset 0 0 0 2px rgba(255,224,106,.22)}.skin-card.selected:after{content:'✓';position:absolute;right:5px;top:5px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--accent);color:#14242a;font-weight:900}.skin-card.custom:not(.has-skin) canvas{opacity:.18}.skin-tools{display:flex;align-items:center;justify-content:flex-start;gap:12px;margin-top:10px}.skin-upload-button{border:1px solid #607680;background:#20363e;color:#fff;padding:9px 11px;font-size:9px;font-weight:900;text-decoration:none;cursor:pointer}.skin-upload-button input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.body-type{display:grid;grid-template-columns:auto 1fr 1fr;align-items:center;gap:8px;margin-top:12px}.body-type span{font-size:9px;color:#9eb9c2;font-weight:900}.body-type button{padding:9px;border:1px solid #49616b;background:#1b323a;font-size:9px;font-weight:900;cursor:pointer}.body-type button.selected{border-color:var(--accent);color:var(--accent);background:#35462f}.skin-current{display:block;margin-top:10px;color:#9fc3ce}.skin-footer{display:flex;justify-content:flex-end;border-top:1px solid #49616b;margin-top:10px}.skin-footer .play{margin-top:12px;padding:12px 24px}@media(max-width:760px),(pointer:coarse){.skin-panel{width:min(700px,96vw);max-height:94dvh}.skin-body{padding-top:8px}.skin-body>p{display:none}.skin-grid{gap:5px;max-height:min(300px,43dvh);padding-right:8px}.skin-card{min-height:100px;padding:4px}.skin-card canvas{width:44px;height:66px}.skin-card b{font-size:7px}.skin-card span{font-size:7px;padding:2px 4px}.skin-tools{margin-top:7px}.body-type{margin-top:7px}.skin-current{margin-top:6px;font-size:8px}.skin-footer{margin-top:5px}.skin-footer .play{margin-top:7px;padding:9px 18px}.skin-panel header{margin-bottom:3px}.skin-panel header b{font-size:16px}.skin-panel header small{font-size:8px}}
@media(max-height:520px){.touch .skin-panel{padding:9px;overflow:hidden}.touch .skin-panel header{margin-bottom:2px}.touch .skin-panel header b{font-size:16px}.touch .skin-panel header small{font-size:8px}.touch .skin-body{padding:5px 0 2px}.touch .skin-body>p{display:none}.touch .skin-grid{gap:4px;max-height:136px}.touch .skin-card{min-height:82px;padding:3px}.touch .skin-card canvas{width:36px;height:54px}.touch .skin-card b{font-size:7px}.touch .skin-tools{margin-top:5px}.touch .skin-upload-button{padding:6px 8px}.touch .body-type{margin-top:5px}.touch .body-type button{padding:6px}.touch .skin-current{margin-top:4px;font-size:8px}.touch .skin-footer{margin-top:3px}.touch .skin-footer .play{margin-top:5px;padding:7px 16px}}
.craft-message{min-height:22px;margin:-7px 0 7px;text-align:center;color:#ffb9a9;font-size:10px;font-weight:900;letter-spacing:.05em}.craft-message.good{color:#7ee69f}.inventory-cursor{margin:0 auto 10px;width:min(500px,100%);padding:7px 10px;background:rgba(35,58,65,.65);border:1px solid #49616b;text-align:center;color:#a9c1c9;font-size:9px}.inventory-cursor.active{border-color:var(--accent);color:var(--accent);background:rgba(92,73,26,.52)}.recipe-card{color:white;font:inherit;text-align:left;cursor:pointer;touch-action:manipulation}.recipe-card.craftable{border-color:#56bd77;background:#183c2a;box-shadow:inset 3px 0 #56bd77}.recipe-card.craftable:active{transform:scale(.985);background:#245638}.recipe-card.unavailable{opacity:.58}.recipe-card.locked{opacity:.42}.recipe-badge.ready{background:#3b9f60;color:white}.result:disabled{opacity:.35}
.touch #inventory-panel{width:96vw;max-height:94dvh}.touch #inventory-panel>header{position:sticky;top:-12px;z-index:4;margin:-12px -12px 0;padding:12px 12px 8px;background:#10242b}.touch .craft-guide{max-height:min(250px,42dvh);overflow-y:auto;touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.touch .trade-panel{width:96vw;max-height:94dvh;padding:10px}.touch .trade-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:58dvh;gap:6px}.touch .trade-offer{padding:7px}.touch .trade-item{grid-template-columns:30px 15px minmax(0,1fr)}.touch .trade-icon{width:29px;height:29px}.touch .trade-offer>button{padding:7px 6px}.touch .trade-footer{padding-top:7px}
.trade-panel{z-index:26;width:min(760px,95vw);overflow:hidden}.trade-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 3px;border-bottom:1px solid #49616b}.trade-summary strong{color:#e6edf0;font-size:11px;letter-spacing:.08em}.trade-summary span{padding:6px 9px;background:#17623f;border:1px solid #4ee595;color:#bfffd9;font-size:10px;font-weight:900}.trade-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:58vh;overflow-y:auto;padding:12px 4px 12px 0;touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.trade-offer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;padding:9px;background:#172b32;border:1px solid #405b64}.trade-offer.ready{border-color:#59bb79;box-shadow:inset 3px 0 #59bb79}.trade-offer.locked{opacity:.46}.trade-exchange{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);align-items:center;gap:5px}.trade-exchange>span{color:var(--accent);font-size:18px;text-align:center}.trade-item{min-width:0;display:grid;grid-template-columns:36px 18px minmax(0,1fr);align-items:center;gap:3px}.trade-icon{width:34px;height:34px;image-rendering:pixelated}.trade-item b{font-size:13px}.trade-item span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#c5d7dd;font-size:8px}.trade-meta{display:flex;flex-direction:column;gap:2px;color:#91abb4;font-size:7px}.trade-offer>button{align-self:center;border:1px solid #ffe577;background:#d8b841;color:#14242a;padding:8px 9px;font-size:8px;font-weight:900;cursor:pointer;touch-action:manipulation}.trade-offer>button:disabled{border-color:#4a5e65;background:#263d44;color:#81959c;cursor:not-allowed}.trade-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:10px;border-top:1px solid #49616b}.trade-footer span{color:#f5c0aa;font-size:9px}.trade-footer span.good{color:#7ee69f}.trade-footer button{border:1px solid #607680;background:#20363e;padding:9px 13px;font-size:9px;font-weight:900}
@media(max-width:760px),(pointer:coarse){#inventory-panel{width:96vw;max-height:94dvh}.craft-guide{max-height:42dvh;overflow-y:auto;touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.recipe-card{min-height:70px}.craft-message{margin-top:-4px}.inventory-cursor{margin-bottom:7px}.trade-panel{width:96vw;max-height:94dvh;padding:10px}.trade-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:58dvh;gap:6px}.trade-offer{padding:7px}.trade-item{grid-template-columns:30px 15px minmax(0,1fr)}.trade-icon{width:29px;height:29px}.trade-offer>button{padding:7px 6px}.trade-footer{padding-top:7px}}
@media(max-height:520px){.touch #inventory-panel{height:96dvh;max-height:96dvh;display:flex;flex-direction:column;overflow:hidden}.touch #inventory-panel>header{position:relative;top:auto;flex:0 0 auto;margin:-12px -12px 0;padding:9px 12px 7px}.touch .inventory-body{min-height:0;overflow-y:auto;padding-top:6px;touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.touch .craft-guide-bar{margin-bottom:7px}.touch .craft-guide{max-height:150px;margin:0 0 8px}.touch .guide-steps{display:none}.touch .craft-wrap{margin:5px 0 8px}.touch .inventory-grid .slot,.touch .craft-grid .slot{width:40px;height:40px}.touch .inventory-grid{grid-template-columns:repeat(9,40px)}.touch .inventory-grid .slot:nth-child(n+28){margin-top:5px}.touch .slot-canvas{width:32px;height:32px}.touch .trade-panel{height:94dvh;max-height:94dvh;display:flex;flex-direction:column}.touch .trade-panel header{padding-bottom:6px}.touch .trade-summary{padding:6px 2px}.touch .trade-list{min-height:0;max-height:none;flex:1}.touch .trade-footer{flex:0 0 auto}.touch .trade-footer span{max-width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
.foundation-panel{width:min(1120px,97vw);height:min(720px,94dvh);max-height:none;overflow:hidden;padding:0;background:#bdbdbd;border:4px solid #111;border-radius:4px;color:#222;box-shadow:0 18px 0 rgba(0,0,0,.36),0 22px 55px rgba(0,0,0,.65);touch-action:none}
.foundation-inventory{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.92fr);grid-template-rows:minmax(0,1fr) 68px;width:100%;height:100%;min-height:0;background:#c8c8c8}
.recipe-pane{display:grid;grid-template-columns:72px minmax(0,1fr);grid-template-rows:64px minmax(0,1fr);min-width:0;min-height:0;border-right:4px solid #111;background:#bdbdbd}
.recipe-title{grid-column:1/-1;display:flex;align-items:center;gap:14px;padding:8px 16px;background:#d0d0d0;border-bottom:4px solid #111;box-shadow:inset 0 -3px #8d8d8d;color:#444}
.recipe-title>div{min-width:0;display:flex;align-items:baseline;gap:8px}.recipe-title b{font-size:20px;line-height:1;letter-spacing:.02em;white-space:nowrap}.recipe-title small{font-size:8px;color:#555;white-space:nowrap}.recipe-book-mark{display:grid;place-items:center;width:42px;height:42px;flex:0 0 auto;background:#6b6b6b;border:3px solid #222;box-shadow:inset 0 0 0 3px #a8a8a8;color:#f6d36e;font-size:25px}
.inventory-tabs{min-height:0;display:flex;flex-direction:column;gap:5px;padding:8px 6px;background:#727272;border-right:3px solid #222;overflow-y:auto;touch-action:pan-y}.inventory-tabs button{position:relative;display:flex;min-height:54px;flex:0 0 54px;align-items:center;justify-content:center;flex-direction:column;gap:1px;padding:3px;border:3px solid #222;background:#aaa;color:#222;box-shadow:inset 2px 2px #e5e5e5,inset -2px -2px #666;cursor:pointer;touch-action:manipulation}.inventory-tabs button span{font-size:23px;line-height:1}.inventory-tabs button small{font-size:7px;font-weight:900}.inventory-tabs button.selected{background:#e3e3e3;outline:3px solid #f6f6f6;z-index:1}.inventory-tabs button.selected:after{content:"";position:absolute;right:-9px;width:7px;height:26px;background:#e3e3e3;border-block:3px solid #222}
.recipe-browser{display:grid;grid-template-rows:44px minmax(0,1fr);min-width:0;min-height:0;padding:8px;background:#777}.recipe-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:5px;padding-bottom:7px}.recipe-toolbar label{display:flex;align-items:center;min-width:0;padding:0 7px;background:#eee;border:3px solid #333;box-shadow:inset 0 2px #fff;color:#555}.recipe-toolbar label span{font-size:17px}.recipe-toolbar input{width:100%;height:100%;min-width:0;border:0;outline:0;background:transparent;color:#222;font:inherit;font-size:11px;user-select:text!important;-webkit-user-select:text!important}.recipe-toolbar button{border:3px solid #333;background:#aaa;color:#444;box-shadow:inset 2px 2px #e8e8e8,inset -2px -2px #666;font-weight:900;cursor:pointer;touch-action:manipulation}.recipe-toolbar button.selected{background:#75a879;color:white}
.foundation-recipe-grid{min-width:0;min-height:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(62px,1fr));grid-auto-rows:64px;align-content:start;gap:3px;overflow-y:auto;padding:2px;background:#666;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}.foundation-recipe-card{position:relative;display:grid;place-items:center;min-width:0;border:3px solid #3d3d3d;background:#d1d1d1;color:#222;box-shadow:inset 2px 2px #f8f8f8,inset -2px -2px #888;cursor:pointer;touch-action:manipulation}.foundation-recipe-card.craftable{background:#e6e6e6}.foundation-recipe-card.unavailable{background:#c86363}.foundation-recipe-card.locked{filter:grayscale(.5);opacity:.78}.foundation-recipe-card.selected{border-color:#fff;outline:3px solid #7a92d6;background:#dce4ff;z-index:1}.foundation-recipe-icon{width:48px;height:48px;image-rendering:pixelated}.foundation-recipe-card>b{position:absolute;right:4px;bottom:1px;color:#fff;font-size:13px;text-shadow:2px 2px #222}.recipe-lock{position:absolute;right:2px;top:2px;display:grid;place-items:center;width:18px;height:18px;background:#383838;color:#ddd;font-size:11px}.recipe-list-empty{grid-column:1/-1;margin:18px;color:#eee;text-align:center;font-size:10px}
.inventory-storage{min-height:0;overflow:auto;background:#666;padding:4px;touch-action:pan-y}.inventory-storage .inventory-grid{grid-template-columns:repeat(9,minmax(38px,1fr));gap:3px}.foundation-slot{background:#aaa;border:3px solid #555;box-shadow:inset 2px 2px #eee,inset -2px -2px #777}.foundation-slot.selected{border-color:#fff;outline:2px solid #222;transform:none}
.craft-pane{position:relative;display:flex;min-width:0;min-height:0;align-items:center;flex-direction:column;padding:22px 18px 10px;background:#d0d0d0;color:#333;overflow:hidden}.foundation-close{position:absolute;right:0;top:0;width:56px;height:54px;border:3px solid #222;border-top:0;border-right:0;background:#666;color:white;box-shadow:inset 2px 0 #999,inset 0 -2px #3b3b3b;font-size:30px;cursor:pointer;touch-action:manipulation}.craft-pane-title{display:flex;align-items:center;flex-direction:column;gap:4px;margin:10px 50px 10px;text-align:center}.craft-pane-title b{font-size:22px;font-weight:500}.craft-pane-title small{font-size:9px;color:#666}.recipe-empty{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:#888;text-align:center}.recipe-empty span{font-size:58px}.recipe-empty b{font-size:16px}.recipe-empty small{font-size:9px}.recipe-preview{width:100%;min-height:0;display:flex;align-items:center;flex:1;flex-direction:column;justify-content:center;gap:10px}.preview-flow{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px}.preview-grid{display:grid;gap:3px}.preview-grid.size-2{grid-template-columns:repeat(2,54px)}.preview-grid.size-3{grid-template-columns:repeat(3,50px)}.preview-cell{position:relative;display:grid;place-items:center;width:54px;height:54px;background:#aaa;border:3px solid #656565;box-shadow:inset 2px 2px #eee,inset -2px -2px #777}.size-3 .preview-cell{width:50px;height:50px}.preview-cell.missing{background:#c96868}.preview-icon{width:43px;height:43px;image-rendering:pixelated}.size-3 .preview-icon{width:39px;height:39px}.preview-cell b,.preview-result b{position:absolute;right:3px;bottom:0;color:#fff;font-size:12px;text-shadow:2px 2px #222}.preview-arrow{font-size:30px;color:#999;line-height:.8}.preview-result{position:relative;width:64px;height:64px;background:#aaa;border:3px solid #555;box-shadow:inset 2px 2px #eee,inset -2px -2px #777;cursor:pointer;touch-action:manipulation}.preview-result:disabled{opacity:.5}.preview-result-icon{width:50px;height:50px;image-rendering:pixelated}.recipe-requirements{width:100%;min-height:29px;padding:5px 7px;background:#aaa;border:2px solid #777;color:#782c2c;font-size:8px;line-height:1.25;text-align:center}.recipe-requirements.ready{color:#245e2d}.craft-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.craft-actions button{min-height:39px;border:3px solid #333;background:#5f8c48;color:white;box-shadow:inset 2px 2px rgba(255,255,255,.35),inset -2px -2px rgba(0,0,0,.35);font-size:9px;font-weight:900;cursor:pointer;touch-action:manipulation}.craft-actions button:disabled{background:#888;color:#bbb;opacity:.65}.craft-message{width:100%;min-height:18px;margin:5px 0 0;color:#8f2c22;text-align:center}.craft-message.good{color:#2d6c38}
.inventory-tray{grid-column:1/-1;display:grid;grid-template-columns:minmax(170px,1fr) auto;align-items:center;gap:10px;padding:6px 14px;background:#bdbdbd;border-top:4px solid #111}.inventory-tray .inventory-cursor{width:auto;max-width:360px;margin:0;padding:6px 8px;background:#696969;border:3px solid #333;color:white;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inventory-hotbar-grid{display:grid;grid-template-columns:repeat(9,48px);gap:3px;padding:3px;background:#555;border:3px solid #222}.inventory-hotbar-grid .slot{width:48px;height:48px}.inventory-hotbar-grid .slot-canvas{width:38px;height:38px}
#inventory-panel.foundation-panel{display:block;max-height:none;overflow:hidden;padding:0}
@media(max-width:900px){.foundation-panel{width:98vw;height:96dvh}.foundation-inventory{grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);grid-template-rows:minmax(0,1fr) 58px}.recipe-pane{grid-template-columns:55px minmax(0,1fr);grid-template-rows:50px minmax(0,1fr)}.recipe-title{padding:5px 10px;gap:9px}.recipe-title b{font-size:15px}.recipe-book-mark{width:34px;height:34px;font-size:20px}.inventory-tabs{padding:4px 3px}.inventory-tabs button{flex-basis:47px}.inventory-tabs button span{font-size:18px}.recipe-browser{grid-template-rows:36px minmax(0,1fr);padding:5px}.recipe-toolbar{grid-template-columns:minmax(0,1fr) 36px;padding-bottom:4px}.foundation-recipe-grid{grid-template-columns:repeat(auto-fill,minmax(52px,1fr));grid-auto-rows:55px}.foundation-recipe-icon{width:39px;height:39px}.craft-pane{padding:13px 10px 6px}.foundation-close{width:46px;height:44px;font-size:25px}.craft-pane-title{margin-top:4px}.craft-pane-title b{font-size:17px}.recipe-preview{gap:4px}.preview-grid.size-2{grid-template-columns:repeat(2,44px)}.preview-grid.size-3{grid-template-columns:repeat(3,40px)}.preview-cell,.size-3 .preview-cell{width:40px;height:40px}.preview-icon,.size-3 .preview-icon{width:31px;height:31px}.preview-result{width:52px;height:52px}.preview-result-icon{width:40px;height:40px}.recipe-requirements{min-height:20px;font-size:7px}.craft-actions button{min-height:30px;font-size:8px}.inventory-tray{padding:4px 8px}.inventory-hotbar-grid{grid-template-columns:repeat(9,40px)}.inventory-hotbar-grid .slot{width:40px;height:40px}.inventory-hotbar-grid .slot-canvas{width:32px;height:32px}}
@media(max-height:430px){.foundation-panel,.touch .foundation-panel{width:calc(100vw - var(--safe-l) - var(--safe-r) - 12px);height:calc(100dvh - var(--safe-t) - var(--safe-b) - 10px);max-height:none}.foundation-inventory{grid-template-rows:minmax(0,1fr) 54px}.recipe-pane{grid-template-rows:46px minmax(0,1fr)}.recipe-title{border-bottom-width:3px}.recipe-title b{font-size:13px}.recipe-title small{font-size:7px}.recipe-book-mark{width:31px;height:31px}.inventory-tabs button{min-height:43px;flex-basis:43px;border-width:2px}.recipe-browser{grid-template-rows:34px minmax(0,1fr)}.foundation-recipe-grid{grid-auto-rows:51px}.foundation-recipe-icon{width:36px;height:36px}.craft-pane-title b{font-size:15px}.craft-pane-title small{font-size:7px}.preview-flow{gap:3px}.preview-arrow{font-size:18px}.preview-grid.size-2{grid-template-columns:repeat(2,40px)}.preview-grid.size-3{grid-template-columns:repeat(3,36px)}.preview-cell,.size-3 .preview-cell{width:36px;height:36px;border-width:2px}.preview-icon,.size-3 .preview-icon{width:29px;height:29px}.preview-result{width:46px;height:46px}.preview-result-icon{width:35px;height:35px}.craft-actions button{min-height:27px}.inventory-tray .inventory-cursor{max-width:160px}.inventory-hotbar-grid{grid-template-columns:repeat(9,38px);gap:2px;padding:2px}.inventory-hotbar-grid .slot{width:38px;height:38px}.inventory-hotbar-grid .slot-canvas{width:30px;height:30px}}

.mount-inventory-panel{z-index:22;width:min(850px,96vw);max-height:94dvh;overflow:hidden;padding:0;background:#c8c8c8;border:4px solid #202020;color:#242424;box-shadow:inset 2px 2px #f5f5f5,inset -2px -2px #777,0 18px 70px rgba(0,0,0,.65)}.mount-inventory-header{min-height:64px;padding:10px 14px!important;background:#e1e1e1;border-bottom:4px solid #222!important;box-shadow:inset 0 -3px #919191}.mount-inventory-header>div{gap:2px}.mount-inventory-header b{color:#242424!important;font-size:22px!important}.mount-inventory-header small{color:#555!important;font-size:9px}.mount-inventory-header button{display:grid;place-items:center;width:48px;height:44px;border:3px solid #333!important;background:#666!important;color:white;font-size:28px!important;box-shadow:inset 2px 2px #999,inset -2px -2px #3b3b3b;cursor:pointer}.mount-inventory-body{display:grid;grid-template-columns:minmax(280px,.78fr) minmax(430px,1.22fr);min-height:0;max-height:calc(94dvh - 126px)}.mount-cargo-pane,.mount-player-pane{min-width:0;padding:12px;background:#adadad}.mount-cargo-pane{border-right:4px solid #292929;background:#999}.mount-pane-title{display:flex;align-items:center;gap:9px;min-height:47px;margin-bottom:10px;padding:7px 9px;background:#d3d3d3;border:3px solid #555;box-shadow:inset 2px 2px #f5f5f5,inset -2px -2px #858585}.mount-pane-title>span{display:grid;place-items:center;width:34px;height:34px;background:#8a5b31;border:2px solid #333;color:#ffe276;font-size:20px}.mount-pane-title>div{display:flex;flex-direction:column;gap:3px}.mount-pane-title b{font-size:12px}.mount-pane-title small{font-size:7px;color:#555}.mount-cargo-grid{display:grid;grid-template-columns:repeat(5,48px);grid-auto-rows:48px;gap:4px;justify-content:center;align-content:start;min-height:152px;padding:9px;background:#727272;border:3px solid #333}.mount-player-grid{display:grid;grid-template-columns:repeat(9,42px);grid-auto-rows:42px;gap:3px;justify-content:center;padding:7px;background:#777;border:3px solid #333}.mount-hotbar-grid{display:grid;grid-template-columns:repeat(9,42px);grid-auto-rows:42px;gap:3px;justify-content:center;margin-top:9px;padding:7px;background:#555;border:3px solid #222}.mount-inventory-panel .slot{position:relative;width:100%;height:100%;min-width:0;padding:0;background:#aaa;border:3px solid #555;box-shadow:inset 2px 2px #eee,inset -2px -2px #777;touch-action:manipulation}.mount-inventory-panel .slot:active{border-color:#f8e063}.mount-inventory-panel .slot-canvas{width:34px;height:34px}.mount-inventory-panel .slot-count{position:absolute;right:2px;bottom:1px;color:white;font-size:10px;text-shadow:2px 2px #222}.mount-inventory-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-height:58px;padding:7px 12px;background:#dedede;border-top:4px solid #222}.mount-inventory-footer span{min-width:0;padding:8px 10px;background:#696969;border:3px solid #333;color:white;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mount-inventory-footer span.active{background:#765d22;border-color:#ffe063;color:#fff6bf}.mount-inventory-footer button{min-width:100px;min-height:38px;border:3px solid #333;background:#f0ca42;color:#1d2528;font-size:10px;font-weight:1000;box-shadow:inset 2px 2px #fff0a0,inset -2px -2px #9f7c16;cursor:pointer}
@media(max-width:900px),(pointer:coarse){.mount-inventory-panel{width:calc(100vw - var(--safe-l) - var(--safe-r) - 12px);height:calc(100dvh - var(--safe-t) - var(--safe-b) - 10px);max-height:none}.mount-inventory-header{min-height:48px;padding:5px 9px!important}.mount-inventory-header b{font-size:16px!important}.mount-inventory-header button{width:42px;height:38px}.mount-inventory-body{grid-template-columns:minmax(220px,.72fr) minmax(390px,1.28fr);height:calc(100% - 100px);max-height:none}.mount-cargo-pane,.mount-player-pane{padding:6px}.mount-pane-title{min-height:38px;margin-bottom:5px;padding:3px 5px}.mount-pane-title>span{width:29px;height:29px}.mount-cargo-grid{grid-template-columns:repeat(5,40px);grid-auto-rows:40px;min-height:130px;padding:5px;gap:3px}.mount-player-grid,.mount-hotbar-grid{grid-template-columns:repeat(9,38px);grid-auto-rows:38px;padding:4px;gap:2px}.mount-hotbar-grid{margin-top:5px}.mount-inventory-panel .slot-canvas{width:30px;height:30px}.mount-inventory-footer{min-height:48px;padding:4px 7px}.mount-inventory-footer span{padding:5px 7px;font-size:8px}.mount-inventory-footer button{min-height:34px}}
@media(max-width:660px){.mount-inventory-panel{overflow:auto}.mount-inventory-body{grid-template-columns:1fr;height:auto;max-height:none}.mount-cargo-pane{border-right:0;border-bottom:4px solid #292929}.mount-player-grid,.mount-hotbar-grid{grid-template-columns:repeat(9,minmax(29px,1fr))}.mount-inventory-footer{position:sticky;bottom:0}}

/* Main menu */
.main-menu-screen{align-items:stretch;justify-content:stretch;padding:clamp(12px,2.2vw,30px);background:linear-gradient(90deg,rgba(6,21,29,.74),rgba(7,26,35,.34) 55%,rgba(6,21,29,.72)),linear-gradient(rgba(18,77,105,.2),rgba(5,24,32,.62));text-align:left;overflow:hidden}.main-menu-shell{width:min(1180px,100%);height:100%;min-height:0;margin:auto;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:12px}.main-menu-brand{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.main-menu-brand .title-mark{font-size:clamp(50px,6.4vw,86px);line-height:.73;text-align:left}.main-menu-brand .tagline{margin:0 0 6px;letter-spacing:.22em;font-size:clamp(8px,1vw,12px);color:#e7f6fb}.menu-loading{align-self:center;justify-self:center;margin:auto}.main-menu-content{min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:13px}.mode-section,.menu-side{min-width:0;min-height:0;padding:12px;background:rgba(12,28,35,.9);border:2px solid rgba(255,255,255,.38);box-shadow:0 12px 30px rgba(0,0,0,.38);backdrop-filter:blur(6px)}.mode-section{display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px}.menu-section-title{display:flex;align-items:center;justify-content:space-between;padding:2px 3px 8px;border-bottom:1px solid #58717b}.menu-section-title>div{display:flex;flex-direction:column;gap:3px}.menu-section-title b{color:var(--accent);font-size:17px;letter-spacing:.06em}.menu-section-title small{color:#a9c5ce;font-size:8px}.menu-section-title>span{padding:4px 7px;background:#223c46;color:#9ebac4;font-size:8px}.mode-grid{min-height:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:minmax(116px,1.35fr) minmax(86px,1fr);gap:9px}.mode-card{position:relative;min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:13px;padding:15px;border:2px solid rgba(255,255,255,.45);color:white;text-align:left;overflow:hidden;cursor:pointer;touch-action:manipulation;box-shadow:inset 0 0 0 2px rgba(0,0,0,.18),0 6px 0 rgba(0,0,0,.3)}.mode-card:before{content:"";position:absolute;inset:0;background:linear-gradient(115deg,rgba(255,255,255,.13),transparent 55%);pointer-events:none}.mode-card:active:not(:disabled){transform:translateY(4px);box-shadow:inset 0 0 0 2px rgba(0,0,0,.18),0 2px 0 rgba(0,0,0,.3)}.survival-card{grid-column:span 3;background:linear-gradient(135deg,#356c3c,#172f27)}.creative-card{grid-column:span 3;background:linear-gradient(135deg,#377c9c,#24385b)}.coming-card{grid-column:span 2;background:linear-gradient(135deg,#384951,#202b31);opacity:.72;cursor:not-allowed}.mode-art{position:relative;z-index:1;display:grid;place-items:center;width:58px;height:58px;background:rgba(5,18,23,.45);border:2px solid rgba(255,255,255,.48);font-size:29px;text-shadow:0 3px #18303a}.mode-copy{position:relative;z-index:1;min-width:0;display:flex;flex-direction:column;gap:5px}.mode-copy b{font-size:clamp(14px,1.65vw,22px);letter-spacing:.06em}.mode-copy small{color:#d3e4e9;font-size:8px;line-height:1.35}.mode-card em{position:relative;z-index:1;align-self:end;padding:5px 7px;background:rgba(8,21,27,.58);color:#ffe887;font-size:8px;font-style:normal;font-weight:900;white-space:nowrap}.coming-card .mode-art{width:42px;height:42px;font-size:21px}.coming-card .mode-copy b{font-size:12px}.coming-card em{position:absolute;right:6px;bottom:5px;font-size:6px}.menu-side{display:grid;grid-template-rows:minmax(95px,1fr) repeat(3,auto);gap:8px}.player-room-card{position:relative;display:flex;align-items:center;justify-content:center;gap:16px;min-height:0;background:linear-gradient(145deg,#345866,#192f38);border:1px solid #66818b;overflow:hidden}.player-room-card>div:last-child{display:flex;flex-direction:column;gap:5px}.player-room-card b{font-size:12px;color:var(--accent)}.player-room-card small{font-size:7px;color:#b8d0d8}.player-silhouette{position:relative;width:58px;height:82px;flex:0 0 auto;filter:drop-shadow(4px 5px 0 rgba(0,0,0,.28))}.player-silhouette i,.player-silhouette b,.player-silhouette span{position:absolute;display:block;background:#d59b68;border:2px solid #4b3428}.player-silhouette i{left:17px;top:0;width:27px;height:27px}.player-silhouette b{left:12px;top:28px;width:37px;height:33px;background:#2f7685}.player-silhouette span{left:15px;top:60px;width:31px;height:21px;background:#354f75}.menu-tile{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:10px;min-height:54px;padding:8px 11px;border:2px solid #607983;background:#1a343e;color:white;text-align:left;box-shadow:inset 2px 2px rgba(255,255,255,.1),0 4px 0 rgba(0,0,0,.3);cursor:pointer;touch-action:manipulation}.menu-tile:active{transform:translateY(3px);box-shadow:inset 2px 2px rgba(255,255,255,.1),0 1px 0 rgba(0,0,0,.3)}.menu-tile>span{display:grid;place-items:center;width:34px;height:34px;background:#294955;color:var(--accent);font-size:21px}.menu-tile>div{display:flex;flex-direction:column;gap:3px}.menu-tile b{font-size:10px;letter-spacing:.07em}.menu-tile small{font-size:7px;color:#a9c5ce}.wardrobe-tile{border-color:#c39f48;background:#463c26}.menu-controls{margin:0;align-items:center;flex-direction:row;justify-content:center;color:#bcd1d8;font-size:8px}.menu-controls b{color:var(--accent)}.save-footer>div{display:flex;gap:8px}#game[data-mode="creative"] #status-bars{display:none}#game[data-mode="creative"] #debug:after{content:" · CREATIVE";color:#8fe8ff}
@media(max-width:900px){.main-menu-content{grid-template-columns:minmax(0,1fr) 235px}.mode-card{gap:8px;padding:10px}.mode-art{width:47px;height:47px;font-size:24px}.menu-side{padding:9px}.player-room-card{gap:8px}.player-room-card>div:last-child{display:none}.mode-copy small{font-size:7px}}
@media(max-height:520px){.main-menu-screen{padding:calc(6px + var(--safe-t)) calc(8px + var(--safe-r)) calc(5px + var(--safe-b)) calc(8px + var(--safe-l))}.main-menu-shell{grid-template-rows:48px minmax(0,1fr) 19px;gap:5px}.main-menu-brand{min-height:0}.main-menu-brand .title-mark{font-size:42px}.main-menu-brand .tagline{font-size:7px;margin:0 0 3px}.menu-loading{grid-row:2}.main-menu-content{grid-row:2;grid-template-columns:minmax(0,1fr) 205px;gap:6px}.mode-section,.menu-side{padding:6px}.mode-section{gap:5px}.menu-section-title{padding:0 2px 4px}.menu-section-title b{font-size:11px}.menu-section-title small{display:none}.mode-grid{grid-template-rows:minmax(75px,1.2fr) minmax(58px,1fr);gap:5px}.mode-card{gap:6px;padding:7px;border-width:1px;box-shadow:0 3px 0 rgba(0,0,0,.3)}.mode-art{width:36px;height:36px;font-size:19px;border-width:1px}.mode-copy{gap:2px}.mode-copy b{font-size:11px}.mode-copy small{font-size:6px}.mode-card em{padding:3px 4px;font-size:6px}.coming-card{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:2px}.coming-card .mode-art{width:25px;height:25px;font-size:13px}.coming-card .mode-copy b{font-size:8px}.coming-card .mode-copy small{display:none}.coming-card em{right:2px;bottom:2px;font-size:5px}.menu-side{grid-template-rows:46px repeat(3,minmax(0,1fr));gap:5px}.player-room-card{min-height:0}.player-silhouette{width:30px;height:42px;transform:scale(.52)}.player-room-card>div:last-child{display:flex}.player-room-card b{font-size:8px}.player-room-card small{display:none}.menu-tile{grid-template-columns:29px minmax(0,1fr);min-height:0;padding:4px 6px;gap:6px;border-width:1px;box-shadow:0 2px 0 rgba(0,0,0,.3)}.menu-tile>span{width:26px;height:26px;font-size:15px}.menu-tile b{font-size:7px}.menu-tile small{font-size:5px}.menu-controls{grid-row:3;font-size:6px;white-space:nowrap;overflow:hidden}.menu-controls span{overflow:hidden;text-overflow:ellipsis}.main-menu-screen .controls-help{margin-top:0}.main-menu-screen .title-mark span,.main-menu-screen .title-mark b{display:inline}.main-menu-screen .title-mark b{margin-left:8px}}
#game[data-mode="creative"] #debug:after{content:none}
#game:not(.playing) #debug{display:none}

/* V108 game-mode artwork */
.mode-card .mode-art{width:68px;height:68px;background:rgba(5,18,23,.34);overflow:visible}
.mode-art img{display:block;width:118%;height:118%;max-width:none;object-fit:contain;filter:drop-shadow(0 4px 2px rgba(0,0,0,.38));pointer-events:none}
@media(max-width:900px){.mode-card .mode-art{width:52px;height:52px}}
@media(max-height:520px){.mode-card .mode-art{width:42px;height:42px}}

/* Live 3D character in the main-menu dressing-room card */
.menu-avatar-preview{position:relative;align-self:stretch;width:96px;min-height:104px;flex:0 0 96px;overflow:hidden;border-right:1px solid rgba(196,230,239,.28);background:radial-gradient(ellipse at 50% 78%,rgba(105,176,193,.26),transparent 48%),linear-gradient(160deg,rgba(111,184,199,.13),rgba(6,20,27,.15))}
.menu-avatar-preview:after{content:"";position:absolute;left:16%;right:16%;bottom:5%;height:10%;border-radius:50%;background:rgba(2,12,16,.32);filter:blur(5px);pointer-events:none}
.menu-avatar-preview canvas{position:absolute;z-index:1;inset:0;display:block;width:100%!important;height:100%!important;pointer-events:none;image-rendering:pixelated}
.player-room-copy{min-width:0;padding-right:10px}
@media(max-width:900px){.menu-avatar-preview{width:78px;flex-basis:78px}}
@media(max-height:520px){.menu-side{grid-template-rows:58px repeat(3,minmax(0,1fr))}.player-room-card{gap:4px}.menu-avatar-preview{width:54px;min-height:56px;flex-basis:54px}}

/* V216 progression: first-session guide, daily missions and weekly chest */
.menu-side{grid-template-rows:minmax(95px,1fr) repeat(4,auto)}
.journal-menu-tile{border-color:#6bb6c9;background:#1b3f4a;position:relative}.journal-menu-tile>span{background:#275965;color:#ffe36b}.journal-menu-tile>em{position:absolute;right:8px;top:7px;min-width:18px;height:18px;display:grid;place-items:center;border:2px solid #ffe47a;background:#b63d31;color:#fff;font-size:8px;font-style:normal}.journal-menu-tile>em.hidden{display:none}
.guide-hud{position:absolute;z-index:18;left:calc(14px + var(--safe-l));top:calc(83px + var(--safe-t));width:225px;display:none;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;padding:9px 10px;border:2px solid #92cbd8;background:rgba(9,30,38,.88);color:#fff;text-align:left;box-shadow:0 5px 0 rgba(0,0,0,.35);cursor:pointer;touch-action:manipulation}.playing .guide-hud:not(.hidden){display:grid}.guide-hud small{grid-column:1/-1;color:#ffe36b;font-size:7px;letter-spacing:.12em}.guide-hud b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}.guide-hud>span{grid-column:1;display:block;height:6px;border:1px solid #5d7d86;background:#15282f}.guide-hud>span i{display:block;width:0;height:100%;background:#62d28c}.guide-hud em{grid-column:2;grid-row:2/4;align-self:center;color:#ffe36b;font-size:7px;font-style:normal;white-space:nowrap}
.guide-hud[data-kind="daily"]{border-color:#76d7eb;background:linear-gradient(135deg,rgba(18,61,72,.94),rgba(8,29,37,.94))}.guide-hud[data-kind="ready"]{border-color:#ffe36b;background:linear-gradient(135deg,rgba(99,78,20,.95),rgba(35,34,21,.95));animation:mission-ready-pulse 1.8s ease-in-out infinite}.guide-hud[data-kind="ready"]>span i{background:#ffe36b}.guide-hud[data-kind="weekly"]{border-color:#b89cf6}.guide-hud[data-kind="weekly"]>span i{background:#b89cf6}@keyframes mission-ready-pulse{50%{box-shadow:0 5px 0 rgba(0,0,0,.35),0 0 15px rgba(255,226,91,.42)}}
.journal-overlay{z-index:72}.journal-panel{z-index:73;width:min(1180px,calc(100% - 24px));height:min(790px,calc(100dvh - 24px));display:flex;flex-direction:column;background:#e4e5e3;color:#14262d}.journal-panel.hidden{display:none}.journal-panel>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:4px solid #253941;background:#112932;color:#fff}.journal-panel>header>div:first-child{display:flex;flex-direction:column;gap:4px}.journal-panel>header b{color:#ffe161}.journal-panel>header small{color:#a8c8d1}.journal-header-actions{display:flex;align-items:center;gap:8px}.journal-wallet{padding:9px 12px;border:2px solid #b08a20;background:#654f13;color:#ffe36b}.journal-wallet b{color:#fff}.journal-panel #journal-close{width:46px;height:44px;border:2px solid #92a8b0;background:#213b45;color:#fff;font-size:25px}.journal-content{min-height:0;flex:1;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(310px,.85fr);gap:10px;padding:10px;overflow:auto}.journal-card{border:3px solid #77898f;background:#f1f2ef;box-shadow:0 4px 0 #9b9d98}.journal-card>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 11px;background:#244650;color:#fff}.journal-card>header>div{display:flex;flex-direction:column;gap:3px}.journal-card>header small{color:#76d8ed;font-size:7px}.journal-card>header b{font-size:12px}.journal-card>header>span{font-size:7px;color:#ffe170}.journal-tutorial{grid-row:span 2}.journal-tutorial-list{display:grid;gap:5px;padding:8px}.journal-tutorial-step{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:57px;padding:7px;border:2px solid #8d9a9c;background:#fff}.journal-tutorial-step>i{display:grid;place-items:center;width:32px;height:32px;background:#274853;color:#ffe36a;font-style:normal}.journal-tutorial-step>div{display:flex;min-width:0;flex-direction:column;gap:3px}.journal-tutorial-step b{font-size:8px}.journal-tutorial-step small{font-size:6px;color:#5a686d}.journal-tutorial-step div>span,.journal-mission-grid article div>span,.journal-weekly div>span{display:block;height:6px;border:1px solid #7b898c;background:#c5cac8}.journal-tutorial-step div>span em,.journal-mission-grid article div>span em,.journal-weekly div>span em{display:block;height:100%;background:#42b874}.journal-tutorial-step>strong{font-size:7px;color:#785d13;white-space:nowrap}.journal-tutorial-step.complete{border-color:#58a66e;background:#edf9ef}.journal-tutorial-step.complete>i{background:#377b4b;color:#fff}.journal-tutorial-step.locked{opacity:.48}.journal-tutorial>footer{display:flex;justify-content:flex-end;gap:7px;padding:0 8px 8px}.journal-tutorial>footer button,.journal-login>button,.journal-mission-grid button,.journal-weekly>button{padding:8px 10px;border:2px solid #435b63;background:#2c4b56;color:#fff;font-size:7px;font-weight:900;cursor:pointer}.journal-tutorial>footer .claim,.journal-login>button,.journal-mission-grid article.ready button,.journal-weekly.ready>button{border-color:#9c7416;background:#f3c83c;color:#261f0d;box-shadow:0 3px #846117}.journal-login{padding-bottom:9px}.journal-login>header{margin-bottom:8px}.journal-streak{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;padding:0 8px 8px}.journal-streak>div{display:flex;min-width:0;flex-direction:column;align-items:center;gap:3px;padding:7px 2px;border:2px solid #a1a7a5;background:#d7dad7}.journal-streak small{font-size:5px}.journal-streak b{font-size:7px}.journal-streak span{font-size:5px;color:#667176}.journal-streak .collected{border-color:#62a675;background:#dff0e2}.journal-streak .ready{border-color:#e4ba2d;background:#fff0a7}.journal-login>button{display:block;margin:auto}.journal-login>button:disabled,.journal-mission-grid button:disabled,.journal-weekly>button:disabled{opacity:.58;box-shadow:none;cursor:default}.journal-missions{grid-column:1/-1}.journal-mission-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:8px}.journal-mission-grid article{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:7px;padding:7px;border:2px solid #9da5a4;background:#fff}.journal-mission-grid article>i{display:grid;place-items:center;width:32px;height:32px;background:#244650;color:#ffe36a;font-style:normal}.journal-mission-grid article>div{display:flex;min-width:0;flex-direction:column;gap:3px}.journal-mission-grid b{font-size:8px}.journal-mission-grid small,.journal-mission-grid strong{font-size:6px}.journal-mission-grid article.ready{border-color:#d4a918;background:#fff8d6}.journal-mission-grid article.claimed{border-color:#63a675;background:#eaf7ec}.journal-weekly{grid-column:1/-1;display:grid;grid-template-columns:86px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px;background:linear-gradient(110deg,#173641,#234e59 60%,#5c4817);color:#fff;border-color:#a78226}.journal-chest{position:relative;width:76px;height:58px;border:3px solid #5c3c12;border-radius:4px;background:linear-gradient(#d49a26 0 42%,#845414 42%);box-shadow:inset 0 0 0 3px #efc44d}.journal-chest:before{content:"";position:absolute;left:29px;top:21px;width:16px;height:19px;background:#f9df69;border:2px solid #604512}.journal-chest b{position:absolute;left:33px;top:23px;color:#6c4c11}.journal-weekly>div:nth-child(2){display:flex;flex-direction:column;gap:5px}.journal-weekly small{color:#72d7ed;font-size:7px}.journal-weekly div>b{color:#ffe168;font-size:13px}.journal-weekly p{margin:0;color:#c6d9de;font-size:7px}.journal-weekly div>span{max-width:420px}.journal-weekly div>strong{font-size:7px}.journal-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;border-top:2px solid #7b898e;background:#d4d6d4}.journal-footer span{font-size:8px;color:#4c5a5f}.journal-footer button{min-width:140px}
@media(max-width:780px){.journal-content{grid-template-columns:1fr}.journal-tutorial{grid-row:auto}.journal-missions,.journal-weekly{grid-column:auto}.journal-mission-grid{grid-template-columns:1fr}.journal-streak{gap:2px}.journal-streak>div{border-width:1px}.journal-weekly{grid-template-columns:64px minmax(0,1fr)}.journal-weekly>button{grid-column:1/-1}.journal-chest{transform:scale(.78);transform-origin:left center}}
@media(max-height:520px){.menu-side{grid-template-rows:52px repeat(4,minmax(0,1fr))}.journal-panel{height:calc(100dvh - var(--safe-t) - var(--safe-b) - 8px);width:calc(100% - var(--safe-l) - var(--safe-r) - 12px)}.journal-panel>header{padding:6px 9px}.journal-content{grid-template-columns:minmax(0,1.15fr) minmax(290px,.85fr);padding:6px;gap:6px}.journal-card>header{padding:5px 7px}.journal-tutorial-step{min-height:40px;padding:3px}.journal-tutorial-step>i{width:25px;height:25px}.journal-tutorial-list{gap:3px;padding:5px}.journal-streak>div{padding:4px 1px}.journal-mission-grid{grid-template-columns:repeat(3,1fr);padding:5px}.journal-mission-grid article{grid-template-columns:27px minmax(0,1fr);padding:4px}.journal-mission-grid article>i{width:25px;height:25px}.journal-mission-grid button{grid-column:1/-1;padding:4px}.journal-weekly{padding:5px}.journal-chest{height:48px;transform:scale(.72)}.journal-footer{padding:5px 8px}.guide-hud{top:calc(62px + var(--safe-t));width:185px;padding:6px}}
.save-slot.editing{border-left-color:#ffe577}.save-name-edit{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px;padding-top:10px;border-top:1px solid #536b74}.save-name-input{min-width:0;height:39px;padding:0 11px;border:2px solid #8ca1a8;outline:none;background:#0d2027;color:white;font-family:inherit;font-size:14px;font-weight:900}.save-name-input:focus{border-color:#ffe577;box-shadow:0 0 0 2px rgba(255,229,119,.16)}
.save-slot.different-mode{border-left-color:#66767c}.save-slot.different-mode .save-info span{color:#d1bd83}
@media(max-width:760px),(pointer:coarse){.save-name-edit{grid-template-columns:1fr 1fr}.save-name-input{grid-column:1/-1;height:42px;font-size:16px}.save-name-edit .save-action{width:100%}}
.skycubes-card{grid-column:span 2;background:linear-gradient(135deg,#725b2c,#283b53);border-color:#f2d36a}.skycubes-card .mode-art{width:42px;height:42px;font-size:21px;background:linear-gradient(#7bc7ec 0 55%,#6d954d 56% 70%,#79512f 71%)}.skycubes-goals{position:absolute;z-index:8;top:calc(82px + var(--safe-t));right:calc(16px + var(--safe-r));width:min(238px,38vw);border:2px solid rgba(255,255,255,.5);background:rgba(9,25,33,.84);box-shadow:0 6px 18px rgba(0,0,0,.35);backdrop-filter:blur(5px);pointer-events:auto}.skycubes-goals>button{display:flex;justify-content:space-between;width:100%;padding:9px 11px;border:0;border-bottom:1px solid #58717b;background:#243e49;color:#ffe471;font:inherit;font-size:9px;letter-spacing:.09em;cursor:pointer}.skycubes-goals>button span{color:white}.skycubes-goals>div{display:grid;gap:5px;padding:8px 10px}.skycubes-goals>div>div{display:grid;grid-template-columns:16px minmax(0,1fr);align-items:center;gap:4px;color:#c1d3d9;font-size:7px}.skycubes-goals>div>div span{color:#ffe471}.skycubes-goals>div>div.done{color:#79d88a;text-decoration:line-through}.skycubes-goals>div>div.done span{color:#79d88a}.skycubes-goals.compact>div{display:none}.skycubes-goals.compact>button{border-bottom:0}
@media(max-width:760px),(pointer:coarse){.skycubes-goals{top:calc(62px + var(--safe-t));right:calc(8px + var(--safe-r));width:min(215px,35vw)}.skycubes-goals>button{padding:7px 8px;font-size:7px}.skycubes-goals>div{gap:3px;padding:5px 7px}.skycubes-goals>div>div{font-size:6px}}
.parkour-card{grid-column:span 2;background:linear-gradient(135deg,#8c3c55,#283c68);border-color:#ff9dbd}.parkour-card .mode-art{width:42px;height:42px;font-size:21px;background:linear-gradient(145deg,#e35c81,#5c75c8)}.parkour-hud{position:absolute;z-index:8;top:calc(82px + var(--safe-t));right:calc(16px + var(--safe-r));width:min(245px,38vw);border:2px solid rgba(255,255,255,.52);background:rgba(10,22,34,.86);box-shadow:0 7px 20px rgba(0,0,0,.4);backdrop-filter:blur(5px)}.parkour-hud header{padding:9px 11px;border-bottom:1px solid #657585;background:linear-gradient(90deg,#6d2941,#293b65)}.parkour-hud header>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.parkour-hud header b{color:#fff07a;font-size:17px;letter-spacing:.05em}.parkour-hud header span{font-size:7px;color:#dce9ef}.parkour-hud header small{display:block;margin-top:5px;font-size:6px;letter-spacing:.14em;color:#ffb7cc}.parkour-hud ol{display:grid;gap:3px;margin:0;padding:7px 8px 8px;list-style:none}.parkour-hud li{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:6px;padding:5px 7px;background:rgba(60,79,94,.45);font-size:8px}.parkour-hud li b{display:grid;place-items:center;width:20px;height:20px;background:#263d49;color:#ffe66b}.parkour-hud li span{font-weight:900}.parkour-hud li em{font-size:7px;font-style:normal;color:#b9cdd5}.parkour-hud li.you{background:rgba(211,61,103,.3);outline:1px solid #ff87aa}.parkour-hud li.waiting{background:rgba(180,143,44,.28);outline:1px solid #ffe36b}.parkour-hud li.waiting em{color:#ffe36b}.parkour-countdown{position:absolute;z-index:15;left:50%;top:42%;transform:translate(-50%,-50%);color:#fff475;font-size:clamp(58px,10vw,118px);font-weight:1000;letter-spacing:.04em;text-shadow:5px 6px 0 #8d2948,0 0 28px rgba(255,225,92,.6);pointer-events:none}.parkour-finish{position:absolute;z-index:24;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;flex-direction:column;width:min(460px,88vw);padding:24px;border:3px solid #ffdc68;background:linear-gradient(145deg,rgba(30,52,72,.97),rgba(72,30,52,.98));box-shadow:0 0 0 100vmax rgba(3,12,18,.7),0 14px 35px rgba(0,0,0,.55);text-align:center}.parkour-finish small{color:#ffb5cc;font-size:9px;letter-spacing:.18em}.parkour-finish>b{margin-top:8px;color:#fff475;font-size:clamp(28px,6vw,52px)}.parkour-finish>strong{margin-top:5px;font-size:clamp(22px,4vw,38px)}.parkour-finish>span{margin-top:7px;color:#bdd5de;font-size:9px}.parkour-finish>div{display:flex;gap:8px;margin-top:19px}.parkour-finish .play,.parkour-finish .menu-secondary{margin:0;padding:11px 18px}#game[data-mode="parkour"] #status-bars,#game[data-mode="parkour"] #hotbar,#game[data-mode="parkour"] #inventory-button,#game[data-mode="parkour"] #mine-progress,#game[data-mode="parkour"] #mine-button,#game[data-mode="parkour"] #place-button{display:none!important}#game[data-mode="parkour"] #debug:after{content:" · RACE";color:#ff9fbd}
@media(max-width:760px),(pointer:coarse){.parkour-hud{top:calc(58px + var(--safe-t));right:calc(7px + var(--safe-r));width:min(205px,34vw)}.parkour-hud header{padding:6px 7px}.parkour-hud header b{font-size:12px}.parkour-hud header span{font-size:6px}.parkour-hud ol{padding:4px;gap:2px}.parkour-hud li{grid-template-columns:17px minmax(0,1fr) auto;padding:3px 4px;font-size:6px}.parkour-hud li b{width:16px;height:16px}.parkour-hud li em{font-size:6px}.parkour-finish{padding:15px}.parkour-finish>div{margin-top:12px}.parkour-finish .play,.parkour-finish .menu-secondary{padding:9px 12px;font-size:8px}}

/* Endless Parkour and online leaderboards */
.parkour-hud>button{display:flex;width:100%;min-height:36px;align-items:center;justify-content:center;gap:7px;border:0;border-top:2px solid rgba(255,255,255,.36);background:linear-gradient(#d44370,#852c54);color:#fff;font-family:inherit;font-size:8px;font-weight:1000;letter-spacing:.08em;cursor:pointer}.parkour-hud>button span{color:#fff17b;font-size:15px}.parkour-finish>em{margin-top:9px;padding:8px 11px;border:2px solid #697f8e;background:rgba(8,20,29,.6);color:#9be8ff;font-size:8px;font-style:normal;line-height:1.45}.parkour-leaderboard-overlay{z-index:46;background:rgba(2,8,14,.8)}#game[data-mode="parkour"] #debug:after{content:" · PARKOUR"}
.parkour-setup-overlay{z-index:48;background:rgba(2,8,14,.82)}.parkour-setup-panel{position:absolute;z-index:49;left:50%;top:50%;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto auto;width:min(720px,94vw);max-height:min(680px,92dvh);transform:translate(-50%,-50%);overflow:hidden;border:4px solid #17242b;background:linear-gradient(#d8dbdb,#b9bebe);color:#1c282d;box-shadow:0 20px 0 rgba(0,0,0,.28),0 34px 80px rgba(0,0,0,.72)}.parkour-setup-panel>header{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;border-bottom:3px solid #17242b;background:linear-gradient(105deg,#702441,#293f6b);color:#fff}.parkour-setup-panel>header>div{display:flex;flex-direction:column;gap:4px}.parkour-setup-panel>header small{color:#ffb8d0;font-size:8px;letter-spacing:.16em}.parkour-setup-panel>header b{color:#fff17a;font-size:24px}.parkour-setup-panel>header button{display:grid;width:43px;height:43px;place-items:center;border:3px solid #fff;background:#5c3447;font-size:27px;cursor:pointer}.parkour-race-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px 14px}.parkour-race-option{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:76px;padding:10px;border:3px solid #788286;background:#eceeee;color:#202b2f;text-align:left;cursor:pointer;box-shadow:inset 2px 2px #fff,inset -3px -3px #a6abad}.parkour-race-option>span{display:grid;width:44px;height:44px;place-items:center;background:#365b6c;color:#fff07a;font-size:24px}.parkour-race-option>div{display:flex;min-width:0;flex-direction:column;gap:5px}.parkour-race-option b{font-size:12px}.parkour-race-option small{color:#647278;font-size:7px;line-height:1.4}.parkour-race-option em{color:#735d15;font-size:7px;font-style:normal;font-weight:1000}.parkour-race-option.selected{border-color:#d8ad18;background:#fff1a7;box-shadow:inset 0 0 0 2px #fff7cb,inset -3px -3px #d5c26b}.parkour-race-option.selected>span{background:#9b3159}.parkour-bot-switch{display:grid;grid-template-columns:minmax(0,1fr) 56px;align-items:center;gap:12px;margin:0 14px 11px;padding:9px 11px;border:3px solid #5d6e75;background:#193b4a;color:#fff;cursor:pointer}.parkour-bot-switch input{position:absolute;opacity:0;pointer-events:none}.parkour-bot-switch>span{display:flex;flex-direction:column;gap:3px}.parkour-bot-switch b{color:#ffe66c;font-size:10px}.parkour-bot-switch small{color:#b8d7e2;font-size:7px}.parkour-bot-switch i{position:relative;width:52px;height:28px;border:3px solid #15282f;background:#70787a}.parkour-bot-switch i:after{content:"";position:absolute;left:3px;top:3px;width:16px;height:16px;background:#ddd;transition:.15s}.parkour-bot-switch input:checked~i{background:#29934c}.parkour-bot-switch input:checked~i:after{left:27px;background:#fff079}.parkour-friend-picker{display:grid;min-height:0;grid-template-rows:auto minmax(0,1fr);padding:0 14px 8px}.parkour-friend-picker>div:first-child{display:flex;align-items:baseline;justify-content:space-between;padding:6px 2px}.parkour-friend-picker>div:first-child b{font-size:10px}.parkour-friend-picker>div:first-child small{color:#607078;font-size:7px}.parkour-friend-list{display:flex;max-height:230px;min-height:74px;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;flex-direction:column;gap:5px}.parkour-friend-choice{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:52px;padding:6px 9px;border:2px solid #7a8386;background:#f1f2f2;color:#202b2f;cursor:pointer}.parkour-friend-choice>span{display:grid;width:34px;height:34px;place-items:center;background:#3b6678;color:#fff07a;font-weight:1000}.parkour-friend-choice>div{display:flex;min-width:0;flex-direction:column;gap:3px}.parkour-friend-choice b{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.parkour-friend-choice small{color:#68767b;font-size:7px}.parkour-friend-choice em{min-width:78px;padding:7px;border:2px solid #44575f;background:#758288;color:#fff;text-align:center;font-size:7px;font-style:normal;font-weight:1000}.parkour-friend-choice.selected{border-color:#cfa710;background:#fff2aa}.parkour-friend-choice.selected em{border-color:#175b30;background:#2f9650}.parkour-friend-choice.offline{cursor:default;opacity:.58}.parkour-friend-empty{display:grid;min-height:72px;place-items:center;border:2px dashed #848d90;color:#5c696e;font-size:8px}.parkour-setup-panel>p{min-height:28px;margin:0;padding:6px 14px;border-top:2px solid #858d90;background:#d2d5d5;color:#506067;font-size:8px}.parkour-setup-panel>p.error{color:#a12d3b}.parkour-setup-panel>footer{display:flex;justify-content:flex-end;gap:8px;padding:9px 12px;border-top:3px solid #242c30;background:#eceeee}.parkour-setup-panel>footer button{min-width:140px;min-height:42px;margin:0;padding:8px 13px;border:3px solid #344852;font-size:9px;font-weight:1000}.parkour-setup-panel>footer .play{border-color:#1b5b26;background:#2e943d}.parkour-carry-button{position:absolute;z-index:12;left:calc(16px + var(--safe-l));top:calc(82px + var(--safe-t));display:grid;grid-template-columns:34px auto;grid-template-rows:auto auto;column-gap:8px;align-items:center;min-width:170px;padding:7px 10px;border:3px solid #ffe268;background:linear-gradient(#9b3159,#672442);color:#fff;box-shadow:0 5px 0 rgba(0,0,0,.32);cursor:pointer}.parkour-carry-button>span{grid-row:1/3;display:grid;width:32px;height:32px;place-items:center;background:#263f61;color:#fff17a;font-size:18px}.parkour-carry-button b{font-size:8px}.parkour-carry-button small{color:#ffc2d4;font-size:6px}.parkour-carry-overlay{z-index:52;background:rgba(2,8,14,.62)}.parkour-carry-panel{position:absolute;z-index:53;left:50%;top:50%;display:grid;grid-template-columns:58px minmax(0,1fr);gap:13px;width:min(480px,90vw);transform:translate(-50%,-50%);padding:16px;border:4px solid #17242b;background:linear-gradient(135deg,#f4f4f4,#c9cdce);color:#17252b;box-shadow:0 15px 0 rgba(0,0,0,.28),0 30px 70px rgba(0,0,0,.7)}.parkour-carry-panel>span{display:grid;width:58px;height:58px;place-items:center;background:#72304d;color:#fff179;font-size:31px}.parkour-carry-panel>div{display:flex;flex-direction:column;justify-content:center;gap:6px}.parkour-carry-panel>div b{font-size:13px;line-height:1.35}.parkour-carry-panel>div small{color:#65747a;font-size:8px}.parkour-carry-panel>footer{grid-column:1/3;display:flex;justify-content:flex-end;gap:8px;margin-top:4px}.parkour-carry-panel>footer button{min-width:130px;min-height:39px;margin:0;padding:8px;border:3px solid #344852;font-size:8px;font-weight:1000}.parkour-carry-panel>footer .play{border-color:#1b5b26;background:#2e943d}
.parkour-leaderboard-panel{position:absolute;z-index:47;left:50%;top:50%;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto auto;width:min(720px,94vw);height:min(650px,92dvh);transform:translate(-50%,-50%);overflow:hidden;border:4px solid #18232a;background:linear-gradient(#d5d8d8,#b8bcbc);color:#20282c;box-shadow:0 18px 0 rgba(0,0,0,.28),0 35px 80px rgba(0,0,0,.72)}
.parkour-leaderboard-panel>header{display:flex;align-items:center;justify-content:space-between;padding:12px 15px;border-bottom:3px solid #18232a;background:linear-gradient(105deg,#702441,#273e68);color:#fff}.parkour-leaderboard-panel>header>div{display:flex;flex-direction:column;gap:4px}.parkour-leaderboard-panel>header small{color:#ffb8d0;font-size:7px;letter-spacing:.16em}.parkour-leaderboard-panel>header b{color:#fff17a;font-size:23px}.parkour-leaderboard-panel>header button{display:grid;width:42px;height:42px;place-items:center;border:3px solid #fff;background:#5c3447;color:#fff;font-family:inherit;font-size:27px;cursor:pointer}
.parkour-leaderboard-panel>nav{display:grid;grid-template-columns:1fr 1fr;border-bottom:3px solid #252b2e;background:#777}.parkour-leaderboard-panel>nav button{min-height:45px;border:0;border-right:2px solid #555;background:#777;color:#e9e9e9;font-family:inherit;font-size:10px;font-weight:1000;cursor:pointer}.parkour-leaderboard-panel>nav button:last-child{border-right:0}.parkour-leaderboard-panel>nav button.selected{background:#355a70;color:#fff;box-shadow:inset 0 -4px #70dcff}
.parkour-leaderboard-panel>#parkour-leaderboard-summary{padding:10px 14px;border-bottom:2px solid #7a8589;background:#173543;color:#ffe776;font-size:9px;line-height:1.5}.parkour-leaderboard-panel>ol{display:flex;min-height:0;margin:0;padding:10px 13px;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;flex-direction:column;gap:6px;list-style:none}.parkour-leaderboard-panel li{display:grid;grid-template-columns:52px minmax(0,1fr) auto 118px;align-items:center;gap:10px;min-height:55px;padding:7px 10px;border:3px solid #737b7e;background:#e9e9e9;box-shadow:inset 2px 2px #fff,inset -2px -2px #a3a7a8}.parkour-leaderboard-panel li.you{border-color:#d1a91b;background:#fff2a9}.parkour-leaderboard-panel li>b{display:grid;height:36px;place-items:center;border:2px solid #263b46;background:#345969;color:#fff17a;font-size:13px}.parkour-leaderboard-panel li>div{display:flex;min-width:0;flex-direction:column;gap:4px}.parkour-leaderboard-panel li strong{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.parkour-leaderboard-panel li small{color:#6b777b;font-size:7px}.parkour-leaderboard-panel li em{color:#9a294e;font-size:10px;font-style:normal;font-weight:1000}.parkour-player-action{display:flex;min-width:0;align-items:center;justify-content:flex-end;color:#8a6b09;font-size:7px;font-weight:1000}.parkour-friend-action{width:100%;min-height:34px;padding:5px 7px;border:2px solid #244958;background:#3d7184;color:#fff;font-family:inherit;font-size:7px;font-weight:1000;cursor:pointer;box-shadow:inset 1px 1px rgba(255,255,255,.35),inset -2px -2px rgba(0,0,0,.2)}.parkour-friend-action:not(:disabled):active{transform:translateY(1px)}.parkour-friend-action:disabled{border-color:#737b7e;background:#91999b;color:#e8eded;cursor:default}.parkour-leaderboard-panel>p{min-height:30px;margin:0;padding:7px 13px;border-top:2px solid #858b8e;background:#d4d4d4;color:#526067;font-size:7px;line-height:1.45}
.parkour-leaderboard-panel>footer{display:flex;justify-content:flex-end;gap:8px;padding:9px 12px;border-top:3px solid #252b2e;background:#ececec}.parkour-leaderboard-panel>footer button{min-width:135px;min-height:40px;padding:8px 13px;border:3px solid #344852;background:#55707b;color:#fff;font-family:inherit;font-size:9px;font-weight:1000;cursor:pointer}.parkour-leaderboard-panel>footer .play{margin:0;border-color:#1b5b26;background:#2e943d}
@media(max-width:760px),(pointer:coarse){.parkour-hud>button{min-height:30px;font-size:6px}.parkour-hud>button span{font-size:12px}.parkour-leaderboard-panel{width:calc(100vw - var(--safe-l) - var(--safe-r) - 12px);height:calc(100dvh - var(--safe-t) - var(--safe-b) - 10px);max-height:none;border-width:3px}.parkour-leaderboard-panel>header{padding:6px 9px;border-bottom-width:2px}.parkour-leaderboard-panel>header small{font-size:6px}.parkour-leaderboard-panel>header b{font-size:17px}.parkour-leaderboard-panel>header button{width:34px;height:34px;border-width:2px;font-size:22px}.parkour-leaderboard-panel>nav{border-bottom-width:2px}.parkour-leaderboard-panel>nav button{min-height:34px;font-size:8px}.parkour-leaderboard-panel>#parkour-leaderboard-summary{padding:6px 9px;font-size:7px}.parkour-leaderboard-panel>ol{gap:4px;padding:6px 8px}.parkour-leaderboard-panel li{grid-template-columns:40px minmax(0,1fr) 62px 92px;min-height:43px;padding:4px 7px;border-width:2px}.parkour-leaderboard-panel li>b{height:29px;font-size:9px}.parkour-leaderboard-panel li strong{font-size:9px}.parkour-leaderboard-panel li small{font-size:6px}.parkour-leaderboard-panel li em{font-size:8px}.parkour-friend-action{min-height:29px;padding:4px;font-size:6px}.parkour-leaderboard-panel>p{min-height:23px;padding:4px 8px;font-size:6px}.parkour-leaderboard-panel>footer{padding:5px 8px;border-top-width:2px}.parkour-leaderboard-panel>footer button{min-width:115px;min-height:33px;padding:5px 8px;font-size:7px}}
@media(max-width:760px),(pointer:coarse){.parkour-setup-panel{width:calc(100vw - var(--safe-l) - var(--safe-r) - 12px);height:calc(100dvh - var(--safe-t) - var(--safe-b) - 10px);max-height:none;border-width:3px}.parkour-setup-panel>header{padding:6px 9px;border-bottom-width:2px}.parkour-setup-panel>header small{font-size:6px}.parkour-setup-panel>header b{font-size:17px}.parkour-setup-panel>header button{width:34px;height:34px;border-width:2px;font-size:22px}.parkour-race-options{gap:6px;padding:7px 8px}.parkour-race-option{grid-template-columns:35px minmax(0,1fr) auto;min-height:55px;gap:6px;padding:6px;border-width:2px}.parkour-race-option>span{width:32px;height:32px;font-size:18px}.parkour-race-option b{font-size:9px}.parkour-race-option small,.parkour-race-option em{font-size:6px}.parkour-bot-switch{grid-template-columns:minmax(0,1fr) 47px;gap:7px;margin:0 8px 6px;padding:6px 8px;border-width:2px}.parkour-bot-switch b{font-size:8px}.parkour-bot-switch small{font-size:6px}.parkour-bot-switch i{width:45px;height:24px;border-width:2px}.parkour-bot-switch i:after{width:14px;height:14px}.parkour-bot-switch input:checked~i:after{left:25px}.parkour-friend-picker{padding:0 8px 4px}.parkour-friend-list{max-height:none}.parkour-friend-choice{grid-template-columns:32px minmax(0,1fr) auto;min-height:42px;padding:4px 6px}.parkour-friend-choice>span{width:28px;height:28px}.parkour-friend-choice b{font-size:8px}.parkour-friend-choice small,.parkour-friend-choice em{font-size:6px}.parkour-friend-choice em{min-width:66px;padding:5px}.parkour-setup-panel>p{min-height:23px;padding:4px 8px;font-size:6px}.parkour-setup-panel>footer{padding:5px 8px;border-top-width:2px}.parkour-setup-panel>footer button{min-width:112px;min-height:34px;padding:5px 8px;font-size:7px}.parkour-carry-button{left:calc(7px + var(--safe-l));top:calc(58px + var(--safe-t));min-width:140px;grid-template-columns:27px auto;padding:5px 7px;border-width:2px}.parkour-carry-button>span{width:25px;height:25px;font-size:14px}.parkour-carry-button b{font-size:7px}.parkour-carry-button small{font-size:5px}.parkour-carry-panel{padding:11px;border-width:3px}.parkour-carry-panel>span{width:48px;height:48px}.parkour-carry-panel>div b{font-size:10px}.parkour-carry-panel>footer button{min-width:105px;min-height:34px;font-size:7px}}
@media(max-height:520px){.parkour-setup-panel{height:calc(100dvh - var(--safe-t) - var(--safe-b) - 8px);max-height:none}.parkour-setup-panel>header{min-height:44px;padding:4px 9px;box-sizing:border-box}.parkour-setup-panel>header button{width:34px;height:34px;min-height:34px;padding:0;box-sizing:border-box}.parkour-race-options{gap:6px;padding:6px 8px}.parkour-race-option{grid-template-columns:35px minmax(0,1fr) auto;min-height:52px;padding:5px 6px;box-sizing:border-box}.parkour-race-option>span{width:32px;height:32px}.parkour-bot-switch{min-height:40px;margin:0 8px 5px;padding:4px 8px;box-sizing:border-box}.parkour-friend-picker{padding:0 8px 3px}.parkour-friend-picker>div:first-child{padding:3px 2px}.parkour-friend-list{min-height:52px;max-height:none}.parkour-friend-empty{min-height:48px}.parkour-setup-panel>p{min-height:22px;padding:4px 8px;box-sizing:border-box}.parkour-setup-panel>footer{min-height:43px;padding:4px 8px;box-sizing:border-box}.parkour-setup-panel>footer button{min-height:33px;padding:4px 8px;box-sizing:border-box}}
.save-create{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:13px;width:100%;padding:12px;border:2px solid #ffe577;background:#49502d;color:white;text-align:left;box-shadow:inset 2px 2px rgba(255,255,255,.12),0 3px 0 rgba(0,0,0,.35);cursor:pointer}.save-create>span{display:grid;place-items:center;width:46px;height:42px;background:#d8b841;color:#14242a;font-size:27px;font-weight:900}.save-create>div{display:flex;min-width:0;flex-direction:column;gap:5px}.save-create b{font-size:12px;letter-spacing:.08em}.save-create small{color:#e9e2bd;font-size:9px}.save-create:active{transform:translateY(2px);box-shadow:inset 2px 2px rgba(255,255,255,.12),0 1px 0 rgba(0,0,0,.35)}.save-create:disabled{opacity:.3;cursor:not-allowed}.save-empty-list{display:flex;min-height:190px;align-items:center;justify-content:center;flex-direction:column;gap:10px;border:2px dashed #526b75;background:rgba(16,36,43,.55);text-align:center}.save-empty-list b{letter-spacing:.1em}.save-empty-list span{color:#91abb4;font-size:10px}

/* Multiplayer connection alert */
.network-alert-overlay{z-index:64;background:rgba(2,9,14,.86);backdrop-filter:blur(4px)}.network-alert-panel{z-index:65;display:grid;grid-template-columns:74px minmax(0,1fr);align-items:center;gap:16px;width:min(540px,calc(100vw - var(--safe-l) - var(--safe-r) - 24px));padding:22px;border:4px solid #d9e4e8;background:linear-gradient(145deg,#172e38,#09171d);box-shadow:0 12px 0 rgba(0,0,0,.45),0 26px 70px rgba(0,0,0,.72);color:#fff}.network-alert-icon{display:grid;place-items:center;width:68px;height:68px;border:3px solid #ffd85c;background:#6c5419;color:#ffe477;font-size:43px;font-weight:1000;box-shadow:inset 0 0 0 3px rgba(255,255,255,.1)}.network-alert-panel>div{display:flex;min-width:0;flex-direction:column;gap:9px}.network-alert-panel b{color:#ffe477;font-size:21px;letter-spacing:.06em}.network-alert-panel p{margin:0;color:#d6e4e9;font-size:10px;line-height:1.65}.network-alert-panel button{grid-column:1/-1;justify-self:end;min-width:132px;margin-top:3px;padding:12px 22px}.network-alert-panel.hidden{display:none}@media(max-width:760px),(pointer:coarse){.network-alert-panel{grid-template-columns:56px minmax(0,1fr);gap:12px;width:min(500px,calc(100vw - var(--safe-l) - var(--safe-r) - 18px));padding:15px;border-width:3px}.network-alert-icon{width:52px;height:52px;font-size:32px}.network-alert-panel b{font-size:16px}.network-alert-panel p{font-size:9px}.network-alert-panel button{min-width:112px;padding:10px 18px;font-size:9px}}

/* Simulated multiplayer */
.server-browser-overlay{z-index:31;background:rgba(2,10,16,.82)}.server-browser-panel{z-index:32;width:min(980px,96vw);height:min(660px,94dvh);max-height:none;display:flex;flex-direction:column;overflow:hidden;padding:0;background:#d0d0d0;border:4px solid #111;color:#202020;box-shadow:0 18px 0 rgba(0,0,0,.38),0 30px 80px rgba(0,0,0,.72)}.server-browser-panel>header{flex:0 0 auto;align-items:center;padding:13px 18px;background:#ececec;border-bottom:3px solid #111}.server-browser-panel>header div{gap:3px}.server-browser-panel>header b{color:#202020;font-size:24px}.server-browser-panel>header small{color:#5a5a5a;font-size:8px}.server-browser-panel>header button{display:grid;place-items:center;width:44px;height:44px;background:#5b5b5b;color:#fff;border:2px solid #2a2a2a;font-size:27px;cursor:pointer}.server-tabs{display:grid;grid-template-columns:repeat(3,1fr);flex:0 0 auto;background:#777;border-bottom:3px solid #202020}.server-tabs>*{position:relative;padding:12px;text-align:center;color:#e5e5e5;font-size:10px;letter-spacing:.09em}.server-tabs b{background:#3b506b;color:#fff}.server-tabs b:after{content:"";position:absolute;left:12%;right:12%;bottom:0;height:4px;background:#70c4ff}.server-browser-body{display:grid;grid-template-columns:minmax(350px,1.05fr) minmax(300px,.95fr);min-height:0;flex:1;background:#bcbcbc}.server-list-pane{display:flex;min-height:0;flex-direction:column;padding:12px;border-right:3px solid #202020}.server-list-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.server-list-title>b{font-size:10px;color:#3d3d3d;letter-spacing:.07em}.server-list-title button{padding:7px 9px;border:2px solid #4b4b4b;background:#ddd;color:#222;font-size:8px;font-weight:900;cursor:pointer}.server-list{display:grid;align-content:start;gap:7px;min-height:0;overflow-y:auto;touch-action:pan-y}.server-offline-empty{display:flex;min-height:240px;align-items:center;justify-content:center;flex-direction:column;gap:10px;padding:24px;border:3px dashed #707070;background:#aaa;text-align:center;color:#303030}.server-offline-empty>span{display:grid;place-items:center;width:58px;height:58px;border:4px solid #6b5413;background:#f4ce45;color:#2f2b1d;font-size:36px;font-weight:900}.server-offline-empty b{font-size:13px;letter-spacing:.07em}.server-offline-empty small{max-width:320px;color:#515151;font-size:8px;line-height:1.55}.server-row{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:70px;padding:8px;border:3px solid #6d6d6d;background:#a6a6a6;color:#222;text-align:left;cursor:pointer;box-shadow:inset 2px 2px rgba(255,255,255,.38),inset -2px -2px rgba(0,0,0,.18)}.server-row.selected{border-color:#f0c83c;background:#d7d7d7;box-shadow:inset 0 0 0 2px #fff}.server-icon{display:grid;place-items:center;width:50px;height:50px;background:linear-gradient(145deg,var(--server-accent),#233746);border:3px solid #253039;color:#fff;font-size:24px;text-shadow:2px 2px #1d2a30}.server-row>div:nth-child(2){display:flex;min-width:0;flex-direction:column;gap:6px}.server-row b{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.server-row small{color:#494949;font-size:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.server-row>div:last-child{display:flex;align-items:flex-end;flex-direction:column;gap:7px}.server-row span:not(.server-icon){color:#188744;font-size:8px;font-weight:900}.server-row em{color:#444;font-size:7px;font-style:normal}.server-detail{display:flex;min-width:0;min-height:0;align-items:center;flex-direction:column;padding:18px 22px;background:linear-gradient(#d5d5d5,#bababa);text-align:center;overflow-y:auto;touch-action:pan-y}.server-detail-art{display:grid;place-items:center;width:96px;height:96px;background:radial-gradient(circle,var(--server-accent),#29414b 70%);border:4px solid #222;color:#fff;font-size:48px;text-shadow:3px 3px #20313a;box-shadow:0 6px 0 #666}.server-online-tag{margin-top:16px;padding:5px 9px;background:#297744;color:#fff;font-size:8px;font-weight:900}.server-detail h2{margin:10px 0 5px;font-size:18px;letter-spacing:.05em}.server-detail p{max-width:390px;margin:0;color:#444;font-size:9px;line-height:1.55}.server-facts{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;width:100%;margin:14px 0}.server-facts span{padding:8px;background:#9f9f9f;border:2px solid #696969;font-size:7px;font-weight:900}.server-detail>b{align-self:flex-start;margin:4px 0 7px;font-size:8px;color:#444}.server-player-names{display:flex;width:100%;flex-wrap:wrap;gap:5px}.server-player-names span{padding:6px 8px;background:#39515e;color:#fff;border-left:3px solid #65d78a;font-size:7px;font-weight:900}.server-player-names span:first-child{background:#6d5825;border-left-color:#ffe36b;color:#fff4bd}.server-browser-footer{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;background:#e1e1e1;border-top:3px solid #111}.server-browser-footer>span{min-width:0;color:#4a4a4a;font-size:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.server-browser-footer>div{display:flex;gap:8px}.server-browser-footer button{margin:0;min-height:42px}.server-join{padding:10px 20px}.server-join:disabled{opacity:.42;cursor:not-allowed}
.multiplayer-card{grid-column:span 2;background:linear-gradient(135deg,#7048a6,#233b62);border-color:#b895ff}.multiplayer-card .mode-art{width:42px;height:42px;font-size:21px;background:linear-gradient(145deg,#9166d5,#386cac)}
.multiplayer-hud{position:absolute;z-index:7;left:calc(12px + var(--safe-l));top:calc(85px + var(--safe-t));width:min(330px,38vw);border:2px solid rgba(187,158,255,.68);background:rgba(7,20,29,.82);box-shadow:0 7px 22px rgba(0,0,0,.38);backdrop-filter:blur(5px);pointer-events:auto}.multiplayer-hud header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 8px;background:linear-gradient(90deg,#53347a,#203e62);border-bottom:1px solid #796aa1}.multiplayer-hud header>div{display:flex;min-width:0;flex-direction:column;gap:2px}.multiplayer-hud header b{display:flex;align-items:center;gap:6px;font-size:8px;color:#d9cbff}.multiplayer-hud header small{max-width:190px;color:#bfa9e8;font-size:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multiplayer-hud header b i{width:7px;height:7px;border-radius:50%;background:#58e081;box-shadow:0 0 8px #58e081}.multiplayer-hud header button{padding:5px 7px;border:1px solid #c3b3f0;background:#2d3f5b;color:#fff;font-size:7px;font-weight:900;cursor:pointer}.social-feed{display:grid;gap:4px;padding:7px 8px}.social-feed>div{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px;font-size:8px;line-height:1.35}.social-feed b{color:#a9e8ff}.social-feed b.you{color:#ffe36b}.social-feed b.system{color:#78e699}.social-feed span{min-width:0;color:#e2edf1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.social-chat-button{right:calc(242px + var(--safe-r));top:calc(14px + var(--safe-t));width:54px!important;font-size:19px!important}.social-chat-button span{display:block;margin-top:1px;font-size:6px;font-weight:900}
.social-panel{z-index:27;width:min(920px,96vw);max-height:min(720px,94dvh);overflow:hidden;padding:16px}.social-body{display:grid;grid-template-columns:minmax(280px,.88fr) minmax(360px,1.12fr);gap:12px;min-height:390px;padding:12px 0}.quick-chat,.online-players{min-width:0;padding:10px;border:2px solid #506b78;background:#142b34}.quick-chat h3{margin:2px 0 8px;color:#ffe36b;font-size:9px;letter-spacing:.12em}.quick-chat h3:nth-of-type(2){margin-top:14px}#quick-message-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}#quick-message-list button,.quick-emojis button{min-height:42px;padding:7px;border:2px solid #627d89;background:#24444f;color:white;font-size:8px;font-weight:900;text-align:left;cursor:pointer;box-shadow:0 3px 0 rgba(0,0,0,.32)}#quick-message-list button:active,.quick-emojis button:active{transform:translateY(2px);box-shadow:0 1px 0 rgba(0,0,0,.32)}.quick-emojis{display:grid;grid-template-columns:repeat(8,1fr);gap:4px}.quick-emojis button{min-height:39px;padding:3px;text-align:center;font-size:19px;background:#303e55}.online-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px;color:#d9cbff;font-size:10px}.online-title span{padding:4px 6px;background:#294552;color:#61e38b;font-size:7px}#social-player-list{display:grid;gap:5px;max-height:350px;overflow:auto;padding:1px}.social-player{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px;border:2px solid #4e6874;background:#1b3540}.social-player.focused{border-color:#ffe36b;background:#3e3c28}.social-player-avatar{width:42px;height:42px;background-color:#243d48;background-position:-4px -4px;background-size:128px 128px;image-rendering:pixelated;border:2px solid #8ba1aa}.social-player>div:nth-child(2){display:flex;min-width:0;flex-direction:column;gap:2px}.social-player b{font-size:10px}.social-player small{color:#a9c2ca;font-size:7px}.social-player em{align-self:flex-start;padding:2px 4px;background:#295339;color:#76e49a;font-size:6px;font-style:normal}.social-player em[data-reputation="BARGAINER"]{background:#5b4b25;color:#ffdd6b}.social-player em[data-reputation="SUSPICIOUS"]{background:#672e36;color:#ff9ba5}.social-player>div:last-child{display:flex;gap:4px}.social-player button{min-height:32px;padding:5px 7px;border:2px solid #6b8290;background:#2c4a58;color:white;font-size:7px;font-weight:900;cursor:pointer}.social-player button:last-child{border-color:#b895ff;background:#553c78}.social-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #49616b;padding-top:10px}.social-footer span{color:#90aeb9;font-size:8px}
.social-trade-panel{z-index:29;width:min(790px,96vw);max-height:min(720px,95dvh);overflow:hidden;padding:16px}.social-trade-panel header small[data-reputation="SUSPICIOUS"]{color:#ff8d99}.social-trade-note{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:9px;margin-top:10px;padding:8px 10px;border:1px solid #6a7f89;background:#203944}.social-trade-note>span{display:grid;place-items:center;width:38px;height:34px;background:#4d3b73;color:#e0d2ff;font-size:22px}.social-trade-note>div{display:flex;flex-direction:column;gap:3px}.social-trade-note b{font-size:9px;color:#ffe36b}.social-trade-note small{font-size:7px;color:#b5cad2}.social-trade-list{display:grid;gap:7px;max-height:430px;overflow:auto;padding:9px 2px}.social-trade-offer{display:grid;grid-template-columns:minmax(0,1fr) 120px auto;align-items:center;gap:9px;padding:8px;border:2px solid #576f7b;background:#18323d}.social-trade-offer.selected{border-color:#ffe36b;background:#3d3c29}.social-trade-offer.danger{border-left-color:#f06a73}.social-trade-offer.great{border-left-color:#64dd87}.social-trade-exchange{display:grid;grid-template-columns:minmax(0,1fr) 26px minmax(0,1fr);align-items:center;gap:5px}.social-trade-exchange>div{display:flex;min-width:0;flex-direction:column;gap:4px}.social-trade-exchange>div>small{color:#9bb6c0;font-size:6px}.social-trade-exchange>span{color:#d6c4ff;font-size:20px;text-align:center}.social-trade-item{position:relative;display:grid;grid-template-columns:39px 20px minmax(0,1fr);align-items:center;gap:4px;min-width:0;padding:4px;background:#29434d;border:1px solid #6b8088}.social-trade-icon{width:36px;height:36px;image-rendering:pixelated}.social-trade-item b{display:grid;place-items:center;width:19px;height:19px;background:#14272e;color:#ffe36b;font-size:9px}.social-trade-item span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:7px}.social-trade-meta{display:flex;flex-direction:column;gap:4px;text-align:center}.social-trade-meta b{color:#ffe36b;font-size:7px}.social-trade-offer.danger .social-trade-meta b{color:#ff8994}.social-trade-offer.great .social-trade-meta b{color:#75e897}.social-trade-meta small{color:#9cb5bd;font-size:6px}.social-trade-offer>button{min-height:39px;padding:6px 8px;border:2px solid #b895ff;background:#533d78;color:white;font-size:7px;font-weight:900;cursor:pointer}.social-trade-offer>button:disabled{opacity:.38;cursor:not-allowed}.social-trade-offer.selected>button{border-color:#ffe36b;background:#746126}.social-trade-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #49616b;padding-top:10px}.social-trade-footer>span{color:#b4cad2;font-size:8px}.social-trade-footer>span.good{color:#6fe393}.social-trade-footer>span.danger{color:#ff8994}#game[data-mode="multiplayer"] #debug:after{content:" · SOCIAL";color:#c1a6ff}
@media(max-width:760px),(pointer:coarse){.touch #game[data-mode="multiplayer"] #debug{display:block;z-index:8;font-size:8px;opacity:.88}.multiplayer-hud{left:calc(7px + var(--safe-l));top:calc(66px + var(--safe-t));width:min(285px,43vw)}.multiplayer-hud header{padding:5px 6px}.multiplayer-hud header b{font-size:6px}.multiplayer-hud header button{padding:4px 5px;font-size:6px}.social-feed{padding:5px 6px;gap:2px}.social-feed>div{font-size:6px}.social-chat-button{right:calc(270px + var(--safe-r));width:40px!important;height:40px!important;font-size:15px!important}.social-chat-button span{font-size:5px}.social-panel,.social-trade-panel{width:calc(100vw - var(--safe-l) - var(--safe-r) - 12px);height:calc(100dvh - var(--safe-t) - var(--safe-b) - 10px);max-height:none;padding:9px}.social-body{grid-template-columns:minmax(245px,.9fr) minmax(300px,1.1fr);gap:7px;min-height:0;height:calc(100% - 86px);padding:7px 0}.quick-chat,.online-players{padding:6px}.quick-chat h3{margin-bottom:5px;font-size:7px}#quick-message-list{gap:3px}#quick-message-list button{min-height:30px;padding:4px;font-size:6px;border-width:1px}.quick-emojis{gap:2px}.quick-emojis button{min-height:30px;font-size:15px;border-width:1px}#social-player-list{max-height:calc(100dvh - 116px);gap:3px}.social-player{grid-template-columns:35px minmax(0,1fr) auto;gap:5px;padding:4px;border-width:1px}.social-player-avatar{width:33px;height:33px;background-size:102px 102px}.social-player b{font-size:8px}.social-player small,.social-player em{font-size:5px}.social-player button{min-height:27px;padding:3px 5px;font-size:6px;border-width:1px}.social-footer{padding-top:6px}.social-footer span{font-size:6px}.social-trade-note{margin-top:5px;padding:5px}.social-trade-list{max-height:calc(100dvh - 160px);padding:5px 1px;gap:4px}.social-trade-offer{grid-template-columns:minmax(0,1fr) 90px auto;gap:5px;padding:5px;border-width:1px}.social-trade-item{grid-template-columns:31px 16px minmax(0,1fr);padding:2px}.social-trade-icon{width:29px;height:29px}.social-trade-item b{width:15px;height:15px;font-size:7px}.social-trade-item span{font-size:6px}.social-trade-offer>button{min-height:32px;padding:4px 5px;font-size:6px}.social-trade-footer{padding-top:5px}.social-trade-footer>span{font-size:6px}}
@media(max-width:760px),(pointer:coarse){.server-browser-panel{width:calc(100vw - var(--safe-l) - var(--safe-r) - 10px);height:calc(100dvh - var(--safe-t) - var(--safe-b) - 8px)}.server-browser-panel>header{padding:7px 11px}.server-browser-panel>header b{font-size:17px}.server-browser-panel>header button{width:34px;height:34px;font-size:21px}.server-tabs>*{padding:8px;font-size:7px}.server-browser-body{grid-template-columns:minmax(310px,1.1fr) minmax(270px,.9fr)}.server-list-pane{padding:7px}.server-list-title{margin-bottom:5px}.server-row{grid-template-columns:42px minmax(0,1fr) auto;min-height:54px;padding:5px;gap:6px;border-width:2px}.server-icon{width:40px;height:40px;font-size:19px;border-width:2px}.server-row b{font-size:8px}.server-row small,.server-row em,.server-row span:not(.server-icon){font-size:6px}.server-detail{padding:9px 12px}.server-detail-art{width:64px;height:64px;font-size:31px;border-width:3px}.server-online-tag{margin-top:8px}.server-detail h2{margin:6px 0 3px;font-size:12px}.server-detail p{font-size:7px}.server-facts{margin:7px 0;gap:4px}.server-facts span{padding:5px;font-size:6px}.server-player-names span{padding:4px 6px;font-size:6px}.server-browser-footer{padding:6px 8px}.server-browser-footer button{min-height:34px;padding:7px 10px;font-size:7px}}
@media(pointer:coarse) and (min-width:700px) and (min-height:500px){.server-browser-panel{width:calc(100vw - var(--safe-l) - var(--safe-r) - 22px);height:calc(100dvh - var(--safe-t) - var(--safe-b) - 20px);border-width:5px}.server-browser-panel>header{padding:13px 18px}.server-browser-panel>header b{font-size:28px}.server-browser-panel>header small{font-size:12px;letter-spacing:.1em}.server-browser-panel>header button{width:48px;height:48px;font-size:29px;border-width:3px}.server-tabs>*{padding:14px 10px;font-size:13px}.server-tabs b:after{height:5px}.server-browser-body{grid-template-columns:minmax(390px,1.12fr) minmax(330px,.88fr)}.server-list-pane{padding:14px}.server-list-title{margin-bottom:10px}.server-list-title>b{font-size:14px}.server-list-title button{padding:10px 13px;font-size:12px}.server-list{gap:10px}.server-row{grid-template-columns:62px minmax(0,1fr) auto;min-height:88px;padding:10px;gap:13px;border-width:3px}.server-icon{width:60px;height:60px;font-size:29px;border-width:3px}.server-row>div:nth-child(2){gap:8px}.server-row b{font-size:16px}.server-row small{font-size:11px;line-height:1.3}.server-row>div:last-child{gap:10px}.server-row span:not(.server-icon){font-size:12px}.server-row em{font-size:11px}.server-detail{padding:21px 25px}.server-detail-art{width:106px;height:106px;font-size:51px;border-width:4px}.server-online-tag{margin-top:16px;padding:7px 11px;font-size:11px}.server-detail h2{margin:12px 0 7px;font-size:22px}.server-detail p{font-size:13px;line-height:1.6}.server-facts{margin:17px 0;gap:9px}.server-facts span{padding:11px 8px;font-size:11px}.server-detail>b{margin:6px 0 10px;font-size:12px}.server-player-names{gap:7px}.server-player-names span{padding:8px 10px;font-size:11px}.server-browser-footer{padding:12px 15px}.server-browser-footer>span{font-size:12px}.server-browser-footer button{min-height:48px;padding:11px 17px;font-size:12px}.server-join{padding-inline:24px!important}}

/* V85 main menu, splash and store */
.splash-screen{z-index:58;gap:22px;background:radial-gradient(circle at 50% 42%,rgba(60,145,173,.82),rgba(7,29,40,.98) 68%),linear-gradient(#226b88,#071a23)}
.splash-logo{display:block;width:min(620px,72vw);max-height:48vh;object-fit:contain;filter:drop-shadow(0 13px 18px rgba(0,0,0,.55))}
.splash-screen .menu-loading{margin:0;width:min(560px,82vw)}
.splash-screen>small{color:#bcd5df;font-size:11px;letter-spacing:.28em}
.main-menu-heading{display:flex;align-items:flex-end;flex-direction:column;gap:5px;text-align:right}.main-menu-heading>small{color:var(--accent);font-size:11px;font-weight:900;letter-spacing:.2em}
.menu-home-section{display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px;min-width:0;min-height:0;padding:12px;background:rgba(12,28,35,.9);border:2px solid rgba(255,255,255,.38);box-shadow:0 12px 30px rgba(0,0,0,.38);backdrop-filter:blur(6px)}
.main-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(100px,1fr));gap:10px;min-height:0}
.main-action-card{position:relative;display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:14px;min-width:0;padding:15px;border:2px solid #6f8a94;background:linear-gradient(135deg,#284a57,#132b34);color:white;text-align:left;cursor:pointer;box-shadow:inset 2px 2px rgba(255,255,255,.1),0 5px 0 rgba(0,0,0,.32);overflow:hidden}
.main-action-card:active{transform:translateY(3px);box-shadow:inset 2px 2px rgba(255,255,255,.1),0 2px 0 rgba(0,0,0,.32)}
.main-action-card>span{display:grid;place-items:center;width:55px;height:55px;background:#1b3440;border:2px solid rgba(255,255,255,.3);color:var(--accent);font-size:28px}
.main-action-card>div{display:flex;min-width:0;flex-direction:column;gap:6px}.main-action-card b{font-size:clamp(15px,1.8vw,22px);letter-spacing:.05em}.main-action-card small{color:#c1d6de;font-size:9px;line-height:1.4}.main-action-card em{position:absolute;right:8px;bottom:7px;padding:4px 7px;background:rgba(6,19,25,.62);color:#ffe884;font-size:8px;font-style:normal;font-weight:900}.main-action-card em i{font-style:normal}.main-action-card.new-world{border-color:#79bd6d;background:linear-gradient(135deg,#356b3c,#17352b)}.main-action-card.load-world{border-color:#78a9c6;background:linear-gradient(135deg,#32647c,#21384e)}.main-action-card.store-world{border-color:#f2d057;background:linear-gradient(135deg,#745f27,#3d3220)}.main-action-card.settings-world{background:linear-gradient(135deg,#414f57,#202c32)}
.menu-back{align-self:flex-start;margin:0 0 4px;padding:3px 7px;border:1px solid #78909a;background:#243e48;color:#fff;font-size:8px;font-weight:900;cursor:pointer}.menu-wallet{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:10px;min-height:51px;padding:8px 11px;border:1px solid #7c6a31;background:#332c1e}.menu-wallet>span{display:grid;place-items:center;width:34px;height:34px;background:#756021;color:#ffe36b;font-size:20px}.menu-wallet>div{display:flex;flex-direction:column;gap:3px}.menu-wallet b{color:#ffe36b;font-size:13px}.menu-wallet small{color:#cbbf94;font-size:7px}
.pause-action.store{border-color:#b89b45;background:#4a3d22}.pause-action.store>span{background:#745d20}.pause-action small i{font-style:normal}
.store-overlay{z-index:34;background:rgba(2,8,12,.83)}.store-panel{z-index:35;display:flex;width:min(980px,96vw);height:min(720px,94dvh);max-height:none;flex-direction:column;overflow:hidden;padding:0;background:#d0d0d0;border:4px solid #161616;color:#202020;box-shadow:0 20px 0 rgba(0,0,0,.35),0 35px 80px rgba(0,0,0,.7)}
.store-panel>header{flex:0 0 auto;align-items:center;padding:13px 17px;background:#ededed;border-bottom:3px solid #171717}.store-panel>header b{color:#202020}.store-panel>header small{color:#5e5e5e;font-size:9px}.store-header-actions{display:flex!important;align-items:center;flex-direction:row!important;gap:10px}.store-header-actions>button{display:grid;place-items:center;width:42px;height:42px;background:#595959;color:white;border:2px solid #242424;font-size:27px;cursor:pointer}.store-wallet{padding:9px 12px;background:#51451e;border:2px solid #2e2a1c;color:#ffe469;font-size:11px}.store-wallet b{color:#fff!important;font-size:12px!important}.store-tabs{display:grid;grid-template-columns:repeat(2,1fr);flex:0 0 auto;background:#737373;border-bottom:3px solid #222}.store-tabs button{position:relative;padding:12px;border:0;background:transparent;color:#e8e8e8;font-size:11px;font-weight:900;letter-spacing:.06em;cursor:pointer}.store-tabs button.selected{background:#3b536a;color:#fff}.store-tabs button.selected:after{content:'';position:absolute;left:12%;right:12%;bottom:0;height:4px;background:#72c9ff}.store-test-note{flex:0 0 auto;padding:7px 12px;background:#6c5520;color:#fff6ba;font-size:10px;text-align:center}.store-content{min-height:0;flex:1;padding:14px;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;background:linear-gradient(#cecece,#b8b8b8)}.store-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px;border:3px solid #263a44;background:linear-gradient(135deg,#244e60,#142b36);color:white;box-shadow:inset 2px 2px rgba(255,255,255,.16)}.store-hero>div{display:flex;flex-direction:column;gap:7px}.store-hero small{color:#83d8ff;font-size:10px}.store-hero b{font-size:22px;letter-spacing:.05em}.store-hero span{color:#c0d7df;font-size:11px;line-height:1.45}.store-hero>strong{color:#ffe36b;font-size:54px;text-shadow:4px 4px #584719}.store-feature-grid,.coin-pack-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.coin-pack-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.store-product{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:78px;padding:10px;border:3px solid #777;background:#dedede;box-shadow:inset 2px 2px #fff,inset -2px -2px #9b9b9b}.store-product.focused{border-color:#e6ba25;animation:store-focus 1.1s ease-in-out 2}.store-product-art{display:grid;place-items:center;width:52px;height:52px;background:radial-gradient(circle,#5aa3b8,#273b46);border:3px solid #26343a;color:#ffe36b;font-size:20px;font-weight:1000}.store-product>div{display:flex;min-width:0;flex-direction:column;gap:6px}.store-product b{font-size:12px}.store-product small{color:#585858;font-size:9px}.store-product>button,.store-skin-card>button{min-height:40px;padding:8px 10px;border:2px solid #6f5714;background:#f1c93d;color:#171717;font-size:10px;font-weight:1000;cursor:pointer;box-shadow:0 3px #876c18}.store-product>button:disabled,.store-skin-card>button:disabled{background:#818181;border-color:#646464;color:#ddd;box-shadow:none;cursor:not-allowed}.store-section-copy{display:flex;flex-direction:column;gap:6px;margin-bottom:10px;padding:12px;border-left:5px solid #3f6c82;background:#dedede}.store-section-copy b{font-size:17px}.store-section-copy span{color:#555;font-size:11px}.store-skin-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.store-skin-card{display:flex;align-items:center;flex-direction:column;gap:6px;padding:8px;border:3px solid #737373;background:#dcdcdc;text-align:center}.store-skin-card canvas{width:58px;height:87px;image-rendering:pixelated;filter:drop-shadow(3px 4px rgba(0,0,0,.25))}.store-skin-card b{width:100%;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.store-skin-card>span{color:#6b5312;font-size:10px;font-weight:900}.store-skin-card>button{width:100%;font-size:8px}.store-empty{display:flex;min-height:220px;align-items:center;justify-content:center;flex-direction:column;gap:10px;padding:24px;border:3px dashed #777;background:#d8d8d8;text-align:center}.store-empty b{font-size:17px}.store-empty span{max-width:590px;color:#565656;font-size:11px;line-height:1.55}.store-footer{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;background:#e7e7e7;border-top:3px solid #222}.store-footer>span{min-width:0;color:#4e4e4e;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.store-footer button{margin:0;min-height:42px;background:#3c4f58;color:white;border:2px solid #26343a;font-size:9px}@keyframes store-focus{50%{box-shadow:0 0 0 5px rgba(255,218,67,.5)}}

@media(max-width:900px){.main-action-card{grid-template-columns:46px minmax(0,1fr);gap:9px;padding:10px}.main-action-card>span{width:44px;height:44px;font-size:23px}.main-action-card small{font-size:8px}.store-feature-grid{grid-template-columns:1fr}.store-product{min-height:65px}.store-skin-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-height:520px){.settings-panel{width:min(650px,calc(100vw - var(--safe-l) - var(--safe-r) - 12px));max-height:calc(100dvh - var(--safe-t) - var(--safe-b) - 8px);padding:9px}.settings-panel header{padding-bottom:5px}.settings-panel header b{font-size:17px}.settings-panel header small{font-size:8px}.settings-panel header button{font-size:25px}.settings-body{padding:6px 0}.settings-body>p{display:none}.quality-options{gap:4px}.quality-options button{min-height:48px;gap:2px;padding:6px 8px}.quality-options button b{font-size:10px}.quality-options button span{font-size:7px}.settings-current{margin-top:6px;font-size:8px}.settings-volume{gap:2px;margin-top:6px;padding:5px 8px}.settings-volume-heading label,.settings-volume-heading output{font-size:9px}.settings-volume>small{font-size:7px}.settings-volume input[type="range"]{height:25px}.settings-footer{padding-top:6px}.settings-footer .menu-secondary{padding:8px 15px;font-size:9px}}
@media(max-height:520px){.splash-screen{gap:10px}.splash-logo{width:min(360px,48vw);max-height:40vh}.splash-screen .menu-loading{width:min(460px,54vw);padding:12px}.splash-screen>small{font-size:8px}.main-menu-heading{display:none}.menu-home-section{padding:6px;gap:5px}.main-action-grid{grid-template-rows:repeat(2,minmax(64px,1fr));gap:5px}.main-action-card{grid-template-columns:35px minmax(0,1fr);gap:7px;padding:7px;border-width:1px;box-shadow:0 3px rgba(0,0,0,.32)}.main-action-card>span{width:34px;height:34px;border-width:1px;font-size:18px}.main-action-card b{font-size:11px}.main-action-card small{font-size:7px}.main-action-card em{font-size:6px}.pause-action{min-height:42px}.store-panel{width:calc(100vw - var(--safe-l) - var(--safe-r) - 8px);height:calc(100dvh - var(--safe-t) - var(--safe-b) - 6px);border-width:3px}.store-panel>header{padding:6px 10px;border-bottom-width:2px}.store-panel>header b{font-size:20px}.store-panel>header small{font-size:9px}.store-header-actions>button{width:38px;height:38px}.store-wallet{padding:7px 9px}.store-tabs{border-bottom-width:2px}.store-tabs button{padding:8px;font-size:11px}.store-content{padding:7px}.store-hero{padding:9px;border-width:2px}.store-hero small{font-size:9px}.store-hero b{font-size:16px}.store-hero span{font-size:10px}.store-hero>strong{font-size:38px}.store-feature-grid,.coin-pack-grid{gap:6px;margin-top:7px}.store-product{grid-template-columns:43px minmax(0,1fr) auto;min-height:58px;padding:6px;border-width:2px}.store-product-art{width:41px;height:41px;border-width:2px;font-size:16px}.store-product b{font-size:10px}.store-product small{font-size:8px}.store-product>button{min-height:35px;padding:6px 8px;font-size:9px}.store-section-copy{margin-bottom:6px;padding:7px}.store-section-copy b{font-size:14px}.store-section-copy span{font-size:10px}.store-skin-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.store-skin-card{gap:3px;padding:4px;border-width:2px}.store-skin-card canvas{width:40px;height:60px}.store-skin-card b,.store-skin-card>span{font-size:8px}.store-skin-card>button{min-height:31px;padding:4px;font-size:7px}.store-footer{padding:6px 8px;border-top-width:2px}.store-footer>span{font-size:9px}.store-footer button{min-height:36px;padding:7px 10px;font-size:8px}}

/* V132 OneCube mode */
.mode-grid{grid-template-rows:repeat(2,minmax(86px,1fr))}.survival-card,.creative-card{grid-column:span 2}.onecube-card{grid-column:span 2;background:linear-gradient(135deg,#146b75,#253b68);border-color:#63ebff}.onecube-card .mode-art{width:42px;height:42px;background:linear-gradient(145deg,#1e8190,#283e71)}
.onecube-progress{position:absolute;z-index:8;top:calc(82px + var(--safe-t));right:calc(16px + var(--safe-r));width:min(270px,42vw);border:2px solid rgba(111,231,255,.72);background:rgba(7,27,37,.9);box-shadow:0 7px 22px rgba(0,0,0,.42);backdrop-filter:blur(6px);pointer-events:auto}.onecube-progress>button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:9px 11px;border:0;border-bottom:1px solid #4c7884;background:linear-gradient(90deg,#125765,#253b68);color:white;font:inherit;text-align:left;cursor:pointer}.onecube-progress>button>span{display:flex;min-width:0;flex-direction:column;gap:3px}.onecube-progress>button b{overflow:hidden;color:#8ff3ff;font-size:10px;letter-spacing:.08em;text-overflow:ellipsis;white-space:nowrap}.onecube-progress>button small{color:#b9d9df;font-size:6px;letter-spacing:.12em}.onecube-progress>button em{color:#ffe576;font-size:7px;font-style:normal;white-space:nowrap}.onecube-progress>div{display:grid;gap:7px;padding:9px 11px}.onecube-progress>div>i{height:8px;padding:1px;border:1px solid #6c8992;background:#08181e}.onecube-progress>div>i>b{display:block;width:0;height:100%;background:linear-gradient(90deg,#3fd7e7,#ffe56c);transition:width .24s ease}.onecube-progress>div>span{color:#c7dce1;font-size:7px;line-height:1.35}.onecube-progress.compact>div{display:none}.onecube-progress.compact>button{border-bottom:0}#game[data-mode="onecube"] #debug:after{content:" · ONE CUBE";color:#78efff}
@media(max-width:760px),(pointer:coarse){.onecube-progress{top:calc(62px + var(--safe-t));right:calc(8px + var(--safe-r));width:min(230px,38vw)}.onecube-progress>button{padding:7px 8px}.onecube-progress>button b{font-size:8px}.onecube-progress>button em{font-size:6px}.onecube-progress>div{padding:6px 8px}.onecube-progress>div>span{font-size:6px}}

/* V132 fishing */
.fishing-status{position:absolute;z-index:12;left:50%;bottom:calc(108px + var(--safe-b));display:flex;align-items:center;gap:8px;min-height:31px;padding:7px 12px;transform:translateX(-50%);border:2px solid #8bc8dc;background:rgba(7,27,36,.88);color:#e9fbff;box-shadow:0 5px 16px rgba(0,0,0,.42);font-size:9px;font-weight:900;letter-spacing:.08em;pointer-events:none}.fishing-status>b{color:#6fd9f4;font-size:13px}.fishing-status.bite{border-color:#ffe062;background:rgba(78,53,10,.94);color:#fff3ae;animation:fishing-bite .3s ease-in-out infinite alternate}.fishing-status.bite>b{color:#ffe062}.touch #place-button.fishing{border-color:rgba(104,222,244,.92);box-shadow:0 0 0 2px rgba(64,186,216,.28),inset 0 0 14px rgba(56,178,210,.22)}.touch #place-button.fishing>span{color:#d8f9ff}@keyframes fishing-bite{to{transform:translateX(-50%) scale(1.045);filter:brightness(1.18)}}
@media(max-width:760px),(pointer:coarse){.fishing-status{bottom:calc(96px + var(--safe-b));min-height:28px;padding:6px 9px;font-size:7px}.fishing-status>b{font-size:10px}}

/* V132 hotbar inventory entry */
#hotbar{grid-template-columns:repeat(10,52px)}
#hotbar #inventory-button.hotbar-menu-slot{position:relative;right:auto;top:auto;display:flex;width:52px;height:52px;align-items:center;justify-content:center;flex-direction:column;gap:3px;padding:0;border:2px solid #d9c258;border-radius:0;background:linear-gradient(#5f542c,#332d1d);color:#fff1a0;box-shadow:inset 2px 2px rgba(255,255,255,.17),inset -2px -2px rgba(0,0,0,.42);cursor:pointer;touch-action:manipulation}
#hotbar #inventory-button.hotbar-menu-slot span{font-size:20px;font-weight:1000;line-height:.55;letter-spacing:2px}
#hotbar #inventory-button.hotbar-menu-slot small{font-size:5px;font-weight:1000;letter-spacing:.03em}
#hotbar #inventory-button.hotbar-menu-slot:active{transform:translateY(2px);filter:brightness(1.18)}
@media(max-width:760px),(pointer:coarse){#hotbar{grid-template-columns:repeat(10,min(8.5vw,42px))}#hotbar .slot,#hotbar #inventory-button.hotbar-menu-slot{width:min(8.5vw,42px);height:min(8.5vw,42px)}#hotbar #inventory-button.hotbar-menu-slot span{font-size:18px}#hotbar #inventory-button.hotbar-menu-slot small{font-size:4px}}

/* V143 Foundation Stone-style hotbar long-press drop feedback */
#hotbar .slot.drop-holding:after{content:"";position:absolute;z-index:5;inset:-4px;padding:4px;background:conic-gradient(#ffe267 0 var(--drop-progress,0deg),rgba(255,255,255,.1) var(--drop-progress,0deg) 360deg);pointer-events:none;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;filter:drop-shadow(0 0 3px rgba(255,222,84,.85))}
#hotbar .slot.drop-holding{filter:brightness(1.18);transform:translateY(-3px) scale(.97)}

/* V143 iPhone hotbar safe area: keep the inventory slot clear of MINE/USE */
.touch #hotbar{grid-template-columns:repeat(10,min(8.5vw,42px));gap:2px;padding:3px;bottom:calc(8px + var(--safe-b))}
.touch #hotbar .slot,.touch #hotbar #inventory-button.hotbar-menu-slot{width:min(8.5vw,42px);height:min(8.5vw,42px)}
.touch #hotbar .slot-canvas{width:32px;height:32px}

/* V132 Creative Inventory catalogue */
#inventory-view .creative-toolbar{display:grid;grid-template-columns:minmax(360px,1fr) minmax(190px,250px) 104px;align-items:stretch;gap:7px;padding:5px 7px;border:3px solid #4b4b4b;background:#777}
#inventory-view .creative-category-tabs{display:grid;grid-template-columns:repeat(4,minmax(68px,1fr));gap:4px}#inventory-view .creative-category-tabs button{display:flex;min-width:0;align-items:center;justify-content:center;gap:5px;padding:4px 6px;border:2px solid #444;background:#b8b8b8;color:#272727;font-weight:1000;box-shadow:inset 2px 2px #e6e6e6,inset -2px -2px #808080;cursor:pointer;touch-action:manipulation}#inventory-view .creative-category-tabs button span{color:#3d5d68;font-size:16px}#inventory-view .creative-category-tabs button small{font-size:8px}#inventory-view .creative-category-tabs button.selected{border-color:#28552d;background:#4e8d50;color:#fff;box-shadow:inset 2px 2px #83bd7d,inset -2px -2px #2d5d31}#inventory-view .creative-category-tabs button.selected span{color:#fff18b}
#inventory-view .creative-search{display:grid;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;border:2px solid #444;background:#e4e4e4;box-shadow:inset 2px 2px #aaa}#inventory-view .creative-search>span{font-size:17px;text-align:center}#inventory-view .creative-search input{width:100%;height:100%;min-width:0;border:0;outline:0;background:transparent;color:#222;font:1000 12px var(--font)}#inventory-view .creative-search b{padding:0 7px;color:#4b4b4b;font-size:8px;white-space:nowrap}
#inventory-view .creative-clear-slot{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;border:2px solid #663b38;background:#a05b55;color:#fff;box-shadow:inset 2px 2px #cf8b83,inset -2px -2px #6f3b38;cursor:pointer;touch-action:manipulation}#inventory-view .creative-clear-slot span{font-size:18px;line-height:1}#inventory-view .creative-clear-slot small{font-size:7px;font-weight:1000}
#inventory-view .inventory-storage.creative-storage{display:block;align-items:initial;justify-content:initial;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}#inventory-view .inventory-grid.creative-grid{display:grid;width:100%;grid-template-columns:repeat(auto-fill,minmax(70px,1fr));grid-auto-rows:68px;align-content:start;gap:5px}
#inventory-view .creative-catalog-item{position:relative;display:grid;min-width:0;grid-template-rows:43px minmax(0,1fr);place-items:center;padding:2px 3px;border:2px solid #4b4b4b;background:#b9b9b9;color:#252525;box-shadow:inset 2px 2px #e1e1e1,inset -2px -2px #7a7a7a;cursor:pointer;touch-action:manipulation}#inventory-view .creative-catalog-item:hover{background:#d0d0d0}#inventory-view .creative-catalog-item.selected{border-color:#e5bd32;outline:2px solid #fff2aa;background:#ecdb8c;transform:translateY(-1px)}#inventory-view .creative-catalog-icon{width:40px;height:40px;image-rendering:pixelated}#inventory-view .creative-catalog-item small{display:block;width:100%;font-size:8px;font-weight:1000;line-height:1.1;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#inventory-view .creative-catalog-item em{position:absolute;right:3px;top:2px;padding:1px 2px;background:rgba(30,30,30,.72);color:#fff;font-size:7px;font-style:normal;font-weight:1000}#inventory-view .creative-catalog-empty{display:flex;grid-column:1/-1;align-items:center;justify-content:center;flex-direction:column;gap:7px;min-height:120px;background:#777;color:#eee}#inventory-view .creative-catalog-empty b{font-size:13px}#inventory-view .creative-catalog-empty span{font-size:9px}
@media(max-width:900px),(pointer:coarse){#inventory-view .creative-toolbar{grid-template-columns:minmax(300px,1fr) minmax(150px,210px) 84px;gap:4px;padding:3px 4px;border-width:2px}#inventory-view .creative-category-tabs{gap:2px}#inventory-view .creative-category-tabs button{gap:3px;padding:2px 3px}#inventory-view .creative-category-tabs button span{font-size:14px}#inventory-view .creative-category-tabs button small{font-size:8px}#inventory-view .creative-search{grid-template-columns:21px minmax(0,1fr) auto}#inventory-view .creative-search input{font-size:11px}#inventory-view .creative-search b{padding:0 4px;font-size:7px}#inventory-view .creative-clear-slot span{font-size:15px}#inventory-view .creative-clear-slot small{font-size:7px}#inventory-view .inventory-grid.creative-grid{grid-template-columns:repeat(auto-fill,minmax(58px,1fr));grid-auto-rows:58px;gap:3px}#inventory-view .creative-catalog-item{grid-template-rows:37px minmax(0,1fr);padding:1px 2px}#inventory-view .creative-catalog-icon{width:34px;height:34px}#inventory-view .creative-catalog-item small{font-size:8px}}
@media(max-height:430px){#inventory-view .creative-toolbar{grid-template-columns:minmax(280px,1fr) minmax(135px,190px) 75px;padding:2px 3px}#inventory-view .creative-category-tabs button{min-height:32px}#inventory-view .creative-category-tabs button span{font-size:12px}#inventory-view .creative-category-tabs button small,#inventory-view .creative-clear-slot small{font-size:7px}#inventory-view .creative-search input{font-size:10px}#inventory-view .inventory-grid.creative-grid{grid-template-columns:repeat(auto-fill,minmax(54px,1fr));grid-auto-rows:53px}#inventory-view .creative-catalog-item{grid-template-rows:34px minmax(0,1fr)}#inventory-view .creative-catalog-icon{width:31px;height:31px}#inventory-view .creative-catalog-item small{font-size:7px}}

@media(max-width:600px){#inventory-view .creative-toolbar{grid-template-columns:minmax(0,1fr) minmax(82px,105px) 42px;gap:3px}#inventory-view .creative-category-tabs{grid-template-columns:repeat(4,minmax(36px,1fr))}#inventory-view .creative-category-tabs button small,#inventory-view .creative-clear-slot small{display:none}#inventory-view .creative-category-tabs button span{font-size:16px}#inventory-view .creative-search b{display:none}#inventory-view .creative-clear-slot span{font-size:17px}}

/* V132 simplified inventory and crafting */
.simple-inventory-panel{width:min(1060px,calc(100vw - var(--safe-l) - var(--safe-r) - 18px));height:min(700px,calc(100dvh - var(--safe-t) - var(--safe-b) - 16px));border-color:#182126;background:#c8c8c8}.simple-inventory{position:relative;display:grid;grid-template-rows:68px minmax(0,1fr) 76px;width:100%;height:100%;min-height:0;background:#c5c5c5}.simple-inventory-header{display:grid!important;grid-template-columns:minmax(170px,1fr) auto 58px;align-items:center;gap:14px;padding:8px 10px!important;border:0!important;border-bottom:4px solid #1d2427!important;background:#ececec;color:#242424;box-shadow:inset 0 -3px #9d9d9d}.simple-inventory-title{display:flex!important;align-items:center;flex-direction:row!important;gap:10px}.simple-inventory-title>span{display:grid;place-items:center;width:44px;height:44px;background:#526873;border:3px solid #28353b;color:#ffe26a;font-size:24px}.simple-inventory-title>div{display:flex;min-width:0;flex-direction:column;gap:4px}.simple-inventory-title b{color:#222!important;font-size:18px!important;letter-spacing:.05em}.simple-inventory-title small{color:#5b5b5b!important;font-size:9px;letter-spacing:.05em}.inventory-mode-tabs{display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:6px}.inventory-mode-tabs button{min-height:46px;padding:8px 18px;border:3px solid #555;background:#aaa;color:#282828;font-size:12px;font-weight:1000;box-shadow:inset 2px 2px #ededed,inset -2px -2px #777;cursor:pointer;touch-action:manipulation}.inventory-mode-tabs button span{color:#425d69;font-size:17px}.inventory-mode-tabs button.selected{border-color:#2b552e;background:#4f894f;color:white;box-shadow:inset 2px 2px #86bb7e,inset -2px -2px #2d592d}.inventory-mode-tabs button.selected span{color:#fff18a}.simple-inventory-header .foundation-close{position:static;width:52px;height:48px;border:3px solid #252525;background:#626262;font-size:29px;box-shadow:inset 2px 2px #999,inset -2px -2px #393939}.simple-inventory-main{min-width:0;min-height:0;overflow:hidden}.simple-craft-view{display:grid;grid-template-columns:minmax(420px,1.05fr) minmax(360px,.95fr);width:100%;height:100%;min-height:0}.simple-craft-view .recipe-pane{display:grid;grid-template-columns:1fr;grid-template-rows:48px 54px minmax(0,1fr);border-right:4px solid #222;background:#aaa}.simple-craft-view .recipe-title{grid-column:auto;padding:8px 13px;border-bottom:3px solid #3c3c3c;background:#d5d5d5}.simple-craft-view .recipe-title>div{display:flex;align-items:center;justify-content:space-between;width:100%}.simple-craft-view .recipe-title b{font-size:16px}.simple-craft-view .recipe-title small{font-size:10px}.simple-craft-view .inventory-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;padding:5px 7px;border:0;border-bottom:3px solid #333;background:#777;overflow:visible}.simple-craft-view .inventory-tabs button{display:flex;min-height:42px;align-items:center;justify-content:center;flex-direction:row;gap:6px;padding:5px;border:2px solid #444;background:#b6b6b6;font-size:9px}.simple-craft-view .inventory-tabs button span{font-size:18px}.simple-craft-view .inventory-tabs button small{font-size:9px}.simple-craft-view .inventory-tabs button.selected{outline:2px solid white;background:#e5e5e5}.simple-craft-view .inventory-tabs button.selected:after{display:none}.simple-craft-view .recipe-browser{display:grid;grid-template-rows:46px minmax(0,1fr);padding:7px;background:#686868}.simple-craft-view .recipe-toolbar{grid-template-columns:minmax(0,1fr) 112px;gap:6px;padding-bottom:6px}.simple-craft-view .recipe-toolbar button{font-size:9px}.simple-craft-view .foundation-recipe-grid{grid-template-columns:1fr;grid-auto-rows:minmax(62px,auto);gap:5px;padding:3px;background:#555}.simple-craft-view .foundation-recipe-card{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;place-items:initial;gap:10px;min-height:62px;padding:5px 9px;border:3px solid #4d4d4d;text-align:left}.simple-craft-view .foundation-recipe-card.craftable{border-left:7px solid #4d9e50;background:#d9e7d6}.simple-craft-view .foundation-recipe-card.unavailable{border-left:7px solid #777;background:#b7b7b7;color:#555}.simple-craft-view .foundation-recipe-card.locked{opacity:.62}.simple-craft-view .foundation-recipe-card.selected{border-color:#f1ca45;outline:2px solid #fff5bb;background:#fff0ba}.recipe-card-icon{display:grid;place-items:center;width:50px;height:50px;background:#8d8d8d;border:2px solid #4e4e4e;box-shadow:inset 2px 2px #ccc}.foundation-recipe-icon{width:44px;height:44px}.recipe-card-copy{display:flex;min-width:0;flex-direction:column;gap:5px}.recipe-card-copy b{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recipe-card-copy small{color:#386d3a;font-size:8px;font-weight:1000}.unavailable .recipe-card-copy small{color:#666}.recipe-card-count{align-self:end;color:#444;font-size:11px;font-style:normal;font-weight:1000}.recipe-list-empty{display:flex!important;align-items:center;justify-content:center;flex-direction:column;gap:8px;min-height:120px;margin:0!important;color:#eee!important}.recipe-list-empty b{font-size:13px}.recipe-list-empty span{font-size:9px}.simple-craft-view .craft-pane{padding:12px 18px 8px;background:#d6d6d6}.simple-craft-view .craft-pane-title{margin:0 0 8px}.simple-craft-view .craft-pane-title b{font-size:19px;font-weight:1000}.simple-craft-view .craft-pane-title small{font-size:10px}.simple-craft-view .recipe-preview{justify-content:flex-start;gap:8px}.simple-craft-view .preview-flow{flex-direction:row;gap:12px}.simple-craft-view .preview-arrow{font-size:28px}.simple-craft-view .recipe-requirements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;min-height:0;padding:6px;background:#a2a2a2}.requirement-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:6px;padding:5px;border:2px solid #6d6d6d;background:#c0c0c0}.requirement-row.ready{border-left:5px solid #438948;background:#d4e5d0}.requirement-row.missing{border-left:5px solid #a24a43;background:#e0bdb9}.requirement-icon{width:32px;height:32px;image-rendering:pixelated}.requirement-row span{min-width:0;font-size:8px;font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.requirement-row b{font-size:9px}.simple-craft-view .craft-actions{margin-top:auto;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:8px}.simple-craft-view .craft-actions button{min-height:48px;font-size:12px}.simple-craft-view #craft-one{background:#438c45;border-color:#264e28}.simple-craft-view .craft-message{min-height:21px;margin:4px 0 0;font-size:9px}.simple-pack-view{display:grid;grid-template-rows:58px minmax(0,1fr) 80px;width:100%;height:100%;min-height:0;padding:10px 14px;background:#bcbcbc}.pack-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 10px;border:3px solid #555;background:#dedede}.pack-heading>div{display:flex;flex-direction:column;gap:4px}.pack-heading b{font-size:15px}.pack-heading small{color:#555;font-size:10px}.pack-heading button{min-height:34px;padding:6px 10px;border:2px solid #754343;background:#a45d58;color:white;font-size:9px;font-weight:900}.simple-pack-view .inventory-storage{display:flex;align-items:center;justify-content:center;min-height:0;margin:8px 0;padding:10px;background:#676767;border:3px solid #343434}.simple-pack-view .inventory-grid{grid-template-columns:repeat(9,minmax(46px,58px));grid-auto-rows:minmax(46px,58px);gap:5px}.simple-pack-view .foundation-slot,.inventory-hotbar-grid .foundation-slot{width:100%;height:100%;min-width:0;padding:0}.foundation-slot.moving-source{border-color:#f0c83f!important;outline:3px solid #fff1a2!important;background:#dbc56d!important;transform:translateY(-2px)}.foundation-slot.active-hotbar{box-shadow:inset 0 0 0 3px #6cacd2,inset 2px 2px #eee,inset -2px -2px #777}.inventory-selection{display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:10px;padding:7px 9px;border:3px solid #75611f;background:#e8d58f}.inventory-selection.empty{border-color:#6b6b6b;background:#d0d0d0}.inventory-selection-icon{display:grid;place-items:center;width:52px;height:52px;background:#686868;border:2px solid #333;color:white;font-size:24px}.inventory-selection-canvas{width:46px;height:46px;image-rendering:pixelated}.inventory-selection>div:nth-child(2){display:flex;min-width:0;flex-direction:column;gap:5px}.inventory-selection b{font-size:12px}.inventory-selection small{color:#595959;font-size:9px}.inventory-selection button{min-width:165px;min-height:44px;padding:7px 10px;border:3px solid #284f2b;background:#4f914e;color:white;font-size:10px;font-weight:1000;box-shadow:inset 2px 2px #80bd77,inset -2px -2px #2d5d2d}.inventory-selection button:disabled{border-color:#777;background:#999;color:#ccc;box-shadow:none}.simple-inventory .inventory-tray{display:grid;grid-template-columns:minmax(170px,1fr) auto;gap:10px;padding:7px 12px;border-top:4px solid #202020;background:#d7d7d7}.hotbar-label{display:flex;min-width:0;flex-direction:column;gap:5px}.hotbar-label b{font-size:12px}.hotbar-label span{min-width:0;color:#555;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.simple-inventory .inventory-hotbar-grid{grid-template-columns:repeat(9,50px);grid-auto-rows:50px;gap:3px;padding:3px}.simple-inventory .inventory-hotbar-grid .slot{width:50px;height:50px}.simple-inventory .inventory-hotbar-grid .slot-canvas{width:39px;height:39px}.inventory-guide{position:absolute;z-index:5;inset:0;display:grid;place-items:center;padding:18px;background:rgba(19,25,28,.75);backdrop-filter:blur(3px)}.inventory-guide-card{display:flex;width:min(560px,92%);align-items:center;flex-direction:column;gap:14px;padding:22px;border:4px solid #222;background:#ededed;color:#242424;box-shadow:0 10px 0 rgba(0,0,0,.4)}.inventory-guide-card>b{font-size:22px}.inventory-guide-card>div{display:grid;width:100%;gap:9px}.inventory-guide-card span{display:flex;align-items:center;gap:9px;font-size:12px}.inventory-guide-card strong{display:grid;place-items:center;width:30px;height:30px;flex:0 0 auto;background:#4e7f4d;color:white}.inventory-guide-card em{color:#396b3a;font-style:normal;font-weight:1000}.inventory-guide-card button{min-width:180px;min-height:47px;border:3px solid #284f2b;background:#4f914e;color:white;font-size:12px;font-weight:1000;box-shadow:0 4px #2d5d2d}
@media(max-width:900px),(pointer:coarse){.simple-inventory-panel{width:calc(100vw - var(--safe-l) - var(--safe-r) - 10px);height:calc(100dvh - var(--safe-t) - var(--safe-b) - 8px)}.simple-inventory{grid-template-rows:58px minmax(0,1fr) 64px}.simple-inventory-header{grid-template-columns:minmax(120px,.7fr) minmax(280px,1.3fr) 48px;gap:7px;padding:5px 7px!important}.simple-inventory-title>span{width:38px;height:38px;font-size:20px}.simple-inventory-title b{font-size:14px!important}.simple-inventory-title small{font-size:9px!important}.inventory-mode-tabs{grid-template-columns:repeat(2,minmax(130px,1fr));gap:4px}.inventory-mode-tabs button{min-height:40px;padding:6px 10px;font-size:12px}.simple-inventory-header .foundation-close{width:44px;height:42px;font-size:25px}.simple-craft-view{grid-template-columns:minmax(390px,1.08fr) minmax(330px,.92fr)}.simple-craft-view .recipe-pane{grid-template-rows:40px 44px minmax(0,1fr)}.simple-craft-view .recipe-title{padding:6px 9px}.simple-craft-view .recipe-title b{font-size:14px}.simple-craft-view .recipe-title small{font-size:9px}.simple-craft-view .inventory-tabs{gap:3px;padding:3px 5px}.simple-craft-view .inventory-tabs button{min-height:36px;gap:4px;padding:3px}.simple-craft-view .inventory-tabs button span{font-size:15px}.simple-craft-view .inventory-tabs button small{font-size:9px}.simple-craft-view .recipe-browser{grid-template-rows:39px minmax(0,1fr);padding:5px}.simple-craft-view .recipe-toolbar{grid-template-columns:minmax(0,1fr) 92px;gap:4px;padding-bottom:4px}.simple-craft-view .recipe-toolbar button{font-size:9px}.simple-craft-view .foundation-recipe-grid{grid-auto-rows:minmax(54px,auto);gap:3px}.simple-craft-view .foundation-recipe-card{grid-template-columns:45px minmax(0,1fr) auto;min-height:54px;gap:7px;padding:3px 6px;border-width:2px}.simple-craft-view .foundation-recipe-card.craftable,.simple-craft-view .foundation-recipe-card.unavailable{border-left-width:5px}.recipe-card-icon{width:43px;height:43px}.foundation-recipe-icon{width:38px;height:38px}.recipe-card-copy b{font-size:11px}.recipe-card-copy small{font-size:9px}.simple-craft-view .craft-pane{padding:7px 10px 5px}.simple-craft-view .craft-pane-title{margin:0 0 3px}.simple-craft-view .craft-pane-title b{font-size:15px}.simple-craft-view .craft-pane-title small{font-size:9px}.simple-craft-view .recipe-preview{gap:4px}.simple-craft-view .preview-flow{gap:7px}.simple-craft-view .preview-grid.size-2{grid-template-columns:repeat(2,38px)}.simple-craft-view .preview-grid.size-3{grid-template-columns:repeat(3,34px)}.simple-craft-view .preview-cell,.simple-craft-view .size-3 .preview-cell{width:34px;height:34px;border-width:2px}.simple-craft-view .preview-icon,.simple-craft-view .size-3 .preview-icon{width:27px;height:27px}.simple-craft-view .preview-cell b{font-size:9px}.simple-craft-view .preview-result{width:46px;height:46px}.simple-craft-view .preview-result-icon{width:36px;height:36px}.simple-craft-view .recipe-requirements{gap:3px;padding:3px}.requirement-row{grid-template-columns:27px minmax(0,1fr) auto;gap:4px;padding:2px;border-width:1px}.requirement-row.ready,.requirement-row.missing{border-left-width:4px}.requirement-icon{width:25px;height:25px}.requirement-row span,.requirement-row b{font-size:8px}.simple-craft-view .craft-actions{gap:4px}.simple-craft-view .craft-actions button{min-height:34px;font-size:10px}.simple-craft-view .craft-message{min-height:15px;font-size:8px}.simple-pack-view{grid-template-rows:47px minmax(0,1fr) 64px;padding:6px 8px}.pack-heading{padding:4px 7px;border-width:2px}.pack-heading b{font-size:12px}.pack-heading small{font-size:10px}.simple-pack-view .inventory-storage{margin:5px 0;padding:5px;border-width:2px}.simple-pack-view .inventory-grid{grid-template-columns:repeat(9,minmax(38px,48px));grid-auto-rows:minmax(38px,48px);gap:3px}.inventory-selection{grid-template-columns:44px minmax(0,1fr) auto;gap:7px;padding:4px 6px;border-width:2px}.inventory-selection-icon{width:40px;height:40px}.inventory-selection-canvas{width:36px;height:36px}.inventory-selection b{font-size:11px}.inventory-selection small{font-size:9px}.inventory-selection button{min-width:135px;min-height:37px;font-size:9px}.simple-inventory .inventory-tray{padding:4px 7px}.hotbar-label{gap:3px}.hotbar-label b{font-size:11px}.hotbar-label span{font-size:9px}.simple-inventory .inventory-hotbar-grid{grid-template-columns:repeat(9,40px);grid-auto-rows:40px}.simple-inventory .inventory-hotbar-grid .slot{width:40px;height:40px}.simple-inventory .inventory-hotbar-grid .slot-canvas{width:32px;height:32px}.inventory-guide-card{gap:10px;padding:14px}.inventory-guide-card>b{font-size:17px}.inventory-guide-card span{font-size:11px}.inventory-guide-card strong{width:25px;height:25px}.inventory-guide-card button{min-height:39px}}
@media(max-height:430px){.simple-inventory{grid-template-rows:50px minmax(0,1fr) 57px}.simple-inventory-header{grid-template-columns:115px minmax(260px,1fr) 43px;padding:3px 5px!important}.simple-inventory-title>span{width:34px;height:34px}.simple-inventory-title b{font-size:11px!important}.simple-inventory-title small{font-size:7px!important}.inventory-mode-tabs button{min-height:36px;font-size:10px}.simple-inventory-header .foundation-close{width:40px;height:36px}.simple-craft-view{grid-template-columns:minmax(360px,1.08fr) minmax(305px,.92fr)}.simple-craft-view .recipe-pane{grid-template-rows:34px 38px minmax(0,1fr)}.simple-craft-view .recipe-title{padding:4px 7px}.simple-craft-view .recipe-title b{font-size:11px}.simple-craft-view .recipe-title small{font-size:7px}.simple-craft-view .inventory-tabs button{min-height:31px}.simple-craft-view .recipe-browser{grid-template-rows:34px minmax(0,1fr);padding:4px}.simple-craft-view .foundation-recipe-grid{grid-auto-rows:minmax(48px,auto)}.simple-craft-view .foundation-recipe-card{grid-template-columns:39px minmax(0,1fr) auto;min-height:48px}.recipe-card-icon{width:37px;height:37px}.foundation-recipe-icon{width:33px;height:33px}.simple-craft-view .craft-pane-title{display:none}.simple-craft-view .recipe-empty span{font-size:30px}.simple-craft-view .recipe-preview{justify-content:center}.simple-craft-view .recipe-requirements{grid-template-columns:1fr 1fr}.simple-craft-view .craft-actions button{min-height:30px}.simple-pack-view{grid-template-rows:40px minmax(0,1fr) 56px;padding:4px 6px}.simple-pack-view .inventory-grid{grid-template-columns:repeat(9,minmax(34px,44px));grid-auto-rows:minmax(34px,44px)}.simple-inventory .inventory-hotbar-grid{grid-template-columns:repeat(9,36px);grid-auto-rows:36px}.simple-inventory .inventory-hotbar-grid .slot{width:36px;height:36px}.simple-inventory .inventory-hotbar-grid .slot-canvas{width:29px;height:29px}.inventory-selection-icon{width:35px;height:35px}.inventory-selection button{min-height:33px}.inventory-guide-card{width:min(500px,90%);gap:7px;padding:10px}.inventory-guide-card>b{font-size:15px}.inventory-guide-card>div{grid-template-columns:repeat(3,1fr);gap:6px}.inventory-guide-card span{align-items:flex-start;font-size:8px}.inventory-guide-card strong{width:21px;height:21px}.inventory-guide-card button{min-height:34px}}

/* V225 voxel sandbox-style furnace and durable inventory tools */
.furnace-panel{width:min(900px,calc(100vw - var(--safe-l) - var(--safe-r) - 18px));height:min(560px,calc(100dvh - var(--safe-t) - var(--safe-b) - 16px));border:4px solid #202729;background:#c7c7c7;color:#252525}.furnace-header{display:flex;min-height:68px;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:4px solid #222;background:#ededed}.furnace-header>div{display:flex;flex-direction:column;gap:4px}.furnace-header b{font-size:22px}.furnace-header small{color:#59646a;font-size:9px}.furnace-header button{width:52px;height:48px;border:3px solid #292929;background:#636363;color:white;font-size:30px;font-weight:900}.furnace-body{display:grid;grid-template-columns:minmax(290px,.85fr) minmax(390px,1.15fr);height:calc(100% - 68px)}.furnace-browser{display:grid;grid-template-rows:42px minmax(0,1fr);min-height:0;border-right:4px solid #292929;background:#747474}.furnace-browser h3{margin:0;padding:12px;border-bottom:3px solid #444;background:#d7d7d7;font-size:13px}.furnace-recipe-list{display:grid;align-content:start;gap:5px;padding:7px;overflow:auto}.furnace-recipe{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:9px;min-height:57px;padding:4px 8px;border:3px solid #525252;background:#b5b5b5;color:#333;text-align:left}.furnace-recipe.ready{border-left:7px solid #4b9650;background:#d1e1ce}.furnace-recipe.selected{border-color:#f2ca43;outline:2px solid #fff1a8;background:#f4e2a1}.furnace-list-icon{width:42px;height:42px;image-rendering:pixelated}.furnace-recipe span{display:flex;min-width:0;flex-direction:column;gap:4px}.furnace-recipe b{font-size:10px}.furnace-recipe small{font-size:8px;color:#555}.furnace-workspace{display:flex;align-items:stretch;justify-content:center;flex-direction:column;gap:18px;padding:24px;background:#d3d3d3}.furnace-flow{display:grid;grid-template-columns:minmax(115px,1fr) 100px 36px minmax(115px,1fr);align-items:center;gap:10px}.furnace-stack{display:flex;align-items:center;flex-direction:column;gap:8px;padding:13px;border:4px solid #565656;background:#8a8a8a;color:white}.furnace-stack.output{border-color:#6d5a16;background:#a88a29}.furnace-stack>span{display:grid;place-items:center;width:76px;height:76px;border:3px solid #3b3b3b;background:#5c5c5c;box-shadow:inset 3px 3px #929292}.furnace-stack b{font-size:9px;text-align:center}.furnace-item-icon{width:65px;height:65px;image-rendering:pixelated}.furnace-flame{display:flex;align-items:center;flex-direction:column;gap:6px}.furnace-flame span{color:#ef7d27;font-size:44px;text-shadow:0 3px #9b4319}.furnace-flame i{width:80px;height:9px;border:2px solid #333;background:linear-gradient(90deg,#ef7d27 75%,#777 75%)}.furnace-flame small{font-size:7px;text-align:center}.furnace-arrow{font-size:30px}.furnace-message{min-height:34px;margin:0;padding:10px;border:3px solid #555;background:#777;color:white;font-size:10px}.furnace-message.good{border-color:#306d35;background:#4f8f50}.furnace-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.furnace-actions button{min-height:54px;border:3px solid #2e5631;background:#4f914e;color:white;font-size:12px;font-weight:1000;box-shadow:inset 2px 2px #87c17d,inset -2px -2px #2d5e30}.furnace-actions button:disabled{border-color:#666;background:#999;color:#ccc;box-shadow:none}
.slot-durability{position:absolute;z-index:3;right:4px;bottom:3px;left:4px;height:4px;border:1px solid #202020;background:#202020}.slot-durability i{display:block;height:100%;background:#54c75c}.slot-durability.low i{background:#e25043}
@media(max-width:900px),(pointer:coarse){.furnace-panel{width:calc(100vw - var(--safe-l) - var(--safe-r) - 10px);height:calc(100dvh - var(--safe-t) - var(--safe-b) - 8px)}.furnace-header{min-height:54px;padding:5px 8px}.furnace-header b{font-size:16px}.furnace-header button{width:44px;height:40px}.furnace-body{grid-template-columns:minmax(250px,.8fr) minmax(400px,1.2fr);height:calc(100% - 54px)}.furnace-browser{grid-template-rows:34px minmax(0,1fr)}.furnace-browser h3{padding:9px;font-size:10px}.furnace-recipe-list{gap:3px;padding:4px}.furnace-recipe{grid-template-columns:39px minmax(0,1fr);min-height:46px;padding:2px 5px;border-width:2px}.furnace-list-icon{width:35px;height:35px}.furnace-workspace{gap:9px;padding:10px}.furnace-flow{grid-template-columns:minmax(105px,1fr) 82px 27px minmax(105px,1fr);gap:6px}.furnace-stack{gap:5px;padding:6px;border-width:3px}.furnace-stack>span{width:59px;height:59px}.furnace-item-icon{width:51px;height:51px}.furnace-flame span{font-size:33px}.furnace-flame i{width:65px}.furnace-message{min-height:27px;padding:6px}.furnace-actions button{min-height:42px}}

/* V145 real multiplayer room creation */
.server-list-title{gap:8px}.server-list-title>div{display:flex;gap:6px}.server-list-title #server-create-open{background:#31566a;color:#fff;border-color:#203b49}.server-player-names span.real{background:#195d78;border-left-color:#62d5ff}.social-player.real-player{border-color:#3d91b3;background:#163b4b}.social-player em[data-reputation="ONLINE"]{background:#195d78;color:#8ee4ff}.server-create-overlay{z-index:35;background:rgba(2,9,14,.86)}.server-create-panel{z-index:36;width:min(620px,94vw);max-height:min(720px,94dvh);overflow:hidden;padding:0;background:#d1d1d1;border:4px solid #111;color:#202020}.server-create-panel>header{padding:14px 17px;background:#ececec;border-bottom:3px solid #111}.server-create-panel>header b{color:#202020;font-size:21px}.server-create-panel>header small{color:#586268;font-size:9px}.server-create-panel>header button{display:grid;place-items:center;width:42px;height:42px;background:#5b5b5b;color:#fff;border:2px solid #292929;font-size:26px}.server-create-body{display:grid;gap:12px;overflow-y:auto;padding:18px;touch-action:pan-y}.server-create-body label>span,.server-code-box>b{display:block;margin-bottom:6px;font-size:9px;letter-spacing:.08em}.server-create-body input[type="text"],.server-create-body select,.server-code-box input{width:100%;min-height:45px;padding:9px 11px;background:#f3f3f3;border:3px solid #666;color:#222;font:900 12px monospace}.server-create-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.server-switch{display:flex;align-items:center;gap:12px;padding:11px;background:#aaa;border:3px solid #707070;cursor:pointer}.server-switch input{width:24px;height:24px;accent-color:#2c8b4c}.server-switch>span{margin:0}.server-switch b{display:block;font-size:10px}.server-switch small{display:block;margin-top:4px;color:#4b4b4b;font-size:8px}.server-code-box{padding:12px;background:#b7b7b7;border:3px solid #777}.server-code-box>div{display:grid;grid-template-columns:1fr auto;gap:8px}.server-code-box button{min-width:82px;border:3px solid #385b6b;background:#31566a;color:#fff;font-weight:900}.server-create-body>p{margin:0;color:#505050;font-size:9px;line-height:1.5}.server-create-panel>footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;background:#e7e7e7;border-top:3px solid #111}.server-create-panel>footer button{min-height:44px}
@media(max-width:760px),(pointer:coarse){.server-list-title>div{gap:3px}.server-list-title button{padding:5px 6px!important;font-size:6px!important}.server-create-panel{width:calc(100vw - var(--safe-l) - var(--safe-r) - 12px);height:calc(100dvh - var(--safe-t) - var(--safe-b) - 10px);max-height:none}.server-create-panel>header{padding:7px 10px}.server-create-panel>header b{font-size:15px}.server-create-panel>header small{font-size:7px}.server-create-panel>header button{width:34px;height:34px;font-size:21px}.server-create-body{gap:7px;padding:9px 12px}.server-create-body label>span,.server-code-box>b{margin-bottom:3px;font-size:7px}.server-create-body input[type="text"],.server-create-body select,.server-code-box input{min-height:36px;padding:6px 8px;border-width:2px;font-size:9px}.server-switch{gap:8px;padding:6px 8px;border-width:2px}.server-switch input{width:19px;height:19px}.server-switch b{font-size:8px}.server-switch small{font-size:6px}.server-code-box{padding:7px;border-width:2px}.server-code-box button{min-width:65px;font-size:7px}.server-create-body>p{font-size:7px}.server-create-panel>footer{padding:6px 9px}.server-create-panel>footer button{min-height:35px;font-size:8px}}

/* V158 multiplayer TNT room rules */
.server-create-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:560px){.server-create-grid{grid-template-columns:1fr}}

/* V169 mobile touch controls */
.settings-panel{display:flex;max-height:min(760px,94dvh);flex-direction:column;overflow:hidden}.settings-panel.hidden{display:none}.settings-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}.settings-controls{display:none;margin-top:14px;padding:11px 13px;border:2px solid #49616b;background:#142b34}.touch .settings-controls{display:grid;gap:9px}.settings-controls-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.settings-controls-heading>b{color:#fff;font-size:12px;letter-spacing:.08em}.settings-controls-heading>small{color:#91adb7;font-size:8px;text-align:right}.touch-control-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.touch-control-options button{position:relative;display:flex;min-height:64px;align-items:flex-start;justify-content:center;flex-direction:column;gap:5px;padding:10px 12px;border:2px solid #49616b;background:#1b323a;color:#fff;text-align:left;cursor:pointer}.touch-control-options button b{font-size:11px;letter-spacing:.06em}.touch-control-options button span{max-width:90%;color:#9eb9c2;font-size:8px;line-height:1.35}.touch-control-options button em{position:absolute;top:6px;right:6px;padding:3px 4px;background:#63551c;color:#ffe36a;font-size:6px;font-style:normal;font-weight:900}.touch-control-options button.selected{border-color:var(--accent);background:#35462f;box-shadow:inset 0 0 0 1px rgba(255,224,106,.25)}.touch-control-options button.selected b{color:var(--accent)}
.world-style-settings{display:grid;gap:9px;margin-top:14px;padding:11px 13px;border:2px solid #49616b;background:#142b34}.world-style-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.world-style-options button{position:relative;display:flex;min-height:64px;align-items:flex-start;justify-content:center;flex-direction:column;gap:5px;padding:10px 12px;border:2px solid #49616b;background:#1b323a;color:#fff;text-align:left;cursor:pointer}.world-style-options button b{font-size:11px;letter-spacing:.06em}.world-style-options button span{max-width:90%;color:#9eb9c2;font-size:8px;line-height:1.35}.world-style-options button em{position:absolute;top:6px;right:6px;padding:3px 4px;background:#63551c;color:#ffe36a;font-size:6px;font-style:normal;font-weight:900}.world-style-options button.selected{border-color:var(--accent);background:#35462f;box-shadow:inset 0 0 0 1px rgba(255,224,106,.25)}.world-style-options button.selected b{color:var(--accent)}
@media(max-height:520px){.world-style-settings{gap:4px;margin-top:6px;padding:5px 8px}.world-style-options{gap:4px}.world-style-options button{min-height:46px;gap:2px;padding:5px 7px}.world-style-options button b{font-size:8px}.world-style-options button span{font-size:6px}.world-style-options button em{top:3px;right:3px;font-size:5px}}
html.touch[data-touch-controls="touch"] #mine-button,html.touch[data-touch-controls="touch"] #place-button,html.touch[data-touch-controls="touch"] #crosshair{display:none!important}html.touch[data-touch-controls="touch"] #sprint-button{right:calc(25px + var(--safe-r));bottom:calc(30px + var(--safe-b));width:58px;height:58px;border-color:rgba(255,227,106,.78);background:rgba(31,66,48,.68)}
@media(max-height:520px){.settings-controls{gap:4px;margin-top:6px;padding:5px 8px}.settings-controls-heading>b{font-size:9px}.settings-controls-heading>small{font-size:6px}.touch-control-options{gap:4px}.touch-control-options button{min-height:46px;gap:2px;padding:5px 7px}.touch-control-options button b{font-size:8px}.touch-control-options button span{font-size:6px}.touch-control-options button em{top:3px;right:3px;font-size:5px}html.touch[data-touch-controls="touch"] #sprint-button{right:calc(24px + var(--safe-r));bottom:calc(20px + var(--safe-b));width:56px;height:56px}}

/* V180 Island Store merchandising */
.store-sales-hero{position:relative;min-height:116px;overflow:hidden;background:radial-gradient(circle at 88% 50%,rgba(255,215,75,.25),transparent 22%),linear-gradient(125deg,#153a49,#091b24 68%)}.store-sales-hero:after{content:"";position:absolute;right:105px;width:70px;height:160%;background:rgba(255,255,255,.035);transform:rotate(24deg)}.store-sales-hero>div{position:relative;z-index:1}.store-sales-hero>strong{position:relative;z-index:1;display:block;width:110px;height:75px;flex:0 0 auto}.store-sales-hero>strong i{position:absolute;color:#ffe05a;font-size:39px;font-style:normal;filter:drop-shadow(5px 7px 0 #735a14)}.store-sales-hero>strong i:nth-child(1){left:3px;bottom:3px}.store-sales-hero>strong i:nth-child(2){left:38px;bottom:24px}.store-sales-hero>strong i:nth-child(3){right:3px;bottom:5px}
.coin-showcase-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-top:14px;padding:0 3px 8px;border-bottom:2px solid #808080}.coin-showcase-heading>div{display:flex;flex-direction:column;gap:4px}.coin-showcase-heading b{font-size:15px;letter-spacing:.08em}.coin-showcase-heading small{color:#575757;font-size:9px}.coin-showcase-heading>span{color:#765f16;font-size:8px;font-weight:900;white-space:nowrap}
.coin-offer-grid{display:grid;grid-template-columns:repeat(6,minmax(138px,1fr));gap:9px;margin-top:10px;padding:6px 1px 8px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity}.coin-offer-grid.featured{grid-template-columns:repeat(3,minmax(180px,1fr));overflow:visible}.coin-offer{position:relative;display:flex;min-height:265px;align-items:center;flex-direction:column;padding:0 10px 12px;border:3px solid #555;background:linear-gradient(160deg,#22292d,#0d1114 72%);color:#fff;text-align:center;box-shadow:inset 2px 2px rgba(255,255,255,.08),0 6px 0 rgba(0,0,0,.34);scroll-snap-align:center;overflow:hidden}.coin-offer:after{content:"";position:absolute;inset:38px 0 auto;height:44%;background:linear-gradient(120deg,rgba(255,255,255,.055),transparent 58%);pointer-events:none}.coin-offer.popular{border-color:#f2cf24;box-shadow:inset 0 0 0 2px rgba(255,222,73,.18),0 7px 0 #806815}.coin-offer.value{border-color:#35c6e6;box-shadow:inset 0 0 0 2px rgba(77,219,248,.16),0 7px 0 #176779}.coin-offer.great{border-color:#9bc871}.coin-offer.focused{animation:store-focus 1.1s ease-in-out 2}.coin-offer-badge{position:relative;z-index:2;display:grid;width:calc(100% + 20px);min-height:38px;place-items:center;margin-bottom:4px;padding:7px 4px;background:#3a4246;color:#dce5e8;font-size:9px;font-weight:1000;letter-spacing:.05em}.coin-offer.popular .coin-offer-badge{background:#f0ce20;color:#27230e}.coin-offer.value .coin-offer-badge{background:#30bfdf;color:#082b34}.coin-offer.great .coin-offer-badge{background:#739f4d;color:#fff}.coin-pile{position:relative;z-index:2;width:118px;height:92px;margin:2px auto}.coin-pile i{position:absolute;display:grid;width:34px;height:34px;place-items:center;border:3px solid #9a7413;background:linear-gradient(145deg,#fff07d,#e7ad19 70%);color:#7e5f10;font-size:17px;font-style:normal;line-height:1;box-shadow:4px 5px 0 #5e4918;transform:rotate(45deg)}.coin-pile i:nth-child(1){left:41px;bottom:8px}.coin-pile i:nth-child(2){left:12px;bottom:14px;transform:rotate(45deg) scale(.83)}.coin-pile i:nth-child(3){right:10px;bottom:14px;transform:rotate(45deg) scale(.83)}.coin-pile i:nth-child(4){left:41px;bottom:43px;transform:rotate(45deg) scale(.91)}.coin-pile i:nth-child(5){left:20px;bottom:47px;transform:rotate(45deg) scale(.7)}.coin-pile i:nth-child(6){right:18px;bottom:47px;transform:rotate(45deg) scale(.7)}.coin-pile i:nth-child(7){left:42px;bottom:69px;transform:rotate(45deg) scale(.58)}.coin-offer-amount{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;gap:5px;color:#ffe15b;font-size:24px;line-height:1;text-shadow:2px 2px #5f4912}.coin-offer-amount small{color:#fff;font-size:8px;text-shadow:none}.coin-offer-detail{position:relative;z-index:2;min-height:25px;margin:8px 0;color:#bcc8cd;font-size:8px;line-height:1.45}.coin-offer>button{position:relative;z-index:2;width:100%;min-height:40px;margin-top:auto;padding:8px;border:2px solid #8a6915;background:#f1cc34;color:#18140a;font-size:10px;font-weight:1000;box-shadow:0 4px #745916;cursor:pointer}.coin-offer.value>button{border-color:#18758a;background:#35c6e6;box-shadow:0 4px #176779}.coin-offer>button:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px #745916}.coin-offer>button:disabled.store-preview-price,.store-product>button:disabled.store-preview-price{opacity:.72;background:#d7b936;border-color:#7b641d;color:#25200d;box-shadow:0 3px #75601d;cursor:default}.store-upgrade-section{display:grid;grid-template-columns:minmax(0,1fr) minmax(390px,.9fr);align-items:center;gap:14px;margin-top:13px;padding:11px 12px;border:2px solid #847239;background:linear-gradient(110deg,#4e4325,#25251e);color:#fff}.store-upgrade-section>div{display:flex;flex-direction:column;gap:5px}.store-upgrade-section>div small{color:#ffe36b;font-size:8px}.store-upgrade-section>div b{font-size:14px;letter-spacing:.06em}.store-upgrade-section>div span{color:#d5d0b9;font-size:8px}.store-upgrade-section .store-product{min-height:64px;border-color:#a88c39;background:#ddd;color:#222}.store-coins-intro{margin-bottom:0}.store-footer button{white-space:nowrap}
@media(max-width:900px){.coin-offer-grid.featured{grid-template-columns:repeat(3,minmax(150px,1fr))}.store-upgrade-section{grid-template-columns:minmax(0,.8fr) minmax(350px,1.2fr)}}
@media(max-width:620px){.coin-offer-grid.featured{grid-template-columns:repeat(3,minmax(138px,1fr));overflow-x:auto}.store-upgrade-section{grid-template-columns:1fr}.store-upgrade-section>div{display:none}}
@media(max-height:520px){.store-sales-hero{min-height:72px;padding:8px 12px}.store-sales-hero>div{gap:3px}.store-sales-hero>div b{font-size:14px}.store-sales-hero>div span{font-size:8px}.store-sales-hero>strong{width:82px;height:50px}.store-sales-hero>strong i{font-size:27px}.coin-showcase-heading{margin-top:7px;padding-bottom:4px}.coin-showcase-heading b{font-size:11px}.coin-showcase-heading small{font-size:7px}.coin-offer-grid{grid-template-columns:repeat(6,minmax(120px,1fr));gap:6px;margin-top:5px;padding-top:3px}.coin-offer-grid.featured{grid-template-columns:repeat(3,minmax(145px,1fr))}.coin-offer{min-height:172px;padding:0 7px 7px;border-width:2px}.coin-offer-badge{width:calc(100% + 14px);min-height:26px;padding:4px;font-size:7px}.coin-pile{width:93px;height:58px;transform:scale(.72);transform-origin:50% 45%;margin:-5px auto -8px}.coin-offer-amount{font-size:17px}.coin-offer-amount small{font-size:6px}.coin-offer-detail{min-height:15px;margin:4px 0;font-size:6px}.coin-offer>button{min-height:30px;padding:5px;font-size:8px}.store-upgrade-section{grid-template-columns:minmax(0,.72fr) minmax(330px,1.28fr);gap:7px;margin-top:6px;padding:5px 7px}.store-upgrade-section>div{gap:2px}.store-upgrade-section>div b{font-size:10px}.store-upgrade-section>div span,.store-upgrade-section>div small{font-size:6px}.store-upgrade-section .store-product{min-height:48px}.store-footer button{font-size:7px}}

/* V181 simplified mobile Store: products begin immediately below the header */
.store-simple-grid{grid-template-columns:repeat(6,minmax(120px,1fr));margin-top:0;padding-top:0}
@media(max-height:520px){.store-simple-grid{grid-template-columns:repeat(6,minmax(100px,1fr));margin-top:0;padding-top:0}.store-content{padding-top:6px}}

/* V182 lively Store hierarchy */
.store-content{background:radial-gradient(circle at 50% 4%,rgba(255,218,62,.22),transparent 30%),linear-gradient(145deg,#d7d7d7,#aaa 78%)}
.store-featured-stage{position:relative;padding:9px 8px 12px;overflow:hidden;background:linear-gradient(180deg,rgba(17,37,43,.96),rgba(11,18,22,.99));box-shadow:inset 0 0 55px rgba(56,194,225,.08),0 6px 0 rgba(0,0,0,.28)}
.store-featured-grid{position:relative;z-index:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:11px}.store-featured-grid .coin-offer{min-height:272px;animation:store-card-rise .55s cubic-bezier(.2,.8,.2,1) both}.store-featured-grid .coin-offer:nth-child(2){top:-5px;animation-delay:.08s}.store-featured-grid .coin-offer:nth-child(3){animation-delay:.16s}.store-featured-grid .coin-offer.popular{background:radial-gradient(circle at 50% 42%,rgba(255,215,49,.17),transparent 40%),linear-gradient(160deg,#2b2920,#0f1112 76%)}.store-featured-grid .coin-offer.value{background:radial-gradient(circle at 50% 42%,rgba(56,205,238,.19),transparent 42%),linear-gradient(160deg,#172d34,#0d1215 76%)}
.store-featured-grid .coin-pile{animation:store-coin-glow 2.4s ease-in-out infinite}.store-featured-grid .coin-offer.popular .coin-pile{animation-delay:.35s}.store-featured-grid .coin-offer.value .coin-pile{animation-delay:.7s}.store-featured-grid .coin-offer>button{background:linear-gradient(#ffe15d,#e9b91e);font-size:10px;letter-spacing:.015em}.store-featured-grid .coin-offer.popular>button{box-shadow:0 4px #775a0c,0 0 14px rgba(255,218,57,.35)}.store-featured-grid .coin-offer.value>button{background:linear-gradient(#5ce0f5,#27b4d3);box-shadow:0 4px #176779,0 0 14px rgba(53,198,230,.34)}
.store-coin-ambience{position:absolute;z-index:1;inset:0;pointer-events:none}.store-coin-ambience i{position:absolute;color:#ffe269;font-style:normal;opacity:.2;filter:drop-shadow(2px 3px #6c5310);animation:store-sparkle 3.2s ease-in-out infinite}.store-coin-ambience i:nth-child(1){left:2%;top:12%;font-size:17px}.store-coin-ambience i:nth-child(2){left:20%;top:75%;font-size:26px;animation-delay:.4s}.store-coin-ambience i:nth-child(3){left:35%;top:8%;font-size:18px;animation-delay:1.2s}.store-coin-ambience i:nth-child(4){left:49%;top:80%;font-size:22px;animation-delay:.8s}.store-coin-ambience i:nth-child(5){left:63%;top:13%;font-size:28px;animation-delay:1.7s}.store-coin-ambience i:nth-child(6){left:76%;top:78%;font-size:18px;animation-delay:.2s}.store-coin-ambience i:nth-child(7){left:91%;top:16%;font-size:16px;animation-delay:1.1s}.store-coin-ambience i:nth-child(8){left:96%;top:66%;font-size:25px;animation-delay:2s}.store-coin-ambience i:nth-child(9){left:7%;top:88%;font-size:20px;animation-delay:1.5s}
.store-secondary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.coin-mini-offer{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:65px;padding:7px;border:2px solid #666;background:linear-gradient(145deg,#e4e4e4,#bcbcbc);box-shadow:inset 1px 1px #fff,0 4px rgba(0,0,0,.2)}.coin-mini-art{display:grid;width:34px;height:34px;place-items:center;border:2px solid #8d6b16;background:linear-gradient(145deg,#fff080,#e5ad1c);color:#775912;font-size:15px;box-shadow:3px 3px #68531c;transform:rotate(45deg)}.coin-mini-offer>div{display:flex;min-width:0;flex-direction:column;gap:4px}.coin-mini-offer b{font-size:10px;white-space:nowrap}.coin-mini-offer small{color:#5c5c5c;font-size:7px;white-space:nowrap}.coin-mini-offer>button{min-width:88px;min-height:36px;padding:6px;border:2px solid #755a13;background:#f2ca35;color:#1d190c;font-size:8px;font-weight:1000;box-shadow:0 3px #765c17}.coin-mini-offer>button:disabled.store-preview-price{opacity:.74;background:#d5b737;color:#24200f}
@keyframes store-card-rise{from{opacity:0;translate:0 14px}to{opacity:1;translate:0 0}}@keyframes store-coin-glow{0%,100%{filter:drop-shadow(0 0 0 rgba(255,224,80,0))}50%{filter:drop-shadow(0 0 9px rgba(255,224,80,.64))}}@keyframes store-sparkle{0%,100%{opacity:.08;transform:translateY(3px) scale(.85)}50%{opacity:.38;transform:translateY(-4px) scale(1.08)}}
@media(max-width:760px){.store-featured-stage{padding:7px 6px 10px}.store-featured-grid{gap:7px}.store-secondary-grid{gap:5px}.coin-mini-offer{grid-template-columns:28px minmax(0,1fr) auto;gap:5px;padding:5px}.coin-mini-art{width:26px;height:26px;font-size:11px}.coin-mini-offer>button{min-width:70px;padding:4px;font-size:7px}}
@media(max-height:520px){.store-featured-stage{padding:5px 5px 7px}.store-featured-grid{gap:6px}.store-featured-grid .coin-offer{min-height:180px}.store-featured-grid .coin-offer:nth-child(2){top:-3px}.store-secondary-grid{gap:5px;margin-top:6px}.coin-mini-offer{grid-template-columns:25px minmax(0,1fr) auto;min-height:47px;padding:4px}.coin-mini-art{width:23px;height:23px;border-width:1px;font-size:9px;box-shadow:2px 2px #68531c}.coin-mini-offer b{font-size:8px}.coin-mini-offer small{font-size:6px}.coin-mini-offer>button{min-width:67px;min-height:29px;padding:3px;font-size:6px}.store-upgrade-section{margin-top:6px}}
@media(prefers-reduced-motion:reduce){.guide-hud[data-kind="ready"],.store-featured-grid .coin-offer,.store-featured-grid .coin-pile,.store-coin-ambience i{animation:none!important}}

/* V183 treasure-chest Store centerpiece */
.store-featured-stage{padding-top:116px;background:radial-gradient(circle at 50% 22%,rgba(245,169,30,.32),transparent 35%),linear-gradient(180deg,rgba(14,35,42,.98),rgba(8,15,19,.99))}.store-treasure{position:absolute;z-index:0;top:-78px;left:50%;width:min(72%,690px);height:auto;transform:translateX(-50%);filter:drop-shadow(0 12px 18px rgba(0,0,0,.48));pointer-events:none;user-select:none;animation:store-treasure-arrive .7s cubic-bezier(.16,.82,.25,1) both}.store-featured-grid .coin-offer{background-color:rgba(12,16,18,.96);backdrop-filter:blur(2px)}
@keyframes store-treasure-arrive{from{opacity:0;transform:translateX(-50%) translateY(-18px) scale(.9)}to{opacity:1;transform:translateX(-50%) translateY(0) scale(1)}}
@media(max-width:760px){.store-featured-stage{padding-top:82px}.store-treasure{top:-56px;width:min(68%,540px)}}
@media(max-height:520px){.store-featured-stage{padding-top:62px}.store-treasure{top:-53px;width:min(61%,500px)}.store-featured-grid .coin-offer{min-height:172px}}
@media(prefers-reduced-motion:reduce){.store-treasure{animation:none!important}}

/* V214 daily missions and honest weekly rotation */
.store-weekly,.store-missions{margin-top:10px;border:2px solid #566970;background:linear-gradient(145deg,#18313a,#0c1b21);color:#fff;box-shadow:0 4px rgba(0,0,0,.25)}.store-weekly>header,.store-missions>header{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:9px 11px;border-bottom:1px solid #526b74}.store-weekly>header>div,.store-missions>header>div{display:flex;flex-direction:column;gap:3px}.store-weekly header small,.store-missions header small{color:#ffe36b;font-size:7px}.store-weekly header b,.store-missions header b{font-size:12px;letter-spacing:.06em}.store-weekly header span,.store-missions header span{color:#9fbbc4;font-size:7px;text-align:right}.store-weekly-grid,.store-mission-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:8px}.store-weekly-card{display:grid;grid-template-columns:43px minmax(0,1fr);align-items:center;gap:8px;min-height:64px;padding:7px;border:2px solid #596d74;background:linear-gradient(145deg,#29434c,#16282f);color:#fff;text-align:left;cursor:pointer}.store-weekly-card.rare{border-color:#56a0d0}.store-weekly-card.epic{border-color:#ad76d8}.store-weekly-card.legendary{border-color:#e5bd3d}.store-weekly-card>i{display:grid;width:39px;height:39px;place-items:center;border:2px solid #7b681d;background:radial-gradient(circle,#765c13,#202c31);color:#ffe35e;font-size:19px;font-style:normal}.store-weekly-card>div{display:flex;min-width:0;flex-direction:column;gap:3px}.store-weekly-card small{color:#93becd;font-size:6px}.store-weekly-card b{font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.store-weekly-card span{color:#ffe36b;font-size:7px}.store-missions{border-color:#84733b;background:linear-gradient(145deg,#302c1b,#171914)}.store-mission-card{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:7px;min-height:76px;padding:7px;border:2px solid #655f42;background:#25271f}.store-mission-card>i{display:grid;width:31px;height:31px;place-items:center;border:2px solid #82702c;background:#51451d;color:#ffe36b;font-size:15px;font-style:normal}.store-mission-card>div{display:grid;min-width:0;grid-template-columns:1fr auto;gap:4px}.store-mission-card b,.store-mission-card small{grid-column:1/3}.store-mission-card b{font-size:8px}.store-mission-card small{color:#c4c5b7;font-size:6px;line-height:1.3}.store-mission-card div>span{height:6px;border:1px solid #78745e;background:#10130f}.store-mission-card div>span>em{display:block;height:100%;background:linear-gradient(90deg,#70bb68,#ffe05b)}.store-mission-card strong{color:#e4dcae;font-size:6px}.store-mission-card>button{min-width:75px;min-height:34px;padding:5px;border:2px solid #826713;background:#f2cc36;color:#1e1908;font-size:7px;font-weight:1000;box-shadow:0 3px #6f5714}.store-mission-card>button:disabled{border-color:#555;background:#4b4d43;color:#aaa;box-shadow:none}.store-mission-card.complete{border-color:#d7bb43}.store-mission-card.claimed{opacity:.7;border-color:#56825d}.store-mission-card.claimed>button{background:#315b39;color:#bff2c6}
@media(max-width:760px){.store-weekly-grid,.store-mission-grid{gap:5px;padding:6px}.store-weekly-card{grid-template-columns:32px minmax(0,1fr);gap:5px;padding:5px}.store-weekly-card>i{width:29px;height:29px;font-size:13px}.store-mission-card{grid-template-columns:27px minmax(0,1fr);gap:5px}.store-mission-card>i{width:24px;height:24px}.store-mission-card>button{grid-column:1/3;width:100%;min-height:25px}.store-weekly header span,.store-missions header span{max-width:45%}}
@media(max-height:520px){.store-weekly,.store-missions{margin-top:6px}.store-weekly>header,.store-missions>header{padding:5px 7px}.store-weekly header b,.store-missions header b{font-size:9px}.store-weekly-grid,.store-mission-grid{padding:5px}.store-weekly-card{min-height:48px}.store-mission-card{min-height:58px;padding:5px}.store-mission-card>button{min-width:62px;min-height:27px}}

/* V184 concept-matched card frames, coin tokens and purchase buttons */
.store-wallet{display:flex;align-items:center;gap:9px}.store-wallet-coin{position:relative;display:inline-block;width:19px;height:19px;flex:0 0 auto;border:3px solid #a66f08;background:linear-gradient(145deg,#fff087 0 20%,#ffc72c 21% 72%,#db8c09 73%);clip-path:polygon(5px 0,14px 0,19px 5px,19px 14px,14px 19px,5px 19px,0 14px,0 5px);filter:drop-shadow(2px 3px #4d3a10)}.store-wallet-coin:after{content:"";position:absolute;inset:4px;border:2px solid #bd7908;background:#ffdf4b}
.store-featured-grid .coin-offer{overflow:visible;border:4px solid #666d70;background:linear-gradient(165deg,rgba(35,40,43,.98),rgba(8,11,13,.99) 78%);clip-path:polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px);filter:drop-shadow(0 7px 0 rgba(0,0,0,.52));box-shadow:inset 0 0 0 3px #22292c,inset 0 0 0 5px rgba(255,255,255,.07)}.store-featured-grid .coin-offer.popular{border-color:#f0c51d;box-shadow:inset 0 0 0 3px #765b0b,inset 0 0 0 5px #ffdf50}.store-featured-grid .coin-offer.value{border-color:#35c8d8;box-shadow:inset 0 0 0 3px #116876,inset 0 0 0 5px #71e7ee}
.store-featured-grid .coin-offer-badge{width:calc(100% - 22px);min-height:42px;margin:-3px auto 4px;border:3px solid #24282a;background:linear-gradient(#74787a,#484d50);color:#fff;clip-path:polygon(9px 0,calc(100% - 9px) 0,100% 9px,100% calc(100% - 5px),calc(100% - 5px) 100%,5px 100%,0 calc(100% - 5px),0 9px);text-shadow:2px 2px #25282a;box-shadow:inset 0 -4px rgba(0,0,0,.22);font-size:10px}.store-featured-grid .coin-offer.popular .coin-offer-badge{width:calc(100% - 8px);border-color:#8d6a0b;background:linear-gradient(#ffe45a,#edae15);color:#302407;text-shadow:1px 1px rgba(255,255,255,.35);box-shadow:inset 0 -4px #cc8b0d}.store-featured-grid .coin-offer.value .coin-offer-badge{border-color:#147383;background:linear-gradient(#55e0e8,#24b7c9);color:#092f35;text-shadow:1px 1px rgba(255,255,255,.28);box-shadow:inset 0 -4px #178b9a}
.store-featured-grid .coin-pile{width:130px;height:91px;margin:1px auto 3px}.store-featured-grid .coin-pile i{display:grid;width:39px;height:29px;place-items:center;border:3px solid #a66708;background:linear-gradient(145deg,#fff282 0 16%,#ffc52c 17% 73%,#df900b 74%);clip-path:polygon(7px 0,32px 0,39px 7px,39px 22px,32px 29px,7px 29px,0 22px,0 7px);box-shadow:inset 0 -4px #bd7105,4px 5px 0 #5c3c0d;font-size:0;transform:none}.store-featured-grid .coin-pile i:before{content:"";display:block;width:14px;height:11px;border:3px solid #c27d08;background:#ffdc43;box-shadow:inset 2px 2px #fff287}.store-featured-grid .coin-pile i:nth-child(1){left:45px;bottom:4px;transform:rotate(-5deg)}.store-featured-grid .coin-pile i:nth-child(2){left:10px;bottom:8px;transform:rotate(8deg) scale(.9)}.store-featured-grid .coin-pile i:nth-child(3){right:8px;bottom:9px;transform:rotate(-10deg) scale(.91)}.store-featured-grid .coin-pile i:nth-child(4){left:45px;bottom:32px;transform:rotate(4deg) scale(.96)}.store-featured-grid .coin-pile i:nth-child(5){left:20px;bottom:48px;transform:rotate(-12deg) scale(.76)}.store-featured-grid .coin-pile i:nth-child(6){right:17px;bottom:48px;transform:rotate(12deg) scale(.77)}.store-featured-grid .coin-pile i:nth-child(7){left:47px;bottom:65px;transform:rotate(-2deg) scale(.68)}
.store-featured-grid .coin-offer-amount{color:#fff;font-size:26px;letter-spacing:-.025em;text-shadow:3px 3px #16191a}.store-featured-grid .coin-offer-amount small{color:#e8ecee;font-size:8px}.store-featured-grid .coin-offer-detail{color:#c9ced0}
.store-featured-grid .coin-offer>button{display:grid;grid-template-rows:auto auto;place-items:center;gap:1px;min-height:49px;border:3px solid #9b690b;background:linear-gradient(#ffe25b,#f4af15);clip-path:polygon(8px 0,calc(100% - 8px) 0,100% 8px,100% calc(100% - 8px),calc(100% - 8px) 100%,8px 100%,0 calc(100% - 8px),0 8px);box-shadow:inset 0 -6px #cf8208,0 4px #53390d;color:#17130a;text-shadow:1px 1px rgba(255,255,255,.32)}.store-featured-grid .coin-offer>button b{font-size:16px;line-height:1}.store-featured-grid .coin-offer>button small{font-size:7px;font-weight:1000;line-height:1}.store-featured-grid .coin-offer.value>button{border-color:#147383;background:linear-gradient(#61e9ee,#2cc0ce);box-shadow:inset 0 -6px #168f9c,0 4px #0b4c55}.store-featured-grid .coin-offer>button:disabled.store-preview-price{background:linear-gradient(#ffe25b,#f4af15);color:#17130a}.store-featured-grid .coin-offer.value>button:disabled.store-preview-price{background:linear-gradient(#61e9ee,#2cc0ce)}
.coin-mini-offer{border-width:3px;clip-path:polygon(7px 0,calc(100% - 7px) 0,100% 7px,100% calc(100% - 7px),calc(100% - 7px) 100%,7px 100%,0 calc(100% - 7px),0 7px)}.coin-mini-art{position:relative;border:3px solid #a66b08;background:linear-gradient(145deg,#fff184,#ffc62a 68%,#dc8d08);clip-path:polygon(6px 0,calc(100% - 6px) 0,100% 6px,100% calc(100% - 6px),calc(100% - 6px) 100%,6px 100%,0 calc(100% - 6px),0 6px);font-size:0;transform:rotate(-7deg)}.coin-mini-art:after{content:"";width:11px;height:9px;border:2px solid #bf7908;background:#ffdd49}.coin-mini-offer>button{display:grid;grid-template-rows:auto auto;place-items:center;gap:1px;border-width:2px;background:linear-gradient(#ffe25b,#edaa13);clip-path:polygon(5px 0,calc(100% - 5px) 0,100% 5px,100% calc(100% - 5px),calc(100% - 5px) 100%,5px 100%,0 calc(100% - 5px),0 5px);box-shadow:inset 0 -4px #cd8208,0 3px #68490e}.coin-mini-offer>button b{font-size:10px;line-height:1}.coin-mini-offer>button small{font-size:6px;font-weight:1000;line-height:1}
@media(max-height:520px){.store-featured-grid .coin-offer-badge{min-height:30px;font-size:8px}.store-featured-grid .coin-pile{height:60px;margin:-4px auto -7px;transform:scale(.7);transform-origin:50% 48%}.store-featured-grid .coin-offer-amount{font-size:19px}.store-featured-grid .coin-offer-detail{margin:3px 0;font-size:6px}.store-featured-grid .coin-offer>button{min-height:39px}.store-featured-grid .coin-offer>button b{font-size:12px}.store-featured-grid .coin-offer>button small{font-size:6px}.coin-mini-offer>button b{font-size:8px}.coin-mini-offer>button small{font-size:5px}}

/* V195 economy: permanent style ownership and useful coin actions */
.skin-card.locked{border-color:#806819;background:linear-gradient(#3b4245,#19282e);box-shadow:inset 0 0 0 2px rgba(255,212,64,.08)}.skin-card.locked canvas{filter:saturate(.7) brightness(.76) drop-shadow(3px 4px 0 rgba(0,0,0,.3))}.skin-card.locked.selected{border-color:#ffe05a;box-shadow:inset 0 0 0 2px #8c6a13,0 0 14px rgba(255,219,55,.24)}.skin-card.locked.selected:after{content:'PREVIEW';width:auto;height:auto;padding:3px 5px;border-radius:0;background:#ffe05a;color:#2d260d;font-size:6px;letter-spacing:.06em}.skin-card .skin-price{background:#315242;color:#a6efb9}.skin-card.locked .skin-price{background:#e2b72a;color:#211b08}.skin-card[data-tier="epic"].locked .skin-price{background:#8f66d8;color:#fff}.skin-card[data-tier="legendary"].locked .skin-price{background:#31b8d5;color:#052b33}.skin-current{min-height:14px;color:#d5e5ea}.skin-footer .play{min-width:210px}
.store-economy-actions{display:grid;grid-template-columns:minmax(190px,.8fr) minmax(0,1.25fr) minmax(0,.95fr);align-items:stretch;gap:8px;margin-top:10px}.store-spend-copy{display:flex;min-width:0;justify-content:center;flex-direction:column;gap:5px;padding:10px 12px;border:2px solid #5c747d;background:#18313b;color:#fff}.store-spend-copy small{color:#68d4ef;font-size:7px}.store-spend-copy b{font-size:11px;letter-spacing:.05em}.store-spend-copy span{color:#a9c0c8;font-size:7px}.store-style-shop,.store-daily-gift{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:67px;padding:8px;border:3px solid #9c720d;background:linear-gradient(145deg,#ffe05a,#eaae16);color:#201a09;text-align:left;box-shadow:inset 2px 2px rgba(255,255,255,.38),0 4px #6d5215;cursor:pointer}.store-style-shop>span,.store-daily-gift>span{display:grid;width:40px;height:40px;place-items:center;border:2px solid #273b44;background:#31505d;color:#ffe264;font-size:23px}.store-style-shop>div,.store-daily-gift>div{display:flex;min-width:0;flex-direction:column;gap:4px}.store-style-shop b,.store-daily-gift b{font-size:9px}.store-style-shop small,.store-daily-gift small{font-size:6px;line-height:1.35}.store-style-shop em,.store-daily-gift em{padding:7px;border:2px solid rgba(35,28,7,.45);background:rgba(255,255,255,.24);font-size:7px;font-style:normal;font-weight:1000;white-space:nowrap}.store-daily-gift{border-color:#4e7d5a;background:linear-gradient(145deg,#b9e59b,#6bab69);box-shadow:inset 2px 2px rgba(255,255,255,.34),0 4px #3f6849}.store-daily-gift:disabled{border-color:#656b68;background:linear-gradient(145deg,#bcc2be,#868d89);color:#404542;box-shadow:0 3px #5c615e;cursor:default}.store-daily-gift:disabled>span{background:#53645b;color:#d7e2dc}
@media(max-width:900px){.store-economy-actions{grid-template-columns:minmax(0,1.25fr) minmax(0,.95fr)}.store-spend-copy{display:none}}
@media(max-width:620px){.store-economy-actions{grid-template-columns:1fr}.store-style-shop,.store-daily-gift{min-height:59px}}
@media(max-height:520px){.store-economy-actions{grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:5px;margin-top:6px}.store-spend-copy{display:none}.store-style-shop,.store-daily-gift{grid-template-columns:31px minmax(0,1fr) auto;gap:5px;min-height:47px;padding:4px;border-width:2px;box-shadow:0 2px #6d5215}.store-style-shop>span,.store-daily-gift>span{width:29px;height:29px;font-size:16px}.store-style-shop b,.store-daily-gift b{font-size:7px}.store-style-shop small,.store-daily-gift small{font-size:5px}.store-style-shop em,.store-daily-gift em{padding:5px;font-size:6px}.skin-footer .play{min-width:185px}}

/* V195 Character Studio marketplace */
.emote-button{right:calc(240px + var(--safe-r));top:calc(14px + var(--safe-t));font-size:18px}.emote-button span{display:block;font-size:5px;font-weight:900}.touch .emote-button{right:calc(276px + var(--safe-r));width:40px;height:40px}.touch #game[data-mode="multiplayer"] .social-chat-button{right:calc(324px + var(--safe-r))}#game:not(.playing) #emote-button{display:none}
.studio-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin-bottom:9px;padding:4px;background:#10232a;border:1px solid #48626b}.studio-tabs button{min-width:0;padding:9px 5px;border:1px solid #4d6872;background:#203a43;color:#bcd0d7;font-size:8px;font-weight:1000;letter-spacing:.04em;cursor:pointer}.studio-tabs button.selected{border-color:#ffe263;background:#43532f;color:#ffe263;box-shadow:inset 0 -3px #d5b936}#studio-skins-view>p{margin:0 0 10px;color:#bad0d8;font-size:10px}
.cosmetic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:min(390px,49dvh);padding-right:5px;overflow:auto;overscroll-behavior:contain;touch-action:pan-y}.gear-section-title{grid-column:1/-1;padding:7px 9px 5px;border-bottom:2px solid #506b75;background:linear-gradient(90deg,#19343e,transparent);color:#ffe164;font-size:8px;font-weight:1000;letter-spacing:.12em}.cosmetic-card{position:relative;display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:78px;padding:9px;border:2px solid #4b6570;background:linear-gradient(135deg,#294851,#172d35);color:#fff;text-align:left;cursor:pointer}.cosmetic-card .cosmetic-icon{display:grid;place-items:center;width:50px;height:50px;border:2px solid #62808a;background:radial-gradient(circle at 40% 35%,#4a7887,#183039);color:#ffe069;font-size:25px;text-shadow:0 3px #26333a}.cosmetic-card>div{display:flex;min-width:0;flex-direction:column;gap:5px}.cosmetic-card b{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cosmetic-card small{color:#a9c0c8;font-size:7px}.cosmetic-card .cosmetic-price{align-self:start;padding:4px 6px;background:#315242;color:#b8f3c7;font-size:7px;font-style:normal;font-weight:1000}.cosmetic-card.locked{border-color:#806819;filter:saturate(.85)}.cosmetic-card.locked .cosmetic-price{background:#e0b529;color:#211b08}.cosmetic-card.selected{border-color:#ffe163;box-shadow:inset 0 0 0 2px rgba(255,225,99,.22),0 0 12px rgba(255,218,67,.16)}.cosmetic-card.equipped:after{content:'✓';position:absolute;right:7px;bottom:6px;color:#8df0aa;font-size:12px;font-weight:1000}.cosmetic-card[data-tier="epic"] .cosmetic-icon{background:radial-gradient(circle,#7665aa,#30284d)}.cosmetic-card[data-tier="legendary"] .cosmetic-icon{background:radial-gradient(circle,#aa7e21,#3f3011);animation:store-coin-glow 1.8s ease-in-out infinite}
html[data-profile-frame="frame-ocean"] .profile-emblem,html[data-profile-frame="frame-ocean"] .player-room-card{border-color:#55d5ed!important;box-shadow:inset 0 0 0 3px rgba(85,213,237,.18),0 0 18px rgba(58,182,220,.2)}html[data-profile-frame="frame-sunset"] .profile-emblem,html[data-profile-frame="frame-sunset"] .player-room-card{border-color:#ff805b!important;box-shadow:inset 0 0 0 3px rgba(255,128,91,.17),0 0 18px rgba(255,102,72,.18)}html[data-profile-frame="frame-gold"] .profile-emblem,html[data-profile-frame="frame-gold"] .player-room-card{border-color:#ffe05b!important;box-shadow:inset 0 0 0 3px rgba(255,224,91,.2),0 0 20px rgba(255,213,54,.3)}
@media(max-width:760px),(pointer:coarse){.studio-tabs{margin-bottom:5px}.studio-tabs button{padding:6px 3px;font-size:7px}.cosmetic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;max-height:43dvh}.cosmetic-card{grid-template-columns:42px minmax(0,1fr) auto;min-height:59px;gap:6px;padding:5px}.cosmetic-card .cosmetic-icon{width:39px;height:39px;font-size:20px}.cosmetic-card b{font-size:8px}.cosmetic-card small,.cosmetic-card .cosmetic-price{font-size:6px}#studio-skins-view>p{display:none}}
@media(max-height:520px){.touch .studio-tabs{margin-bottom:3px;padding:2px}.touch .studio-tabs button{padding:4px 2px;font-size:6px}.touch .cosmetic-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:176px}.touch .cosmetic-card{grid-template-columns:34px minmax(0,1fr) auto;min-height:48px;padding:3px}.touch .cosmetic-card .cosmetic-icon{width:31px;height:31px;font-size:16px}.touch .cosmetic-card small{display:none}.touch .cosmetic-card b{font-size:7px}}

/* V195: keep Character Studio actions reachable on short iPhone screens. */
.skin-panel:not(.hidden){display:flex;flex-direction:column}.skin-panel .skin-body{min-height:0;overflow:hidden}.skin-panel .skin-footer{flex:0 0 auto}
@media(max-height:520px){.touch .skin-panel{height:calc(100dvh - var(--safe-t) - var(--safe-b) - 8px);max-height:none}.touch .skin-panel .skin-body{display:flex;flex:1 1 auto;flex-direction:column}.touch .studio-tabs,.touch .skin-current{flex:0 0 auto}.touch .cosmetic-grid:not(.hidden){flex:1 1 auto;max-height:none;min-height:0}.touch .skin-footer .play{min-height:31px}}

/* V195 Character Studio live try-on stage */
.skin-panel{width:min(1040px,97vw)}.studio-workspace{display:grid;grid-template-columns:minmax(230px,31%) minmax(0,1fr);gap:10px;min-height:0}.studio-catalog{min-width:0;min-height:0}.studio-preview-stage{position:relative;min-height:410px;overflow:hidden;border:3px solid #58717b;background:radial-gradient(ellipse at 50% 77%,rgba(84,172,191,.3),transparent 32%),linear-gradient(160deg,#244752,#0c2028 68%);box-shadow:inset 0 0 0 2px rgba(190,228,237,.12),0 5px 0 rgba(3,12,16,.45);touch-action:none;user-select:none}.studio-preview-stage:before{content:"";position:absolute;z-index:0;left:13%;right:13%;bottom:9%;height:10%;border-radius:50%;background:rgba(0,0,0,.42);filter:blur(8px)}.studio-preview-heading{position:absolute;z-index:3;top:9px;left:10px;right:10px;display:flex;align-items:flex-start;justify-content:space-between;gap:8px;pointer-events:none}.studio-preview-heading b{color:#ffe164;font-size:9px}.studio-preview-heading span{max-width:58%;color:#b9d2da;font-size:6px;line-height:1.35;text-align:right}.studio-avatar-preview{position:absolute;z-index:1;inset:31px 0 44px}.studio-avatar-preview canvas{display:block;width:100%!important;height:100%!important;cursor:grab;image-rendering:pixelated;touch-action:none}.studio-avatar-preview canvas:active{cursor:grabbing}.studio-preview-card{position:absolute;z-index:3;left:8px;bottom:8px;display:flex;flex-direction:column;gap:2px;padding:5px 7px;border:2px solid #54717b;background:rgba(10,29,36,.88);pointer-events:none}.studio-preview-card span{color:#ffe164;font-size:7px;font-weight:1000}.studio-preview-card small{color:#a9c2ca;font-size:5px}.studio-preview-hint{position:absolute;z-index:3;right:8px;bottom:10px;color:#b9d2d9;font-size:6px;font-weight:900;pointer-events:none}.studio-preview-hint span{color:#ffe164;font-size:11px}.studio-preview-replay{position:absolute;z-index:4;right:9px;top:35px;padding:6px 8px;border:2px solid #7e681c;background:#e6bd31;color:#1e1a0b;font-size:7px;font-weight:1000;box-shadow:0 3px #705916;cursor:pointer;touch-action:manipulation}.studio-preview-stage[data-preview-frame="frame-ocean"]{border-color:#55d5ed;box-shadow:inset 0 0 0 4px rgba(85,213,237,.2),0 0 18px rgba(58,182,220,.26)}.studio-preview-stage[data-preview-frame="frame-sunset"]{border-color:#ff805b;box-shadow:inset 0 0 0 4px rgba(255,128,91,.2),0 0 18px rgba(255,102,72,.24)}.studio-preview-stage[data-preview-frame="frame-gold"]{border-color:#ffe05b;box-shadow:inset 0 0 0 4px rgba(255,224,91,.24),0 0 22px rgba(255,213,54,.36)}.studio-preview-stage[data-preview-frame="frame-gold"]:after{content:"◆";position:absolute;z-index:3;right:11px;bottom:30px;color:#ffe05b;font-size:18px;text-shadow:0 0 10px #ffc92f;animation:store-coin-glow 1.8s ease-in-out infinite}.studio-workspace .skin-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-height:min(350px,48dvh)}.studio-workspace .cosmetic-grid{max-height:min(410px,54dvh)}
@media(max-width:760px),(pointer:coarse){.skin-panel{width:calc(100vw - var(--safe-l) - var(--safe-r) - 10px)}.studio-workspace{grid-template-columns:minmax(170px,29%) minmax(0,1fr);gap:6px}.studio-preview-stage{min-height:315px}.studio-avatar-preview{inset:25px 0 36px}.studio-preview-heading{top:6px;left:7px;right:7px}.studio-preview-heading span{font-size:5px}.studio-preview-card{left:5px;bottom:5px;padding:4px}.studio-preview-hint{right:5px;bottom:7px}.studio-preview-replay{right:6px;top:27px;padding:5px;font-size:6px}.studio-workspace .skin-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-height:min(250px,43dvh)}.studio-workspace .cosmetic-grid{max-height:315px}}
@media(max-height:520px){.touch .studio-workspace{flex:1 1 auto;grid-template-columns:minmax(145px,25%) minmax(0,1fr);min-height:0}.touch .studio-catalog{display:flex;min-height:0;flex-direction:column}.touch .studio-preview-stage{align-self:stretch;min-height:0;height:auto}.touch .studio-avatar-preview{inset:22px 0 30px}.touch .studio-preview-card{padding:3px 4px}.touch .studio-preview-card small{display:none}.touch .studio-preview-hint{font-size:5px}.touch .studio-workspace #studio-skins-view{min-height:0;overflow:hidden}.touch .studio-workspace .skin-grid{grid-template-columns:repeat(5,minmax(0,1fr));max-height:100%}.touch .studio-workspace .cosmetic-grid:not(.hidden){max-height:none}.touch .skin-current{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
@media(max-width:620px) and (orientation:portrait){.studio-workspace{grid-template-columns:1fr}.studio-preview-stage{min-height:250px}.studio-avatar-preview{inset:24px 0 35px}.studio-workspace .skin-grid,.studio-workspace .cosmetic-grid{max-height:32dvh}}
@media(prefers-reduced-motion:reduce){.studio-preview-stage[data-preview-frame="frame-gold"]:after{animation:none}}

/* V223 companion talents and bond progression */
.cosmetic-grid[data-category="pet"]{max-height:190px}.pet-card-bond{color:#73dbea!important;font-size:6px!important;font-weight:1000;letter-spacing:.08em}.pet-bond-panel{margin-top:7px;padding:8px;border:2px solid #55717b;background:linear-gradient(135deg,#183945,#10272f);max-height:210px;overflow:auto;overscroll-behavior:contain}.pet-bond-panel header{display:flex;align-items:center;justify-content:space-between;margin:0 0 5px;padding:0;border:0}.pet-bond-panel header div{display:flex;flex-direction:column;gap:2px}.pet-bond-panel header small{color:#74d5e7;font-size:6px}.pet-bond-panel header b{color:#fff;font-size:10px}.pet-bond-panel header strong{padding:4px 7px;background:#d9b837;color:#182127;font-size:7px}.pet-bond-meter{height:7px;border:1px solid #69818a;background:#091b22}.pet-bond-meter i{display:block;height:100%;background:linear-gradient(90deg,#54c9dc,#ffe05e)}.pet-bond-panel>p{margin:4px 0 7px;color:#b8cbd1;font-size:6px}.pet-level-rewards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}.pet-level-reward{min-width:0;padding:5px 4px;border:1px solid #435c65;background:#172d35;opacity:.58}.pet-level-reward.unlocked{border-color:#b79a35;background:#37442c;opacity:1}.pet-level-reward em,.pet-level-reward b,.pet-level-reward small{display:block}.pet-level-reward em{color:#ffe16a;font-size:5px;font-style:normal}.pet-level-reward b{margin:2px 0;color:#fff;font-size:6px}.pet-level-reward small{color:#9eb5bd;font-size:5px;line-height:1.25}.pet-daily-goals{display:grid;grid-template-columns:auto repeat(3,minmax(0,1fr));gap:3px;align-items:stretch;margin-top:6px}.pet-daily-goals h4{margin:0;padding:6px;color:#ffe16a;font-size:6px;writing-mode:vertical-rl;text-orientation:mixed}.pet-daily-goal{display:grid;grid-template-columns:auto 1fr;gap:2px 4px;padding:4px;border:1px solid #435d66;background:#112a32}.pet-daily-goal>span{grid-row:1/3;color:#6fd8e8}.pet-daily-goal b{font-size:5px}.pet-daily-goal small{color:#9eb5bd;font-size:5px}.pet-daily-goal.complete{border-color:#4d9d69}.pet-daily-goal.complete>span{color:#7be09c}.pet-name-tools{display:flex;gap:4px;margin-top:6px}.pet-name-tools input{min-width:0;flex:1;padding:6px;border:1px solid #63808b;background:#0d2229;color:#fff;font:700 7px monospace;text-transform:uppercase}.pet-name-tools button{padding:6px 8px;border:1px solid #d5b63b;background:#d5b63b;color:#182027;font-size:6px;font-weight:1000}.pet-name-tools button+button{background:#2b5865;color:#fff;border-color:#6b9aa8}
.pet-talent{display:grid;grid-template-columns:25px minmax(0,1fr);align-items:center;gap:6px;margin:5px 0;padding:5px;border:1px solid #a18b37;background:#3b361e}.pet-talent>span{display:grid;width:24px;height:24px;place-items:center;background:#d2b434;color:#17242a}.pet-talent>div{display:flex;min-width:0;flex-direction:column;gap:2px}.pet-talent b{color:#ffe26a;font-size:6px}.pet-talent small{color:#e2d9ae;font-size:5px}
@media(max-width:760px),(pointer:coarse){.cosmetic-grid[data-category="pet"]{grid-template-columns:repeat(3,minmax(0,1fr));max-height:130px}.pet-bond-panel{max-height:160px;margin-top:4px;padding:5px}.pet-level-reward small{display:none}.pet-level-reward{padding:4px 3px}.pet-daily-goals{margin-top:4px}.pet-name-tools{margin-top:4px}}
@media(max-height:520px){.touch .studio-workspace .cosmetic-grid[data-category="pet"]{flex:0 0 112px;max-height:112px}.touch .pet-bond-panel{flex:1 1 auto;min-height:0;max-height:none}.touch .pet-level-reward small{display:none}.touch .pet-bond-panel>p{margin-bottom:4px}}

/* V201 in-game friend actions for verified real players */
.social-player .social-friend-action{border-color:#5fbf83;background:#285c41;color:#d8ffe5;white-space:nowrap}.social-player .social-friend-action:disabled{border-color:#66777e;background:#37484e;color:#aab9be;cursor:default;opacity:.82}.social-player.real-player small{color:#78d8ee}.social-player>div:last-child{flex-wrap:wrap;justify-content:flex-end}
.social-player .social-remove-player{border-color:#ff977d;background:#70382f;color:#fff;white-space:nowrap}

/* Keep progress/reward and chat readable together on multiplayer HUDs. */
#game:has(.guide-hud:not(.hidden)):has(.multiplayer-hud:not(.hidden)) .multiplayer-hud{top:calc(151px + var(--safe-t))}
.touch #game:has(.guide-hud:not(.hidden)):has(.multiplayer-hud:not(.hidden)) .guide-hud{top:calc(66px + var(--safe-t));width:min(205px,38vw);padding:6px 8px}
.touch #game:has(.guide-hud:not(.hidden)):has(.multiplayer-hud:not(.hidden)) .multiplayer-hud{top:calc(126px + var(--safe-t));width:min(285px,43vw)}
@media(max-height:520px){
 .touch #game:has(.guide-hud:not(.hidden)):has(.multiplayer-hud:not(.hidden)) .guide-hud{top:calc(58px + var(--safe-t));width:min(190px,37vw)}
 .touch #game:has(.guide-hud:not(.hidden)):has(.multiplayer-hud:not(.hidden)) .multiplayer-hud{top:calc(111px + var(--safe-t));max-height:118px;overflow:hidden}
}

/* Keep shared carry/horse actions out of the play view and above the movement pad. */
.shared-carry-button{
 left:auto;right:calc(76px + var(--safe-r));top:auto;bottom:calc(166px + var(--safe-b));
 width:158px;min-width:0;grid-template-columns:30px minmax(0,1fr);padding:6px 8px;transform:none
}
.shared-carry-button>span{width:28px;height:28px;font-size:16px}
.shared-carry-button b,.shared-carry-button small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.touch .shared-carry-button{
 left:calc(18px + var(--safe-l));right:auto;top:auto;bottom:calc(182px + var(--safe-b));
 width:156px;min-width:0;transform:none
}
@media(max-width:760px),(pointer:coarse){
 .shared-carry-button{
  left:calc(18px + var(--safe-l));right:auto;top:auto;bottom:calc(182px + var(--safe-b));
  width:156px;min-width:0;transform:none
 }
}
@media(max-height:520px) and (pointer:coarse){
 .shared-carry-button{
  left:calc(8px + var(--safe-l));bottom:calc(140px + var(--safe-b));width:142px;
  grid-template-columns:27px minmax(0,1fr);padding:5px 7px
 }
 .shared-carry-button>span{width:25px;height:25px;font-size:14px}
}
@media(pointer:coarse) and (orientation:portrait){
 .shared-carry-button{left:calc(12px + var(--safe-l));bottom:calc(214px + var(--safe-b));width:148px}
}
@media(max-width:760px),(pointer:coarse){.social-player .social-friend-action{max-width:86px;padding-inline:5px;font-size:5px}}

/* V215 PDF review fixes */
.slot,.icon-button{padding:0;-webkit-appearance:none;appearance:none}
.icon-button{display:grid;place-items:center;line-height:1}
.icon-button>svg{align-self:center;justify-self:center;margin:0!important}
.emote-button{align-content:center;justify-content:center;line-height:1}
.emote-button span{line-height:1;margin-top:2px}
.profile-avatar-preview{width:100%;min-height:165px;flex:1 1 auto;overflow:hidden;touch-action:none}
.profile-avatar-preview canvas{display:block;width:100%!important;height:100%!important;image-rendering:pixelated}
.store-panel{position:fixed}
.store-purchase-busy{position:absolute;z-index:30;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:13px;padding:24px;background:rgba(5,17,23,.9);color:#fff;text-align:center;backdrop-filter:blur(4px)}
.store-purchase-busy.hidden{display:none}
.store-purchase-busy b{color:#ffe064;font-size:clamp(15px,2.2vw,25px);letter-spacing:.06em}
.store-purchase-busy small{color:#c5dbe2;font-size:9px}
.native-action-busy{position:fixed;z-index:260;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:13px;padding:24px;background:rgba(5,17,23,.9);color:#fff;text-align:center;backdrop-filter:blur(5px)}
.native-action-busy.hidden{display:none}.native-action-busy b{color:#ffe064;font-size:clamp(15px,2.2vw,25px);letter-spacing:.06em}.native-action-busy small{max-width:34rem;color:#c5dbe2;font-size:clamp(9px,1.1vw,12px);line-height:1.45}
.store-purchase-spinner{position:relative;display:block;width:64px;height:64px;animation:store-purchase-spin 1.05s linear infinite}
.store-purchase-spinner i{position:absolute;left:23px;top:23px;display:block;width:18px;height:18px;border:3px solid #936f12;background:#ffe05b;box-shadow:3px 3px #513e13;transform:rotate(45deg)}
.store-purchase-spinner i:nth-child(2){transform:translate(24px,0) rotate(45deg) scale(.72)}
.store-purchase-spinner i:nth-child(3){transform:translate(0,24px) rotate(45deg) scale(.72)}
@keyframes store-purchase-spin{to{transform:rotate(360deg)}}
@media(max-height:520px){
 .profile-avatar-preview{min-height:92px}
 .touch .studio-catalog{overflow:hidden}
 .touch .studio-workspace .cosmetic-grid:not(.hidden){height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-padding-bottom:16px;padding-bottom:16px;-webkit-overflow-scrolling:touch;touch-action:pan-y;align-content:start}
 .touch .studio-workspace .cosmetic-grid[data-category="pet"]{grid-auto-rows:minmax(46px,auto)}
}

/* V6 island economy */
.store-decorations{margin:18px 0;border:3px solid #4e6670;background:linear-gradient(145deg,#102b35,#173b43);box-shadow:0 6px 0 #081418;padding:14px;color:#f6fbfc}.store-decorations>header,.journal-collection>header,.journal-achievements>header{display:flex;align-items:end;justify-content:space-between;gap:12px;border-bottom:2px solid #55717b;padding-bottom:10px}.store-decorations header div,.journal-collection header div,.journal-achievements header div{display:grid;gap:3px}.store-decorations header small,.journal-collection header small,.journal-achievements header small{color:#75d8ed;letter-spacing:2px}.store-decorations header b,.journal-collection header b,.journal-achievements header b{font-size:clamp(17px,2.1vw,26px)}.store-decor-daily{display:flex;gap:12px;align-items:center;margin:12px 0;padding:9px 12px;background:#6b5514;border:2px solid #f4d24d}.store-decor-daily b{color:#ffe16c}.store-decor-daily span{font-size:11px;color:#fff5bf}.store-decoration-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.store-decoration-card{min-height:142px;border:2px solid #53717b;background:#17323a;padding:10px;display:grid;grid-template-columns:48px 1fr;gap:10px;align-items:start}.store-decoration-card>i{font-style:normal;display:grid;place-items:center;width:46px;height:46px;background:#0b2028;border:2px solid #6f8d97;color:#ffe05c;font-size:25px}.store-decoration-card>div{display:grid;gap:4px}.store-decoration-card small{font-size:9px;color:#9fc2cd;letter-spacing:1px}.store-decoration-card>div>b{font-size:14px}.store-decoration-card span{font-size:10px;color:#b9d0d6;line-height:1.35}.store-decoration-card>button{grid-column:1/-1;min-height:44px;border:2px solid #f9dd68;background:#f4ca38;color:#182126;font:inherit;padding:6px}.store-decoration-card>button small{display:block;color:#65500d}.store-decoration-card.daily{border-color:#f2d44f;box-shadow:inset 0 0 20px #f4ca3824}.store-decoration-card.owned>button{background:#3e9666;color:#fff;border-color:#8ee6ab}.store-decoration-card.legendary>i{box-shadow:0 0 16px #ffd94588}.collection-progress{display:grid;gap:8px;margin:14px 0}.collection-progress>span,.achievement-grid article div>span{height:9px;background:#0b1d23;border:1px solid #55717b}.collection-progress em,.achievement-grid article div>span em{display:block;height:100%;background:linear-gradient(90deg,#49c7dc,#f2d348)}.collection-progress small{color:#a9c6ce}.collection-milestones{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.collection-milestones button{min-height:55px;border:2px solid #546c74;background:#142c34;color:#91aab2;font:inherit;display:grid;gap:3px}.collection-milestones button.ready{border-color:#f3d34d;background:#604f18;color:#fff}.collection-milestones button.claimed{border-color:#4a8e69;background:#183b2d;color:#8edcab}.achievement-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.achievement-grid article{display:grid;grid-template-columns:42px 1fr auto;gap:9px;align-items:center;border:2px solid #4f6972;background:#132a32;padding:9px}.achievement-grid article>i{font-style:normal;font-size:22px;color:#f4d44f}.achievement-grid article>div{display:grid;gap:3px}.achievement-grid article small{color:#a9c0c7}.achievement-grid article strong{font-size:9px}.achievement-grid article button{min-width:78px;min-height:42px;border:2px solid #607780;background:#203c45;color:#9db0b6;font:inherit}.achievement-grid article.ready button{background:#f1cc3d;color:#172125;border-color:#ffe36f}.achievement-grid article.claimed{opacity:.68}
@media(max-width:900px){.store-decoration-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.achievement-grid{grid-template-columns:1fr}.collection-milestones{grid-template-columns:repeat(3,1fr)}}
@media(max-width:560px){.store-decoration-grid{grid-template-columns:1fr}.store-decoration-card{min-height:0}.collection-milestones{grid-template-columns:repeat(2,1fr)}.store-decorations>header,.journal-collection>header,.journal-achievements>header{align-items:start;flex-direction:column}.store-decor-daily{align-items:start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.store-purchase-spinner{animation:none}}

/* V219 correction pass: clearer mode type, compact pause HUD and character pause card. */
.mode-copy b{font-size:clamp(16px,1.65vw,24px)}
.mode-copy small{font-size:10px}
#save-menu-button{right:calc(16px + var(--safe-r));top:calc(14px + var(--safe-t));display:grid;place-items:center;align-content:center;gap:2px}
#save-menu-button svg{fill:currentColor;stroke:none}
#save-menu-button span,#camera-button span{display:block;font-size:5px;font-weight:1000;line-height:1}
#fullscreen-button{right:calc(68px + var(--safe-r))}
#camera-button{right:calc(18px + var(--safe-r));top:42%;display:grid;place-items:center;align-content:center;gap:2px;width:48px;height:48px}
#camera-button svg{width:25px;height:25px;stroke-width:2.15}
.emote-button{right:calc(18px + var(--safe-r));top:calc(42% + 56px);width:48px;height:48px}
.touch #save-menu-button{right:calc(14px + var(--safe-r));width:40px;height:40px}.touch #fullscreen-button{right:calc(62px + var(--safe-r))}.touch #camera-button{right:calc(14px + var(--safe-r));top:36%;width:44px;height:44px}.touch .emote-button{right:calc(14px + var(--safe-r));top:calc(36% + 50px);width:44px;height:44px}
/* Keep parkour camera/emote controls beside the race HUD instead of beneath it. */
#game[data-mode="parkour"] #camera-button{right:calc(min(245px,38vw) + 28px + var(--safe-r));top:calc(82px + var(--safe-t))}
#game[data-mode="parkour"] .emote-button{right:calc(min(245px,38vw) + 28px + var(--safe-r));top:calc(138px + var(--safe-t))}
.touch #game[data-mode="parkour"] .parkour-hud{top:calc(58px + var(--safe-t));right:calc(7px + var(--safe-r));width:min(205px,34vw)}
.touch #game[data-mode="parkour"] #camera-button{right:calc(min(205px,34vw) + 16px + var(--safe-r));top:calc(58px + var(--safe-t))}
.touch #game[data-mode="parkour"] .emote-button{right:calc(min(205px,34vw) + 16px + var(--safe-r));top:calc(108px + var(--safe-t))}
@media(max-height:520px){.touch #game[data-mode="parkour"] #sprint-button{right:calc(100px + var(--safe-r));bottom:calc(18px + var(--safe-b))}.touch #game[data-mode="parkour"] #jump-button{right:calc(18px + var(--safe-r));bottom:calc(16px + var(--safe-b))}}
.pause-panel.home-view .save-footer{display:none}
.pause-panel.home-view .pause-layout{flex:1}
.pause-panel .pause-layout{grid-template-columns:minmax(220px,.72fr) minmax(300px,1.28fr)}
.pause-panel .pause-actions{grid-template-rows:repeat(5,minmax(50px,1fr));align-content:stretch}
.pause-action.shared-world{border-color:#4d94a8;background:#183f4d}.pause-action.shared-world>span{background:#276177;color:#9eeaff}.pause-action.shared-world.live{border-color:#75d99a;background:#24543a}.pause-action.shared-world.live>span{background:#34734d;color:#d8ffe3}
.pause-panel .pause-action{min-height:0}
.pause-character-card{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;align-items:stretch;justify-content:stretch;padding:10px;background:linear-gradient(145deg,#284d5c,#102832 68%,#0a1c23);text-align:left}
.pause-character-card:after{display:none}
.pause-character-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 5px 7px;border-bottom:1px solid #58727c}.pause-character-heading b{color:#ffe26a;font-size:11px}.pause-character-heading small{padding:4px 7px;background:#17343f;color:#9fe4ff;font-size:7px}
.pause-avatar-preview{position:relative;min-height:180px;background:radial-gradient(ellipse at 50% 78%,rgba(116,205,219,.24),transparent 45%);overflow:hidden}.pause-avatar-preview canvas{display:block;width:100%;height:100%}
.pause-character-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px;color:#b9d0d8}.pause-character-meta span{font-size:8px}.pause-character-meta small{color:#ffe28a;font-size:7px}
.pause-character-card>button{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:3px 9px;min-height:48px;padding:7px 10px;border:2px solid #c7a743;background:#4c4023;color:#fff;text-align:left;box-shadow:inset 2px 2px rgba(255,255,255,.13),0 3px rgba(0,0,0,.4);cursor:pointer}.pause-character-card>button>b{font-size:10px}.pause-character-card>button>span{grid-column:2;color:#d5cda8;font-size:6px}
@media(max-width:760px),(pointer:coarse){.mode-copy b{font-size:13px}.mode-copy small{font-size:8px}.pause-panel .pause-layout{grid-template-columns:minmax(175px,.7fr) minmax(210px,1.3fr)}.pause-panel .pause-actions{grid-template-rows:repeat(5,minmax(40px,1fr))}.pause-avatar-preview{min-height:120px}.pause-character-card>button{min-height:40px}}
@media(max-height:520px){.mode-copy b{font-size:13px}.mode-copy small{font-size:8px}.pause-panel .pause-layout{grid-template-columns:minmax(170px,.68fr) minmax(230px,1.32fr)}.pause-panel .pause-actions{grid-template-columns:1fr;grid-template-rows:repeat(5,minmax(34px,1fr))}.pause-panel .pause-action{grid-template-columns:32px minmax(0,1fr);gap:7px;padding:4px 7px}.pause-panel .pause-action>span{width:30px;height:30px;font-size:16px}.pause-panel .pause-action b{font-size:8px}.pause-panel .pause-action small{font-size:6px}.pause-avatar-preview{min-height:90px}.pause-character-heading{padding-bottom:4px}.pause-character-card>button{min-height:35px;padding:4px 7px}}

/* V224 daily offers, companion quests and weekly treasure reveal */
.store-daily-deals{margin:18px 0;padding:14px;border:3px solid #c79a24;background:radial-gradient(circle at 85% 0,rgba(255,218,75,.2),transparent 35%),linear-gradient(145deg,#4d3d13,#172f36 62%);color:#fff;box-shadow:0 6px 0 #171308}.store-daily-deals>header{display:flex;align-items:end;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:2px solid #8c762f}.store-daily-deals header div{display:grid;gap:3px}.store-daily-deals header small{color:#ffe16a;font-size:8px;letter-spacing:.16em}.store-daily-deals header b{font-size:clamp(17px,2.1vw,26px)}.store-daily-deals header>span{padding:6px 9px;border:2px solid #ffe36d;background:#d1462d;color:#fff;font-size:9px;font-weight:1000;box-shadow:0 3px #722417}.store-deal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:11px}.store-deal-card{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:78px;padding:9px;border:2px solid #b99938;background:linear-gradient(145deg,#243f47,#10242b);color:#fff;text-align:left;cursor:pointer}.store-deal-card>i{display:grid;width:48px;height:48px;place-items:center;border:2px solid #f2d458;background:radial-gradient(circle,#936f1b,#2c291c);color:#ffe263;font-size:24px;font-style:normal}.store-deal-card>div{display:grid;gap:4px;min-width:0}.store-deal-card b{overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.store-deal-card small{color:#a9c5cd;font-size:6px}.store-deal-card>span{display:grid;gap:3px;text-align:right}.store-deal-card s{color:#9fa8aa;font-size:7px}.store-deal-card strong{color:#ffe15b;font-size:10px}.store-deal-card.owned{border-color:#4d9b69;background:#1a3f31}.store-deal-card.owned>span{color:#8ee4aa;font-size:8px;font-weight:1000}.cosmetic-card.daily-deal{border-color:#f3cf42;box-shadow:inset 0 0 0 2px rgba(255,218,70,.18)}.cosmetic-card.daily-deal .cosmetic-price{background:#d34a2e;color:#fff}
.journal-pet-care{grid-column:1/-1;padding-bottom:9px}.journal-pet-care>p{margin:0;padding:12px;color:#53666c;font-size:8px}.pet-care-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:9px}.pet-care-step{display:grid;grid-template-columns:29px minmax(0,1fr);align-items:center;gap:7px;padding:7px;border:2px solid #85969a;background:#fff}.pet-care-step>i{display:grid;width:27px;height:27px;place-items:center;background:#274852;color:#77d9eb;font-style:normal}.pet-care-step>span{display:grid;gap:3px}.pet-care-step b{font-size:7px}.pet-care-step small{color:#65757a;font-size:6px}.pet-care-step.complete{border-color:#58a86f;background:#eaf8ed}.pet-care-step.complete>i{background:#397f4e;color:#fff}.journal-pet-care>button{display:block;margin:0 auto;padding:8px 12px;border:2px solid #435b63;background:#2c4b56;color:#fff;font-size:7px;font-weight:1000}.journal-pet-care.ready>button{border-color:#9c7416;background:#f3c83c;color:#261f0d;box-shadow:0 3px #846117}.journal-pet-care>button:disabled{opacity:.58;box-shadow:none}
.weekly-reveal-overlay{position:fixed;z-index:160;inset:0;display:grid;place-items:center;padding:20px;background:rgba(2,10,14,.84);opacity:0;transition:opacity .2s ease}.weekly-reveal-overlay.show{opacity:1}.weekly-reveal-panel{position:relative;display:grid;width:min(460px,92vw);justify-items:center;gap:9px;overflow:hidden;padding:30px 24px 22px;border:4px solid #f1cb43;background:radial-gradient(circle at 50% 35%,#725a18,#173641 68%);color:#fff;text-align:center;box-shadow:0 12px 0 #3c2c08,0 0 40px rgba(255,217,64,.42);transform:scale(.8);animation:weekly-panel-in .45s cubic-bezier(.2,1.4,.3,1) forwards}.weekly-reveal-rays{position:absolute;inset:-60%;background:repeating-conic-gradient(from 0deg,rgba(255,231,119,.18) 0 8deg,transparent 8deg 22deg);animation:weekly-rays 8s linear infinite}.weekly-reveal-chest{position:relative;width:150px;height:108px;border:6px solid #5a3b0a;border-radius:8px;background:linear-gradient(#efb930 0 43%,#925815 43%);box-shadow:inset 0 0 0 5px #ffe172,0 8px #301d06;animation:weekly-chest-open .65s .12s both}.weekly-reveal-chest:before{content:"";position:absolute;left:57px;top:38px;width:26px;height:34px;border:4px solid #604207;background:#ffe36b}.weekly-reveal-chest b{position:absolute;left:64px;top:45px;color:#76510b;font-size:20px}.weekly-reveal-panel small,.weekly-reveal-panel h3,.weekly-reveal-panel p,.weekly-reveal-panel button{position:relative}.weekly-reveal-panel small{color:#7fe2f2;font-size:8px}.weekly-reveal-panel h3{margin:0;color:#ffe360;font-size:28px;text-shadow:3px 3px #684b09}.weekly-reveal-panel p{margin:0;color:#d2e2e6;font-size:8px}.weekly-reveal-panel p strong{color:#ffe47a}.weekly-reveal-panel button{min-width:190px;margin-top:4px;padding:11px;border:3px solid #fff0a1;background:#f1c83e;color:#251f0b;font:1000 10px monospace;box-shadow:0 4px #7f6012}@keyframes weekly-panel-in{to{transform:scale(1)}}@keyframes weekly-rays{to{transform:rotate(360deg)}}@keyframes weekly-chest-open{0%{transform:scale(.75) rotate(-4deg)}55%{transform:scale(1.12) rotate(3deg)}100%{transform:scale(1)}}
.collection-milestones button small{font-size:5px;color:#a9c1c8}.collection-milestones button.ready small{color:#ffe88b}
@media(max-width:760px){.store-deal-grid{grid-template-columns:1fr}.store-deal-card{min-height:58px;grid-template-columns:42px minmax(0,1fr) auto;padding:6px}.store-deal-card>i{width:38px;height:38px;font-size:19px}.pet-care-steps{gap:4px}.pet-care-step{grid-template-columns:22px minmax(0,1fr);gap:4px;padding:4px}.pet-care-step>i{width:20px;height:20px}}
@media(max-height:520px){.store-daily-deals{margin:8px 0;padding:8px}.store-daily-deals>header{padding-bottom:6px}.store-deal-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:6px}.store-deal-card{grid-template-columns:32px minmax(0,1fr) auto;min-height:45px;padding:4px}.store-deal-card>i{width:29px;height:29px;font-size:15px}.store-deal-card small{display:none}.weekly-reveal-panel{width:min(390px,80vw);padding:16px}.weekly-reveal-chest{transform:scale(.72);margin:-12px 0}.weekly-reveal-panel h3{font-size:21px}.pet-care-steps{padding:5px}.journal-pet-care{padding-bottom:5px}}
@media(prefers-reduced-motion:reduce){.weekly-reveal-overlay{transition:none}.weekly-reveal-panel,.weekly-reveal-rays,.weekly-reveal-chest{animation:none}}

/* V227 responsive menu audit: readable touch targets and unobstructed pet catalog. */
#social-close,#social-trade-close,#inventory-close,#furnace-close,#mount-inventory-close,#trade-close,#profile-close,#friends-close,#server-browser-close,#server-create-close,#save-close,#store-close,#journal-close,#settings-close,#skin-close{
 display:grid!important;place-items:center!important;flex:0 0 44px!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;border:2px solid #91a8b1!important;background:#233e48!important;color:#fff!important;font-size:28px!important;line-height:1!important;box-shadow:inset 1px 1px rgba(255,255,255,.12),0 3px 0 rgba(0,0,0,.3)!important;cursor:pointer
}
.journal-header-actions{flex-direction:row!important}
.menu-back{min-height:34px;padding:7px 10px;font-size:9px}
.studio-tabs button{min-height:36px;font-size:9px}

/* Character Studio: every card surface must hand vertical drags to its catalog. */
.touch .studio-catalog .cosmetic-grid .cosmetic-card,.touch .studio-catalog .skin-grid .skin-card{
 touch-action:pan-y;
 -webkit-user-select:none;
 user-select:none
}
.touch .studio-catalog .cosmetic-grid .cosmetic-card>*,.touch .studio-catalog .skin-grid .skin-card>*{
 pointer-events:none
}
.touch .studio-catalog .cosmetic-grid,.touch .studio-catalog .skin-grid{
 overflow-y:scroll;
 -webkit-overflow-scrolling:touch;
 touch-action:pan-y;
 scroll-behavior:auto
}

@media (orientation:landscape){
 .touch .studio-catalog[data-active-category="pet"]{display:grid;grid-template-columns:minmax(300px,1.55fr) minmax(190px,.9fr);grid-template-rows:minmax(0,1fr);gap:6px;height:100%;min-height:0;overflow:hidden}
 .touch .studio-catalog[data-active-category="pet"] .cosmetic-grid[data-category="pet"]{grid-column:1;grid-row:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(58px,auto);align-content:start;width:100%;height:100%;min-height:0;max-height:none!important;padding:0 6px 16px 0;overflow-y:auto;overscroll-behavior:contain;scroll-padding-bottom:16px;-webkit-overflow-scrolling:touch;touch-action:pan-y}
 .touch .studio-catalog[data-active-category="pet"] .pet-bond-panel{grid-column:2;grid-row:1;height:100%;min-height:0;max-height:none;margin:0;padding:7px;overflow-y:auto;-webkit-overflow-scrolling:touch}
 .touch .studio-catalog[data-active-category="pet"] .pet-level-rewards{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
 .touch .studio-catalog[data-active-category="pet"] .pet-level-reward{padding:5px}
 .touch .studio-catalog[data-active-category="pet"] .pet-level-reward em{font-size:6px}
 .touch .studio-catalog[data-active-category="pet"] .pet-level-reward b{font-size:7px}
 .touch .studio-catalog[data-active-category="pet"] .pet-level-reward small{display:block;font-size:6px}
 .touch .studio-catalog[data-active-category="pet"] .pet-daily-goals{grid-template-columns:1fr;margin-top:6px}
 .touch .studio-catalog[data-active-category="pet"] .pet-daily-goals h4{padding:4px;writing-mode:horizontal-tb;font-size:7px}
 .touch .studio-catalog[data-active-category="pet"] .pet-daily-goal{padding:5px}
 .touch .studio-catalog[data-active-category="pet"] .pet-daily-goal b{font-size:7px}
 .touch .studio-catalog[data-active-category="pet"] .pet-daily-goal small{font-size:6px}
 .touch .studio-catalog[data-active-category="pet"] .pet-bond-panel header small,.touch .studio-catalog[data-active-category="pet"] .pet-talent b,.touch .studio-catalog[data-active-category="pet"] .pet-bond-panel>p{font-size:7px}
 .touch .studio-catalog[data-active-category="pet"] .pet-bond-panel header b{font-size:10px}
 .touch .studio-catalog[data-active-category="pet"] .pet-talent small{font-size:6px;line-height:1.35}
 .touch .studio-catalog[data-active-category="pet"] .pet-name-tools input,.touch .studio-catalog[data-active-category="pet"] .pet-name-tools button{min-height:34px;font-size:7px}
}

@media (pointer:coarse){
 .studio-tabs button{min-height:36px;padding:7px 3px;font-size:8px}
 .cosmetic-card b{font-size:9px}.cosmetic-card small,.cosmetic-card .cosmetic-price,.pet-card-bond{font-size:7px!important}
 .journal-card>header small,.journal-card>header>span,.journal-tutorial-step>strong,.journal-weekly small,.journal-weekly p,.journal-weekly div>strong{font-size:8px}
 .journal-tutorial-step small,.journal-mission-grid small,.journal-mission-grid strong{font-size:7px}
 .journal-tutorial>footer button,.journal-login>button,.journal-mission-grid button,.journal-weekly>button{min-height:36px;font-size:8px}
 .journal-streak small,.journal-streak span,.collection-milestones button small{font-size:7px}
 .store-product>button,.store-skin-card>button,.store-deal-card>button{min-height:38px;font-size:8px}
}

@media (orientation:landscape) and (min-width:700px) and (min-height:521px){
 .touch .studio-catalog[data-active-category="pet"]{height:410px}
 .touch .studio-catalog[data-active-category="pet"] .cosmetic-grid[data-category="pet"],.touch .studio-catalog[data-active-category="pet"] .pet-bond-panel{height:410px}
}

@media (orientation:portrait) and (min-width:700px){
 .touch .studio-catalog[data-active-category="pet"]{display:flex;height:410px;min-height:0;flex-direction:column;overflow:hidden}
 .touch .studio-catalog[data-active-category="pet"] .cosmetic-grid[data-category="pet"]{display:grid;flex:0 0 232px;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(58px,auto);align-content:start;width:100%;height:232px;min-height:0;max-height:232px!important;padding:0 6px 12px 0;overflow-y:auto;overscroll-behavior:contain;scroll-padding-bottom:12px;-webkit-overflow-scrolling:touch;touch-action:pan-y}
 .touch .studio-catalog[data-active-category="pet"] .pet-bond-panel{flex:1 1 auto;height:auto;min-height:0;max-height:none;margin-top:6px;padding:6px;overflow-y:auto;-webkit-overflow-scrolling:touch}
}

@media (orientation:landscape) and (max-height:520px){
 .touch .main-action-card small{font-size:8px}.touch .menu-tile b{font-size:9px}.touch .menu-tile small{font-size:7px}
 .touch .studio-tabs button{min-height:32px;padding:6px 2px;font-size:8px}
 .touch .cosmetic-card b{font-size:8px}
 .touch .settings-panel header button{font-size:28px}
 .touch .quality-options button span,.touch .settings-volume>small,.touch .touch-control-options button span,.touch .settings-controls-heading>small{font-size:8px}
 .touch .settings-footer .menu-secondary{min-height:40px;font-size:9px}
 .touch .friends-panel>header button,.touch .friends-account-card>button,.touch .friends-panel>footer button{min-height:40px}
 .touch .friends-tabs button{min-height:40px;font-size:8px}
 .touch .store-product>button,.touch .store-skin-card>button{min-height:36px;font-size:8px}
 .touch .store-footer button{min-height:40px;font-size:8px}
}

.touch .profile-stats small,.touch .friends-panel>header small,.touch .friends-account-card small{font-size:8px}
.touch .pet-card-bond{font-size:7px!important}
.touch .journal-card>header small,.touch .journal-card>header>span,.touch .journal-tutorial-step>strong,.touch .journal-weekly small,.touch .journal-weekly p,.touch .journal-weekly div>strong{font-size:8px}
.touch .journal-tutorial-step small,.touch .journal-mission-grid small,.touch .journal-mission-grid strong{font-size:7px}
.touch .journal-tutorial>footer button,.touch .journal-login>button,.touch .journal-mission-grid button,.touch .journal-weekly>button{min-height:34px;font-size:8px}
.touch .journal-streak small,.touch .journal-streak span,.touch .collection-milestones button small{font-size:7px}
.touch .coin-mini-offer>button{min-width:72px;min-height:38px;padding:5px;font-size:8px}
.touch .coin-mini-offer>button small{font-size:6px}
#game:has(.panel:not(.hidden)) .guide-hud{display:none!important}

/* V296 multiplayer phone layout and immediate social prompts */
.server-create-panel{display:flex;flex-direction:column}
.server-create-body{flex:1;min-height:0}
.server-create-panel>footer{flex:0 0 auto}
.server-list-title #server-create-open{min-height:36px;padding:8px 12px;border-color:#1d5d2b;background:linear-gradient(#3ab653,#23843a);color:#fff6a7;box-shadow:inset 2px 2px rgba(255,255,255,.24),0 4px #174d25;text-shadow:1px 2px #164521}
.server-list-title #server-create-open:active{transform:translateY(2px);box-shadow:inset 2px 2px rgba(255,255,255,.18),0 2px #174d25}
.server-create-panel>footer #server-create-submit{border-color:#1d5d2b;background:linear-gradient(#42bd58,#23853a);color:#fff7a1;box-shadow:0 4px #174d25}
.friend-request-panel{z-index:57;border-color:#6fdcff;background:linear-gradient(135deg,#17475a,#0a2632)}
#friend-request-overlay{z-index:56}
.friend-request-panel .room-invite-icon{border-color:#a8ecff;background:#28748d}

/* Social V3: friend requests are non-modal. Gameplay remains visible and the
   touch/mouse controls are never paused while this compact card is present. */
#friend-request-overlay{display:none!important}
.friend-request-panel{position:absolute;transform:none;z-index:57;inset:14px 14px auto auto;display:grid;width:min(440px,calc(100vw - 28px));grid-template-columns:48px minmax(0,1fr) auto;gap:10px;padding:10px;border-width:3px;box-shadow:0 7px 0 rgba(0,0,0,.34),0 15px 36px rgba(0,0,0,.35);animation:social-v3-arrive .22s ease-out both}
.friend-request-panel.hidden{display:none!important}
.friend-request-panel .room-invite-icon{width:44px;height:44px;font-size:22px}
.friend-request-panel b{font-size:11px}.friend-request-panel p{font-size:8px}.friend-request-panel small{display:none}
.friend-request-panel>div:last-child{display:flex;gap:5px}.friend-request-panel button{min-height:36px;padding:6px 9px;font-size:7px}
@keyframes social-v3-arrive{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:translateX(0)}}
@media(pointer:coarse) and (orientation:landscape) and (max-height:520px){.friend-request-panel{inset:8px 104px auto auto;width:min(390px,calc(100vw - 120px));grid-template-columns:38px minmax(0,1fr) auto;padding:7px}.friend-request-panel .room-invite-icon{width:34px;height:34px;font-size:18px}.friend-request-panel button{min-height:32px}}

@media(max-width:760px),(pointer:coarse){
 .server-list-title #server-create-open{min-height:32px;padding:7px 9px!important;font-size:8px!important;letter-spacing:.03em}
 .server-create-panel>footer #server-create-submit{min-width:138px}
}

@media(pointer:coarse) and (max-height:520px){
 .server-create-panel>header{padding:5px 9px}
 .server-create-panel>header small,.server-create-body>p,.server-switch small{display:none}
 .server-create-body{gap:5px;padding:6px 9px}
 .server-create-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .server-switch{min-height:30px;padding:4px 7px}
 .server-code-box{padding:5px}
 .server-create-panel>footer{padding:5px 8px}
 .server-create-panel>footer button{min-height:33px}
}

/* V300 live seasons, limited events, weekly adventures and pet bundles */
.journal-season,.journal-event,.journal-weekly-missions{grid-column:1/-1;min-height:132px;overflow:visible}.journal-season{border-color:var(--season-accent,#f7d14a);background:linear-gradient(125deg,#102a34 0,#173f4b 62%,#4e421b 100%);color:#fff;box-shadow:0 5px 0 #26363b}.journal-season>header{background:linear-gradient(90deg,#172f39,#2d413d);border-bottom:2px solid var(--season-accent,#f7d14a)}.journal-season>header b{color:var(--season-accent,#f7d14a)}.journal-season-copy{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 11px}.journal-season-copy b{font-size:8px;color:#fff}.journal-season-copy span{font-size:6px;color:#bcd0d6}.season-reward-rail{display:grid;grid-template-columns:repeat(10,minmax(105px,1fr));gap:5px;padding:0 8px 9px;overflow-x:auto;scroll-snap-type:x proximity;overscroll-behavior-inline:contain}.season-reward-rail button{display:grid;grid-template-rows:auto 30px minmax(22px,auto) auto;place-items:center;gap:3px;min-height:105px;padding:6px 4px;border:2px solid #5b6b70;background:#203840;color:#fff;scroll-snap-align:start}.season-reward-rail button small{font-size:5px;color:#9dc2ce}.season-reward-rail button i{display:grid;width:29px;height:29px;place-items:center;border:2px solid #7b6921;background:#4e431d;color:#ffe069;font-size:14px;font-style:normal}.season-reward-rail button b{font-size:6px;line-height:1.35;text-align:center}.season-reward-rail button span{font-size:6px;color:#aebec3}.season-reward-rail button.ready{border-color:#f4d14b;background:#50451f;box-shadow:inset 0 0 0 2px rgba(255,224,92,.15)}.season-reward-rail button.ready span{color:#ffe36b}.season-reward-rail button.claimed{border-color:#62a974;background:#244d34}.season-reward-rail button.claimed i{border-color:#7fc68e;background:#347149;color:#fff}.season-reward-rail button:disabled.locked{opacity:.64}.journal-event{border-color:#aa75df;background:linear-gradient(125deg,#241a36,#392258 58%,#132d38);color:#fff}.journal-event>header{background:rgba(24,18,38,.72);border-bottom:2px solid #bc86ed}.journal-event>header b{color:#e7b8ff}.journal-event>p{margin:0;padding:7px 10px;color:#d4c6df;font-size:7px}.journal-event.resting{filter:saturate(.65)}.event-mission-grid,.weekly-mission-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:7px}.weekly-mission-grid{grid-template-columns:repeat(5,minmax(150px,1fr));overflow-x:auto;scroll-snap-type:x proximity}.event-mission-grid article,.weekly-mission-grid article{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:6px;min-height:91px;padding:6px;border:2px solid #65757a;background:#f8f9f6;color:#17282e}.event-mission-grid article>i,.weekly-mission-grid article>i{display:grid;width:30px;height:30px;place-items:center;border:2px solid #526a72;background:#234752;color:#ffe26b;font-size:14px;font-style:normal}.event-mission-grid article>div,.weekly-mission-grid article>div{display:flex;min-width:0;flex-direction:column;gap:3px}.event-mission-grid b,.weekly-mission-grid b{font-size:7px}.event-mission-grid small,.event-mission-grid strong,.weekly-mission-grid small,.weekly-mission-grid strong{font-size:5px}.event-mission-grid div>span,.weekly-mission-grid div>span{height:6px;border:1px solid #77858a;background:#c5ccca}.event-mission-grid div>span em,.weekly-mission-grid div>span em{display:block;height:100%;background:linear-gradient(90deg,#56b979,#efd052)}.event-mission-grid article>button,.weekly-mission-grid article>button{grid-column:1/-1;min-height:27px;padding:5px;border:2px solid #66551d;background:#edc73d;color:#1c180b;font-size:6px;font-weight:1000;box-shadow:0 3px #735b14}.event-mission-grid article>button:disabled,.weekly-mission-grid article>button:disabled{border-color:#737b7a;background:#aeb3b0;color:#5d6667;box-shadow:none}.event-mission-grid article.ready,.weekly-mission-grid article.ready{border-color:#dfb936;background:#fff8d7}.event-mission-grid article.claimed,.weekly-mission-grid article.claimed{border-color:#61a875;background:#e7f5e9}.journal-weekly-missions{border-color:#4b899c}.journal-weekly-missions>header{background:#1d4c59}.season-reveal-icon{position:relative;z-index:2;display:grid;width:90px;height:90px;place-items:center;margin:8px auto 13px;border:5px solid #b58a19;background:radial-gradient(circle,#ffef86,#d39a20 70%);color:#604814;font-size:42px;box-shadow:0 0 28px #ffe56f;transform:rotate(45deg)}
.store-season-promo{display:grid;width:100%;grid-template-columns:62px minmax(0,1fr) auto;align-items:center;gap:11px;margin-top:11px;padding:11px;border:3px solid var(--season-accent,#f4cf43);background:linear-gradient(105deg,#102c36,#1d4450 60%,#4e411a);color:#fff;text-align:left;box-shadow:0 5px 0 #2b3333;cursor:pointer}.store-season-emblem{display:grid;width:54px;height:54px;place-items:center;border:3px solid #a77e18;background:radial-gradient(circle,#ffe978,#b77d13);color:#503909;font-size:27px}.store-season-promo>div{display:flex;min-width:0;flex-direction:column;gap:4px}.store-season-promo small{color:var(--season-accent,#f4cf43);font-size:7px}.store-season-promo b{font-size:14px}.store-season-promo em{color:#c3d5da;font-size:7px;font-style:normal}.store-season-promo strong{padding:9px;border:2px solid #816619;background:#f1cb3d;color:#211a08;font-size:8px;white-space:nowrap}.store-pet-bundles{margin-top:11px;border:3px solid #8c6e26;background:#16282f;color:#fff;box-shadow:0 5px 0 rgba(0,0,0,.28)}.store-pet-bundles>header{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;padding:9px 11px;border-bottom:2px solid #6d5e30;background:linear-gradient(90deg,#302a18,#162e36)}.store-pet-bundles>header>div{display:flex;flex-direction:column;gap:3px}.store-pet-bundles header small{color:#ffe067;font-size:7px}.store-pet-bundles header b{font-size:12px}.store-pet-bundles header span{color:#9fc1cb;font-size:7px}.store-pet-bundle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:8px}.store-pet-bundle{display:grid;grid-template-columns:82px minmax(0,1fr);gap:8px;min-height:148px;padding:8px;border:2px solid #64757a;background:linear-gradient(145deg,#29434c,#111f25);overflow:hidden}.store-pet-bundle.forest{border-color:#71a65e}.store-pet-bundle.arctic{border-color:#75cfe5}.store-pet-bundle.dino{border-color:#d28d4e}.store-pet-bundle.sky{border-color:#9e83e6}.store-pet-bundle.royal{border-color:#ef86c5}.store-bundle-art{position:relative;display:grid;height:88px;place-items:center;border:2px solid #7a6725;background:radial-gradient(circle,#67551b,#17272d 70%)}.store-bundle-art>i{color:#ffe36b;font-size:38px;font-style:normal}.store-bundle-art>span{position:absolute;display:grid;width:26px;height:26px;place-items:center;border:2px solid #88989c;background:#203d47;color:#ffe36b;font-size:12px}.store-bundle-art>span:nth-of-type(1){left:2px;bottom:2px}.store-bundle-art>span:nth-of-type(2){right:2px;bottom:2px}.store-bundle-art>span:nth-of-type(3){right:-2px;top:1px}.store-bundle-copy{display:flex;min-width:0;flex-direction:column;gap:4px}.store-bundle-copy small{color:#ffe36b;font-size:6px}.store-bundle-copy b{font-size:9px}.store-bundle-copy span{color:#bbccd1;font-size:6px;line-height:1.45}.store-bundle-copy em{margin-top:auto;color:#7ed99b;font-size:6px;font-style:normal}.store-pet-bundle>button{grid-column:1/-1;display:flex;min-height:39px;align-items:center;justify-content:space-between;gap:8px;padding:7px 9px;border:2px solid #856914;background:#f1ca3c;color:#201909;font-weight:1000;box-shadow:0 4px #6e5613}.store-pet-bundle>button b{font-size:8px}.store-pet-bundle>button small{font-size:6px}.store-pet-bundle>button:disabled{border-color:#497654;background:#315f3e;color:#d6f5dc;box-shadow:none}.store-pet-bundle.owned{opacity:.82}
@media(max-width:780px){.journal-season-copy{align-items:flex-start;flex-direction:column}.event-mission-grid{grid-template-columns:1fr}.weekly-mission-grid{grid-template-columns:repeat(5,minmax(180px,82vw))}.store-pet-bundle-grid{grid-template-columns:1fr}.store-season-promo{grid-template-columns:48px minmax(0,1fr)}.store-season-emblem{width:42px;height:42px}.store-season-promo>strong{grid-column:1/-1;text-align:center}.store-pet-bundle{grid-template-columns:72px minmax(0,1fr);min-height:128px}.store-bundle-art{height:76px}}
@media(max-height:520px) and (orientation:landscape){.journal-season,.journal-event,.journal-weekly-missions{min-height:88px}.journal-season-copy{display:none}.season-reward-rail{grid-template-columns:repeat(10,minmax(90px,1fr));padding:4px 5px 6px}.season-reward-rail button{min-height:77px;grid-template-rows:auto 22px minmax(16px,auto) auto;padding:3px}.season-reward-rail button i{width:21px;height:21px;font-size:10px}.event-mission-grid,.weekly-mission-grid{display:flex;gap:5px;padding:5px;overflow-x:auto}.event-mission-grid article,.weekly-mission-grid article{min-width:205px;min-height:70px;padding:4px}.journal-event>p{display:none}.store-season-promo{grid-template-columns:42px minmax(0,1fr) auto;padding:6px}.store-season-emblem{width:36px;height:36px;font-size:18px}.store-season-promo b{font-size:10px}.store-season-promo strong{grid-column:auto;padding:7px}.store-pet-bundles>header{padding:6px 8px}.store-pet-bundle-grid{display:flex;overflow-x:auto}.store-pet-bundle{min-width:310px;min-height:105px;grid-template-columns:62px minmax(0,1fr);padding:5px}.store-bundle-art{height:61px}.store-pet-bundle>button{min-height:31px}}

/* V301: keep new Journal rows large enough for their contents inside the fixed-height grid. */
.journal-season{min-height:190px;overflow:hidden}
.journal-event{min-height:176px;overflow:hidden}
.journal-weekly-missions{min-height:154px;overflow:hidden}
@media(max-width:780px) and (orientation:portrait){.journal-event{min-height:380px}}
@media(max-height:520px) and (orientation:landscape){.journal-season{min-height:126px}.journal-event{min-height:130px}.journal-weekly-missions{min-height:128px}}

/* V305: first-week journey reuses the daily gift economy and adds no extra currency. */
.journal-starter-journey{grid-column:1/-1;min-height:188px;overflow:hidden;border-color:#e8c43f;background:linear-gradient(125deg,#132f39 0,#1d5360 55%,#56471b 100%);color:#fff;box-shadow:0 5px 0 #26363b}
.journal-starter-journey>header{border-bottom:2px solid #f4d55c;background:rgba(8,27,34,.76)}
.journal-starter-journey>header b{color:#ffe06b}
.journal-starter-journey>p{margin:0;padding:8px 11px;color:#c9dce0;font-size:7px;line-height:1.5}
.starter-journey-rail{display:grid;grid-template-columns:repeat(7,minmax(138px,1fr));gap:6px;padding:0 8px 10px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.starter-journey-rail article{display:grid;grid-template-rows:auto 30px auto minmax(32px,1fr) auto;gap:4px;min-height:113px;padding:7px;border:2px solid #607178;background:#eff3f1;color:#18282d;scroll-snap-align:start}
.starter-journey-rail article>small{font-size:6px;color:#5f7074}.starter-journey-rail article>i{display:grid;width:28px;height:28px;place-items:center;border:2px solid #4d6b74;background:#244b58;color:#ffe16c;font-size:14px;font-style:normal}.starter-journey-rail article>b{font-size:7px;line-height:1.35}.starter-journey-rail article>span{font-size:6px;line-height:1.45;color:#5d6d70}.starter-journey-rail article>button{min-height:28px;padding:5px;border:2px solid #735b16;background:#f0ca3f;color:#201a09;font-size:6px;font-weight:1000;box-shadow:0 3px #6c5414}
.starter-journey-rail article.current{border-color:#ffe05f;background:#fff8d7;box-shadow:inset 0 0 0 2px rgba(242,196,46,.24)}.starter-journey-rail article.complete{border-color:#62a975;background:#e6f4e9}.starter-journey-rail article.complete>i{border-color:#4f8b61;background:#347047;color:#fff}.starter-journey-rail article.locked{opacity:.62;filter:saturate(.7)}.journal-starter-journey.complete{border-color:#69b47d;background:linear-gradient(125deg,#15362a,#205b3d 60%,#273c34)}
@media(max-width:780px){.starter-journey-rail{grid-template-columns:repeat(7,minmax(165px,76vw))}}
@media(max-height:520px) and (orientation:landscape){.journal-starter-journey{min-height:137px}.journal-starter-journey>p{display:none}.starter-journey-rail{grid-template-columns:repeat(7,minmax(155px,1fr));padding:5px}.starter-journey-rail article{grid-template-columns:28px minmax(0,1fr);grid-template-rows:auto auto auto;min-height:87px;padding:5px}.starter-journey-rail article>small{grid-column:1/-1}.starter-journey-rail article>i{grid-row:2/4}.starter-journey-rail article>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.starter-journey-rail article>button{grid-column:1/-1}}

/* V306 visual Character Studio catalog */
.studio-filters{display:flex;gap:5px;margin:0 0 6px;padding:3px;border:1px solid #4c6872;background:#10252d;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch}.studio-filters::-webkit-scrollbar{display:none}.studio-filters.hidden{display:none}.studio-filters button{flex:0 0 auto;min-height:27px;padding:5px 9px;border:1px solid #54717b;background:#213b44;color:#b9cdd3;font-size:7px;font-weight:1000;letter-spacing:.05em;white-space:nowrap;cursor:pointer}.studio-filters button.selected{border-color:#ffe168;background:#4b512c;color:#ffe168;box-shadow:inset 0 -3px #b79b2f}
.studio-workspace .cosmetic-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:7px;padding:1px 5px 12px 1px}.cosmetic-card{position:relative;display:flex;min-width:0;min-height:158px;align-items:center;flex-direction:column;gap:4px;padding:5px;border:2px solid #4e6872;background:linear-gradient(155deg,#294b55,#132932 72%);color:#fff;text-align:center;box-shadow:inset 0 0 0 1px rgba(184,225,235,.08),0 3px 0 rgba(4,13,17,.5);cursor:pointer;overflow:hidden}.cosmetic-card.catalog-filtered{display:none}.cosmetic-art{position:relative;display:grid;width:100%;height:100px;flex:0 0 100px;place-items:center;overflow:hidden;border:1px solid #4c6973;background:#183740}.cosmetic-art canvas{position:absolute;top:0;bottom:0;left:50%;display:block;width:auto;max-width:100%;height:100%;transform:translateX(-50%);image-rendering:auto;pointer-events:none}.cosmetic-card>b{display:block;width:100%;min-height:18px;overflow:hidden;color:#f5f8f8;font-size:8px;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}.cosmetic-card-meta{display:flex;width:100%;min-width:0;align-items:center;justify-content:space-between;gap:4px}.cosmetic-card .cosmetic-tier{padding:3px 4px;color:#9fc0ca;font-size:5px;font-weight:1000;letter-spacing:.06em}.cosmetic-card .cosmetic-price{align-self:auto;margin-left:auto;padding:4px 5px;background:#315342;color:#b9f2c8;font-size:6px;font-style:normal;font-weight:1000;white-space:nowrap}.cosmetic-card .pet-card-bond{width:100%;margin-top:-1px;color:#72dbea!important;font-size:5px!important;text-align:left}.cosmetic-card.locked{border-color:#806919;filter:none}.cosmetic-card.locked .cosmetic-price{background:#e0b629;color:#221c08}.cosmetic-card.selected{border-color:#ffe167;box-shadow:inset 0 0 0 2px rgba(255,225,103,.22),0 0 12px rgba(255,218,67,.18)}.cosmetic-card.selected .cosmetic-art{border-color:#ffe167}.cosmetic-card.equipped:after{content:'✓';position:absolute;z-index:4;right:7px;top:7px;display:grid;width:20px;height:20px;place-items:center;border:1px solid #a7f3bb;background:#276542;color:#b8f4c6;font-size:11px;font-weight:1000;box-shadow:0 2px #123a24}.cosmetic-card.daily-deal:before{content:'DEAL';position:absolute;z-index:4;left:5px;top:5px;padding:3px 4px;background:#d4482e;color:#fff;font-size:5px;font-weight:1000;box-shadow:0 2px #702215}.cosmetic-card[data-tier="rare"] .cosmetic-tier{color:#73d7ea}.cosmetic-card[data-tier="epic"] .cosmetic-tier{color:#c49cff}.cosmetic-card[data-tier="legendary"] .cosmetic-tier{color:#ffe169}
@media(max-width:900px),(pointer:coarse){.studio-workspace .cosmetic-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.cosmetic-card{min-height:139px;padding:4px}.cosmetic-art{height:84px;flex-basis:84px}.cosmetic-card>b{font-size:8px}.cosmetic-card .cosmetic-price{font-size:6px}.studio-filters button{min-height:30px;font-size:7px}}
@media(orientation:landscape){.touch .studio-catalog[data-active-category="pet"]{grid-template-rows:auto minmax(0,1fr)}.touch .studio-catalog[data-active-category="pet"] .studio-filters{grid-column:1/-1;grid-row:1;margin-bottom:0}.touch .studio-catalog[data-active-category="pet"] .cosmetic-grid[data-category="pet"]{grid-column:1;grid-row:2;height:100%;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content}.touch .studio-catalog[data-active-category="pet"] .pet-bond-panel{grid-column:2;grid-row:2;height:100%}}
@media(orientation:landscape) and (max-height:520px){.touch .studio-filters{gap:3px;margin-bottom:3px;padding:2px}.touch .studio-filters button{min-height:25px;padding:4px 7px;font-size:6px}.touch .studio-workspace .cosmetic-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding-bottom:10px}.touch .cosmetic-card{min-height:113px;gap:2px;padding:3px}.touch .cosmetic-art{height:68px;flex-basis:68px}.touch .cosmetic-card>b{min-height:14px;font-size:7px}.touch .cosmetic-card .cosmetic-tier{padding:2px;font-size:5px}.touch .cosmetic-card .cosmetic-price{padding:3px;font-size:5px}.touch .cosmetic-card.equipped:after{right:4px;top:4px;width:17px;height:17px;font-size:9px}.touch .cosmetic-card.daily-deal:before{left:3px;top:3px}.touch .studio-catalog[data-active-category="pet"] .cosmetic-grid[data-category="pet"]{grid-template-columns:repeat(2,minmax(0,1fr))}.touch .studio-catalog[data-active-category="pet"] .cosmetic-card{min-height:108px}.touch .studio-catalog[data-active-category="pet"] .cosmetic-art{height:63px;flex-basis:63px}}
/* V339 adjustable camera speed, selected-item feedback */
.hotbar-item-name{position:absolute;z-index:5;left:50%;bottom:calc(115px + var(--safe-b));max-width:min(70vw,360px);padding:6px 11px;border:1px solid rgba(255,230,106,.66);background:rgba(7,20,27,.82);color:#fff3a0;font-size:10px;font-weight:900;letter-spacing:.08em;text-align:center;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:0;pointer-events:none;transform:translate(-50%,6px);transition:opacity .18s ease,transform .18s ease}.hotbar-item-name.visible{opacity:1;transform:translate(-50%,0)}#game:not(.playing) .hotbar-item-name{display:none}.settings-camera-speed{display:none}.touch .settings-camera-speed{display:grid}@media(max-width:760px),(pointer:coarse){.hotbar-item-name{bottom:calc(82px + var(--safe-b));padding:5px 9px;font-size:9px}}

/* V340 clean mobile HUD, optional diagnostics */
#debug{display:none}
html[data-debug-stats="on"] #game.playing #debug{display:block}
.touch #fullscreen-button{display:none!important}

/* Toggle sprint: one tap locks running until the stick returns to neutral. */
#sprint-button{transition:transform .1s,background .14s,border-color .14s,box-shadow .14s}
#sprint-button.active{border-color:#fff7a8;background:rgba(53,126,67,.88);box-shadow:0 0 0 3px rgba(255,225,93,.22),inset 0 0 0 2px rgba(255,247,168,.32);color:#fff7a8;transform:scale(.94)}
#sprint-button.active:after{content:'ON';position:absolute;left:50%;top:calc(100% + 2px);transform:translateX(-50%);padding:1px 3px;background:rgba(10,28,23,.86);color:#fff3a0;font-size:5px;line-height:1.1}
.settings-diagnostics{display:grid;gap:9px;margin-top:14px;padding:11px 13px;border:2px solid #49616b;background:#142b34}
@media(max-height:520px){.settings-diagnostics{gap:4px;margin-top:6px;padding:5px 8px}.settings-diagnostics .touch-control-options{gap:4px}.settings-diagnostics .touch-control-options button{min-height:46px;gap:2px;padding:5px 7px}.settings-diagnostics .touch-control-options button b{font-size:8px}.settings-diagnostics .touch-control-options button span{font-size:6px}.settings-diagnostics .touch-control-options button em{top:3px;right:3px;font-size:5px}}
/* Room-wide rules are distinct from this device's graphics/control preferences. */
.room-rule-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;margin-bottom:12px;flex-shrink:0}
.room-rules-settings{padding:12px;border:2px solid #6b8d83;margin-bottom:14px;background:#17383e}
.room-rules-settings .server-switch{margin:10px 0;min-height:44px;background:#203b43;border-color:#52727c;color:#fff}
.room-rules-settings .server-switch small{color:#bed0d3}
.server-rule{display:block;padding:8px;border:1px solid #83976a;background:#283e36;color:#ffe06a;font-size:13px;line-height:1.3}

/* Carry actions: fixed action line(s), separate opaque player name, 44px touch target. */
#parkour-carry-button.carry-action-view,#shared-carry-button.carry-action-view{width:174px;min-width:0;max-width:calc(100vw - var(--safe-l) - var(--safe-r) - 32px);min-height:54px;grid-template-columns:32px minmax(0,1fr);column-gap:9px;row-gap:3px;padding:8px 10px;border-width:2px;border-radius:12px;text-align:left;align-content:center;transition:background .15s,border-color .15s}
#parkour-carry-button.carry-action-view>span,#shared-carry-button.carry-action-view>span{width:32px;height:32px;border-radius:8px;background:rgba(5,28,41,.42);color:#fff4c3;display:grid;place-items:center}
.carry-action-view>span svg{display:block;width:28px;height:28px}
#parkour-carry-button.carry-action-view b,#shared-carry-button.carry-action-view b{min-width:0;margin:0;font-size:12px;font-weight:800;line-height:1.15;letter-spacing:.15px;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:normal;color:#fff}
#parkour-carry-button.carry-action-view small,#shared-carry-button.carry-action-view small{display:block;min-width:0;margin:0;font-size:11px;line-height:1.2;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:none;color:#f9dce8}
#parkour-carry-button.carry-action-view:disabled,#shared-carry-button.carry-action-view:disabled{opacity:1;filter:none;background:#344957;border-color:#acc3cc;cursor:wait}
:is(#parkour-carry-panel,#shared-carry-panel)>div{min-width:0}
:is(#parkour-carry-panel,#shared-carry-panel)>div>b{display:block;overflow-wrap:anywhere;text-transform:none}
:is(#parkour-carry-panel,#shared-carry-panel)>span>svg{width:42px;height:42px}
@media(max-height:520px){#parkour-carry-button.carry-action-view,#shared-carry-button.carry-action-view{width:164px;padding:6px 8px;min-height:52px}}
@media(prefers-reduced-motion:reduce){.carry-action-view{transition:none!important}}

/* Device-wide saves: keep the short ownership/error note visible on phones. */
#save-panel:not(.home-view) #save-storage-note{display:block!important;flex:1;min-width:0;font-size:clamp(10px,1.2vw,12px);line-height:1.3;overflow-wrap:anywhere}
#save-panel:not(.home-view) #save-storage-note[data-warning="true"]{color:#ffe07b}
#save-panel:not(.home-view) .save-footer-actions{width:auto;flex:0 0 auto}
