.durability-display{min-width:150px;color:#f2cc77}.durability-display b{font-size:17px!important;font-variant-numeric:tabular-nums}.durability-display progress{width:125px;height:13px;margin-top:4px;accent-color:#65d48b;border-radius:10px;overflow:hidden}.durability-display progress::-webkit-progress-bar{background:#25362c;border:1px solid #826b44;border-radius:10px}.durability-display progress::-webkit-progress-value{background:linear-gradient(90deg,#4dc477,#b5dc66);border-radius:10px}.durability-display progress.low{accent-color:#ff6253}.durability-display progress.low::-webkit-progress-value{background:linear-gradient(90deg,#ff493d,#ffb55d)}
.tutorial{position:absolute;z-index:3;left:50%;top:10px;transform:translateX(-50%);width:min(90%,840px);padding:9px 14px;text-align:center;border:1px solid #e7c37a;border-radius:7px;background:#091110eF;color:#ffe6a9;font-weight:650;box-shadow:0 5px 20px #0009;pointer-events:none}
.camp{grid-template-columns:1fr;min-height:0;padding:8px 12px}.camp-art{display:none}.camp-panel{max-width:800px;margin:8px auto}.camp-panel>p:first-of-type{font-size:13px}
.upgrade-layout{display:grid;grid-template-columns:205px minmax(0,1fr);gap:14px;align-items:start}.resource-rail{position:sticky;top:45px;border:1px solid #806d48;border-radius:8px;background:#162b25;padding:12px}.resource-rail h3{font:500 16px Cinzel,Georgia,serif;color:#f0cd83;margin:0 0 8px}.resource-rail .rail-gold{display:block;color:#ffe19a;border-bottom:1px solid #756345;padding-bottom:8px;margin-bottom:4px}.resource-rail>div{display:flex;justify-content:space-between;padding:3px 0;border-bottom:1px solid #75634533}.resource-rail small{display:block;margin-top:8px;color:#b8c4b2;font-size:11px}.upgrade-stage{min-width:0}.tree-scroll{overflow:auto;max-height:65vh;border:1px solid #746344;border-radius:8px;background:radial-gradient(ellipse at 50% 85%,#294735,#101e1b 75%);overscroll-behavior:contain}.skill-map{position:relative;width:2600px;height:720px;background-image:radial-gradient(#d7ba7530 1px,transparent 1px);background-size:28px 28px}.skill-map svg{position:absolute;inset:0;width:2600px;height:720px;overflow:visible}.skill-map line{stroke:#746447;stroke-width:4;opacity:.48}.skill-map line.active{stroke:#d7b76c;opacity:.92;filter:drop-shadow(0 0 4px #d8ac4a)}.tree-node{position:absolute;transform:translate(-50%,-50%);z-index:1;width:168px;min-height:82px;padding:7px 9px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;text-align:center;border-radius:40px;border:2px solid #756b50;background:#192c25;color:#aeb6a4;box-shadow:0 3px 9px #0008}.tree-node strong{font-size:12px;line-height:1.2;color:#c5c5b0}.tree-node span,.tree-node small{font-size:10px;line-height:1.15}.tree-node.unlocked{border-color:#b69b61;background:#263e30;color:#f8e3a6}.tree-node.unlocked strong{color:#ffe19a}.tree-node.owned{border-color:#73d59b;background:#234b37;box-shadow:0 0 14px #5bd58b77}.tree-node:disabled{opacity:.9}.tree-node.unlocked:disabled:not(.owned){filter:saturate(.6)}.tree-node:not(:disabled){cursor:pointer}.shop-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}.shop-tabs button[aria-pressed=true]{background:#dfb774;color:#14241d;border-color:#f0cd83}.shop-tabs .next-run{margin-left:auto;background:#4caa70;color:#0f1a13;font-weight:750}.shop-tabs button{font-size:13px;padding:7px 11px}.stock-row{background:#162b25;margin:6px 0;padding:8px;border-radius:6px}.stock-row button{font-size:12px;padding:5px 9px;min-height:38px}
html:fullscreen,html.soft-fullscreen{background:#091312}html:fullscreen body,html.soft-fullscreen body{height:100dvh;overflow:hidden}html:fullscreen .shell,html.soft-fullscreen .shell{height:100dvh;width:100vw;max-width:none;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);display:flex;flex-direction:column}html:fullscreen #mine,html.soft-fullscreen #mine{flex:1;min-height:0;display:flex;flex-direction:column}html:fullscreen .viewport,html.soft-fullscreen .viewport{flex:1;min-height:0}html:fullscreen #world,html.soft-fullscreen #world{height:100%;min-height:0}html:fullscreen .keyboard,html.soft-fullscreen .keyboard{margin:3px 0}html:fullscreen dialog,html.soft-fullscreen dialog{max-width:min(1500px,96vw);max-height:92dvh}html.soft-fullscreen{position:fixed;inset:0;z-index:99999}
@media(max-width:760px){.upgrade-layout{grid-template-columns:1fr}.resource-rail{position:static;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px 9px;padding:8px}.resource-rail h3,.resource-rail .rail-gold,.resource-rail small{grid-column:1/-1}.resource-rail>div{font-size:12px}.tree-scroll{max-height:57vh}.tree-node{width:150px}.durability-display{min-width:108px}.durability-display progress{width:95px}.tutorial{font-size:12px;top:5px;width:94%;padding:6px 8px}}
@media(max-height:520px) and (orientation:landscape){html:fullscreen .hud,html.soft-fullscreen .hud{padding:3px 0}html:fullscreen #status,html.soft-fullscreen #status{min-height:14px;margin:2px 0}html:fullscreen .loadout,html.soft-fullscreen .loadout{min-height:24px}html:fullscreen .controls,html.soft-fullscreen .controls{margin-top:3px}html:fullscreen .controls button,html.soft-fullscreen .controls button{min-height:40px}.tutorial{font-size:11px;max-width:75%}}

/* One readable tree surface for windowed, fullscreen and touch displays. */
dialog,html:fullscreen dialog,html.soft-fullscreen dialog{width:calc(100vw - 24px);max-width:1500px;max-height:calc(100dvh - 24px)}
.dialog-head{z-index:5}.tree-scroll{width:100%;height:clamp(260px,55dvh,650px);max-height:none;scrollbar-color:#c7a564 #142b25;scrollbar-width:auto;touch-action:pan-x pan-y}.skill-map,.skill-map svg{width:3400px;height:1160px}.tree-node{width:232px;height:142px;border-radius:14px;padding:12px;gap:7px;overflow:visible}.tree-node strong{font-size:16px;line-height:1.25}.tree-node span,.tree-node small{font-size:13px;line-height:1.35}.tree-node[aria-disabled=true]{cursor:help}.tree-node:focus-within,.tree-node:hover{z-index:4}.tree-node .upgrade-tooltip{display:none;position:absolute;left:50%;bottom:calc(100% + 10px);transform:translateX(-50%);width:250px;padding:12px;border:1px solid #e1bd77;background:#071b16;color:#fff1d2;border-radius:8px;box-shadow:0 8px 25px #000b;font-size:14px;line-height:1.5;pointer-events:none}.tree-node:hover .upgrade-tooltip,.tree-node:focus .upgrade-tooltip{display:block}.tree-hint{font-size:13px;color:#d5c5a3;margin:0 0 8px}.delete-save{margin-top:16px;border-color:#b96557;color:#ffc8b9;background:#392522}.resource-rail{top:0}.shop-tabs{position:sticky;top:40px;z-index:5;background:#102421;padding:6px 0}.tree-node.locked{color:#c6cbbd}.tree-node.locked strong{color:#d6d8ca}
@media(max-width:760px){dialog{padding:12px}.upgrade-layout{gap:10px}.resource-rail h3,.resource-rail small{display:none}.resource-rail .rail-gold{grid-column:1/-1;margin:0;padding:0 0 4px}.tree-scroll{height:52dvh;min-height:260px}.tree-node{width:232px}.shop-tabs{position:static}.dialog-head h2{font-size:20px}}
