@font-face{font-family:Space;src:url(assets/display.ttf) format('truetype');font-weight:700;font-display:swap}
:root{--bg:#042630;--ink:#edf0e6;--muted:#a0b6af;--accent:#f4a247;--line:#b6d6bf30;--mono:'Courier New',monospace;--display:Space,Arial,sans-serif}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{overscroll-behavior-y:none;overflow-x:clip;background:var(--bg);scrollbar-color:#8aa59c66 var(--bg)}
body{margin:0;min-width:320px;min-height:220vh;min-height:220svh;overscroll-behavior-y:none;background:var(--bg);color:var(--ink);font-family:Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
button,a{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:7px}
::selection{background:var(--accent);color:#06232a}
.skip{position:fixed;top:-100px;left:20px;z-index:30;background:var(--bg);padding:20px}
.skip:focus{top:15px}
.scene-layer{position:fixed;top:0;left:0;right:0;height:100vh;height:100lvh;z-index:0;overflow:hidden;background:radial-gradient(ellipse at 70% 50%,#2b5a58 0,transparent 50%),var(--bg)}
#scene{display:block;width:100%;height:100%;touch-action:pan-y pinch-zoom;cursor:crosshair}
#scene:active{cursor:crosshair}
#scene.over-artifact,.editing-map #scene.over-artifact{cursor:pointer}
.editing-map #scene{cursor:crosshair}
#scene[hidden]{display:none}
#scene:focus-visible{outline:1px solid #9ad3c466;outline-offset:-8px}
.grain{position:fixed;inset:0;z-index:1;pointer-events:none;opacity:.065;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.6' filter='url(%23n)'/%3E%3C/svg%3E")}
.edge-shade{position:fixed;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,#041a2280,transparent 65%),linear-gradient(0deg,#031b24bb,transparent 22%,transparent 85%,#031b2466)}
/* Native scrolling moves the camera while the studio composition stays in place. */
.shell{position:sticky;top:0;z-index:2;width:100%;max-width:2000px;margin-inline:auto;height:100svh;min-height:580px;padding-inline:clamp(24px,4vw,96px);display:flex;flex-direction:column;pointer-events:none}
.shell button,.shell a{pointer-events:auto}
header,footer,.hero-meta{pointer-events:auto;user-select:text;-webkit-user-select:text}
 .brand-lockup{display:flex;align-items:center;gap:32px}
header{height:105px;flex-shrink:0;display:flex;align-items:center;gap:40px;border-bottom:1px solid var(--line)}
.logo{display:flex;gap:12px;align-items:center}
.logo svg{width:36px;height:36px;color:var(--accent);flex-shrink:0;}
.logo>span{font:700 29px/1 var(--display);letter-spacing:-1.7px}
.logo b{color:var(--accent)}
.studio-label{font:8px/1 var(--mono);letter-spacing:1.5px;color:var(--muted)}
.header-right{display:flex;align-items:center;gap:43px;margin-left:auto}
.header-right>button{display:inline-flex;align-items:center;gap:17px;font-size:11px;line-height:1;min-height:44px;padding:0}
.header-right>button span{font-size:18px;line-height:1;color:var(--accent)}
main{flex:1;position:relative;min-height:0;display:flex;flex-direction:column;justify-content:center;padding-bottom:15px}
.hero-meta{position:absolute;left:0;top:28px;display:flex;align-items:center;gap:12px;cursor:text}
.hero-meta p{font:8px var(--mono);letter-spacing:1.4px;margin:0;color:var(--muted)}
.meta-line{width:30px;height:1px;background:var(--accent)}
.headline{max-width:53%;cursor:text}
.headline h1,.headline>p{width:fit-content;max-width:100%;pointer-events:auto;user-select:text;-webkit-user-select:text}
.headline h1{font:700 clamp(64px,6.2vw,128px)/1.02 var(--display);letter-spacing:-.065em;margin:0;text-shadow:0 2px 22px #041b22aa}
.headline h1 em{font:italic 1.14em/1 Georgia,serif;letter-spacing:-.065em;color:#d6e1cf}
.headline>p{font-size:13px;line-height:1.85;color:#bdcec2;margin:32px 0 26px}
.highfive{display:flex;align-items:center;gap:15px;background:#e9eddd;color:#17342e;border:1px solid #e9eddd6b;border-radius:2px;padding:15px 19px;min-height:51px;font-size:11px;box-shadow:0 4px 30px #00161d22;transition:background .2s,transform .2s}
.highfive:hover{background:var(--accent);transform:translateY(-2px)}
.editing-map .highfive{background:#082c34d9;color:var(--ink);border-color:#a8d2c855}
.button-arrow{font-size:20px;margin-left:35px}
.five{display:flex;align-items:flex-end;gap:2px;height:18px}
.five b{display:block;width:2px;background:currentColor;border-radius:2px;height:11px;transform:rotate(-12deg)}
.five b:nth-child(2){height:16px}.five b:nth-child(3){height:19px}.five b:nth-child(4){height:16px}.five b:nth-child(5){height:10px;transform:rotate(25deg)}
.artifact-stage{position:absolute;left:55%;right:0;top:6%;bottom:6%;pointer-events:none}
footer{height:76px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:30px;border-top:1px solid var(--line)}
#sound{display:flex;align-items:center;gap:9px;font:8px var(--mono);letter-spacing:.6px;min-height:44px;padding:0;color:#c4d4c5}
.sound-icon{font-size:25px;color:var(--accent);width:20px}
.copyright{font:7px var(--mono);letter-spacing:.8px;color:#90a69b}
dialog{border:1px solid #95b9a666;background:#0b282ef5;color:#edf0e6;padding:55px;width:560px;max-width:90vw;max-height:90svh;box-shadow:0 30px 100px #001a22b3;backdrop-filter:blur(25px)}
dialog::backdrop{background:#00141b80;backdrop-filter:blur(10px)}
#about-close{position:absolute;top:10px;right:15px;font:28px Arial;min-width:44px;min-height:44px;color:#c7dbc6}
.about-mark{width:65px;height:65px;color:var(--accent);margin-bottom:28px}
.eyebrow{font:7px/1.7 var(--mono);letter-spacing:1px;color:var(--muted)}
dialog h2{font:700 38px/1.1 var(--display);letter-spacing:-1.8px;margin:24px 0}
dialog h2 em{font:italic 1.1em Georgia,serif;color:#d2dfc8}
dialog>p:not(.eyebrow){font-size:12px;line-height:1.9;color:#b3c9b9}
.about-last{margin-top:26px}
#about-play{margin-top:20px;border-bottom:1px solid #95b9a655;padding:12px 0;font-size:11px;display:flex;gap:40px}
#about-play span{font-size:19px;color:var(--accent)}
#fallback{position:absolute;top:50%;left:70%;width:330px;height:330px;transform:translate(-50%,-50%) rotate(-25deg)}
#fallback[hidden]{display:none}
#fallback>div{position:absolute;inset:0;border:8px solid #cad8bf;border-radius:50%;box-shadow:0 0 40px #b0d6c815,inset 0 0 40px #b0d6c815;transform:rotateY(25deg)}
#fallback>div:nth-child(2){inset:25px;border-color:#c1d3b9}#fallback>div:nth-child(3){inset:50px;border-color:#d4d8bd}#fallback>div:nth-child(4){inset:75px;border-color:#f4b17d}#fallback>div:nth-child(5){inset:100px;border-color:#ff8256}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1700px){.headline>p{margin-top:45px;font-size:15px}.highfive{margin-top:35px}}
@media(min-width:2200px){header{height:120px}.headline h1{font-size:128px}footer{height:90px}}
@media(min-width:901px) and (max-width:1250px){.headline h1{font-size:6.1vw}.artifact-stage{left:57%}}
@media(max-width:1100px){header{gap:25px;height:90px}.studio-label{display:none}.header-right{gap:30px}.headline>p{font-size:12px}}
@media(max-width:900px){
 .shell{padding-inline:6%;min-height: min(620px,100svh)}header{height:72px;gap:15px}
 .logo{gap:9px}.logo svg{width:27px;height:27px}.logo>span{font-size:25px}
 .header-right{gap:0}.header-right>button{font-size:10px}.header-right>button span{font-size:15px}
 main{justify-content:flex-start;padding-top:60px;padding-bottom:0}
 .hero-meta{top:24px;gap:10px}.hero-meta p{font-size:6px;letter-spacing:1px}.meta-line{width:20px}
 .headline{max-width:100%}.headline h1{font-size:clamp(36px,10.9vw,60px);line-height:1}.headline h1 em{font-size:1.13em}
 .headline>p{font-size:11px;line-height:1.75;margin:20px 0}
 .highfive{font-size:10px;min-height:45px;padding:12px 15px;gap:12px}.button-arrow{font-size:18px;margin-left:24px}.five{transform:scale(.8)}
 .artifact-stage{left:0;right:0;top:295px;bottom:20px}
 footer{height:62px;gap:20px}.copyright{font-size:6px}#sound{font-size:7px}
 dialog{padding:34px 28px;width:90vw}dialog h2{font-size:30px;letter-spacing:-1.3px}.about-mark{width:50px;height:50px;margin-bottom:20px}
 #fallback{top:64%;left:50%;width:230px;height:230px}#fallback>div{border-width:6px}#fallback>div:nth-child(2){inset:18px}#fallback>div:nth-child(3){inset:36px}#fallback>div:nth-child(4){inset:54px}#fallback>div:nth-child(5){inset:72px}
 .edge-shade{background:linear-gradient(180deg,#031b24b0,transparent 45%,#031b2455 65%,#031b24bb 100%)}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

@media(prefers-reduced-motion:reduce){.logo svg{transition:none}.logo:hover svg,.logo:focus-visible svg{transform:none}}

#balance{width:154px;height:44px;display:flex;align-items:center;color:#adc9bd;outline-offset:0;cursor:default}
#balance svg{width:100%;height:32px;overflow:visible}.balance-track{opacity:.26}.balance-tick{opacity:.45}
.nature-glyph{color:#9ccfa5}.industry-glyph{color:#d6a178}#balance-bead{fill:#9ccfa5;filter:drop-shadow(0 0 4px #9ccfa544)}
#balance:focus-visible{outline:1px solid var(--accent)}
@media(max-width:600px){#balance{width:94px}.brand-lockup{gap:16px}footer{gap:12px}.header-right>button{gap:9px}}

.footer-left{display:flex;align-items:center;gap:25px}.sandbox-link,.local-world{font:8px/1 var(--mono);letter-spacing:.6px;color:#b7cbbf}.sandbox-link{display:inline-flex;align-items:center;gap:8px;min-height:44px}.sandbox-link svg{color:var(--accent);width:11px;height:11px;flex:none;display:block}.sandbox-link:hover{color:var(--ink)}
.studio-return{font:11px Arial;display:flex;align-items:center;gap:16px;min-height:44px}.studio-return span{color:var(--accent);font-size:18px}
.sandbox .shell{max-width:none;min-height:460px;padding-inline:clamp(22px,3vw,70px)}.sandbox header{height:86px}.sandbox main{padding:0}.sandbox .artifact-stage{inset:0}.sandbox .edge-shade{background:linear-gradient(0deg,#031b2499,transparent 20%,transparent 85%,#031b2455)}
.sandbox footer{height:66px}.world-tools{position:absolute;left:50%;bottom:88px;transform:translateX(-50%);display:flex;align-items:center;gap:10px;pointer-events:auto;padding:7px;border:1px solid #b6d6bf35;border-radius:12px;background:#092831e8;box-shadow:0 10px 45px #00131c55;backdrop-filter:blur(16px)}
#guide-open{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0;font:9px/1 var(--mono);color:#c1d4c6}#guide-open svg{width:19px;height:19px;color:var(--accent)}#guide-open:hover{color:var(--ink)}
#field-guide{width:1060px;max-width:calc(100vw - 28px);max-height:88svh;padding:0;border-radius:14px;background:#09272e;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;pointer-events:auto}
.guide-heading{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:28px 34px 22px;background:#09272ef7;border-bottom:1px solid var(--line);backdrop-filter:blur(14px)}.guide-heading .eyebrow{font-size:8px;letter-spacing:1.6px;margin:0 0 10px;color:#a5bcb1}.guide-heading h2{margin:0;font:700 clamp(23px,3vw,36px)/1.1 var(--display);letter-spacing:-1.2px}.guide-heading h2 em{font-weight:400;color:#ccdcbf}.guide-close{align-self:flex-start;flex:none;font:28px/1 Arial;min-width:44px;min-height:44px;color:#d6dccc;border:1px solid var(--line);border-radius:50%}.guide-close:hover{color:var(--accent);border-color:var(--accent)}
.guide-body{padding:23px 34px 30px}.guide-intro{font:15px/1.6 Arial;color:#d5dfd1;margin:0 0 18px}.guide-key{display:flex;flex-wrap:wrap;gap:20px;font:9px/1.5 var(--mono);color:#b0c5b9}.guide-key span{display:inline-flex;align-items:center;gap:7px}.guide-key i{width:10px;height:10px;display:inline-block;border-radius:2px}.key-land{background:#829c6c}.key-water{border:1px dashed #80b9b4}.key-feature{background:#edb16e}.guide-seed{font:11px/1.7 Arial;color:#9fbab0;margin:15px 0 23px;max-width:680px}.guide-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}.guide-filters button{padding:10px 14px;min-height:40px;border:1px solid #a8c8b631;border-radius:24px;font:11px/1 Arial;color:#b4c9bb}.guide-filters button[aria-pressed=true]{background:#e3e8ce;color:#12363a;border-color:#e3e8ce}.guide-filters button:hover{border-color:#c7d4ba}
.guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.guide-card{border:1px solid #a5c5b52b;border-radius:8px;overflow:hidden;background:#0e3035;display:flex;flex-direction:column}.guide-illustration{height:126px;background:radial-gradient(ellipse at 50% 95%,#37605c45,transparent 80%),#102f34;position:relative;border-bottom:1px solid #a5c5b51c}.guide-illustration svg{display:block;width:100%;height:100%;padding:12px 15px 5px}.guide-illustration>span{position:absolute;top:12px;right:12px;font:8px var(--mono);color:#90aca3}.guide-current{fill:none;stroke:#64a8a1;stroke-width:1;opacity:.3}.guide-land{fill:#78915e;stroke:#afbd84;stroke-width:.7}.guide-water{fill:#1c4449;stroke:#6eaaa2;stroke-width:.65;stroke-dasharray:2 3;opacity:.6}.guide-tree{stroke:#b4c896;stroke-width:1.8;fill:#375f46;stroke-linejoin:round}.guide-rock{fill:none;stroke:#d1ccac;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}.guide-accent{fill:none;stroke:#f3b370;stroke-width:2.7;stroke-linecap:round}.guide-contour{fill:none;stroke:#c1cbae;stroke-width:1.1;opacity:.8}.guide-stream{fill:#528b8c;stroke:#a9d6c6;stroke-width:2;stroke-linecap:round}.guide-coral{stroke:#e3a17e;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}.guide-fish{fill:#c6d8be}.guide-blossom{fill:#c9b6bc;stroke:#e3ced0;stroke-width:1}.guide-light{fill:#d5cfac;stroke:#edb16e;stroke-width:1.5;stroke-linejoin:round}.guide-house{fill:#718983;stroke:#d6d2aa;stroke-width:1.5;stroke-linejoin:round}.guide-boat{fill:#c5cfb5;stroke:#ecc08d;stroke-width:1;stroke-linejoin:round}
.guide-copy{padding:20px;display:flex;flex:1;flex-direction:column}.guide-tag{font:7px/1.4 var(--mono)!important;letter-spacing:1px;color:#e5b57e!important;margin:0 0 8px!important}.guide-copy h3{font:700 19px/1.2 var(--display);letter-spacing:-.4px;margin:0 0 10px;color:#e4ead9}.guide-copy>p,.guide-copy details p{font:12px/1.65 Arial;color:#bacdc0;margin:0 0 13px}.guide-copy .guide-rule{font-size:11px;color:#98b5a9;border-left:1px solid #85aa8f55;padding-left:12px}.guide-copy details{margin-top:auto;border-top:1px solid #a5c5b522}.guide-copy summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;padding:12px 0;font:10px/1.4 var(--mono);color:#cad7c3;min-height:44px}.guide-copy summary::-webkit-details-marker{display:none}.guide-copy summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.guide-copy details[open] summary span{transform:rotate(45deg)}.guide-copy details p{font-size:11px}.guide-example{display:flex;align-items:center;justify-content:space-between;width:100%;border-top:1px solid #a5c5b522;padding:12px 0 0;min-height:44px;text-align:left;font:11px/1 Arial;color:#e3c296}.guide-example span{font-size:16px}.guide-example:hover{color:#f7d2a2}.guide-footnote{display:flex;gap:12px;align-items:flex-start;margin-top:24px;border-top:1px solid var(--line);padding-top:20px}.guide-footnote>span{color:var(--accent);font:22px Georgia}.guide-footnote p{font:10px/1.8 var(--mono);color:#a2baad;margin:0}
@media(max-width:850px){.guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-heading{padding:24px}.guide-body{padding:22px 24px}}
@media(max-width:520px){#field-guide{max-height:92svh;max-width:calc(100vw - 20px);border-radius:10px}.guide-heading{padding:20px 17px 16px;gap:8px}.guide-heading h2{font-size:25px;max-width:220px}.guide-heading .eyebrow{font-size:7px}.guide-body{padding:20px 17px}.guide-intro{font-size:13px}.guide-grid{grid-template-columns:1fr;gap:15px}.guide-illustration{height:128px}.guide-key{gap:12px;font-size:8px}.guide-filters{gap:6px}.guide-filters button{font-size:10px;padding:9px 11px}.guide-copy{padding:19px}.guide-copy>p{font-size:13px}.guide-copy .guide-rule{font-size:12px}.guide-copy details p{font-size:12px}.guide-copy h3{font-size:21px}#guide-open{font-size:8px;gap:6px}#guide-open svg{width:16px;height:16px}}
.tool-pair{display:flex;gap:3px;padding-right:9px;border-right:1px solid #b6d6bf25}.world-tools button{font:11px Arial;min-height:42px;padding:0 15px;border-radius:6px;white-space:nowrap;transition:background .2s}.world-tools button span{color:#b8d2c6;margin-right:7px;font-size:17px}.world-tools button[aria-pressed=true]{background:#dce7d4;color:#123631}.world-tools button[aria-pressed=true] span{color:#123631}.world-tools button:hover{background:#bfd9c51f}.world-tools button[aria-pressed=true]:hover{background:#edf0e6}
#template-panel{position:absolute;bottom:160px;left:50%;transform:translateX(-50%);width:520px;max-width:calc(100vw - 32px);max-height:calc(100svh - 270px);overflow:auto;padding:24px;background:#08242ded;border:1px solid #b6d6bf40;border-radius:14px;box-shadow:0 20px 90px #001018aa;backdrop-filter:blur(22px);pointer-events:auto}#template-panel[hidden]{display:none}.template-heading{position:sticky;top:0;z-index:3;background:#08242d;box-shadow:0 -26px #08242d,0 10px #08242d;display:flex;align-items:center;justify-content:space-between;margin-bottom:19px}.template-heading .eyebrow{margin:0 0 7px}.template-heading h1{font:700 24px/1 var(--display);letter-spacing:-.8px;margin:0}#templates-close{font:25px Arial;min-height:44px;min-width:44px;color:#b5cfc2}
.template-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.template-grid button{padding:0 0 12px;text-align:left;border:1px solid #aacbb52b;border-radius:7px;overflow:hidden;background:#0d3037;transition:border-color .2s}.template-grid button[aria-pressed=true]{border-color:#f1ae69}.template-grid button:hover{border-color:#d5e5d28c}.template-grid strong,.template-grid small{display:block;padding:0 11px}.template-grid strong{font:12px Arial;margin:11px 0 5px}.template-grid small{font:8px/1.5 var(--mono);color:#9dbbb0;white-space:nowrap}.template-note{font:9px/1.6 var(--mono);color:#9dbbb0;margin:20px 0 0}
.lab-tabs{display:flex;gap:24px;border-bottom:1px solid #aacbb526;margin:0 0 18px}.lab-tabs button{min-height:40px;font:11px Arial;color:#99b9ad;border-bottom:1px solid transparent;padding:0 0 12px}.lab-tabs button[aria-pressed=true]{border-color:var(--accent);color:#eef1dc}.lab-tabs span{color:var(--accent);margin-left:6px}#lab-events[hidden],#lab-templates[hidden]{display:none}.event-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.event-grid button{display:grid;grid-template-columns:40px 1fr;text-align:left;padding:17px 12px;border:1px solid #aacbb52b;border-radius:7px;background:#0d303766;min-height:85px}.event-grid button:hover{background:#19434b;border-color:#aacbb56b}.event-grid button>span{grid-row:span 2;font:31px/1.4 Georgia;color:#c4c9a5}.event-grid strong{font:12px/1.8 Arial}.event-grid small{font:8px/1.7 var(--mono);color:#9dbbb0}.event-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:16px}.event-bottom p{font:9px/1.7 var(--mono);color:#9dbbb0;max-width:220px;margin:0}.event-bottom button{font:10px Arial;min-height:44px;white-space:nowrap;color:#dcc3a0}.event-bottom button span{margin-left:5px}
.template-art{position:relative;display:block;height:76px;overflow:hidden;background:repeating-radial-gradient(ellipse at 80% 20%,transparent 0 12px,#99d3c31a 13px 14px,transparent 15px 23px),#124653}.template-art i{position:absolute;width:40px;height:23px;background:#9aaf6b;border:3px solid #b3ad7c;border-radius:45% 55% 50% 30%;transform:rotate(-16deg);left:12%;top:30%}.template-art i:nth-child(2){left:60%;top:15%;width:29px;height:19px}.template-art i:nth-child(3){left:55%;top:65%;width:34px;height:19px}.template-art b{display:none;position:absolute;width:12px;height:24px;background:#476069;box-shadow:inset 0 4px #c0a177;left:24%;top:45%;transform:skewY(-12deg)}.template-art b:nth-last-child(2){left:55%;top:21%}.template-art b:last-child{left:75%;top:50%}.art-garden i:first-child{width:80px;height:48px;top:20%;background:#658a51}.art-garden i:nth-child(2){background:#557f48}.art-balance b,.art-industry b,.art-density b{display:block}.art-balance i:first-child{width:65px;height:44px}.art-industry,.art-density{background-color:#1b263f}.art-industry i{background:#bc9c70;border-color:#ac946d}.art-density i{background:#b6a27e;border-color:#af9c78;width:100%!important;height:100%!important;inset:0!important;border-radius:0}.art-empty i,.art-empty b{display:none}
@media(max-width:600px){.footer-left{gap:12px}.sandbox-link,.local-world{font-size:7px}#balance{width:68px}.sandbox header{height:72px}.sandbox .logo svg{width:25px;height:25px}.sandbox .logo>span{font-size:23px}.studio-return{font-size:10px;gap:8px}.world-tools{bottom:83px;gap:4px;padding:5px;max-width:calc(100vw - 24px)}.world-tools button{font-size:10px;padding:0 9px;min-height:42px}.world-tools button span{font-size:14px;margin-right:4px}.tool-pair{padding-right:5px}#template-panel{bottom:145px;max-height:calc(100svh - 235px);padding:18px}.template-grid{grid-template-columns:repeat(2,1fr)}.template-art{height:58px}.sandbox .copyright{font-size:6px;letter-spacing:.6px}.sandbox .local-world{font-size:7px}}

.art-coast i{background:#c2c0a2;box-shadow:3px 5px 0 #677b76}.art-coast b{border-radius:40% 40% 10% 10%;background:#c9c5a7!important;height:28px!important;width:19px!important}
/* Touch devices keep native vertical scrolling and pinch zoom. Avoid expensive
   fullscreen filter passes on the same GPU that is drawing the ocean. */
@media(pointer:coarse){
 .grain{display:none}
 dialog,dialog::backdrop,.world-tools,.guide-heading,#template-panel{backdrop-filter:none}
 .world-tools,#template-panel{background:#092831f7}
 .world-tools button,.guide-filters button{min-height:44px}
}
dialog,#template-panel{overscroll-behavior:contain}
@media(max-width:900px) and (max-height:560px){
 .shell,.sandbox .shell{min-height:100svh}
 header,.sandbox header{height:56px}
 footer,.sandbox footer{height:54px}
 main{justify-content:center;padding:0}
 .hero-meta,.headline>p{display:none}
 .headline{max-width:50%}
 .headline h1{font-size:clamp(29px,5.8vw,49px)}
 .highfive{margin-top:16px;padding:8px 12px;min-height:44px}
 .artifact-stage{left:55%;top:4%;bottom:4%}
 .world-tools{bottom:66px}
 #template-panel{bottom:125px;max-height:calc(100svh - 148px)}
}
.hero-actions{display:flex;align-items:center;gap:12px}
.view-toggle{display:none}
@media(max-width:900px){
 .view-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:66px;min-height:45px;padding:10px 13px;border:1px solid #a5c5b54d;border-radius:3px;color:#c5d9c9;font:11px/1 Arial;background:#092831aa}
 .view-toggle svg{width:17px;height:17px;color:var(--accent)}
 .view-toggle:active{background:#36594f}
}
@media(pointer:coarse){
 .shell{padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);padding-left:max(6%,env(safe-area-inset-left));padding-right:max(6%,env(safe-area-inset-right))}
 .sandbox .shell{padding-left:max(22px,env(safe-area-inset-left));padding-right:max(22px,env(safe-area-inset-right))}
 .world-tools{bottom:calc(88px + env(safe-area-inset-bottom))}
 #template-panel{bottom:calc(160px + env(safe-area-inset-bottom));max-height:calc(100svh - 210px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
 .studio-return,#sound,.sandbox-link,#guide-open{min-height:44px}
 .template-grid small{white-space:normal}
}
@media(pointer:coarse) and (max-width:600px){
 .world-tools{bottom:calc(83px + env(safe-area-inset-bottom))}
 #template-panel{bottom:calc(145px + env(safe-area-inset-bottom))}
}
@media(max-width:900px) and (max-height:560px){
 .hero-actions{align-items:flex-end;gap:9px}
 .view-toggle{min-height:44px;padding-inline:10px}
}
@media(pointer:coarse) and (max-width:900px) and (max-height:560px){
 .world-tools{bottom:calc(66px + env(safe-area-inset-bottom))}
 #template-panel{bottom:calc(125px + env(safe-area-inset-bottom));max-height:calc(100svh - 148px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
}
