:root{font-family:Arial,Helvetica,sans-serif;color:#203d34;color-scheme:light;--ink:#203d34;--paper:#f6f6e9;--lime:#d7ed92}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{background:#d9e7de}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #578153;outline-offset:4px}button{color:inherit}#world{display:block;position:fixed;inset:0;width:100%;height:100%;touch-action:none}.vignette{position:fixed;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(229,236,216,.88),rgba(229,236,216,.55) 34%,transparent 64%),linear-gradient(0deg,rgba(25,49,39,.16),transparent 22%);transition:opacity .6s}body.playing .vignette{opacity:0}.topbar{position:fixed;z-index:8;top:0;left:0;width:100%;display:flex;align-items:center;justify-content:space-between;padding:30px 40px;pointer-events:none}.topbar>*{pointer-events:auto}.wordmark{display:flex;gap:12px;align-items:center;text-decoration:none;font-size:14px;letter-spacing:2px;font-weight:800;color:var(--ink)}.wordmark i{font-family:Georgia,serif;font-style:italic;font-size:18px;font-weight:400}.brand-cube{font-size:36px;line-height:30px}.top-actions{display:flex;align-items:center;gap:9px}.connection-pill{font-size:11px;letter-spacing:.2px;padding:11px 14px;display:flex;gap:8px;align-items:center;background:rgba(249,251,238,.85);border:1px solid rgba(41,62,44,.13);border-radius:30px;backdrop-filter:blur(12px)}.status-dot{width:6px;height:6px;border-radius:50%;background:#7d8976}.connection-pill.connected .status-dot{background:#448843;box-shadow:0 0 0 3px #488d4420}.connection-pill.connecting .status-dot{background:#bc9b40;animation:pulse 1s infinite}.connection-pill.disconnected .status-dot{background:#ac5e47}.icon-button{border:1px solid #203d3425;border-radius:50%;width:35px;height:35px;background:rgba(249,251,238,.85);font-size:15px;backdrop-filter:blur(12px)}.welcome{position:fixed;inset:0;display:flex;align-items:center;pointer-events:none}.welcome-card{pointer-events:auto;margin:36px 0 0 7vw;width:570px;max-width:55vw}.eyebrow{display:flex;align-items:center;gap:9px;font-size:10px;font-weight:700;letter-spacing:2px}.eyebrow>span{width:6px;height:6px;background:#66864f;display:block;border-radius:50%}h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(43px,4.7vw,72px);line-height:1.05;letter-spacing:-3px;font-weight:400;margin:29px 0 22px}h1 em{font-weight:400;color:#537553}.intro{font-size:15px;line-height:1.75;color:#537062;margin:0 0 34px}.join-form label{display:block;font-size:11px;margin-bottom:9px;font-weight:700}.join-row{display:flex;gap:7px;max-width:467px}.join-row input{min-width:0;flex:1;border:1px solid #bccbb4;background:#fbfcf0bf;border-radius:7px;padding:16px 14px;font-size:13px;color:var(--ink)}.join-row input::placeholder{color:#8b9981}.join-row button,.primary-button{border:0;border-radius:7px;background:#203d34;color:#f8faeb;font-size:12px;font-weight:700;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:24px;white-space:nowrap}.join-row button:hover,.primary-button:hover{background:#375b45}.join-row button:disabled{opacity:.6;cursor:wait}.join-row button span{font-size:19px}.privacy-note{color:#6e8270;font-size:9px;line-height:1.6;margin-top:11px}.welcome-features{display:flex;gap:19px;font-size:10px;color:#52694f;margin-top:35px;padding-top:24px;border-top:1px solid #7a927344;max-width:467px}.welcome-features span{display:flex;align-items:center;gap:7px}.welcome-features b{font-size:15px;font-weight:400}.welcome-error{color:#964731;font-size:12px;min-height:15px;max-width:450px;line-height:1.5}.world-caption{position:absolute;bottom:42px;right:40px;display:flex;flex-direction:column;align-items:flex-end;gap:9px;color:#294734;font-family:Georgia,serif;font-size:18px}.world-caption small{font-family:Arial,sans-serif;font-size:8px;letter-spacing:1.5px}.caption-line{width:38px;height:1px;background:#476548;margin-bottom:6px}.hidden{display:none!important}.world-info{position:fixed;left:32px;top:101px;display:flex;flex-direction:column;gap:8px;background:#f6f8e7d9;border:1px solid #ffffff88;border-radius:9px;padding:15px 18px;backdrop-filter:blur(10px);pointer-events:none}.world-label{font-size:8px;letter-spacing:1.8px;font-weight:700;color:#72816a}.world-info #player-count{font-family:Georgia,serif;font-size:22px}.tiny-note{font-size:8px;color:#7a8577}.coordinates{position:fixed;right:40px;top:96px;font-size:10px;letter-spacing:2px;color:#304c3d;text-shadow:0 1px 2px #fff9}.crosshair{position:fixed;left:50%;top:50%;width:13px;height:13px;transform:translate(-50%,-50%);pointer-events:none;filter:drop-shadow(0 1px 2px #203d3480)}.crosshair:before,.crosshair:after{content:'';position:absolute;background:#ffffe8}.crosshair:before{width:13px;height:2px;top:5px;left:0}.crosshair:after{width:2px;height:13px;left:5px;top:0}.palette-wrap{position:fixed;z-index:3;bottom:23px;left:50%;transform:translateX(-50%);text-align:center}.palette-label{display:inline-block;font-size:11px;font-weight:700;padding:7px 12px;border-radius:20px;background:#f9f9ece8;margin-bottom:10px;box-shadow:0 2px 12px #223a1b12}.palette-label span{font-size:9px;font-weight:400;margin-left:9px;color:#6b7962}.palette{display:flex;gap:5px;padding:8px;background:#f4f5e6e6;border:1px solid #ffffeccc;border-radius:12px;box-shadow:0 10px 35px #223a1b20;backdrop-filter:blur(15px)}.block-slot{position:relative;width:53px;height:57px;background:#ced6bd70;border:2px solid transparent;border-radius:7px;display:flex;align-items:center;justify-content:center;transition:background .12s,transform .12s,border-color .12s}.block-slot:hover{background:#d0dfb7;transform:translateY(-2px)}.block-slot.selected{border-color:#324e36;background:#e5eccd;transform:translateY(-4px);box-shadow:0 3px 0 #324e36}.block-slot .slot-key{position:absolute;left:5px;top:3px;font-size:8px;color:#4d6045}.block-icon{display:block;width:27px;height:27px;background:var(--block);box-shadow:inset -7px -7px 0 #00000014,inset 0 7px 0 #ffffff36;border-radius:2px;transform:rotate(-7deg)}.block-slot.selected .block-icon{transform:rotate(-7deg) scale(1.1)}.desktop-hint{font-size:9px;white-space:nowrap;color:#2c4430;letter-spacing:.2px;text-shadow:0 1px 5px #fff9;margin:13px 0 0}.desktop-hint span{opacity:.72}.target-label{position:fixed;left:50%;top:calc(50% + 25px);transform:translateX(-50%);pointer-events:none;font-size:9px;color:#fffdec;background:#183e3388;padding:5px 8px;border-radius:4px;opacity:0;transition:opacity .15s}.target-label.visible{opacity:1}.name-tag{position:fixed;z-index:2;top:0;left:0;pointer-events:none;background:#203d34d9;color:#fffbed;border:1px solid #fff5;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;padding:6px 9px;border-radius:5px;transform:translate(-50%,-100%)}.name-tag:before{content:'●';font-size:6px;vertical-align:2px;margin-right:5px;color:var(--avatar-color,#d7ed92)}.pause-menu{position:fixed;z-index:6;inset:0;background:#21382f33;backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center}.pause-card{padding:36px;width:355px;max-width:calc(100vw - 32px);border-radius:16px;background:#f8f8ed;box-shadow:0 20px 80px #162f3033}.pause-card h2,dialog h2{font-family:Georgia,serif;font-weight:400;font-size:38px;line-height:1.1;letter-spacing:-1px;margin:21px 0 16px}.pause-card p{font-size:12px;line-height:1.6;color:#6c7b64}.primary-button{width:100%;margin-top:23px}.text-button{background:none;border:0;display:block;margin:17px auto;font-size:11px}.pause-card>small{display:block;text-align:center;font-size:9px;color:#829075}.toast{position:fixed;z-index:15;left:50%;top:97px;transform:translate(-50%,-10px);padding:11px 18px;background:#203d34ed;backdrop-filter:blur(10px);color:#faf9eb;border-radius:7px;box-shadow:0 4px 25px #203d3420;font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:85vw;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}dialog{max-width:440px;width:calc(100% - 32px);border:0;border-radius:16px;padding:34px;background:#f8f8ed;color:var(--ink);box-shadow:0 20px 80px #162f3066}dialog::backdrop{background:#203d3477;backdrop-filter:blur(5px)}.dialog-close{position:absolute;right:15px;top:12px;border:0;background:transparent;font-size:25px;font-weight:300}.dialog-close:hover{background:#dae3c8;border-radius:5px}dialog p{font-size:12px;color:#6c7b64;line-height:1.65}dialog dl{margin:25px 0 20px}dialog dl>div{margin-top:14px}dialog dt{font-size:11px;font-weight:700}dialog dd{font-size:11px;line-height:1.5;margin:4px 0 0;color:#6c7b64}dialog .help-footnote{font-size:10px;padding-top:17px;border-top:1px solid #dbe2ce}.touch-controls{display:none}.unsupported{position:fixed;top:30%;left:10%;padding:30px;background:#f8f8ed;border-radius:10px;z-index:30}.touch-mode .touch-controls{display:block}.touch-mode .desktop-hint{display:none}.touch-controls button{touch-action:none;-webkit-user-select:none;user-select:none;border:1px solid #ffffff88;border-radius:10px;background:#f6f8e7b8;backdrop-filter:blur(8px);font-size:24px;width:50px;height:50px;display:flex;align-items:center;justify-content:center;flex-direction:column;box-shadow:0 2px 8px #243d2022}.touch-controls button.held{background:#d7ed92e8}.touch-controls button small{font-size:6px;font-weight:700;letter-spacing:.5px}.move-pad{position:fixed;bottom:142px;left:21px;display:grid;grid-template-columns:repeat(3,50px);grid-template-rows:repeat(2,50px);gap:4px}.move-up{grid-column:2;grid-row:1}.move-left{grid-column:1;grid-row:2}.move-down{grid-column:2;grid-row:2}.move-right{grid-column:3;grid-row:2}.build-pad{position:fixed;bottom:142px;right:21px;display:grid;grid-template-columns:repeat(2,50px);gap:5px}.build-pad .action-key{background:#294e3ad9;color:#fffdeb}.build-pad .build-key{background:#d7ed92e8;color:#294e3a}.touch-look-hint{position:fixed;bottom:116px;left:50%;transform:translateX(-50%);font-size:8px;color:#365439;white-space:nowrap;background:#f8f8ed99;padding:5px 8px;border-radius:4px}@keyframes pulse{50%{opacity:.3}}@media(max-width:850px){.topbar{padding:22px}.welcome-card{margin-left:6vw;max-width:66vw;width:535px}h1{font-size:57px}.world-caption{right:25px;font-size:15px;bottom:30px}.welcome-features{gap:13px;font-size:9px}.join-row button{padding:15px;gap:14px}.vignette{background:linear-gradient(90deg,#e5ecd8e6,#e5ecd8bb 35%,#e5ecd822 80%)}.wordmark{font-size:12px;letter-spacing:1.5px}.world-info{left:22px;top:83px}.coordinates{right:22px;top:82px}.palette-wrap{bottom:18px}.block-slot{width:46px;height:50px}}@media(max-width:560px){.topbar{padding:20px 19px}.wordmark{font-size:10px;gap:6px;letter-spacing:1px}.brand-cube{font-size:28px}.wordmark i{font-size:14px}.connection-pill{font-size:9px;padding:9px 10px}.icon-button{width:30px;height:30px;font-size:13px}.top-actions{gap:5px}.welcome{align-items:flex-end;padding-bottom:max(10vh,45px)}.welcome-card{margin:0 25px;width:auto;max-width:none}.eyebrow{font-size:8px;letter-spacing:1.6px}h1{font-size:47px;letter-spacing:-2px;margin:20px 0 17px}.intro{font-size:13px;margin-bottom:24px}.join-row{flex-direction:column;gap:8px}.join-row button{padding:14px 16px}.join-row input{padding:14px;font-size:14px}.privacy-note{font-size:8px;margin-top:9px}.welcome-features{font-size:8px;gap:14px;margin-top:23px;padding-top:18px}.welcome-features b{font-size:13px}.welcome-error{font-size:11px;margin:9px 0 0}.world-caption{display:none}.vignette{background:linear-gradient(0deg,#e5ecd8 15%,#e5ecd8eb 45%,#e5ecd899 65%,transparent 100%)}.world-info{top:77px;left:19px;padding:11px 13px;gap:6px}.world-label{font-size:7px}.world-info #player-count{font-size:18px}.coordinates{font-size:8px;top:77px;right:19px}.palette{gap:3px;padding:6px;border-radius:10px}.block-slot{width:39px;height:43px}.block-icon{width:24px;height:24px}.palette-label{font-size:10px;margin-bottom:8px}.palette-wrap{bottom:max(16px,env(safe-area-inset-bottom))}.desktop-hint{display:none}.move-pad{left:14px;bottom:150px;grid-template-columns:repeat(3,43px);grid-template-rows:repeat(2,43px)}.touch-controls button{width:43px;height:43px}.build-pad{right:14px;bottom:150px;grid-template-columns:repeat(2,43px)}.touch-look-hint{bottom:118px}.toast{top:145px;font-size:11px;width:max-content;max-width:90vw}.pause-card{padding:29px}.topbar .wordmark{white-space:nowrap}}@media(max-height:600px) and (min-width:561px){.topbar{padding:17px 25px}.welcome-card{margin-top:34px}h1{font-size:45px;margin:17px 0 14px}.intro{font-size:12px;margin-bottom:20px}.welcome-features{margin-top:15px;padding-top:13px}.world-caption{bottom:20px}.world-info{top:70px}.coordinates{top:70px}.move-pad,.build-pad{bottom:40px}.touch-look-hint{bottom:120px}.palette-wrap{bottom:15px}.block-slot{width:40px;height:42px}.palette-label{margin-bottom:7px}.toast{top:70px}dialog{max-height:95vh}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.stream-mode .palette-wrap,.stream-mode .touch-controls,.stream-mode #crosshair,.stream-mode #menu-button,.stream-mode #help-button,.stream-mode #target-label{display:none!important}

/* Shared-world feedback and distinct material swatches. */
.edit-feedback{position:fixed;left:50%;top:calc(50% + 58px);transform:translateX(-50%);padding:6px 10px;border-radius:20px;background:#e5f6dbea;color:#254c38;font-size:10px;pointer-events:none;opacity:0;transition:opacity .16s;white-space:nowrap}.edit-feedback.visible{opacity:1}.edit-feedback.pending{background:#faf0ceeb}.edit-feedback.error{background:#fce0d7ef;color:#78432f}.crosshair.blocked:before,.crosshair.blocked:after{background:#ffc8ad}.target-label{max-width:85vw;text-align:center;white-space:nowrap;background:#183e33bd;font-size:10px}.secondary-button{display:flex;justify-content:space-between;align-items:center;width:100%;padding:13px 15px;margin-top:10px;border:1px solid #b7c6a5;border-radius:7px;background:#eaf0dc;font-size:11px}.secondary-button:hover{background:#dce8c7}.secondary-button span{font-size:9px;opacity:.65}.block-slot[data-block="1"] .block-icon{background:linear-gradient(#8aa653 0 32%,#8b7550 32%)}.block-slot[data-block="3"] .block-icon{background:repeating-linear-gradient(90deg,#a67b49 0 6px,#876035 6px 8px)}.block-slot[data-block="6"] .block-icon{background:repeating-linear-gradient(0deg,transparent 0 9px,#d9b794 9px 11px),repeating-linear-gradient(90deg,#b56f54 0 11px,#d9b794 11px 13px)}.block-slot[data-block="7"] .block-icon{border:3px solid #d3eee1;background:linear-gradient(135deg,#98bdbb 42%,#e0f4e9 44% 53%,#98bdbb 55%)}.block-slot[data-block="4"] .block-icon{background:repeating-conic-gradient(#60834e 0 25%,#73965a 0 50%) 0 / 13px 13px}.touch-controls button small{font-size:7px}.stream-mode .edit-feedback{display:none!important}
@media(min-width:851px){.touch-mode:not(.stream-mode) .desktop-hint{display:block}.touch-mode .touch-look-hint{bottom:141px}.touch-mode .move-pad,.touch-mode .build-pad{bottom:159px}}
@media(max-height:600px) and (min-width:561px){.touch-mode .move-pad,.touch-mode .build-pad{bottom:35px}.touch-mode .touch-look-hint{bottom:124px}}

/* Two separate shared worlds, with a compact survival pack and workshop. */
.world-choice{display:flex;gap:8px;max-width:467px;margin:-12px 0 22px}.world-choice a{flex:1;padding:12px 14px;border:1px solid #94ac8c77;border-radius:9px;text-decoration:none;color:#426248;background:#f7f9e699}.world-choice a[aria-current="page"]{border-color:#47694e;background:#e7efcf;box-shadow:inset 0 0 0 1px #47694e22}.world-choice strong{display:block;font-size:12px;margin-bottom:5px}.world-choice span{font-size:10px;line-height:1.4}.world-choice b{font-size:7px;background:#456a48;color:#fff9db;padding:3px 4px;border-radius:3px;margin-left:4px;vertical-align:2px}.survival-mode .welcome-features{margin-top:20px;padding-top:18px}.survival-mode .world-info{padding:11px 15px;gap:4px}.survival-mode .world-info #player-count{font-size:17px}.survival-mode .world-info .tiny-note{display:none}.survival-hud{position:fixed;z-index:4;left:32px;top:184px;width:288px;padding:15px 16px;background:#f6f8e7ee;border:1px solid #ffffffb0;border-radius:12px;box-shadow:0 8px 30px #20382d14;backdrop-filter:blur(12px)}.survival-heading,.health-row{display:flex;justify-content:space-between;align-items:center;gap:8px}.survival-heading strong{font-family:Georgia,serif;font-size:19px;font-weight:400}.survival-heading>span{font-size:10px;font-variant-numeric:tabular-nums;color:#607255}.health-row{font-size:9px;margin-top:13px}.health-row>span:last-child{color:#687860}.health-meter{margin-top:6px;height:7px;background:#cfd9be;border-radius:6px;overflow:hidden}.health-meter>span{height:100%;display:block;background:linear-gradient(90deg,#668c53,#adc56a);width:100%;transition:width .2s}.health-meter.low-health>span{background:#b76147}#survival-goal{font-size:11px;line-height:1.5;margin:12px 0;color:#425f45}.resource-strip{display:flex;gap:15px;font-size:10px;padding-bottom:12px;color:#6f7a60}.resource-strip b{color:#294a36;margin-left:3px;font-variant-numeric:tabular-nums}.survival-actions{display:flex;gap:5px}.survival-actions button{flex:1;white-space:nowrap;border:1px solid #a8bd9266;background:#e8efda;border-radius:6px;font-size:10px;padding:9px 5px}.survival-actions button:first-child{background:#284e39;color:#f6f8e5}.survival-actions button:disabled{opacity:.45;cursor:default}kbd{font:8px Arial,sans-serif;opacity:.65;margin-left:3px}.slot-count{position:absolute;right:5px;bottom:3px;background:#f8f9eadd;border-radius:3px;padding:1px 3px;font-size:9px;font-weight:700;font-variant-numeric:tabular-nums}.block-slot[data-block="8"] .block-icon{background:linear-gradient(0deg,#765238 0 27%,#f18e36 28% 65%,#ffe291 66%);clip-path:polygon(0 75%,25% 50%,25% 20%,45% 40%,60% 0,73% 45%,100% 74%,100% 100%,0 100%)}.inventory-panel,.survival-death{position:fixed;z-index:14;inset:0;background:#1d302e77;backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;padding:16px}.inventory-card{width:520px;max-width:100%;max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;background:#f8f8ec;padding:27px;border-radius:18px;box-shadow:0 20px 80px #15292155}.inventory-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.inventory-header h2{font:30px Georgia,serif;letter-spacing:-.8px;margin:12px 0 0}.inventory-header .icon-button{flex-shrink:0;font-size:23px}.inventory-note{font-size:10px;color:#7c806a;margin:12px 0 18px}.inventory-resources{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:17px}.resource-item{background:#e8edd9;padding:9px 10px;border-radius:7px;display:flex;flex-direction:column;gap:5px;font-size:9px;color:#6a765d}.resource-item strong{font-size:18px;font-weight:500;color:#314d36}.craft-recipes{display:flex;flex-direction:column;gap:8px}.craft-recipe{display:flex;align-items:center;gap:12px;border:1px solid #d5ddc7;border-radius:9px;padding:12px}.recipe-icon{flex-shrink:0;display:grid;place-items:center;width:38px;height:38px;background:#e6eacb;font:27px Georgia,serif;border-radius:7px;color:#58693b}.recipe-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.recipe-info strong{font-size:12px}.recipe-info span{font-size:10px;color:#6a775b}.recipe-info small{font-size:9px;color:#8a8e76}.craft-recipe button{background:#31563d;color:#fffbe7;border:0;border-radius:6px;padding:10px 11px;font-size:10px;min-width:65px}.craft-recipe button:disabled{background:#e1e6d3;color:#89927a;cursor:default}.craft-tip{font-size:10px;line-height:1.6;color:#79836a;margin:17px 0 0}.craft-status{font-size:11px;line-height:1.4;color:#526c40;min-height:15px;margin:9px 0 0}.inventory-card .primary-button{margin-top:15px}.survival-death{z-index:16}.enemy-tag{background:#453653df;border-color:#cdb2e677;color:#f7e6ff;font-size:9px}.enemy-tag:before{color:#eac991}.enemy-target{background:#765371;border-color:#ffdc91;box-shadow:0 0 0 2px #dfbd6244}.survival-mode.hurt:after{content:'';position:fixed;inset:0;z-index:5;pointer-events:none;box-shadow:inset 0 0 100px #a7474580}.stream-mode .survival-actions,.stream-mode .resource-strip,.stream-mode #nights-label{display:none!important}.stream-mode .survival-hud{pointer-events:none}.stream-mode .survival-hud #survival-goal{margin-bottom:0}.survival-mode .build-pad{grid-template-columns:repeat(2,50px)}.survival-mode #touch-jump{grid-column:1 / -1;width:100%}
@media(max-width:850px){.survival-hud{left:22px;top:156px;width:262px;padding:12px}.world-choice{margin-bottom:18px}.world-choice a{padding:10px}.survival-mode .intro{margin-bottom:28px}}
@media(max-width:560px){.world-choice{margin:0 0 17px;gap:7px}.world-choice a{padding:11px 10px}.world-choice strong{font-size:11px}.world-choice span{font-size:9px}.welcome-card{max-height:calc(100dvh - 115px);overflow:auto}.survival-mode .welcome{padding-bottom:28px}.survival-mode h1{font-size:43px}.survival-mode .intro{margin-bottom:18px}.survival-mode .welcome-features{margin-top:15px;padding-top:12px}.survival-mode .world-info{display:none}.survival-mode .coordinates{top:67px;font-size:7px}.survival-hud{top:89px;left:14px;right:14px;width:auto;padding:10px 12px}.survival-heading strong{font-size:16px}.survival-heading>span{font-size:9px}.health-row{margin-top:7px;font-size:8px}.health-meter{height:5px;margin-top:4px}#survival-goal{font-size:10px;margin:8px 0;line-height:1.4}.resource-strip{padding-bottom:8px;font-size:9px}.survival-actions button{padding:9px 6px;font-size:10px}.survival-mode .palette-label,.survival-mode .touch-look-hint{display:none}.survival-mode .moss-chat{top:auto;bottom:99px;right:14px}.survival-mode .moss-chat-panel{height:calc(100dvh - 205px);max-height:calc(100dvh - 205px);min-height:0}.survival-mode .build-pad{grid-template-columns:repeat(2,43px)}.survival-mode .target-label{top:calc(50% + 17px);font-size:9px;max-width:92vw;white-space:normal}.survival-mode .edit-feedback{top:calc(50% + 56px);font-size:9px}.survival-mode .toast{top:251px;font-size:10px}.inventory-card{padding:20px}.inventory-header h2{font-size:25px}.inventory-resources{gap:5px}.resource-item{padding:7px}.resource-item strong{font-size:16px}.craft-recipe{padding:10px;gap:9px}.recipe-icon{width:30px;height:34px;font-size:23px}.recipe-info small{font-size:8px}.craft-tip{font-size:9px}.survival-mode .block-slot{width:42px}}
@media(max-height:650px) and (min-width:561px){.survival-hud{top:136px;left:22px;width:247px;padding:10px 12px}.survival-heading strong{font-size:16px}#survival-goal{margin:8px 0;font-size:10px}.health-row{margin-top:8px}.resource-strip{padding-bottom:8px}.survival-actions button{font-size:9px}.survival-mode .world-info{top:69px}.survival-mode .desktop-hint{font-size:8px}.world-choice{margin-bottom:13px}.world-choice a{padding:9px 11px}.welcome-features{margin-top:13px;padding-top:10px}.inventory-card{padding:20px;max-height:calc(100dvh - 24px)}.inventory-resources{grid-template-columns:repeat(7,1fr);gap:4px;margin-bottom:10px}.resource-item{padding:6px}.resource-item strong{font-size:15px}.craft-recipe{padding:8px}.craft-tip{margin-top:10px}.inventory-header h2{font-size:25px}.inventory-note{margin:9px 0 12px}.survival-mode .moss-chat{top:84px}.survival-mode .touch-controls .move-pad,.survival-mode .touch-controls .build-pad{bottom:115px}}
@media(max-height:520px) and (min-width:561px){.survival-hud{top:133px;width:220px}.survival-hud #survival-goal{font-size:9px}.survival-hud .health-row{font-size:8px}.survival-hud .survival-actions{flex-wrap:wrap}.survival-actions kbd{display:none}.survival-mode .touch-controls .move-pad{left:auto;right:134px}.survival-mode .touch-controls .build-pad{right:22px}.survival-mode .touch-controls .move-pad,.survival-mode .touch-controls .build-pad{bottom:90px}.survival-mode .touch-controls .touch-look-hint{display:none}.survival-mode .palette-wrap{bottom:10px}.survival-mode .palette-label{display:none}.survival-mode .welcome-card{margin-top:60px}.survival-mode .welcome-card .intro,.survival-mode .welcome-features{display:none}.survival-mode .welcome-card h1{font-size:37px;margin:14px 0}.survival-mode .join-row input,.survival-mode .join-row button{padding:12px}}

.stream-mode .wordmark{padding:8px 12px;border-radius:18px;background:rgba(248,250,236,.94);box-shadow:0 3px 14px #102a2418}

/* Survival's playable inventory: six honest material slots, compact vitals, open sky. */
.survival-world-choice{align-items:center}.survival-world-choice>a{flex:0 1 260px}.archive-note{font-size:10px;color:#62755d;max-width:110px;line-height:1.5;padding:0 8px}
.survival-mode.playing .world-info{top:94px;left:28px;padding:8px 11px;gap:3px}.survival-mode.playing .world-info #player-count{font:12px Arial,sans-serif}.survival-mode .coordinates{display:none}
.survival-mode .palette-wrap{bottom:max(16px,env(safe-area-inset-bottom));width:392px}.survival-mode .palette{justify-content:center;gap:5px;padding:7px;border-radius:7px;background:#233c32e8;border-color:#e6eace88;box-shadow:0 3px 0 #14251e99}.survival-mode .block-slot{width:56px;height:56px;border-radius:3px;background:#c9d2b866}.survival-mode .block-slot.selected{background:#dbe7bb;border-color:#f8ffe5;transform:translateY(-2px);box-shadow:0 2px 0 #8da673}.survival-mode .block-slot .slot-key{color:#fffbe9}.survival-mode .block-slot.selected .slot-key{color:#304d32}.survival-mode .slot-count{font-size:11px;right:3px;bottom:2px;border-radius:2px}.survival-mode .palette-label{display:block;width:max-content;max-width:100%;margin:0 auto 7px;padding:5px 10px;font-size:11px;background:#213d32db;color:#fffde7;border-radius:4px}.survival-mode .palette-label span{color:#dae5ca}.survival-mode .desktop-hint{width:650px;margin:10px 0 0 -129px;white-space:normal;font-size:9px;line-height:1.5;color:#fffce7;text-shadow:0 1px 3px #132d24,0 1px 8px #132d24}
.survival-mode .survival-hud{top:auto;right:auto;left:calc(50% - 196px);bottom:139px;width:392px;padding:10px 12px;display:grid;grid-template-columns:1fr auto;gap:6px 10px;background:#213c32e6;color:#f8fae7;border-radius:7px;border:1px solid #e8edce66;box-shadow:0 3px 15px #142d2322;backdrop-filter:none}
.survival-mode .survival-heading{position:fixed;top:97px;left:calc(50% - 113px);width:226px;padding:8px 12px;background:#f5f7e9e6;border:1px solid #fff7;border-radius:6px;color:#294834}.survival-mode .survival-heading strong{font:14px Georgia,serif}.survival-mode .survival-heading>span{font-size:10px;color:#536b4a}
.survival-mode .health-row{grid-column:1/-1;margin:0;font-size:11px}.survival-mode .health-row>span:last-child{font-size:9px;color:#d3dfc6}.survival-mode .health-meter{grid-column:1/-1;margin:0;height:9px;border-radius:2px;background:#10291e;overflow:hidden}.survival-mode .health-meter>span{background:repeating-linear-gradient(90deg,#d77d6c 0 8%,#e69a81 8% 9%,transparent 9% 10%);transition:width .2s}.survival-mode .health-meter.low-health>span{background:repeating-linear-gradient(90deg,#f16553 0 9%,transparent 9% 10%)}
.survival-mode #survival-goal{position:fixed;top:136px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 32px);padding:7px 10px;margin:0;color:#faffdf;background:#233d32c9;border-radius:5px;font-size:10px;line-height:1.4;text-align:center;pointer-events:none}
.survival-mode .resource-strip{grid-column:1;align-self:end;gap:10px;padding:0;font-size:10px;color:#d0dec3;white-space:nowrap}.survival-mode .resource-strip b{margin-left:1px;color:#fffbe0}.tool-status{grid-column:1;font-size:9px;color:#b5cda4;white-space:nowrap}.survival-mode .survival-actions{grid-column:2;grid-row:3/5;align-self:center;gap:5px}.survival-mode .survival-actions button{padding:8px 9px;font-size:10px;min-height:38px;border:1px solid #dce8bc66;background:#dce9bf;color:#254730;border-radius:4px}.survival-mode .survival-actions button:first-child{background:#e8edcf;color:#254730}.survival-mode .survival-actions button:disabled{opacity:.38}.survival-mode .survival-actions kbd{display:inline}
.inventory-tools{font-size:11px;line-height:1.5;color:#3e643c;background:#e7edd8;border-left:3px solid #8ca369;border-radius:3px;margin:0 0 14px;padding:9px 11px}.recipe-cost{font-variant-numeric:tabular-nums}.inventory-open .survival-hud,.inventory-open .palette-wrap{visibility:hidden}.inventory-card .icon-button{min-width:44px;min-height:44px}.craft-recipe button{min-height:42px;min-width:78px}.craft-recipe button:disabled{color:#627052}.inventory-note{color:#607254}.recipe-info small{color:#6a765e}
.debug-panel{position:fixed;z-index:18;top:150px;left:16px;padding:12px;background:#10231de8;color:#def1ce;border:1px solid #b2d3a455;border-radius:5px;white-space:pre;font:11px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;pointer-events:none;max-width:calc(100vw - 32px);overflow:hidden}.stream-mode .debug-panel{display:none!important}
.survival-mode .build-pad #touch-jump{grid-column:auto;width:52px}.survival-mode.touch-mode .move-pad,.survival-mode.touch-mode .build-pad{bottom:224px;grid-template-columns:repeat(2,52px);gap:7px}.survival-mode.touch-mode .move-pad{left:20px;grid-template-columns:repeat(3,52px);grid-template-rows:repeat(2,52px)}.survival-mode.touch-mode .build-pad{right:20px}.survival-mode.touch-mode .touch-controls button{width:52px;height:52px;border-radius:8px;background:#f4f7e3d9}.survival-mode.touch-mode .touch-controls button small{font-size:8px}.survival-mode .touch-look-hint{display:none}.survival-mode .toast{top:177px}
.stream-mode .survival-hud{left:28px;bottom:auto;top:146px;display:block;width:250px}.stream-mode .survival-heading{position:static;width:auto;padding:0;background:none;border:0;color:#f7f9e3}.stream-mode .survival-heading>span{color:#d0dec1}.stream-mode #survival-goal{position:static;transform:none;padding:0;margin-top:8px;background:none;width:auto;text-align:left}.stream-mode .tool-status{display:none}
@media(max-width:850px){.survival-mode .topbar{padding:18px 22px}.survival-mode .survival-heading{top:76px}.survival-mode.playing .world-info{top:76px;left:22px}.survival-mode #survival-goal{top:116px}.survival-mode .toast{top:156px}.survival-mode .moss-chat{top:77px;bottom:auto;right:22px}.survival-mode .moss-chat-panel{height:calc(100dvh - 146px);max-height:calc(100dvh - 146px);min-height:0}}
@media(max-width:560px){.survival-mode .topbar{padding:17px 14px}.survival-mode.playing .world-info{display:none}.survival-mode .survival-heading{top:70px;left:14px;width:194px}.survival-mode #survival-goal{top:114px;font-size:9px}.survival-mode .moss-chat{top:69px;right:14px;bottom:auto}.survival-mode .moss-chat-panel{height:calc(100dvh - 132px);max-height:calc(100dvh - 132px);min-height:0}.survival-mode .palette-wrap{width:min(362px,calc(100vw - 24px));bottom:max(12px,env(safe-area-inset-bottom))}.survival-mode .palette{gap:4px;padding:5px}.survival-mode .block-slot{width:calc((100vw - 67px)/6);max-width:53px;height:48px}.survival-mode .palette-label{display:block;font-size:10px;margin-bottom:5px}.survival-mode .desktop-hint{display:none!important}.survival-mode .survival-hud{width:min(362px,calc(100vw - 24px));left:50%;margin-left:max(-181px,calc(-50vw + 12px));bottom:calc(103px + env(safe-area-inset-bottom));padding:8px 10px;gap:5px 7px}.survival-mode .resource-strip{font-size:9px;gap:7px}.survival-mode .survival-actions button{font-size:9px;padding:8px 6px;min-height:42px}.survival-mode .survival-actions kbd{display:none}.survival-mode .tool-status{font-size:8px}.survival-mode .health-row{font-size:10px}.survival-mode .survival-hud .health-row>span:last-child{font-size:8px}.survival-mode.touch-mode .move-pad,.survival-mode.touch-mode .build-pad{bottom:calc(205px + env(safe-area-inset-bottom))}.survival-mode.touch-mode .move-pad{left:12px;grid-template-columns:repeat(3,48px);grid-template-rows:repeat(2,48px);gap:5px}.survival-mode.touch-mode .build-pad{right:12px;grid-template-columns:repeat(2,48px);gap:5px}.survival-mode.touch-mode .touch-controls button,.survival-mode .build-pad #touch-jump{width:48px;height:48px}.debug-panel{top:152px;font-size:9px;padding:9px}.inventory-card{padding:18px}.inventory-resources{grid-template-columns:repeat(4,1fr)}.inventory-header h2{font-size:24px}.archive-note{font-size:9px}.stream-mode .survival-hud{left:14px;margin:0;top:115px;bottom:auto;width:230px}.stream-mode .survival-heading{width:auto}}
@media(max-height:540px) and (min-width:561px){.survival-mode .topbar{padding:12px 20px}.survival-mode .survival-heading{top:60px}.survival-mode.playing .world-info{top:60px}.survival-mode #survival-goal{top:99px}.survival-mode .palette-wrap{width:332px;bottom:8px}.survival-mode .block-slot{width:46px;height:44px}.survival-mode .palette-label{margin-bottom:4px;font-size:9px}.survival-mode .survival-hud{width:332px;left:calc(50% - 166px);bottom:112px;padding:7px 9px;gap:4px}.survival-mode .survival-actions button{padding:6px;font-size:9px}.survival-mode .resource-strip{gap:6px;font-size:9px}.survival-mode .tool-status{font-size:8px}.survival-mode .desktop-hint{width:600px;margin-left:-134px;font-size:8px;margin-top:5px}.survival-mode.touch-mode .move-pad{left:18px;right:auto}.survival-mode.touch-mode .move-pad,.survival-mode.touch-mode .build-pad{bottom:24px}.survival-mode.touch-mode .build-pad{right:18px}.survival-mode .toast{top:136px}.survival-mode .moss-chat{top:59px}.survival-mode .moss-chat-panel{height:calc(100dvh - 110px);max-height:calc(100dvh - 110px)}}
.survival-mode .block-slot.empty .block-icon{opacity:.45}.survival-mode .block-slot.empty .slot-count{color:#6c7763;background:#e4e8d2b8}
#mouse-lock-button{width:auto;margin:0;padding:10px 12px;white-space:nowrap;min-height:40px}#mouse-lock-status{font-size:12px;line-height:1.5;color:#365345}.stream-mode #mouse-lock-button{display:none!important}@media(max-width:560px){#mouse-lock-button{font-size:10px;padding:8px}.top-actions{gap:5px}}

/* Shared campfire care: one resource-backed action, with a readable cold/low state. */
.survival-mode .tool-status{grid-row:4}.campfire-fuel{grid-column:1/-1;grid-row:5;display:grid;grid-template-columns:minmax(0,1fr) 118px;gap:3px 10px;border-top:1px solid #dce8bf30;padding-top:7px;margin-top:2px}.fire-summary{display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:0}.fire-summary strong{font-size:11px;font-weight:700;font-variant-numeric:tabular-nums;color:#ffdf9e}.fire-summary>span{font-size:9px;color:#cfdec0;line-height:1.3}.campfire-fuel button{min-height:44px;padding:7px 8px;border:1px solid #efdaa178;border-radius:4px;background:#f0d295;color:#43351d;font-size:10px;font-weight:700;touch-action:manipulation}.campfire-fuel button:disabled{opacity:.45;cursor:default}.fuel-cost{font-size:8px;line-height:1.3;color:#c4d1b4;grid-column:1/-1}.fuel-status{grid-column:1/-1;color:#efe4b7;font-size:9px;line-height:1.4;max-width:100%;overflow-wrap:anywhere}.fuel-status:empty{display:none}.fuel-low .fire-summary strong,.fuel-low .fire-summary>span{color:#ffd277}.fuel-cold .fire-summary strong{color:#ebc4b4}.fuel-cold .fire-summary>span{color:#d6c4ba}.stream-mode .campfire-fuel{display:none!important}.forage-tag{background:#493b26ed;border:1px solid #e6ce9277;color:#fff0c7;font-size:10px;max-width:260px}.forage-tag:before{content:'⌁';font-size:14px;vertical-align:0;color:#ffd684}
.survival-mode.touch-mode .move-pad,.survival-mode.touch-mode .build-pad{bottom:292px}
@media(max-width:560px){.campfire-fuel{grid-template-columns:minmax(0,1fr) 112px;gap:3px 7px;padding-top:6px}.fire-summary strong{font-size:10px}.fire-summary>span{font-size:8px}.campfire-fuel button{font-size:9px;min-height:44px}.fuel-cost{font-size:8px}.survival-mode.touch-mode .move-pad,.survival-mode.touch-mode .build-pad{bottom:calc(273px + env(safe-area-inset-bottom))}.forage-tag{font-size:9px}}
@media(max-height:540px) and (min-width:561px){.campfire-fuel{grid-template-columns:minmax(0,1fr) 105px;padding-top:5px;gap:2px 6px}.fire-summary strong{font-size:10px}.fire-summary>span{font-size:8px}.campfire-fuel button{font-size:9px;min-height:40px}.fuel-cost{font-size:7px}.survival-mode.touch-mode .move-pad,.survival-mode.touch-mode .build-pad{bottom:24px}}
.fuel-status{max-height:26px;overflow:hidden}.survival-mode.touch-mode .move-pad,.survival-mode.touch-mode .build-pad{bottom:336px}
@media(max-width:560px){.survival-mode.touch-mode .move-pad,.survival-mode.touch-mode .build-pad{bottom:calc(301px + env(safe-area-inset-bottom))}}
@media(max-height:540px) and (min-width:561px){.survival-mode.touch-mode .move-pad,.survival-mode.touch-mode .build-pad{bottom:24px}}
.camp-return-note{display:block;margin:9px 0 0;font-size:11px;line-height:1.45;color:#365345}

/* Seven real material slots, including a plantable, resource-backed sapling. */
.survival-mode .palette{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.survival-mode .block-slot{width:100%;min-width:0}.block-slot[data-block="9"] .block-icon{width:28px;height:31px;background:linear-gradient(90deg,transparent 44%,#80623d 44% 56%,transparent 56%),linear-gradient(135deg,#a4c66b,#5f8c41);clip-path:polygon(43% 100%,43% 64%,12% 60%,0 31%,32% 28%,45% 44%,47% 20%,31% 13%,45% 0,77% 7%,66% 33%,100% 39%,91% 66%,60% 70%,57% 100%);box-shadow:none;transform:none}.sapling-tag{background:#2f4d2ce8;border-color:#c0dda477;color:#edf8d9;font-size:10px;max-width:290px}.sapling-tag:before{content:'♧';font-size:13px;vertical-align:0;color:#bade84}.sapling-tag.sapling-blocked{background:#55472fea;color:#ffe7b2;border-color:#d8b66d99}
@media(max-width:560px){.survival-mode .palette{gap:3px}.survival-mode .block-slot{width:100%;max-width:none;height:48px}.sapling-tag{font-size:9px}.inventory-resources{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-height:540px) and (min-width:561px){.survival-mode .block-slot{width:100%;height:44px}.inventory-resources{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Death owns one clear dialog; spawn immunity is brief, server-confirmed help. */
.playing.dead #mouse-lock-button,.playing.dead #menu-button{display:none!important}.pause-card{max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}.death-camp-note{border-left:3px solid #b38855;padding-left:10px;color:#70513a!important}.death-status{font-size:11px!important;color:#6d4c39!important;min-height:0}.death-status:empty{display:none}.survival-death .secondary-button{justify-content:center;min-height:44px}.survival-death .primary-button:disabled{opacity:.55;cursor:default}.pause-protection{background:#e4eed2;border:1px solid #a9c689;border-radius:6px;padding:10px;font-size:11px!important;color:#365638!important}.survival-mode #survival-goal.spawn-protected{background:#244f48ed;color:#e4ffdc;border:1px solid #bfe6a8aa;font-weight:700}
@media(max-height:480px){.survival-death .pause-card{padding:20px}.survival-death h2{margin:12px 0;font-size:30px}.survival-death .primary-button{margin-top:15px}}

/* One readable next step and a compact, server-confirmed three-night goal. */
.survival-mode #survival-goal{background:#233d32;color:#faffdf;overflow-wrap:anywhere;max-width:min(660px,calc(100vw - 28px));min-height:28px}
.survival-mode .health-row{gap:6px;flex-wrap:wrap}.survival-mode .health-row #nights-label{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.survival-mode .health-row #nights-label.goal-complete{color:#e2f5a8;font-weight:700}
.survival-mode.touch-mode .survival-actions button{min-height:44px;touch-action:manipulation}
.stream-mode #nights-label{display:none!important}
@media(max-width:560px){.survival-mode #survival-goal{font-size:10px;line-height:1.4}.survival-mode .health-row #nights-label{font-size:9px}}

/* One control surface at a time, with the shared island's live state in view. */
.brand-cube{width:24px;height:24px;border:2px solid currentColor;transform:rotate(45deg);position:relative;margin:4px 7px 4px 3px}
.brand-cube:after{content:'';position:absolute;inset:3px;border:1px solid currentColor}
.menu-icon{display:block;width:16px;height:12px;margin:auto;border-top:2px solid currentColor;border-bottom:2px solid currentColor;position:relative}
.menu-icon:after{content:'';position:absolute;top:4px;left:0;width:16px;border-top:2px solid currentColor}
.arrow-icon,.primary-button:after{display:block;flex:none;width:13px;height:13px;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:rotate(45deg);margin-right:4px}
.primary-button:after{content:''}.primary-button .arrow-icon{display:none}
button,.icon-button,#mouse-lock-button{min-height:44px}.icon-button,.dialog-close{min-width:44px;min-height:44px}
.primary-button,.secondary-button{font-size:14px}.primary-button:disabled,.secondary-button:disabled{opacity:.65;cursor:default}
.island-label{display:flex;flex-wrap:wrap;gap:8px 13px;align-items:center;margin:0 0 22px;font-size:11px;font-weight:700;letter-spacing:1.1px;color:#365539}
.island-label span{font-size:12px;font-weight:400;letter-spacing:0;color:#48634c}
.privacy-note{font-size:11px;color:#435c47}.welcome-features{font-size:12px;flex-wrap:wrap;gap:10px 20px;color:#3d593f}
.welcome-features span:before{content:'';width:5px;height:5px;background:#6b8756;border-radius:50%}
.join-recovery{display:flex;align-items:center;gap:14px;max-width:467px;margin-top:10px;padding:10px 12px;border:1px solid #78966b55;border-radius:7px;background:#f5f8e9e8}.join-recovery p{flex:1;min-width:0;margin:0;color:#365345;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.join-recovery .secondary-button{flex:none;width:auto;min-width:78px;min-height:44px;margin:0;padding:10px 14px;font-size:12px}.join-row input:disabled{opacity:1;color:#5b6d59;background:#e8eddd;cursor:default}
.pause-card{width:390px;padding:28px;max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
.pause-card h2{font-size:34px;margin:18px 0}.pause-card p{font-size:13px;color:#425c47;line-height:1.5}
.menu-live{border:1px solid #c0cdb0;background:#e8eddb;border-radius:8px;padding:12px 14px}
.menu-live strong,.inventory-live strong{font-size:14px;font-variant-numeric:tabular-nums}
.menu-live p{margin:6px 0 0;color:#3d523e;font-size:12px}.health-warning{color:#8a3427!important}
.menu-live:has(.health-warning),.inventory-live:has(.health-warning){background:#f7e6d8;border-color:#d69a77}
.pause-card .camp-return-note{font-size:11px;line-height:1.5;text-align:left;color:#506348;margin:9px 0 0}
.pause-card .text-button{min-height:44px;margin:10px auto 0;font-size:13px;padding:8px 15px;text-decoration:underline;text-underline-offset:3px}
.pause-protection{font-size:12px!important;line-height:1.5}.pause-card #mouse-lock-status{font-size:13px;color:#365345;margin:14px 0}
.controls-paused .survival-hud,.controls-paused .palette-wrap,.controls-paused .touch-controls,.controls-paused #target-label,.controls-paused #edit-feedback{visibility:hidden}
.chat-active .top-actions,.chat-active .world-info{visibility:hidden}.playing.dead .moss-chat{display:none!important}
.inventory-panel{padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom))}
.inventory-card{width:580px;max-width:100%;padding:0;max-height:100%;display:flex;flex-direction:column;overflow:hidden;border:1px solid #f8faed;border-radius:18px}
.inventory-header{flex:none;padding:22px 24px 12px;gap:12px;align-items:center}.inventory-header h2{font-size:30px;margin:10px 0 0;line-height:1.15}
.inventory-header .eyebrow{font-size:10px}.inventory-header .icon-button{flex:none}
.inventory-live{flex:none;display:flex;flex-wrap:wrap;gap:4px 16px;justify-content:space-between;align-items:center;padding:10px 24px;background:#e8eddb;border-block:1px solid #d2dbc5;font-size:12px;color:#40573e}
.inventory-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 24px;scrollbar-width:thin;scrollbar-color:#9bac85 transparent}
.inventory-resources{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0 0 12px}
.resource-item{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:8px;background:#e8ecd9;border-radius:5px;min-width:0}
.resource-item>span{font-size:11px;color:#4a5d43}.resource-item>strong{font-size:15px;font-weight:700;color:#304d35;font-variant-numeric:tabular-nums}
.inventory-tools{font-size:12px;padding:9px 11px;margin:0 0 12px;color:#385838}
.craft-recipes{gap:7px}.craft-recipe{padding:10px;gap:10px;min-height:70px;border-color:#c8d2bd}.recipe-info{min-width:0}.recipe-info strong{font-size:14px}.recipe-info .recipe-cost{font-size:12px;color:#475a40;margin-top:4px}.recipe-info small{font-size:11px;line-height:1.35;color:#526347;margin-top:4px}
.craft-recipe button{min-width:86px;min-height:44px;font-size:12px}.craft-recipe button:disabled{opacity:1;background:#e5e9d8;color:#58664a}
.recipe-icon{width:34px;height:38px;flex:none;background:#e5ebd0;position:relative;color:#537343;border-radius:6px}
.recipe-icon:before,.recipe-icon:after{content:'';position:absolute;display:block}
.recipe-icon-pick:before{width:5px;height:26px;background:#8f6b45;left:16px;top:7px;transform:rotate(35deg);border-radius:1px}.recipe-icon-pick:after{width:25px;height:10px;border-top:6px solid #627968;border-radius:60% 65% 0 0;transform:rotate(35deg);left:6px;top:8px}
.recipe-icon-sword:before{width:6px;height:27px;background:linear-gradient(#708777 0 66%,#8b6740 66%);left:14px;top:5px;clip-path:polygon(50% 0,100% 14%,100% 100%,0 100%,0 14%)}.recipe-icon-sword:after{width:19px;height:4px;background:#8b6740;left:8px;top:23px}
.recipe-icon-fire:before{width:17px;height:24px;border-radius:4% 75% 48% 70%;background:#c8773e;transform:rotate(30deg);left:9px;top:5px}.recipe-icon-fire:after{width:9px;height:14px;border-radius:4% 75% 48% 70%;background:#e7bd66;transform:rotate(30deg);left:13px;top:15px}
.recipe-icon-sapling:before{width:3px;height:23px;background:#8b6740;left:16px;top:10px}.recipe-icon-sapling:after{width:23px;height:16px;left:6px;top:7px;background:#759553;clip-path:polygon(0 15%,35% 20%,45% 50%,52% 10%,100% 0,97% 65%,55% 100%,48% 67%,16% 76%)}
.craft-tip{font-size:12px;line-height:1.5;color:#526247;margin:12px 0 0}.inventory-footer{flex:none;padding:12px 24px 15px;background:#f8f8ed;border-top:1px solid #d3dcc5;box-shadow:0 -5px 14px #203d3408}
.inventory-footer .primary-button{margin:0;min-height:48px}.inventory-footer .craft-status{margin:0 0 9px;font-size:12px;line-height:1.4;color:#3c5e3b}.inventory-footer .craft-status:empty{display:none}.inventory-footer .inventory-note{display:block;text-align:center;margin:7px 0 0;font-size:11px;color:#4f6147}
dialog{max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}dialog p,dialog dd{font-size:13px;color:#495f43}dialog dt{font-size:13px}dialog .help-footnote{font-size:12px;color:#4c6045}
.survival-mode .survival-hud{width:420px;left:calc(50% - 210px);grid-template-columns:minmax(0,1fr) auto;background:#213c32f2;gap:6px 10px}
.survival-mode .resource-strip{font-size:12px;gap:9px;white-space:normal;flex-wrap:wrap}.survival-mode .tool-status{font-size:11px;color:#d1dfc2;white-space:normal;line-height:1.35}.survival-mode .survival-actions button{min-height:44px;font-size:12px;padding:8px}.survival-mode .survival-actions button:disabled{opacity:1;background:#435c47;color:#dbe6cc;border-color:#7c9271}
.survival-mode .health-row{font-size:12px}.survival-mode .health-row>span:last-child{font-size:11px}.survival-mode .survival-heading>span{font-size:11px}.survival-mode #survival-goal{font-size:12px;line-height:1.45;padding:7px 12px}
.survival-mode .palette-wrap{width:420px}.survival-mode .palette{grid-template-columns:repeat(7,minmax(44px,1fr));overflow-x:auto}.survival-mode .block-slot{min-width:44px;min-height:44px}.survival-mode .slot-count{font-size:12px}.survival-mode .palette-label{font-size:12px}.survival-mode .palette-label span{font-size:11px}.survival-mode .desktop-hint{font-size:11px;width:720px;margin-left:-150px;line-height:1.4}
.fire-summary strong{font-size:12px}.fire-summary>span,.fuel-cost,.fuel-status{font-size:11px;line-height:1.4;color:#dce7cd}.fuel-status{max-height:none;overflow:visible}.campfire-fuel button{font-size:12px;min-height:44px}.campfire-fuel button:disabled{opacity:1;background:#665c3d;color:#f2e1b9;border-color:#a99b6a}
.survival-mode.touch-mode .move-pad,.survival-mode.touch-mode .build-pad{bottom:244px}.survival-mode.touch-mode.near-fire .move-pad,.survival-mode.touch-mode.near-fire .build-pad{bottom:344px}
.stream-mode .survival-hud{width:250px;left:28px}.stream-mode .resource-strip,.stream-mode .inventory-panel,.stream-mode .pause-menu,.stream-mode .survival-death{display:none!important}
@media(max-width:560px){
  .survival-mode .topbar{padding:12px max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left));gap:8px}.topbar .wordmark{font-size:10px;letter-spacing:.5px}.brand-cube{width:18px;height:18px;margin-right:2px}.wordmark{gap:7px}.top-actions{gap:5px}.connection-pill{font-size:10px;padding:9px;max-width:132px}.playing .topbar .wordmark>span:last-child{display:none}
  .survival-mode .welcome-card{max-height:calc(100dvh - 98px);margin-inline:22px}.survival-mode .welcome{padding-bottom:max(22px,env(safe-area-inset-bottom))}.island-label{margin-bottom:16px}.privacy-note{font-size:11px}.welcome-features{font-size:11px!important;gap:8px 15px}
  .pause-card{padding:22px}.pause-card h2{font-size:30px}.pause-card .eyebrow{font-size:10px}.pause-card .primary-button{margin-top:16px}
  .inventory-header{padding:16px 16px 12px}.inventory-header h2{font-size:25px}.inventory-live{padding:10px 16px;font-size:11px}.inventory-scroll{padding:12px 14px}.inventory-footer{padding:10px 14px 12px}.resource-item{padding:7px 6px}.resource-item>span{font-size:10px}.resource-item>strong{font-size:14px}.recipe-icon{width:30px}.craft-recipe{gap:8px;padding:9px 8px}.recipe-info strong{font-size:13px}.recipe-info .recipe-cost{font-size:11px}.recipe-info small{font-size:11px}.craft-recipe button{min-width:76px;padding:8px;font-size:11px}
  .survival-mode .survival-heading{top:71px;width:186px}.survival-mode #survival-goal{top:119px;max-width:calc(100vw - 24px);font-size:11px}.survival-mode .survival-hud{width:calc(100vw - 24px);max-width:420px;left:12px;right:12px;margin:0 auto;bottom:calc(106px + env(safe-area-inset-bottom));padding:8px 10px;gap:5px 8px}.survival-mode .resource-strip{font-size:11px;gap:5px 9px}.survival-mode .tool-status{font-size:10px}.survival-mode .survival-actions button{font-size:11px;padding:7px;min-height:44px}.survival-mode .health-row,.survival-mode .health-row #nights-label{font-size:11px}.survival-mode .palette-wrap{width:calc(100vw - 24px);max-width:420px}.survival-mode .palette{gap:3px;padding:5px}.survival-mode .palette-label{font-size:11px}.survival-mode .palette-label span{font-size:10px}.survival-mode.touch-mode .move-pad,.survival-mode.touch-mode .build-pad{bottom:calc(244px + env(safe-area-inset-bottom))}.survival-mode.touch-mode.near-fire .move-pad,.survival-mode.touch-mode.near-fire .build-pad{bottom:calc(344px + env(safe-area-inset-bottom))}.campfire-fuel{grid-template-columns:minmax(0,1fr) 112px}.fire-summary strong{font-size:12px}.fire-summary>span,.fuel-cost{font-size:10px}.campfire-fuel button{font-size:11px;min-height:44px}.stream-mode .survival-hud{width:230px;left:14px;transform:none}
}
@media(max-height:540px) and (min-width:561px){
  .inventory-header{padding:12px 18px}.inventory-header h2{font-size:25px;margin-top:6px}.inventory-live{padding:8px 18px}.inventory-scroll{padding:12px 18px}.inventory-footer{padding:10px 18px}.pause-card{padding:20px}.pause-card h2{font-size:28px;margin:12px 0}.pause-card .primary-button{margin-top:12px}.survival-mode .survival-hud{width:360px;left:calc(50% - 180px);bottom:112px}.survival-mode .palette-wrap{width:360px}.survival-mode .desktop-hint{display:none}.survival-mode #survival-goal{font-size:11px}.survival-mode.touch-mode .move-pad,.survival-mode.touch-mode .build-pad,.survival-mode.touch-mode.near-fire .move-pad,.survival-mode.touch-mode.near-fire .build-pad{bottom:max(18px,env(safe-area-inset-bottom))}
}

.inventory-scroll:focus-visible{outline:3px solid #557a42;outline-offset:-4px}

/* Reach help and chat without leaving the keyboard menu loop. */
.pause-links{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.pause-links .secondary-button{justify-content:center;min-height:44px;margin:0;font-size:12px}

/* A readable guide with a visible exit even after scrolling. */
#help-dialog{width:620px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:0;overflow:hidden;border-radius:18px}
#help-dialog[open]{display:flex;flex-direction:column}
.help-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px 16px;border-bottom:1px solid #d6dfc9;flex:none}
.help-header h2{font-size:32px;line-height:1.15;margin:10px 0 0;letter-spacing:-1px}
.help-header .dialog-close{position:static;flex:none;width:44px;height:44px;border:1px solid #b8c8a7;border-radius:50%;background:#edf1e2;color:#294437;font-size:24px}
.help-live{padding:12px 24px;background:#e8eddb;border-bottom:1px solid #c0cdb0;flex:none;font-size:12px;line-height:1.5}.help-live strong,.help-live span{display:block}.help-live strong{font-size:13px}
.help-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px 24px;scrollbar-width:thin;scrollbar-color:#9bac85 transparent}.help-scroll:focus-visible{outline:3px solid #578153;outline-offset:-4px}
#help-intro{margin:0 0 18px;font-size:14px;line-height:1.6}.help-section{margin:0 0 22px}.help-section h3{font-size:15px;margin:0 0 12px;color:#294437}.help-steps,.help-tips{margin:0;padding-left:22px;font-size:13px;line-height:1.6;color:#425c47}.help-steps li,.help-tips li{padding-left:3px;margin:0 0 10px}.help-steps strong{color:#294437}
#help-dialog .help-controls{margin:0;display:grid;gap:0}#help-dialog .help-controls>div{display:grid;grid-template-columns:135px minmax(0,1fr);gap:12px;padding:10px 0;border-bottom:1px solid #dce3d1}#help-dialog .help-controls dt{margin:0;font-size:12px;line-height:1.6}#help-dialog .help-controls dd{margin:0;font-size:13px;line-height:1.6}
.help-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 24px;border-top:1px solid #d6dfc9;flex:none;background:#edf1e2}.help-footer span{font-size:11px;color:#4c6045}.help-footer .secondary-button{width:auto;min-width:120px;min-height:44px;justify-content:center;margin:0;font-size:13px}
@media(max-width:560px){.help-header{padding:16px}.help-header h2{font-size:27px}.help-live{padding:10px 16px}.help-scroll{padding:16px}.help-footer{padding:10px 16px}.help-footer span{max-width:125px}#help-dialog .help-controls>div{grid-template-columns:1fr;gap:3px}}
@media(max-height:540px){.help-header{padding:10px 16px}.help-header .eyebrow{display:none}.help-header h2{font-size:24px;margin:0}.help-live{padding:7px 16px}.help-footer{padding:8px 16px}}

#help-alert:empty{display:none}#help-alert:not(:empty){margin-top:6px;color:#8a3427;font-weight:700}


/* Aim stays neutral; separate action lines explain gathering and placement. */
.crosshair.blocked:before,.crosshair.blocked:after{background:#ffffe8}
.target-label,.survival-mode .target-label{max-width:min(560px,calc(100vw - 28px));white-space:normal;top:calc(50% - 25px);transform:translate(-50%,-100%);text-align:left;padding:8px 11px;background:#203a30f2;border:1px solid #dbe8bb66;border-radius:6px;font-size:12px;line-height:1.45;color:#f8f9e6}
.target-primary,.target-secondary{display:block;overflow-wrap:anywhere}.target-primary{font-weight:700}.target-secondary{margin-top:3px;color:#d9ebcc}.target-primary.unavailable,.target-secondary.unavailable{color:#ffcfaa}
.survival-mode .edit-feedback{top:calc(50% + 101px);white-space:normal;max-width:min(440px,calc(100vw - 28px));font-size:12px;text-align:center}
@media(max-width:560px){.target-label,.survival-mode .target-label{font-size:11px;top:calc(50% - 20px);padding:7px 9px}.survival-mode .edit-feedback{font-size:11px;top:calc(50% + 113px)}}

.crosshair{filter:drop-shadow(0 1px 1px #10281fee) drop-shadow(0 -1px 1px #10281faa)}
@media(max-height:540px) and (min-width:561px){
  .target-label,.survival-mode .target-label{left:max(12px,env(safe-area-inset-left));top:145px;transform:none;width:calc((100vw - 404px)/2);max-width:270px;font-size:11px;line-height:1.4;padding:7px 8px}
  .survival-mode .edit-feedback{left:50%;top:calc(50% - 30px);transform:translate(-50%,-100%);max-width:330px}
}

.death-world-note{padding:9px 11px;border:1px solid #b9c8a8;border-radius:6px;background:#e8eedb;font-size:12px!important;line-height:1.4!important}.death-world-note:empty{display:none}

.stream-mode .coordinates{display:block;white-space:pre-line;text-align:right;max-width:calc(100vw - 28px)}

/* The public spectator shell shares this renderer's versioned asset cohort. */
.watch-mode{overflow:auto;background:#b8d0c8;color:#203d34;font-family:Arial,Helvetica,sans-serif}
.watch-mode [hidden]{display:none!important}.watch-mode #world{position:fixed;inset:0;width:100%;height:100%;pointer-events:none}.watch-mode #name-tags{pointer-events:none}
.watch-mode .watch-header{position:relative;z-index:10;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:22px max(24px,env(safe-area-inset-right)) 18px max(24px,env(safe-area-inset-left));background:linear-gradient(#f4f7e9eb,#f4f7e9bb,transparent)}
.watch-mode .watch-header .wordmark{padding:10px 14px;background:#f8faecf5;border-radius:24px;font-size:12px;letter-spacing:1px;color:#203d34}
.watch-header nav{display:flex;flex-wrap:wrap;gap:12px}.watch-header nav a,.watch-header nav button{display:flex;align-items:center;min-height:44px;padding:9px 14px;border-radius:24px;background:#f8faecf5;color:#294437;font-size:13px;text-decoration:none;border:1px solid #c1cfb8}
.watch-layout{position:relative;display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin:10px 24px 100px}.watch-chat-slot{flex:0 0 360px;min-width:0;scroll-margin-top:16px}.watch-panel{position:relative;z-index:9;width:356px;max-width:100%;flex-shrink:0;margin:0;padding:22px;border:1px solid #ffffffaa;border-radius:16px;background:#f7f9eef5;box-shadow:0 12px 40px #203d3422;font-size:13px;line-height:1.5}
.watch-panel h1{font:normal 34px/1.12 Georgia,serif;letter-spacing:-1px;margin:9px 0 12px}.watch-eyebrow{font-size:10px;letter-spacing:1.3px;font-weight:700;color:#507447;margin:0}.watch-intro{margin:0 0 16px;color:#496047}.watch-panel .connection-pill{display:inline-flex;max-width:none;font-size:11px;margin:0 0 12px;padding:8px 11px;background:#e8eedc}
.watch-status{font-weight:700;font-size:12px;letter-spacing:.5px;margin:0 0 6px;color:#365c3b}.watch-stale .watch-status{color:#875735}#watch-detail{margin:0 0 14px;overflow-wrap:anywhere}#watch-empty{border-left:3px solid #a7bc93;padding-left:10px;color:#617250}
.watch-panel label{display:block;font-size:12px;font-weight:700;margin-bottom:6px}.watch-panel select{font:inherit;width:100%;min-height:46px;padding:10px;border:1px solid #9db188;border-radius:7px;background:#fffef4;color:#294437;touch-action:manipulation}.watch-small{font-size:11px;color:#54694b;line-height:1.6;overflow-wrap:anywhere;margin:8px 0 12px}.watch-panel #watch-retry{justify-content:center;min-height:44px;width:100%;margin:12px 0;font-size:13px}.watch-facts{display:flex;flex-wrap:wrap;gap:4px 12px;border-top:1px solid #d0dac2;padding-top:12px;font-size:11px;color:#4c6545}.watch-panel #watch-freshness{margin-bottom:0;font-variant-numeric:tabular-nums}
.watch-mode .watch-camera-caption{position:fixed;left:auto;right:24px;top:auto;bottom:max(22px,env(safe-area-inset-bottom));z-index:8;max-width:calc(100vw - 48px);margin:0;padding:10px 14px;border-radius:8px;background:#203d34e8;color:#fffce9;font-size:12px;line-height:1.5;overflow-wrap:anywhere;pointer-events:none}.watch-mode .toast{top:auto;bottom:80px}.watch-mode .moss-chat-live{display:none!important}.watch-mode a:focus-visible,.watch-mode button:focus-visible,.watch-mode select:focus-visible{outline:3px solid #305f45;outline-offset:3px}.watch-noscript{position:relative;z-index:20;background:#fff9da;padding:16px;margin:24px;border-radius:8px}
@media(max-width:820px){.watch-mode .watch-header{padding:12px;gap:8px;align-items:flex-start;flex-direction:column}.watch-header nav{gap:7px}.watch-header nav a,.watch-header nav button{font-size:11px;padding:8px 12px}.watch-layout{flex-direction:column;gap:18px;margin:140px 12px 90px}.watch-panel{width:100%;max-width:none;padding:16px;background:#f7f9eeee}.watch-chat-slot{flex:auto;width:100%}.watch-panel h1{font-size:29px;margin:7px 0 10px}.watch-mode .watch-camera-caption{right:12px;bottom:max(12px,env(safe-area-inset-bottom));max-width:calc(100vw - 24px);font-size:11px}.watch-intro{font-size:12px}.watch-mode .watch-header .wordmark{font-size:10px}}
@media(max-height:540px) and (min-width:681px){.watch-mode .watch-header{padding-top:10px;padding-bottom:10px}.watch-panel{margin-top:0}}
