
@font-face{font-family:BuildPixel;src:url('./pixelify.ttf') format('truetype');font-display:swap}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#bfe7ff;color:#24342e;font:12px system-ui}#map{position:absolute;inset:0;background:#bfe7ff}button,input,select,summary{-webkit-tap-highlight-color:transparent}button,summary{cursor:pointer}button,select,input[type=number]{font:inherit;color:inherit;background:#f5f7f4;border:1px solid #d6ded6;border-radius:7px;min-height:34px;padding:6px 10px}button:hover,summary:hover{background:#eaf0e9}button:disabled{opacity:.4;cursor:default}button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #27825b;outline-offset:3px}[hidden]{display:none!important}label{display:flex;align-items:center;gap:6px}input[type=checkbox],input[type=range]{accent-color:#267957}header{position:fixed;top:16px;left:16px;z-index:4;width:310px;max-width:calc(100% - 70px)}.searchbar{display:flex;align-items:center;gap:8px;background:#fffffff5;border:1px solid #d5dfd5;border-radius:12px;padding:8px;box-shadow:0 4px 18px #183c2920}.brand{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;background:#e5efe3;color:#39734b;border-radius:8px;font-size:24px}#search{min-width:0;width:100%;background:none;border:0;outline:none;padding:5px;font:13px system-ui;color:#263e31}.map-options{position:relative}.map-options>summary{list-style:none;display:grid;place-items:center;width:34px;height:34px;border-radius:6px;font-size:21px}.map-options>summary::-webkit-details-marker{display:none}.map-popover{position:absolute;right:0;top:48px;width:290px;padding:16px;background:#fffffff9;border:1px solid #d5dfd5;border-radius:12px;box-shadow:0 8px 24px #132c2429}.map-popover strong{font-size:13px}.map-popover .tools{margin-top:14px}#status,#altitude{font-size:11px;line-height:1.5;color:#6d7e73}.tilt-control{margin-top:12px}.tilt-control input{width:120px}.tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}#edit{position:fixed;left:16px;top:86px;z-index:3;min-width:162px;height:44px;padding:0 20px;border:2px solid #242723;border-radius:0;background:repeating-linear-gradient(0deg,#ffffff03 0 2px,#00000003 2px 4px),#777;box-shadow:inset 2px 2px #c6c6c6,inset -2px -3px #414141,0 2px 0 #0004;color:#fff;font:23px BuildPixel,monospace;text-shadow:2px 2px #303030;touch-action:manipulation}#edit:hover{background-color:#85859c;color:#ffffae}#edit[aria-pressed=true]{background-color:#5e7165;box-shadow:inset 2px 2px #acbfae,inset -2px -3px #344538}
#editor{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);z-index:5;width:368px;max-width:calc(100% - 24px);background:#fffffff7;border:1px solid #d2ddd2;border-radius:15px;box-shadow:0 8px 35px #193b2d30;overflow:hidden}.editor-head{height:46px;display:flex;align-items:center;gap:9px;padding:10px 12px;border-bottom:1px solid #e4e9e2}.editor-mark{display:grid;place-items:center;width:30px;height:30px;background:#e6f1e4;border-radius:8px;color:#3d7751;font-size:22px}.editor-title{flex:1}.editor-title strong{font:19px BuildPixel,monospace;display:block}.editor-title small{font-size:10px;color:#7b8a7d}.icon-button{width:30px;min-height:30px;padding:2px;font-size:18px;background:transparent;border-color:transparent}.editor-body{padding:10px;max-height:calc(75dvh - 52px);overflow-y:auto}.action-row{display:flex;gap:8px;align-items:center;margin-bottom:8px}.mode-switch{display:flex;padding:3px;gap:3px;border-radius:8px;background:#edf2eb;flex:1}.mode-switch button{border:0;background:transparent;min-height:31px;flex:1;color:#637267;font-weight:600}.mode-switch button[aria-pressed=true]{background:#fff;color:#256044;box-shadow:0 1px 4px #172e1920}.mode-switch button[data-mode=remove][aria-pressed=true]{color:#b14943}.section-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;color:#728074;font-size:10px;font-weight:700;letter-spacing:.09em;text-transform:uppercase}.color-custom{font-size:10px;letter-spacing:0;text-transform:none;font-weight:500}#cube-color{border:0;background:none;padding:0;width:24px;height:24px;cursor:pointer}.palette{display:grid;grid-template-columns:repeat(10,1fr);gap:6px;margin-bottom:10px}.swatch{padding:0;min-height:26px;height:26px;border-radius:5px;border:1px solid #00000015;position:relative}.swatch:hover{background:var(--swatch);transform:translateY(-1px)}.swatch[aria-pressed=true]{outline:2px solid #2d7350;outline-offset:2px}.swatch[aria-pressed=true]:after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:16px;text-shadow:0 1px 3px #000,0 0 2px #000}.dimensions{display:flex;gap:10px;padding:7px;background:#f3f6f0;border-radius:8px}.dimensions label{flex:1;color:#71816f;font-size:11px;justify-content:space-between}.dimensions input{width:58px}.dimensions select,.dimensions input{background:#fff;min-height:30px;padding:4px 6px}.editor-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:8px;gap:8px}#cube-count{font-size:10px;color:#6e7e72;margin:0;line-height:1.4}.editor-extras{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.camera-tools[open]{grid-column:1/-1}.camera-tools{margin-top:8px;border-top:1px solid #e5ebe2;padding-top:7px}.camera-tools summary{color:#657b68;font-size:11px;user-select:none;padding:3px 0}.camera-tools .tools{margin-top:10px}.camera-tools button{flex:1;min-width:35px}.camera-tools p{font-size:11px;color:#7b8a7d;line-height:1.6}.camera-tools #clear{color:#ab5148;background:#fbf4f0}.quiet-help{font-size:10px;color:#88958a;margin:12px 0 0;line-height:1.6}kbd{font:10px system-ui;background:#edf2e9;padding:1px 4px;border-radius:3px;color:#4d6a53}#editor.is-minimized .editor-body{display:none}#editor.is-minimized .editor-head{border-bottom:0}.maplibregl-ctrl-scale{background:#ffffffe6}.maplibregl-popup-content{color:#172c3f}footer{position:fixed;bottom:8px;left:50%;transform:translateX(-50%);font-size:9px;letter-spacing:.1em;color:#3e6050;background:#ffffffc9;padding:3px 8px;border-radius:4px;pointer-events:none;white-space:nowrap}#error{position:fixed;top:40%;left:10%;right:10%;z-index:10;padding:15px;background:#fff3e9;color:#8b3026;border-radius:8px}
@media(max-width:600px){header{left:12px;top:12px;width:280px}#search{font-size:16px}#edit{left:12px;top:78px;min-width:140px;height:40px;font-size:21px}#editor{bottom:35px;width:352px}.editor-body{max-height:calc(65dvh - 52px)}.palette{gap:6px}.swatch{min-height:25px;height:25px}footer{display:none}.map-popover{width:270px}}
@media(prefers-reduced-motion:no-preference){button{transition:background-color .12s,box-shadow .12s}.editor-body{scroll-behavior:smooth}}

/* Horizontal building dock, matching the supplied layout. */
#editor{left:12px;right:12px;bottom:30px;transform:none;width:auto;max-width:none;border:2px solid #334258;border-radius:0;background:#f8faff;box-shadow:inset 2px 2px #fff,inset -2px -2px #b6c2d4,0 3px 0 #23304440;overflow:visible;padding:8px}
.editor-head{height:36px;padding:0 2px 7px;gap:10px;border:0}.editor-title{display:flex;align-items:baseline;gap:9px;min-width:190px}.editor-title strong{font:17px system-ui;color:#24344f;white-space:nowrap}#cube-count{font:11px monospace;color:#60718a}.action-row{margin:0;gap:6px}.mode-switch{padding:0;background:none;gap:5px}.mode-switch button,#editor .icon-button{border:1px solid #a0afc5;border-radius:0;background:#e3e9f2;box-shadow:inset 2px 2px #fff,inset -2px -2px #a0adc1;min-height:30px;height:30px;color:#536884}.mode-switch button{font-size:11px;white-space:nowrap}.mode-switch button[aria-pressed=true]{background:#286ee9;color:#fff;box-shadow:inset 2px 2px #8fb4ff,inset -2px -2px #1646a4}.mode-switch button[data-mode=remove][aria-pressed=true]{color:#fff;background:#b74f53}#editor .icon-button{flex-shrink:0}#minimize-editor{margin-left:auto}.editor-body{display:grid;grid-template-columns:minmax(0,1fr) 178px;gap:8px;padding:0;overflow:visible;max-height:none}.palette-tray{background:#e4eaf4;border:2px solid #35445b;padding:7px;box-shadow:inset 2px 2px #fff;display:flex;align-items:flex-start;gap:8px;min-height:76px}.palette{display:flex;flex-wrap:wrap;gap:5px;margin:0;flex:1;align-content:flex-start}.swatch{width:27px;height:27px;min-height:27px;flex:0 0 27px;border:2px solid #5a6474;border-radius:0;box-shadow:inset 2px 2px #ffffff50,inset -2px -2px #00000025}.swatch[aria-pressed=true]{outline:2px solid #18283f;outline-offset:2px}.swatch[aria-pressed=true]:after{content:none}.color-custom{border-left:1px solid #b5c1d2;display:flex;align-items:center;gap:3px;padding-left:7px;color:#667994;font-size:14px}#cube-color{width:26px;height:29px}.build-settings{border:1px solid #acbad0;box-shadow:inset 2px 2px #fff,inset -2px -2px #c5cede;padding:5px;background:#edf2fb;display:flex;flex-direction:column;gap:4px}.dimensions{padding:0;background:none;border-radius:0;gap:6px}.dimensions label{font-size:10px;gap:3px;color:#536984;min-width:0}.dimensions select,.dimensions input{border-radius:0;min-height:26px;height:26px;padding:2px;width:47px;border-color:#acbad0}.build-settings #home{border-radius:0;min-height:27px;padding:3px;font-size:11px;color:#435e85;background:#e0e9f8;border-color:#a5b6cf}.editor-extras{display:flex;gap:7px;position:static}.camera-tools{margin:0;padding:0;border:0;position:relative}.camera-tools summary{list-style:none;border:1px solid #a0afc5;padding:6px 8px;height:30px;color:#536884;background:#e3e9f2;box-shadow:inset 2px 2px #fff,inset -2px -2px #a0adc1;font-size:11px;white-space:nowrap}.camera-tools summary::-webkit-details-marker{display:none}.camera-tools[open]{position:relative}.camera-tools[open]>:not(summary){background:#f8faff;margin:0;padding:10px;width:290px;border-left:1px solid #a0afc5;border-right:1px solid #a0afc5}.camera-tools[open]{display:flex;flex-direction:column}.camera-tools[open] summary{order:2}.camera-tools[open]{position:absolute;bottom:calc(100% + 8px);right:88px;box-shadow:0 -5px 20px #24344f25}.camera-tools[open]>.tools{border-top:1px solid #a0afc5}.camera-tools p{color:#60718a}.camera-tools p:last-child{padding-bottom:14px}#editor.is-minimized{width:420px;max-width:calc(100% - 24px)}#editor.is-minimized .action-row,#editor.is-minimized .editor-extras{display:none}#editor.is-minimized .editor-head{padding-bottom:0;height:30px}.camera-tools button{border-radius:0}
@media(max-width:760px){#editor{left:8px;right:8px;bottom:30px;padding:7px}.editor-head{flex-wrap:wrap;height:auto;min-height:66px;gap:5px;padding-bottom:7px}.editor-title{min-width:0;flex:1;order:0}.editor-title strong{font-size:14px}.editor-title #cube-count{font-size:9px}.action-row{order:3;flex:1}.editor-extras{order:4;gap:4px}#minimize-editor,#close-editor{order:1}.editor-body{grid-template-columns:minmax(0,1fr) 122px;gap:5px}.palette-tray{min-height:94px;padding:5px;display:block}.palette{gap:4px;max-height:110px;overflow-y:auto;padding:3px}.swatch{width:25px;height:25px;min-height:25px;flex-basis:25px}.color-custom{border:0;padding:3px 0 0;justify-content:flex-end}#cube-color{height:23px}.dimensions{flex-direction:column;gap:4px}.dimensions label{flex:auto}.build-settings{justify-content:space-between}.build-settings #home{font-size:10px}.camera-tools summary{font-size:10px;padding:6px}#editor.is-minimized{width:auto}.camera-tools[open]{bottom:calc(100% + 8px);right:8px}.editor-title{gap:5px}.mode-switch button{padding:4px 7px}}

/* Full-height vertical dock. */
#editor{top:12px;bottom:12px;left:12px;right:auto;width:190px;max-width:calc(100% - 24px);display:flex;flex-direction:column;padding:8px;gap:8px}
.editor-head{display:flex;flex-wrap:wrap;align-content:flex-start;flex-shrink:0;height:auto;min-height:0;gap:7px;padding:0;max-height:55dvh;overflow-y:auto}.editor-title{flex:0 0 100%;min-width:0;display:block;order:0}.editor-title strong{font-size:16px}.editor-title #cube-count{font-size:10px;margin:5px 0 0}.action-row{order:2;flex:0 0 100%;gap:5px}.mode-switch{flex:1;min-width:0}.mode-switch button{padding:4px;font-size:10px}.editor-extras{order:3;flex:0 0 100%;display:flex;flex-direction:column;gap:6px}.camera-tools summary{font-size:11px;padding:6px 8px}.camera-tools[open]{position:static;bottom:auto;right:auto;box-shadow:none;display:block}.camera-tools[open] summary{order:0}.camera-tools[open]>:not(summary){width:100%;padding:7px;border:1px solid #b6c3d5}.camera-tools[open]>.tools{gap:4px}.camera-tools button{min-width:26px;padding:4px}.camera-tools p{font-size:10px}.editor-head #minimize-editor{order:1;margin-left:auto}.editor-head #close-editor{order:1}.editor-body{display:flex;flex:1;min-height:0;flex-direction:column;gap:8px;overflow-y:auto}.palette-tray{display:flex;flex-direction:column;flex:1;min-height:100px;gap:8px;padding:7px;overflow-y:auto}.palette{display:grid;grid-template-columns:repeat(4,27px);justify-content:space-between;align-content:start;flex:1;gap:7px 5px;max-height:none;overflow:visible;padding:2px}.swatch{width:27px;height:27px;min-height:27px}.color-custom{width:100%;border-left:0;border-top:1px solid #b5c1d2;padding:7px 0 0;justify-content:flex-end}.build-settings{flex-shrink:0;gap:7px}.dimensions{flex-direction:column;gap:6px}.dimensions label{flex:auto}.dimensions select,.dimensions input{width:66px}.build-settings #home{font-size:11px;min-height:30px}#editor.is-minimized{width:190px;max-width:calc(100% - 24px);bottom:auto;gap:0}#editor.is-minimized .editor-head{height:auto;min-height:0;padding:0;overflow:visible}body:has(#editor:not([hidden])) header{left:218px;max-width:calc(100% - 280px)}body:has(#editor:not([hidden])) #edit{left:218px}
@media(max-width:600px){#editor{left:8px;top:8px;bottom:30px;width:178px;padding:7px}.palette{grid-template-columns:repeat(4,25px);gap:6px 4px}.swatch{width:25px;height:25px;min-height:25px}.editor-title strong{font-size:14px}.editor-title #cube-count{font-size:9px}.mode-switch button{font-size:9px;padding:4px 3px}#editor.is-minimized{width:178px;bottom:auto}body:has(#editor:not([hidden])) header{left:194px;width:calc(100% - 246px);max-width:none}.searchbar{gap:3px}body:has(#editor:not([hidden])) .brand{display:none}body:has(#editor:not([hidden])) #search{font-size:12px;padding:0}body:has(#editor:not([hidden])) .map-options>summary{width:24px}body:has(#editor:not([hidden])) #edit{left:194px;min-width:0;width:calc(100% - 206px);font-size:19px;padding:0 6px}.map-popover{right:0;width:min(270px,calc(100vw - 28px))}}
.editor-body{overflow:hidden}.palette-tray{overflow:hidden;min-height:80px}.palette{min-height:0;overflow-y:auto;flex:1;scrollbar-width:thin;align-content:start}.color-custom{flex-shrink:0;background:#e4eaf4;margin-top:auto}.build-settings #build-action{height:48px;min-height:48px;border:2px solid #263f67;border-radius:0;background:#286ee9;box-shadow:inset 2px 2px #8fb4ff,inset -2px -3px #1646a4;color:#fff;font:21px BuildPixel,monospace;text-shadow:1px 2px #173f83}.build-settings #build-action:hover{background:#387ef5}.build-settings #build-action[aria-pressed=false]{background:#607da7}.build-settings #home{height:30px}
.palette-tray{align-items:stretch;padding-right:2px}.palette{align-self:stretch;width:100%;padding:5px 4px 5px 4px;scrollbar-gutter:stable;grid-template-columns:repeat(4,27px)}.color-footer{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;gap:5px;margin:0 5px 0 0;padding:7px 0 0;border-top:1px solid #b5c1d2;min-height:36px}#recent-colors{display:flex;gap:4px;align-items:center;min-width:0;flex:1}#recent-colors:empty:before{content:'Recentes';font-size:9px;color:#78879b}.recent-swatch{width:19px;height:21px;min-height:21px;padding:0;flex:0 0 19px;border-radius:0;border:1px solid #66758b;box-shadow:inset 1px 1px #ffffff55;cursor:pointer}.recent-swatch[aria-pressed=true]{outline:1px solid #1c395e;outline-offset:1px}.color-footer .color-custom{width:auto;margin:0;padding:0;border:0;gap:3px;flex-shrink:0}@media(max-width:600px){.palette-tray{padding-right:2px}.palette{grid-template-columns:repeat(4,25px)}.recent-swatch{width:17px;flex-basis:17px}#recent-colors{gap:3px}}

/* Title and window controls share one compact row. */
.editor-title{flex:1 1 0;min-width:0;order:0;align-self:center}.editor-title strong{font-size:16px}#cube-count{display:none}#cube-count.is-notice{display:block;position:absolute;left:calc(100% + 12px);top:0;width:240px;background:#f8faff;border:1px solid #a0afc5;padding:10px;color:#435e85;font:12px system-ui;box-shadow:0 3px 12px #24344f20}.editor-head #minimize-editor{margin-left:0}.editor-head #minimize-editor,.editor-head #close-editor{order:1}.editor-head{min-height:30px}.editor-title #cube-count{margin:0}@media(max-width:600px){#cube-count.is-notice{left:0;top:calc(100% + 6px);width:100%;z-index:8}.editor-title strong{font-size:15px}}

/* Construction launcher sits above the bottom-left map controls. */
#edit,body:has(#editor:not([hidden])) #edit{top:auto;left:24px;bottom:20px;width:162px;min-width:162px;padding:0 20px}
@media(max-width:600px){#edit,body:has(#editor:not([hidden])) #edit{top:auto;left:20px;bottom:20px;width:150px;min-width:150px;padding:0 12px}}

/* Shared pixel typeface across application menus and interface controls. */
html body,body button,body input,body select,body option,body summary,body output,body label,body kbd,body small,body strong,body p,body footer,body .editor-title strong,body #cube-count,body #status,body #altitude,body #search,body #recent-colors:empty:before,body .maplibregl-control-container,body .maplibregl-popup-content{font-family:BuildPixel,monospace}


.build-settings #home{border:1px solid #a0afc5;border-radius:0;background:#e3e9f2;box-shadow:inset 2px 2px #fff,inset -2px -2px #a0adc1;color:#536884;font-weight:400;text-shadow:none}
.build-settings #home:hover{background:#eaf0e9}

.build-settings #build-action{height:68px;min-height:68px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.build-settings #build-action small{font:14px BuildPixel,monospace;color:inherit}.maplibregl-ctrl-group{background:transparent;box-shadow:none!important;border-radius:0;display:flex;flex-direction:column;gap:6px}.maplibregl-ctrl-group button{width:30px;height:30px;min-height:30px;border:1px solid #a0afc5!important;border-radius:0!important;background:#e3e9f2;box-shadow:inset 2px 2px #fff,inset -2px -2px #a0adc1;color:#536884}.maplibregl-ctrl-group button:hover{background:#eaf0e9}.maplibregl-ctrl-group button .maplibregl-ctrl-icon{background-image:none!important;display:grid;place-items:center;font:22px BuildPixel,monospace}.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon:after{content:'+'}.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon:after{content:'−'}

@font-face{font-family:PixelNumbers;src:url('./vt323.ttf') format('truetype');font-display:swap}
.build-settings #build-action{height:54px;min-height:54px;gap:1px;font-size:20px}.build-settings #build-action #build-budget{font-family:PixelNumbers,monospace;font-size:21px;line-height:20px;font-weight:400;letter-spacing:1px;font-variant-numeric:tabular-nums;text-shadow:1px 2px #173f83}

#cube-count,#cube-count.is-notice{display:none!important}#notifications{position:fixed;z-index:20;top:20px;left:50%;transform:translateX(-50%);width:320px;max-width:calc(100vw - 32px);pointer-events:none}.notification-card{position:absolute;top:0;left:0;width:100%;min-height:62px;display:flex;gap:10px;align-items:center;padding:12px 14px;background:#f8faff;border:1px solid #a0afc5;border-radius:0;box-shadow:inset 2px 2px #fff,inset -2px -2px #a0adc1,0 3px 8px #23304420;color:#536884;transform:translateY(calc(var(--stack)*10px)) scale(calc(1 - var(--stack)*.035));transform-origin:top center;transition:transform .45s ease;}.notification-card p{margin:0;font:14px/1.45 BuildPixel,monospace}.notification-icon{flex-shrink:0;display:grid;place-items:center;width:24px;height:24px;font:20px BuildPixel,monospace;background:#e3e9f2;border:1px solid #a0afc5;box-shadow:inset 1px 1px #fff,inset -1px -1px #a0adc1}.notification-live{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@media(prefers-reduced-motion:reduce){.notification-card{transition:none}}@media(max-width:600px){#notifications{top:18px;left:auto;right:12px;transform:none;width:min(260px,calc(100vw - 32px))}}

#notifications{top:20px;left:20px;right:auto;transform:none;width:320px;max-width:calc(100vw - 40px)}body:has(#editor:not([hidden])) #notifications{left:218px;max-width:calc(100vw - 234px)}@media(max-width:600px){#notifications{top:16px;left:16px;right:auto;width:260px;max-width:calc(100vw - 32px)}body:has(#editor:not([hidden])) #notifications{left:194px;max-width:calc(100vw - 206px)}.notification-card{padding:10px;gap:7px}.notification-card p{font-size:12px;overflow-wrap:anywhere}.notification-icon{width:19px;height:21px;font-size:17px}}

#interface-tooltip{position:fixed;z-index:1000;pointer-events:none;max-width:min(280px,calc(100vw - 16px));padding:7px 10px;color:#fff;background:#101014f5;border:0;box-shadow:none;border-radius:6px;font:13px/1.4 system-ui,sans-serif;text-shadow:none;overflow-wrap:anywhere}

#how-build{width:100%;height:30px;text-align:left;font:11px BuildPixel,monospace;border:1px solid #a0afc5;border-radius:0;background:#e3e9f2;box-shadow:inset 2px 2px #fff,inset -2px -2px #a0adc1;color:#536884;padding:6px 8px}#build-tutorial{position:fixed;inset:0;margin:auto;width:470px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);overflow:auto;padding:22px;background:#101014;color:#eee;border:0;border-radius:10px;font:14px/1.45 system-ui,sans-serif;box-shadow:0 14px 60px #0005}#build-tutorial::backdrop{background:#0006}.tutorial-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.tutorial-heading h2{margin:0;font:600 20px system-ui,sans-serif}.tutorial-heading #close-tutorial{background:#ffffff12;border:0;border-radius:5px;color:#fff;box-shadow:none;font:22px system-ui;min-height:30px;padding:0;width:30px}#build-tutorial .tutorial-intro{font:13px/1.5 system-ui;color:#b6b6c0;margin:10px 0 18px}#build-tutorial dl{margin:0}#build-tutorial dt{font:600 13px/1.4 system-ui;color:#fff;margin:13px 0 3px}#build-tutorial dd{font:13px/1.45 system-ui;color:#c4c4cf;margin:0}#build-tutorial #tutorial-done{width:100%;margin-top:20px;border:1px solid #ffffff30;background:#ffffff12;border-radius:6px;color:#fff;box-shadow:none;font:14px system-ui;min-height:38px}

#build-tutorial{scrollbar-width:thin;scrollbar-color:#45454f #101014;color-scheme:dark}#build-tutorial::-webkit-scrollbar{width:9px}#build-tutorial::-webkit-scrollbar-track{background:#101014;border-radius:10px}#build-tutorial::-webkit-scrollbar-thumb{background:#45454f;border:2px solid #101014;border-radius:10px}#build-tutorial::-webkit-scrollbar-thumb:hover{background:#646471}#build-tutorial::-webkit-scrollbar-corner{background:#101014}

.maplibregl-ctrl-group button:not(:disabled):hover,.maplibregl-ctrl-group button:not(:disabled):focus-visible{background-color:#e3e9f2;opacity:1}.maplibregl-ctrl-group button:not(:disabled):active{background-color:#cad6e8;opacity:1}

.maplibregl-ctrl-scale{visibility:hidden;pointer-events:none}
#selection-panel{position:fixed;z-index:5;left:12px;top:50%;transform:translateY(-50%);width:190px;max-width:calc(100vw - 64px);padding:9px;background:#f8faff;border:2px solid #536884;box-shadow:inset 2px 2px #fff,inset -2px -2px #a0adc1;color:#536884}.selection-head{display:flex;align-items:center;justify-content:space-between;gap:5px}.selection-head strong{font-size:13px;font-weight:400}.selection-head button{width:28px;height:28px;min-height:28px;padding:0;border:1px solid #a0afc5;border-radius:0;background:#e3e9f2;box-shadow:inset 2px 2px #fff,inset -2px -2px #a0adc1;color:#536884}#selection-panel p{font-size:11px;line-height:1.5;margin:12px 0 6px}#selection-panel output{font:17px PixelNumbers,monospace;overflow-wrap:anywhere}@media(max-width:600px){#selection-panel{left:8px;width:178px}}#place-search{position:fixed;left:12px;top:12px;z-index:8;display:flex;align-items:flex-start;gap:7px}#place-search button,.save-place button{border:1px solid #a0afc5;border-radius:0;background:#e3e9f2;box-shadow:inset 2px 2px #fff,inset -2px -2px #a0adc1;color:#536884;min-height:30px;padding:6px;font-size:12px}#place-search .search-toggle{width:34px;height:34px;display:grid;place-items:center;padding:0;line-height:1}.place-search-box{width:300px;max-width:calc(100vw - 70px);padding:9px;background:#f8faff;border:2px solid #536884;box-shadow:inset 2px 2px #fff,inset -2px -2px #a0adc1}.place-search-box form{display:flex;gap:5px}.place-search-box input,.save-place input{min-width:0;width:100%;padding:7px;border:1px solid #a0afc5;border-radius:0;background:white;color:#536884;font:13px BuildPixel,monospace}.place-results{display:flex;flex-direction:column;gap:5px;max-height:40vh;overflow-y:auto;margin:7px 0;font-size:12px}.place-results button{text-align:left;line-height:1.5}.place-search-box small{font:10px system-ui;color:#69798a}.save-place{margin-top:10px;padding-top:8px;border-top:1px solid #b5c1d2}.save-place>button,.save-place form button{width:100%}.save-place form{margin-top:8px}.save-place label{display:block;font-size:11px;line-height:1.5}.save-place input{margin:5px 0 7px}.save-place .save-place-status{font-size:11px;margin:7px 0 0}body:has(#editor:not([hidden])) #place-search{left:218px}@media(max-width:600px){#place-search{left:8px;top:8px}body:has(#editor:not([hidden])) #place-search{left:194px}.place-search-box{max-width:calc(100vw - 240px)}} 
#world{position:fixed;inset:0;width:100vw;height:100vh;touch-action:none}html,body{background:#f3f0e9}#zoom-controls{position:fixed;right:12px;top:12px;z-index:3}#paint-move{height:30px;width:100%;border-radius:0}#editor .build-settings #build-action:disabled{opacity:.45}#editor .swatch:hover{background-color:var(--swatch)}

/* Canvas compositing samples the mural itself; no overlapping text blend layers. */
#canvas-info{position:fixed;left:0;top:0;z-index:3;display:flex;flex-direction:column;gap:2px;width:max-content;max-width:none;padding:2px;pointer-events:none;user-select:none;font:400 14px/1.4 BuildPixel,monospace;letter-spacing:0;font-variant-numeric:tabular-nums;background:none;border:0;box-shadow:none}
#canvas-info>span{display:block;opacity:0}#canvas-info-render{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}

@media(max-width:600px){#canvas-info{font-size:12px}}

/* Keep document gestures out of the mural and respect mobile browser chrome. */
html,body{width:100%;height:100%;overflow:hidden;overscroll-behavior:none;touch-action:pan-y;-webkit-text-size-adjust:100%}
button,input,summary{touch-action:manipulation}#world{height:100dvh}#editor,.palette,#build-tutorial{overscroll-behavior:contain}.palette,#build-tutorial{touch-action:pan-y}button{-webkit-tap-highlight-color:transparent}
@media(pointer:coarse){#zoom-controls{top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right))}#zoom-controls button{width:44px;height:44px}#editor .icon-button,.mode-switch button,#how-build{min-height:40px;height:40px}.swatch:hover{transform:none}#interface-tooltip{display:none!important}}
@media(max-width:600px) and (min-height:500px){
 #editor{left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));top:auto;bottom:max(8px,env(safe-area-inset-bottom));width:auto;max-width:none;height:min(56dvh,460px);padding:10px;gap:8px}
 #editor.is-minimized{width:auto;bottom:max(8px,env(safe-area-inset-bottom));height:auto;max-width:none}
 .editor-head{gap:7px;overflow:visible;max-height:none}.editor-head #minimize-editor{margin-left:auto}
 .editor-body{min-height:0}.palette-tray{min-height:80px;padding:5px 2px 5px 5px}.palette{grid-template-columns:repeat(8,minmax(0,1fr));gap:8px 6px;padding:5px 4px;scrollbar-gutter:stable}
 .swatch{width:100%;height:auto;min-height:30px;aspect-ratio:1;max-height:42px;min-width:0}
 .build-settings{display:grid;grid-template-columns:1fr 1fr;align-items:stretch}.build-settings #home{height:54px;min-height:44px}
 #edit,body:has(#editor:not([hidden])) #edit{bottom:max(16px,env(safe-area-inset-bottom));min-height:44px}
 #notifications,body:has(#editor:not([hidden])) #notifications{left:12px;right:64px;top:max(12px,env(safe-area-inset-top));width:auto;max-width:none}
 #build-tutorial{max-height:calc(100dvh - 32px);padding:18px}#build-tutorial #tutorial-done{min-height:44px}
}

#world{-webkit-touch-callout:none;user-select:none}

.mobile-icon{display:none}
@media(max-width:600px),(pointer:coarse) and (max-height:500px){
 #editor{left:0;right:0;top:auto;bottom:0;width:100%;max-width:none;box-sizing:border-box;height:calc(clamp(164px,25dvh,240px) + env(safe-area-inset-bottom));padding:6px max(8px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));gap:6px;overflow:hidden}
 #editor.is-minimized{left:0;right:0;top:auto;bottom:0;width:100%;max-width:none;height:auto}
 #editor .editor-title{display:none}#editor .editor-head{flex-wrap:nowrap;align-items:center;gap:6px;min-height:32px;height:32px;max-height:none;overflow:visible;padding:0}
 #editor .action-row,#editor .editor-extras{display:contents}#editor .mode-switch{display:flex;gap:6px;width:auto;flex:0 0 auto}
 #editor .control-label{display:none}#editor .mobile-icon{display:block;flex:none;width:19px;height:19px}
 #editor .mode-switch button,#editor .icon-button,#editor #how-build{display:grid;place-items:center;width:32px;min-width:32px;height:32px;min-height:32px;margin:0;padding:0;flex:0 0 32px;font-size:20px;line-height:1}
 #editor #minimize-editor{margin-left:auto}#editor.is-minimized .action-row,#editor.is-minimized .editor-extras{display:contents}
 #editor .editor-body{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:6px;min-height:0;overflow:hidden}
 #editor.is-minimized .editor-body{display:none}
 #editor .palette-tray{display:flex;flex-direction:column;min-width:0;min-height:0;gap:3px;padding:3px 2px 3px 3px;overflow:hidden}
 #editor .palette{width:100%;box-sizing:border-box;grid-template-columns:repeat(8,minmax(0,1fr));gap:7px 5px;padding:5px 4px;min-height:0;overflow-y:auto;overflow-x:hidden;flex:1;scrollbar-gutter:stable}
 #editor .swatch{width:100%;min-width:0;min-height:24px;height:26px;max-height:26px;aspect-ratio:auto}
 #editor .color-footer{min-height:24px;height:24px;padding-top:2px;flex-shrink:0;gap:4px;margin:0}
 #editor #recent-colors{min-height:20px}#editor .recent-swatch{width:20px;height:20px;min-height:20px}
 #editor .color-custom{height:22px;min-height:22px}#editor .color-custom input{height:20px}
 #editor .build-settings{display:flex;flex-direction:column;justify-content:space-between;gap:4px;min-height:0;padding:3px}
 #editor .build-settings #home{display:grid;place-items:center;width:100%;height:30px;min-height:30px;padding:0}
 #editor .build-settings #build-action{width:100%;height:auto;min-height:40px;flex:1;padding:2px;gap:1px}
 #editor #build-budget{font-size:13px!important;line-height:15px!important;letter-spacing:0!important}
}

@media(min-width:601px) and (min-height:501px),(min-width:601px) and (pointer:fine){
 #editor .mobile-icon{display:inline-block;width:14px;height:14px;flex:0 0 14px;vertical-align:middle}
 #editor .mode-switch button,#editor #how-build,#editor #home{display:flex;align-items:center;justify-content:center;gap:4px}
 #editor #how-build{justify-content:flex-start}
 #editor .mode-switch button{padding:4px 3px;gap:3px}
 #editor .mode-switch .mobile-icon{width:12px;height:12px;flex-basis:12px}
 #editor #build-action{flex-direction:row;flex-wrap:wrap;align-content:center;column-gap:5px;row-gap:1px}
 #editor #build-action .mobile-icon{width:17px;height:17px;flex-basis:17px}
 #editor #build-budget{flex-basis:100%;text-align:center}
}

/* Animation tools extend the painting menu; the ordinary painting layout is unchanged. */
.animation-toggle{width:100%;display:flex;align-items:center;gap:5px;min-height:30px;height:30px;padding:5px 8px;font:11px BuildPixel,monospace;color:#536884;border:1px solid #a0afc5;border-radius:0;background:#e3e9f2;box-shadow:inset 2px 2px #fff,inset -2px -2px #a0adc1;text-align:left}
.animation-toggle[aria-pressed=true]{background:#7950b0;color:#fff;box-shadow:inset 2px 2px #c1a2e7,inset -2px -2px #4b2b77}
#animation-panel{flex-shrink:0;min-width:0;padding:5px;border:1px solid #acbad0;background:#e4eaf4;box-shadow:inset 1px 1px #fff;color:#536884}
#animation-panel[hidden]{display:none}.animation-frame-row{display:flex;gap:4px;min-width:0;align-items:center}#animation-frames{display:flex;gap:4px;min-width:0;flex:1;overflow-x:auto;overflow-y:hidden;padding:3px;scrollbar-width:thin;scrollbar-color:#8b9bb4 #e4eaf4;touch-action:pan-x}
#animation-panel button{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;min-height:28px;padding:0;border:1px solid #a0afc5;border-radius:0;background:#e3e9f2;box-shadow:inset 2px 2px #fff,inset -2px -2px #a0adc1;color:#536884;font:17px BuildPixel,monospace}
#animation-panel button[aria-pressed=true]{background:#7950b0;color:#fff;box-shadow:inset 2px 2px #c1a2e7,inset -2px -2px #4b2b77}#animation-panel button:disabled{opacity:.4}
.animation-tools{display:flex;gap:4px;align-items:center;margin-top:5px;flex-wrap:wrap}.animation-tools label{font:10px BuildPixel,monospace;margin-left:auto}#animation-fps{font:16px system-ui,sans-serif;color:#536884;background:#f8faff;border:1px solid #a0afc5;border-radius:0;height:28px;min-width:42px;max-width:54px;padding:0 2px}
#animation-status{font:11px/1.4 system-ui,sans-serif;margin:5px 0 0;overflow-wrap:anywhere}#editor.is-minimized #animation-panel{display:none}
@media(max-width:600px),(pointer:coarse) and (max-height:500px){
 #editor .animation-toggle{display:grid;place-items:center;width:32px;min-width:32px;height:32px;min-height:32px;padding:0;flex:0 0 32px}
 #editor:has(#animation-panel:not([hidden])){height:calc(clamp(242px,38dvh,360px) + env(safe-area-inset-bottom))}
 #editor.is-minimized:has(#animation-panel:not([hidden])){height:auto}
 #editor #animation-panel{grid-column:1/-1;padding:4px;min-height:0}
 #editor:has(#animation-panel:not([hidden])) .editor-body{grid-template-rows:auto minmax(0,1fr)}
 #animation-panel .animation-frame-row{gap:5px}#animation-panel .animation-tools{flex-wrap:nowrap;margin-top:3px;gap:5px}
 #animation-panel button{width:28px;height:28px;min-height:28px;flex-basis:28px}#animation-status{margin-top:3px;font-size:10px}
}

@media(min-width:601px) and (min-height:501px),(min-width:601px) and (pointer:fine){
 .animation-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
 #animation-panel .animation-tools button{width:100%;min-width:0}
 #animation-panel #animation-reload{grid-column:4;grid-row:1}
 .animation-tools label{grid-row:2;grid-column:1/3;margin:0;text-align:right}
 #animation-fps{grid-row:2;grid-column:3/5;max-width:none;width:100%}
}
/* Compact only the extra animation tools on shorter desktop windows. */
@media(min-width:601px) and (max-height:600px) and (pointer:fine){
 #editor:has(#animation-panel:not([hidden])) .editor-extras{flex-direction:row;gap:4px}
 #editor:has(#animation-panel:not([hidden])) #how-build,#editor:has(#animation-panel:not([hidden])) .animation-toggle{flex:1;min-width:0;width:auto;font-size:9px;padding:4px;gap:3px}
 #editor:has(#animation-panel:not([hidden])) #how-build .mobile-icon,#editor:has(#animation-panel:not([hidden])) .animation-toggle .mobile-icon{width:12px;height:12px;flex-basis:12px}
 #editor:has(#animation-panel:not([hidden])) #animation-status{font-size:10px;line-height:1.25}
}

#animation-status[hidden]{display:none}
@media(min-width:601px) and (min-height:501px),(min-width:601px) and (pointer:fine){
 #editor .control-label{display:none}
 #editor .editor-extras{flex-direction:row;gap:5px}
 #editor #how-build,#editor .animation-toggle{flex:1;min-width:0;width:auto;justify-content:center;padding:0}
 #editor .mobile-icon,#editor .mode-switch .mobile-icon,#editor:has(#animation-panel:not([hidden])) #how-build .mobile-icon,#editor:has(#animation-panel:not([hidden])) .animation-toggle .mobile-icon{width:18px;height:18px;flex:0 0 18px}
 #editor #build-action .mobile-icon{width:19px;height:19px;flex-basis:19px}
}

/* Wider desktop dock with compact action rows. Mobile rules remain separate. */
@media(min-width:601px) and (min-height:501px),(min-width:601px) and (pointer:fine){
 #editor,#editor.is-minimized{width:184px;max-width:calc(100vw - 24px)}
 #editor .editor-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-height:0;max-height:none;height:auto;overflow:visible;padding:0}
 #editor .editor-title{flex:1 0 calc(100% - 68px);order:0;min-width:0}
 #editor .action-row,#editor .mode-switch,#editor .editor-extras{display:contents}
 #editor .mode-switch button,#editor #undo,#editor #how-build,#editor .animation-toggle{order:2;flex:0 0 28px;width:28px;min-width:28px;height:28px;min-height:28px;margin:0;padding:0;display:grid;place-items:center}
 #editor #minimize-editor,#editor #close-editor{order:1;flex:0 0 28px;width:28px;height:28px;min-height:28px;margin:0;padding:0}
 #editor.is-minimized .action-row,#editor.is-minimized .editor-extras{display:none}
 #editor .palette{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px 6px}
 #editor .swatch{width:100%;min-width:0;height:25px;min-height:25px}
 #editor .build-settings{display:grid;grid-template-columns:1fr 1fr;gap:6px}
 #editor .build-settings #home,#editor .build-settings #build-action{width:100%;height:40px;min-height:40px;padding:2px}
 #editor #build-budget{font-size:15px;line-height:16px;letter-spacing:0}
 #animation-frames{gap:3px}#animation-panel #animation-frames button{flex:0 0 24px;width:24px;height:26px;min-height:26px}
 #animation-panel .animation-tools{display:flex;flex-wrap:nowrap;gap:4px}
 #animation-panel .animation-tools button{flex:0 0 26px;width:26px;height:26px;min-height:26px}
 #animation-panel .animation-tools label{margin-left:auto}
 #animation-panel #animation-fps{flex:0 0 50px;width:50px;min-width:0;max-width:50px;height:26px}
 body:has(#editor:not([hidden])) #notifications{left:212px;max-width:calc(100vw - 228px)}
}
@media(min-width:601px) and (min-height:501px),(min-width:601px) and (pointer:fine){
 #editor:has(#animation-panel:not([hidden])) #how-build,#editor:has(#animation-panel:not([hidden])) .animation-toggle{flex:0 0 28px;width:28px;min-width:28px;padding:0;display:grid;place-items:center}
 #editor .build-settings #build-action{row-gap:0}
 #editor .build-settings #build-action .mobile-icon{width:16px;height:16px;flex-basis:16px}
 #editor .build-settings #build-action #build-budget{font-size:14px;line-height:14px;letter-spacing:0}
}

@media(min-width:601px) and (min-height:501px),(min-width:601px) and (pointer:fine){
 #editor .swatch{height:auto;min-height:18px;aspect-ratio:1}
 #animation-panel .animation-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
 #animation-panel .animation-tools button{width:100%;min-width:0}
 #animation-panel .animation-tools label{grid-row:2;grid-column:1/3;margin:0;text-align:right}
 #animation-panel #animation-fps{grid-row:2;grid-column:3/5;width:100%;min-width:0;max-width:none}
 #animation-panel #animation-reload{grid-column:4;grid-row:1}
}

/* Keep the frame strip stable before the first frame and on overflow. */
#animation-panel .animation-frame-row{align-items:flex-start;min-height:42px}
#animation-panel #animation-frames{box-sizing:border-box;height:40px;min-height:40px;align-items:flex-start;overflow-x:scroll;scrollbar-width:thin;scrollbar-color:#8b9bb4 #e4eaf4;padding:3px 3px 7px}
#animation-frames::-webkit-scrollbar{height:4px}
#animation-frames::-webkit-scrollbar-track{background:#e4eaf4;box-shadow:inset 0 1px #c4cede;border-radius:2px}
#animation-frames::-webkit-scrollbar-thumb{background:#8b9bb4;border-radius:2px}
#animation-frames::-webkit-scrollbar-thumb:hover{background:#697e9e}
#animation-frames::-webkit-scrollbar-button{display:none;width:0;height:0}
#animation-panel #animation-add{margin-top:3px;flex-shrink:0}

#animation-panel{box-sizing:border-box;min-height:0}
#animation-panel #animation-fps{height:26px;min-height:26px;min-width:0;max-width:42px;width:42px;flex:0 0 42px;font-size:12px;padding:0 1px}
@media(min-width:601px) and (min-height:501px),(min-width:601px) and (pointer:fine){
 #animation-panel .animation-tools label{grid-column:1;grid-row:2;text-align:center}
 #animation-panel #animation-fps{grid-column:2;grid-row:2;width:100%;max-width:none}
}

/* Animation actions share one compact row, including the FPS picker. */
#editor #animation-panel .animation-tools{display:flex;flex-wrap:nowrap;gap:3px;align-items:center}
#editor #animation-panel .animation-tools button{width:25px;min-width:25px;height:26px;min-height:26px;flex:0 0 25px;order:0}
#editor #animation-panel .animation-tools label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}
#editor #animation-panel #animation-fps{width:36px;min-width:36px;max-width:36px;flex:0 0 36px;height:26px;margin:0;order:1}

/* Label uses the existing space above the FPS picker without taking layout space. */
#editor #animation-panel .animation-tools{position:relative}
#editor #animation-panel .animation-tools label{display:block;left:112px;top:-11px;width:36px;height:10px;line-height:10px;font-size:8px;text-align:center;overflow:visible;clip-path:none;pointer-events:none}
