.tree-intro{color:#a6b39b;font-size:12px;line-height:1.7}.tree-launch{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:100px;margin:15px 0;background:radial-gradient(ellipse at 25% 50%,#43565c50,transparent),#19282c;border:1px solid #688d88;color:#c5ebe0;font-size:11px}.tree-launch>span{font-size:25px;color:#82d0c0;margin-right:10px}.tree-launch b{font-size:20px}.research-summary{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#8fa68f;border-top:1px solid #394a3e;padding-top:16px}.research-summary strong{color:#cce9bc}.cards{grid-template-columns:repeat(4,1fr)}
#tree-modal{width:96vw;max-width:1600px;height:92vh;max-height:1050px;padding:0;overflow:hidden;background:#141b2c;border:1px solid #688c96;box-shadow:0 0 0 5px #172734,0 25px 100px #000b;color:#ecf2ef}#tree-modal::backdrop{background:#070c13e8;backdrop-filter:blur(5px)}.tree-header{height:90px;padding:18px 24px;display:flex;align-items:center;gap:24px;justify-content:space-between;background:#1c253c;border-bottom:1px solid #3d5263}.tree-header h2{font-size:29px;margin-top:1px}.tree-header .eyebrow{color:#8fc8c8}.tree-header button{border-color:#5d7b87;background:#253749}.tree-resources{margin-left:auto;display:flex;gap:24px;align-items:center;font:700 13px Inter}.tree-resources strong{color:#edc777}.tree-resources>span{font-size:10px;color:#90adbb}.tree-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;height:calc(100% - 90px)}.tree-space{display:flex;flex-direction:column;min-width:0;min-height:0;background-color:#171d32;background-image:radial-gradient(circle at 15% 20%,#7eb2c355 1px,transparent 2px),radial-gradient(circle at 60% 80%,#7aaac644 1px,transparent 2px),radial-gradient(circle at 50% 40%,#29354d70,transparent 65%);background-size:127px 139px,213px 179px,100% 100%;position:relative}.branch-legend{display:flex;flex-wrap:wrap;gap:15px;padding:12px 20px;font-size:8px;letter-spacing:1px;color:#91aabc;border-bottom:1px solid #314050;background:#172034cc}.branch-legend span:nth-child(2){color:#bda7e5}.branch-legend span:nth-child(3){color:#d2bd83}.branch-legend span:nth-child(4){color:#a5c595}#tree-viewport{overflow:auto;flex:1;min-height:0;scrollbar-color:#547785 #172034;scrollbar-width:thin;overscroll-behavior:contain}#tree-map{width:1300px;height:920px;position:relative;--zoom:1}.tree-world,.tree-lines{width:1300px;height:920px;position:absolute;left:0;top:0;transform:scale(var(--zoom));transform-origin:0 0}.tree-lines{overflow:visible;pointer-events:none}.tree-lines path{stroke:#3c4a66;stroke-width:3;fill:none}.tree-lines path.lit{stroke:#6bc3c9;filter:drop-shadow(0 0 4px #57a8ac88)}.research-node{position:absolute;width:64px;height:64px;padding:0;border-radius:3px;display:grid;place-items:center;background:linear-gradient(135deg,#33405a,#13192b);border:2px solid #52627e;box-shadow:inset 0 0 0 3px #101829,0 5px 0 #0c1224;overflow:visible;letter-spacing:0}.research-node:before{content:'';position:absolute;inset:4px;border:1px solid #6e899533;pointer-events:none}.research-node>span{font-size:30px;color:#8ba1bb;text-shadow:0 0 12px #76aec733}.research-node>img{image-rendering:pixelated;width:43px;height:43px;object-fit:contain;filter:grayscale(.85) brightness(.6)}.research-node b{position:absolute;top:67px;left:-48px;width:156px;text-align:center;color:#9caac1;font-size:10px;font-weight:500;line-height:1.25;pointer-events:none}.research-node small{position:absolute;top:83px;left:-45px;width:150px;color:#b2a57f;font-size:9px;line-height:1.3;white-space:nowrap;pointer-events:none}.research-node.available{border-color:#7da8ad;box-shadow:inset 0 0 0 3px #1d2937,0 0 15px #619da826}.research-node.available>span{color:#b0d1d7}.research-node.available>img{filter:none}.research-node.owned{background:linear-gradient(135deg,#334c57,#1a3542);border-color:#70d3cb;box-shadow:inset 0 0 0 3px #1d3444,0 0 17px #66cfc631}.research-node.owned>span{color:#b1f3df}.research-node.owned img{filter:none}.research-node.owned b{color:#dbefe8}.research-node.owned small{color:#81c5af}.research-node.selected{outline:2px solid #f0d38d;outline-offset:5px;z-index:2}.research-node:hover{z-index:3;filter:brightness(1.2)}.research-node.locked{opacity:.58}.constellation{position:absolute;left:540px;top:535px;text-align:center;font:700 29px 'Barlow Condensed';letter-spacing:8px;color:#394761;pointer-events:none}.constellation span{font:7px Inter;letter-spacing:1.6px;display:block;margin-top:4px}.tree-toolbar{height:52px;display:flex;align-items:center;justify-content:space-between;padding:8px 15px;background:#1a2439;border-top:1px solid #36495b;font-size:9px;color:#8fa8bd}.tree-toolbar>div{display:flex;align-items:center;gap:10px}.tree-toolbar button{font-size:10px;padding:7px 10px;background:#26374a;border-color:#46616f}#research-detail{background:linear-gradient(#202a42,#161e31);padding:30px 23px;border-left:1px solid #415b6c;overflow:auto}#research-detail .eyebrow{color:#a6c5d4}.research-emblem{margin:25px 0 18px;width:80px;height:80px;display:grid;place-items:center;font-size:43px;color:#c6e5f3;border:1px solid #648694;background:#263b50;box-shadow:inset 0 0 0 5px #1a2a3d}.research-emblem img{width:64px;height:64px;image-rendering:pixelated}#research-detail h2{font-size:30px}.research-level{font-size:8px;letter-spacing:1px;color:#c2aaed}#research-detail p{font-size:12px;line-height:1.8;color:#bdc9d7;margin:20px 0}.prereqs{border-top:1px solid #3a4c60;padding-top:18px;margin:18px 0}.prereqs small{display:block;font-size:8px;color:#8ea7ba;letter-spacing:1px;margin-bottom:10px}.prereqs button{display:block;width:100%;text-align:left;background:#1d293c;border-color:#3c4e64;color:#93a5b8;font-size:9px;padding:9px;margin:7px 0}.prereqs button.met{color:#8ad9c2;border-color:#477b71}#research-buy{width:100%;font-size:10px;line-height:1.6;padding:13px 8px}.research-note{font-size:9px;color:#8298b0;display:block;line-height:1.7;margin-top:12px}@media(max-width:800px){.tree-header{padding:12px;gap:10px}.tree-resources{flex-direction:column;gap:3px}.tree-resources strong{font-size:11px}.tree-header button{font-size:8px;padding:10px}.tree-header h2{font-size:23px}.tree-layout{grid-template-columns:minmax(0,1fr) 230px}#research-detail{padding:20px 15px}.tree-toolbar>span{display:none}.tree-toolbar{justify-content:flex-end}}@media(max-width:600px){.tree-layout{display:flex;flex-direction:column}.tree-space{flex:1;min-height:220px}#research-detail{height:230px;flex:none;padding:15px 18px;border-left:0;border-top:1px solid #4a6170;position:relative}#research-detail .research-emblem{float:left;width:45px;height:45px;font-size:25px;margin:0 12px 8px 0}.research-emblem img{width:37px;height:37px}#research-detail h2{font-size:23px;line-height:1.2;margin:3px 0}#research-detail p{font-size:11px;line-height:1.5;margin:10px 0;clear:both}.prereqs{padding-top:7px;margin:8px 0}.prereqs small{display:none}.prereqs button{display:inline-block;width:auto;margin:0 5px 5px 0;font-size:8px;padding:5px}.research-note{font-size:8px;margin-top:5px}.branch-legend{padding:8px;gap:9px;font-size:6px}.tree-header .eyebrow{font-size:6px}.tree-resources>span{font-size:7px}.tree-toolbar{height:40px}.tree-toolbar button{padding:4px 8px}#tree-modal{height:95dvh;width:98vw}.cards{grid-template-columns:repeat(2,1fr)}}
#tree-map{margin-inline:auto}

/* Interactive map navigation */
#tree-viewport{cursor:grab;touch-action:none;user-select:none;position:relative}#tree-viewport.dragging,#tree-viewport.dragging *{cursor:grabbing!important}.research-node{cursor:pointer;touch-action:none}.research-node img{-webkit-user-drag:none;pointer-events:none}#tree-map{margin-inline:auto;flex-shrink:0}#zoom-label{min-width:40px;text-align:center;font:700 11px Inter;color:#e8d9a7}.tree-toolbar{height:auto;min-height:60px;flex-wrap:wrap;gap:8px;padding:10px 14px}.tree-toolbar>div{gap:7px;flex-wrap:wrap}.tree-toolbar button{min-height:38px;font-size:9px}#zoom-in,#zoom-out{font-size:21px;min-width:40px;padding:3px 10px;border-color:#82afb2;background:#2f4d58;color:#ddf6ed}.tree-toolbar>span{font-size:9px}#tree-fit{color:#c8f1d5;border-color:#6e9587}@media(max-width:600px){.tree-toolbar{padding:7px;min-height:54px}.tree-toolbar>div{gap:5px}.tree-toolbar button{font-size:7px;min-height:34px;padding:5px 7px}#zoom-in,#zoom-out{font-size:20px;min-width:34px}#zoom-label{font-size:9px;min-width:30px}}

img[src$="/horse.png"]{transform:scaleX(-1)}#research-tooltip{position:absolute;width:340px;max-width:calc(100% - 24px);z-index:50;background:#22243d;border:2px solid #79c5ca;border-radius:2px;box-shadow:inset 0 0 0 3px #0d1626,0 0 0 2px #344b62,0 10px 36px #000b;pointer-events:none;color:#e9eff5;font-family:Inter,Arial;line-height:1.4;overflow:hidden}.tip-title{display:flex;gap:12px;padding:17px 16px;background:#1d2036;border-bottom:1px solid #3e4765}.tip-icon{width:46px;height:46px;flex:none;display:grid;place-items:center;background:#303454;border:1px solid #5d688c;font-size:28px;color:#b7d9e3}.tip-icon img{width:40px;height:40px;image-rendering:pixelated}.tip-title strong{display:block;font:700 25px/1.05 'Barlow Condensed',Arial;color:#f2f5ee}.tip-title span{display:block;font-size:9px;color:#a5b4ce;margin-top:6px}.tip-body{padding:14px 16px}.tip-body p{font-size:11px;color:#c7d0e1;line-height:1.7;margin:0 0 14px}.tip-compare{display:flex;align-items:center;gap:12px;justify-content:space-between;font-size:9px;color:#a7b6cb}.tip-compare strong{font:700 23px 'Barlow Condensed';color:#f2eee0}.tip-compare i{font-style:normal;color:#8fd897;margin-left:6px}.tip-level{display:flex;align-items:center;gap:10px;margin-top:12px}.tip-level>div{flex:1;display:flex;gap:4px}.tip-level b{height:6px;flex:1;background:#404967}.tip-level .filled{background:#8ed996}.tip-level>span{font-size:9px;color:#aebed8}.tip-body .tip-required{color:#d7b58b;margin:12px 0 0;font-size:9px}.tip-price{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-top:2px solid #829c79;background:#2c5439;gap:10px}.tip-price span{font-size:9px;font-weight:700}.tip-price strong{font:600 21px 'Barlow Condensed';white-space:nowrap}.tip-price.insufficient{background:#603c3d;border-color:#c97b77;color:#f0ceca}.tip-price.done{background:#294746;border-color:#7faea9;color:#a9d9ca}.tip-hint{display:block;background:#141c2b;color:#839bb4;font-size:9px;padding:7px 16px}@media(hover:none){#research-tooltip{display:none!important}}

.tree-header{flex-wrap:wrap}#tree-next{margin-left:auto}#tree-next[hidden]{display:none}
