:root{font-family:system-ui,'Segoe UI',sans-serif;color:#24312b;background:#f8f4eb;font-synthesis:none;--ink:#24312b;--muted:#788078;--line:#e7e2d7;--green:#315b43;--green-dark:#24382d;--lime:#d7ed70;--paper:#f8f4eb;--cream:#fffdf7;--coral:#f0785e}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input{touch-action:manipulation}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.45}button,a{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #9aaf66;outline-offset:4px}button{transition:background .2s,transform .2s}button:hover:not(:disabled){transform:translateY(-1px)}a{color:inherit}svg{display:block}.shell{height:100dvh;min-height:660px;display:flex;flex-direction:column}.header{height:84px;flex-shrink:0;padding:0 clamp(24px,5vw,80px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:16px}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-size:14px;letter-spacing:1.5px;font-weight:800}.brand-mark{display:flex;align-items:flex-end;justify-content:center;gap:3px;padding:8px;width:35px;height:35px;border-radius:10px;background:var(--green-dark)}.brand-mark i{width:4px;border-radius:3px;background:var(--lime)}.brand-mark i:nth-child(1){height:9px}.brand-mark i:nth-child(2){height:14px}.brand-mark i:nth-child(3){height:20px}.brand-label{font-size:10px;letter-spacing:.9px;font-weight:650;color:#6c7a65;padding:6px 8px;background:#e9eddf;border-radius:5px;margin-left:8px}nav{display:flex;gap:8px}.nav-button{display:flex;gap:10px;align-items:center;border:0;background:transparent;color:var(--muted);padding:10px 15px;border-radius:9px;font-size:14px}.nav-button.active{background:#e9eddf;color:var(--green)}.menu-wrap{position:relative}.chevron{width:7px;height:7px;border-right:1.5px solid;border-bottom:1.5px solid;transform:rotate(45deg) translateY(-2px)}.dropdown{position:absolute;z-index:10;right:0;top:48px;width:290px;background:var(--cream);padding:8px;border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 36px #24382d15}.dropdown a{display:flex;gap:12px;padding:12px;text-decoration:none;border-radius:9px;font-size:14px}.dropdown a:hover{background:#edf0e4}.dropdown small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.menu-orbit{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;border-radius:10px;background:#e9eddf;font-size:24px;color:var(--green)}main{flex:1;min-height:0;overflow:auto;scrollbar-width:thin}.scene{width:min(1160px,calc(100% - 64px));min-height:100%;margin:auto;display:grid;grid-template-columns:.85fr 1.15fr;align-items:center;gap:60px;padding:40px 0;animation:scene-in .4s ease both}.eyebrow{display:flex;gap:10px;align-items:center;color:#7d8878;font-size:12px;font-weight:650;letter-spacing:1px}.eyebrow:before{content:'';width:21px;height:2px;background:#99af61}.copy h1{font-size:clamp(34px,3.8vw,52px);line-height:1.14;letter-spacing:-1.8px;font-weight:650;margin:22px 0 20px;max-width:510px}.copy>p{color:#758075;font-size:17px;line-height:1.75;margin:0;max-width:440px}.small-note{font-size:13px!important;color:#8c9287!important;margin-top:20px!important}.tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:26px}.tag{display:flex;align-items:center;gap:7px;border:1px solid #dfe4d5;border-radius:7px;font-size:13px;color:#6a795b;padding:8px 10px}.tag svg{width:15px;height:15px}.btn{border:0;border-radius:9px;min-height:45px;padding:11px 21px;font-size:14px;font-weight:600;background:var(--green-dark);color:#fff;display:inline-flex;justify-content:center;align-items:center;gap:10px}.btn:hover{background:#3c5e44}.btn.light{border:1px solid #dfe4d5;background:var(--cream);color:#617251}.btn.light:hover{background:#edf0e4}.copy .btn{margin-top:25px}.footer{flex-shrink:0;min-height:89px;border-top:1px solid var(--line);padding:15px clamp(24px,5vw,80px);display:grid;grid-template-columns:110px 1fr 130px;gap:30px;align-items:center}.back{border:0;background:none;text-align:left;color:var(--muted);padding:12px 0;font-size:14px}.progress-area{max-width:460px;width:100%;justify-self:center}.step-track{display:flex;gap:6px}.step-track button{height:5px;flex:1;border:0;padding:0;background:#e2e4d9;border-radius:3px}.step-track button.done{background:#9fb56a}.progress-label{display:flex;justify-content:space-between;color:#92998b;font-size:12px;margin-top:9px}.progress-label span:first-child{color:#6d7d59}.footer .btn{width:130px}.visual{position:relative;min-width:0}.window{border:1px solid #dfe2d5;background:var(--cream);border-radius:17px;box-shadow:0 20px 60px #3043310c;overflow:hidden;position:relative}.window-head{height:48px;display:flex;align-items:center;gap:6px;padding:0 19px;border-bottom:1px solid #e7e9e0;color:#8b9485;font-size:12px}.window-head i{width:7px;height:7px;border-radius:50%;background:#d5dacd}.window-head span{margin-left:9px}.window-head b{font-weight:500;margin-left:auto;color:#7a8e68;font-size:11px}.game-stage{position:relative;height:330px;overflow:hidden;background:#edf1e3}.map-svg{height:100%;width:100%;transition:filter .4s}.map-svg .tree{transform-box:fill-box;transform-origin:center;animation:grow-in .8s both}.map-svg .person{transform-box:fill-box;animation:person-move 4s ease-in-out infinite alternate}.map-svg .person.p2{animation-delay:-1.5s}.map-svg .person.p3{animation-delay:-3s}.tile-world{transition:transform 1s}.world-pill{position:absolute;left:15px;top:15px;padding:6px 9px;background:#fffdf7da;border:1px solid #dfe4d5;border-radius:6px;font-size:11px;color:#68805d}.fps-pill{position:absolute;right:15px;bottom:15px;border-radius:6px;background:#315b43;color:#fff;padding:7px 11px;font-size:12px}.window-foot{display:flex;align-items:center;justify-content:space-between;padding:13px 18px;font-size:12px;color:#7c8872}.window-foot strong{font-weight:500;color:#47643e}.download-card{position:absolute;right:-12px;bottom:37px;width:244px;padding:17px 18px;border:1px solid #e0e5d8;border-radius:12px;background:#fffdf7;box-shadow:0 10px 35px #33482e19;animation:float-in .6s ease both}.download-title{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:600}.download-title svg{width:18px;height:18px;color:#68844f}.download-bar{height:5px;background:#e8eddd;border-radius:6px;margin:14px 0 8px;overflow:hidden}.download-bar span{display:block;background:#a3b969;height:100%;width:68%;animation:download 5s linear infinite}.download-card small{font-size:11px;color:#8d9685}.small-badge{position:absolute;bottom:-18px;left:20px;background:#edf0e4;border:1px solid #dfe5d2;padding:9px 13px;color:#78905c;font-size:12px;border-radius:7px;transform:rotate(-3deg)}.visual-caption{text-align:center;color:#949b8b;font-size:12px;margin:27px 0 0}.play-trigger{border:0;background:transparent;color:#607e4f;font-size:12px;padding:4px}.frame-strip{display:flex;gap:7px;margin:14px 0 0;padding:0 2px}.frame{height:52px;flex:1;border:1px solid #d8dfcb;border-radius:6px;position:relative;background:linear-gradient(150deg,#e9eddc 50%,#b9ce97 51% 65%,#78965f 66%);animation:frame-light 2s infinite}.frame:nth-child(2){animation-delay:.15s}.frame:nth-child(3){animation-delay:.3s}.frame:nth-child(4){animation-delay:.45s}.frame:nth-child(5){animation-delay:.6s}.frame span{position:absolute;right:4px;bottom:2px;font-size:10px;color:#fff}.generation-line{height:100%;width:2px;background:#b8d680;box-shadow:0 0 12px #b8d680;position:absolute;top:0;animation:scan 4s linear infinite;opacity:.65}.stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:13px}.mini-stat{padding:16px;border:1px solid #e2e6d8;background:#fffdf7;border-radius:10px}.mini-stat small{color:#8b9582;font-size:11px;display:block}.mini-stat b{display:block;font-size:20px;font-weight:600;margin-top:7px;color:#47633c}.mini-stat em{font-size:11px;font-style:normal;color:#8b9582}.device-card{padding:24px}.panel-title{display:flex;gap:13px;align-items:center;margin-bottom:22px}.panel-icon{display:grid;place-items:center;width:42px;height:42px;background:#edf1e3;border-radius:11px;color:#6a8452}.panel-icon svg{width:22px;height:22px}.panel-title h2{font-size:16px;font-weight:600;margin:0 0 4px}.panel-title small{color:#929b8b;font-size:12px}.device-row{display:flex;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid #eceee4;font-size:14px}.device-row span{color:#8a9481}.device-row b{font-weight:500;text-align:right;max-width:65%;overflow-wrap:anywhere}.device-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:23px}.device-actions small{font-size:12px;color:#909a86}.test-meter{height:5px;border-radius:4px;overflow:hidden;background:#e6eada;margin-top:20px}.test-meter span{display:block;height:100%;background:#a3b969;width:0;transition:width .2s}.result-box{margin-top:18px;padding:13px 14px;background:#edf1e3;border-radius:9px;color:#62794b;font-size:13px;line-height:1.6}.mini-graph{display:flex;gap:4px;height:50px;align-items:flex-end;margin-top:19px}.mini-graph i{flex:1;height:var(--h);background:#cbd9ab;border-radius:3px 3px 0 0;animation:bar-in .6s both;animation-delay:var(--delay)}.multiplayer .world-pill{display:flex;gap:6px;align-items:center}.avatar-dot{width:6px;height:6px;border-radius:50%;background:#779d4c}.player-list{display:flex;gap:8px;margin-top:15px}.player-chip{flex:1;padding:12px 10px;border:1px solid #dfe4d5;background:var(--cream);border-radius:9px;display:flex;align-items:center;gap:8px;font-size:12px}.avatar{width:27px;height:27px;display:grid;place-items:center;border-radius:8px;background:#e0e9cc;color:#5b7546;font-weight:650}.avatar.peach{background:#f4ddd2;color:#b77c60}.avatar.blue{background:#dce6e9;color:#668b9c}.explain-list{padding:0;list-style:none;display:grid;gap:14px;margin:26px 0 0;font-size:14px;color:#7a8671}.explain-list li{display:flex;align-items:center;gap:10px}.check-icon{color:#839f54;width:17px;height:17px}.network-preview{height:340px;background:#f0f2e8;position:relative}.network-preview svg{width:100%;height:100%}.network-preview .preview-node{animation:pulse 3s ease-in-out infinite}.network-preview .preview-node:nth-of-type(even){animation-delay:1.4s}.preview-title{position:absolute;left:20px;bottom:18px;color:#7c8b6e;font-size:12px}.toast{position:fixed;bottom:110px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:30;padding:11px 20px;background:#315b43;color:#fff;font-size:14px;border-radius:10px;transition:.25s;max-width:90vw;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}
/* The game keeps its own space background inside the familiar application. */
body.in-game{background:#f6f5ef}.game-page{max-width:1440px;margin:auto;padding:25px 38px 32px;animation:scene-in .4s both}.game-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:22px}.game-heading h1{font-size:27px;letter-spacing:-.7px;font-weight:650;margin:0 0 6px}.game-heading p{margin:0;color:#8a9381;font-size:14px}.game-controls{display:flex;gap:9px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 282px;gap:20px}.cosmos{height:520px;position:relative;overflow:hidden;border-radius:16px;background:#070a0f;border:1px solid #1b2430;isolation:isolate}.cosmos:before,.cosmos:after{content:'';position:absolute;border-radius:50%;width:60%;height:55%;filter:blur(65px);pointer-events:none;z-index:-1;opacity:.35;background:#173e46;left:3%;top:6%}.cosmos:after{width:45%;height:40%;background:#39445b;left:auto;top:auto;right:2%;bottom:0;opacity:.25}.stars{position:absolute;inset:0;pointer-events:none}.star{position:absolute;width:2px;height:2px;border-radius:50%;background:#e3efef;opacity:var(--opacity);animation:twinkle 5s ease infinite;animation-delay:var(--delay)}.cosmos-meta{position:absolute;left:20px;top:17px;display:flex;gap:8px;align-items:center;color:#9caead;font-size:11px;letter-spacing:.8px}.cosmos-meta:before{content:'';width:5px;height:5px;border-radius:50%;background:#b7d68e}.tree-scroll{height:100%;width:100%;overflow:auto;scrollbar-width:thin;scrollbar-color:#33413c transparent}.tree-map{position:relative;min-width:640px;width:100%;height:470px;margin-top:20px}.connections{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.connections line{stroke:#263943;stroke-width:1.5;transition:stroke .4s}.connections line.open{stroke:#779b6a;stroke-dasharray:4 7;animation:flow 2s linear infinite}.skill{position:absolute;transform:translate(-50%,-50%);width:120px;text-align:center;border:0;background:none;color:#7d8c98;padding:6px 0;transition:color .25s}.skill:hover:not(:disabled){transform:translate(-50%,-50%)!important}.skill:focus-visible{outline-offset:1px;border-radius:10px}.orb{margin:0 auto 9px;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#121c24;border:1px solid #324450;box-shadow:0 0 0 5px #111b231f;position:relative;transition:.3s}.orb svg{width:20px;height:20px}.skill.available{color:#c9d7c4}.skill.available .orb{border-color:#779468;background:#1b2e27;box-shadow:0 0 0 5px #719a4c12}.skill.unlocked{color:#d1e5bb}.skill.unlocked .orb{background:#2e4739;border-color:#b6cf91;box-shadow:0 0 23px #a0cf6e25}.skill.selected .orb:after{content:'';position:absolute;inset:-8px;border:1px dashed #a1bc85;border-radius:50%;animation:rotate 25s linear infinite}.skill-name{display:block;font-size:12px;white-space:nowrap}.skill-cost{display:block;font-size:10px;color:#637681;margin-top:3px}.skill.unlocked .skill-cost{color:#829c6d}.legend{position:absolute;bottom:15px;left:20px;right:20px;display:flex;justify-content:space-between;color:#6d8492;font-size:11px;pointer-events:none}.legend span{display:flex;gap:6px;align-items:center}.legend i{width:6px;height:6px;border-radius:50%;border:1px solid #8eaf73}.game-sidebar{display:grid;align-content:start;gap:14px}.game-panel{border:1px solid #e3e7db;background:#fffdf8;border-radius:13px;padding:20px}.player-level{display:flex;align-items:center;gap:12px}.level-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#e9efda;color:#6d8650}.level-icon svg{width:22px;height:22px}.player-level small{color:#8b9680;font-size:12px}.player-level h2{font-size:17px;font-weight:600;margin:3px 0 0}.level-bar{height:5px;background:#e7ecd9;border-radius:5px;margin-top:18px;overflow:hidden}.level-bar span{height:100%;background:#a4bb75;display:block;transition:width .5s}.level-stats{display:flex;justify-content:space-between;color:#8c9783;font-size:12px;margin-top:8px}.resource-row{display:flex;gap:20px;margin-top:20px}.resource-row strong{font-size:23px;font-weight:600;display:block;color:#557344}.resource-row small{font-size:11px;color:#939b8a}.selected-kicker{color:#94a087;font-size:11px;letter-spacing:.7px}.game-panel h3{font-size:18px;font-weight:600;margin:10px 0}.game-panel p{font-size:13px;line-height:1.7;color:#8a9580;margin:0}.game-panel .btn{width:100%;margin-top:17px;font-size:13px}.rule-line{border-top:1px solid #e7ecde;padding-top:12px;margin-top:15px;font-size:12px;color:#8a9580}.game-help{font-size:12px;color:#9ba38f;line-height:1.6;margin:16px 0 0}.footer.game-footer{grid-template-columns:1fr auto;min-height:66px;font-size:12px;color:#98a08e}.footer.game-footer .back{text-align:right;font-size:12px}.room-actions{position:absolute;left:15px;bottom:15px;display:flex;gap:5px}.room-actions button{background:#fffdf7bd;border:1px solid #d2ddc4;border-radius:6px;padding:6px 9px;font-size:11px;color:#6c8059}.room-actions button.active{background:#315b43;color:#fff;border-color:#315b43}
@keyframes scene-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes float-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}@keyframes download{0%{width:18%}90%,100%{width:96%}}@keyframes grow-in{from{transform:scale(.4);opacity:0}to{transform:scale(1);opacity:1}}@keyframes person-move{to{translate:8px -4px}}@keyframes frame-light{0%,75%,100%{opacity:.55}25%{opacity:1;box-shadow:0 0 0 2px #adc97d}}@keyframes scan{from{left:0}to{left:100%}}@keyframes bar-in{from{height:3px}to{height:var(--h)}}@keyframes pulse{50%{opacity:.6}}@keyframes twinkle{50%{opacity:.2}}@keyframes flow{to{stroke-dashoffset:-22}}@keyframes rotate{to{transform:rotate(360deg)}}
@media(min-width:1550px){.scene{gap:100px;width:1240px}.game-stage{height:380px}.cosmos{height:580px}.tree-map{height:530px}}
@media(max-width:1000px){.scene{gap:30px;grid-template-columns:.85fr 1.15fr;width:calc(100% - 48px)}.copy h1{font-size:36px}.copy>p{font-size:16px}.game-stage{height:290px}.game-page{padding:25px}.game-layout{grid-template-columns:minmax(0,1fr) 250px}.game-panel{padding:16px}.game-heading h1{font-size:24px}.brand-label{display:none}.game-controls .btn{padding:10px 14px}}
@media(max-width:760px){.shell{min-height:100dvh;height:auto}.header{height:73px;padding:0 20px;position:relative;z-index:5}.brand{font-size:12px;letter-spacing:1px;gap:8px}.brand-mark{width:31px;height:31px;padding:6px}.nav-button{padding:9px 11px;font-size:13px}main{overflow:visible}.scene{grid-template-columns:1fr;gap:35px;width:calc(100% - 40px);padding:35px 0 40px;min-height:calc(100dvh - 163px);align-content:center}.copy h1{font-size:34px;letter-spacing:-1.2px;margin:17px 0 15px;max-width:500px}.copy>p{font-size:16px;max-width:560px;line-height:1.65}.eyebrow{font-size:11px}.tags{margin-top:19px}.tag{font-size:12px}.visual{width:100%;max-width:550px;justify-self:center}.game-stage{height:270px}.download-card{width:215px;right:-3px;bottom:34px;padding:14px}.footer{position:sticky;bottom:0;z-index:4;padding:14px 20px;grid-template-columns:60px 1fr 105px;gap:17px;background:#f8f4ebf5;backdrop-filter:blur(12px);min-height:84px}.footer .btn{width:105px;min-height:43px;padding:10px;font-size:13px}.progress-label{font-size:10px}.back{font-size:13px}.visual-caption{margin-top:24px}.device-card{padding:19px}.small-note{font-size:12px!important}.game-page{padding:25px 16px}.game-heading{align-items:flex-start;flex-wrap:wrap;gap:16px}.game-heading h1{font-size:25px}.game-heading p{font-size:13px}.game-controls{width:100%}.game-controls .btn{font-size:12px;min-height:38px;padding:8px 13px}.game-layout{grid-template-columns:1fr;gap:15px}.cosmos{height:460px}.tree-map{height:405px}.tree-scroll{overscroll-behavior-x:contain}.game-sidebar{grid-template-columns:1fr 1fr;gap:12px}.game-panel{padding:16px}.game-panel h3{font-size:17px}.resource-row{gap:15px;margin-top:15px}.game-help{font-size:11px}.footer.game-footer{position:static;gap:20px;padding:15px 20px}.footer.game-footer span{font-size:11px}.network-preview{height:285px}.stat-row{gap:8px}.mini-stat{padding:12px}.mini-stat b{font-size:18px}.scene[data-step="2"]{gap:25px}.device-row{font-size:13px}}
@media(max-width:400px){.header{padding:0 15px}.scene{width:calc(100% - 32px)}.copy h1{font-size:31px}.game-sidebar{grid-template-columns:1fr}.game-panel.profile{display:grid;grid-template-columns:1fr 1fr;gap:14px}.profile .level-bar,.profile .level-stats{grid-column:1/-1;margin:0}.profile .resource-row{margin:0;align-items:center}.game-stage{height:240px}.footer{gap:12px}.progress-label span:last-child{display:none}}
main,.game-layout>div,.cosmos{min-width:0}.scroll-hint{display:none!important}@media(max-width:760px){.scroll-hint{display:block!important}.legend span:first-child{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}html{scroll-behavior:auto}}
