.layer-street {
 position:absolute;inset:0;width:100%;height:100%;z-index:680;
 image-rendering:pixelated;touch-action:none;cursor:grab;
}
.layer-street:active {cursor:grabbing}
.depth-vehicle {position:absolute;transform:translate(-50%,-100%);pointer-events:none;image-rendering:pixelated}
.depth-vehicle[hidden] {display:none}
.town-layered #view,.town-layered #pan {visibility:hidden;opacity:0}
.layer-street[hidden],.layer-hud[hidden],.layer-cross[hidden],.layer-landmark[hidden],.layer-resident[hidden] {display:none}
.layer-hud {
 position:fixed;right:14px;bottom:62px;z-index:975;display:flex;gap:4px;
 padding:4px;border:1px solid #506357;border-radius:6px;background:#f4e8c9;color:#344a40;
 font:650 12px system-ui,sans-serif;box-shadow:2px 2px #34453e44;
}
.layer-hud button,.layer-map button {
 border:1px solid #607268;border-radius:4px;background:#fff3d7;color:#314a40;
 padding:5px 8px;font:inherit;cursor:pointer;
}
.layer-hud button:disabled {opacity:.45;cursor:default}
.layer-hud button:not(:disabled):hover,.layer-map button:hover {background:#e7dbb9}
.layer-hud strong {align-self:center;margin:0 .4rem;white-space:nowrap}
.layer-district {
 max-width:137px;border:1px solid #607268;border-radius:4px;background:#fff3d7;color:#314a40;
 font:inherit;padding:4px;cursor:pointer;
}
.layer-district[hidden],.layer-venue-door[hidden] {display:none}
.layer-venue-door {
 position:absolute;z-index:1;transform:translate(-50%,-100%);border:0;padding:0;background:transparent;cursor:zoom-in;
}
.layer-venue-door:hover,.layer-venue-door:focus-visible {outline:1px dashed #f9e0a0}
.layer-cross,.layer-landmark {
 position:absolute;z-index:780;transform:translate(-50%,-50%);color:#304940;background:#eee4c5;
 border:1px solid #617567;border-radius:4px;box-shadow:1px 2px #53625570;
 padding:4px 6px;font:650 11px system-ui,sans-serif;white-space:nowrap;cursor:pointer;
}
.layer-cross {background:#e5e7cb}
.layer-foreground-sign {position:absolute;z-index:800;inset:0;pointer-events:none}
.layer-foreground-sign button {pointer-events:auto}
.layer-resident {
 position:absolute;transform:translate(-50%,-100%);padding:0;background:transparent;
 border:0;cursor:pointer;color:#304940;
}
.layer-resident:focus-visible {outline:2px dashed #824779}
.layer-resident small {
 position:absolute;top:100%;left:50%;transform:translateX(-50%);white-space:nowrap;
 background:#f6e8c9;color:#304940;border:1px solid #877559;border-radius:8px;
 padding:1px 4px;font:650 9px system-ui,sans-serif;
}
.layer-map {
 width:min(54rem,calc(100% - 24px));max-height:90dvh;box-sizing:border-box;overflow:auto;
 border:2px solid #53675b;border-radius:9px;background:#f2e7c9;color:#30483e;padding:clamp(.65rem,2vw,1rem);
 box-shadow:4px 5px #263c335c;font:650 13px/1.35 system-ui,sans-serif;
}
.layer-map::backdrop {background:#263b37ae}
.layer-map-head,.layer-map-nav,.layer-map-rows {display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.layer-map-head {justify-content:space-between;margin-bottom:.6rem}
.layer-map h2 {font:700 clamp(1.25rem,3.5vw,1.85rem) Georgia,serif;margin:0}
.layer-map canvas {width:100%;height:clamp(13rem,49dvh,25rem);display:block;background:#708f7d;image-rendering:pixelated;cursor:crosshair;border-radius:4px;touch-action:manipulation}
.layer-map-nav {justify-content:space-between;margin-top:.55rem}
.layer-map-rows button[aria-current=true] {background:#405b4f;color:#fff3d8}
.park-room {
 position:fixed;inset:0;box-sizing:border-box;width:100vw;height:100dvh;max-width:none;max-height:none;
 margin:0;padding:0;border:0;overflow:hidden;background:#8d9a83;
}
.park-room::backdrop {background:#28383380}
.park-room canvas {position:absolute;inset:0;width:100%;height:100%;display:block;image-rendering:pixelated}
.park-room button {
 border:1px solid #5e6b5b;border-radius:4px;background:#fff2d1;color:#31463a;
 padding:6px 9px;font:650 13px system-ui,sans-serif;cursor:pointer;
}
.park-room button:hover {background:#e7dab5}
.park-room button[aria-pressed=true] {background:#385b4c;color:#fff2d7}
.park-room button:disabled {opacity:.5;cursor:default}
.park-leave {position:absolute;right:12px;top:12px}
.park-activity {
 position:absolute;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);
 width:max-content;max-width:calc(100% - 20px);box-sizing:border-box;padding:10px 14px;color:#304538;
 border:2px solid #5a6b58;border-radius:7px;background:#f5e9c9;box-shadow:3px 3px #38483b68;
 font:650 13px/1.3 system-ui,sans-serif;
}
.park-activity h2 {font:700 clamp(1.2rem,3.2vw,1.75rem) Georgia,serif;margin:0 0 7px}
.park-actions {display:flex;flex-wrap:wrap;gap:5px}
.park-actions[hidden],.park-activity p[hidden] {display:none}
.park-activity p {margin:8px 0 0}
.park-activity p:empty {display:none}
.park-room-fixtures {position:absolute;inset:0;pointer-events:none}
.park-room .park-room-fixtures button {
 position:absolute;border:0;padding:0;border-radius:0;background:transparent;
 pointer-events:auto;cursor:pointer;
}
.park-room-fixtures button:focus-visible {outline:2px dotted #fff0bc}
.room-play-fixtures {position:absolute;inset:0;z-index:2;pointer-events:none}
.room-play-station {position:absolute;transform:translate(-50%,-50%);width:max-content;pointer-events:auto}
.room-play-station:focus-within {z-index:2}
.room-play-object,.room-play-buttons button {
 border:1px solid #d4bb8e;border-radius:4px;background:#fff0cd;color:#31463c;
 font:650 12px/1.15 system-ui,sans-serif;padding:5px 8px;cursor:pointer;
}
.room-play-object {
 position:relative;display:grid;justify-items:center;padding:0;
 border:0;background:transparent;
}
.room-play-object canvas {width:clamp(40px,7vw,96px);height:auto;image-rendering:pixelated}
.room-play-object:focus-visible {outline:2px dotted #fff0bc}
.room-play-panel {
 position:absolute;top:100%;left:0;width:min(245px,70vw);box-sizing:border-box;margin-top:5px;
 border:1px solid #cfb78d;border-radius:6px;padding:9px;background:#293b34f7;color:#fff0cc;
 font:13px/1.3 system-ui,sans-serif;box-shadow:3px 3px #202f2a60;
}
.room-play-right .room-play-panel {left:auto;right:0}
.room-play-panel p {margin:0 0 8px}
.room-play-buttons {display:flex;flex-wrap:wrap;gap:5px}
.room-play-buttons button:hover {background:#e4d6ae}
.room-play-buttons button:disabled {opacity:.6;cursor:default}
.room-carried-flower {position:absolute;left:66%;top:56%;width:18%;height:auto;image-rendering:pixelated;pointer-events:none}
.town-sky-target {
 position:fixed;z-index:820;width:42px;height:32px;transform:translate(-50%,-50%);
 border:0;padding:0;background:transparent;cursor:pointer;
}
.town-sky-target:hover,.town-sky-target:focus-visible {outline:1px dashed #fff0b9;border-radius:4px}
.town-sighting {
 padding:1rem 1.25rem;border:2px solid #6e7e6d;border-radius:8px;max-width:min(330px,85vw);
 color:#f6e8c7;background:#30483f;font:15px/1.4 system-ui,sans-serif;
}
.town-sighting h2 {margin:0;font:700 1.4rem Georgia,serif}
.town-sighting button {padding:5px 9px;color:#30483f;background:#f4e5c2;border:1px solid #ac9f7f;border-radius:4px;cursor:pointer}
.town-sighting::backdrop {background:#263b375e}
.statue-dialog {
 width:min(355px,calc(100vw - 32px));box-sizing:border-box;padding:12px;border:2px solid #465e50;border-radius:9px;
 background:#f4e7c9;color:#30463b;font:14px/1.4 system-ui,sans-serif;box-shadow:3px 5px #263b375e;
}
.statue-dialog h2 {font:700 1.4rem Georgia,serif;margin:0 0 7px}
.statue-dialog p {margin:8px 0}
.statue-dialog button,.statue-dialog input {
 padding:5px 9px;color:#30483f;background:#fff2d2;border:1px solid #a99873;border-radius:4px;font:inherit;
}
.statue-dialog button {cursor:pointer}
.statue-dialog button:disabled {opacity:.6;cursor:default}
.statue-illustration {position:relative}
.statue-dialog .statue-picture {position:absolute;padding:0;border:0;background:transparent}
.statue-picture:focus-visible {outline:2px dotted #fff0bc}
.statue-dialog canvas {display:block;width:100%;image-rendering:pixelated;border-radius:4px}
.statue-dialog::backdrop {background:#263b377c}
.statue-controls {margin-bottom:8px}
.statue-controls form {display:flex;flex-wrap:wrap;gap:5px}
.statue-plaque {display:inline-block;padding:5px 10px;color:#63482d;background:#e7ca82;border:1px solid #b69759;border-radius:2px}
.harbor-front {position:absolute;z-index:774;pointer-events:none;image-rendering:pixelated}
.work-entrance.harbor-cabin {z-index:776}
.work-entrance-sign.facade-entrance[data-x="3492"] {z-index:775}
.work-entrance.harbor-signal {height:calc(12px * var(--sign-zoom));z-index:773}
.work-entrance.statue-cargo {z-index:773}
.work-entrance.statue-cargo:hover:not(:focus-visible) {background:transparent;outline:none}
.work-entrance.statue-cargo[hidden] {display:none}
.work-entrance.statue-cargo::after {display:none}
#world .local-person>small,#world .resident>small {
 position:absolute;top:100%;left:50%;transform:translateX(-50%);white-space:nowrap;
}
.overheard {position:fixed;box-sizing:border-box;z-index:855;pointer-events:none;width:max-content;
 max-width:min(245px,calc(100vw - 16px));padding:7px 11px 8px;border:1px solid #657366;border-radius:10px;
 background:#fff8e5;color:#263e38;box-shadow:1px 2px 0 #35474041;font:14px/1.34 system-ui;text-align:left}
.overheard[hidden]{display:none}
.overheard strong {display:block;font-size:11px;letter-spacing:.02em;color:#5d6147;margin-bottom:2px}
.overheard::after {content:"";position:absolute;bottom:-5px;left:var(--tail,50%);width:8px;height:8px;
 transform:rotate(45deg);background:#fff8e5;border-right:1px solid #657366;border-bottom:1px solid #657366}
body.guest:not(.camera-in) .bus-body,.depth-vehicle.ride-window {pointer-events:auto;cursor:pointer}
.bus-body:focus-visible,.depth-vehicle.ride-window:focus-visible {outline:2px dashed #ffda85}
dialog.bus-room {position:fixed;inset:0;margin:0;width:100%;height:100%;max-width:none;max-height:none;
 padding:0;border:0;overflow:hidden;box-sizing:border-box;background:#98a69a;color:#233b35}
.bus-room::backdrop {background:transparent}
.bus-room canvas {position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated}
.bus-destination {position:absolute;top:clamp(14px,5vh,42px);left:50%;transform:translateX(-50%);
 background:#2f433c;color:#ffe3a0;box-shadow:0 0 0 3px #7c7059,0 3px 0 4px #4e5146;
 border:1px solid #bca978;padding:5px 12px;font:700 clamp(12px,2.2vw,20px)/1.2 ui-monospace,monospace;white-space:nowrap}
.bus-room>button {position:absolute;bottom:max(16px,env(safe-area-inset-bottom));right:16px;
 background:#fff5dc;border:2px solid #495c51;border-radius:6px;padding:9px 16px;color:#294237;font-weight:700}
.bus-words {position:absolute}
.bus-room .bus-seat,.park-room .park-resident {position:absolute;right:auto;bottom:auto;margin:0;padding:0;background:transparent;border:0;cursor:pointer;border-radius:6px}
.bus-room .bus-seat:focus-visible,.park-room .park-resident:focus-visible {outline:2px dashed #fff0c2;outline-offset:2px}
.talk-question-echo {display:block;margin:0 0 4px;color:#495c54;font:italic 13px/1.3 system-ui}
.talk-question-echo[hidden],.greeting-card .story-choices[hidden] {display:none}
.greeting-card .story-choices button {min-height:34px;text-align:left}
.greeting-card .story-choices {display:flex;flex-wrap:wrap;gap:5px}
.greeting-card summary {min-height:30px}
body>header .town-more {position:relative;pointer-events:auto}
body>header .town-more summary {cursor:pointer;border:1px solid #52675c;border-radius:5px;padding:5px 9px;color:#29463c;background:#fff4d7;font:600 13px/1.2 system-ui}
.town-more>div {position:absolute;top:calc(100% + 4px);right:0;display:grid;gap:4px;padding:6px;min-width:145px;background:#fff7e2;border:1px solid #68796b;border-radius:6px}
.town-more:not([open])>div {display:none}
@media(max-width:1480px){
 body>header {flex-wrap:wrap;justify-content:flex-start;align-content:start;column-gap:7px;row-gap:4px;max-width:100%;box-sizing:border-box}
 body>header>nav {order:10;flex:0 1 100%;width:100%;display:flex;justify-content:flex-start;flex-wrap:nowrap;min-width:0;overflow-x:auto}
 body>header>nav a {flex:none}
}
@media(max-width:650px){
 body>header {padding:6px 9px;column-gap:4px}
 body>header>nav a {min-height:29px;align-content:center}
 body>header .directory-link {margin-left:auto}
 .greeting-card {max-height:calc(100dvh - 20px);overflow-y:auto;overscroll-behavior:contain}
 .greeting-card .talk-menu summary,.greeting-card .story-choices button {min-height:38px}
}
@media(max-width:550px) {
 .layer-hud {right:10px;bottom:55px;gap:3px;font-size:11px;max-width:calc(100vw - 20px);flex-wrap:wrap;justify-content:flex-end}
 .layer-hud button {padding:5px 6px}
 .layer-hud strong {margin:0 .2rem}
 .layer-map-nav {justify-content:start}
 .room-play-object {min-height:38px;align-items:center}
 .room-play-panel {width:min(200px,55vw);padding:7px}
 .room-play-buttons button {min-height:34px}
}

dialog.greeting-card[open]:has(.talk-thread) {
 display:flex;flex-direction:column;gap:0;box-sizing:border-box;width:min(420px,calc(100vw - 24px));
 height:var(--talk-limit,78dvh);max-height:var(--talk-limit,78dvh);overflow:hidden;padding:0;border:1px solid #496452;border-radius:15px;
 color:#253d34;background:#fff9eb;box-shadow:0 3px 0 #435c4e,0 9px 26px #1e342e3d;
}
dialog.greeting-card[open]:not(:has(.talk-thread)) {inset:50% auto auto 50%!important;transform:translate(-50%,-50%);max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);overflow:auto}
.greeting-card .talk-thread:focus-visible {outline:2px solid #567458;outline-offset:-3px}
.greeting-card::backdrop {background:rgb(26 44 37 / 9%)}
.greeting-card .talk-header {flex:0 0 auto;align-self:stretch;margin:0;gap:9px;padding:10px 12px;border-bottom:1px solid #ded8c4;background:#f5f1e1}
.greeting-card .talk-portrait {background-color:#e4ead7;border:1px solid #d0d8bf;border-radius:9px;background-repeat:no-repeat}
.greeting-card .talk-header strong {font:700 21px/1.1 Georgia,serif}
.greeting-card .talk-header small {font:13px/1.35 "Segoe UI",system-ui,sans-serif;color:#526251}
.greeting-card .talk-header .talk-close,.greeting-card .talk-header .talk-back {
 align-self:center;margin:0;min-height:40px;padding:4px 7px;background:transparent;border:0;border-radius:7px;color:#334f40
}
.greeting-card .talk-header .talk-close {width:40px;font:24px/1 system-ui}
.greeting-card .talk-header .talk-back {font:600 13px/1.2 "Segoe UI",system-ui,sans-serif}
.greeting-card .talk-header button:hover,.greeting-card summary:hover {background:#e5e9d9}
.greeting-card .talk-thread {
 position:relative;display:flex;flex-direction:column;align-items:stretch;flex:1 1 0;min-height:0;max-height:none;
 padding:13px 15px 4px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;overflow-anchor:none
}
.greeting-card .talk-past {display:contents}
.greeting-card .talk-thread p {
 flex:none;max-width:91%;width:fit-content;box-sizing:border-box;margin:0 0 7px;
 padding:8px 12px;overflow-wrap:anywhere;font:15px/1.43 "Segoe UI",system-ui,sans-serif
}
.greeting-card .talk-thread :is(.talk-line,.talk-past-line) {
 align-self:flex-start;background:#fffdf6;color:#283e34;border:1px solid #d5ccb1;border-radius:3px 13px 13px 13px
}
.greeting-card .talk-thread .talk-line:before {display:none}
.greeting-card .talk-thread .talk-question {
 align-self:flex-end;background:#e3edde;border:1px solid #c5d4c2;color:#294b3b;border-radius:13px 3px 13px 13px
}
.greeting-card .talk-line[aria-busy=true] {color:#58685a;font-style:italic}
.greeting-card .story-choices:not([hidden]) {display:grid;flex:none;gap:5px;margin:3px 14px 10px}
.greeting-card .story-choices button {
 position:relative;margin:0;min-height:39px;padding:7px 26px 7px 11px;
 border:1px solid #acbeaa;border-radius:7px;background:#eff4e8;color:#254734;text-align:left;font:600 14px/1.32 "Segoe UI",system-ui,sans-serif
}
.greeting-card .story-choices button:after {content:"";position:absolute;right:12px;top:50%;width:6px;height:6px;border:solid #59745d;border-width:1.5px 1.5px 0 0;transform:translateY(-50%) rotate(45deg)}
.greeting-card .story-choices button:hover {border-color:#78977d;background:#e4eedf}
.greeting-card .talk-footer {display:block;flex:0 0 auto;overflow:visible;overscroll-behavior:contain;padding:8px 14px 7px;border-top:1px solid #ded8c4;background:#f8f5e9}
.greeting-card .talk-thread>.story-choices:not([hidden]) {display:grid;flex:none;max-height:none;overflow:visible;margin:2px 0 8px}
.greeting-card .talk-status {display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:21px;color:#526251;font:12px/1.35 "Segoe UI",system-ui,sans-serif}
.greeting-card .talk-status[data-loading=true] {color:#315949;font-weight:600}
.greeting-card .talk-status .talk-latest {border:0;background:transparent;color:#285d4b;text-decoration:underline;text-underline-offset:2px;font:600 12px/1.35 "Segoe UI",system-ui,sans-serif;padding:4px 0;margin:0}
.greeting-card .talk-navigation {display:flex;gap:3px 14px;flex-wrap:wrap;align-items:start}
.greeting-card .talk-menu[open] {width:100%}
.greeting-card .talk-actions,.greeting-card .talk-subjects {display:flex;gap:5px;flex-wrap:wrap;max-height:min(165px,calc(var(--talk-limit,78dvh)*.28));overflow:auto;overscroll-behavior:contain;padding:2px}
.greeting-card .talk-menu summary {font:600 13px/1.3 "Segoe UI",system-ui,sans-serif;color:#3b5944;min-height:32px;padding:8px 3px;box-sizing:border-box;border-radius:4px}
.greeting-card .talk-menu button {min-height:34px;margin:0;padding:6px 9px}
.greeting-card .talk-footer .resident-question {margin:0 0 3px;gap:6px}
.greeting-card .resident-question input {min-width:0;height:39px}
.greeting-card .resident-question button[type=submit] {min-width:56px}
.talk-sr {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:559px) {
 dialog.greeting-card[open]:has(.talk-thread) {width:calc(100vw - 20px);border-radius:16px}
 .greeting-card .story-choices button,.greeting-card .talk-header .talk-back,.greeting-card .talk-header .talk-close,.greeting-card .talk-menu summary {min-height:44px}
 .greeting-card .talk-thread {max-height:none}
 .greeting-card .talk-menu button,.greeting-card .resident-question input {min-height:40px}
 .greeting-card .resident-question input {font-size:16px}
}
@media(max-height:510px) {
 .greeting-card .talk-header {padding-block:4px}
 .greeting-card .talk-thread {max-height:none;min-height:0}
 .greeting-card .story-choices:not([hidden]) {display:flex;flex-wrap:wrap;flex:0 0 auto;max-height:min(33dvh,132px);overflow:auto;margin:3px 9px 5px}
 .greeting-card .talk-footer {min-height:54px;padding-block:4px}
 .greeting-card .talk-footer:not(:has(details[open])) {flex:0 0 auto}
 .greeting-card .talk-menu summary {min-height:28px;padding-block:5px}
}
