:root{color:#e9eee7;font-synthesis:none;background:#111a16;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.6}*{box-sizing:border-box}body{margin:0}main{flex-direction:column;max-width:1080px;min-height:100svh;margin:auto;padding:32px;display:flex}header{justify-content:space-between;align-items:center;gap:16px;display:flex}.brand{font-size:24px;font-weight:750}.badge{color:#b7c8b7;border:1px solid #435346;border-radius:24px;padding:5px 12px;font-size:13px}section{max-width:800px;padding:90px 0 64px}.eyebrow{color:#b3d58f;letter-spacing:.16em;font-size:12px;font-weight:650}h1{letter-spacing:-.035em;margin:20px 0;font-size:clamp(32px,5vw,56px);font-weight:600;line-height:1.16}.description{color:#b7c8b7;max-width:600px;font-size:19px}.panel{background:#1b2820;border:1px solid #435346;border-radius:16px;margin-top:40px;padding:28px}main.login{justify-content:center;align-items:center}.login section{padding:0}.login .panel{text-align:center;background:0 0;border:0;margin:0;padding:0}h2{margin:0 0 10px;font-size:20px}.panel p{color:#c3d0c0}button{font:inherit;color:#142012;cursor:pointer;background:#bee39b;border:0;border-radius:8px;padding:12px 20px;font-weight:650}button:hover{background:#d3efb8}button:focus-visible{outline-offset:4px;outline:3px solid #e9eee7}button:disabled{opacity:.6;cursor:wait}footer,.muted{color:#a6b6a4;font-size:13px}footer{margin-top:auto;padding-top:24px}@media (width<=540px){main{padding:24px 20px}section{padding-top:56px}.panel{padding:22px}}.workspace{max-width:1200px;min-height:100svh;margin:auto;padding:32px}.workspace .world-section{max-width:none;padding:40px 0 24px}.workspace h1{margin:0 0 12px;font-size:32px}.workspace .panel{margin-top:0}.workspace .world-header{justify-content:space-between;align-items:center;display:flex}.secondary{color:#e9eee7;background:#293a2d}.secondary:hover{background:#3a4e40}.world-menu{position:relative}.menu-panel{z-index:20;background:#1b2820;border:1px solid #435346;border-radius:12px;width:min(340px,100vw - 40px);max-height:65svh;padding:12px;position:absolute;top:58px;right:0;overflow-y:auto;box-shadow:0 12px 30px #0006}.menu-item{text-align:left;color:#e9eee7;overflow-wrap:anywhere;background:0 0;width:100%;display:block}.menu-item:hover{background:#293a2d}.workspace label{color:#b7c8b7;flex-direction:column;gap:8px;font-size:14px;display:flex}.workspace input,.workspace select{color:#e9eee7;width:100%;min-width:0;font:inherit;background:#111a16;border:1px solid #435346;border-radius:8px;padding:12px 14px}.workspace input:focus-visible,.workspace select:focus-visible{outline-offset:2px;outline:2px solid #bee39b}.form-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:24px;display:grid}.random-seed{min-height:48px}.world-form details{padding:16px 0 24px}.world-form summary{cursor:pointer;font-size:18px}.plant-fields{margin-top:20px}.worker-field{max-width:600px}.form-actions{flex-wrap:wrap;gap:16px;margin-top:24px;display:flex}.world-layout{grid-template-columns:minmax(0,1fr) 248px;gap:24px;margin:24px 0;display:grid}.world-info{padding:24px}.world-info h2{font-size:20px}.legend{gap:14px;margin:24px 0;padding:0;list-style:none;display:grid}.legend li{align-items:center;gap:14px;display:flex}.legend span{border-radius:3px;flex-shrink:0;width:18px;height:18px}.map-shell{min-width:0;position:relative}.map-viewport{touch-action:none;overscroll-behavior:contain;scrollbar-color:#9cbe80 #293a2d;background:#18221b;border-radius:12px;width:100%;height:480px;overflow:scroll}.map-viewport canvas{image-rendering:pixelated;display:block}.map-zoom{background:#1b2820ee;border-radius:8px;align-items:center;padding:3px;display:flex;position:absolute;bottom:24px;right:24px}.map-zoom button{color:#e9eee7;background:0 0;min-width:40px;padding:8px 12px}.map-zoom button:hover{background:#435346}.map-zoom output{text-align:center;min-width:54px;font-size:14px}.player{padding:24px}.workspace input[type=range]{accent-color:#bee39b;background:0 0;border:none;padding:12px 0}.player-controls{flex-wrap:wrap;align-items:center;gap:24px;margin-top:12px;display:flex}.player-controls label{flex-direction:row;align-items:center}.player-controls select{width:90px}.error{color:#edb7a5}.error-panel{margin:12px 0}.error-panel button{margin-right:12px}.history-notice{color:#bee39b}@media (width<=760px){.workspace{padding:24px 20px}.workspace .world-section{padding-top:32px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.world-layout{grid-template-columns:minmax(0,1fr);gap:16px}.map-viewport{height:min(60svh,480px)}.world-info{padding:20px}.legend{flex-wrap:wrap;gap:12px 20px;display:flex}.legend li{gap:8px;font-size:14px}.player-controls{gap:16px}}@media (width<=440px){.form-grid{grid-template-columns:minmax(0,1fr)}.world-form{padding:20px}.player-controls>button{flex:140px}.player-controls>label{flex:100%}.map-zoom{bottom:18px;right:18px}}.map-fullscreen{padding:10px 14px;position:absolute;top:16px;right:24px}.world-stage:fullscreen{width:100%;height:100%}.world-stage::backdrop{background:#111a16}.fullscreen-stage{z-index:100;background:#111a16;width:100%;height:100dvh;position:fixed;inset:0}.fullscreen-stage .world-layout{height:100%;margin:0;display:block}.fullscreen-stage .world-info{display:none}.fullscreen-stage .map-shell,.fullscreen-stage .map-viewport{border-radius:0;width:100%;height:100%}.fullscreen-title,.fullscreen-exit{top:max(24px, env(safe-area-inset-top));z-index:3;position:absolute}.fullscreen-title{overflow-wrap:anywhere;background:#1b2820ee;border-radius:12px;max-width:calc(100% - 340px);padding:12px 18px;font-size:20px;left:24px}.fullscreen-exit{font-size:14px;right:24px}.fullscreen-stage .map-zoom{z-index:2;bottom:190px}.fullscreen-stage .player{left:50%;bottom:max(24px, env(safe-area-inset-bottom));z-index:2;background:#1b2820ee;width:min(820px,100% - 48px);padding:12px 20px;position:absolute;transform:translate(-50%)}.fullscreen-stage .player .muted{display:none}.fullscreen-stage .player-controls{gap:16px;margin-top:0}.fullscreen-stage .player-controls button{padding:8px 12px}.fullscreen-stage .player-controls label{font-size:13px}.fullscreen-message{z-index:4;background:#1b2820ee;border-radius:8px;padding:12px;position:absolute;top:100px;left:24px;right:24px}@media (width<=760px){.fullscreen-title{max-width:calc(100% - 150px);padding:10px;font-size:14px;left:14px}.fullscreen-exit{max-width:110px;padding:8px 10px;line-height:1.3;right:14px}.fullscreen-stage .player{width:calc(100% - 28px);bottom:max(14px, env(safe-area-inset-bottom));padding:10px 12px}.fullscreen-stage .player-controls{flex-wrap:wrap;gap:8px}.fullscreen-stage .player-controls>button{flex:110px;font-size:13px}.fullscreen-stage .player-controls>label{flex:none}.fullscreen-stage .player-controls select{width:66px;padding:8px}.fullscreen-stage .map-zoom{bottom:200px;right:14px}.fullscreen-exit-details{display:none}}.world-actions{border-top:1px solid #435346;border-bottom:1px solid #435346;margin:12px 0;padding:12px 0}.world-actions p{padding:0 12px}.danger{color:#edb7a5;background:#4a2926}.danger:hover{background:#623631}.world-actions .danger{background:#4a2926;margin-top:8px}.stopped-notice{color:#bee39b}.delete-dialog{color:#e9eee7;background:#1b2820;border:1px solid #435346;border-radius:16px;width:min(544px,100vw - 40px);max-height:calc(100svh - 40px);padding:28px;overflow-y:auto}.delete-dialog::backdrop{background:#000a}.delete-dialog h2{overflow-wrap:anywhere}.delete-dialog p{color:#c3d0c0}.delete-dialog .error{color:#edb7a5}.delete-dialog .form-actions{justify-content:flex-end}
