/* Survival interface */
button:disabled{cursor:not-allowed}
#world:focus{outline:none}
#capture-mouse{position:absolute;top:72px;left:50%;transform:translateX(-50%);pointer-events:auto;border-radius:4px;padding:10px 15px;font-size:11px;white-space:nowrap;color:#e5e8c8}
#damage-flash{position:fixed;inset:0;z-index:4;pointer-events:none;box-shadow:inset 0 0 150px 50px #b123377d;background:#7b18251a}
.mission{width:280px;padding:20px}.mission small{display:block;margin-top:15px;font-size:9px;line-height:1.6;color:#95ab91;letter-spacing:.3px}
.location{left:auto;right:34px;top:112px;bottom:auto;text-align:right;font-size:11px}.location small{margin-top:8px}
.survival-actions{position:absolute;right:32px;top:205px;display:grid;gap:8px;pointer-events:auto}
.survival-actions button,.combat-actions button{border-radius:4px;padding:12px 15px;font-size:11px;text-align:left;display:flex;gap:16px;justify-content:space-between;align-items:center}
.survival-actions button:hover,.combat-actions button:hover,.quickbar button:hover{background:#304c36ed}
.health-panel{position:absolute;left:32px;bottom:95px;width:260px;border-radius:5px;padding:16px 18px}
.health-title{display:flex;justify-content:space-between;align-items:center;font-size:11px;letter-spacing:2px}.health-title strong{font:16px Arial,sans-serif;letter-spacing:0;color:#f0e6c7}
.health-track{height:6px;background:#0005;border-radius:6px;margin-top:12px;overflow:hidden}#health-fill{height:100%;width:100%;background:#b4c98b;border-radius:6px;transition:width .2s}#health-fill.low{background:#df8b71}
.health-panel p{font-size:10px;margin:10px 0;color:#bdd2ac}.health-panel small{font-size:9px;color:#9bad96}
.quickbar{position:absolute;left:50%;bottom:95px;transform:translateX(-50%);display:flex;gap:7px;pointer-events:auto}.quickbar button{min-width:98px;padding:12px 10px;font-size:11px;border-radius:4px;text-align:left}.quickbar small{display:block;margin:7px 0 0 21px;color:#a9b99e;font-size:9px}.quickbar b{font-weight:400;color:#e9d498;margin-left:8px}.quickbar kbd{font-size:8px;padding:2px 4px}
.combat-actions{position:absolute;right:32px;bottom:155px;display:grid;gap:8px;pointer-events:auto}.combat-actions button{min-width:155px}
#threat{position:absolute;left:50%;top:108px;transform:translateX(-50%);text-align:center;background:#301d18de;border:1px solid #c88c6660;border-radius:5px;padding:12px 25px;color:#f1bb96}#threat strong{display:block;font-size:12px;letter-spacing:1px}#threat span{display:block;font-size:10px;margin-top:6px}
#placement-hint{position:absolute;left:50%;top:70%;transform:translateX(-50%);padding:13px 20px;font-size:12px;white-space:nowrap;border-radius:4px}
#map-panel{z-index:4;bottom:155px;background:#10251ef5;width:314px;padding:12px}.destination-label{font-size:9px;color:#a3b699}#destination{margin-top:8px;margin-left:8px;padding:5px;background:#1c352b;border:1px solid #a5c49640;border-radius:3px;font:11px inherit;color:#dce6c6;max-width:200px}.map-scales{display:flex;gap:5px;margin-top:10px}.map-scales button{flex:1;font-size:10px;background:#233a2d;border:1px solid #9db98a40;border-radius:3px;padding:6px}.map-scales button:hover{background:#385237}#map-panel p{margin:6px 0;font-size:9px}#map-panel #map-range{color:#e2dcad}
.craft-card{width:min(760px,95vw);max-height:90vh;padding:28px;display:flex;flex-direction:column;overflow:hidden}.craft-heading{display:flex;gap:15px;justify-content:space-between;align-items:center}.craft-heading h2{font-size:25px;margin:10px 0 8px}.craft-heading .quiet{font-size:10px;white-space:nowrap}.craft-card #bench-status{font-size:11px;margin:3px 0 14px;color:#c2d6b0}.craft-card #inventory-summary{padding:13px 16px;background:#0c2019;border:1px solid #b4cd8d20;border-radius:4px;font-size:12px;color:#ddd7af;line-height:1.8}.craft-tabs{display:flex;gap:10px;margin:16px 0;flex-shrink:0}.craft-tabs button{flex:1;background:transparent;border:1px solid #aec09138;padding:11px;border-radius:4px;font-size:12px;color:#b0c1a5}.craft-tabs button.active{background:#e2e9bf;color:#203528;border-color:#e2e9bf}#recipe-list{overflow-y:auto;min-height:130px;display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:1px 6px 4px 1px;scrollbar-color:#748e65 #12271f;scrollbar-width:thin}.recipe-card{padding:17px;background:#1d362b;border:1px solid #b8ce9828;border-radius:5px}.recipe-card h3{font-size:14px;font-weight:500;letter-spacing:1px;margin:0 0 10px;color:#eff0d4}.recipe-card p{font-size:11px;color:#aaba9d;line-height:1.8;margin:0 0 10px}.recipe-card small{display:block;font-size:10px;color:#d0c79a;line-height:1.7}.recipe-actions{display:flex;gap:8px;margin-top:13px}.recipe-actions button{flex:1;border:1px solid #b4c69065;background:#dce5b8;color:#223626;padding:8px;border-radius:3px;font-size:11px}.recipe-actions button.use-item{background:#284332;color:#d6e3bc}.recipe-actions button:disabled{opacity:.3}.craft-card p.craft-tip{font-size:10px;line-height:1.8;color:#97ae92;margin:13px 0 0}.modal-card{max-height:94vh;overflow-y:auto}
#toast{z-index:5;bottom:240px}.controls{gap:18px;font-size:9px;padding:12px 20px}
@media(max-width:1100px){.health-panel{width:220px;left:20px}.quickbar button{min-width:85px;padding:10px 8px}.mission{left:20px;width:250px}.survival-actions,.combat-actions{right:20px}.map-toggle{right:20px}.controls{gap:13px}.quickbar small{margin-left:0}}
@media(max-width:760px){.mission{top:95px;width:215px;padding:14px}.mission h2{font-size:15px;margin:10px 0 7px}.mission small{font-size:8px;margin-top:9px}.mission p{font-size:9px}#progress-dots{margin-top:12px}.location{top:140px;right:20px;font-size:9px}.location small{font-size:8px;letter-spacing:0}.survival-actions{top:215px;gap:5px}.survival-actions button,.combat-actions button{font-size:10px;padding:10px;min-width:0}.survival-actions kbd,.combat-actions kbd{display:none}.health-panel{bottom:83px;left:20px;width:170px;padding:12px}.health-panel small{font-size:8px}.health-title strong{font-size:14px}.health-panel p{font-size:9px}.quickbar{bottom:17px;gap:5px;left:20px;transform:none}.quickbar button{min-width:68px;font-size:10px;padding:8px}.quickbar small{font-size:8px;margin-top:6px}.quickbar b{margin-left:4px}.quickbar kbd{display:none}.combat-actions{bottom:83px;gap:6px}.map-toggle{bottom:20px;padding:12px}.map-toggle span{font-size:10px}#map-panel{bottom:80px;width:280px}#map{width:254px}#threat{top:72px;padding:7px 12px;left:50%;max-width:230px}#threat strong{font-size:10px}#threat span{font-size:9px;margin-top:3px}#placement-hint{font-size:10px;white-space:normal;width:80%;top:68%;text-align:center}#toast{bottom:215px;width:75%;font-size:10px;padding:10px;line-height:1.6}.craft-card{padding:20px;max-height:94vh}.craft-heading h2{font-size:20px}.craft-heading .quiet{padding:8px}.craft-card #inventory-summary{font-size:10px;padding:10px}.recipe-card{padding:12px}.recipe-card h3{font-size:12px}.recipe-card p{font-size:10px}.recipe-actions button{font-size:10px;padding:8px 3px}}
@media(pointer:coarse){.touch-controls{bottom:215px;left:20px}.touch-controls>span{display:none}#joystick{width:90px;height:90px}#stick{width:38px;height:38px}#interact{bottom:210px;top:auto}#placement-hint{top:57%}}
@media(max-width:450px){.mission{width:195px;left:14px;top:92px}.location{right:14px;top:130px}.survival-actions{right:14px}.quickbar{left:14px}.health-panel{left:14px;width:168px}.combat-actions{right:14px}.map-toggle{right:14px}.craft-heading .eyebrow{font-size:8px}.craft-heading h2{font-size:18px}.craft-card{padding:16px}#recipe-list{grid-template-columns:1fr}.recipe-card{padding:14px}.recipe-card p{font-size:11px}}
@media(max-height:650px) and (min-width:761px){.mission{top:90px}.health-panel,.quickbar{bottom:70px}.location{top:90px}.survival-actions{top:175px}.combat-actions{bottom:125px}.map-toggle{bottom:70px}#map-panel{bottom:25px;right:195px;width:260px}#map{width:234px}.controls{bottom:15px}.craft-card{padding:18px}.craft-tabs{margin:10px 0}.craft-card #inventory-summary{padding:8px}.craft-card #bench-status{margin-bottom:8px}#toast{bottom:205px}}

#smelting-options{padding:14px;border:1px solid #b6c79a55;border-radius:8px;background:#263a2d;margin:10px 0;color:#e5e4cd;font-size:13px}#smelting-options label{margin-right:12px}#smelt-fuel{max-width:100%;padding:10px;background:#172c21;color:#f0efd8;border:1px solid #a9be8c}#smelting-options p{font-size:12px;line-height:1.6;margin:8px 0 0}
.husbandry-modal{position:fixed;inset:0;z-index:55;display:grid;place-items:center;background:#071b12b8;padding:20px;color:#edf1de}.husbandry-sheet{width:min(860px,100%);max-height:92dvh;display:flex;flex-direction:column;border:1px solid #98b58255;border-radius:20px;background:#132c21;box-shadow:0 20px 90px #0008}.husbandry-sheet header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:22px 24px 12px}.husbandry-sheet h2{margin:6px 0;font-size:26px}.husbandry-sheet small{display:block;color:#bdcba8}.husbandry-sheet header>div:last-child{display:flex;gap:16px;align-items:center}.husbandry-sheet nav{display:flex;gap:8px;padding:6px 24px 14px}.husbandry-sheet button{border:1px solid #91ad7777;border-radius:9px;background:#284b36;color:#edf2dc;padding:10px 14px;cursor:pointer;min-height:42px}.husbandry-sheet button:disabled{opacity:.4;cursor:default}.husbandry-sheet button:hover:enabled{background:#416647}.husbandry-content{padding:0 24px 24px;overflow-y:auto;line-height:1.6;overscroll-behavior:contain}.husbandry-card{padding:14px 16px;border:1px solid #7c9d5d55;background:#1d392a;margin:12px 0;border-radius:12px}.husbandry-card h3,.husbandry-card p{margin:3px 0 9px}.husbandry-actions{display:flex;flex-wrap:wrap;gap:8px}.husbandry-tip{background:#ffffff08;border-left:3px solid #c3cf8a;padding:16px}.husbandry-shop{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.husbandry-shop article{padding:12px;background:#ffffff08;border-radius:8px;display:flex;gap:8px;align-items:center;justify-content:space-between}.husbandry-shop article>div{display:flex;gap:4px}@media(max-width:600px){.husbandry-modal{padding:8px}.husbandry-sheet{max-height:96dvh}.husbandry-sheet header{padding:14px}.husbandry-sheet header>div:last-child{align-items:flex-end;flex-direction:column;gap:6px}.husbandry-sheet nav{padding:2px 14px 12px}.husbandry-content{padding:0 14px 16px}.husbandry-shop{grid-template-columns:1fr}.husbandry-sheet h2{font-size:22px}}

/* Keep the way back to movement and the market visible while browsing recipes. */
#craft .craft-card{padding:0;max-height:calc(100dvh - 24px);overflow:hidden}
.craft-toolbar{flex-shrink:0;padding:18px 24px 14px;border-bottom:1px solid #abc38a38;background:#172e23}
.craft-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 24px 22px}
.craft-body #recipe-list{overflow:visible;min-height:0}
button.menu-resume,.husbandry-sheet button.menu-resume{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;flex-shrink:0;min-height:50px;padding:9px 17px;background:#d9e6b6;border:1px solid #f0f5d1;border-radius:7px;color:#213222;font-family:inherit;font-size:14px;font-weight:600;line-height:1.4;cursor:pointer;white-space:nowrap}
button.menu-resume span{font-size:11px;font-weight:400}
button.menu-resume:hover,.husbandry-sheet button.menu-resume:hover{background:#edf4d3}
#craft-market{display:flex;flex-direction:column;gap:5px;width:100%;min-height:56px;padding:10px 16px;border:1px solid #ffe2a2;border-radius:7px;background:#e7c678;color:#302612;text-align:left;font-family:inherit;cursor:pointer}
#craft-market:hover{background:#f3d99d}#craft-market strong{font-size:16px}#craft-market small{font-size:11px;line-height:1.4}.husbandry-sheet>header,.husbandry-sheet>nav{flex-shrink:0}.husbandry-content{min-height:0}
@media(max-width:600px){.craft-toolbar{padding:12px 14px}.craft-body{padding:14px}.craft-heading{gap:8px}.craft-heading h2{font-size:18px}.craft-heading .eyebrow{font-size:8px}button.menu-resume{padding:9px 12px}#craft-market strong{font-size:15px}#craft-market small{font-size:10px}}
@media(max-height:550px){.craft-toolbar{padding:8px 16px}.craft-heading h2{margin:0;font-size:20px}.craft-heading .eyebrow{display:none}#craft-market{min-height:44px;flex-direction:row;align-items:center;justify-content:space-between;padding:8px 12px}.craft-body{padding:12px 16px}.husbandry-sheet header{padding:10px 16px 6px}.husbandry-sheet h2{font-size:22px;margin:2px 0}.husbandry-sheet nav{padding:0 16px 8px}}
