:root{--paper:#f3ecdc;--paper-2:#faf6ec;--card:#fffdf7;--ink:#2b2118;--grey:#555d6a;--line:#d8ccb2;--line-2:#c4b594;--accent:#7a3b22;--accent-ink:#fffaf0;--sea:#cdd9d2;--focus:#1f5fa8;--serif:"Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;--sans:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font:16px/1.45 var(--sans);color:var(--ink);background:var(--paper);overflow:hidden}h2,h3{font-family:var(--serif);margin:0;font-weight:600}p{margin:0}button,select,input[type=text],input[type=number],.world-name{font:inherit;color:inherit;border:1px solid var(--line-2);background:var(--card);border-radius:6px;min-height:34px;padding:0 12px}button{cursor:pointer;white-space:nowrap}button:hover:not(:disabled){background:#fff;border-color:#a8966f}button:disabled{opacity:.45;cursor:default}button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);font-weight:600}button.primary:hover:not(:disabled){background:#8d4628;border-color:#8d4628}button.danger{color:#9a2a1c}button.round{border-radius:50%;width:34px;padding:0;font-weight:700}select{padding-right:6px}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}input[type=range]{accent-color:var(--accent);min-height:32px;margin:0}input[type=checkbox]{accent-color:var(--accent);width:18px;height:18px;margin:0}.app{grid-template-rows:auto 1fr auto;height:100%;display:grid}.topbar{background:var(--paper-2);border-bottom:1px solid var(--line);align-items:center;gap:10px;padding:8px 14px;display:flex}.wordmark{font:600 22px/1 var(--serif);letter-spacing:.02em;margin-right:6px}.world-name{min-width:120px;font-family:var(--serif);text-overflow:ellipsis;background:0 0;border-color:#0000;flex:0 320px;font-size:17px}.world-name:hover,.world-name:focus{background:var(--card);border-color:var(--line-2)}.spacer{flex:1}.sep{background:var(--line-2);width:1px;height:22px}.seg{border:1px solid var(--line-2);background:var(--card);border-radius:7px;flex:none;display:inline-flex;overflow:hidden}.seg button{border:0;border-right:1px solid var(--line);background:0 0;border-radius:0;padding:0 13px}.seg button:last-child{border-right:0}.seg button.on{background:var(--ink);color:#fff8ea;font-weight:600}.seg button.on:hover{background:var(--ink)}.main{min-height:0;display:flex}.panel{background:var(--paper-2);border-right:1px solid var(--line);flex:none;width:372px;min-height:0;display:flex}.panel-scroll{scrollbar-gutter:stable;width:100%;padding:4px 14px 28px;overflow-y:auto}.section{border-bottom:1px solid var(--line);padding:14px 0 12px}.section:last-child{border-bottom:0}.section>header{justify-content:space-between;align-items:center;min-height:34px;margin-bottom:8px;display:flex}.section h2{font-size:19px}.count,.help,.sub,.quiet,.empty{color:var(--grey)}.count{font-size:13px}.help,.empty{margin-bottom:10px;font-size:14px}.empty{background:var(--card);border:1px dashed var(--line-2);border-radius:6px;padding:10px 12px}.row{grid-template-columns:104px 1fr auto;align-items:center;gap:8px;min-height:38px;display:grid}.row>label{color:var(--grey);font-size:14.5px}.row>output{text-align:right;font-variant-numeric:tabular-nums;min-width:42px;color:var(--grey);font-size:13.5px}.row>select,.row>input[type=text]{grid-column:2/-1;width:100%;min-width:0}.row>input[type=number],.row>input[type=range]{width:100%;min-width:0}.layer{background:var(--card);border:1px solid var(--line);border-radius:8px;margin-bottom:8px;padding:8px 10px 4px}.layer.open{border-color:var(--line-2);box-shadow:0 1px 6px #3c280a1a}.layer.muted .thumb,.layer.muted .layer-title{opacity:.45}.layer-head{align-items:center;gap:8px;display:flex}.thumb{background:#888;border-radius:4px;flex:none;width:66px;height:34px;min-height:0;padding:0;overflow:hidden}.thumb canvas{width:64px;height:32px;display:block}.layer-title{flex-direction:column;flex:1;min-width:0;display:flex}.name{text-align:left;text-overflow:ellipsis;background:0 0;border:0;min-height:0;padding:0;font-size:15.5px;font-weight:600;overflow:hidden}.name:hover:not(:disabled){background:0 0;text-decoration:underline}.name-input{width:100%;min-height:28px!important;padding:0 6px!important}.sub{white-space:nowrap;text-overflow:ellipsis;font-size:12.5px;overflow:hidden}.icon{width:32px;min-height:32px;color:var(--grey);flex:none;padding:0;font-size:13px;font-weight:700}.icon.on{color:var(--ink);border-color:#a8966f}.layer-body{border-top:1px solid var(--line);margin-top:4px;padding-top:4px}.layer-actions{flex-wrap:wrap;gap:6px;padding:8px 0 6px;display:flex}.layer-actions button{min-height:32px;padding:0 10px;font-size:14px}.add{background:0 0;border-style:dashed;width:100%}.stage{background:radial-gradient(at 50% 45%,#efe6d0,#dccfb1 85%);flex:1;min-width:0;position:relative}.map{cursor:grab;touch-action:none;position:absolute;inset:0;overflow:hidden}.map:active{cursor:grabbing}.map canvas{width:100%;height:100%;display:block;position:absolute;inset:0}.map-ink{pointer-events:none}.toolbar{pointer-events:none;flex-wrap:wrap;align-items:center;gap:8px;display:flex;position:absolute;top:12px;left:12px;right:12px}.toolbar>*{pointer-events:auto}.toolbar .check{border:1px solid var(--line-2);background:var(--card);cursor:pointer;border-radius:6px;align-items:center;gap:6px;min-height:34px;padding:0 10px;font-size:14.5px;display:inline-flex}.toolbar .alpha{width:96px}.panel-toggle{font-size:14.5px}.legend{border:1px solid var(--line-2);background:#fffdf7f2;border-radius:8px;width:232px;max-height:calc(100% - 90px);padding:10px 12px;font-size:13.5px;position:absolute;bottom:12px;left:12px;overflow:auto}.legend h3{margin-bottom:6px;font-size:16px}.legend ul{margin:0;padding:0;list-style:none}.legend li{grid-template-columns:16px 1fr auto;align-items:center;gap:8px;min-height:22px;display:grid}.legend li i{border:1px solid #00000040;border-radius:2px;width:16px;height:12px}.legend li em{color:var(--grey);font-variant-numeric:tabular-nums;font-style:normal}.legend p{color:var(--grey);margin-top:6px}.ramp{border:1px solid #00000040;border-radius:3px;height:12px}.ramp-land{background:linear-gradient(90deg,#6b9e5c,#d9cc80,#9e6b47,#fff)}.ramp-wet{background:linear-gradient(90deg,#dbbd7a,#ccd994,#61ad9e,#244d9e)}.ramp-sea{background:linear-gradient(90deg,#a3cfe6,#1f3d80);margin-top:6px}.ramp-ends{color:var(--grey);justify-content:space-between;font-size:12.5px;display:flex}.coach{background:var(--card);border:1px solid var(--line-2);border-radius:10px;width:320px;padding:14px 16px;position:absolute;bottom:16px;right:16px;box-shadow:0 6px 24px #3c280a2e}.coach h3{margin-bottom:4px;font-size:18px}.coach p{margin-bottom:10px}.toast{background:var(--ink);color:#fff8ea;border-radius:8px;max-width:min(640px,90%);padding:9px 16px;font-size:15px;position:absolute;top:62px;left:50%;transform:translate(-50%);box-shadow:0 6px 20px #00000040}.toast.bad{background:#7d2418}.fatal{text-align:center;place-content:center;gap:8px;padding:40px;display:grid;position:absolute;inset:0}.status{background:var(--paper-2);border-top:1px solid var(--line);min-height:32px;color:var(--grey);white-space:nowrap;justify-content:space-between;align-items:center;gap:16px;padding:5px 14px;font-size:13.5px;display:flex;overflow:hidden}.readout,.facts{align-items:center;gap:14px;min-width:0;display:flex}.readout b{color:var(--ink)}.readout span,.facts span{font-variant-numeric:tabular-nums}.busy:before{content:"";border:2px solid var(--accent);vertical-align:-1px;border-right-color:#0000;border-radius:50%;width:9px;height:9px;margin-right:7px;animation:.8s linear infinite spin;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.scrim{z-index:10;background:#2b211866;place-items:center;display:grid;position:fixed;inset:0}.sheet{background:var(--card);border-radius:12px;width:min(520px,92vw);max-height:88vh;padding:18px 22px;overflow:auto;box-shadow:0 16px 48px #0000004d}.sheet header{justify-content:space-between;align-items:center;margin-bottom:10px;display:flex}.sheet h2{font-size:22px}.sheet dl{margin:0 0 12px}.sheet dl>div{border-bottom:1px solid var(--line);grid-template-columns:150px 1fr;padding:5px 0;display:grid}.sheet dt{font-variant-numeric:tabular-nums;font-weight:600}.sheet dd{margin:0}.sheet .quiet{font-size:13.5px}@media (max-width:1100px){.panel{width:320px}.row{grid-template-columns:92px 1fr auto}.world-name{flex-basis:200px}}@media (prefers-reduced-motion:reduce){.busy:before{animation:none}}
