@font-face{font-family:Patrick;src:url('/fonts/patrick-hand-0.ttf')}@font-face{font-family:Bangers;src:url('/fonts/bangers-0.ttf')}
:root{color-scheme:light;font-family:Patrick,system-ui,sans-serif;color:#242425;background:#faf8f3;font-size:20px}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;border:2px solid #242425;background:#fffdf8;color:#242425;padding:.55em 1.25em;border-radius:12px;box-shadow:3px 4px 0 #242425}button:hover{background:#f9e7ad}button:active{transform:translate(2px,2px);box-shadow:1px 2px 0 #242425}button:disabled{cursor:wait;opacity:.65}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #3479a9;outline-offset:5px}.primary{background:#f6d58c;font-size:26px;padding:.5em 2em}.quiet{box-shadow:none;background:transparent}.home{min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:36px 20px}.logo{width:235px;max-width:65vw;margin-bottom:28px}.eyebrow{letter-spacing:.2em;font-size:14px;margin:0}h1,h2{font-family:Bangers,system-ui,sans-serif;font-weight:400;letter-spacing:.025em}h1{font-size:clamp(36px,6vw,64px);margin:10px 0 12px}h2{font-size:40px;margin:0 0 8px}.intro{font-size:clamp(20px,3vw,25px);line-height:1.35;margin:0}.city{width:650px;max-width:90vw;height:auto;margin:12px 0 25px}#status{font-size:16px;min-height:22px;margin:18px 0 10px}.overlay{position:fixed;inset:0;display:grid;place-items:center;background:#f6f2e9e8;padding:24px;z-index:20;overflow:auto}.card{width:460px;max-width:100%;background:#fffdf8;border:2px solid #242425;border-radius:18px;padding:28px;box-shadow:5px 6px 0 #242425;display:flex;flex-direction:column;gap:14px}.card p{margin:0 0 5px;font-size:18px}.card label{display:flex;align-items:center;justify-content:space-between;gap:16px}#game{position:fixed;inset:0;width:100%;height:100%;touch-action:none;outline:none}#toolbar{position:fixed;left:max(18px,env(safe-area-inset-left));right:max(18px,env(safe-area-inset-right));top:max(14px,env(safe-area-inset-top));display:flex;align-items:center;gap:10px;z-index:10}#place{margin-right:auto;background:#fffdf8;border:2px solid #242425;border-radius:10px;padding:8px 14px}#toolbar button{font-size:17px;padding:7px 13px}#touch{position:fixed;inset:0;pointer-events:none}#touch-look{position:absolute;inset:70px 0 0 42%;pointer-events:auto;touch-action:none}#touch-stick{position:absolute;bottom:max(35px,env(safe-area-inset-bottom));left:max(25px,env(safe-area-inset-left));width:120px;height:120px;border:2px solid #242425;border-radius:50%;background:#fffdf8b0;pointer-events:auto;touch-action:none;display:grid;place-items:center}#touch-stick span{width:42px;height:42px;border:2px solid #242425;border-radius:50%;background:#f6d58c}#touch button{position:absolute;pointer-events:auto;touch-action:none;bottom:max(38px,env(safe-area-inset-bottom));right:25px}#touch-use{bottom:115px!important}#touch-down{right:120px!important}#debug-panel{position:fixed;top:70px;left:16px;display:flex;flex-direction:column;align-items:flex-start;gap:6px;max-width:calc(100vw - 32px);max-height:calc(100svh - 90px);overflow:hidden;pointer-events:none}#performance,#sound-log{display:block;margin:0;padding:8px;background:#fffdf8;border:1px solid #242425;font:12px monospace;white-space:pre;color:#242425}#sound-log{font-size:11px}@media(max-width:600px){.home{padding:24px 16px}.logo{margin-bottom:18px;width:180px}.card{padding:20px}#place{font-size:16px}#toolbar{gap:6px}#toolbar button{padding:7px 8px}}
#save-status{position:fixed;bottom:16px;left:16px;right:16px;max-width:640px;margin:auto;padding:12px 18px;background:#fffdf8;border:2px solid #242425;border-radius:12px;z-index:30;text-align:center}
#map-bar{position:fixed;left:max(18px,env(safe-area-inset-left));right:max(18px,env(safe-area-inset-right));top:max(14px,env(safe-area-inset-top));display:flex;align-items:center;gap:10px;z-index:10;pointer-events:none}#map-bar button,#map-bar span{pointer-events:auto}#map-title{margin-right:auto;background:#fffdf8;border:2px solid #242425;border-radius:10px;padding:8px 14px}#map-bar button{font-size:17px;padding:7px 13px}#map-hint{position:fixed;left:50%;transform:translateX(-50%);bottom:max(16px,env(safe-area-inset-bottom));margin:0;background:#fffdf8;border:2px solid #242425;border-radius:10px;padding:6px 14px;font-size:16px;white-space:nowrap;pointer-events:none}@media(max-width:600px){#map-hint{font-size:13px;white-space:normal;text-align:center;width:calc(100% - 32px)}}
#map-legend{position:fixed;left:50%;transform:translateX(-50%);top:calc(max(14px,env(safe-area-inset-top)) + 54px);display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:calc(100% - 32px);pointer-events:auto}.map-chip{display:flex;align-items:center;gap:6px;font-size:16px;padding:5px 12px 5px 8px;border-radius:999px;box-shadow:2px 3px 0 #242425;background:#fffdf8;color:#242425}.map-chip svg{width:22px;height:22px;stroke:#242425;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;fill:currentColor}.map-chip.play{--chip:#f99e33}.map-chip.shops{--chip:#e6789e}.map-chip.rides{--chip:#db4773}.map-chip.transport{--chip:#3a85cc}.map-chip.landmarks{--chip:#8c73cc}.map-chip svg{color:var(--chip)}.map-chip[aria-pressed=true]{background:var(--chip);color:#fffdf8}.map-chip[aria-pressed=true] svg{color:#fffdf8}.map-chip[aria-pressed=false]{opacity:.75;box-shadow:none}@media(max-width:600px){#map-legend .map-chip{font-size:0;gap:0;padding:7px}#map-legend .map-chip svg{width:26px;height:26px}#map-legend{flex-wrap:nowrap;gap:7px}}
#map-close{width:56px;height:56px;padding:0;border-radius:50%;display:grid;place-items:center;background:#fffdf8;font-size:0}#map-close svg{width:30px;height:30px;stroke:#242425;stroke-width:3.2;stroke-linecap:round;fill:none}#map-close:hover{background:#f9e7ad}@media(max-width:600px){#map-close{width:50px;height:50px}}#map-bar,#map-legend,#map-close{touch-action:manipulation}
body{touch-action:manipulation;overscroll-behavior:none}

.dev-settings:empty{display:none}.dev-settings{display:flex;flex-direction:column;gap:10px}
/* Tommy: no buttons along the top. With a mouse and keyboard every one has its key (I bag, J jobs, O design room, M map, T radio, Q skip, V camera, Esc pause); touch screens keep them. The place label shows only while it flashes a message. */@media (hover:hover) and (pointer:fine){#toolbar>button{display:none!important}#place:not([data-name]){display:none}}
/* The town being built: a flat inked ring turning (transform only, so the compositor keeps it going while the main thread works). */#building{position:fixed;inset:0;z-index:40;display:grid;place-content:center;justify-items:center;gap:14px;background:#faf8f3}#building p{margin:0;font-size:22px}#building .spinner{width:58px;height:58px;border:6px solid #242425;border-top-color:#f6d58c;border-radius:50%;animation:building-turn .9s linear infinite;will-change:transform}@keyframes building-turn{to{transform:rotate(360deg)}}
