/* The control dock is outside the scrolling artwork. */
[data-town="north"] { --town-header: #152453; --town-edge: #688ed0; --town-ink: #edf7ff; }
[data-town="quebec"] { --town-header: #e2f1ff; --town-edge: #9ebfda; --town-ink: #223d55; }
[data-town="london"] { --town-header: #153f51; --town-edge: #52848f; --town-ink: #fff3dc; }
[data-town="kyoto"] { --town-header: #ffe5eb; --town-edge: #d9a3b7; --town-ink: #6a304b; }
[data-town="andes"] { --town-header: #41335e; --town-edge: #8978b0; --town-ink: #fff1db; }
[data-town="cape"] { --town-header: #623727; --town-edge: #d69453; --town-ink: #fff2d4; }
[data-town="harbour"] { --town-header: #32574d; --town-edge: #82ac96; --town-ink: #fff4d9; }
[data-town="antarctica"] { --town-header: #1e3254; --town-edge: #638ab4; --town-ink: #d8f8ff; }
body[data-town] .topbar {
  background: var(--town-header);
  border-bottom-color: var(--town-edge);
  color: var(--town-ink);
}
body[data-town] .topbar nav a:hover { color: inherit; text-decoration: underline; }
body[data-town] main { min-height: 0; }
.north-village, .regional-town {
  --panorama-height: calc(100dvh - var(--site-header-height));
  --village-control-size: clamp(44px, 5vw, 62px);
  --village-inset: clamp(10px, 1.7vw, 20px);
}
.north-scroll {
  background: radial-gradient(ellipse at 50% 80%, #667bb8, #152453 75%);
}
.village-controls {
  position: absolute;
  z-index: 8;
  right: max(var(--village-inset), env(safe-area-inset-right));
  bottom: max(var(--village-inset), env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(4px, 1vw, 10px);
  max-width: calc(100% - 2 * var(--village-inset));
}
.village-controls .kyoto-controls {
  position: static;
  display: contents;
}
.village-controls button {
  position: static;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: var(--village-control-size);
  height: var(--village-control-size);
  padding: 0;
  border: 1px solid #f6eddbbd;
  border-radius: 35%;
  background: linear-gradient(145deg, #fffffc, #ddedfc 62%, #a9bcde);
  box-shadow: inset 0 2px 2px #fff, inset 0 -3px #4b699750, 0 3px 0 #213851c9, 0 5px 10px #0b173e60;
  transition: transform .15s ease, filter .15s ease;
}
.village-controls button:hover { filter: brightness(1.08); transform: translateY(-2px); }
.village-controls button:active { transform: translateY(2px); }
.village-controls button[aria-pressed="true"] {
  background: linear-gradient(145deg, #e0fbff, #a5d6f4 62%, #82add6);
  box-shadow: inset 0 2px 2px #fff, inset 0 -3px #4b699750, 0 3px 0 #213851c9, 0 5px 10px #0b173e60, 0 0 0 2px #a8f1ffbc;
}
.village-controls button .village-icon,
.village-controls .town-snow-toggle[aria-pressed="true"] .village-icon {
  width: 79%;
  height: 79%;
  border: 0;
  background: var(--village-icon) center / contain no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 2px 1px #21344f61);
}
.village-icon-snow { --village-icon: url("village-icons/snow.png"); }
.village-icon-santa { --village-icon: url("village-icons/santa.png"); }
.village-icon-bell { --village-icon: url("village-icons/bell.png"); }
.village-icon-blossom { --village-icon: url("village-icons/blossom.png"); }
.village-icon-ninja { --village-icon: url("village-icons/ninja.png"); }
.village-icon-paw { --village-icon: url("village-icons/paw.png"); }
.village-icon-robin { --village-icon: url("village-icons/robin.png"); }
.regional-town-entrance, .town-office, .north-post-office {
  cursor: url("village-icons/hand.png") 13 4, pointer;
}
@media (max-width: 380px) {
  .north-mobile-hint { bottom: calc(var(--village-inset) + var(--village-control-size) + 10px); }
  .north-message { bottom: calc(var(--village-inset) + var(--village-control-size) + 36px); }
}
@media (prefers-reduced-motion: reduce) {
  .village-controls button, .north-lever { transition: none; }
  .north-bell-button.north-play .village-icon { animation: none; }
}
