/* Mobile stage 1: one final layout layer; combat controls retain their own pointers. */
:root{--safe-t:env(safe-area-inset-top,0px);--safe-r:env(safe-area-inset-right,0px);--safe-b:env(safe-area-inset-bottom,0px);--safe-l:env(safe-area-inset-left,0px);--paper:#f0e4c5;--muted:#b7c1a7;--line:#bfa67855;--surface:#182b24;--accent:#e6c88b}
body{font-family:Arial,sans-serif;color:var(--paper)}
/* Eliminate browser double-tap zoom across positioned HUD descendants. */
html,body{touch-action:manipulation}
#hud,#hud button,#hud canvas,#world{touch-action:none}
.screen,.sheet{touch-action:pan-y}
button,a,input,summary{-webkit-tap-highlight-color:transparent}button,input,select,summary{font-size:16px}input[type=text],input:not([type]){font-size:16px}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:2px solid #f0d497;outline-offset:3px}
button:disabled{opacity:.48}button:not(:disabled):active{filter:brightness(1.12)}
header{padding:calc(16px + var(--safe-t)) max(18px,var(--safe-r)) 12px max(18px,var(--safe-l));z-index:5;background:none}
header .brand{font-size:26px;letter-spacing:.22em}header .brand small{font-size:8px;color:#d0caaf}
header #helpBtn{width:44px;height:44px;border-radius:50%;background:#10281ed9;border-color:var(--line)}
#helpBtn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;pointer-events:none}
body:not([data-playing="true"]) #connection{background:none;border:0;font-size:9px;color:#c5ccb5}
.screen{padding:calc(90px + var(--safe-t)) max(24px,var(--safe-r)) calc(24px + var(--safe-b)) max(24px,var(--safe-l));align-items:center;justify-content:center;scroll-padding:24px;touch-action:pan-y;background:linear-gradient(90deg,#0b1918eb,#0f221b9e 70%,#152c2266)}
.lobbyPanel{display:grid;grid-template-columns:1fr 1fr;gap:48px;width:min(880px,100%);padding:28px;background:none;border:0;box-shadow:none;border-radius:0}
.lobbyPanel:before,.lobbyPanel:after{display:none}.lobbyIntro{align-self:center}.lobbyActions{padding:26px;border:1px solid var(--line);background:linear-gradient(145deg,#24362cf5,#14251ff5);border-radius:18px;box-shadow:0 20px 70px #05120f55}
.lobbyPanel .eyebrow,.sectionEyebrow{font:10px/1.5 Arial;letter-spacing:.15em;color:#c6c69d!important}.sectionEyebrow{margin-bottom:20px;color:var(--accent)!important}
.lobbyPanel h1{font:normal clamp(38px,6vw,68px)/.96 Georgia,serif;letter-spacing:-.035em;margin:22px 0}.lobbyPanel h1 em{font-weight:normal;color:#ddc084}
.lobbyPanel .lead{font-size:14px;line-height:1.7;color:#c8cfb9;margin:0 0 18px}.lobbyEmblem{display:flex;align-items:center;gap:18px;margin:18px 0}.lobbyEmblem img{width:88px;height:88px;object-fit:contain;filter:drop-shadow(0 10px 12px #0007)}.lobbyEmblem span{font:9px/1.8 Arial;letter-spacing:.16em;color:#aaba9e}
.lobbyLinks{display:flex;flex-wrap:wrap;gap:4px 16px}.lobbyLinks a{color:#e4cd98;font-size:12px;min-height:44px;display:inline-flex;align-items:center;text-underline-offset:5px;text-decoration-color:#bca46d66}
.installLink{display:block;padding:12px 0;min-height:44px;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;color:#d5d8bd;background:none;letter-spacing:.12em;font-size:10px;margin-top:12px;width:100%;text-align:left}
.buildLabel{display:block;font-size:9px;color:#9daa96;margin-top:4px}
.lobbyActions label{font-size:12px;color:#ddd7ba}.lobbyActions input:not([type=checkbox]){height:48px;border-radius:8px;background:#101f1ac9;border:1px solid #617259;color:#f5ecd7;padding:12px}
.primary{border-radius:10px;background:linear-gradient(135deg,#e8d198,#bd9c61);border:1px solid #f1db9d;min-height:48px;font-size:12px;letter-spacing:.06em;box-shadow:inset 0 1px #fff5ce66,0 4px 12px #06170e44;margin-top:12px;color:#1d2b20}
.primary span{font-size:11px;margin-top:5px}.joinRow{gap:8px;margin-top:10px}.joinRow input{min-width:0;flex:1;width:0;font-size:14px;letter-spacing:.08em}.joinRow button{flex:0 0 82px;min-height:48px;border-radius:8px;font-size:12px;background:#2c4032}
.labOption{display:flex;align-items:center;gap:10px;min-height:50px;margin:12px 0 0!important;padding:6px 0}.labOption input{width:20px;height:20px;flex:0 0 20px;padding:0;margin:0;accent-color:#d7bc7f}.labOption>span{font-size:12px}.labOption small{display:block;font-size:10px;line-height:1.5;color:var(--muted);margin-top:3px}
.lobbyActions .error:empty{display:none}.lobbyActions .error{margin:10px 0;font-size:12px;line-height:1.5}.trainingMenu{border-top:1px solid var(--line);margin-top:10px;padding-top:6px}.trainingMenu summary{cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#ece0be;list-style:none}.trainingMenu summary::after{content:'+';font-size:21px;color:#d8bc87}.trainingMenu[open] summary::after{content:'−'}.trainingMenu summary small{font-size:10px;margin-left:auto;color:var(--muted)}.trainingMenu summary::-webkit-details-marker{display:none}
.quiet,.trainingMenu button{min-height:44px;padding:12px;font-size:11px;border-radius:8px;margin-top:8px;line-height:1.35}
#offlineStatus{font-size:9px;color:#b9d398;letter-spacing:.03em;margin:18px 0 0}#offlineStatus[data-offline=true]{color:#e4bc85}.lobbyFoot{font-size:9px;line-height:1.5;margin-top:7px;color:#acb8a0}
.sheet{padding:calc(12px + var(--safe-t)) max(12px,var(--safe-r)) calc(12px + var(--safe-b)) max(12px,var(--safe-l));background:#081710bd;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;z-index:20}
.sheet .card{border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 65px #0005;background:linear-gradient(140deg,#263a2fff,#14281fff);max-height:calc(100dvh - 24px - var(--safe-t) - var(--safe-b));padding:22px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#929575 transparent}
.cardHead{align-items:center;gap:12px}.cardHead h2{font:normal 26px/1.15 Georgia;margin:4px 0 0}.cardHead small{color:#c6c39b;font-size:9px;letter-spacing:.15em}.cardHead .iconBtn{width:44px;height:44px;min-width:44px;border-radius:50%}.card p{font-size:13px;line-height:1.65;color:#c3cdb7}.card ol{padding-left:20px;font-size:13px;line-height:1.65;color:#c3cdb7}.card ol li{padding-left:5px;margin-bottom:12px}.card ol b{color:#e8d6a9}.card .footnote{font-size:11px;line-height:1.6;color:#9faf9a}
.settingsCard{width:600px}.menuSession{font-size:11px!important;margin:10px 0 16px!important;color:#d7bd8e!important}.settingsTabs{display:flex;border-bottom:1px solid var(--line);gap:6px;margin-bottom:18px}.settingsTabs button{flex:1;min-height:44px;border:0;box-shadow:none;background:transparent;border-radius:8px 8px 0 0;font-size:12px;color:#acbba2}.settingsTabs button[aria-selected=true]{color:#efd59b;border-bottom:2px solid #dcbe82;background:#cbb47d10}.settingsCard h3{font:normal 22px Georgia;margin:6px 0 12px}.settingsFooter{border-top:1px solid var(--line);padding-top:8px;margin-top:18px;display:flex;gap:10px}.settingsFooter button{flex:1;font-size:10px;margin-top:0}
.targetSetting,.settingSwitch{display:flex;align-items:center;gap:12px;padding:12px 0;min-height:50px;font-size:13px!important;line-height:1.5}.settingSwitch{justify-content:space-between;border-bottom:1px solid var(--line);margin-bottom:18px}.targetSetting input,.settingSwitch input{width:22px;height:22px;margin:0;flex:0 0 22px;accent-color:#d1b979}
.volumeLabel{display:flex;justify-content:space-between;align-items:center;font-size:13px;min-height:32px;margin:10px 0 0;color:#dbddc3}.volumeLabel output{font-size:12px;color:#dfc791}.settingsCard input[type=range]{height:44px;padding:0;width:100%;border:0;background:none;accent-color:#ddc68b;touch-action:pan-x}.soundTest{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:18px 0}.soundTest button{min-height:44px;padding:10px 14px;font-size:11px}.soundTest span{font-size:11px;color:var(--muted)}
.installHeading{display:flex;gap:16px;align-items:center}.installHeading img{border-radius:14px;flex:0 0 64px}.installHeading h3{margin:0 0 6px}.installHeading span{font-size:11px;color:var(--muted)}.appFacts{border-top:1px solid var(--line);margin-top:18px}.appFacts p{font-size:12px}.appFacts b{color:#dfcea7}
.waitingCard{width:540px}.waitingCard #codeTitle{font:30px/1.2 Georgia;letter-spacing:.18em;color:#f2d998}.shareActions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.shareActions button{min-height:44px;padding:8px 12px;font-size:10px}.playerRow{padding:12px 0;min-height:44px;font-size:13px}.playerRow small{font-size:9px;color:#c5c59e}#lobbyConnection{font-size:11px;color:#bcd597;padding:10px 0;border-bottom:1px solid var(--line)}
.tutorialCard{max-height:calc(100dvh - 24px - var(--safe-t) - var(--safe-b));overflow:auto;border-radius:16px}.tutorialCard p{font-size:14px;line-height:1.6}.tutorialCard small{font-size:10px}.tutorialTop b{font-size:36px}.mapCard canvas{max-width:100%;height:auto;aspect-ratio:1}.resultCard h2{font-size:36px}.resultCard .primary{margin-top:20px}

/* The center remains the battlefield: resources and short life bar stay at the edges. */
#hud[data-control]{--left:max(8px,var(--safe-l));--right:max(8px,var(--safe-r));--edge:var(--right);--stick:104px;--action:54px;--floor:calc(20px + var(--safe-b));--craft-left:calc(var(--left) + var(--stick) + 12px);--craft-width:210px;--bow-right:calc(var(--right) + var(--stick) + 44px);--bow-width:142px;--bow-bottom:calc(var(--floor) + 68px)}
#hud[data-control] #moveStick{left:var(--left);bottom:var(--floor)}#hud #lookPad{right:var(--right);bottom:var(--floor)}
#hud[data-control] #quickCraftPanel{left:var(--craft-left);bottom:calc(6px + var(--safe-b));width:var(--craft-width);transform:none}
#hud[data-control] .craftCircles{gap:14px;justify-content:flex-start}#hud .craftGroup{gap:5px}#hud[data-control] .craftSlot{width:44px;flex:0 0 44px}#hud[data-control] .craftSlot button{width:44px;height:44px;border-radius:12px}#hud[data-control] .craftSlot.bowCraft{width:54px;flex-basis:54px}#hud #quickBow{width:54px;height:54px}#hud #quickBow canvas{width:40px;height:40px}#hud[data-control] .craftSlot>span{font-size:7px;width:100%;margin-top:4px;color:#eee2c3}
#hud #craftChoices{bottom:calc(100% + 10px)}#hud .craftNext{min-width:44px;width:44px;flex-basis:44px;height:50px}#hud .craftBubble small{font-size:7px}#hud .craftBubble span{font-size:8px}
#hud[data-control] #chopBtn{right:calc(var(--right) + var(--stick) + 8px)}#hud #bolaBtn{right:calc(var(--right) + var(--stick) + var(--action) + 14px)}#hud #healBtn{right:calc(var(--right) + var(--stick) + var(--action)*2 + 20px)}
#hud #chopBtn span,#hud #bolaBtn span,#hud #healBtn span{font-size:7px;line-height:1.2}#hud #chopBtn canvas,#hud #bolaBtn canvas,#hud #healBtn canvas{width:26px;height:26px}
#hud #coverBtn{right:calc(var(--right) + (var(--stick) - 56px)/2);bottom:calc(var(--floor) + var(--stick) + 10px);width:56px;height:56px}#coverBtn span,#coverBtn small{font-size:7px}
#hud[data-control] #shootBtn{right:var(--bow-right);bottom:var(--bow-bottom);width:var(--bow-width);height:164px;border-radius:22px;border-color:#d6c29418;background:#102a1d18;box-shadow:none}
#shootBtn #bowDraw{left:calc(50% - 80px);top:26px}#hud #bowLabel{font-size:10px;top:9px}#hud #bowString{font-size:8px;top:27px;letter-spacing:0}#hud #skillStatus{font-size:7px;top:40px;padding:0 4px;line-height:1.3}#hud #shotReadout{font-size:9px;top:54px}#shootBtn>span{font-size:7px!important;bottom:8px!important;letter-spacing:0!important}
#hud .bowCycle{width:44px;height:48px;bottom:calc(var(--bow-bottom) + 62px);border-color:#b7b28644;background:#152d216b}#hud #bowPrev{right:calc(var(--bow-right) + var(--bow-width) + 1px)}#hud #bowNext{right:calc(var(--bow-right) - 44px)}#hud #chargeMeter{bottom:27px;left:14px;right:14px}
#directionTargets .directionTarget{width:44px;height:44px}
#hud[data-control] .vitals{top:calc(9px + var(--safe-t));right:var(--right);width:120px;height:5px}.hpTrack{transition:none}#hud[data-control] .vitals small{top:calc(30px + var(--safe-t));left:var(--left);font-size:9px}
#hud #resourceStrip{left:var(--left);top:calc(2px + var(--safe-t));right:calc(var(--right) + 136px);width:max-content;max-width:calc(100% - var(--left) - var(--right) - 136px);min-height:24px;padding:1px 3px;border-radius:4px;background:#10251a66}
#hud .woodCount canvas,#hud .materialCount canvas{width:18px;height:18px}#hud .woodCount b,#hud .materialCount b{font-size:11px}#hud[data-control] #woodCounters,#hud #materialCounters{gap:4px}
#hud[data-control] .miniMap{right:var(--right);top:calc(24px + var(--safe-t));width:72px;height:72px;--map-size:72px}
body[data-playing="true"] header{left:auto;right:calc(max(8px,var(--safe-r)) + 124px);top:calc(22px + var(--safe-t));padding:0}body[data-playing="true"] header #helpBtn{width:44px;height:44px}body[data-playing="true"] header .brand,body[data-playing="true"] header #connection{display:none}
#hud #nextBowPreview{left:var(--left);top:calc(49px + var(--safe-t));width:210px;border-left:0;border-radius:8px;padding:4px;background:linear-gradient(90deg,#10251cac,transparent)}#nextBowPreview b{font-size:9px}#nextBowPreview .nextBowIcon{width:38px;height:38px;flex-basis:38px}
#hud #rangePanel{top:calc(105px + var(--safe-t));padding:7px 10px;max-width:calc(100vw - 24px - var(--safe-l) - var(--safe-r));border-radius:12px;background:#122a20e8}#rangePanel button{min-height:44px;padding:7px 10px;font-size:10px}#rangePanel span{font-size:11px}#rangePanel b{font-size:10px}
#rangeTools summary{min-height:44px;cursor:pointer;list-style:none;padding:3px 16px 3px 3px;position:relative;display:flex;flex-direction:column;justify-content:center}#rangeTools summary::-webkit-details-marker{display:none}#rangeTools summary:after{content:'+';position:absolute;right:0;top:12px;color:#d7c494}#rangeTools[open] summary:after{content:'−'}#rangeTools>div{display:flex;gap:6px;justify-content:center;padding-top:7px}
#hud #zoneNotice{left:var(--left);top:calc(108px + var(--safe-t));font-size:10px}#hud #feed{left:var(--left);top:calc(150px + var(--safe-t));max-width:220px;font-size:9px}
#hud #lockStatus,#hud #target,#hud #hitConfirm,#toast{max-width:min(290px,calc(100vw - 36px));line-height:1.4}#toast{font-size:12px;padding:9px 13px;border-radius:8px;z-index:40}
@media(orientation:landscape) and (max-width:760px){
 #hud[data-control]{--stick:84px;--action:48px;--bow-width:128px;--bow-bottom:calc(var(--floor) + 62px)}#hud[data-control] #shootBtn{height:154px}#hud[data-control] .craftCircles{gap:10px}#hud #quickBow{width:50px;height:50px}#hud[data-control] .craftSlot.bowCraft{width:50px;flex-basis:50px}#hud #bowString{font-size:7px}#hud #skillStatus{font-size:6px}#hud #rangePanel{top:calc(70px + var(--safe-t));left:50%;max-width:300px}#hud #rangePanel span{font-size:10px}
}
@media(orientation:portrait){
 header{padding-top:calc(14px + var(--safe-t))}body:not([data-playing="true"]) #connection{display:none}body:not([data-playing="true"]) #helpBtn{margin-left:auto}
 .screen{padding:calc(90px + var(--safe-t)) max(18px,var(--safe-r)) calc(20px + var(--safe-b)) max(18px,var(--safe-l));align-items:flex-start}.lobbyPanel{display:flex;flex-direction:column;gap:20px;padding:0;max-width:460px}.lobbyIntro{align-self:stretch}.lobbyPanel h1{font-size:44px;margin:12px 0}.lobbyPanel h1 br{display:none}.lobbyPanel h1 em{margin-left:4px}.lobbyPanel .lead{font-size:12px;margin:0}.lobbyEmblem{display:none}.lobbyLinks{gap:4px 14px}.lobbyLinks a{font-size:11px;min-height:40px}.installLink{position:static;margin-top:4px;min-height:40px;padding:10px 0}.buildLabel{display:none}.lobbyActions{padding:20px}.sectionEyebrow{margin-bottom:14px}
 #hud[data-control]{--stick:82px;--action:46px;--floor:calc(80px + var(--safe-b));--craft-left:var(--left);--bow-width:132px;--bow-bottom:calc(var(--floor) + 68px);--bow-right:calc(var(--right) + var(--stick) + 44px)}
 #hud[data-control] #shootBtn{height:158px}#hud #nextBowPreview{width:min(190px,calc(100vw - 178px));top:calc(46px + var(--safe-t))}#nextBowPreview .nextBowIcon{width:30px;height:30px;flex-basis:30px}#nextBowPreview b{font-size:8px}.bowNeed{min-width:24px}.bowNeed canvas{width:18px;height:18px}.bowNeed small{font-size:9px}
 #hud #resourceStrip{max-width:calc(100% - var(--left) - var(--right));right:var(--right)}#hud .woodCount canvas,#hud .materialCount canvas{width:15px;height:15px}#hud .woodCount b,#hud .materialCount b{font-size:10px}#hud[data-control] #woodCounters,#hud #materialCounters{gap:3px}
 #hud[data-control] .vitals{top:calc(32px + var(--safe-t));width:100px}#hud[data-control] .vitals small{font-size:8px}
 #hud[data-control] .miniMap{top:calc(45px + var(--safe-t));width:66px;height:66px;--map-size:66px}body[data-playing="true"] header{right:calc(max(8px,var(--safe-r)) + 114px);top:calc(45px + var(--safe-t))}
 #hud #craftChoices{bottom:calc(100% + var(--stick) + 40px)}#hud #rangePanel{top:calc(119px + var(--safe-t));width:calc(100% - 24px);max-width:360px}#hud #feed{top:calc(160px + var(--safe-t));max-width:150px}
 .sheet .card{padding:18px}.settingsFooter{flex-direction:column}.settingsFooter button{min-height:44px}.shareActions{max-width:135px}.shareActions button{width:100%;font-size:9px;min-height:44px;padding:6px 8px}.waitingCard #codeTitle{font-size:26px}
}
@media(orientation:portrait) and (max-width:340px){#hud[data-control]{--stick:72px;--action:44px;--bow-width:120px;--bow-right:calc(var(--right) + var(--stick) + 44px);--bow-bottom:calc(var(--floor) + 80px)}#hud #bowString{font-size:7px}#hud #skillStatus{font-size:6px}.lobbyPanel h1{font-size:38px}.lobbyActions{padding:16px}}
@media(orientation:landscape) and (max-height:500px){
 header{padding-top:calc(10px + var(--safe-t));padding-bottom:0}header .brand{font-size:22px}header .brand small{font-size:7px}.screen{padding:calc(62px + var(--safe-t)) max(22px,var(--safe-r)) calc(14px + var(--safe-b)) max(22px,var(--safe-l));align-items:flex-start}.lobbyPanel{padding:0;gap:28px;grid-template-columns:.9fr 1.1fr;width:760px}.lobbyIntro{align-self:start;padding-top:10px}.lobbyPanel h1{font-size:42px;margin:14px 0}.lobbyPanel .lead{font-size:12px}.lobbyEmblem{display:none}.lobbyActions{padding:18px}.lobbyLinks a{font-size:11px}.lobbyPanel .sectionEyebrow{margin-bottom:12px}.lobbyPanel .eyebrow{font-size:8px}.lobbyFoot{margin-top:6px}.sheet .card{padding:18px}.settingsCard{width:650px}.tutorialCard{padding:16px 22px}.tutorialVisual{height:52px;min-height:52px}.tutorialVisual canvas{width:48px;height:48px}.tutorialCard h2{font-size:24px;margin:8px 0}.tutorialCard p{margin:8px 0;font-size:12px}.tutorialTop{margin-bottom:8px}.tutorialTop b{font-size:28px}#hud #feed{max-width:160px}#hud #rangePanel{top:calc(55px + var(--safe-t))}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Local landscape rehearsal keeps all exploration controls away from combat. */
#forestPanel{pointer-events:auto;position:fixed;top:calc(env(safe-area-inset-top,0px) + 47px);left:calc(env(safe-area-inset-left,0px) + 8px);z-index:12;display:flex;align-items:center;gap:5px;background:#152e27d9;border:1px solid #cab77a55;border-radius:10px;padding:3px 6px;color:#e7d9ae}#forestPanel[hidden]{display:none}#forestSeed{font:9px Verdana;max-width:95px}#forestPanel button{min-width:44px;min-height:44px;padding:5px 10px;font-size:10px;border:0;background:#d5c18d18} @media(max-width:400px){#forestPanel{top:calc(env(safe-area-inset-top,0px) + 55px)}#forestSeed{max-width:70px;font-size:8px}}

/* Keep map and settings uncovered on portrait phones. */
@media(max-width:400px){#forestPanel{width:calc(100vw - 190px);display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:3px}#forestSeed{grid-column:1/-1;max-width:none;font-size:8px}#forestPanel button{padding:4px;white-space:normal}}

/* v38: utilities at the left edge, bow crafting centered below the battlefield. */
#hud[data-control] #quickCraftPanel{width:93px}
#hud .weaponCraft{position:fixed;left:50%;bottom:calc(3px + var(--safe-b));transform:translateX(-35px);gap:8px;pointer-events:auto}
#hud[data-control] .craftSlot.bowCraft{width:70px;flex-basis:70px}
#hud #quickBow{width:70px;height:70px;border-radius:22px;background:#17342680}
#hud #quickBow canvas{width:64px;height:64px}
#hud #craftChoices{position:fixed;bottom:auto;max-width:164px}
#hud #progressionRecipes{position:fixed;left:var(--left);top:calc(47px + var(--safe-t));width:236px;display:flex;flex-direction:column;gap:1px;pointer-events:none}
#hud #progressionRecipes[hidden],#hud .recipePreview[hidden]{display:none}
#hud #progressionRecipes .recipePreview{position:static;display:flex;align-items:center;gap:4px;width:100%;min-height:44px;padding:2px 4px 2px 0;margin:0;border:0;border-radius:8px;background:linear-gradient(90deg,#10251c99,transparent);box-shadow:none;color:#eee2bc;text-align:left;pointer-events:auto;touch-action:none}
#hud #progressionRecipes .nextBowIcon{width:58px;height:58px;flex:0 0 58px;image-rendering:pixelated}
#hud #progressionRecipes #nextAxePreview .nextBowIcon{width:40px;height:40px;flex:0 0 58px;object-fit:contain}
#hud .recipePreview>div{min-width:0;flex:1}
#hud .recipePreview b{display:block;font:8px Arial;letter-spacing:.03em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:3px}
#hud .recipePreview[data-ready=true] b{color:#f4daa1}
#hud #zoneNotice{top:calc(160px + var(--safe-t))}#hud #feed{top:calc(184px + var(--safe-t))}
@media(orientation:portrait){
 #hud #progressionRecipes{top:calc(47px + var(--safe-t));width:calc(100vw - 182px);min-width:158px}
 #hud #progressionRecipes .nextBowIcon{width:50px;height:50px;flex-basis:50px}
 #hud #progressionRecipes #nextAxePreview .nextBowIcon{flex-basis:50px}
 #hud .recipePreview b{font-size:7px}#hud .recipePreview .nextBowNeeds{gap:1px}
 #hud #rangePanel{top:calc(167px + var(--safe-t))}
}
@media(orientation:landscape) and (max-width:700px){
 #hud .weaponCraft{transform:translateX(-31px)}#hud[data-control] .craftSlot.bowCraft{width:62px;flex-basis:62px}
 #hud #quickBow{width:62px;height:62px}#hud #quickBow canvas{width:58px;height:58px}
}

/* v39: life follows the local character; keep its numeric accessible control. */
#hud[data-control] .vitals .hpTrack{position:fixed;left:-10000px;width:1px;height:1px;overflow:hidden}
#hud[data-control] .vitals>span,#hud[data-control] .vitals>b{display:none}
#hud #resourceStrip{right:var(--right);max-width:calc(100% - var(--left) - var(--right))}
