/* A quiet geographic constellation. Motion runs once per scene, not continuously. */
#map .leaflet-tile-pane { transition: opacity .55s ease; }
#map.network-view { background: #f4f2ee; }
#map.network-view .leaflet-tile-pane { opacity: 1; }
.map-marker-network {
  position: absolute; inset: 0; display: grid; place-items: center;
  box-sizing: border-box; width: 100%; height: 100%; padding: 0;
  border: 0; border-radius: 50%; color: #fff; background: rgb(0 0 0 / .42);
  cursor: pointer; touch-action: manipulation;
}
.map-marker-network:hover { background: rgb(0 0 0 / .54); }
.map-marker-network:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.map-marker-network svg { width: 64%; height: 64%; pointer-events: none; }
.singer-avatar-main:has(> .map-marker-network) > img { filter: blur(3px); transform: scale(1.16); }
.network-node {
  --network-node-size: 42px;
  --profile-avatar-scale: var(--network-avatar-scale, .72);
  width: calc(var(--network-node-size) * var(--profile-avatar-scale)) !important;
  height: calc(var(--network-node-size) * var(--profile-avatar-scale)) !important;
  margin-left: calc(var(--network-node-size) * var(--profile-avatar-scale) * -.5 + var(--network-offset-x, 0px)) !important;
  margin-top: calc(var(--network-node-size) * var(--profile-avatar-scale) * -.5 + var(--network-offset-y, 0px)) !important;
}
.network-node.is-network-center { --network-node-size: 64px; }
.network-node .singer-marker-container,
.network-node .singer-avatar-main { width: var(--network-node-size); height: var(--network-node-size); }
.network-node .singer-avatar-main { border: 3px solid #fff; box-shadow: 0 4px 14px #30251c25; }
.network-node .singer-avatar-main img { position: absolute; inset: 0; }
.network-node .singer-avatar-main img[hidden] { display: none; }
.network-peer-action {
  display: none; position: absolute; inset: 0; place-items: center; pointer-events: none;
  background: #25191f96; color: #fff; backdrop-filter: blur(2.5px);
}
.is-network-switch-target .network-peer-action { display: grid; }
.network-peer-action svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.network-avatar-fallback { display: flex; align-items: center; justify-content: center; height: 100%; background: #eae4de; color: #a28e7c; font: 800 16px 'Microsoft YaHei', sans-serif; }
.network-node-offset { width: 100%; height: 100%; transition: opacity .22s ease; }
.network-node-reveal { position: relative; width: 100%; height: 100%; transform-origin: center; }
.network-is-ready .is-network-peer .network-node-reveal { animation: network-node-enter .28s cubic-bezier(.2,.8,.3,1) var(--network-node-delay, 0ms) both; }
.is-network-center .singer-avatar-main { border-width: 4px; box-shadow: 0 5px 20px #30251c25; }
.network-node-name { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); max-width: 175px; padding: 5px 10px; border: 1px solid #ffffffb3; border-radius: 999px; background: #fffef9e8; color: #4a3b36; box-shadow: 0 3px 12px #32221d0a; font: 700 14px/1.4 'PingFang SC', 'Microsoft YaHei', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .18s ease; pointer-events: none; }
.network-node:hover .network-node-name,
.network-node:focus-visible .network-node-name,
.network-node.is-profile-selected .network-node-name { opacity: 1; }
.network-has-focus .is-network-peer:not(.is-network-focused):not(.is-profile-selected) .network-node-offset { opacity: .38; }
.network-node.is-network-focused { z-index: 8000 !important; }
.network-link { stroke: var(--network-link-color, #c3c3c3); stroke-dasharray: 6px 5px; opacity: .76; transition: opacity .22s ease, stroke .22s ease, stroke-width .22s ease; }
.network-is-ready .network-link { animation: network-line-enter .35s ease-out var(--network-line-delay, 0ms) both; }
.network-has-focus .network-link:not(.is-network-focused) { opacity: .1; }
.network-has-focus .network-link.is-network-focused { stroke: var(--network-link-focus, #e3e3e3); stroke-width: 2.3; opacity: .95; }
:root[data-color-theme="light"] #map { --network-link-color: #505050; --network-link-focus: #292929; }
.network-tether { opacity: .45; }
:is(#exit-network-btn, #network-switch-dock).network-dock { position: fixed; display: flex; align-items: center; gap: 15px; left: 50%; bottom: 28px; z-index: 1350; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); box-sizing: border-box; padding: 13px 14px 13px 18px; border: 1px solid #fff; border-radius: 14px; background: #fffdf9f2; color: #272321; box-shadow: 0 12px 40px #3824211c, 0 2px 6px #38242108; backdrop-filter: blur(14px); text-align: left; font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; animation: network-dock-enter .35s ease-out both; }
#network-switch-dock[hidden] { display: none; }
#exit-network-btn.network-dock:hover { background: #fff; box-shadow: 0 12px 42px #38242126; }
.network-switch-view {
  min-width: 0; min-height: 32px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 750; line-height: 1.3;
  text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.network-switch-view:is(:hover, :focus-visible) { color: var(--night-accent, #bd1429); }
.network-dock-avatar { position: relative; display: flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; overflow: hidden; border-radius: 50%; background: #eeeae4; color: #938a80; font-weight: 700; }
.network-dock-avatar img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; border: 0; box-shadow: none; }
.network-dock-avatar img[hidden] { display: none; }
.network-dock-copy { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 13px; }
.network-dock-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; line-height: 1.3; font-weight: 800; }
.network-dock-count { display: inline-flex; align-items: baseline; gap: 3px; color: #ad5260; font-size: 12px; font-weight: 600; white-space: nowrap; }
.network-dock-number { color: #c72f43; font-size: 22px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.network-dock-close { display: flex; align-items: center; justify-content: center; flex: 0 0 52px; width: 52px; height: 32px; margin-left: 4px; border-radius: 999px; background: #e60012; color: #fff; font: 700 12px/1 'PingFang SC', 'Microsoft YaHei', sans-serif; white-space: nowrap; }
.network-dock-close.network-switch-cancel { padding: 0; border: 0; background: #000; color: #fff; cursor: pointer; }
.network-dock-close.network-switch-cancel:is(:hover, :focus-visible) { background: #1a1a1a; }
:root[data-color-theme="light"] .network-dock-close.network-switch-cancel { background: #e5e5e5; color: #000; }
:root[data-color-theme="light"] .network-dock-close.network-switch-cancel:is(:hover, :focus-visible) { background: #d6d6d6; }
@keyframes network-node-enter { from { opacity: .45; transform: translateY(4px) scale(.92); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes network-line-enter { from { stroke-opacity: 0; } to { stroke-opacity: 1; } }
@keyframes network-dock-enter { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 480px) {
  :is(#exit-network-btn, #network-switch-dock).network-dock { bottom: calc(90px + env(safe-area-inset-bottom)); gap: 9px; border-radius: 14px; padding: 12px; }
  .network-dock-copy { column-gap: 8px; }
  .network-dock-title { font-size: 14px; }
  .network-dock-count { font-size: 11px; }
  .network-dock-avatar { flex-basis: 32px; width: 32px; height: 32px; }
  .network-dock-close { flex-basis: 48px; width: 48px; height: 30px; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #map .leaflet-tile-pane, .network-node-offset, .network-node-name, .network-link { transition: none; }
  .network-is-ready .is-network-peer .network-node-reveal,
  .network-is-ready .network-link, :is(#exit-network-btn, #network-switch-dock).network-dock { animation: none; }
}
