#loadingScreen[hidden], #neighbourChat[hidden] { display:none }
#landmarkSearchForm { position:relative; display:flex; align-items:center; gap:7px; min-height:46px; margin:0 3px 7px; padding:0 2px 0 11px; border:1px solid #aec9bd; border-radius:12px; background:#f1f6ee; color:#246459 }
#landmarkSearchForm:focus-within { border-color:#087f81; outline:2px solid #087f8160; outline-offset:1px }
#landmarkSearchForm svg { flex:none; width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round }
#landmarkSearch { min-width:0; flex:1; min-height:44px; padding:0; border:0; border-radius:0; outline:0; background:transparent; color:#173d39; font:inherit; font-size:16px }
#landmarkSearch::placeholder { color:#58756a }
#landmarkSearch:disabled { cursor:default; opacity:1 }
#landmarkSearch::-webkit-search-cancel-button { -webkit-appearance:none }
#clearLandmarkSearch { flex:none; width:44px; min-width:44px; min-height:44px; padding:0; background:transparent; color:#246459; font-size:22px; line-height:1 }
#clearLandmarkSearch:hover { background:#e2eee3 }
#directorySearch:disabled { opacity:.66 }
#landmarkEmpty { margin:8px 4px 4px; padding:8px; font-size:13px }
.landmark-icon { flex:none; width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; color:var(--landmark-color,#246459) }
#landmarkCategoryFilters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin:2px 3px 10px }
#landmarkCategoryFilters button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:11px; aspect-ratio:1; min-width:0; min-height:96px; padding:12px 7px; border:1px solid #d5e2d8; border-radius:13px; color:#264c43; background:#eef4eb; font-size:12px; line-height:1.2; text-align:center }
#landmarkCategoryFilters button > .landmark-icon { width:34px; height:34px }
#landmarkCategoryFilters button > span { display:block; width:100%; text-align:center; text-wrap:balance }
#landmarkMenu[data-searching=true] #landmarkCategoryFilters { max-height:min(126px,28dvh); overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable }
#landmarkCategoryFilters button:hover { background:#e1ece4 }
#landmarkCategoryFilters button[aria-pressed=true] { color:#fff; background:var(--landmark-color); border-color:var(--landmark-color) }
#landmarkCategoryFilters button[aria-pressed=true] svg { color:inherit }
#landmarkMenu .landmark-heading { display:flex; align-items:center; gap:6px; flex-wrap:wrap; min-height:24px; padding:2px 4px 7px }
#landmarkCount { margin-inline-start:auto }
#clearLandmarkCategory { width:auto; min-height:32px; padding:4px 7px; color:#225a4b; background:#eef4eb; font-size:11px; line-height:1 }
#landmarkList button { display:grid; grid-template-columns:24px minmax(0,1fr); align-items:center; gap:5px; min-height:44px; padding:7px 6px }
#landmarkList button > .landmark-icon { justify-self:center }
#landmarkList button > span { min-width:0 }
.building-info-title { display:grid; gap:5px; flex:1; min-width:0 }
.building-info-title strong { overflow-wrap:anywhere }
#buildingCategory { display:flex; align-items:center; gap:5px; color:#365c51; font-size:11px; font-weight:650 }
#buildingCategory .landmark-icon { width:15px; height:15px }
#selectedLandmarkPin { position:fixed; z-index:6; left:0; top:0; display:grid; place-items:center; width:31px; height:31px; margin:-36px 0 0 -15px; border:2px solid #fffef8; border-radius:11px; box-shadow:0 2px 9px #173d3966; background:var(--landmark-color); color:#fff; pointer-events:none }
#selectedLandmarkPin::after { content:""; position:absolute; top:100%; left:50%; border:5px solid transparent; border-top-color:#fffef8; transform:translateX(-50%) }
#selectedLandmarkPin .landmark-icon { color:inherit }
#loadingScreen {
 display:block; overflow:auto; overscroll-behavior:contain; text-align:left;
 color:#133f3d; color-scheme:light; box-sizing:border-box;
 padding:calc(clamp(13px,3vw,36px) + env(safe-area-inset-top)) clamp(13px,4vw,48px) calc(34px + env(safe-area-inset-bottom));
 background:radial-gradient(ellipse at 80% 0%,#aeebe0,transparent 57%),radial-gradient(ellipse at 6% 24%,#fff0c8,transparent 55%),linear-gradient(145deg,#e9eee2,#dcefe5 58%,#9ed5cd);
}
.town-home { width:min(1120px,100%); margin:auto; display:grid; grid-template-columns:minmax(0,1.18fr) minmax(0,1fr); gap:clamp(12px,2vw,23px); align-items:start }
.town-home > section {
 min-width:0; box-sizing:border-box; padding:clamp(17px,3vw,30px); border:1px solid #fffefa;
 border-radius:clamp(21px,3vw,32px); background:linear-gradient(151deg,#fffdf3 0%,#f8faf1 51%,#e5f3e9 100%);
 box-shadow:inset 0 0 0 3px #e0e9d996,0 7px 20px #235b5130;
}
#loadingScreen h1 { margin:0 0 25px; font:500 clamp(38px,6vw,73px)/.99 Georgia,serif; letter-spacing:-.048em; color:#103e3d }
#loadingScreen h2 { position:static; width:auto; height:auto; padding:0; overflow:visible; clip-path:none; white-space:normal; margin:0 0 14px; font:500 clamp(23px,3vw,32px)/1.12 Georgia,serif; letter-spacing:-.024em }
.town-home :is(a,button,input,select):focus-visible { outline:2px solid #007a79; outline-offset:3px }
.town-home :is(h1,h2) { scroll-margin-top:18px }
.town-masthead { grid-column:1/-1; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; padding:0 4px }
.town-masthead a { color:inherit; font-weight:700; font-size:13px; text-decoration:none }
.town-wordmark { display:flex; align-items:center; gap:6px }
.town-masthead .town-wordmark { font-size:16px; letter-spacing:-.02em }
.town-masthead nav { display:flex; flex-wrap:wrap; gap:5px 13px }
.town-masthead nav a { display:grid; place-items:center; min-height:40px; padding:0 4px }
.town-masthead nav a:hover,.town-edit-link:hover { text-decoration:underline }
.town-arrival { grid-area:2 / 1; align-self:stretch; background:radial-gradient(ellipse at 100% 0%,#b4e8db,transparent 56%),linear-gradient(140deg,#fffdf0,#ecf7eb 65%,#d9efe7)!important }
.town-editor { grid-area:2 / 2 / span 2 }
.town-passport { grid-area:4 / 1 }
.town-spotlight { grid-area:3 / 1; display:grid; align-items:start; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:7px 12px }
.town-spotlight h2 { grid-area:1 / 1 / auto / span 2 }
.town-spotlight img { grid-area:2 / 1 / span 2 }
.town-spotlight h3 { grid-area:2 / 2; align-self:end }
.town-spotlight #visitFeatured { grid-area:3 / 2; justify-self:start }
.town-spotlight details { grid-column:1/-1 }
.town-directory { grid-area:4 / 2 }
.town-history { grid-area:5 / 1 / auto / span 2 }
.town-start { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:0; padding:0; border:0 }
.town-start legend { margin-bottom:8px; font-size:13px; font-weight:700 }
.town-start label { position:relative; min-width:0; cursor:pointer }
.town-start input { position:absolute; inset:0; width:100%; height:100%; opacity:0; margin:0; cursor:pointer }
.town-start span { display:grid; gap:3px; height:100%; min-height:62px; box-sizing:border-box; padding:9px 10px 9px 13px; border-radius:14px; border:1px solid #a1c7b7; background:#fafbf2; color:#17413e }
.town-start small { color:#41615a }
.town-start input:checked + span { background:linear-gradient(155deg,#087f81,#075957); border-color:#268b85; color:#fffdf3; box-shadow:inset 0 1px 1px #ffffff6b,0 3px 8px #17655630 }
.town-start input:checked + span small { color:#e3f5ed }
.town-start input:focus-visible + span { outline:2px solid #147e7c; outline-offset:2px }
#enterTown,#visitFeatured { min-height:44px; padding:0 19px; border:1px solid #077670; border-radius:999px; background:linear-gradient(168deg,#128c8c,#086467 58%,#084f56); box-shadow:inset 0 1px 1px #ffffff90,0 4px 9px #16685b36; font-weight:700 }
.town-home #enterTown:disabled,.town-home #visitFeatured:disabled { opacity:.68; box-shadow:none }
.town-edit-link { display:inline-flex; align-items:center; min-height:44px; gap:5px; margin-inline-start:11px; color:#125e59; font-size:13px; font-weight:700; text-underline-offset:3px }
#loadingScreen .welcome-attribution { margin-top:11px; font-size:11px }
.town-stat-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin:13px 0 0 }
.town-stat-grid div { padding:10px 12px; border-radius:13px; border:1px solid #d4e8db; background:#fffef5 }
.town-stat-grid dt { color:#365c50; font-size:11px }
.town-stat-grid dd { margin:3px 0 0; font-size:19px; font-weight:700; font-variant-numeric:tabular-nums }
#passportRecent { margin-top:10px }
#passportRecent:empty { display:none }
.directory-filters { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.87fr); gap:8px }
.directory-filters label { display:grid; gap:5px; font-size:12px; font-weight:700 }
.directory-filters :is(input,select) { box-sizing:border-box; width:100%; max-width:none; height:43px; margin:0; border:1px solid #9fbeb0; border-radius:10px; background:#fffef5; color:inherit; padding:0 8px; font:inherit; font-size:16px }
#directoryCount { margin:8px 0; }
#directoryList { max-height:385px; overflow:auto; overscroll-behavior:contain; padding:0 4px 0 0; }
.directory-place { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; padding:8px; border-bottom:1px solid #b9d9c7 }
.directory-place h3 { grid-column:1/-1; font:700 15px/1.25 system-ui; margin:0!important }
.directory-place button,.directory-place a { display:inline-grid; place-items:center; justify-self:start; min-height:44px; padding:4px 8px; border-radius:9px; color:#135752; background:#dbeee2; text-decoration:none; font-size:12px; font-weight:650 }
.directory-place a { justify-self:end; background:transparent; text-decoration:underline; text-underline-offset:3px }
.directory-place :is(button,a):hover { background:#c6e4d5 }
.town-history ol { margin:0; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; list-style:none }
.town-history li { border-left:3px solid #52a79a; padding:5px 12px; line-height:1.45; font-size:13px; color:#365c50 }
.town-history strong { display:block; margin-bottom:4px; color:#153f3e; font-weight:700 }
#townLoadingFact { grid-column:1/-1; color:#365c50 }
#loadingScreen h3 { font-size:20px; margin:16px 0 }
#loadingScreen .town-spotlight h3 { font-size:clamp(15px,2vw,22px); margin:0 }
#visitFeatured { font-size:clamp(11px,1.5vw,14px); padding-inline:clamp(7px,1.3vw,19px) }
#loadingScreen p { color:#365c50 }
.avatar-stage { position:relative; overflow:hidden; background:radial-gradient(ellipse at 45% 47%,#f7edcf 5%,#e5edda 66%,#cedfcf); border:1px solid #d5e1cb; border-radius:18px }
#avatarPreview { display:block; width:100%; height:auto; aspect-ratio:19/14; }
.avatar-stage-controls { position:absolute; inset:auto 10px 10px; display:flex; justify-content:space-between; align-items:center; gap:8px }
.avatar-stage-controls label { display:flex; align-items:center; gap:7px; padding:3px 4px 3px 10px; border-radius:12px; background:#fffef8; color:#254c42; font-size:13px }
.avatar-stage-controls select { min-height:38px; border:none; background:#eef3e8; color:#254c42; border-radius:8px; font:inherit }
#turnAvatar { min-width:44px; min-height:44px; padding:0; font-size:24px; background:#fffef8; color:#254c42; border:1px solid #c7d8ce; border-radius:12px }
#avatarEditor { display:grid; gap:13px; margin:14px 0 16px }
.avatar-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:3px; padding:4px; background:#eef1e8; border-radius:12px }
#avatarEditor [role=tab] { min-height:41px; padding:4px; background:transparent; color:#365a4f; border:0; font-size:clamp(11px,2.8vw,13px); border-radius:9px }
#avatarEditor [aria-selected=true] { background:#24584d; color:#fffef8 }
.avatar-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px 12px }
.avatar-fields[hidden] { display:none }
.avatar-fields label { min-width:0; display:grid; gap:4px; font-size:13px; font-weight:650; color:#365a4f }
.avatar-fields select,.avatar-fields input[type=color] { width:100%; min-width:0; max-width:none; min-height:42px; margin:0; border:1px solid #c2d3c8; border-radius:9px; background:#fffef8; color:#173d39; font:inherit; padding:5px 8px }
.avatar-fields input[type=color] { cursor:pointer; padding:5px }
#avatarEditor :focus-visible,.avatar-stage-controls :focus-visible { outline:2px solid #087f81; outline-offset:2px }
.town-progress { display:grid; grid-template-columns:1fr auto; gap:5px 8px; margin:14px 0; align-items:center }
.town-progress progress { grid-column:1 / -1 }
#loadingScreen .town-progress p { margin:0 }
#loadingProgress { height:6px }
#loadingPercent { font-size:13px }
.town-home button:disabled { opacity:.55; cursor:wait }
.town-spotlight img { width:100%; height:auto; aspect-ratio:16 / 9; object-fit:cover; border-radius:12px; background:#e4eee2 }
.town-spotlight details { margin-top:5px }
.town-spotlight summary { cursor:pointer }
.town-credits ul { padding-inline-start:19px; margin:12px 0 0; color:#365c50; line-height:1.45 }
.town-credits li + li { margin-top:7px }
.town-credits a, .welcome-attribution a, #weatherPanel a, #weatherNotice a { color:#185d55; text-underline-offset:2px }
.welcome-attribution { font-size:12px }
#creditsDialog {
 width:min(560px,calc(100vw - 28px));
 max-height:min(680px,calc(100dvh - 44px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
 padding:0;
 border:1px solid #c9ded7;
 border-radius:22px;
 background:#fffef8;
 color:#173d39;
 box-shadow:0 12px 38px #173d3940;
}
#creditsDialog::backdrop { background:#132e3190 }
#creditsDialog header {
 position:sticky;top:0;z-index:1;
 display:flex;align-items:center;justify-content:space-between;gap:12px;
 padding:12px 16px;border-bottom:1px solid #dbe8df;background:#fffef8;
}
#creditsDialog h2 { margin:0;font:600 23px/1.2 Georgia,serif }
#creditsDialog button { width:44px;height:44px;padding:0;font-size:23px;background:#e7f1e9;color:#173d39 }
#creditsSources { padding:0 17px 18px }
#mapIdentity {
 position:fixed;
 z-index:66;
 top:var(--controls-top);
 left:calc(14px + env(safe-area-inset-left));
 display:grid;
 grid-template-columns:46px minmax(0,auto);
 grid-template-rows:auto 46px auto;
 align-items:center;
 gap:6px 8px;
 max-width:calc(100vw - 132px - env(safe-area-inset-left) - env(safe-area-inset-right));
 pointer-events:none;
}
#mapIdentity header { min-width:0;grid-column:1 / -1;grid-row:1 }
#mapIdentity:has(:is(#mapbox,#locationSearchPanel):not([hidden])) { z-index:82 }
#addressSearchToggle { display:flex;align-items:center;gap:8px;min-height:44px;max-width:100%;padding:7px 12px 7px 8px;border:1px solid #fff9ec;border-radius:17px;background:var(--control-shell);color:#173d39;box-shadow:var(--control-shell-shadow);text-align:left;pointer-events:auto }
#addressSearchToggle:focus-visible { outline:2px solid #087779;outline-offset:2px }
#addressSearchToggle .location-pin { flex:none;width:25px;height:28px;fill:#086a69;stroke:#fffdfa;stroke-width:1.4;stroke-linecap:round }
#addressSearchToggle .location-pin circle { fill:#c5fae9 }
#currentStreet { display:block;min-width:0;font-size:13px;font-weight:650;line-height:1.25;overflow-wrap:anywhere }
#minimapToggle { grid-column:1;grid-row:2;width:46px;height:46px;padding:9px }
#locationSearchPanel { position:absolute;z-index:2;grid-row:2;grid-column:1 / -1;top:0;left:0;width:min(360px,calc(100vw - 28px - env(safe-area-inset-left) - env(safe-area-inset-right)));padding:10px;border:1px solid #cee2d9;border-radius:18px;background:#fffef8;box-shadow:0 12px 38px #173d3940;pointer-events:auto;color:#173d39 }
#locationSearchForm label { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0 }
#locationSearchPanel[hidden] { display:none }
#locationSearchForm { display:flex;align-items:center;gap:6px }
#locationSearch { flex:1;min-width:0;width:100%;min-height:44px;padding:10px 11px;border:1px solid #9cb9ad;border-radius:10px;background:#fff;font:inherit;font-size:16px;color:inherit }
#locationSearch:focus-visible { outline:2px solid #087779;outline-offset:1px }
#closeLocationSearch { flex:none;min-width:44px;min-height:44px;padding:0;border-radius:10px;background:#e7f1e9;color:inherit;font-size:24px }
#locationSearchStatus { margin:9px 3px;font-size:12px }
#locationSearchResults { display:grid;gap:4px;max-height:min(380px,calc(100dvh - 190px - env(safe-area-inset-top) - var(--town-viewport-bottom,0px)));overflow:auto;overscroll-behavior:contain }
#locationSearchResults button { display:grid;gap:3px;width:100%;min-height:54px;padding:9px 11px;text-align:left;border:1px solid transparent;border-radius:10px;background:#edf4ec;color:inherit;font-size:13px }
#locationSearchResults button small { font-size:11px;color:#46685f }
#locationSearchResults button:is(:hover,:focus-visible) { border-color:#087779;background:#e0f0e7;outline-offset:-2px }
#mapbox {
 position:absolute;
 top:calc(100% + 8px);
 left:0;
 display:flex;
 align-items:flex-start;
 gap:8px;
 padding:8px;
 border:1px solid #cee2d9;
 border-radius:18px;
 background:#fffef8;
 box-shadow:0 12px 38px #173d3940;
 pointer-events:auto;
}
#minimapView,#screenOptionsPanel { width:min(214px,calc(100vw - 151px - env(safe-area-inset-left) - env(safe-area-inset-right))) }
.minimap-figure { position:relative; width:min(100%,calc(58dvh - 42px)); margin-inline:auto; overflow:hidden; border-radius:10px }
#minimap { width:100%; height:auto; display:block }
#minimapLandmarks { position:absolute; inset:0; pointer-events:none }
#minimapLandmarks button { position:absolute; display:grid; place-items:center; width:26px; height:26px; min-width:0; min-height:0; padding:0; border:2px solid #fffef8; border-radius:9px; background:var(--landmark-color); box-shadow:0 2px 5px #183e384f; color:#fff; transform:translate(-50%,-50%); pointer-events:auto }
#minimapLandmarks button:is(:hover,:focus-visible) { z-index:1; box-shadow:0 2px 8px #163e38a0 }
#minimapLandmarks .landmark-icon { width:15px; height:15px; color:inherit }
#landmarkMapCategories { border-bottom:1px solid #d5e2d8; margin:0 6px 4px; padding-bottom:3px }
#landmarkMapCategories summary { display:list-item; min-height:36px; padding:8px 0; cursor:pointer; font-size:12px; font-weight:650 }
#screenOptionsPanel #landmarkMapFilters label { min-height:37px; padding:4px 0 4px 4px; gap:5px }
#landmarkMapFilters label > span { display:flex; align-items:center; gap:5px }
#landmarkMapFilters .landmark-icon { width:16px; height:16px }
#screenOptionsToggle { width:51px; min-height:49px; font-size:10px; font-weight:650; gap:1px; padding:4px }
#screenOptionsToggle svg { width:21px; height:21px }
#trafficLegend { display:flex; align-items:center; justify-content:space-around; gap:4px; padding:7px 1px 0; color:#244d45; font-size:10px }
#trafficLegend span { display:flex; align-items:center; gap:4px }
#trafficLegend i { width:8px; height:8px; border-radius:50%; background:#f1a641 }
#trafficLegend span:last-child i { background:#db5341 }
#screenOptionsPanel { max-height:calc(100dvh - 146px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow:auto; overscroll-behavior:contain; color:#244d45 }
#screenOptionsPanel label { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:44px; padding:5px 6px; border-radius:9px; cursor:pointer; font-size:12px }
#screenOptionsPanel label:hover { background:#edf4ec }
#screenOptionsPanel input { appearance:none; display:grid; align-items:center; flex:none; width:36px; height:22px; margin:0; padding:2px; border:1px solid #748e83; border-radius:20px; background:#e1ebe3; cursor:pointer }
#screenOptionsPanel input::before { content:""; width:16px; height:16px; border-radius:50%; background:#53746a }
#screenOptionsPanel input:checked { border-color:#087f81; background:#087f81; justify-items:end }
#screenOptionsPanel input:checked::before { background:#fff }
#screenOptionsPanel input:focus-visible { outline:2px solid #df8a5f; outline-offset:3px }
@media(forced-colors:active) { #screenOptionsPanel input { appearance:auto } #screenOptionsPanel input::before { display:none } }
body:has(#loadingScreen:not([hidden])) #mapIdentity { display:none }
#suburbArrival { position:fixed; inset:0; z-index:80; pointer-events:none; display:grid; justify-items:center; align-content:end; padding-bottom:calc(122px + env(safe-area-inset-bottom)); opacity:0; background:radial-gradient(ellipse at 50% 46%,#fff1c630,#b6f3e340 58%,#e9ddff69); }
#suburbArrival span { color:#12423f; background:#fffdf0eb; border:1px solid #fff; border-radius:99px; padding:8px 18px; box-shadow:0 4px 15px #245c5140; font-size:13px; font-weight:700 }
#suburbArrival.crossing { animation:suburb-arrival 850ms ease-in-out both }
@keyframes suburb-arrival { 0%,100% { opacity:0 } 25%,68% { opacity:1 } }
@media(prefers-reduced-motion:reduce) {
 #suburbArrival { background:none }
 #suburbArrival.crossing { animation-duration:600ms }
}
#suburbTravelNotice {
 position:fixed;
 top:calc(var(--controls-top) + 136px);
 left:50%;
 z-index:79;
 transform:translateX(-50%);
 width:max-content;
 max-width:min(300px,85vw);
 margin:0;
 padding:9px 14px;
 color:#164d50;
 background:#fffdf0f5;
 border-radius:14px;
 box-shadow:var(--control-shell-shadow);
 font-size:13px;
 font-weight:700;
 text-align:center;
 pointer-events:none;
}
#magicTrafficNotice {
 position:fixed; z-index:81; pointer-events:none; left:50%; top:calc(var(--controls-top) + 81px);
 transform:translateX(-50%); width:max-content; max-width:min(calc(100vw - 98px),360px);
 padding:9px 14px; text-align:center; border:1px solid #fff; border-radius:17px;
 background:linear-gradient(137deg,#f5fbff,#f3eaff); box-shadow:0 4px 18px #29237747;
 color:#322067; font-size:13px; font-weight:700;
}
body:has(#loadingScreen:not([hidden])) #magicTrafficNotice { display:none }
#suburbBuffer {
 position:fixed; z-index:81; pointer-events:none; display:flex; align-items:center; gap:9px;
 width:min(250px,calc(100vw - 28px)); min-height:56px; padding:7px 13px 7px 9px;
 left:clamp(min(139px,50vw),var(--buffer-x,50vw),max(calc(100vw - 139px),50vw));
 top:clamp(calc(105px + env(safe-area-inset-top)),var(--buffer-y,40dvh),max(42dvh,calc(64dvh - env(safe-area-inset-bottom))));
 transform:translate(-50%,-50%);
 background:linear-gradient(145deg,#fffdf4,#eaf5ed); border:1px solid #fff;
 box-shadow:inset 0 0 0 1px #d0e6da,0 5px 18px #123d3d40;
 border-radius:18px; color:#12423f; font-size:13px; line-height:1.25;
}
#suburbBuffer strong,#suburbBuffer small { display:block }
#suburbBuffer small { margin-top:3px; font-size:11px; color:#3c5a56 }
.suburb-buffer-donut {
 flex:none; width:34px; height:34px; border-radius:50%;
 background:
  radial-gradient(ellipse 3px 1.1px at 48% 17%,#fddc68 90%,transparent),
  radial-gradient(ellipse 1.3px 2.5px at 76% 27%,#7864be 90%,transparent),
  radial-gradient(ellipse 2.4px 1.2px at 78% 64%,#fdf2d1 90%,transparent),
  radial-gradient(ellipse 2.6px 1.1px at 53% 80%,#70bdac 90%,transparent),
  radial-gradient(ellipse 1.1px 2.4px at 21% 62%,#f9d777 90%,transparent),
  radial-gradient(ellipse 2.6px 1.1px at 24% 31%,#feefd1 90%,transparent),
  radial-gradient(circle,#c17b45 28%,#e8a568 32%,#ee91a7 38%,#f6b1b7 63%,#e4a16e 66%,#ac6744 71%);
 mask-image:radial-gradient(circle,transparent 25%,#000 27%);
 box-shadow:inset 0 0 0 1px #95533850;
 animation:suburb-donut-spin 2.25s linear infinite;
}
@keyframes suburb-donut-spin { to { transform:rotate(1turn) } }
@media(prefers-reduced-motion:reduce) { .suburb-buffer-donut { animation:none } }
@media(forced-colors:active) {
 .suburb-buffer-donut { background:none; border:6px solid CanvasText; border-top-color:Highlight; mask-image:none }
}
body.map-fullscreen #world { position:fixed; inset:0; width:100%; height:100%; height:100dvh; outline:none }
#buildingInfo { top:calc(var(--controls-top) + 104px)!important }
@media(max-width:1199px),(pointer:coarse) {
 #mapIdentity { left:calc(10px + env(safe-area-inset-left)); gap:6px }
 #currentStreet { font-size:12px }
}
#weatherToggle .weather-icon-sun { stroke:#a96d19 }
#weatherToggle :is(.weather-icon-rain,.weather-icon-wind), #weatherToggle[data-weather=cloud] .weather-icon-sun { display:none }
#weatherToggle[data-weather=rain] .weather-icon-rain, #weatherToggle[data-weather=wind] .weather-icon-wind { display:inline }
#weatherToggle:is([data-weather=rain],[data-weather=wind]) .weather-icon-sun { opacity:.4 }
#weatherPanel { padding:10px; color:#244d45 }
.weather-heading { display:flex; justify-content:space-between; align-items:center; gap:12px }
.weather-heading h2 { margin:0; font:600 21px/1.2 Georgia,serif }
#mobileControlsPanel #closeWeather { width:44px; height:44px; min-height:44px; padding:0; border-radius:12px; background:#e9f1e9; color:#244d45; font-size:23px }
#weatherStatus { margin:6px 0 12px; font-weight:600; line-height:1.4 }
#weatherReadings { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin:0 0 10px }
#weatherReadings div { padding:7px 9px; border-radius:8px; background:#edf4ec }
#weatherReadings dt { font-size:11px }
#weatherReadings dd { margin:1px 0 0; font-weight:650 }
#weatherPanel :is(#weatherAttribution,#weatherSourceNote,#weatherAlertStatus,.weather-warning-source,.weather-links,#weatherModeStatus) { margin:6px 0; font-size:12px; line-height:1.4 }
.weather-links { display:flex; flex-wrap:wrap; gap:4px 12px }
#weatherPanel label { display:block; margin:13px 0 5px; padding-top:11px; border-top:1px solid #dce8df; font-weight:650 }
#weatherMode { width:100%; max-width:none; min-height:44px; padding:5px 9px; border:1px solid #bacfc4; border-radius:8px; background:#fffef8; color:inherit; font:inherit }
#weatherModeStatus:empty { display:none }
#viewWeather { width:100%; min-height:44px; margin-top:5px; background:#e3efe8; color:#244d45 }
#weatherNotice { position:fixed; z-index:60; top:calc(16px + env(safe-area-inset-top)); left:50%; transform:translateX(-50%); width:max-content; max-width:calc(100vw - 32px); padding:9px 14px; border:1px solid #c9ded7; border-radius:13px; background:#f7faf5f2; color:#244d45; font-size:13px; line-height:1.35; text-align:center }
#weatherNotice a { display:inline-block; margin-left:6px }
#carIdentity { color:#5a4111; font-size:13px; white-space:nowrap }
#carStory { margin:0; flex-basis:100%; max-width:320px; color:#40564f; font-size:12px; line-height:1.35 }
@media(max-width:1199px),(pointer:coarse) { #weatherNotice { max-width:calc(100vw - 144px) } }
#neighbourChat { position:fixed; z-index:68; left:0; top:0; width:max-content; max-width:min(260px,calc(100vw - 32px)); pointer-events:none }
.neighbour-speech { position:relative; display:grid; grid-template-columns:minmax(0,1fr) 44px; align-items:start; gap:3px 3px; padding:9px 8px 7px 14px; border:1px solid #b8d6c7; border-radius:18px; background:#fffdf4; color:#173d39; box-shadow:0 7px 22px #163b3b38; pointer-events:auto }
.neighbour-speech::after { position:absolute; z-index:-1; bottom:-6px; left:var(--tail-x,50%); width:13px; height:13px; border:solid #b8d6c7; border-width:0 1px 1px 0; border-radius:0 0 3px; background:#fffdf4; transform:translateX(-50%) rotate(45deg); content:"" }
#neighbourMessage { grid-column:1; margin:3px 0 0; color:inherit; font-size:13px; line-height:1.42; overflow-wrap:anywhere }
#neighbourName { display:block; margin-bottom:2px; color:#176154; font-size:12px }
#dismissNeighbour { grid-column:2; width:44px; min-height:44px; margin:-6px -3px 0 0; padding:0; background:transparent; color:#486e63; font-size:22px; line-height:1 }
#neighbourPin { grid-column:1 / -1; justify-self:start; max-width:100%; min-height:44px; margin:-2px 0 -4px -6px; padding:8px 7px; background:transparent; color:#155f56; text-align:left; font-size:12px; font-weight:700 }
#neighbourPin::after { margin-left:6px; content:"↗" }
#neighbourChat button:hover { background:#e5f0e7 }
.npc-conversation { position:fixed; z-index:67; top:0; left:0; width:max-content; max-width:min(174px,calc(100vw - 24px)); box-sizing:border-box; margin:0; padding:7px 10px; border:1px solid #b8d6c7; border-radius:12px; color:#173d39; background:#fffdf4; box-shadow:0 4px 14px #163b3b35; font-size:11px; line-height:1.35; pointer-events:none }
.npc-conversation::after { position:absolute; bottom:-4px; left:var(--tail-x,50%); width:7px; height:7px; border:solid #b8d6c7; border-width:0 1px 1px 0; background:#fffdf4; transform:translateX(-50%) rotate(45deg); content:"" }
@media(prefers-reduced-motion:no-preference) {
 .neighbour-speech { transform-origin:var(--tail-x,50%) 100%; animation:neighbour-appears .18s ease-out both }
 @keyframes neighbour-appears { from { opacity:0; transform:translateY(4px) scale(.96) } to { opacity:1; transform:none } }
}
@media(max-width:680px) {
 .town-home { grid-template-columns:minmax(0,1fr) }
 .town-home > section { grid-area:auto }
 .town-home .town-passport { grid-row:5 }
 .town-history ol { grid-template-columns:1fr }
}
#contributionDialog { width:min(440px,calc(100% - 36px)); box-sizing:border-box; padding:24px; border:0; border-radius:18px; color:#173d39; background:#fffef8 }
#contributionDialog::backdrop { background:#173d3977 }
#contributionForm:not([hidden]) { display:grid; gap:14px; margin-top:16px }
#contributionForm label { display:grid; gap:6px }
#contributionForm label:has([type=checkbox]) { display:flex; align-items:flex-start }
#contributionForm input { max-width:100% }
#contributeBuilding { margin-top:8px }

#contributionAngles { display:grid; gap:10px; overflow-wrap:anywhere }
#contributionAngles select { width:100%; min-height:36px }

#contributionDialog { max-height:calc(100dvh - 36px); overflow-y:auto; overscroll-behavior:contain; box-shadow:0 18px 70px #173d394d }
.contribution-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:16px }
.contribution-heading h2 { margin:0; font:600 23px/1.2 system-ui }
#contributionDialog [role=status] { margin-bottom:0 }
#contributionDialog [role=status]:empty { display:none }

#worldHoverLabel {
 position:fixed; z-index:78; pointer-events:none; max-width:min(250px,calc(100vw - 24px));
 padding:6px 10px; border:1px solid #aef0df; border-radius:12px;
 background:#113d3bf2; color:#fffdf0; box-shadow:0 0 12px #a7f7da52,0 4px 14px #163b3b30;
 font-weight:650; font-size:12px; overflow-wrap:anywhere;
}
#worldHoverLabel.is-categorised {
 border-color:color-mix(in srgb,var(--hover-category) 62%,white);
 background:color-mix(in srgb,var(--hover-category) 53%,#0d2528);
 box-shadow:0 0 13px color-mix(in srgb,var(--hover-category) 62%,transparent),0 4px 14px #163b3b30;
}
@media (hover:hover) {
 :is(button:not(:disabled),a[href]):hover { filter:drop-shadow(0 0 5px #68dcc58a) }
}
#destinationPin {
 position:fixed; z-index:77; inset:0 auto auto 0; width:50px; height:50px; padding:0;
 background:none; border:0; box-shadow:none; cursor:pointer; pointer-events:none;
}
#destinationPin svg {
 display:block; width:100%; height:100%; overflow:visible; color:#fffdfa; stroke:currentColor; stroke-width:1.6;
 stroke-linecap:round; filter:drop-shadow(0 4px 5px #102c41b8);
 animation:destination-bob 2s ease-in-out infinite;
}
#destinationPin .pin-shape { fill:#086a69 }
#destinationPin .pin-centre { fill:#c5fae9; stroke:#fffdfa }
#destinationPin .pin-cross { display:none }
#destinationPin[data-travelling="true"] { pointer-events:auto }
#destinationPin[data-travelling="true"] .pin-shape { fill:#6033a1 }
#destinationPin[data-travelling="true"] .pin-centre { display:none }
#destinationPin[data-travelling="true"] .pin-cross { display:block }
#destinationPin:focus-visible svg { filter:drop-shadow(0 0 4px #fff) drop-shadow(0 0 6px #5132a7) }
@keyframes destination-bob {
 0%,100% { transform:translateY(0) }
 50% { transform:translateY(-7px) }
}
@media(prefers-reduced-motion:reduce){#destinationPin svg { animation:none }}
body.riding-car #destinationPin { visibility:hidden }
#walkAction {
 position:fixed; z-index:77; top:0; left:0;
 text-align:center; width:max-content; max-width:min(190px,calc(100vw - 24px));
}
#walkAction.pin-off-map {visibility:hidden;pointer-events:none}
#walkAction button {
 min-height:44px; padding:8px 13px; border:1px solid #fffff1; border-radius:24px; font-size:12px;
 background:linear-gradient(150deg,#faffef,#e0f0e6); color:#146863; box-shadow:0 4px 15px #173d3940;
}
#pinMessage {
 margin:5px 0 0; padding:6px 9px; border:1px solid #d5e9dc; border-radius:9px;
 background:#fffff3ee; font-size:12px; color:#244d45;
}
#pinMessage:empty { display:none }
#walkAction:not(.has-error) #pinMessage {
 position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);
 padding:0;margin:0;border:0;white-space:nowrap;
}
#walkAction #contributeFromPin { margin-top:6px }
#contributeFromPin[hidden] { display:none }
#walkAction:has(#contributeFromPin:not([hidden])) { z-index:85; display:grid; justify-items:center }

.contribution-photo { display:grid; grid-template-columns:88px minmax(0,1fr); align-items:center; gap:12px; padding:8px; background:#edf2eb; border-radius:12px }
.contribution-photo img,.contribution-preview-fallback { width:88px; height:72px; object-fit:contain; border-radius:8px; background:#dbe7df }
.contribution-preview-fallback { display:grid; place-items:center; text-align:center; font-size:11px }

#pedestrianSignal { position:fixed; z-index:88; top:auto; left:auto; right:12px; bottom:calc(84px + env(safe-area-inset-bottom)); padding:10px; }
#pedestrianSignal p { margin:6px 0 0; }
#pedestrianSignal p:empty { display:none; }
#pedestrianSignal button { min-height:44px; }

#kellyFamilyChat {
 position:fixed; left:0; top:0; z-index:81; width:max-content; max-width:min(235px,calc(100vw - 22px));
 padding:8px 12px; border:1px solid #d6ebdc; border-radius:13px;
 background:#fffdf2f7; color:#173f3d; box-shadow:0 4px 14px #173f3d39;
 line-height:1.35; font-size:12px; white-space:normal; pointer-events:none;
}
#kellyFamilyChat strong {display:block;color:#14625b;margin-bottom:2px}
#kellyFamilyChat::after {
 content:""; position:absolute; left:var(--tail,50%); bottom:-8px;
 width:0; height:0; border:4px solid transparent; border-top-color:#fffdf2f7;
}

/* Town passport */
.town-home .town-culture-link {
 min-height:44px;margin-top:5px;padding:0 8px;background:transparent;color:#165b54;
 font-weight:700;text-underline-offset:3px;text-decoration:underline;
}
#reputationDialog {
 width:min(590px,calc(100vw - 24px));
 max-height:calc(100dvh - 30px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
 box-sizing:border-box;padding:0;border:1px solid #b9d9cd;border-radius:22px;
 background:#f5faf2;color:#173d39;box-shadow:0 12px 38px #173d3960;
 overscroll-behavior:contain;
}
#reputationDialog::backdrop {background:#132e3199}
#reputationDialog header {
 display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:1;
 padding:12px 16px;background:linear-gradient(145deg,#fffdee,#def0e5);border-bottom:1px solid #c7ded1;
}
#reputationDialog h2 {margin:0;font:600 25px/1.2 Georgia,serif}
#reputationDialog h3 {margin:0 0 6px;font:600 18px/1.2 Georgia,serif}
#reputationDialog p {line-height:1.47}
#reputationOwner {margin:3px 0 0;font-size:12px}
#reputationDialog a {color:#155e55;text-underline-offset:3px}
#reputationDialog button {
 min-height:44px;padding:7px 12px;border:1px solid #accfc1;border-radius:10px;
 background:#fffef5;color:#194841;font-weight:650;
}
#reputationDialog header button {width:44px;padding:0;font-size:23px}
#reputationDialog button:hover:not(:disabled) {background:#e5f2e9}
#reputationDialog :is(a,button,summary):focus-visible {outline:2px solid #007a79;outline-offset:2px}
#reputationDialog button[aria-pressed=true] {background:#daf0e5;border-color:#368579}
#reputationDialog button:disabled {opacity:.62}
.reputation-content {padding:14px 16px 18px}
.passport-views {
 display:grid;grid-template-columns:1fr 1fr 1.4fr .72fr;gap:6px;margin:0;padding:8px 16px 0;
}
#reputationDialog .passport-views button { padding-inline:4px }
@media (max-width:420px) { #reputationDialog .passport-views button { font-size:.78rem } }
#nearbyTree {grid-column:2;grid-row:3;justify-self:start;pointer-events:auto;font-size:.75rem;background:#285346;color:white;padding:7px 10px}
#nearbyTree[hidden],#mapIdentity:has(#mapbox:not([hidden])) #nearbyTree {display:none}
.tree-species details {background:#fff;border:1px solid #dce7db;border-radius:9px;padding:8px 11px;margin:6px 0}
.tree-species summary {font-weight:650;cursor:pointer}
.tree-workshop {margin-top:14px;padding-top:10px;border-top:1px solid #d6e1d8}
.tree-workshop button {margin:4px 4px 1px 0}
#reputationDialog [hidden] {display:none!important}
.passport-living .living-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:10px 0 }
.living-summary div { padding:10px; border-radius:9px; background:#deece1 }
.living-summary dt { font-size:.73rem; color:#2f5448 }
.living-summary dd { margin:3px 0 0; font-weight:700; line-height:1.15 }
.living-card { margin:11px 0; padding:12px; border:1px solid #d7e5da; border-radius:12px; background:#fff }
.living-card p { margin:7px 0; line-height:1.35 }
.living-hint { color:#36594d; font-size:.82rem }
.living-hint:empty,#livingFeedback:empty { margin:0 }
.living-needs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 14px; margin-top:9px }
.living-needs label { display:grid; gap:2px; font-size:.84rem }
.living-needs label span { display:flex; justify-content:space-between; gap:4px }
.living-needs meter { width:100%; height:9px; accent-color:#317152 }
#bunburyBirdGuide {padding-top:12px}
.bird-guide-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
#birdGuideSummary,#birdGuideFeedback {color:#42615a;font-size:13px;margin:2px 0 8px}
#birdGuideFeedback:empty {display:none}
#birdGuideCount {flex:none;font-size:12px;font-weight:700;color:#2e5d53;padding:4px 0}
#birdGuideProgress {width:100%;height:9px;accent-color:#3b816b;display:block;margin:0 0 11px}
#birdGuideStages,#birdGuideList {display:grid;gap:6px}
#birdGuideStages {grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:9px}
#reputationDialog #birdGuideStages button {padding:5px 4px;font-size:11px;line-height:1.2}
#birdGuideList {grid-template-columns:repeat(6,minmax(0,1fr));margin-bottom:10px}
#reputationDialog #birdGuideList button {
 display:grid;grid-template-rows:auto 1fr auto;align-items:start;
 min-width:0;padding:3px 3px 6px;gap:3px;text-align:center;font-size:11px;line-height:1.2;
}
#birdGuideList img,#birdGuidePortrait {
 display:block;width:100%;height:auto;aspect-ratio:3/2;
 object-fit:contain;border-radius:7px;background:radial-gradient(ellipse at 53% 32%,#f7f7dc,#d7e7da 72%,#c3dacd);
}
#birdGuideList small {display:block;color:#4b625a;font-size:10px}
#birdGuideList [data-state=collected] small,#birdGuideList [data-state=ready] small {color:#175545;font-weight:700}
#birdGuideDetail {
 display:grid;grid-template-columns:38% 1fr;align-items:start;gap:12px;padding:9px;
 border:1px solid #cbdfd1;border-radius:12px;background:#fffef4;
}
#birdGuideDetail h3 {margin-bottom:4px}
#birdGuideStatus,#birdGuideMeasurements {font-size:12px;color:#46625a;margin:3px 0}
#birdGuideFact {font-size:13px;margin:7px 0}
.bird-guide-actions {display:flex;flex-wrap:wrap;align-items:center;gap:5px 10px;font-size:12px}
#reputationDialog #birdGuideClaim {padding:6px 9px;font-size:12px}
@media(max-width:480px){
 #birdGuideList {grid-template-columns:repeat(3,minmax(0,1fr))}
 #birdGuideList img {max-height:52px}
 #birdGuideDetail {grid-template-columns:minmax(99px,33%) 1fr;gap:8px}
 .reputation-content,.passport-views {padding-left:11px;padding-right:11px}
}

.culture-acknowledgement,.culture-mayor {
 padding:12px 13px;border:1px solid #c4dece;border-radius:13px;
 background:#fffdf3;font-size:13px;
}
.culture-acknowledgement p,.culture-mayor p {margin:0}
.culture-acknowledgement a {display:inline-block;margin-top:6px}
.culture-actions {display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 6px}
#optOutCost {color:#4c6256;font-size:12px}
.culture-mayor {margin:10px 0}
#mayorCultureRequirement[data-met=true] {color:#166454;font-weight:700}
#reputationFeedback {margin:8px 0;min-height:1.47em;font-size:13px;font-weight:650}
#cultureLessons {display:grid;gap:7px}
#cultureLessons details {border:1px solid #c4dece;border-radius:12px;background:#fffef7}
#cultureLessons summary {min-height:44px;padding:8px 11px;cursor:pointer}
#cultureLessons summary small {display:block;padding-inline-start:14px;margin-top:2px;color:#466f61}
.culture-lesson-content {padding:0 12px 11px;font-size:13px}
.culture-lesson-content p {margin:5px 0}
.culture-lesson-content .culture-question {margin-top:12px;font-weight:700}
.culture-answers {display:grid;gap:5px}
#cultureLessons button {text-align:left}
.culture-answer-feedback {color:#7b442c;font-weight:650}
.culture-answer-feedback:empty {display:none}
