:root {
  color-scheme: dark;
  --ink: #f7fbff;
  --muted: #aebad1;
  --panel: rgba(7, 10, 21, 0.86);
  --panel-strong: rgba(9, 13, 29, 0.96);
  --cyan: #37d8ff;
  --gold: #ffd34d;
  --rose: #ff5d8f;
  --green: #57f28a;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow: auto;
  background: #05070d;
  color: var(--ink);
}

button,
input,
a {
  font: inherit;
}

a {
  color: inherit;
}

body.admin-page {
  overflow: auto;
}

.app-shell {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  overflow: visible;
  background:
    radial-gradient(circle at 50% 16%, rgba(84, 192, 255, 0.26), transparent 34%),
    linear-gradient(180deg, #080b16, #02030a);
}

.onboarding {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 34px);
  background:
    radial-gradient(circle at 50% 44%, rgba(55, 216, 255, 0.22), transparent 32%),
    rgba(3, 5, 13, 0.58);
  backdrop-filter: blur(4px);
}

.onboarding[hidden] {
  display: none;
}

.onboarding-panel {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(610px, 1fr);
  column-gap: clamp(28px, 4vw, 62px);
  row-gap: 16px;
  align-items: start;
  justify-items: center;
  width: min(1220px, 100%);
  max-height: calc(100dvh - clamp(36px, 6vw, 68px));
  padding: 0;
  overflow-y: auto;
  text-align: left;
}

.onboarding-copy {
  grid-column: 1;
  display: grid;
  justify-items: start;
  align-content: start;
  width: 100%;
  padding-top: clamp(2px, 2vw, 28px);
}

.onboarding-copy img {
  width: clamp(76px, 8vw, 116px);
  height: clamp(76px, 8vw, 116px);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 34px rgba(55, 216, 255, 0.24);
}

.onboarding-kicker {
  margin: clamp(10px, 1.6vw, 18px) 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.onboarding-panel h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5.6vw, 5.25rem);
  line-height: 0.95;
}

.onboarding-lede {
  max-width: 34ch;
  margin: 14px 0 20px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}

.onboarding-notes {
  display: grid;
  gap: 10px;
  width: min(100%, 380px);
  margin-top: 2px;
}

.onboarding-notes span {
  display: block;
  border-left: 2px solid rgba(255, 211, 77, 0.7);
  padding: 2px 0 2px 12px;
  color: rgba(229, 237, 255, 0.82);
  font-size: 0.84rem;
  font-weight: 760;
  line-height: 1.28;
}

.onboarding-notes strong {
  display: block;
  margin-bottom: 2px;
  color: white;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.onboarding-panel button,
.onboarding-admin-link,
.admin-view-town,
.admin-signout,
.admin-signin-form button,
.admin-location {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #2bd7ff, #8f68ff 62%, #ff5d8f);
  color: white;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.onboarding-panel button {
  min-width: 180px;
  padding: 0 22px;
}

.onboarding-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: min(100%, 360px);
  margin-top: 0;
  align-self: start;
}

.onboarding-admin-link {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(255, 255, 255, 0.1);
}

.town-stage {
  position: relative;
  --map-border-size: clamp(5px, 0.75vw, 10px);
  --public-map-zoom: 1.36;
  --public-map-aspect: 1.77778;
  --public-map-fit-width: min(calc(100vw - 2px), calc((100dvh - 2px) * var(--public-map-aspect)));
  width: 100%;
  height: auto;
  min-height: auto;
  padding: var(--map-border-size);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(135deg, #eef9ff, #1d6b7c 46%, #ffe18a);
  box-shadow:
    inset 0 0 0 var(--map-border-size) rgba(255, 255, 255, 0.42),
    inset 0 0 0 calc(var(--map-border-size) + 2px) rgba(14, 42, 44, 0.36);
  isolation: isolate;
  overflow: visible;
  cursor: none;
}

.town-stage button,
.town-stage a {
  cursor: none;
}

.town-stage .signal-guide,
.town-stage .signal-guide *,
.town-stage .map-zoom-controls,
.town-stage .map-zoom-controls *,
.town-stage .sales-guide-panel,
.town-stage .sales-guide-panel * {
  cursor: auto;
}

.town-stage .signal-guide button,
.town-stage .signal-guide a,
.town-stage .map-zoom-controls button,
.town-stage .sales-guide-panel button {
  cursor: pointer;
}

body.admin-page,
body.admin-page *,
.admin-panel,
.admin-panel *,
.admin-workspace,
.admin-workspace * {
  cursor: auto;
}

.town-stage::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(2, 3, 10, 0.05), rgba(2, 3, 10, 0.18)),
    radial-gradient(circle at 50% 48%, transparent 42%, rgba(1, 2, 7, 0.44) 100%);
}

.map-content {
  position: relative;
  width: 100%;
  height: auto;
  background: transparent;
  overflow: visible;
}

body[data-page="town"] .map-content {
  opacity: 1;
}

body[data-page="town"]:not(.worldbuilder-ready) .map-content > button,
body[data-page="town"]:not(.worldbuilder-ready) .world-builder-public-layer {
  opacity: 0;
  pointer-events: none;
}

body[data-page="town"].worldbuilder-ready .map-content > button,
body[data-page="town"].worldbuilder-ready .world-builder-public-layer {
  opacity: 1;
  transition: opacity 180ms ease;
}

.town-map {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: saturate(1.16) contrast(1.03);
}

.town-map.is-builder-framed {
  position: absolute;
  display: block;
  max-width: none;
}

@media (min-width: 761px) {
  body:not(.admin-page) .app-shell {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }

  body:not(.admin-page) .town-stage {
    width: var(--public-map-width-desktop, var(--public-map-fit-width));
    max-width: none;
    margin: 0 auto;
  }
}

.map-zoom-controls {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background:
    transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.map-zoom-controls button {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.82rem;
  font-weight: 950;
  cursor: pointer;
}

.map-zoom-controls [data-map-zoom-reset] {
  min-width: 48px;
  padding: 0 8px;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.map-zoom-controls button:hover,
.map-zoom-controls button:focus-visible {
  border-color: rgba(55, 216, 255, 0.72);
  background: rgba(55, 216, 255, 0.16);
  outline: 0;
}

body.admin-page .map-zoom-controls {
  display: none;
}

.map-hotspot.is-hotspot-hidden,
.studio-hotspot.is-hotspot-hidden,
.portal.is-hotspot-hidden {
  display: none;
}

.car-cursor {
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 110px;
  height: 56px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-80px, -80px, 0);
  transform-origin: 0 0;
  transition: opacity 90ms ease;
  will-change: transform;
  contain: layout paint;
  backface-visibility: hidden;
  filter: drop-shadow(0 10px 9px rgba(0, 0, 0, 0.34));
}

.car-cursor.is-visible {
  opacity: 1;
}

.car-body {
  position: absolute;
  inset: 0;
  overflow: visible;
  transform-origin: 50% 50%;
}

.car-cursor.is-facing-right .car-body {
  transform: scaleX(-1);
}

.car-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    saturate(1.18)
    contrast(1.08)
    brightness(1.1);
}

.car-shimmer {
  position: absolute;
  inset: 5% 4% 13%;
  border-radius: 44% 56% 45% 42%;
  background:
    linear-gradient(105deg, transparent 8%, rgba(255, 255, 255, 0.02) 22%, rgba(255, 255, 255, 0.78) 35%, rgba(255, 148, 255, 0.32) 43%, transparent 58%),
    radial-gradient(circle at 27% 64%, rgba(255, 255, 255, 0.72) 0 3%, transparent 5%),
    radial-gradient(circle at 68% 26%, rgba(255, 255, 255, 0.72) 0 3%, transparent 5%);
  mix-blend-mode: screen;
  opacity: 0.66;
  pointer-events: none;
  transform: translateX(-46%);
  animation: carShimmer 1.9s ease-in-out infinite;
}

.car-spark {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: white;
  box-shadow:
    0 0 7px rgba(255, 255, 255, 0.95),
    0 0 13px rgba(255, 93, 255, 0.8),
    0 0 18px rgba(255, 211, 77, 0.55);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.4);
  animation: carSparkle 1.55s ease-in-out infinite;
}

.car-spark::before,
.car-spark::after {
  position: absolute;
  inset: -5px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  content: "";
}

.car-spark::after {
  transform: rotate(90deg);
}

.car-spark-one {
  top: 21%;
  left: 47%;
}

.car-spark-two {
  right: 14%;
  bottom: 25%;
  animation-delay: 0.42s;
}

.car-spark-three {
  bottom: 14%;
  left: 36%;
  animation-delay: 0.86s;
}

.car-cursor[data-transport="helicopter"] {
  filter:
    drop-shadow(0 15px 13px rgba(0, 0, 0, 0.4))
    drop-shadow(0 0 16px rgba(255, 213, 76, 0.34))
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.18));
}

.car-cursor[data-transport="helicopter"] .car-shimmer {
  inset: 3% 3% 55%;
  border-radius: 999px;
  background:
    linear-gradient(100deg, transparent 2%, rgba(255, 255, 255, 0.72) 34%, rgba(255, 219, 92, 0.36) 50%, transparent 76%);
  opacity: 0.44;
}

.car-cursor[data-transport="helicopter"] .car-spark-one {
  top: 7%;
  left: 17%;
}

.car-cursor[data-transport="helicopter"] .car-spark-two {
  right: 7%;
  bottom: 38%;
}

.car-cursor[data-transport="helicopter"] .car-spark-three {
  bottom: 15%;
  left: 50%;
}

.car-cursor[data-transport="plane"],
.car-cursor[data-transport="bird"],
.car-cursor[data-transport="ufo"],
.car-cursor[data-transport="pig"] {
  filter:
    drop-shadow(0 14px 12px rgba(0, 0, 0, 0.4))
    drop-shadow(0 0 16px rgba(255, 213, 76, 0.24))
    drop-shadow(0 0 18px rgba(55, 216, 255, 0.2));
}

.car-cursor[data-transport="plane"] .car-shimmer,
.car-cursor[data-transport="bird"] .car-shimmer,
.car-cursor[data-transport="ufo"] .car-shimmer,
.car-cursor[data-transport="pig"] .car-shimmer {
  display: none;
}

.car-cursor[data-transport="bird"] .car-image,
.car-cursor[data-transport="pig"] .car-image {
  animation: wingFlap 520ms ease-in-out infinite;
  transform-origin: 46% 58%;
}

.transport-option[data-transport="bird"] img,
.transport-option[data-transport="pig"] img {
  animation: wingFlapPreview 900ms ease-in-out infinite;
  transform-origin: 46% 58%;
}

.transport-picker {
  width: min(100%, 1180px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 42%),
    rgba(5, 10, 18, 0.76);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: white;
  backdrop-filter: blur(12px);
}

.transport-picker p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.66rem, 0.8vw, 0.76rem);
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.transport-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.transport-option {
  display: grid;
  grid-template-rows: 116px auto;
  gap: 14px;
  align-items: center;
  justify-items: center;
  min-width: 0;
  min-height: 178px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent),
    rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.transport-option img {
  display: block;
  width: 100%;
  height: 116px;
  object-fit: contain;
  filter: drop-shadow(0 7px 8px rgba(0, 0, 0, 0.34));
}

.transport-option span {
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(0.92rem, 1.05vw, 1.18rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transport-option:hover,
.transport-option:focus-visible,
.transport-option.is-active {
  border-color: rgba(255, 221, 98, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 239, 164, 0.2), transparent 54%),
    rgba(41, 29, 5, 0.72);
  box-shadow:
    0 0 0 1px rgba(255, 221, 98, 0.24),
    0 0 22px rgba(255, 213, 76, 0.18);
  color: white;
}

.transport-option:hover,
.transport-option:focus-visible {
  outline: 0;
  transform: translateY(-1px);
}

.onboarding-transport {
  position: static;
  grid-column: 2;
  grid-row: 1 / span 2;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: white;
  backdrop-filter: none;
}

.onboarding-transport .transport-option {
  min-width: 0;
  background: rgba(255, 255, 255, 0.09);
}

.onboarding-transport .transport-options {
  gap: clamp(14px, 1.6vw, 22px);
}

.onboarding-transport .onboarding-actions {
  width: min(100%, 560px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: clamp(14px, 1.7vw, 22px) auto 0;
}

.vehicle-switcher {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 5, 13, 0.46);
  backdrop-filter: blur(3px);
}

.vehicle-switcher[hidden] {
  display: none;
}

.vehicle-switcher-panel {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(1040px, 100%);
  padding: 24px 24px 26px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 46%),
    rgba(7, 10, 21, 0.94);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 36px rgba(255, 211, 77, 0.12);
  text-align: center;
}

.vehicle-switcher-panel h2 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  line-height: 0.95;
}

.vehicle-switcher-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.vehicle-switcher-close:hover,
.vehicle-switcher-close:focus-visible {
  border-color: rgba(255, 221, 98, 0.9);
  outline: 0;
}

.brand-bar {
  position: absolute;
  z-index: 4;
  top: clamp(14px, 2.2vw, 28px);
  left: clamp(14px, 2.2vw, 28px);
  display: flex;
  align-items: center;
  gap: 12px;
  width: clamp(86px, 9vw, 136px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.brand-bar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.town-banner {
  position: absolute;
  z-index: 4;
  top: clamp(16px, 3vw, 34px);
  left: 50%;
  min-width: min(420px, 62vw);
  padding: 12px 22px 14px;
  border: 3px solid #5b3719;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 233, 158, 0.96), rgba(229, 151, 63, 0.96)),
    #e7a24b;
  box-shadow:
    0 4px 0 #35200e,
    0 14px 34px rgba(0, 0, 0, 0.32);
  color: #3b210d;
  font-size: clamp(1rem, 2.1vw, 1.8rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.46);
  transform: translateX(-50%) rotate(-1deg);
}

.town-banner::before,
.town-banner::after {
  position: absolute;
  top: 100%;
  width: 9px;
  height: 20px;
  border-radius: 0 0 4px 4px;
  background: #5b3719;
  content: "";
}

.town-banner::before {
  left: 28px;
}

.town-banner::after {
  right: 28px;
}

.admin-entry-link {
  position: fixed;
  z-index: 12;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(43, 215, 255, 0.96), rgba(143, 104, 255, 0.96) 58%, rgba(255, 93, 143, 0.96));
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(55, 216, 255, 0.22);
  color: white;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.admin-entry-link:hover,
.admin-entry-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.76);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(55, 216, 255, 0.34),
    0 0 28px rgba(255, 93, 143, 0.24);
  outline: 0;
  transform: translateY(-1px);
}

body:not(.is-onboarding) .admin-entry-link {
  display: none;
}

.portal {
  position: absolute;
  z-index: 520;
  display: grid;
  place-items: center;
  width: clamp(34px, 3.25vw, 46px);
  height: clamp(34px, 3.25vw, 46px);
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, filter 180ms ease;
}

.map-content > button {
  z-index: 520;
}

.portal:hover,
.portal:focus-visible {
  transform: translate(-50%, -50%) scale(1.08);
  filter: drop-shadow(0 0 24px rgba(55, 216, 255, 0.7));
  outline: none;
}

.portal-ring {
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.2) 0 26%, transparent 27%),
    conic-gradient(from 30deg, var(--cyan), var(--gold), var(--rose), var(--green), var(--cyan));
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.62) inset,
    0 0 10px rgba(55, 216, 255, 0.72),
    0 0 20px rgba(255, 211, 77, 0.28);
  opacity: 0.82;
  pointer-events: none;
  animation: pulse 1.9s ease-in-out infinite;
}

.portal-ring::after {
  position: absolute;
  inset: 17%;
  border-radius: inherit;
  content: "";
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.72), transparent 10%),
    radial-gradient(circle, rgba(12, 24, 54, 0.88), rgba(45, 16, 95, 0.66) 64%, transparent 65%);
}

.portal-label {
  position: absolute;
  bottom: -24px;
  max-width: 128px;
  min-height: 21px;
  padding: 5px 9px 6px;
  border: 1px solid rgba(255, 245, 181, 0.9);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(7, 10, 21, 0.94), rgba(32, 18, 69, 0.94));
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.72),
    0 0 14px rgba(55, 216, 255, 0.28),
    0 0 13px rgba(255, 211, 77, 0.18) inset;
  color: white;
  font-size: clamp(0.55rem, 0.62vw, 0.68rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.03em;
  pointer-events: none;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-2deg);
}

.portal-police {
  top: 13.4%;
  left: 52%;
}

.portal-coffee {
  top: 27.1%;
  left: 33.4%;
}

.portal-restaurant {
  top: 33.5%;
  left: 46.5%;
}

.map-hotspot {
  position: absolute;
  z-index: 520;
  display: grid;
  place-items: center;
  width: clamp(42px, 4.1vw, 68px);
  height: clamp(42px, 4.1vw, 68px);
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, filter 180ms ease;
}

.map-hotspot:hover,
.map-hotspot:focus-visible {
  filter:
    drop-shadow(0 0 22px rgba(255, 211, 77, 0.58))
    drop-shadow(0 0 18px rgba(55, 216, 255, 0.48));
  outline: none;
  transform: translate(-50%, -50%) scale(1.07);
}

.map-hotspot-ring {
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.2) 0 26%, transparent 27%),
    conic-gradient(from 30deg, var(--gold), var(--green), var(--cyan), var(--rose), var(--gold));
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.56) inset,
    0 0 10px rgba(255, 211, 77, 0.66),
    0 0 18px rgba(55, 216, 255, 0.24);
  opacity: 0.8;
  animation: pulse 1.9s ease-in-out infinite;
}

.map-hotspot-ring::after {
  position: absolute;
  inset: 17%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.72), transparent 10%),
    radial-gradient(circle, rgba(12, 24, 54, 0.88), rgba(60, 41, 9, 0.66) 64%, transparent 65%);
  content: "";
}

.map-hotspot-label {
  position: absolute;
  bottom: -22px;
  max-width: 138px;
  min-height: 21px;
  padding: 5px 9px 6px;
  border: 1px solid rgba(255, 245, 181, 0.9);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent 42%),
    linear-gradient(135deg, rgba(7, 10, 21, 0.94), rgba(26, 46, 73, 0.94));
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.72),
    0 0 14px rgba(55, 216, 255, 0.28),
    0 0 13px rgba(255, 211, 77, 0.16) inset;
  color: white;
  font-size: clamp(0.55rem, 0.62vw, 0.68rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-2deg);
}

.portal-label::before,
.map-hotspot-label::before,
.studio-hotspot-label::before {
  position: absolute;
  inset: 2px;
  border-radius: 4px;
  border: 1px solid rgba(55, 216, 255, 0.16);
  content: "";
  pointer-events: none;
}

.map-hotspot-dgnn {
  top: 13.8%;
  left: 67.5%;
  width: clamp(62px, 6vw, 98px);
  height: clamp(50px, 4.8vw, 78px);
}

.map-hotspot-dgtl {
  top: 13.1%;
  left: 39.3%;
  width: clamp(64px, 6.2vw, 102px);
  height: clamp(50px, 4.8vw, 78px);
}

.map-hotspot-publishing {
  top: 34%;
  left: 72%;
  width: clamp(66px, 6.4vw, 106px);
  height: clamp(50px, 4.8vw, 78px);
}

.map-hotspot-sound {
  top: 65.4%;
  left: 37.7%;
  width: clamp(62px, 6vw, 100px);
  height: clamp(48px, 4.7vw, 76px);
}

.map-hotspot-store {
  top: 75.6%;
  left: 51%;
  width: clamp(66px, 6.4vw, 106px);
  height: clamp(50px, 4.8vw, 78px);
}

.map-hotspot-realestate {
  top: 59.5%;
  left: 70.4%;
  width: clamp(62px, 6vw, 98px);
  height: clamp(48px, 4.7vw, 76px);
}

.map-hotspot-realestate .map-hotspot-label {
  bottom: auto;
  top: -22px;
}

.map-hotspot-club {
  top: 35.3%;
  left: 86.8%;
  width: clamp(62px, 6vw, 98px);
  height: clamp(48px, 4.7vw, 76px);
}

.map-hotspot-garden {
  top: 75.8%;
  left: 8.6%;
  width: clamp(62px, 6vw, 100px);
  height: clamp(46px, 4.5vw, 72px);
}

.map-hotspot-vehicle-depot {
  top: 52.4%;
  left: 30%;
  width: clamp(66px, 6.4vw, 106px);
  height: clamp(50px, 4.8vw, 78px);
}

.map-hotspot-custom {
  width: clamp(58px, 5.8vw, 96px);
  height: clamp(46px, 4.6vw, 74px);
}

.studio-hotspot {
  position: absolute;
  z-index: 520;
  top: 47.8%;
  left: 45.6%;
  width: clamp(64px, 6.3vw, 102px);
  height: clamp(48px, 4.8vw, 78px);
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: filter 180ms ease, transform 180ms ease;
}

.studio-hotspot::before {
  position: absolute;
  inset: 9% 2% 4%;
  border: 3px solid rgba(255, 108, 255, 0);
  border-radius: 16px 16px 9px 9px;
  background:
    radial-gradient(circle at 38% 34%, rgba(255, 108, 255, 0.22), transparent 40%),
    radial-gradient(circle at 64% 66%, rgba(55, 216, 255, 0.18), transparent 46%);
  box-shadow:
    0 0 0 rgba(255, 108, 255, 0),
    0 0 0 rgba(55, 216, 255, 0);
  content: "";
  opacity: 0;
  transition: opacity 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.studio-hotspot:hover,
.studio-hotspot:focus-visible {
  filter:
    drop-shadow(0 0 20px rgba(255, 108, 255, 0.62))
    drop-shadow(0 0 18px rgba(55, 216, 255, 0.56));
  outline: none;
  transform: translate(-50%, -50%) scale(1.03);
}

.studio-hotspot:hover::before,
.studio-hotspot:focus-visible::before {
  border-color: rgba(255, 108, 255, 0.66);
  box-shadow:
    0 0 22px rgba(255, 108, 255, 0.48),
    0 0 28px rgba(55, 216, 255, 0.28) inset;
  opacity: 1;
}

.studio-hotspot-pulse {
  position: absolute;
  bottom: 22%;
  left: 50%;
  width: clamp(18px, 1.9vw, 28px);
  height: clamp(18px, 1.9vw, 28px);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.22) 0 26%, transparent 27%),
    conic-gradient(from 30deg, var(--rose), var(--cyan), var(--gold), var(--green), var(--rose));
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.48) inset,
    0 0 14px rgba(255, 108, 255, 0.68),
    0 0 24px rgba(55, 216, 255, 0.4);
  opacity: 0.78;
  animation: studioPulse 1.8s ease-in-out infinite;
}

.studio-hotspot-pulse::after {
  position: absolute;
  inset: 18%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.72), transparent 10%),
    radial-gradient(circle, rgba(12, 24, 54, 0.88), rgba(75, 18, 98, 0.62) 64%, transparent 65%);
  content: "";
}

.studio-hotspot-label {
  position: absolute;
  bottom: -24px;
  left: 50%;
  min-height: 21px;
  padding: 5px 9px 6px;
  border: 1px solid rgba(255, 245, 181, 0.9);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent 42%),
    linear-gradient(135deg, rgba(7, 10, 21, 0.94), rgba(69, 17, 89, 0.94));
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.72),
    0 0 14px rgba(255, 108, 255, 0.34),
    0 0 13px rgba(255, 211, 77, 0.14) inset;
  color: white;
  font-size: clamp(0.55rem, 0.64vw, 0.7rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%) rotate(-2deg);
}

.studio-hotspot-label::first-letter {
  color: #ff8dff;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.8),
    0 0 14px rgba(255, 108, 255, 0.9);
}

body:not(.admin-page) .portal,
body:not(.admin-page) .map-hotspot,
body:not(.admin-page) .studio-hotspot {
  z-index: 520;
  overflow: visible;
  width: clamp(62px, 5.6vw, 94px);
  height: clamp(42px, 3.9vw, 66px);
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  pointer-events: auto;
}

body:not(.admin-page) .portal-ring,
body:not(.admin-page) .map-hotspot-ring,
body:not(.admin-page) .studio-hotspot-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: clamp(12px, 1vw, 16px);
  height: clamp(12px, 1vw, 16px);
  border: 1px solid rgba(255, 229, 128, 0.9);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.94) 0 12%, rgba(255, 218, 90, 0.95) 13% 34%, rgba(8, 14, 24, 0.9) 36% 100%);
  box-shadow:
    0 0 0 2px rgba(7, 10, 18, 0.72),
    0 0 9px rgba(255, 218, 90, 0.66),
    0 0 16px rgba(55, 216, 255, 0.2);
  opacity: 0.9;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition:
    box-shadow 160ms ease,
    filter 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
  animation: signalIdle 2.8s ease-in-out infinite;
}

body:not(.admin-page) .portal-label,
body:not(.admin-page) .map-hotspot-label,
body:not(.admin-page) .studio-hotspot-label {
  left: 50%;
  bottom: calc(50% + 19px);
  min-width: max-content;
  max-width: 146px;
  padding: 7px 12px 8px;
  border: 1px solid rgba(255, 229, 128, 0.92);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 43%),
    linear-gradient(135deg, rgba(8, 12, 22, 0.94), rgba(18, 36, 49, 0.92));
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(4, 7, 14, 0.72),
    0 0 0 rgba(255, 218, 90, 0),
    0 0 0 rgba(55, 216, 255, 0);
  color: rgba(255, 255, 255, 0.98);
  font-size: clamp(9px, 0.82vw, 12px);
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.78),
    0 0 0 rgba(255, 218, 90, 0);
  text-transform: uppercase;
  transform: translate(-50%, 8px) scale(0.9);
  transition:
    background 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    color 150ms ease,
    opacity 150ms ease,
    transform 150ms ease,
    visibility 150ms ease;
  visibility: hidden;
  white-space: nowrap;
}

body:not(.admin-page) .portal-ring::before,
body:not(.admin-page) .map-hotspot-ring::before,
body:not(.admin-page) .studio-hotspot-pulse::before {
  position: absolute;
  inset: -11px;
  border-top: 2px solid rgba(255, 218, 90, 0.66);
  border-left: 2px solid rgba(55, 216, 255, 0.34);
  border-radius: 9px 0 0;
  content: "";
  opacity: 0.72;
  transform: rotate(-8deg);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

body:not(.admin-page) .portal-ring::after,
body:not(.admin-page) .map-hotspot-ring::after,
body:not(.admin-page) .studio-hotspot-pulse::after {
  position: absolute;
  inset: -15px;
  border-right: 2px solid rgba(255, 218, 90, 0.44);
  border-bottom: 2px solid rgba(55, 216, 255, 0.3);
  border-radius: 0 0 9px;
  content: "";
  opacity: 0.5;
  transform: rotate(-8deg);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

body:not(.admin-page) .portal::before,
body:not(.admin-page) .map-hotspot::before,
body:not(.admin-page) .studio-hotspot::before {
  position: absolute;
  inset: 4px;
  border: 2px solid rgba(255, 218, 90, 0.92);
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 218, 90, 0.16), transparent 58%),
    linear-gradient(135deg, rgba(255, 218, 90, 0.08), rgba(55, 216, 255, 0.07));
  box-shadow:
    0 0 7px rgba(255, 218, 90, 0.18),
    0 0 0 rgba(55, 216, 255, 0);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition:
    box-shadow 150ms ease,
    filter 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

body:not(.admin-page) .portal::after,
body:not(.admin-page) .map-hotspot::after,
body:not(.admin-page) .studio-hotspot::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60%;
  height: 46%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse, rgba(255, 218, 90, 0.36), transparent 67%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

body:not(.admin-page) .portal:hover,
body:not(.admin-page) .portal:focus-visible,
body:not(.admin-page) .map-hotspot:hover,
body:not(.admin-page) .map-hotspot:focus-visible,
body:not(.admin-page) .studio-hotspot:hover,
body:not(.admin-page) .studio-hotspot:focus-visible,
body:not(.admin-page) .portal.is-signal-active,
body:not(.admin-page) .map-hotspot.is-signal-active,
body:not(.admin-page) .studio-hotspot.is-signal-active {
  filter: none;
  outline: 0;
  transform: translate(-50%, -50%);
}

body:not(.admin-page) .portal:hover::before,
body:not(.admin-page) .portal:focus-visible::before,
body:not(.admin-page) .map-hotspot:hover::before,
body:not(.admin-page) .map-hotspot:focus-visible::before,
body:not(.admin-page) .studio-hotspot:hover::before,
body:not(.admin-page) .studio-hotspot:focus-visible::before,
body:not(.admin-page) .portal.is-signal-active::before,
body:not(.admin-page) .map-hotspot.is-signal-active::before,
body:not(.admin-page) .studio-hotspot.is-signal-active::before,
body.is-signal-scanning:not(.admin-page) .portal::before,
body.is-signal-scanning:not(.admin-page) .map-hotspot::before,
body.is-signal-scanning:not(.admin-page) .studio-hotspot::before {
  box-shadow:
    0 0 10px rgba(255, 218, 90, 0.86),
    0 0 21px rgba(255, 218, 90, 0.52),
    0 0 24px rgba(55, 216, 255, 0.22),
    0 0 16px rgba(255, 218, 90, 0.26) inset;
  filter: drop-shadow(0 0 7px rgba(255, 218, 90, 0.7));
  opacity: 1;
  transform: scale(1.04);
}

body:not(.admin-page) .portal:hover::after,
body:not(.admin-page) .portal:focus-visible::after,
body:not(.admin-page) .map-hotspot:hover::after,
body:not(.admin-page) .map-hotspot:focus-visible::after,
body:not(.admin-page) .studio-hotspot:hover::after,
body:not(.admin-page) .studio-hotspot:focus-visible::after,
body:not(.admin-page) .portal.is-signal-active::after,
body:not(.admin-page) .map-hotspot.is-signal-active::after,
body:not(.admin-page) .studio-hotspot.is-signal-active::after,
body.is-signal-scanning:not(.admin-page) .portal::after,
body.is-signal-scanning:not(.admin-page) .map-hotspot::after,
body.is-signal-scanning:not(.admin-page) .studio-hotspot::after {
  opacity: 0.95;
  transform: translate(-50%, -50%) scale(1.24);
}

body:not(.admin-page) .portal:hover .portal-label,
body:not(.admin-page) .portal:focus-visible .portal-label,
body:not(.admin-page) .map-hotspot:hover .map-hotspot-label,
body:not(.admin-page) .map-hotspot:focus-visible .map-hotspot-label,
body:not(.admin-page) .studio-hotspot:hover .studio-hotspot-label,
body:not(.admin-page) .studio-hotspot:focus-visible .studio-hotspot-label,
body:not(.admin-page) .portal.is-signal-active .portal-label,
body:not(.admin-page) .map-hotspot.is-signal-active .map-hotspot-label,
body:not(.admin-page) .studio-hotspot.is-signal-active .studio-hotspot-label,
body.is-signal-scanning:not(.admin-page) .portal .portal-label,
body.is-signal-scanning:not(.admin-page) .map-hotspot .map-hotspot-label,
body.is-signal-scanning:not(.admin-page) .studio-hotspot .studio-hotspot-label {
  border-color: rgba(255, 220, 92, 0.98);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 42%),
    rgba(9, 12, 22, 0.92);
  box-shadow:
    0 0 0 1px rgba(5, 8, 14, 0.9),
    0 0 13px rgba(255, 218, 90, 0.96),
    0 0 25px rgba(255, 218, 90, 0.62),
    0 0 19px rgba(55, 216, 255, 0.34),
    0 0 18px rgba(255, 218, 90, 0.28) inset;
  color: rgba(255, 255, 255, 0.98);
  opacity: 1;
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.74),
    0 0 6px rgba(255, 255, 255, 0.84),
    0 0 13px rgba(255, 218, 90, 0.86);
  transform: translate(-50%, 0) scale(1);
  visibility: visible;
}

body:not(.admin-page) .portal:hover .portal-ring,
body:not(.admin-page) .portal:focus-visible .portal-ring,
body:not(.admin-page) .map-hotspot:hover .map-hotspot-ring,
body:not(.admin-page) .map-hotspot:focus-visible .map-hotspot-ring,
body:not(.admin-page) .studio-hotspot:hover .studio-hotspot-pulse,
body:not(.admin-page) .studio-hotspot:focus-visible .studio-hotspot-pulse,
body:not(.admin-page) .portal.is-signal-active .portal-ring,
body:not(.admin-page) .map-hotspot.is-signal-active .map-hotspot-ring,
body:not(.admin-page) .studio-hotspot.is-signal-active .studio-hotspot-pulse,
body.is-signal-scanning:not(.admin-page) .portal-ring,
body.is-signal-scanning:not(.admin-page) .map-hotspot-ring,
body.is-signal-scanning:not(.admin-page) .studio-hotspot-pulse {
  box-shadow:
    0 0 0 2px rgba(7, 10, 18, 0.72),
    0 0 13px rgba(255, 218, 90, 0.96),
    0 0 24px rgba(55, 216, 255, 0.34);
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.2);
}

body:not(.admin-page) .portal:hover .portal-ring::before,
body:not(.admin-page) .portal:focus-visible .portal-ring::before,
body:not(.admin-page) .map-hotspot:hover .map-hotspot-ring::before,
body:not(.admin-page) .map-hotspot:focus-visible .map-hotspot-ring::before,
body:not(.admin-page) .studio-hotspot:hover .studio-hotspot-pulse::before,
body:not(.admin-page) .studio-hotspot:focus-visible .studio-hotspot-pulse::before,
body:not(.admin-page) .portal.is-signal-active .portal-ring::before,
body:not(.admin-page) .map-hotspot.is-signal-active .map-hotspot-ring::before,
body:not(.admin-page) .studio-hotspot.is-signal-active .studio-hotspot-pulse::before {
  opacity: 1;
  transform: rotate(-8deg) scale(1.14);
}

body:not(.admin-page) .portal:hover .portal-ring::after,
body:not(.admin-page) .portal:focus-visible .portal-ring::after,
body:not(.admin-page) .map-hotspot:hover .map-hotspot-ring::after,
body:not(.admin-page) .map-hotspot:focus-visible .map-hotspot-ring::after,
body:not(.admin-page) .studio-hotspot:hover .studio-hotspot-pulse::after,
body:not(.admin-page) .studio-hotspot:focus-visible .studio-hotspot-pulse::after,
body:not(.admin-page) .portal.is-signal-active .portal-ring::after,
body:not(.admin-page) .map-hotspot.is-signal-active .map-hotspot-ring::after,
body:not(.admin-page) .studio-hotspot.is-signal-active .studio-hotspot-pulse::after {
  opacity: 0.9;
  transform: rotate(-8deg) scale(1.14);
}

.signal-guide {
  position: fixed;
  right: clamp(14px, 1.5vw, 24px);
  bottom: clamp(14px, 1.5vw, 24px);
  left: auto;
  z-index: 700;
  width: min(360px, calc(100vw - 28px));
  max-height: min(50vh, 460px);
  padding: 9px;
  border: 1px solid rgba(255, 229, 128, 0.36);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), transparent 36%),
    rgba(5, 8, 16, 0.78);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.46),
    0 0 26px rgba(55, 216, 255, 0.13),
    0 0 22px rgba(255, 218, 90, 0.1) inset;
  backdrop-filter: blur(12px) saturate(1.25);
  cursor: grab;
  opacity: 0.62;
  transition:
    opacity 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.signal-guide:hover,
.signal-guide:focus-within {
  opacity: 1;
}

.signal-guide.is-moving {
  cursor: grabbing;
  opacity: 1;
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.54),
    0 0 34px rgba(55, 216, 255, 0.24),
    0 0 28px rgba(255, 218, 90, 0.18) inset;
  transition: none;
}

.signal-guide::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(115deg, transparent 0 28%, rgba(255, 255, 255, 0.13) 39%, transparent 50% 100%);
  content: "";
  opacity: 0.38;
  pointer-events: none;
  transform: translateX(-35%);
  animation: signalPanelGlint 4.8s ease-in-out infinite;
}

.signal-guide *,
.town-stage .signal-guide button,
.town-stage .signal-guide a {
  cursor: inherit;
}

.town-stage .signal-guide button,
.town-stage .signal-guide a {
  cursor: pointer;
}

.signal-guide-top {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 7px;
  margin-bottom: 8px;
}

.signal-guide-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: stretch;
  gap: 6px;
}

.signal-guide-actions > * {
  flex: 1 1 74px;
}

.signal-deck-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
  border: 1px solid rgba(255, 229, 128, 0.2);
  border-radius: 9px;
  padding: 4px 5px 4px 9px;
  background: rgba(255, 255, 255, 0.06);
}

.signal-deck-tools-label {
  color: rgba(205, 214, 232, 0.72);
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.signal-guide-top p,
.signal-guide-top h2 {
  margin: 0;
}

.signal-guide-top p {
  color: rgba(255, 218, 90, 0.86);
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.signal-guide-top h2 {
  margin-top: 3px;
  color: white;
  font-size: 0.92rem;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 0 12px rgba(55, 216, 255, 0.34);
}

.signal-scan-button,
.signal-ghost-button {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(55, 216, 255, 0.45);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 46%),
    rgba(13, 31, 47, 0.82);
  box-shadow:
    0 0 13px rgba(55, 216, 255, 0.18),
    0 0 11px rgba(255, 218, 90, 0.1) inset;
  color: white;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.signal-admin-action {
  border-color: rgba(255, 93, 143, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 46%),
    rgba(64, 22, 47, 0.78);
  box-shadow:
    0 0 13px rgba(255, 93, 143, 0.22),
    0 0 12px rgba(255, 218, 90, 0.12) inset;
}

.signal-listing-action {
  border-color: rgba(55, 216, 255, 0.62);
  background:
    linear-gradient(135deg, rgba(55, 216, 255, 0.32), rgba(255, 93, 143, 0.28)),
    rgba(13, 31, 47, 0.86);
  box-shadow:
    0 0 15px rgba(55, 216, 255, 0.26),
    0 0 13px rgba(255, 218, 90, 0.13) inset;
}

.signal-ghost-button {
  border-color: rgba(255, 229, 128, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 46%),
    rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 11px rgba(255, 218, 90, 0.1) inset;
}

.signal-guide-person-button[hidden] {
  display: none;
}

.signal-scan-button:hover,
.signal-scan-button:focus-visible,
.signal-ghost-button:hover,
.signal-ghost-button:focus-visible {
  border-color: rgba(255, 229, 128, 0.82);
  box-shadow:
    0 0 18px rgba(55, 216, 255, 0.28),
    0 0 18px rgba(255, 218, 90, 0.22) inset;
  outline: 0;
  transform: translateY(-1px);
}

.signal-guide.is-collapsed {
  width: min(330px, calc(100vw - 28px));
  max-height: none;
}

.signal-guide.is-collapsed .signal-guide-top {
  margin-bottom: 0;
}

.signal-guide.is-collapsed .signal-guide-top h2 {
  font-size: 0.82rem;
}

.signal-guide.is-collapsed .signal-guide-list,
.signal-guide.is-collapsed .signal-site-links,
.signal-guide.is-collapsed .signal-mini-map,
.signal-guide.is-collapsed #signalMapButton {
  display: none;
}

.signal-site-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 0 0 8px;
}

.signal-site-link {
  display: grid;
  min-height: 54px;
  align-content: center;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(55, 216, 255, 0.42);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(55, 216, 255, 0.24), rgba(255, 93, 143, 0.22)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 15px rgba(55, 216, 255, 0.16),
    0 0 13px rgba(255, 218, 90, 0.09) inset;
  color: #fff;
  line-height: 1;
  text-decoration: none;
}

.signal-site-link span {
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.signal-site-link small {
  color: rgba(230, 236, 255, 0.72);
  font-size: 0.56rem;
  font-weight: 850;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.signal-site-link:hover,
.signal-site-link:focus-visible {
  border-color: rgba(255, 229, 128, 0.82);
  box-shadow:
    0 0 20px rgba(55, 216, 255, 0.26),
    0 0 18px rgba(255, 218, 90, 0.16) inset;
  outline: 0;
  transform: translateY(-1px);
}

.signal-mini-map {
  position: relative;
  width: min(220px, 58vw);
  margin: 0 0 10px auto;
  padding: 6px 28px 6px 6px;
  border: 1px solid rgba(255, 229, 128, 0.28);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(2, 5, 12, 0.64);
  box-shadow: 0 0 16px rgba(55, 216, 255, 0.12) inset;
}

.signal-mini-map-close {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(4, 7, 15, 0.82);
  color: white;
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1;
}

.signal-mini-map-close:hover,
.signal-mini-map-close:focus-visible {
  border-color: rgba(255, 229, 128, 0.88);
  outline: 0;
}

.signal-mini-map[hidden] {
  display: none;
}

.signal-mini-map-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: #02050c;
}

.signal-mini-map-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(1.18) brightness(0.86) contrast(1.05);
}

.signal-mini-map-hotspots {
  position: absolute;
  inset: 0;
}

.signal-mini-map-dot {
  position: absolute;
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(5, 8, 14, 0.82);
  border-radius: 50%;
  background: rgba(55, 216, 255, 0.82);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.74),
    0 0 8px rgba(55, 216, 255, 0.74);
  color: #03101a;
  font-size: 0.48rem;
  font-weight: 950;
  line-height: 1;
  transform: translate(-50%, -50%);
  transition:
    background 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.signal-mini-map-dot:hover,
.signal-mini-map-dot:focus-visible,
.signal-mini-map-dot.is-signal-active {
  background: rgba(255, 218, 90, 0.98);
  box-shadow:
    0 0 0 2px rgba(5, 8, 14, 0.82),
    0 0 0 4px rgba(255, 255, 255, 0.72),
    0 0 13px rgba(255, 218, 90, 0.98),
    0 0 20px rgba(55, 216, 255, 0.42);
  outline: 0;
  transform: translate(-50%, -50%) scale(1.2);
}

.signal-mini-map-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(6, 9, 16, 0.82);
  border-radius: 50%;
  background: rgba(255, 218, 90, 0.98);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.82),
    0 0 13px rgba(255, 218, 90, 0.92),
    0 0 19px rgba(55, 216, 255, 0.38);
  transform: translate(-50%, -50%);
}

.signal-mini-map-marker::after {
  position: absolute;
  top: 100%;
  left: 50%;
  border-top: 9px solid rgba(255, 218, 90, 0.98);
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
  content: "";
  transform: translateX(-50%);
}

.signal-mini-map-marker span {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  min-width: max-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(4, 7, 14, 0.86);
  color: white;
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.signal-guide-list {
  display: grid;
  gap: 6px;
  max-height: min(40vh, 390px);
  overflow: auto;
  padding-right: 3px;
}

.signal-guide-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
  color: white;
  text-align: left;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.signal-guide-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 24px;
  border-radius: 7px;
  background: rgba(255, 218, 90, 0.14);
  color: rgba(255, 229, 128, 0.92);
  font-size: 0.7rem;
  font-weight: 950;
  line-height: 1;
}

.signal-guide-name {
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.signal-guide-mode {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(55, 216, 255, 0.12);
  color: rgba(203, 242, 255, 0.92);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.signal-guide-item:hover,
.signal-guide-item:focus-visible,
.signal-guide-item.is-signal-active {
  border-color: rgba(255, 229, 128, 0.64);
  background:
    linear-gradient(90deg, rgba(255, 218, 90, 0.15), rgba(55, 216, 255, 0.1)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 16px rgba(255, 218, 90, 0.24),
    0 0 18px rgba(55, 216, 255, 0.13) inset;
  outline: 0;
  transform: translateX(3px);
}

.signal-guide-item:hover .signal-guide-index,
.signal-guide-item:focus-visible .signal-guide-index,
.signal-guide-item.is-signal-active .signal-guide-index {
  background: rgba(255, 218, 90, 0.94);
  color: #08101c;
}

.sales-guide-panel {
  position: fixed;
  left: clamp(14px, 1.5vw, 24px);
  bottom: clamp(14px, 1.5vw, 24px);
  z-index: 720;
  display: grid;
  gap: 9px;
  width: min(360px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid rgba(255, 229, 128, 0.36);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 38%),
    rgba(5, 8, 16, 0.82);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.46),
    0 0 24px rgba(55, 216, 255, 0.14),
    0 0 20px rgba(255, 218, 90, 0.1) inset;
  backdrop-filter: blur(12px) saturate(1.22);
  color: white;
}

.sales-guide-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sales-guide-panel p,
.sales-guide-panel h2 {
  margin: 0;
}

.sales-guide-panel h2 {
  color: white;
  font-size: 1.03rem;
  line-height: 1;
  letter-spacing: 0;
}

.sales-guide-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.sales-guide-form input {
  min-width: 0;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 0.82rem;
  font-weight: 850;
  outline: 0;
}

.sales-guide-form input::placeholder {
  color: rgba(205, 214, 232, 0.72);
}

.sales-guide-form input:focus {
  border-color: rgba(55, 216, 255, 0.74);
  box-shadow: 0 0 0 3px rgba(55, 216, 255, 0.12);
}

.sales-guide-form button,
.sales-guide-suggestions button {
  min-height: 38px;
  border: 1px solid rgba(255, 221, 98, 0.64);
  border-radius: 8px;
  padding: 0 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), transparent),
    rgba(255, 221, 98, 0.16);
  color: white;
  font-size: 0.74rem;
  font-weight: 950;
}

.sales-guide-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sales-guide-suggestions button {
  min-height: 30px;
  padding: 0 9px;
  border-color: rgba(55, 216, 255, 0.35);
  background: rgba(55, 216, 255, 0.1);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.sales-guide-form button:hover,
.sales-guide-form button:focus-visible,
.sales-guide-suggestions button:hover,
.sales-guide-suggestions button:focus-visible {
  border-color: rgba(255, 229, 128, 0.9);
  outline: 0;
  box-shadow: 0 0 16px rgba(255, 218, 90, 0.22);
}

.sales-guide-status {
  min-height: 18px;
  color: rgba(255, 229, 128, 0.92);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.25;
}

.public-guide-title-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.public-guide-avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 229, 128, 0.42);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(55, 216, 255, 0.28), rgba(255, 218, 90, 0.2)),
    rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 0.72rem;
  font-weight: 950;
  overflow: hidden;
}

.public-guide-avatar-admin {
  width: 56px;
}

.public-guide-avatar-template {
  width: 48px;
}

.public-guide-avatar-picker {
  width: 23px;
  border-color: rgba(255, 229, 128, 0.34);
}

.public-guide-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-guide-face {
  --guide-skin: #d7a16f;
  --guide-hair: #141821;
  --guide-jacket: #111722;
  --guide-shirt: #f8f6ed;
  --guide-tie: #37d8ff;
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(145deg, rgba(55, 216, 255, 0.18), rgba(255, 218, 90, 0.1)),
    rgba(255, 255, 255, 0.07);
}

.public-guide-face span {
  position: absolute;
  display: block;
}

.public-guide-face-head {
  left: 30%;
  top: 14%;
  width: 40%;
  height: 34%;
  border: 1px solid rgba(5, 7, 14, 0.38);
  border-radius: 50%;
  background: var(--guide-skin);
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.12);
}

.public-guide-face-hair {
  left: 26%;
  top: 9%;
  width: 48%;
  height: 21%;
  border-radius: 52% 52% 38% 40%;
  background: var(--guide-hair);
}

.public-guide-face[data-guide-hair="long"] .public-guide-face-hair {
  left: 20%;
  top: 8%;
  width: 60%;
  height: 39%;
  border-radius: 50% 50% 32% 32%;
}

.public-guide-face-body {
  left: 27%;
  top: 52%;
  width: 46%;
  height: 34%;
  border-radius: 34% 34% 14% 14%;
  background: var(--guide-jacket);
}

.public-guide-face-shirt {
  left: 39%;
  top: 56%;
  width: 22%;
  height: 25%;
  clip-path: polygon(0 0, 100% 0, 72% 100%, 28% 100%);
  background: var(--guide-shirt);
}

.public-guide-face-tie {
  left: 48%;
  top: 59%;
  width: 4%;
  height: 22%;
  border-radius: 999px;
  background: var(--guide-tie);
}

.public-guide-face[data-guide-outfit="shirt"] .public-guide-face-body {
  background: var(--guide-shirt);
}

.public-guide-face[data-guide-outfit="shirt"] .public-guide-face-shirt,
.public-guide-face[data-guide-outfit="shirt"] .public-guide-face-tie {
  display: none;
}

.public-guide-expanded {
  display: grid;
  gap: 9px;
}

.public-guide-widget.is-minimized {
  display: none;
  width: min(235px, calc(100vw - 32px));
}

.public-guide-widget.is-minimized .public-guide-expanded {
  display: none;
}

.public-guide-widget [data-public-guide-minimize] {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 229, 128, 0.4);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 1.1rem;
  font-weight: 950;
}

.public-guide-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.public-guide-picker[hidden] {
  display: none;
}

.public-guide-picker button {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 3px 10px 3px 4px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(235, 241, 255, 0.88);
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.public-guide-picker button.is-selected {
  border-color: rgba(255, 229, 128, 0.72);
  background: rgba(255, 218, 90, 0.16);
  color: white;
}

.public-guide-bubble {
  position: relative;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.07);
  animation: publicGuideBubbleIn 220ms ease both;
}

.public-guide-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(255, 229, 128, 0.35);
  border-radius: 10px;
  padding: 8px;
  background:
    linear-gradient(90deg, rgba(255, 218, 90, 0.14), rgba(55, 216, 255, 0.1)),
    rgba(255, 255, 255, 0.06);
}

.public-guide-promo[hidden] {
  display: none;
}

.public-guide-promo span {
  min-width: 0;
  color: white;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.2;
}

.public-guide-promo button {
  min-height: 32px;
  border: 1px solid rgba(255, 221, 98, 0.68);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 221, 98, 0.16);
  color: white;
  font-size: 0.66rem;
  font-weight: 950;
}

.public-guide-widget[data-guide-state="thinking"] .public-guide-bubble::after {
  display: inline-block;
  width: 1.6em;
  margin-left: 0.25em;
  content: "...";
  animation: publicGuideTyping 900ms steps(3) infinite;
  overflow: hidden;
  vertical-align: bottom;
}

.public-guide-widget[data-guide-state="promoting"] .public-guide-promo,
.public-guide-widget[data-guide-state="excited"] .public-guide-promo {
  animation: publicGuidePromoPulse 900ms ease-in-out 2;
}

.sales-guide-agent {
  --guide-skin: #d7a16f;
  --guide-hair: #141821;
  --guide-jacket: #111722;
  --guide-shirt: #f8f6ed;
  --guide-tie: #37d8ff;
  position: absolute;
  left: 30%;
  top: 52%;
  z-index: 620;
  width: clamp(36px, 3.6vw, 64px);
  height: clamp(48px, 4.8vw, 84px);
  pointer-events: none;
  transform: translate(-50%, -94%);
  transition:
    left 680ms ease-in-out,
    top 680ms ease-in-out;
  filter: drop-shadow(0 0.8vw 0.5vw rgba(0, 0, 0, 0.36));
}

.sales-guide-agent-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  display: block;
  width: clamp(190px, 21vw, 310px);
  max-height: 126px;
  overflow: auto;
  border: 1px solid rgba(255, 229, 128, 0.52);
  border-radius: 10px;
  padding: 9px 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 48%),
    rgba(5, 8, 16, 0.9);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.38),
    0 0 22px rgba(55, 216, 255, 0.13);
  color: white;
  font-size: clamp(0.68rem, 0.9vw, 0.82rem);
  font-weight: 900;
  line-height: 1.24;
  text-align: left;
  text-wrap: pretty;
  transform: translateX(-50%);
  animation: publicGuideBubbleIn 220ms ease both;
  pointer-events: none;
}

.sales-guide-agent-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 14px;
  height: 14px;
  border-right: 1px solid rgba(255, 229, 128, 0.52);
  border-bottom: 1px solid rgba(255, 229, 128, 0.52);
  background: rgba(5, 8, 16, 0.9);
  transform: translateX(-50%) rotate(45deg);
}

.sales-guide-agent-bubble[hidden] {
  display: none;
}

.sales-guide-shadow {
  position: absolute;
  left: 50%;
  bottom: -4%;
  width: 58%;
  height: 13%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.34);
  transform: translateX(-50%);
}

.sales-guide-person,
.sales-guide-person span {
  position: absolute;
  display: block;
}

.sales-guide-person {
  inset: 0;
  transform-origin: 50% 88%;
}

.sales-guide-custom-figure {
  position: absolute;
  inset: -7% -16% -1%;
  display: none;
  place-items: end center;
  transform-origin: 50% 88%;
}

.sales-guide-custom-figure img {
  display: block;
  max-width: 132%;
  max-height: 112%;
  object-fit: contain;
  object-position: center bottom;
  transform-origin: 50% 88%;
}

.sales-guide-agent.has-custom-guide-image .sales-guide-person {
  display: none;
}

.sales-guide-agent.has-custom-guide-image .sales-guide-custom-figure {
  display: grid;
}

.sales-guide-agent.is-facing-left .sales-guide-person {
  transform: scaleX(-1);
}

.sales-guide-agent.has-custom-guide-image.is-facing-left .sales-guide-custom-figure {
  transform: scaleX(-1);
}

.sales-guide-head {
  left: 31%;
  top: 5%;
  width: 38%;
  height: 28%;
  border: 2px solid rgba(5, 7, 14, 0.44);
  border-radius: 50%;
  background: var(--guide-skin);
  box-shadow: inset -0.18vw -0.2vw 0 rgba(0, 0, 0, 0.13);
}

.sales-guide-hair {
  left: 27%;
  top: 2%;
  width: 45%;
  height: 17%;
  border-radius: 50% 50% 36% 40%;
  background: var(--guide-hair);
}

.sales-guide-body {
  left: 29%;
  top: 31%;
  width: 42%;
  height: 40%;
  border-radius: 35% 35% 18% 18%;
  background: var(--guide-jacket);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.sales-guide-shirt {
  left: 35%;
  top: 6%;
  width: 30%;
  height: 58%;
  clip-path: polygon(0 0, 100% 0, 72% 100%, 28% 100%);
  background: var(--guide-shirt);
}

.sales-guide-tie {
  left: 47%;
  top: 14%;
  width: 8%;
  height: 52%;
  border-radius: 999px;
  background: linear-gradient(var(--guide-tie), #ffda5a);
}

.sales-guide-arm {
  top: 38%;
  width: 11%;
  height: 34%;
  border-radius: 999px;
  background: var(--guide-jacket);
  transform-origin: 50% 10%;
}

.sales-guide-arm-left {
  left: 22%;
  transform: rotate(12deg);
}

.sales-guide-arm-right {
  right: 22%;
  transform: rotate(-12deg);
}

.sales-guide-leg {
  top: 68%;
  width: 12%;
  height: 30%;
  border-radius: 999px 999px 35% 35%;
  background: #0b101a;
  transform-origin: 50% 0;
}

.sales-guide-agent[data-guide-hair="long"] .sales-guide-hair {
  left: 22%;
  top: 0%;
  width: 56%;
  height: 34%;
  border-radius: 48% 48% 34% 34%;
}

.sales-guide-agent[data-guide-outfit="shirt"] .sales-guide-body {
  background: var(--guide-shirt);
}

.sales-guide-agent[data-guide-outfit="shirt"] .sales-guide-shirt,
.sales-guide-agent[data-guide-outfit="shirt"] .sales-guide-tie {
  display: none;
}

.sales-guide-leg-left {
  left: 36%;
}

.sales-guide-leg-right {
  right: 36%;
}

.sales-guide-agent.is-walking .sales-guide-person {
  animation: salesGuideBob 480ms ease-in-out infinite;
}

.sales-guide-agent.has-custom-guide-image.is-walking .sales-guide-custom-figure img {
  animation: salesGuideBob 480ms ease-in-out infinite;
}

.sales-guide-agent.is-walking .sales-guide-leg-left {
  animation: salesGuideStrideLeft 480ms ease-in-out infinite;
}

.sales-guide-agent.is-walking .sales-guide-leg-right {
  animation: salesGuideStrideRight 480ms ease-in-out infinite;
}

.sales-guide-agent.is-walking .sales-guide-arm-left {
  animation: salesGuideArmLeft 480ms ease-in-out infinite;
}

.sales-guide-agent.is-walking .sales-guide-arm-right {
  animation: salesGuideArmRight 480ms ease-in-out infinite;
}

.sales-guide-agent[data-guide-state="idle"] .sales-guide-person,
.sales-guide-agent[data-guide-state="talking"] .sales-guide-person {
  animation: salesGuideBob 2.4s ease-in-out infinite;
}

.sales-guide-agent.has-custom-guide-image[data-guide-state="idle"] .sales-guide-custom-figure img,
.sales-guide-agent.has-custom-guide-image[data-guide-state="talking"] .sales-guide-custom-figure img {
  animation: salesGuideBob 2.4s ease-in-out infinite;
}

.sales-guide-agent[data-guide-state="thinking"] .sales-guide-head {
  animation: publicGuideThink 840ms ease-in-out infinite;
}

.sales-guide-agent.has-custom-guide-image[data-guide-state="thinking"] .sales-guide-custom-figure img {
  animation: publicGuideThink 840ms ease-in-out infinite;
}

.sales-guide-agent[data-guide-state="excited"] .sales-guide-person,
.sales-guide-agent[data-guide-state="promoting"] .sales-guide-person,
.sales-guide-agent[data-animation-style="bounce"] .sales-guide-person {
  animation: salesGuideBob 720ms ease-in-out infinite;
}

.sales-guide-agent.has-custom-guide-image[data-guide-state="excited"] .sales-guide-custom-figure img,
.sales-guide-agent.has-custom-guide-image[data-guide-state="promoting"] .sales-guide-custom-figure img,
.sales-guide-agent.has-custom-guide-image[data-animation-style="bounce"] .sales-guide-custom-figure img {
  animation: salesGuideBob 720ms ease-in-out infinite;
}

.sales-guide-agent[data-animation-style="none"] .sales-guide-person {
  animation: none;
}

.sales-guide-agent.has-custom-guide-image[data-animation-style="none"] .sales-guide-custom-figure img {
  animation: none;
}

.sales-guide-agent[data-animation-style="wave"] .sales-guide-arm-right {
  animation: publicGuideWave 1.4s ease-in-out infinite;
}

@keyframes signalIdle {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.12);
  }
}

@keyframes signalPanelGlint {
  0%,
  62%,
  100% {
    transform: translateX(-38%);
  }

  78% {
    transform: translateX(38%);
  }
}

@keyframes salesGuideBob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5%);
  }
}

@keyframes salesGuideStrideLeft {
  0%,
  100% {
    transform: rotate(-13deg);
  }

  50% {
    transform: rotate(18deg);
  }
}

@keyframes salesGuideStrideRight {
  0%,
  100% {
    transform: rotate(18deg);
  }

  50% {
    transform: rotate(-13deg);
  }
}

@keyframes salesGuideArmLeft {
  0%,
  100% {
    transform: rotate(20deg);
  }

  50% {
    transform: rotate(-18deg);
  }
}

@keyframes salesGuideArmRight {
  0%,
  100% {
    transform: rotate(-20deg);
  }

  50% {
    transform: rotate(18deg);
  }
}

@keyframes publicGuideBubbleIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes publicGuideTyping {
  from {
    width: 0;
  }

  to {
    width: 1.6em;
  }
}

@keyframes publicGuidePromoPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(255, 218, 90, 0);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 22px rgba(255, 218, 90, 0.24);
    transform: scale(1.015);
  }
}

@keyframes publicGuideThink {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6%);
  }
}

@keyframes publicGuideWave {
  0%,
  100% {
    transform: rotate(-12deg);
  }

  50% {
    transform: rotate(-42deg);
  }
}

.admin-shell {
  position: relative;
  min-height: 100dvh;
  padding: clamp(18px, 3vw, 34px);
  background:
    radial-gradient(circle at 12% 12%, rgba(55, 216, 255, 0.18), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(255, 93, 143, 0.16), transparent 30%),
    linear-gradient(180deg, #080b16, #03040b);
}

.admin-topbar {
  position: relative;
  z-index: 120;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto 22px;
}

.admin-brand {
  display: block;
  width: clamp(62px, 7vw, 86px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: #000;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.admin-brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-topbar h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.95;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.admin-view-town {
  display: grid;
  place-items: center;
  min-width: 112px;
  padding: 0 16px;
}

.admin-signout {
  min-width: 104px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.admin-signout[hidden] {
  display: none;
}

.guest-admin-button {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 160;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(255, 221, 98, 0.76);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 221, 98, 0.95), rgba(43, 215, 255, 0.9));
  color: #07101e;
  font-size: 0.78rem;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
}

.guest-admin-button.guest-admin-inline-button {
  position: static;
  right: auto;
  bottom: auto;
  z-index: auto;
  min-height: inherit;
  padding: inherit;
  box-shadow: none;
}

.guest-admin-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 7, 20, 0.72);
  backdrop-filter: blur(12px);
}

.guest-admin-modal[hidden],
.guest-edit-panel[hidden] {
  display: none;
}

.guest-admin-panel,
.guest-edit-panel,
.guest-permission-admin {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(10, 15, 32, 0.96);
  color: white;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
}

.guest-admin-panel {
  position: relative;
  width: min(430px, 100%);
  display: grid;
  gap: 12px;
  padding: 24px;
}

.guest-admin-panel h2,
.guest-edit-panel h2,
.guest-permission-admin h2,
.guest-permission-card h3 {
  margin: 0;
  letter-spacing: 0;
}

.guest-admin-panel label,
.guest-edit-panel label,
.guest-permission-card label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.guest-admin-panel input,
.guest-admin-panel select,
.guest-edit-panel input,
.guest-permission-card input,
.guest-permission-card select {
  min-height: 40px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  outline: 0;
}

.guest-admin-panel button,
.guest-edit-panel button,
.guest-permission-admin button {
  min-height: 38px;
  border: 1px solid rgba(255, 221, 98, 0.6);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 221, 98, 0.18);
  color: white;
  font-size: 0.76rem;
  font-weight: 950;
  cursor: pointer;
}

.guest-admin-close,
.guest-edit-panel [data-guest-edit-close] {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  padding: 0;
}

.guest-admin-status,
.guest-permission-status,
.guest-edit-panel [role="status"] {
  min-height: 18px;
  margin: 0;
  color: rgba(255, 221, 98, 0.88);
  font-size: 0.76rem;
  font-weight: 850;
}

.guest-edit-panel {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(72px, calc(env(safe-area-inset-bottom) + 72px));
  z-index: 86;
  width: min(420px, calc(100vw - 28px));
  max-height: min(760px, calc(100dvh - 96px));
  display: grid;
  gap: 10px;
  overflow: auto;
  padding: 20px;
}

.guest-content-form {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.guest-content-form h3 {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0;
}

.guest-upload-control {
  padding: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.guest-content-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.guest-content-item {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.guest-content-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}

.guest-content-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.guest-content-actions label {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 221, 98, 0.6);
  border-radius: 8px;
  background: rgba(255, 221, 98, 0.12);
  color: white;
  cursor: pointer;
}

.guest-content-actions input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.is-guest-edit-unlocked {
  outline: 3px solid rgba(255, 221, 98, 0.95);
  outline-offset: 6px;
}

.guest-permission-admin {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
}

.guest-permission-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.guest-permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guest-permission-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.guest-permission-check {
  display: flex !important;
  align-items: center;
  grid-template-columns: none;
  text-transform: none !important;
}

.guest-permission-list-card [data-guest-permission-list] {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.guest-permission-list-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  line-height: 1.45;
}

.admin-signin {
  display: grid;
  place-items: center;
  max-width: 1180px;
  min-height: min(660px, calc(100dvh - 154px));
  margin: 0 auto;
}

.admin-signin[hidden] {
  display: none;
}

.admin-signin-panel {
  display: grid;
  justify-items: center;
  width: min(460px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 38%),
    var(--panel-strong);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  text-align: center;
}

.admin-signin-panel img {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
  box-shadow:
    0 0 26px rgba(55, 216, 255, 0.22),
    0 12px 40px rgba(0, 0, 0, 0.34);
}

.admin-signin-panel h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 0.96;
}

.admin-signin-note {
  max-width: 34ch;
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.38;
}

.admin-signin-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}

.admin-signin-form input {
  min-width: 0;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  outline: 0;
}

.admin-signin-form input:focus {
  border-color: rgba(55, 216, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(55, 216, 255, 0.13);
}

.admin-signin-form button {
  min-width: 112px;
  padding: 0 16px;
}

.admin-signin-form button:disabled,
.admin-signin-form input:disabled {
  cursor: wait;
  opacity: 0.72;
}

.admin-signin-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--gold);
  font-weight: 800;
}

.admin-workspace {
  position: relative;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(170px, 210px) minmax(520px, 1fr) minmax(340px, 460px);
  gap: 18px;
  max-width: 1500px;
  margin: 0 auto;
}

.admin-locations {
  position: sticky;
  z-index: 110;
  top: 20px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.admin-location {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  text-align: left;
}

.admin-location.is-active {
  border-color: rgba(55, 216, 255, 0.72);
  background: linear-gradient(135deg, rgba(43, 215, 255, 0.32), rgba(143, 104, 255, 0.28) 58%, rgba(255, 93, 143, 0.28));
  box-shadow: 0 0 24px rgba(55, 216, 255, 0.16);
}

.admin-location.is-hotspot-hidden {
  border-color: rgba(255, 93, 143, 0.32);
  background: rgba(255, 93, 143, 0.09);
  color: rgba(255, 255, 255, 0.62);
}

.hotspot-editor {
  position: relative;
  z-index: 100;
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: min(760px, calc(100dvh - 92px));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 38%),
    rgba(9, 13, 29, 0.9);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.hotspot-editor-header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1;
}

.hotspot-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hotspot-expand-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  color: white;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 950;
}

.hotspot-expand-button:hover,
.hotspot-expand-button:focus-visible {
  border-color: rgba(255, 221, 98, 0.9);
  outline: 0;
}

.hotspot-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.hotspot-form input {
  min-width: 0;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  outline: 0;
}

.hotspot-form input:first-child {
  grid-column: auto;
}

.hotspot-form input:focus {
  border-color: rgba(55, 216, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(55, 216, 255, 0.13);
}

.hotspot-form button,
.hotspot-row button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #2bd7ff, #8f68ff 62%, #ff5d8f);
  color: white;
  font-weight: 950;
  cursor: pointer;
}

.hotspot-form button {
  min-width: 120px;
}

.hotspot-help {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.35;
}

.hotspot-map-editor {
  position: relative;
  width: 100%;
  aspect-ratio: var(--hotspot-map-ratio, 1672 / 941);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  touch-action: none;
}

.hotspot-map-editor img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.hotspot-map-layer {
  position: absolute;
  inset: 0;
}

.hotspot-drag-button {
  position: absolute;
  z-index: 2;
  min-height: 28px;
  max-width: 140px;
  padding: 6px 10px 7px;
  border: 1px solid rgba(255, 245, 181, 0.95);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(7, 10, 21, 0.94), rgba(26, 46, 73, 0.94));
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.72),
    0 0 16px rgba(55, 216, 255, 0.28),
    0 0 13px rgba(255, 211, 77, 0.2) inset;
  color: white;
  cursor: grab;
  font-size: clamp(0.54rem, 0.78vw, 0.72rem);
  font-weight: 950;
  letter-spacing: 0.03em;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  touch-action: none;
  transform: translate(-50%, -50%) rotate(-2deg);
  user-select: none;
  white-space: nowrap;
}

.hotspot-drag-button::before {
  position: absolute;
  inset: 2px;
  border-radius: 4px;
  border: 1px solid rgba(55, 216, 255, 0.16);
  content: "";
  pointer-events: none;
}

.hotspot-drag-button.is-hotspot-hidden {
  border-color: rgba(255, 93, 143, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 42%),
    rgba(54, 20, 39, 0.78);
  opacity: 0.62;
}

.hotspot-drag-button:hover,
.hotspot-drag-button:focus-visible,
.hotspot-drag-button.is-dragging,
.hotspot-drag-button.is-admin-map-focused {
  border-color: rgba(255, 221, 98, 1);
  box-shadow:
    0 5px 0 rgba(0, 0, 0, 0.72),
    0 0 28px rgba(255, 211, 77, 0.54),
    0 0 28px rgba(55, 216, 255, 0.42);
  outline: 0;
}

.hotspot-drag-button.is-admin-map-focused {
  z-index: 6;
  animation: adminMapFocusPulse 1.8s ease-in-out infinite;
  transform: translate(-50%, -50%) rotate(-1deg) scale(1.08);
}

.hotspot-drag-button.is-dragging {
  cursor: grabbing;
  z-index: 5;
  transform: translate(-50%, -50%) rotate(-1deg) scale(1.06);
}

body.has-expanded-hotspot-editor {
  overflow: hidden;
}

.hotspot-editor.is-expanded {
  position: fixed;
  inset: 12px;
  z-index: 90;
  grid-template-rows: auto auto auto 1fr auto;
  min-height: 0;
  max-width: none;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 8%, rgba(55, 216, 255, 0.16), transparent 28%),
    rgba(5, 7, 16, 0.98);
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.68),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: auto;
}

.hotspot-editor.is-expanded .hotspot-map-editor {
  width: var(--hotspot-map-expanded-width, 1672px);
  max-width: none;
  height: var(--hotspot-map-expanded-height, 941px);
  aspect-ratio: auto;
  margin: 0 auto;
}

.hotspot-editor.is-expanded .hotspot-list {
  max-height: 150px;
}

.hotspot-editor.is-expanded .hotspot-drag-button {
  font-size: 0.72rem;
}

body.has-expanded-hotspot-editor:not(.builder-is-open) .city-builder-admin {
  position: fixed;
  top: clamp(12px, 1.8vw, 22px);
  right: clamp(12px, 1.8vw, 22px);
  z-index: 140;
  width: min(360px, calc(100vw - 28px));
  max-width: none;
  gap: 0;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent 48%),
    rgba(6, 9, 20, 0.82);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
}

body.has-expanded-hotspot-editor:not(.builder-is-open) .city-builder-admin .builder-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

body.has-expanded-hotspot-editor:not(.builder-is-open) .city-builder-admin .dock-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

body.has-expanded-hotspot-editor:not(.builder-is-open) .city-builder-admin .builder-header h2 {
  font-size: 1.2rem;
}

body.has-expanded-hotspot-editor:not(.builder-is-open) .city-builder-admin .builder-open-button {
  min-width: 118px;
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.8rem;
}

body.has-expanded-hotspot-editor:not(.builder-is-open) .city-builder-admin .builder-launch-card {
  display: none;
}

.hotspot-list {
  display: grid;
  gap: 9px;
  max-height: min(340px, 36dvh);
  overflow: auto;
  padding-right: 3px;
}

.hotspot-row {
  display: grid;
  grid-template-columns: minmax(138px, 0.72fr) minmax(0, 1.8fr);
  gap: 8px 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.hotspot-row.is-hotspot-row-hidden {
  border-color: rgba(255, 93, 143, 0.24);
  background: rgba(255, 93, 143, 0.08);
}

.hotspot-row.is-admin-map-focused {
  border-color: rgba(255, 221, 98, 0.72);
  background: rgba(255, 221, 98, 0.1);
  box-shadow: inset 0 0 0 1px rgba(55, 216, 255, 0.16);
}

@keyframes adminMapFocusPulse {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.28);
  }
}

.city-builder-admin,
.sales-guide-admin {
  position: relative;
  z-index: 100;
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 36%),
    rgba(8, 12, 27, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.sales-guide-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sales-guide-admin-header h2 {
  margin: 0;
  color: white;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 0.95;
}

.sales-guide-admin-header [data-sales-guide-live-state] {
  display: grid;
  place-items: center;
  min-width: 68px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(205, 214, 232, 0.9);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sales-guide-admin-header [data-sales-guide-live-state].is-live {
  border-color: rgba(55, 216, 255, 0.58);
  background: rgba(55, 216, 255, 0.14);
  color: rgba(203, 242, 255, 0.95);
  box-shadow: 0 0 18px rgba(55, 216, 255, 0.18);
}

.sales-guide-admin-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1fr);
  gap: 12px;
  align-items: end;
}

.sales-guide-admin-grid label,
.sales-guide-skin-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sales-guide-toggle {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.06);
}

.sales-guide-toggle input {
  width: 20px;
  height: 20px;
  accent-color: #37d8ff;
}

.sales-guide-admin-grid input[type="text"] {
  min-width: 0;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 0.92rem;
  font-weight: 850;
  outline: 0;
}

.sales-guide-admin-grid input[type="text"]:focus {
  border-color: rgba(55, 216, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(55, 216, 255, 0.12);
}

.sales-guide-skin-field {
  grid-column: 1 / -1;
}

.sales-guide-skin-options {
  display: grid;
  grid-template-columns: repeat(8, minmax(34px, 1fr));
  gap: 8px;
}

.sales-guide-skin-options button {
  aspect-ratio: 1;
  min-height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.38), transparent 26%),
    var(--guide-swatch);
  box-shadow: inset 0 -9px 18px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.sales-guide-skin-options button.is-selected,
.sales-guide-skin-options button:focus-visible {
  border-color: rgba(255, 229, 128, 0.92);
  outline: 0;
  box-shadow:
    0 0 0 3px rgba(255, 229, 128, 0.16),
    0 0 16px rgba(255, 218, 90, 0.22),
    inset 0 -9px 18px rgba(0, 0, 0, 0.18);
}

.sales-guide-admin-grid [data-sales-guide-save] {
  min-height: 48px;
  border: 1px solid rgba(255, 221, 98, 0.68);
  border-radius: 8px;
  padding: 0 18px;
  background: linear-gradient(135deg, rgba(43, 215, 255, 0.35), rgba(143, 104, 255, 0.3), rgba(255, 93, 143, 0.25));
  color: white;
  font-size: 0.92rem;
  font-weight: 950;
  cursor: pointer;
}

.sales-guide-admin-status {
  min-height: 20px;
  margin: 0;
  color: rgba(255, 229, 128, 0.9);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.25;
}

.public-guide-admin-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(300px, 1.2fr);
  gap: 12px;
  align-items: start;
}

.public-guide-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.public-guide-card h3 {
  margin: 0;
  color: white;
  font-size: 1rem;
  line-height: 1.1;
}

.public-guide-card p {
  margin: 0;
  color: rgba(205, 214, 232, 0.82);
  font-size: 0.84rem;
  font-weight: 780;
  line-height: 1.35;
}

.public-guide-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.public-guide-card label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.public-guide-card input[type="text"],
.public-guide-card input[type="file"],
.public-guide-card select,
.public-guide-card textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 0.84rem;
  font-weight: 820;
  outline: 0;
  resize: vertical;
}

.public-guide-card input[type="text"],
.public-guide-card select {
  min-height: 42px;
}

.public-guide-png-upload small {
  color: rgba(205, 214, 232, 0.72);
  font-size: 0.68rem;
  font-weight: 820;
  line-height: 1.25;
  text-transform: none;
}

.public-guide-card input:focus,
.public-guide-card select:focus,
.public-guide-card textarea:focus {
  border-color: rgba(55, 216, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(55, 216, 255, 0.12);
}

.public-guide-settings-card {
  grid-column: 1;
}

.public-guide-template-card {
  grid-column: 1;
}

.public-guide-template-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.public-guide-template-list button {
  display: grid;
  gap: 4px;
  min-height: 118px;
  border: 1px solid rgba(55, 216, 255, 0.26);
  border-radius: 8px;
  padding: 11px;
  background:
    linear-gradient(145deg, rgba(55, 216, 255, 0.12), rgba(255, 221, 98, 0.08)),
    rgba(255, 255, 255, 0.055);
  color: white;
  text-align: left;
  cursor: pointer;
}

.public-guide-template-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.public-guide-template-list button:hover,
.public-guide-template-list button:focus-visible {
  border-color: rgba(255, 229, 128, 0.75);
  outline: 0;
  box-shadow: 0 0 18px rgba(55, 216, 255, 0.16);
}

.public-guide-template-list strong {
  font-size: 0.9rem;
  font-weight: 950;
}

.public-guide-template-list small {
  color: rgba(255, 229, 128, 0.9);
  font-size: 0.66rem;
  font-weight: 920;
  text-transform: uppercase;
}

.public-guide-template-list span {
  color: rgba(205, 214, 232, 0.82);
  font-size: 0.72rem;
  font-weight: 820;
  line-height: 1.25;
}

.public-guide-template-list em {
  align-self: end;
  color: rgba(55, 216, 255, 0.92);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.public-guide-list-card {
  grid-column: 1;
}

.public-guide-editor {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.public-guide-preview-card {
  grid-column: 1 / -1;
}

.public-guide-list {
  display: grid;
  gap: 7px;
  max-height: 250px;
  overflow: auto;
}

.public-guide-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: stretch;
}

.public-guide-list-item {
  display: grid;
  gap: 4px;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  text-align: left;
  cursor: pointer;
}

.public-guide-list-row.is-selected .public-guide-list-item,
.public-guide-list-item.is-selected {
  border-color: rgba(255, 229, 128, 0.72);
  background: rgba(255, 218, 90, 0.12);
}

.public-guide-list-item span {
  font-size: 0.85rem;
  font-weight: 950;
}

.public-guide-list-item small {
  color: rgba(205, 214, 232, 0.76);
  font-size: 0.66rem;
  font-weight: 850;
}

.public-guide-delete-small {
  min-width: 68px;
  min-height: 52px;
  border: 1px solid rgba(255, 93, 143, 0.46);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 93, 143, 0.11);
  color: white;
  font-size: 0.68rem;
  font-weight: 950;
  cursor: pointer;
}

.public-guide-delete-small:hover,
.public-guide-delete-small:focus-visible,
.public-guide-editor [data-public-guide-delete]:hover,
.public-guide-editor [data-public-guide-delete]:focus-visible {
  border-color: rgba(255, 93, 143, 0.9);
  outline: 0;
  box-shadow: 0 0 16px rgba(255, 93, 143, 0.18);
}

.public-guide-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.public-guide-wide {
  grid-column: 1 / -1;
}

.public-guide-save-row {
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.public-guide-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.public-guide-preview strong {
  display: block;
  margin-bottom: 4px;
  color: white;
  font-size: 1rem;
}

.public-guide-preview-bubble {
  display: inline-block;
  margin-top: 8px;
  border: 1px solid rgba(255, 229, 128, 0.36);
  border-radius: 9px;
  padding: 7px 9px;
  background: rgba(255, 218, 90, 0.12);
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
}

.public-guide-preview button,
.public-guide-card-header button,
.public-guide-save-row button,
.public-guide-editor [data-public-guide-delete] {
  min-height: 38px;
  border: 1px solid rgba(255, 221, 98, 0.62);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 221, 98, 0.16);
  color: white;
  font-size: 0.76rem;
  font-weight: 950;
  cursor: pointer;
}

.public-guide-editor [data-public-guide-delete] {
  border-color: rgba(255, 93, 143, 0.58);
  background: rgba(255, 93, 143, 0.16);
}

.builder-open-button {
  display: grid;
  place-items: center;
  min-height: 48px;
  min-width: 156px;
  border: 1px solid rgba(255, 221, 98, 0.72);
  border-radius: 8px;
  padding: 0 20px;
  background: linear-gradient(135deg, rgba(43, 215, 255, 0.38), rgba(143, 104, 255, 0.32), rgba(255, 93, 143, 0.28));
  color: white;
  font-size: 0.98rem;
  font-weight: 950;
  cursor: pointer;
}

.builder-launch-card {
  display: grid;
  gap: 5px;
  max-width: 620px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.builder-launch-card strong {
  color: white;
  font-size: 1rem;
}

.builder-launch-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.35;
}

.builder-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: none;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: rgba(3, 7, 16, 0.97);
  overflow: auto;
}

.builder-modal.is-open {
  display: block;
}

body.builder-is-open {
  overflow: hidden;
}

body.builder-is-open .city-builder-admin {
  z-index: 1000;
}

body.builder-is-open .admin-locations,
body.builder-is-open .hotspot-editor,
body.builder-is-open .sales-guide-admin,
body.builder-is-open .admin-panel {
  z-index: 1;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

body.builder-is-open .admin-topbar,
body.builder-is-open .admin-locations {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.builder-workbench {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(620px, 1fr) minmax(280px, 340px);
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas:
    "library map inspector";
  gap: 8px;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 28%),
    rgba(7, 12, 26, 0.98);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.builder-side-header,
.builder-map-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.builder-map-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.builder-side-header h3,
.builder-map-title strong {
  margin: 0;
  color: white;
  line-height: 1;
}

.builder-map-title span {
  color: rgba(255, 221, 98, 0.8);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.builder-close-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-weight: 950;
  cursor: pointer;
}

.builder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.builder-header h2,
.builder-inspector h3 {
  margin: 0;
  line-height: 1;
}

.builder-save-actions,
.builder-toolbar,
.builder-mode-tabs,
.builder-map-actions,
.builder-public-map-actions,
.builder-map-mode-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.builder-map-mode-toggle {
  order: 8;
}

.builder-map-mode-toggle[hidden] {
  display: none;
}

.builder-map-mode-toggle button {
  flex: 1 1 120px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 0.78rem;
  font-weight: 950;
  cursor: pointer;
}

.builder-map-mode-toggle button.is-active {
  border-color: rgba(255, 221, 98, 0.76);
  background: linear-gradient(135deg, rgba(43, 215, 255, 0.28), rgba(143, 104, 255, 0.26), rgba(255, 93, 143, 0.24));
}

.builder-map-switchboard {
  display: grid;
  order: 9;
  gap: 8px;
  border: 1px solid rgba(55, 216, 255, 0.28);
  border-radius: 8px;
  padding: 10px;
  background: rgba(55, 216, 255, 0.08);
}

.builder-map-switchboard[hidden] {
  display: none;
}

.builder-map-switchboard label {
  display: grid;
  gap: 6px;
}

.builder-map-switchboard label span {
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.builder-map-switchboard button {
  min-height: 42px;
  border: 1px solid rgba(255, 221, 98, 0.68);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(43, 215, 255, 0.3), rgba(255, 93, 143, 0.24));
  color: white;
  font-size: 0.78rem;
  font-weight: 950;
  cursor: pointer;
}

.builder-map-switchboard small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.35;
}

.builder-save-actions {
  order: 20;
  padding-bottom: 2px;
}

.builder-map-release {
  display: grid;
  gap: 10px;
  order: 10;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.builder-map-release.is-save-confirmed {
  border-color: rgba(87, 242, 138, 0.82);
  box-shadow: 0 0 0 3px rgba(87, 242, 138, 0.16);
}

.builder-map-release[hidden] {
  display: none;
}

.builder-map-release-heading,
.builder-map-release-interval,
.builder-map-release-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.builder-map-release-heading {
  justify-content: space-between;
}

.builder-map-release-heading strong {
  font-size: 0.78rem;
  line-height: 1;
}

.builder-map-release-heading span {
  border: 1px solid rgba(255, 221, 98, 0.34);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--gold);
  background: rgba(255, 221, 98, 0.08);
  font-size: 0.68rem;
  font-weight: 950;
}

.builder-map-release-countdown {
  border: 1px solid rgba(55, 216, 255, 0.26);
  border-radius: 8px;
  padding: 9px 10px;
  color: white;
  background: rgba(55, 216, 255, 0.08);
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.builder-map-release-list {
  display: grid;
  gap: 6px;
  max-height: min(42dvh, 320px);
  overflow: auto;
  padding-right: 2px;
}

.builder-map-release-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px;
  background: rgba(5, 8, 18, 0.5);
}

.builder-map-release-option.is-selected {
  border-color: rgba(255, 221, 98, 0.46);
  background: rgba(255, 221, 98, 0.08);
}

.builder-map-release-option label {
  display: grid;
  grid-template-columns: auto 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  cursor: pointer;
}

.builder-map-release-option img {
  width: 42px;
  height: 30px;
  border-radius: 6px;
  object-fit: cover;
}

.builder-map-release-option span {
  display: grid;
  gap: 2px;
  overflow: hidden;
}

.builder-map-release-option strong,
.builder-map-release-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.builder-map-release-option strong {
  color: white;
  font-size: 0.74rem;
  font-weight: 900;
}

.builder-map-release-option small {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 850;
}

.builder-map-release-order {
  display: grid;
  gap: 4px;
}

.builder-map-release-order button {
  min-width: 54px;
  min-height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 0.64rem;
  font-weight: 950;
  cursor: pointer;
}

.builder-map-release-order button:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.builder-map-release-interval label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.builder-map-release-interval input {
  width: 82px;
}

.builder-map-release p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.builder-map-select-label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.builder-map-select-label select {
  max-width: min(30vw, 230px);
  min-height: 28px;
  border: 0;
  border-radius: 6px;
  padding: 0 8px;
  background: rgba(6, 10, 22, 0.82);
  color: white;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  outline: 0;
}

.builder-save-actions button,
.builder-map-release-actions button,
.builder-toolbar button,
.builder-mode-tabs button,
.builder-map-actions button,
.builder-public-map-actions button,
.builder-map-actions button[data-builder-toolbar-delete],
.builder-lock-row button,
.builder-library-tools button[data-builder-delete-menu],
.builder-upload-button span,
.builder-map-upload-button span {
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  color: white;
  font-size: 0.78rem;
  font-weight: 950;
  cursor: pointer;
}

.builder-map-actions button[data-builder-toolbar-delete],
.builder-library-tools button[data-builder-delete-menu],
.builder-inspector-actions button[data-builder-delete] {
  border-color: rgba(255, 93, 143, 0.6);
  background: rgba(255, 93, 143, 0.16);
}

.builder-map-actions button[data-builder-toolbar-delete]:hover,
.builder-map-actions button[data-builder-toolbar-delete]:focus-visible,
.builder-library-tools button[data-builder-delete-menu]:hover,
.builder-library-tools button[data-builder-delete-menu]:focus-visible,
.builder-inspector-actions button[data-builder-delete]:hover,
.builder-inspector-actions button[data-builder-delete]:focus-visible {
  border-color: rgba(255, 93, 143, 0.95);
  background: rgba(255, 93, 143, 0.28);
}

.builder-library-tools button[data-builder-delete-menu]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.builder-save-actions button:last-child,
.builder-mode-tabs button.is-active,
.builder-toolbar button.is-active,
.builder-toolbar button[aria-pressed="true"],
.builder-lock-row button[aria-pressed="true"],
.builder-map-actions button[aria-pressed="true"],
.builder-public-map-actions button[aria-pressed="true"] {
  border-color: rgba(255, 221, 98, 0.76);
  background: linear-gradient(135deg, rgba(43, 215, 255, 0.28), rgba(143, 104, 255, 0.26), rgba(255, 93, 143, 0.24));
}

.builder-map-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.builder-save-actions button[data-builder-save],
.builder-save-actions button[data-builder-publish] {
  min-width: 126px;
}

.city-builder-admin.has-unsaved-builder-changes .builder-save-actions button[data-builder-save] {
  border-color: rgba(255, 221, 98, 0.86);
  background: linear-gradient(135deg, rgba(255, 221, 98, 0.34), rgba(43, 215, 255, 0.22));
  box-shadow: 0 0 0 3px rgba(255, 221, 98, 0.12), 0 12px 26px rgba(0, 0, 0, 0.2);
}

.builder-library-tools select,
.builder-library-tools input,
.builder-map-switchboard select,
.builder-map-release-interval input,
.builder-map-release-interval select,
.builder-field input,
.builder-field select {
  min-height: 38px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  outline: 0;
}

.builder-upload-button input,
.builder-map-upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.builder-upload-button {
  order: 50;
}

.builder-map-upload-button span {
  border-color: rgba(55, 216, 255, 0.48);
  background: rgba(55, 216, 255, 0.14);
}

.builder-map-library-block {
  display: grid;
  gap: 8px;
  min-height: 0;
}

.builder-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.builder-section-title h4 {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.builder-map-library {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 210px;
  overflow: auto;
  padding-right: 2px;
}

.builder-map-card {
  position: relative;
  display: grid;
  grid-template-rows: 58px auto auto;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: white;
  cursor: pointer;
  text-align: left;
}

.builder-map-card.is-active {
  border-color: rgba(255, 221, 98, 0.82);
  box-shadow: 0 0 0 2px rgba(255, 221, 98, 0.14), 0 0 24px rgba(55, 216, 255, 0.16);
}

.builder-map-card img {
  width: 100%;
  height: 58px;
  border-radius: 6px;
  object-fit: cover;
}

.builder-map-card span,
.builder-map-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.builder-map-card span {
  font-size: 0.72rem;
  font-weight: 950;
}

.builder-map-card small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.6rem;
  font-weight: 850;
}

.builder-map-card button[data-builder-map-delete] {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(126, 29, 47, 0.92);
  color: white;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 950;
  cursor: pointer;
}

.builder-library-panel,
.builder-inspector {
  position: relative;
  z-index: 60;
  display: grid;
  align-content: start;
  gap: 9px;
  max-height: 640px;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.builder-library-panel {
  grid-area: library;
  grid-template-rows: none;
  overflow: auto;
}

.city-builder-admin[data-builder-active-kind="map"] .builder-library-panel {
  overflow: auto;
}

.builder-map-panel {
  grid-area: map;
}

.builder-inspector {
  grid-area: inspector;
}

.builder-modal .builder-library-panel,
.builder-modal .builder-inspector {
  max-height: none;
  min-height: 0;
  border-radius: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.24);
}

.builder-modal .builder-inspector {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  align-content: start;
  gap: 10px;
  width: auto;
  max-height: none;
  min-height: 0;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(5, 8, 18, 0.9);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}

.builder-library-tools {
  display: grid;
  order: 30;
  gap: 8px;
}

.builder-library {
  display: grid;
  align-content: start;
  order: 40;
  gap: 9px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.city-builder-admin[data-builder-active-kind="map"] .builder-library {
  max-height: min(28dvh, 260px);
}

.builder-asset {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items: center;
  min-height: 84px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.07);
  color: white;
  text-align: left;
  cursor: pointer;
  user-select: none;
}

.builder-asset:hover {
  border-color: rgba(55, 216, 255, 0.58);
  background: rgba(255, 255, 255, 0.1);
}

.builder-asset.is-active {
  border-color: rgba(55, 216, 255, 0.8);
  box-shadow: 0 0 18px rgba(55, 216, 255, 0.16);
}

.builder-asset img {
  grid-row: 1 / span 2;
  width: 72px;
  height: 62px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.builder-map-asset {
  grid-template-columns: 112px minmax(0, 1fr) auto;
  min-height: 92px;
}

.builder-map-asset img {
  width: 112px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
}

.builder-asset span {
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.05;
  text-overflow: ellipsis;
}

.builder-asset small {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.builder-asset strong {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 30px;
  border-radius: 7px;
  background: rgba(55, 216, 255, 0.14);
  color: white;
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.builder-asset button[data-builder-map-delete],
.builder-asset button[data-builder-asset-delete] {
  grid-column: 3;
  grid-row: 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 93, 143, 0.55);
  border-radius: 7px;
  background: rgba(255, 93, 143, 0.18);
  color: white;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  cursor: pointer;
}

.builder-asset.is-default button[data-builder-map-delete],
.builder-asset.is-default button[data-builder-asset-delete] {
  border-color: rgba(255, 221, 98, 0.5);
  background: rgba(255, 221, 98, 0.14);
}

.builder-map-card button[data-builder-map-delete]:hover,
.builder-map-card button[data-builder-map-delete]:focus-visible,
.builder-asset button[data-builder-map-delete]:hover,
.builder-asset button[data-builder-map-delete]:focus-visible,
.builder-asset button[data-builder-asset-delete]:hover,
.builder-asset button[data-builder-asset-delete]:focus-visible {
  border-color: rgba(255, 93, 143, 0.95);
  background: rgba(255, 93, 143, 0.32);
}

.builder-map-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  min-height: 0;
  padding: 8px;
  isolation: isolate;
  overflow: auto;
}

.builder-public-map-panel {
  position: relative;
  z-index: 45;
  display: grid;
  grid-template-columns: minmax(600px, 1fr) minmax(260px, 340px);
  align-items: stretch;
  gap: 12px;
  margin: 0;
  border: 1px solid rgba(255, 221, 98, 0.24);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(255, 221, 98, 0.09), rgba(55, 216, 255, 0.07)),
    rgba(6, 11, 24, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 18px 48px rgba(0, 0, 0, 0.26);
}

.builder-public-map-preview {
  position: relative;
  width: 100%;
  min-height: clamp(420px, 52dvh, 760px);
  max-height: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.32);
  overflow: hidden;
  cursor: crosshair;
  touch-action: none;
}

.builder-public-map-preview img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: inherit;
  object-fit: fill;
}

.builder-public-map-preview span {
  position: absolute;
  border: 2px solid rgba(255, 221, 98, 0.98);
  border-radius: 5px;
  background:
    linear-gradient(rgba(255, 221, 98, 0.1), rgba(55, 216, 255, 0.05)),
    rgba(255, 221, 98, 0.06);
  box-shadow:
    0 0 0 999px rgba(1, 4, 12, 0.54),
    0 0 0 1px rgba(5, 8, 18, 0.78) inset,
    0 0 18px rgba(255, 221, 98, 0.52);
  cursor: move;
  pointer-events: auto;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.builder-public-map-preview span::before {
  content: "Visitor view";
  position: absolute;
  left: 8px;
  top: 8px;
  max-width: calc(100% - 18px);
  overflow: hidden;
  color: white;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  pointer-events: none;
}

.builder-public-map-preview span i {
  position: absolute;
  right: -13px;
  bottom: -13px;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(1, 4, 12, 0.82);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 221, 98, 0.98), rgba(55, 216, 255, 0.92));
  box-shadow: 0 0 0 2px rgba(255, 221, 98, 0.3), 0 8px 18px rgba(0, 0, 0, 0.34);
  cursor: nwse-resize;
  pointer-events: auto;
}

.builder-public-map-preview span.is-adjusting {
  border-color: rgba(55, 216, 255, 0.98);
  box-shadow:
    0 0 0 999px rgba(1, 4, 12, 0.5),
    0 0 20px rgba(55, 216, 255, 0.62);
}

.city-builder-admin .builder-public-map-preview {
  cursor: crosshair;
}

.city-builder-admin .builder-public-map-preview span {
  cursor: move;
}

.builder-public-map-copy {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: rgba(5, 8, 18, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.builder-public-map-copy-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.builder-public-map-copy .dock-kicker {
  margin: 0 0 4px;
  color: rgba(55, 216, 255, 0.82);
  font-size: 0.62rem;
}

.builder-public-map-copy strong {
  display: block;
  color: white;
  font-size: 1rem;
  line-height: 1.05;
}

.builder-public-map-copy small {
  display: block;
  color: rgba(205, 214, 232, 0.84);
  font-size: 0.72rem;
  font-weight: 780;
  line-height: 1.35;
}

.builder-public-map-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.builder-map-topbar {
  position: relative;
  z-index: 50;
  min-height: 42px;
  padding: 0;
}

.builder-canvas-viewport {
  position: relative;
  z-index: 1;
  min-height: 680px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    #07111b;
  background-size: 20px 20px;
  overflow: auto;
  clip-path: inset(0 round 8px);
  isolation: isolate;
}

.builder-modal .builder-canvas-viewport {
  min-height: 680px;
  height: auto;
  border-radius: 8px;
}

.builder-canvas-viewport.is-builder-drop-ready {
  border-color: rgba(55, 216, 255, 0.72);
  box-shadow: inset 0 0 0 3px rgba(55, 216, 255, 0.12), 0 0 28px rgba(55, 216, 255, 0.16);
}

.builder-canvas {
  position: relative;
  transform-origin: 0 0;
  min-width: 1672px;
  min-height: 941px;
  background-image:
    radial-gradient(circle at 50% 40%, rgba(255, 226, 116, 0.11), transparent 26%),
    linear-gradient(135deg, rgba(56, 131, 52, 0.92), rgba(20, 66, 38, 0.96));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.builder-canvas > img {
  position: absolute;
  z-index: 1;
  display: block;
  user-select: none;
  pointer-events: none;
}

.builder-element-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: auto;
}

.builder-public-frame {
  position: absolute;
  z-index: 12;
  border: 2px solid rgba(255, 221, 98, 0.96);
  border-radius: 6px;
  background:
    linear-gradient(rgba(255, 221, 98, 0.08), rgba(55, 216, 255, 0.05));
  box-shadow:
    0 0 0 9999px rgba(1, 4, 12, 0.34),
    0 0 0 3px rgba(255, 221, 98, 0.16),
    0 0 28px rgba(255, 221, 98, 0.32);
  cursor: move;
  pointer-events: auto;
}

.builder-public-frame span {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(5, 7, 16, 0.82);
  color: white;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  pointer-events: none;
}

.builder-public-frame span strong,
.builder-public-frame span small {
  display: block;
  line-height: 1;
}

.builder-public-frame span small {
  margin-top: 4px;
  color: rgba(255, 221, 98, 0.78);
  font-size: 0.58rem;
  letter-spacing: 0;
}

.builder-public-frame i {
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 24px;
  height: 24px;
  border: 2px solid #06111c;
  border-radius: 50%;
  background: #ffdd62;
  box-shadow: 0 0 0 3px rgba(255, 221, 98, 0.18), 0 0 18px rgba(255, 221, 98, 0.5);
  cursor: nwse-resize;
}

.builder-canvas-item {
  position: absolute;
  display: block;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0;
  background: transparent;
  color: white;
  transform-origin: center;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
}

.builder-canvas-item:active {
  cursor: grabbing;
}

.builder-item-crop-frame {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: 4px;
}

.builder-canvas-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
  filter: drop-shadow(0 10px 9px rgba(0, 0, 0, 0.28));
  pointer-events: none;
  transform-origin: center;
}

.builder-canvas-item.is-selected {
  border-color: rgba(55, 216, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(55, 216, 255, 0.18), 0 0 26px rgba(55, 216, 255, 0.25);
  outline: 0;
}

.builder-canvas-item.is-hidden-item {
  opacity: 0.38;
}

.builder-canvas-item.is-locked-item {
  cursor: default;
}

.builder-canvas-item.is-locked-item.is-selected {
  border-color: rgba(255, 221, 98, 0.92);
  box-shadow: 0 0 0 3px rgba(255, 221, 98, 0.18), 0 0 24px rgba(255, 221, 98, 0.2);
}

.builder-item-label {
  position: absolute;
  left: 50%;
  bottom: -16px;
  max-width: 160px;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(4, 7, 18, 0.8);
  color: white;
  font-size: 0.64rem;
  font-weight: 950;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}

.builder-resize-handle {
  position: absolute;
  right: -11px;
  bottom: -11px;
  z-index: 5;
  width: 22px;
  height: 22px;
  border: 2px solid #06111c;
  border-radius: 50%;
  background: #37d8ff;
  opacity: 0;
  cursor: nwse-resize;
  box-shadow: 0 0 0 3px rgba(55, 216, 255, 0.16), 0 0 16px rgba(55, 216, 255, 0.5);
}

.builder-rotate-handle {
  position: absolute;
  right: -12px;
  top: -12px;
  z-index: 5;
  width: 23px;
  height: 23px;
  border: 2px solid #06111c;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, white 0 18%, transparent 20%),
    conic-gradient(from 20deg, #37d8ff, #ffdd62, #ff5d8f, #37d8ff);
  opacity: 0;
  cursor: grab;
  box-shadow: 0 0 0 3px rgba(255, 221, 98, 0.16), 0 0 16px rgba(255, 221, 98, 0.5);
}

.builder-asset-ghost {
  position: fixed;
  z-index: 80;
  width: 110px;
  height: 82px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.builder-asset-ghost img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 18px rgba(55, 216, 255, 0.35));
}

.builder-item-controls {
  position: absolute;
  z-index: 4;
  top: -38px;
  left: 50%;
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 140ms ease;
  white-space: nowrap;
}

.builder-item-controls button {
  min-width: 32px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 0 7px;
  background: rgba(5, 8, 18, 0.92);
  color: white;
  font-size: 0.64rem;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

.builder-item-controls button[data-builder-item-delete] {
  border-color: rgba(255, 120, 150, 0.62);
  background: rgba(96, 18, 32, 0.95);
}

.builder-item-controls button[data-builder-item-lock] {
  min-width: 28px;
  padding: 0 6px;
  border-color: rgba(255, 221, 98, 0.5);
  background: rgba(96, 72, 18, 0.95);
}

.builder-canvas-item:hover .builder-item-controls,
.builder-canvas-item.is-selected .builder-item-controls {
  opacity: 1;
  pointer-events: auto;
}

.builder-canvas-item:hover .builder-resize-handle,
.builder-canvas-item.is-selected .builder-resize-handle {
  opacity: 1;
}

.builder-canvas-item:hover .builder-rotate-handle,
.builder-canvas-item.is-selected .builder-rotate-handle {
  opacity: 1;
}

.city-builder-admin.is-previewing .builder-canvas-item {
  border-color: transparent;
  box-shadow: none;
}

.city-builder-admin.is-previewing .builder-resize-handle,
.city-builder-admin.is-previewing .builder-item-controls {
  display: none;
}

.builder-field {
  display: grid;
  gap: 5px;
}

.builder-field span,
.builder-check {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.builder-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.builder-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
}

.builder-lock-row {
  display: grid;
}

.builder-lock-row button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.builder-range-field {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.builder-range-field span,
.builder-range-field input {
  grid-column: 1 / -1;
}

.builder-range-field output {
  justify-self: end;
  color: white;
  font-size: 0.72rem;
  font-weight: 950;
}

.builder-inspector-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.builder-inspector-actions button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 0.78rem;
  font-weight: 950;
  cursor: pointer;
}

.builder-inspector-actions button[data-builder-delete] {
  border-color: rgba(255, 120, 150, 0.56);
  background: rgba(96, 18, 32, 0.8);
}

.builder-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.builder-status {
  order: 60;
  min-height: 20px;
  margin: 0;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 850;
}

.city-builder-admin.has-unsaved-builder-changes .builder-status {
  color: #ffe36e;
}

.admin-location-builder {
  border-color: rgba(255, 221, 98, 0.22);
}

.hotspot-builder-preview {
  position: absolute;
  display: block;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  transform-origin: center;
  cursor: pointer;
  filter: none;
}

.hotspot-builder-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.hotspot-builder-preview span {
  position: absolute;
  left: 50%;
  bottom: -18px;
  max-width: 140px;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(4, 7, 18, 0.84);
  color: white;
  font-size: 0.6rem;
  font-weight: 950;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}

.hotspot-builder-preview:hover,
.hotspot-builder-preview:focus-visible {
  box-shadow: none;
  filter: none;
  outline: 0;
}

.world-builder-public-layer {
  position: absolute;
  inset: 0;
  z-index: 12;
  overflow: hidden;
  contain: layout paint;
  pointer-events: none;
}

.world-builder-public-art-layer {
  z-index: 12;
}

.world-builder-public-button-layer {
  z-index: 500;
}

.world-builder-public-item {
  position: absolute;
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  transform-origin: center;
  will-change: transform;
}

.world-builder-public-crop-frame {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.world-builder-public-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0.6vw 0.55vw rgba(0, 0, 0, 0.28));
  pointer-events: none;
  transform-origin: center;
}

.world-builder-public-place {
  pointer-events: auto;
}

.world-builder-public-place:hover,
.world-builder-public-place:focus-visible {
  outline: 0;
}

.world-builder-public-place::after {
  position: absolute;
  inset: -0.45vw;
  border: 0.18vw solid rgba(255, 218, 90, 0.96);
  border-radius: 0.55vw;
  box-shadow:
    0 0 0.9vw rgba(255, 218, 90, 0.58),
    0 0 1.4vw rgba(55, 216, 255, 0.32) inset;
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.world-builder-public-place.is-signal-active::after {
  opacity: 1;
  transform: scale(1.04);
}

.world-builder-public-item > .world-builder-public-label {
  position: absolute;
  left: 50%;
  bottom: -0.8vw;
  max-width: min(100%, 11vw);
  padding: 0.2vw 0.45vw;
  border-radius: 0.3vw;
  background: rgba(4, 7, 18, 0.78);
  color: white;
  font-size: clamp(0.42rem, 0.56vw, 0.68rem);
  font-weight: 950;
  line-height: 1;
  overflow: hidden;
  pointer-events: none;
  text-overflow: ellipsis;
  transform: translateX(-50%);
  white-space: nowrap;
}

.map-content.is-public-frame-tight .world-builder-public-item > .world-builder-public-label {
  display: none;
}

.admin-workspace {
  grid-template-columns: minmax(170px, 210px) minmax(0, 1fr);
  max-width: 1820px;
}

.admin-locations {
  grid-row: 1 / span 4;
}

.hotspot-editor,
.city-builder-admin,
.sales-guide-admin,
.admin-panel {
  grid-column: 2;
}

.hotspot-row-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.hotspot-row-title strong,
.hotspot-row-title span {
  min-width: 0;
  overflow: hidden;
  color: white;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hotspot-row-title span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hotspot-position {
  grid-column: 1;
  grid-row: 2;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.building-setting-controls {
  grid-column: 2;
  display: grid;
  grid-template-columns: 88px minmax(150px, 1fr) minmax(150px, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.hotspot-row-actions {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.hotspot-share-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  min-width: 0;
}

.hotspot-share-group input {
  min-width: 0;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0 9px;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(230, 236, 255, 0.84);
  font-size: 0.72rem;
  font-weight: 750;
  outline: 0;
}

.building-setting-controls select,
.building-setting-controls input[type="url"],
.building-setting-controls input[type="text"],
.building-setting-save {
  min-width: 0;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 0.78rem;
  font-weight: 850;
  outline: 0;
}

.building-setting-save {
  border-color: rgba(255, 211, 77, 0.44);
  padding: 0 12px;
  background: rgba(255, 211, 77, 0.16);
  color: white;
  cursor: pointer;
}

.building-setting-controls input[type="url"]::placeholder,
.building-setting-controls input[type="text"]::placeholder {
  color: rgba(174, 186, 209, 0.72);
}

.building-setting-controls select:focus,
.building-setting-controls input[type="url"]:focus,
.building-setting-controls input[type="text"]:focus,
.building-setting-save:focus-visible {
  border-color: rgba(55, 216, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(55, 216, 255, 0.12);
}

.hotspot-row button {
  min-height: 36px;
  padding: 0 8px;
  font-size: 0.78rem;
}

.hotspot-row .hotspot-remove,
.hotspot-row .hotspot-restore,
.hotspot-row .hotspot-delete-forever,
.hotspot-row .hotspot-share-button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.09);
}

.hotspot-row .hotspot-remove {
  border-color: rgba(255, 93, 143, 0.34);
  background: rgba(255, 93, 143, 0.16);
}

.hotspot-row .hotspot-delete-forever {
  border-color: rgba(255, 93, 143, 0.56);
  background: linear-gradient(135deg, rgba(255, 93, 143, 0.22), rgba(20, 6, 18, 0.42));
}

.hotspot-row .hotspot-restore {
  border-color: rgba(87, 242, 138, 0.38);
  background: rgba(87, 242, 138, 0.14);
}

.hotspot-row .hotspot-share-button {
  border-color: rgba(55, 216, 255, 0.34);
  background: rgba(55, 216, 255, 0.13);
}

.admin-panel {
  display: flex;
  flex-direction: column;
  min-height: min(760px, calc(100dvh - 92px));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: clamp(16px, 2vw, 24px);
  background: var(--panel-strong);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.admin-panel .dock-header h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 0.95;
}

.admin-panel .collection {
  overflow: visible;
  padding-right: 0;
}

.viewer-status {
  margin-bottom: 12px;
}

.video-dock {
  position: fixed;
  z-index: 8;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(460px, 100vw);
  height: 100dvh;
  padding: max(22px, env(safe-area-inset-top)) 22px max(22px, env(safe-area-inset-bottom));
  background: var(--panel-strong);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: -28px 0 80px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  transform: translateX(105%);
  transition: transform 240ms ease;
}

.video-dock.is-open {
  pointer-events: auto;
  transform: translateX(0);
}

.dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dock-share-button {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid rgba(55, 216, 255, 0.44);
  border-radius: 8px;
  padding: 0 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 48%),
    rgba(55, 216, 255, 0.14);
  color: white;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 950;
}

.dock-share-button:hover,
.dock-share-button:focus-visible {
  border-color: rgba(255, 229, 128, 0.82);
  outline: 0;
}

.dock-kicker {
  margin: 0 0 5px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dock-header h1 {
  margin: 0;
  font-size: clamp(1.55rem, 5vw, 2.25rem);
  line-height: 1;
}

.icon-button {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.dock-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.dock-actions.is-resource-mode .file-loader,
.dock-actions.is-resource-mode .link-form {
  display: none;
}

.resource-quick-add.album-add-button {
  justify-self: start;
  min-height: 50px;
  min-width: min(100%, 280px);
  font-size: 0.95rem;
}

.file-loader input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.file-loader span,
.link-form button,
.youtube-folder-form button,
.cover-loader span,
.retry-video,
.remove-video {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #2bd7ff, #8f68ff 62%, #ff5d8f);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.link-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 8px;
}

.youtube-folder-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px 78px;
  gap: 8px;
}

.link-form input,
.youtube-folder-form input {
  min-width: 0;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.youtube-folder-form button {
  min-width: 0;
  padding: 0 10px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.youtube-folder-form button[type="button"] {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.05);
}

.link-form .link-title-input {
  grid-column: 1 / -1;
}

.upload-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.upload-progress {
  position: relative;
  overflow: hidden;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.upload-progress[hidden] {
  display: none;
}

.upload-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--upload-progress, 0%);
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2bd7ff, #8f68ff 58%, #ffdf5a);
  box-shadow: 0 0 18px rgba(43, 215, 255, 0.35);
  transition: width 0.22s ease;
}

.upload-progress.is-indeterminate span {
  width: 42%;
  min-width: 86px;
  animation: uploadSlide 1.05s ease-in-out infinite;
}

.upload-progress.is-complete span {
  background: linear-gradient(90deg, #42f59b, #2bd7ff);
}

.upload-progress.is-error span {
  width: 100%;
  background: linear-gradient(90deg, #ff5d8f, #ffb84d);
}

@keyframes uploadSlide {
  0% {
    transform: translateX(-115%);
  }

  100% {
    transform: translateX(260%);
  }
}

.collection {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding-right: 4px;
  min-height: 0;
}

.collection.is-garden-video-list {
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}

.collection.is-garden-video-list:has(.dgtv-home-link),
.collection.is-dgtv-video-list {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.video-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.video-card.is-audio-card {
  grid-column: 1 / -1;
  min-height: 124px;
  overflow: visible;
}

.dgtv-home-link {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 132px;
  border: 1px solid rgba(255, 141, 255, 0.48);
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.28), transparent 18%),
    linear-gradient(135deg, rgba(255, 93, 255, 0.34), rgba(55, 216, 255, 0.26) 52%, rgba(255, 211, 77, 0.24));
  box-shadow:
    0 0 22px rgba(255, 93, 255, 0.18),
    inset 0 0 28px rgba(255, 255, 255, 0.08);
  color: white;
  text-decoration: none;
}

.dgtv-home-link:hover,
.dgtv-home-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 0 28px rgba(255, 93, 255, 0.28),
    0 0 34px rgba(55, 216, 255, 0.2);
  outline: 0;
}

.dgtv-home-link span {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(2, 3, 10, 0.58);
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dgtv-home-link strong {
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  line-height: 1;
}

.collection.is-garden-video-list .dgtv-home-link,
.collection.is-dgtv-video-list .dgtv-home-link {
  min-height: 154px;
  align-content: end;
  gap: 8px;
  padding: 10px;
}

.collection.is-garden-video-list .dgtv-home-link span,
.collection.is-dgtv-video-list .dgtv-home-link span {
  padding: 5px 8px;
  font-size: 0.68rem;
}

.collection.is-garden-video-list .dgtv-home-link strong,
.collection.is-dgtv-video-list .dgtv-home-link strong {
  font-size: clamp(0.86rem, 2.2vw, 1.05rem);
  line-height: 1.08;
}

.album-links-section {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 211, 77, 0.24);
  border-radius: 8px;
  padding: 14px;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 211, 77, 0.16), transparent 32%),
    rgba(255, 255, 255, 0.06);
}

.album-links-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.album-links-header h3,
.album-form-header h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  line-height: 1;
}

.album-add-button,
.album-sync-button,
.album-save-button,
.album-cancel-button,
.album-open-link,
.album-edit-button,
.album-delete-button {
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 13px;
  background: linear-gradient(135deg, #ffd34d, #ff8d4d 58%, #ff5d8f);
  color: #140d08;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
}

.album-cancel-button {
  background: rgba(255, 255, 255, 0.11);
  color: white;
}

.album-sync-button {
  background: linear-gradient(135deg, #37d8ff, #57f28a);
  color: #06120c;
}

.card-admin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.album-edit-button,
.album-delete-button {
  min-height: 34px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.78rem;
}

.album-delete-button {
  background: rgba(255, 93, 143, 0.18);
}

.album-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.album-empty-state {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  font-weight: 800;
}

.album-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 10, 21, 0.72);
}

.album-cover {
  min-height: 142px;
  background:
    linear-gradient(rgba(8, 12, 28, 0.1), rgba(8, 12, 28, 0.46)),
    var(--album-cover, radial-gradient(circle at 44% 38%, rgba(255, 211, 77, 0.42), transparent 30%)),
    #02030a;
  background-position: center;
  background-size: cover;
}

.resource-card .album-cover {
  display: grid;
  place-items: center;
  min-height: 168px;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 12%, rgba(55, 216, 255, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
    #050712;
}

.resource-card .album-cover.has-image {
  min-height: 0;
}

.resource-card .album-cover.is-missing-image::before {
  content: "Link";
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(255, 211, 77, 0.34);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(255, 211, 77, 0.08);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.resource-icon-image {
  display: block;
  width: clamp(128px, 32vw, 180px);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #02030a;
  color: transparent;
  font-size: 0;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(55, 216, 255, 0.12);
}

.youtube-channel-section {
  border-color: rgba(255, 0, 0, 0.28);
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 60, 60, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(55, 216, 255, 0.05)),
    rgba(255, 255, 255, 0.055);
}

.youtube-channel-header {
  flex-wrap: wrap;
}

.youtube-channel-status {
  margin: 5px 0 0;
  color: rgba(205, 214, 232, 0.78);
  font-size: 0.78rem;
  font-weight: 850;
}

.youtube-channel-saved-url {
  overflow: hidden;
  margin: 0;
  color: rgba(205, 214, 232, 0.8);
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.youtube-channel-inline {
  display: grid;
  gap: 12px;
}

.youtube-channel-embed-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 211, 77, 0.3);
  border-radius: 8px;
  background: #02030a;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(55, 216, 255, 0.12);
}

.youtube-channel-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.youtube-channel-inline-error {
  min-height: 130px;
}

.youtube-channel-page {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.youtube-channel-page-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(255, 64, 64, 0.18), rgba(55, 216, 255, 0.1)),
    rgba(255, 255, 255, 0.06);
}

.youtube-channel-page-header h3,
.youtube-channel-page-header p {
  margin: 0;
}

.youtube-channel-page-header h3 {
  color: white;
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  line-height: 1;
}

.youtube-channel-page-header > div > p:not(.dock-kicker) {
  margin-top: 5px;
  color: rgba(205, 214, 232, 0.82);
  font-size: 0.82rem;
  font-weight: 850;
}

.youtube-channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.youtube-channel-video-card {
  background: rgba(7, 10, 21, 0.78);
}

.youtube-channel-video-cover {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 142px;
  border: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(8, 12, 28, 0.1), rgba(8, 12, 28, 0.58)),
    var(--youtube-channel-cover, radial-gradient(circle at 48% 38%, rgba(255, 64, 64, 0.36), transparent 32%)),
    #02030a;
  background-position: center;
  background-size: cover;
  color: white;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.youtube-channel-video-player-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #02030a;
}

.youtube-channel-video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.youtube-channel-video-cover span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: rgba(255, 64, 64, 0.86);
  color: white;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.youtube-channel-video-cover:hover,
.youtube-channel-video-cover:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 2px rgba(255, 211, 77, 0.76);
}

.album-card-body {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.album-card h4 {
  margin: 0;
  color: white;
  font-size: 1rem;
  line-height: 1.1;
}

.album-artist,
.album-description,
.album-release-date {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.album-artist {
  color: var(--gold);
  font-weight: 900;
}

.album-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.album-release-date {
  font-size: 0.76rem;
  font-weight: 800;
}

.album-open-link {
  width: fit-content;
  margin-top: 4px;
}

.album-modal {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 3, 10, 0.72);
  backdrop-filter: blur(6px);
}

.album-form {
  display: grid;
  gap: 12px;
  width: min(520px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel-strong);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.album-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.album-modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.album-form label {
  display: grid;
  gap: 6px;
}

.album-form label span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.album-form input,
.album-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.album-form textarea {
  resize: vertical;
}

.album-form .video-title-input {
  min-height: 86px;
  line-height: 1.35;
}

.album-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.album-form-status {
  min-height: 18px;
  margin: 0;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 800;
}

.video-media {
  position: relative;
  background:
    linear-gradient(rgba(8, 12, 28, 0.2), rgba(8, 12, 28, 0.72)),
    var(--cover, radial-gradient(circle at 48% 36%, rgba(55, 216, 255, 0.38), transparent 32%)),
    #02030a;
  background-position: center;
  background-size: cover;
}

.video-media.is-processing {
  display: grid;
  place-items: center;
  min-height: 112px;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 50% 42%, rgba(55, 216, 255, 0.34), transparent 28%),
    linear-gradient(135deg, rgba(43, 215, 255, 0.18), rgba(255, 93, 143, 0.16)),
    #02030a;
}

.video-media.is-processing::before {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(255, 255, 255, 0.22);
  border-top-color: #37d8ff;
  border-radius: 50%;
  content: "";
  animation: spin 1s linear infinite;
}

.audio-media {
  display: grid;
  align-content: center;
  min-height: 112px;
  height: auto;
  overflow: visible;
  padding: 14px;
  gap: 10px;
}

.audio-media::before {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.92) 0 13%, transparent 14%),
    conic-gradient(from 30deg, var(--gold), var(--rose), var(--cyan), var(--green), var(--gold));
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.34) inset,
    0 0 22px rgba(255, 211, 77, 0.32);
  content: "";
  opacity: 0.22;
  transform: translateY(-50%);
}

.song-play-button {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 44%),
    linear-gradient(135deg, rgba(12, 19, 38, 0.96), rgba(5, 9, 22, 0.96));
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.28),
    inset 0 0 26px rgba(55, 216, 255, 0.08);
  color: white;
  cursor: pointer;
  text-align: left;
}

.song-play-button:hover,
.song-play-button:focus-visible,
.song-play-button.is-playing {
  border-color: rgba(255, 211, 77, 0.72);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.34),
    0 0 22px rgba(255, 211, 77, 0.18),
    inset 0 0 32px rgba(55, 216, 255, 0.12);
  outline: 0;
}

.song-play-icon {
  display: grid;
  place-items: center;
  min-width: 56px;
  min-height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffd34d, #ff8d4d 58%, #ff5d8f);
  color: #140d08;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.song-play-button.is-playing .song-play-icon {
  background: linear-gradient(135deg, #37d8ff, #57f28a);
}

.song-play-text {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.song-play-text strong {
  display: -webkit-box;
  overflow: hidden;
  color: white;
  font-size: clamp(0.92rem, 2vw, 1.12rem);
  font-weight: 950;
  line-height: 1.12;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.song-play-text span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.video-card video,
.video-card iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.video-card audio {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
}

.video-card audio.song-audio {
  display: none !important;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.video-media-title {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  overflow: hidden;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(4, 7, 17, 0.78);
  color: #f7fbff;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-cover {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background:
    linear-gradient(rgba(8, 12, 28, 0.35), rgba(8, 12, 28, 0.72)),
    var(--cover, radial-gradient(circle at 50% 35%, rgba(55, 216, 255, 0.35), transparent 30%)),
    #02030a;
  background-position: center;
  background-size: cover;
  color: white;
  cursor: pointer;
}

.video-cover::before {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.46);
  content: "";
}

.video-cover::after {
  position: absolute;
  z-index: 1;
  margin-left: 5px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid white;
  content: "";
}

.video-cover-title {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 8px;
  left: 8px;
  display: none;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 7px 9px;
  background: rgba(3, 6, 16, 0.82);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  color: #f7fbff;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.15;
  pointer-events: none;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-card.show-thumbnail-title .video-cover-title {
  display: -webkit-box;
}

.video-card-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px;
}

.content-order-save-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 221, 98, 0.26);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 221, 98, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 900;
}

.content-order-save-bar button,
.content-order-save-button {
  min-height: 34px;
  border: 1px solid rgba(255, 221, 98, 0.58);
  border-radius: 8px;
  padding: 6px 12px;
  background: rgba(255, 221, 98, 0.16);
  color: white;
  font-size: 0.76rem;
  font-weight: 950;
  cursor: pointer;
}

.video-card-title {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  color: #eef4ff;
  font-size: 0.82rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-order-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.album-order-actions {
  width: 100%;
  margin-top: 8px;
}

.garden-video-card {
  display: grid;
  grid-template-rows: auto auto;
  min-height: 154px;
  background: rgba(7, 10, 21, 0.88);
  overflow: hidden;
}

.garden-video-card .video-cover::before {
  width: 44px;
  height: 44px;
}

.garden-video-card .video-cover::after {
  margin-left: 4px;
  border-top-width: 9px;
  border-bottom-width: 9px;
  border-left-width: 14px;
}

.garden-video-title {
  margin: 0;
  min-height: 42px;
  padding: 7px 9px 8px;
  background: linear-gradient(180deg, rgba(8, 12, 28, 0.98), rgba(4, 7, 17, 0.94));
  color: #f7fbff;
  font-size: clamp(0.76rem, 2vw, 0.9rem);
  font-weight: 950;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.garden-video-card .video-card-footer {
  display: none !important;
}

.video-warning {
  margin: 0;
  padding: 10px 12px 0;
  color: #ffd34d;
  font-size: 0.86rem;
  line-height: 1.35;
}

.remove-video,
.edit-video,
.retry-video,
.move-video-up,
.move-video-down {
  min-height: 34px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
}

.move-video-up,
.move-video-down {
  border-color: rgba(255, 221, 98, 0.42);
  background: rgba(255, 221, 98, 0.12);
}

.album-order-actions button {
  min-height: 32px;
  border: 1px solid rgba(255, 221, 98, 0.42);
  border-radius: 8px;
  padding: 6px 10px;
  background: rgba(255, 221, 98, 0.12);
  color: white;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.edit-video {
  background: rgba(55, 216, 255, 0.18);
}

.retry-video {
  background: rgba(55, 216, 255, 0.22);
}

.cover-loader input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cover-loader span {
  min-height: 34px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
}

.empty-state {
  display: grid;
  grid-column: 1 / -1;
  place-items: center;
  min-height: 220px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.92) rotate(0deg);
  }
  50% {
    transform: scale(1.08) rotate(8deg);
  }
}

@keyframes studioPulse {
  0%,
  100% {
    transform: translateX(-50%) scale(0.92) rotate(0deg);
  }

  50% {
    transform: translateX(-50%) scale(1.07) rotate(8deg);
  }
}

@keyframes carShimmer {
  0%,
  100% {
    opacity: 0.2;
    transform: translateX(-58%) skewX(-12deg);
  }

  42% {
    opacity: 0.82;
  }

  66% {
    opacity: 0.38;
    transform: translateX(52%) skewX(-12deg);
  }
}

@keyframes carSparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.3) rotate(0deg);
  }

  45% {
    opacity: 0.95;
    transform: scale(1) rotate(45deg);
  }

  72% {
    opacity: 0;
    transform: scale(0.55) rotate(90deg);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes wingFlap {
  0%,
  100% {
    transform: translateY(1px) rotate(-2deg) scaleY(0.92) skewY(-2deg);
  }

  48% {
    transform: translateY(-4px) rotate(2deg) scaleY(1.08) skewY(2deg);
  }
}

@keyframes wingFlapPreview {
  0%,
  100% {
    transform: translateY(1px) rotate(-1deg) scaleY(0.96);
  }

  50% {
    transform: translateY(-3px) rotate(1deg) scaleY(1.04);
  }
}

@media (max-width: 1400px) and (min-width: 761px) {
  .builder-workbench {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(180px, auto);
    grid-template-areas:
      "library map"
      "library inspector";
  }

  .builder-map-panel {
    min-width: 0;
  }

  .builder-public-map-panel {
    grid-template-columns: 1fr;
  }

  .builder-public-map-actions {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .builder-map-topbar {
    align-items: flex-start;
    gap: 8px;
  }

  .builder-map-actions {
    gap: 6px;
  }

  .builder-map-select-label {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  .builder-map-select-label select {
    max-width: none;
    flex: 1 1 auto;
  }

  .builder-modal .builder-inspector {
    right: auto;
    bottom: auto;
    width: auto;
    max-height: none;
    overflow: auto;
  }

  .builder-inspector-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .sales-guide-admin-grid {
    grid-template-columns: 1fr;
  }

  .public-guide-admin-layout,
  .public-guide-editor-grid,
  .public-guide-save-row {
    grid-template-columns: 1fr;
  }

  .public-guide-settings-card,
  .public-guide-template-card,
  .public-guide-list-card,
  .public-guide-editor,
  .public-guide-preview-card,
  .public-guide-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .sales-guide-skin-field {
    grid-column: auto;
  }

  .builder-workbench {
    grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas:
      "library map";
  }

  .builder-modal .builder-inspector {
    width: min(520px, calc(100% - 274px));
    max-height: 118px;
  }

  .onboarding-panel {
    grid-template-columns: 1fr;
    width: min(760px, 100%);
    text-align: center;
  }

  .onboarding-copy,
  .onboarding-copy img,
  .onboarding-kicker,
  .onboarding-panel h1,
  .onboarding-lede,
  .onboarding-notes,
  .onboarding-actions,
  .onboarding-transport {
    grid-column: 1;
    grid-row: auto;
  }

  .onboarding-copy {
    justify-items: center;
    padding-top: 0;
  }

  .onboarding-lede {
    margin-bottom: 16px;
  }

  .onboarding-notes {
    width: min(100%, 560px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    text-align: left;
  }

  .onboarding-panel h1 {
    font-size: clamp(2.25rem, 7vw, 4rem);
  }

  .transport-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .transport-option {
    grid-template-rows: 96px auto;
    min-height: 152px;
  }

  .transport-option img {
    height: 96px;
  }

  .onboarding-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 560px);
    margin-top: 24px;
  }
}

@media (max-width: 760px) {
  .sales-guide-panel {
    top: calc(max(10px, env(safe-area-inset-top)) + 46px);
    right: 10px;
    bottom: auto;
    left: 10px;
    width: auto;
    padding: 10px;
  }

  .sales-guide-form {
    grid-template-columns: minmax(0, 1fr) 64px;
  }

  .sales-guide-suggestions {
    max-height: 70px;
    overflow: auto;
  }

  .public-guide-promo {
    grid-template-columns: 1fr;
  }

  .public-guide-template-list,
  .public-guide-list-row {
    grid-template-columns: 1fr;
  }

  .public-guide-list {
    max-height: none;
  }

  .sales-guide-agent {
    width: clamp(34px, 7vw, 52px);
    height: clamp(46px, 9vw, 68px);
  }

  .sales-guide-agent-bubble {
    bottom: calc(100% + 7px);
    width: min(230px, 72vw);
    max-height: 92px;
    padding: 8px 9px;
    font-size: 0.68rem;
  }

  .sales-guide-skin-options {
    grid-template-columns: repeat(4, minmax(34px, 1fr));
  }

  .map-zoom-controls {
    padding: 0;
    gap: 5px;
  }

  .map-zoom-controls button {
    min-width: 30px;
    height: 28px;
  }

  body.builder-is-open,
  body.admin-page.builder-is-open {
    overflow: hidden;
  }

  .builder-modal {
    padding: 0;
  }

  .builder-workbench {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(560px, auto) auto auto;
    grid-template-areas:
      "map"
      "inspector"
      "library";
    border-radius: 0;
  }

  .builder-modal .builder-library-panel {
    grid-template-rows: none;
    overflow: auto;
    padding: 10px;
  }

  .builder-map-panel {
    position: relative;
    z-index: 1;
    isolation: isolate;
    overflow: auto;
    padding: 0 8px 8px;
  }

  .builder-public-map-panel {
    grid-template-columns: 1fr;
    margin: 0;
    padding: 8px;
  }

  .builder-public-map-preview {
    min-height: clamp(260px, 40dvh, 420px);
    max-height: 50dvh;
  }

  .builder-public-map-copy {
    gap: 7px;
    box-shadow: none;
  }

  .builder-public-map-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .builder-public-map-actions button {
    flex: 1 1 auto;
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.66rem;
  }

  .builder-modal .builder-inspector {
    display: grid;
  }

  body {
    overflow: auto;
  }

  body.admin-page {
    overflow: auto;
  }

  .app-shell {
    display: block;
    width: 100vw;
    min-height: 100dvh;
    height: auto;
    overflow-x: auto;
    overflow-y: visible;
    background: #05070d;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }

  .town-stage {
    --map-border-size: 6px;
    width: var(--public-map-width-mobile, var(--public-map-fit-width));
    max-width: none;
    height: auto;
    min-height: auto;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
    cursor: auto;
    scroll-snap-align: center;
  }

  .map-content {
    position: relative;
    width: 100%;
    height: auto;
  }

  .town-stage button,
  .town-stage a {
    cursor: pointer;
  }

  .signal-guide {
    position: fixed;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
    max-height: 34vh;
    padding: 10px;
  }

  .signal-guide-top {
    grid-template-columns: 1fr;
    margin-bottom: 8px;
  }

  .signal-guide-actions {
    justify-content: stretch;
  }

  .signal-guide-actions > * {
    flex: 1 1 auto;
    min-height: 32px;
    padding: 0 8px;
    font-size: 0.62rem;
  }

  .signal-guide-top h2 {
    font-size: 0.98rem;
  }

  .signal-mini-map {
    width: min(176px, 48vw);
    margin-bottom: 8px;
  }

  .signal-guide-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 22vh;
  }

  .signal-guide-item {
    grid-template-columns: 27px minmax(0, 1fr);
    min-height: 32px;
    gap: 6px;
    padding: 5px 6px;
  }

  .signal-guide-index {
    width: 24px;
    height: 22px;
    font-size: 0.64rem;
  }

  .signal-guide-name {
    font-size: 0.68rem;
  }

  .signal-guide-mode {
    display: none;
  }

  .car-cursor {
    display: none;
  }

  .town-map {
    display: block;
    height: auto;
    object-fit: contain;
    object-position: center;
  }

  .brand-bar {
    position: fixed;
    top: max(10px, env(safe-area-inset-top));
    left: 10px;
    width: 76px;
  }

  .town-banner {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: 10px;
    left: auto;
    min-width: 0;
    max-width: calc(100vw - 108px);
    padding: 9px 12px 10px;
    font-size: 0.86rem;
    transform: rotate(-1deg);
  }

  .town-banner::before,
  .town-banner::after {
    height: 14px;
  }

  .transport-picker p {
    margin-bottom: 6px;
    font-size: 0.6rem;
  }

  .transport-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .transport-option {
    grid-template-rows: 48px auto;
    min-height: 82px;
    padding: 7px 6px 8px;
  }

  .transport-option img {
    height: 48px;
  }

  .transport-option span {
    font-size: 0.58rem;
  }

  .onboarding-transport {
    position: static;
    width: min(100%, 360px);
    padding: 0;
  }

  .admin-entry-link {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    min-height: 40px;
    padding: 0 12px;
    cursor: pointer;
    font-size: 0.72rem;
  }

  .onboarding {
    padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  }

  .onboarding-panel {
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    padding: 22px 18px 20px;
  }

  .onboarding-copy img {
    width: 92px;
    height: 92px;
  }

  .onboarding-notes {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .onboarding-notes span {
    font-size: 0.78rem;
  }

  .onboarding-actions {
    grid-template-columns: 1fr;
  }

  .portal {
    width: 42px;
    height: 42px;
    touch-action: manipulation;
  }

  .portal-label {
    bottom: -24px;
    max-width: 116px;
    min-height: 22px;
    padding: 5px 8px 6px;
    font-size: 0.6rem;
  }

  .portal-police {
    top: 13.4%;
    left: 52%;
  }

  .portal-coffee {
    top: 27.1%;
    left: 33.4%;
  }

  .portal-restaurant {
    top: 33.5%;
    left: 46.5%;
  }

  .map-hotspot {
    touch-action: manipulation;
  }

  .map-hotspot-label {
    bottom: -22px;
    max-width: 122px;
    min-height: 22px;
    padding: 5px 8px 6px;
    font-size: 0.6rem;
  }

  .map-hotspot-dgnn {
    top: 13.8%;
    left: 67.5%;
    width: 84px;
    height: 66px;
  }

  .map-hotspot-dgtl {
    top: 13.1%;
    left: 39.3%;
    width: 88px;
    height: 66px;
  }

  .map-hotspot-publishing {
    top: 34%;
    left: 72%;
    width: 90px;
    height: 66px;
  }

  .map-hotspot-sound {
    top: 65.4%;
    left: 37.7%;
    width: 84px;
    height: 64px;
  }

  .map-hotspot-store {
    top: 75.6%;
    left: 51%;
    width: 90px;
    height: 66px;
  }

  .map-hotspot-realestate {
    top: 59.5%;
    left: 70.4%;
    width: 84px;
    height: 64px;
  }

  .map-hotspot-club {
    top: 35.3%;
    left: 86.8%;
    width: 82px;
    height: 64px;
  }

  .map-hotspot-garden {
    top: 75.8%;
    left: 8.6%;
    width: 84px;
    height: 60px;
  }

  .map-hotspot-vehicle-depot {
    top: 52.4%;
    left: 30%;
    width: 90px;
    height: 66px;
  }

  .studio-hotspot {
    top: 47.8%;
    left: 45.6%;
    width: 84px;
    height: 64px;
    touch-action: manipulation;
  }

  .studio-hotspot-pulse {
    bottom: 22%;
    width: 24px;
    height: 24px;
  }

  .studio-hotspot-label {
    bottom: -22px;
    font-size: 0.6rem;
  }

  .admin-shell {
    padding: max(16px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
  }

  .admin-topbar {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 16px;
  }

  .admin-brand {
    width: 60px;
  }

  .admin-view-town {
    min-height: 46px;
  }

  .admin-topbar-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .admin-topbar-actions > * {
    flex: 1;
  }

  .admin-signin {
    min-height: min(560px, calc(100dvh - 150px));
  }

  .admin-signin-form {
    grid-template-columns: 1fr;
  }

  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .admin-locations {
    position: static;
    grid-row: auto;
    grid-template-columns: repeat(12, minmax(132px, 1fr));
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .admin-location {
    min-height: 48px;
    white-space: nowrap;
  }

  .hotspot-editor {
    min-height: auto;
    padding: 16px;
  }

  .hotspot-list {
    max-height: none;
    overflow: visible;
  }

  .hotspot-row {
    grid-template-columns: 1fr;
  }

  .building-setting-controls,
  .hotspot-row-actions,
  .hotspot-share-group {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .youtube-channel-page-header {
    grid-template-columns: 1fr;
  }

  .youtube-channel-page-header .album-cancel-button,
  .youtube-channel-page-header .youtube-channel-external-link {
    width: 100%;
  }

  .youtube-channel-grid {
    grid-template-columns: 1fr;
  }

  .hotspot-row button,
  .hotspot-position {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .hotspot-row .hotspot-remove,
  .hotspot-row .hotspot-restore,
  .hotspot-row .hotspot-delete-forever,
  .hotspot-row .hotspot-share-button {
    grid-column: 1 / -1;
  }

  .admin-panel {
    min-height: auto;
    padding: 16px;
  }

  .video-dock {
    top: auto;
    bottom: 0;
    width: 100vw;
    height: min(78dvh, 680px);
    padding: 18px 16px max(18px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
    border-radius: 18px 18px 0 0;
    transform: translateY(105%);
  }

  .video-dock.is-open {
    transform: translateY(0);
  }

  .dock-header {
    align-items: flex-start;
    margin-bottom: 14px;
  }

  .dock-header h1 {
    font-size: clamp(1.45rem, 8vw, 2rem);
  }

  .icon-button {
    width: 46px;
    height: 46px;
  }

  .file-loader span {
    min-height: 48px;
  }

  .link-form,
  .youtube-folder-form {
    grid-template-columns: 1fr;
  }

  .link-form input,
  .link-form button,
  .youtube-folder-form input,
  .youtube-folder-form button {
    min-height: 48px;
  }

  body:not(.admin-page) .collection {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 10px;
  }

  body:not(.admin-page) .collection.is-garden-video-list .dgtv-home-link {
    min-height: 154px;
    padding: 10px;
    align-content: end;
    gap: 8px;
  }

  body:not(.admin-page) .collection.is-garden-video-list .dgtv-home-link span {
    padding: 5px 8px;
    font-size: 0.68rem;
  }

  body:not(.admin-page) .collection.is-garden-video-list .dgtv-home-link strong {
    font-size: clamp(0.86rem, 3.8vw, 1rem);
    line-height: 1.08;
  }

  body:not(.admin-page) .video-card {
    display: grid;
    grid-template-rows: auto auto;
    min-height: 154px;
    background: rgba(7, 10, 21, 0.88);
    overflow: hidden;
  }

  body:not(.admin-page) .video-card .video-cover::before {
    width: 44px;
    height: 44px;
  }

  body:not(.admin-page) .video-card .video-cover::after {
    margin-left: 4px;
    border-top-width: 9px;
    border-bottom-width: 9px;
    border-left-width: 14px;
  }

  body:not(.admin-page) .video-card-footer {
    display: block;
    padding: 0;
  }

  body:not(.admin-page) .video-card-title {
    margin: 0;
    min-height: 42px;
    padding: 7px 9px 8px;
    background: linear-gradient(180deg, rgba(8, 12, 28, 0.98), rgba(4, 7, 17, 0.94));
    color: #f7fbff;
    font-size: clamp(0.76rem, 2vw, 0.9rem);
    font-weight: 950;
    line-height: 1.12;
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }

  .video-card-footer {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .empty-state {
    min-height: 180px;
  }
}
