@font-face{font-family:Plex;src:url("../assets/type/plex-serif-light.ttf") format("truetype");font-weight:300;font-display:swap}
:root{color-scheme:dark;--ivory:#f5f0e4;--ochre:#ebc381;--line:#e7e4d642;--edge:clamp(17px,3.2vw,58px);font:100%/1.4 Arial,Helvetica,sans-serif;color:var(--ivory);background:#253639}
*{box-sizing:border-box}body{margin:0}a,button,select,input{font:inherit;color:inherit}a{text-decoration:none}button,select,input{border-radius:3px}button,select{cursor:pointer}button{background:none;border:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--ochre);outline-offset:3px}button:disabled{opacity:.58;cursor:wait}[hidden]{display:none!important}
#studio{height:100vh;height:100dvh;min-height:360px;position:relative;isolation:isolate;overflow:hidden}#world,.scrim{position:absolute;inset:0;width:100%;height:100%}#world{z-index:-3;touch-action:none;outline:0;cursor:grab;background:linear-gradient(#8ea7b8,#d3d8d2 52%,#5b7972)}#world:active{cursor:grabbing}.scrim{z-index:-2;pointer-events:none;background:linear-gradient(180deg,#091d2b9c,transparent 17%,transparent 62%,#07181bbf)}
.mast{height:72px;margin:0 var(--edge);display:flex;align-items:center;gap:30px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;font:300 21px/1 Plex,Georgia,serif;white-space:nowrap}.mast nav{display:flex;gap:clamp(15px,2.8vw,48px);margin-left:auto;align-self:stretch}.mast nav a{display:grid;align-items:center;font-size:.88rem;position:relative;text-shadow:0 1px 8px #14212688}.mast nav a[aria-current]:after{content:"";position:absolute;bottom:-1px;height:2px;background:var(--ochre);width:100%}#help,#reset{width:36px;height:36px;border:1px solid var(--line);border-radius:50%;font-size:1rem}#help:hover,#reset:hover,.mast a:hover{color:var(--ochre)}
#panel,.tab{position:absolute;right:var(--edge);top:91px;background:#17292ae8;border:1px solid #d7e3d53d;box-shadow:0 8px 30px #07151b25;border-radius:5px;backdrop-filter:blur(11px)}#panel{width:272px;max-height:calc(100% - 208px);overflow:auto;padding:17px 19px}.tab{padding:10px 16px;font-size:.88rem}.panel-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:10px}.panel-head h2{font:300 23px/1.1 Plex,Georgia,serif;margin:0;letter-spacing:-.04em}.panel-head button,#close-guide{font-size:1.45rem;color:var(--ivory);line-height:1;min-width:32px;min-height:30px}#panel label{display:flex;justify-content:space-between;align-items:baseline;margin:13px 0 5px;font-size:.87rem;color:#e8ece3}#panel output{color:var(--ochre);font-variant-numeric:tabular-nums}select,input:not([type=range]){background:#243735;border:1px solid #cddbc73e;padding:8px 9px;font-size:1rem}#style,.seed-row,input[type=range]{width:100%}.seed-row{display:flex;gap:6px}.seed-row input{width:0;flex:1}.seed-row button{border:1px solid var(--line);width:39px;font-size:24px;color:var(--ochre);line-height:1}input[type=range]{accent-color:var(--ochre);margin:0;height:18px;cursor:pointer}#generate,#fly{color:#26302c;background:var(--ivory);font-weight:600;padding:10px 15px}#generate{width:100%;margin-top:14px}#share{display:block;width:100%;margin-top:7px;padding:6px 0 2px;font-size:.81rem;color:#e3d6bb}button:hover{filter:brightness(1.12)}
.caption{position:absolute;left:var(--edge);bottom:117px;pointer-events:none;max-width:55%;text-shadow:0 2px 20px #0c202255}.caption>span{font-size:.73rem;letter-spacing:.18em;text-transform:uppercase;color:#ffdda0;font-weight:600}.caption h1{font:300 clamp(2.5rem,5.8vw,6.2rem)/1.06 Plex,Georgia,serif;letter-spacing:-.065em;margin:7px 0 3px}.caption p{margin:0;font-size:.94rem;color:#edece0;overflow-wrap:anywhere}.deck{position:absolute;bottom:max(18px,env(safe-area-inset-bottom));left:var(--edge);right:var(--edge);display:flex;gap:clamp(16px,3vw,50px);align-items:center;padding:14px 18px;background:#152626dd;border:1px solid var(--line);border-radius:4px;backdrop-filter:blur(10px)}.pilot{display:flex;align-items:center;gap:9px}#fly{white-space:nowrap}#reset{font-size:21px}.readout small,.setting{display:block;font-size:.77rem;color:#d2d8cc}.readout strong,.setting select{font-size:1.03rem;display:block;font-variant-numeric:tabular-nums;font-weight:500;white-space:nowrap}.readout b,.readout em{font:inherit}.readout{min-width:82px}.setting select{font-size:.86rem;margin-top:3px;padding:4px 5px}.setting.sunlight{margin-left:auto}#status{position:absolute;left:var(--edge);top:88px;max-width:min(470px,85vw);background:#142526e8;padding:8px 14px;font-size:.87rem;border-radius:3px;pointer-events:none}#status:empty{display:none}
.flying .caption{display:none}.flying #world{cursor:crosshair}#touch{position:absolute;bottom:112px;left:var(--edge);right:var(--edge);display:flex;justify-content:space-between;align-items:flex-end;pointer-events:none}#touch button{pointer-events:auto;border:1px solid var(--line);background:#182a2cc9;border-radius:5px;height:42px;width:42px;touch-action:none;user-select:none}.pad{text-align:center}.lift{display:grid;gap:5px}
dialog{background:#182a28;padding:26px 30px;border:1px solid var(--line);border-radius:5px;max-width:min(460px,92vw);max-height:82dvh;overflow:auto}dialog::backdrop{background:#0b1618a8}dialog h2{font:300 2rem/1.1 Plex,Georgia,serif;margin:8px 24px 16px 0}dialog p{color:#dbe4d6;font-size:.94rem}dl{display:grid;grid-template-columns:auto 1fr;gap:8px 14px}dt{color:var(--ochre)}dd{margin:0}#close-guide{float:right}
@media(max-width:800px){.mast{gap:13px}.brand{font-size:18px}.brand img{width:34px}.deck{gap:16px}.caption{bottom:120px}#panel{width:245px}}
@media(max-width:650px){:root{--edge:14px}.mast{display:grid;grid-template-columns:1fr auto;grid-template-rows:43px 32px;height:75px;gap:0}.brand{grid-column:1}.brand img{width:30px;height:30px}.mast nav{grid-row:2;grid-column:1/-1;width:100%;justify-content:space-between;gap:8px}.mast nav a{font-size:.81rem}#help{grid-column:2;grid-row:1;width:30px;height:30px}#panel,.tab{top:87px}#panel{width:min(280px,calc(100% - 28px));max-height:calc(100% - 202px)}#status{top:132px;max-width:80vw}.caption{max-width:85%;bottom:116px}.caption h1{font-size:clamp(2.3rem,9vw,3.6rem)}.deck{gap:10px;padding:10px;bottom:12px}.pilot{gap:4px}#fly{padding:9px 10px;font-size:.87rem}#reset{height:30px;width:30px}.readout{min-width:52px}.traveled,.sunlight{display:none!important}.setting{margin-left:auto}.readout strong{font-size:.92rem}.setting select{font-size:.78rem}.editing .caption{display:none}.flying #touch{bottom:103px}}
@media(max-height:600px){.mast{height:55px}#panel,.tab{top:64px}#panel{max-height:calc(100% - 150px)}.caption{bottom:96px}.caption h1{font-size:2.6rem}.deck{bottom:8px;padding:7px 12px}}
#studio .scrim{background:linear-gradient(180deg,#07192087,transparent 18%,transparent 61%,#071518ae)}
#studio .deck{background:linear-gradient(100deg,#182825d9,#1c292bd4);gap:clamp(12px,2vw,34px)}
.setting.sunlight{margin-left:0}.setting.view-choice{margin-left:auto}
.quality-choice{display:flex;align-items:center;justify-content:space-between}
#guide a{color:var(--ochre);text-decoration:underline}
@media(max-width:750px){.deck .traveled{display:none}.setting.view-choice{margin-left:0}.mast nav{gap:11px}}
@media(max-width:650px){.mast nav{gap:10px;overflow-x:auto;white-space:nowrap}.mast nav a{font-size:.76rem}.deck .view-choice{display:block}.deck .setting{margin-left:0}.deck .readout{min-width:43px}.deck .pilot{gap:2px}#studio .deck{gap:6px;padding:8px}.deck .setting select{max-width:90px}.deck #reset{width:25px;height:25px}}
@media(max-width:380px){.deck #reset{display:none}}

#stone-run{margin-top:10px;pointer-events:auto;cursor:pointer;padding:8px 14px;color:#fff4dd;border:1px solid #edddbd87;background:#192722db;border-radius:5px;font:500 14px/1.25 Arial}#stone-run[hidden]{display:none!important}
