:root{font-family:Arial,Helvetica,sans-serif;color:#f2f7f9;background:#031433;font-synthesis:none;color-scheme:dark}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit}button:focus-visible,a:focus-visible,input:focus-visible,canvas:focus-visible{outline:2px solid #c7ef66;outline-offset:5px}button{cursor:pointer}button:hover{color:#d7ff83}button:disabled{cursor:default;opacity:.4}[hidden]{display:none!important}#world{width:100%;height:100vh;height:100dvh;position:relative;overflow:hidden;background:radial-gradient(ellipse at 58% 46%,#063d79 0%,#05244c 36%,#03152f 69%,#020c1e 100%)}#viewport{display:block;width:100%;height:100%;touch-action:none;cursor:grab;outline-offset:-5px}#viewport:active{cursor:grabbing}.topbar{position:absolute;top:0;left:0;right:0;padding:32px 40px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.brand{display:block;width:clamp(240px,24vw,360px);max-width:100%;text-decoration:none;pointer-events:auto}.brand-logo{display:block;width:100%;height:auto} .bottom-bar{position:absolute;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:26px 40px 32px;pointer-events:none;gap:20px}.trackpad-hint{display:flex;gap:13px;align-items:center;color:#88a3bf}.trackpad-hint>span{display:flex;flex-direction:column;gap:7px;font-size:10px}.trackpad-hint b{font-size:11px;font-weight:400;color:#cedce9;letter-spacing:.4px}.toolbar{pointer-events:auto;position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;padding:7px 9px;background:#12243cbf;border:1px solid #94bad126;border-radius:13px;box-shadow:0 8px 32px #0003;backdrop-filter:blur(16px)}.tool{height:36px;min-width:36px;display:flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:7px;background:none;color:#dae7ef;font-size:21px;transition:background .15s}.tool:hover,.tool[aria-expanded=true]{background:#94b6d222;color:#d6ff96}.text-tool{font-size:11px;padding:0 13px;white-space:nowrap}.text-tool>span{font-size:23px}.divider{height:20px;width:1px;margin:0 6px;background:#adcce322}.settings{position:absolute;bottom:105px;right:40px;width:280px;background:#0c1c32ed;border:1px solid #9fc2de2b;border-radius:16px;backdrop-filter:blur(22px);padding:20px 22px;box-shadow:0 12px 50px #0005}.panel-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.panel-title h2{font-size:14px;font-weight:400;margin:0}.icon-button{border:0;color:#96aec6;background:none;font-size:24px;padding:0 0 0 10px}.slider-label{display:flex;justify-content:space-between;font-size:11px;color:#cedce9;margin:20px 0 12px}.slider-label output{color:#9bbd7c;font-variant-numeric:tabular-nums}input[type=range]{width:100%;accent-color:#b9e969;height:4px;cursor:pointer}.switch-row{display:flex;justify-content:space-between;align-items:center;font-size:11px;margin-top:25px}.switch-row input{width:30px;height:17px;accent-color:#b9e969;cursor:pointer}.loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;background:#031433;z-index:5;color:#abc1d6;font-size:12px;letter-spacing:.7px;transition:opacity .4s}.loading.loaded{opacity:0;pointer-events:none}.loading-orb{width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,#e0ff16,#6fb51a 55%,#164c0a);box-shadow:0 0 35px #00baff55;animation:breathe 1.2s ease-in-out infinite alternate}@keyframes breathe{to{box-shadow:0 0 60px #00baff90;transform:scale(1.1)}}.toast{position:absolute;bottom:106px;left:50%;transform:translate(-50%,8px);opacity:0;pointer-events:none;background:#142b3ee8;border:1px solid #9ac17c44;border-radius:20px;padding:10px 18px;color:#d4e5ce;font-size:11px;transition:opacity .2s,transform .2s}.toast.show{opacity:1;transform:translate(-50%,0)}.error{position:absolute;inset:0;z-index:10;background:#031433f5;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px;text-align:center}.error h2{font-weight:400}.error p{font-size:14px;color:#abc1d6}.error button{background:#c2ef6d;color:#122604;border:0;padding:12px 22px;border-radius:9px;margin-top:10px}@media(max-width:1100px){.toolbar{position:static;transform:none}.bottom-bar{gap:15px}}@media(max-width:700px){.topbar{padding:23px 22px}.brand{width:240px}.bottom-bar{padding:20px 22px;justify-content:center;flex-wrap:wrap-reverse;gap:17px}.trackpad-hint{justify-content:center;width:100%;gap:9px}.trackpad-hint svg{display:none}.trackpad-hint>span{display:block;font-size:9px}.trackpad-hint b{font-size:9px;margin-right:8px}.trackpad-hint>span>span{display:inline}.toolbar{border-radius:12px}.tool{height:32px}.settings{right:20px;bottom:126px;width:min(280px,calc(100% - 40px))}.toast{bottom:130px;white-space:nowrap}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Labels are projected from the planet's actual north and south poles. */
#polar-axis{position:absolute;inset:0;pointer-events:none}
#polar-axis span{position:absolute;transform:translate(11px,-50%);font-size:11px;letter-spacing:1px;color:#ffe2ad;text-shadow:0 1px 4px #021127,0 0 3px #021127}
#polar-axis .polar-north{color:#4deaff}
#polar-axis .polar-south{color:#ffbb63}
.tool[aria-pressed=true]{background:#b9e969;color:#142907}
#viewport.planting{cursor:crosshair}
.forest-settings{border-top:1px solid #91aac31c;margin-top:20px;padding-top:15px}
.forest-settings h3{font-size:12px;font-weight:400;margin:0 0 8px;color:#e0eddb}
.forest-settings p{font-size:10px;color:#92acc0;line-height:1.6;margin:7px 0 12px}
.forest-actions{display:flex;gap:8px}
.forest-actions button{border:1px solid #9ac17c44;border-radius:6px;background:#b9e96912;color:#c7e4b5;padding:8px 10px;font-size:10px}
.forest-actions button[aria-pressed=true]{background:#b9e969;color:#142907}

html,body{overscroll-behavior:none}

.loading-logo{display:block;width:clamp(320px,45vw,660px);max-width:calc(100vw - 64px);height:auto;object-fit:contain;margin-bottom:12px}
.loading[data-restoring]{z-index:9;transition:none}

.loading-progress{
  appearance:none;
  display:block;
  width:clamp(180px,32vw,350px);
  max-width:calc(100vw - 48px);
  height:12px;
  padding:0;
  border:1px solid #6385a7;
  border-radius:999px;
  overflow:hidden;
  background:#0a2144;
  color:#b9e969;
}
.loading-progress::-webkit-progress-bar{background:#0a2144}
.loading-progress::-webkit-progress-value{border-radius:999px;background:linear-gradient(90deg,#6fb51a,#d8f65b)}
.loading-progress::-moz-progress-bar{border-radius:999px;background:linear-gradient(90deg,#6fb51a,#d8f65b)}

.new-game-choice{
  width:min(440px,calc(100% - 32px));padding:26px;text-align:center;color:#18243c;
  color-scheme:light;background:radial-gradient(ellipse at 8% 3%,#fff8e7,#f9e5c7 75%);
  border:5px solid #b97832;border-radius:20px;
  box-shadow:inset 0 0 0 2px #ffe5b6,0 4px 0 #754223,0 14px 40px #0005;
}
.new-game-choice::backdrop{background:#031433b8}
.new-game-choice.startup-choice::backdrop{background:#031433}
.new-game-logo{display:none;width:100%;height:auto;margin:0 auto 16px}
.startup-choice .new-game-logo{display:block}
.new-game-choice h2{font-size:1.4rem;margin:0 0 18px}
.new-game-options{display:flex;flex-wrap:wrap;gap:12px}
.new-game-options button{
  flex:1 1 140px;padding:12px;color:#18243c;font-weight:700;
  background:linear-gradient(#fff9ea,#f4d9b0);border:2px solid #b97832;border-radius:9px;
  box-shadow:0 2px 0 #754223;
}
.new-game-options button:hover{background:#fff8e7;color:#18243c}
.new-game-choice button:focus-visible{outline:2px solid #1a5b9f;outline-offset:3px}
.new-game-cancel{margin-top:17px;padding:5px 12px;color:#263750;border:0;background:transparent}
.new-game-cancel:hover{color:#263750;text-decoration:underline}
