:root{font-family:Arial,Helvetica,sans-serif;color:#352c4c;font-synthesis:none;--purple:#8552c8;--cream:#fff7e9;--ink:#352c4c}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#e7acd0}body{height:100dvh}button,input,select{font:inherit}button{cursor:pointer;touch-action:manipulation;border:0}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #5740b0;outline-offset:3px}button[hidden],[hidden]{display:none!important}#world{width:100%;height:100%;display:block;touch-action:none;outline:none}.sunlight{position:fixed;inset:0;pointer-events:none;box-shadow:inset 0 -40px 100px #74547812}.topbar{position:absolute;top:max(18px,env(safe-area-inset-top));left:max(22px,env(safe-area-inset-left));right:max(22px,env(safe-area-inset-right));display:flex;align-items:center;justify-content:space-between;gap:14px;pointer-events:none}.city-brand{display:flex;align-items:center;gap:10px;text-shadow:0 1px 12px #fff8}.brand-mark{font-size:48px;color:#8c58b4;line-height:1}.city-brand strong{font-size:21px;letter-spacing:1px;font-weight:900;display:block}.city-brand b{color:#ac4a9d}.city-brand small{display:block;font-size:11px;font-weight:800;letter-spacing:1.8px;text-transform:uppercase;margin-top:5px}.top-actions{display:flex;gap:8px;align-items:center;pointer-events:auto}.pill,.icon-button{min-width:44px;min-height:44px;border:1px solid #fff9;background:#fff8eced;color:var(--ink);box-shadow:0 3px 0 #aa849741,0 8px 25px #69518419;border-radius:14px;font-weight:800}.pill{padding:0 18px}.icon-button{width:44px;font-size:25px;display:grid;place-items:center}.icon-button:hover,.pill:hover{background:#fff}.city-intro{position:absolute;left:max(25px,env(safe-area-inset-left));top:110px;pointer-events:none;max-width:310px;text-shadow:0 1px 12px #fff9;transition:opacity 1s}.city-intro.dim{opacity:0}.eyebrow{font-size:11px;letter-spacing:2px;text-transform:uppercase;font-weight:800;color:#7b5c86}.city-intro h1{font-size:43px;line-height:1.04;letter-spacing:-1.8px;margin:10px 0}.city-intro p{font-size:13px;font-weight:700;margin-top:12px}.bottom-hints{position:absolute;bottom:max(22px,env(safe-area-inset-bottom));left:max(22px,env(safe-area-inset-left));display:flex;flex-direction:column;gap:6px;pointer-events:none;background:#fff5e5d9;border:1px solid #fff8;padding:12px 15px;border-radius:14px;max-width:min(530px,62vw);font-weight:700;font-size:12px;box-shadow:0 10px 30px #7460780d}.bottom-hints small{font-size:11px;opacity:.82}.save-status{font-size:10px;color:#786b85;font-weight:500}.save-status.failed{color:#a73649}.mini-map{position:absolute;bottom:max(22px,env(safe-area-inset-bottom));right:max(22px,env(safe-area-inset-right));width:132px;height:151px;background:#fff5e5e8;border:1px solid #fff8;border-radius:19px;padding:8px;box-shadow:0 5px 30px #69427326;color:#584570;font-size:10px;font-weight:800;letter-spacing:.5px}.mini-map canvas{width:116px;height:116px;display:block;border-radius:13px}.interact{position:absolute;left:50%;bottom:max(26px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:12px;padding:11px 13px;background:#fffaf2f5;box-shadow:0 6px 0 #855ba4,0 14px 40px #6650743a;border:2px solid #fff;border-radius:20px;max-width:min(480px,62vw);min-height:75px;color:#38284d;text-align:left;z-index:3}.interact:hover{background:#fff;box-shadow:0 6px 0 #723db1,0 14px 45px #a25abe55}.interact #interact-art{width:62px;height:48px;border-radius:9px;background-size:cover;background-position:center;flex:none}.interact-info{display:flex;flex-direction:column;gap:4px}.interact-info small{text-transform:uppercase;color:#9661ad;font-size:10px;letter-spacing:1px;font-weight:800}.interact-info strong{font-size:17px;line-height:1.1}.enter-key{display:grid;place-items:center;min-width:52px;height:44px;color:white;background:#9258ce;border-radius:12px;font-weight:900;flex:none}.toast{position:absolute;left:50%;top:95px;transform:translateX(-50%);max-width:90vw;padding:13px 20px;background:#fff8eaf5;border:1px solid #fff;border-radius:18px;color:#56416a;font-size:14px;font-weight:700;box-shadow:0 10px 40px #78567b2e;pointer-events:none;z-index:25;text-align:center}.city-dialog{margin:auto;border:1px solid #fff8;border-radius:25px;background:#fff6e9;color:var(--ink);box-shadow:0 30px 100px #402c6c55;width:min(1000px,calc(100vw - 32px));height:min(760px,calc(100dvh - 32px));padding:0;overflow:hidden;max-height:calc(100dvh - 32px)}.city-dialog[open]{display:flex;flex-direction:column}.city-dialog::backdrop{background:#57477665;backdrop-filter:blur(7px)}.city-dialog header{display:flex;justify-content:space-between;align-items:center;padding:22px 25px 16px;flex:none;gap:15px}.city-dialog h2{font-size:29px;letter-spacing:-.8px;margin:5px 0 0}.dialog-x{width:44px;height:44px;border-radius:14px;font-size:30px;background:#ebdfe8;color:#675079;flex:none}.dialog-scroll{overflow:auto;min-height:0;flex:1;padding:0 25px 20px;overscroll-behavior:contain}.city-dialog footer{display:flex;justify-content:space-between;align-items:center;padding:15px 25px;gap:12px;border-top:1px solid #e2d5de;flex:none;background:#fff7eb}.primary,.secondary{min-height:46px;padding:11px 19px;border-radius:13px;font-size:15px;font-weight:800}.primary{background:#8853c5;color:#fff;box-shadow:0 3px 0 #673c9c}.secondary{background:#e9dfeb;color:#57416f}.muted{font-size:14px;line-height:1.6;color:#81708b}.map-layout{display:grid;grid-template-columns:1.05fr 1fr;gap:20px}.map-layout>canvas{background:#f6e0df;width:100%;height:auto;align-self:start;border-radius:18px;position:sticky;top:0}.map-tabs{display:flex;gap:6px;margin-bottom:10px;position:sticky;top:0;background:#fff6e9;padding-bottom:8px;z-index:1}.map-tabs button{flex:1;min-height:44px;background:#ecdfeb;color:#7b648b;font-size:13px;font-weight:800;border-radius:12px}.map-tabs button.selected{background:#8d59c5;color:#fff}.map-list{display:grid;gap:7px}.map-item{display:flex;align-items:center;gap:11px;background:#fffaf3;border:1px solid #eadfe9;border-radius:13px;padding:9px;text-align:left;color:#49365e;min-height:55px}.map-item img{width:60px;height:45px;object-fit:cover;border-radius:7px}.map-item strong{font-size:13px;line-height:1.2}.map-item small{font-size:10px;display:block;color:#9678a6;margin-top:5px}.map-item .check{margin-left:auto;min-width:20px;color:#8f5ec1;font-weight:800}.map-item.selected{border:2px solid #9a69cc;background:#f2e6f5}.settings-dialog{width:min(560px,calc(100vw - 32px));height:min(720px,calc(100dvh - 32px))}.settings-dialog label{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:14px;font-weight:700;min-height:52px;border-bottom:1px solid #eadde5}.settings-dialog select{border:1px solid #d4bedc;border-radius:10px;background:#fffaf0;padding:8px;max-width:55%;color:#4a365d}.settings-dialog input{accent-color:#9258c9;max-width:50%}.settings-dialog input[type=checkbox]{width:22px;height:22px}.settings-dialog p{font-size:14px;line-height:1.65;color:#776180}.settings-dialog h3{font-size:18px;margin:22px 0 8px}.loading{position:absolute;inset:0;display:grid;place-items:center;background:#dca8c2dd;backdrop-filter:blur(10px);z-index:50}.loading-card{text-align:center;padding:28px;max-width:90vw;background:#fff2e8e8;border:1px solid #fff8;border-radius:25px;box-shadow:0 20px 60px #7a4f9224}.loading-mark{display:block;font-size:55px;color:#a362bc;animation:rotate 8s linear infinite}.loading h2{font-size:20px;max-width:400px;line-height:1.4}.loading button{margin-top:12px}.joystick,.touch-button{display:none}@keyframes rotate{to{transform:rotate(360deg)}}
@media(hover:none),(pointer:coarse){.joystick{display:block;position:absolute;pointer-events:none;left:40px;bottom:max(54px,env(safe-area-inset-bottom));width:104px;height:104px;opacity:.7}.joy-ring{position:absolute;inset:0;border:2px solid #fff9;border-radius:50%;background:#fff3;box-shadow:0 3px 20px #69508422}.joy-dot{position:absolute;left:30px;top:30px;width:44px;height:44px;border-radius:50%;background:#fffe;border:2px solid #ac81c9;transform:translate(var(--stick-x,0px),var(--stick-y,0px))}.touch-button{display:block}.jump{position:absolute;right:40px;bottom:max(65px,env(safe-area-inset-bottom));width:55px;height:55px;background:#fff9;color:#7b479a;font-size:30px;border:2px solid #fffd;border-radius:50%}.mini-map{width:94px;height:111px;right:16px;bottom:145px;padding:6px}.mini-map canvas{width:80px;height:80px}.bottom-hints{font-size:10px;bottom:12px;padding:7px 10px;left:14px;max-width:calc(100vw - 28px)}#hint2{display:none}.interact{bottom:20px;left:50%;max-width:calc(100vw - 28px)}.interact #interact-art{width:45px;height:36px}.interact-info strong{font-size:14px}.interact-info small{font-size:9px}.enter-key{font-size:16px;min-width:44px}.interact:not([hidden])~.mini-map{opacity:.8}body:has(.interact:not([hidden])) .bottom-hints{visibility:hidden}}
@media(max-width:650px){.topbar{top:max(12px,env(safe-area-inset-top));left:12px;right:12px;gap:8px}.city-brand{gap:5px}.brand-mark{font-size:33px}.city-brand strong{font-size:12px;letter-spacing:.2px}.city-brand small{font-size:7px;letter-spacing:.4px;margin-top:3px}.top-actions{gap:5px}.icon-button{width:38px;min-width:38px;min-height:44px;font-size:22px;border-radius:12px}.pill{min-height:44px;padding:0 10px;font-size:12px}#screenshot{display:none}.city-intro{left:20px;top:90px;max-width:230px}.city-intro h1{font-size:32px}.city-intro .eyebrow{font-size:9px}.city-intro p{font-size:11px}.map-layout{grid-template-columns:1fr}.map-layout>canvas{position:static;max-height:260px;object-fit:contain}.city-dialog header{padding:16px 18px 12px}.city-dialog h2{font-size:23px}.dialog-scroll{padding:0 16px 15px}.city-dialog footer{padding:12px 16px;font-size:11px}.city-dialog .primary,.city-dialog .secondary{font-size:13px}.city-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:18px}.toast{top:72px;font-size:12px;min-width:200px;padding:10px 14px}}
@media(max-height:450px){.city-intro{top:80px;max-width:220px}.city-intro h1{font-size:29px}.city-intro p{font-size:10px}.topbar{top:9px}.mini-map{width:86px;height:100px;bottom:15px;right:14px}.mini-map canvas{width:72px;height:72px}.bottom-hints{font-size:10px;max-width:65vw;padding:8px 10px;bottom:13px;left:15px}.bottom-hints small{font-size:9px}.interact{bottom:17px;max-width:440px;min-height:60px;padding:8px}.interact-info strong{font-size:14px}.interact #interact-art{height:36px;width:48px}.city-dialog{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}.city-dialog header{padding:10px 18px}.city-dialog footer{padding:9px 18px}.joystick{bottom:45px;width:88px;height:88px}.joy-dot{left:22px;top:22px}.jump{bottom:45px;right:120px}.toast{top:65px}.map-layout{grid-template-columns:1fr 1fr}}
@media(max-width:370px){.city-brand small{display:none}.city-brand strong{max-width:72px;line-height:1.3}.city-brand b{display:block}.top-actions{gap:4px}.icon-button{width:36px;min-width:36px}.topbar{gap:4px}.pill{padding:0 8px}.city-intro{top:88px}.interact{gap:7px;padding:8px}.interact-info strong{font-size:13px}}
/* Keep every header action a full touch target, including narrow desktop iframes. */
@media(max-width:650px){.icon-button{width:44px;min-width:44px;min-height:44px}#screenshot{display:grid}.bottom-hints{max-width:calc(100vw - 145px);font-size:10px}.bottom-hints small{font-size:9px}.mini-map{width:94px;height:111px;right:14px;bottom:16px;padding:6px}.mini-map canvas{width:80px;height:80px}.interact{max-width:calc(100vw - 24px);bottom:22px}}
@media(max-width:420px){.city-brand>span:last-child{display:none}.city-brand .brand-mark{font-size:37px}.top-actions{gap:5px}.topbar{gap:6px}.bottom-hints{max-width:calc(100vw - 28px);bottom:12px;font-size:10px}.bottom-hints #hint2{display:none}.mini-map{bottom:104px}.pill{font-size:12px;padding:0 9px}.interact-info strong{font-size:13px}body:has(.interact:not([hidden])) .bottom-hints{visibility:hidden}}
@media(pointer:coarse) and (max-width:650px){.mini-map{bottom:145px}.bottom-hints{max-width:calc(100vw - 28px)}}

/* The parallel dimension has its own night HUD; shared actions keep their targets. */
body[data-realm="neon"]{background:#030411;color:#eef2ff}body[data-realm="neon"] .sunlight{display:none}body[data-realm="neon"] .city-brand,body[data-realm="neon"] .city-intro{color:#d9fdff;text-shadow:0 0 18px #4cedff99}body[data-realm="neon"] .brand-mark,body[data-realm="neon"] .city-brand b,body[data-realm="neon"] .eyebrow{color:#f483ef}body[data-realm="neon"] .bottom-hints,body[data-realm="neon"] .mini-map{background:#10112be8;color:#e3f5ff;border-color:#64ddff88}body[data-realm="neon"] .save-status{color:#ae9ec7}body[data-realm="neon"] .save-status.failed{color:#ff97bd}#interact-art:empty{display:block}#interact-art{display:grid;place-items:center;color:#9e5df0;font-size:39px}body[data-realm="neon"] .interact{background:#181536f5;color:#f1eeff;border-color:#6bdeff;box-shadow:0 6px 0 #5b308d,0 0 32px #ab42d648}body[data-realm="neon"] .interact-info small{color:#85ebff}

/* Keep the beach action directly above the hints without measuring HUD text. */
.bottom-tools{position:absolute;left:max(22px,env(safe-area-inset-left));bottom:max(22px,env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:flex-start;gap:10px;max-width:min(530px,62vw);pointer-events:none}
.bottom-tools .bottom-hints{position:static;max-width:100%}
.beach-return{pointer-events:auto;display:flex;align-items:center;gap:8px;font-size:14px;padding:0 15px;min-height:44px;flex:none}
.beach-return>span[aria-hidden]{font-size:21px;color:#a15fbe}
.beach-return:disabled{cursor:default;opacity:.65}
body[data-realm="neon"] .beach-return{background:#191831ed;color:#f4f4ff;border-color:#64ddff88}
@media(hover:none),(pointer:coarse){.bottom-tools{left:max(14px,env(safe-area-inset-left));bottom:max(12px,env(safe-area-inset-bottom));max-width:calc(100vw - 28px)}.joystick{bottom:max(150px,env(safe-area-inset-bottom))}}
@media(max-width:650px){.bottom-tools{left:max(14px,env(safe-area-inset-left));bottom:max(16px,env(safe-area-inset-bottom));max-width:calc(100vw - 145px)}}
@media(max-height:450px){.bottom-tools{left:max(15px,env(safe-area-inset-left));bottom:max(13px,env(safe-area-inset-bottom));max-width:65vw}}
@media(max-width:420px){.bottom-tools{left:max(14px,env(safe-area-inset-left));bottom:max(12px,env(safe-area-inset-bottom));max-width:calc(100vw - 28px)}}
@media(pointer:coarse) and (max-width:650px){.bottom-tools{max-width:calc(100vw - 28px)}}
/* A nearby portal uses the bottom center on small/touch screens. Keep the
   beach action clear while the hints are temporarily hidden there. */
@media(max-width:650px),(hover:none),(pointer:coarse){body:has(.interact:not([hidden])) .beach-return{position:fixed;top:max(68px,calc(env(safe-area-inset-top) + 56px));left:max(14px,env(safe-area-inset-left));z-index:4}}

.youtube-dialog{width:min(480px,calc(100% - 28px));border:2px solid #ffd184;background:radial-gradient(ellipse at top,#651644,#261329 72%);color:#fff4e2;box-shadow:0 16px 50px #170b28aa}.youtube-dialog .dialog-scroll{text-align:center}.youtube-play{display:grid;place-items:center;margin:12px auto 14px;width:92px;height:60px;border-radius:17px;background:#ff1645;color:#fff;font-size:34px;box-shadow:0 0 30px #ff406aaa,0 0 0 2px #ffcf83}.youtube-dialog footer{display:flex;flex-wrap:wrap;gap:8px}.youtube-dialog footer>*{flex:1 1 140px;min-height:44px;text-align:center}.youtube-dialog footer a{display:grid;place-items:center;text-decoration:none}.youtube-dialog #youtube-channel{background:#ffffff18;color:#fff4e2;border:1px solid #ffd18466;border-radius:12px;font-weight:700}.youtube-dialog #youtube-subscribe{background:#e01441;color:white}
