@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat/Montserrat-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Days Sans";
  src: url("/assets/fonts/tt-days-sans/TTDaysSans-Regular.ttf") format("truetype");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Days Sans";
  src: url("/assets/fonts/tt-days-sans/TTDaysSans-Bold.ttf") format("truetype");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "F37 Ginger";
  src: url("/assets/fonts/f37-ginger/F37GingerCyrillic-VF.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --font-ui: "TT Days Sans", "Montserrat", system-ui, sans-serif;
  --font-display: "F37 Ginger", "Montserrat", system-ui, sans-serif;
  --bg-page: #030813;
  --bg-app: #06101e;
  --ink: #f4f7ff;
  --muted: rgba(199, 210, 228, 0.76);
  --soft: rgba(156, 169, 193, 0.66);
  --line: rgba(149, 169, 202, 0.18);
  --panel: rgba(14, 25, 42, 0.78);
  --panel-strong: rgba(16, 28, 47, 0.9);
  --green: #33e486;
  --green-deep: #1fbf72;
  --red: #ed5874;
  --red-deep: #ce435f;
  --purple: #8a6cff;
  --cyan: #55d7ff;
  --blue: #78aaff;
  --orange: #f6bf56;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  background: var(--bg-page);
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(47, 70, 106, 0.28), transparent 34%),
    linear-gradient(180deg, #050a12 0%, #02050b 100%);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
}

body,
.app-frame,
.app-shell,
.screen,
.screen-scroll,
.bottom-sheet,
.district-card,
.share-modal,
.leaflet-container {
  scrollbar-width: none;
}

body::-webkit-scrollbar,
.app-frame::-webkit-scrollbar,
.app-shell::-webkit-scrollbar,
.screen::-webkit-scrollbar,
.screen-scroll::-webkit-scrollbar,
.bottom-sheet::-webkit-scrollbar,
.district-card::-webkit-scrollbar,
.share-modal::-webkit-scrollbar,
.leaflet-container::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: wait;
  filter: grayscale(0.2);
  opacity: 0.72;
}

svg {
  display: block;
}

.app-frame {
  position: relative;
  width: min(430px, calc(100vw - 32px));
  height: min(932px, calc(100svh - 32px));
  max-height: calc(100svh - 32px);
  min-height: 680px;
  overflow: hidden;
  border: 1px solid rgba(149, 169, 202, 0.16);
  border-radius: 28px;
  background: var(--bg-app);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  isolation: isolate;
  --pad: 20px;
  --header-h: 102px;
  --control-top: calc(var(--header-h) + 22px);
  --sheet-compact-h: 66px;
  --sheet-h: 112px;
  --sheet-expanded-top: calc(var(--header-h) + var(--edge-gap));
  --sheet-expanded-h: calc(100% - var(--header-h) - var(--nav-h) - (var(--edge-gap) * 2));
  --sheet-compact-top: calc(100% - var(--sheet-bottom) - var(--sheet-compact-h));
  --sheet-default-top: calc(100% - var(--sheet-bottom) - var(--sheet-h));
  --dock-h: 58px;
  --nav-h: 76px;
  --edge-gap: 12px;
  --dock-gap: 12px;
  --sheet-bottom: calc(var(--nav-h) + var(--dock-gap) + var(--dock-h) + var(--edge-gap));
  --dock-bottom: calc(var(--nav-h) + var(--dock-gap));
}

@media (min-width: 521px) {
  .app-frame {
    width: min(390px, calc(100vw - 32px));
    height: min(844px, calc(100svh - 32px));
    min-height: 680px;
    --pad: 20px;
    --header-h: 86px;
    --control-top: calc(var(--header-h) + 16px);
    --sheet-compact-h: 64px;
    --sheet-h: 108px;
    --dock-h: 50px;
    --nav-h: 66px;
    --edge-gap: 8px;
    --dock-gap: 8px;
  }
}

.app-shell {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: #07111f;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
  background: #07111f;
}

.screen.is-active {
  display: block;
}

.map-screen {
  background:
    linear-gradient(180deg, rgba(6, 16, 30, 0.2) 0%, rgba(5, 12, 24, 0.9) 100%),
    #07111f;
}

.map-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #07111f;
}

.map-canvas .leaflet-tile {
  filter: saturate(0.52) brightness(0.5) contrast(1.12) hue-rotate(178deg);
}

.map-canvas .leaflet-container,
.map-canvas .leaflet-pane,
.leaflet-container {
  background: #07111f;
  font-family: var(--font-ui);
}

.map-canvas .leaflet-pane {
  background: transparent;
}

.maplibregl-map {
  background: #050914;
  font-family: var(--font-ui);
}

.maplibregl-canvas {
  outline: none;
}

.road-pulse-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: normal;
  filter: saturate(1.16) brightness(1.12);
  transform-origin: 0 0;
  transition: opacity 120ms ease;
  contain: layout paint size;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.road-pulse-canvas.is-active {
  opacity: 1;
}

.maplibregl-ctrl-attrib {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(4, 8, 18, 0.42);
  color: rgba(220, 238, 242, 0.54);
  font-size: 10px;
  backdrop-filter: blur(14px);
}

.maplibregl-ctrl-attrib a {
  color: inherit;
}

.leaflet-control-container {
  display: none;
}

.map-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(6, 13, 25, 0) 0%, rgba(4, 9, 18, 0.12) 64%, rgba(1, 4, 10, 0.9) 100%),
    linear-gradient(180deg, rgba(7, 15, 28, 0.98) 0, rgba(7, 15, 28, 0.74) var(--header-h), rgba(6, 13, 25, 0.08) 38%, rgba(3, 7, 15, 0.82) 100%),
    linear-gradient(90deg, rgba(1, 4, 10, 0.82) 0, rgba(1, 4, 10, 0.08) 24%, rgba(1, 4, 10, 0.08) 76%, rgba(1, 4, 10, 0.82) 100%),
    radial-gradient(circle at 50% 44%, rgba(71, 215, 178, 0.08), transparent 42%),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: auto, auto, auto, auto, 41px 41px, 41px 41px;
}

.map-focal-vo {
  display: none;
}

.top-bar,
.panel-topbar,
.vo-top-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 12;
  height: var(--header-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  gap: 0;
  padding: 16px var(--pad);
  border: 1px solid rgba(143, 164, 196, 0.16);
  border-radius: 0 0 24px 24px;
  background: rgba(8, 17, 31, 0.9);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
}

.map-screen.pulse-sheet-open .top-bar {
  z-index: 19;
}

.top-vo-global-layer {
  position: absolute;
  inset: 0 0 auto;
  z-index: 21;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px var(--pad);
  pointer-events: none;
}

.brand-lockup,
.panel-brand {
  min-width: 0;
  width: min(100%, 280px);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  justify-self: center;
  align-self: center;
  text-align: center;
}

.map-screen .brand-lockup {
  position: static;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  transform: none;
}

.vo-top-bar .brand-lockup,
.vo-top-bar .panel-brand {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.brand-lockup strong,
.panel-brand strong,
.top-vo-global-logo {
  --vo-event-color: rgba(77, 255, 198, 0.82);
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 840;
  line-height: 0.86;
  letter-spacing: 0;
  color: #fff;
  position: relative;
  transform: translateZ(0);
  will-change: transform, opacity, text-shadow;
}

.top-vo-global-logo {
  display: inline-block;
}

.vo-top-logo--spacer {
  visibility: hidden;
  pointer-events: none;
}

.vo-top-logo--spacer::after {
  content: none !important;
}

.vo-top-logo,
[data-vo-logo] {
  color: #fff;
  text-shadow:
    0 0 6px rgba(77, 255, 198, 0.32),
    0 0 16px rgba(77, 255, 198, 0.16);
}

.vo-top-logo.is-live-breathing::after,
[data-vo-logo].is-live-breathing::after {
  content: attr(data-vo-logo-text);
  position: absolute;
  inset: 0;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateZ(0);
  text-shadow:
    0 0 6px rgba(77, 255, 198, 0.28),
    0 0 18px rgba(77, 255, 198, 0.16);
  will-change: opacity, text-shadow;
}

:root:not([data-motion-mode="reduced"]) .vo-top-logo.is-live-breathing::after,
:root:not([data-motion-mode="reduced"]) [data-vo-logo].is-live-breathing::after {
  animation: voTopGreenBreath 3.2s ease-in-out infinite;
  animation-delay: var(--vo-top-breath-delay, 0s);
}

:root[data-motion-mode="low"] .vo-top-logo.is-live-breathing::after,
:root[data-motion-mode="low"] [data-vo-logo].is-live-breathing::after {
  animation-duration: 4.8s;
}

:root[data-motion-mode="reduced"] .vo-top-logo,
:root[data-motion-mode="reduced"] [data-vo-logo] {
  animation: none !important;
  opacity: 1;
  text-shadow:
    0 0 6px rgba(77, 255, 198, 0.34),
    0 0 14px rgba(77, 255, 198, 0.16);
}

:root[data-motion-mode="reduced"] .vo-top-logo::after,
:root[data-motion-mode="reduced"] [data-vo-logo]::after {
  content: none;
  animation: none !important;
}

.vo-top-logo.is-event-flashing,
[data-vo-logo].is-event-flashing {
  animation: voLogoEventFlash 520ms ease-out both;
}

:root[data-motion-mode="full"] .vo-top-logo.is-event-flashing,
:root[data-motion-mode="full"] [data-vo-logo].is-event-flashing {
  animation-duration: 720ms;
}

:root[data-motion-mode="low"] .vo-top-logo.is-event-flashing,
:root[data-motion-mode="low"] [data-vo-logo].is-event-flashing {
  animation: voLogoLowFlash 260ms ease-out both;
}

.brand-lockup span,
.panel-brand span {
  color: var(--muted);
  font-size: 10.2px;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.top-active-count {
  color: rgba(100, 255, 173, 0.92);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 520;
  line-height: 1;
  text-shadow:
    0 0 8px rgba(51, 228, 134, 0.45),
    0 0 18px rgba(51, 228, 134, 0.22);
}

.top-tagline {
  order: -1;
}

@media (min-height: 861px) {
  .vo-top-bar .brand-lockup,
  .vo-top-bar .panel-brand {
    transform: translateY(-2px);
  }
}

@keyframes voTopGreenBreath {
  0%, 100% {
    opacity: 0.9;
    text-shadow:
      0 0 4px rgba(77, 255, 198, 0.24),
      0 0 12px rgba(77, 255, 198, 0.12);
  }
  50% {
    opacity: 1;
    text-shadow:
      0 0 10px rgba(77, 255, 198, 0.64),
      0 0 24px rgba(77, 255, 198, 0.34),
      0 0 38px rgba(77, 255, 198, 0.16);
  }
}

@keyframes voLogoEventFlash {
  0% {
    transform: translateZ(0) scale(1);
    opacity: 0.94;
  }
  38% {
    transform: translateZ(0) scale(1.025);
    opacity: 1;
    text-shadow: 0 0 10px var(--vo-event-color);
  }
  100% {
    transform: translateZ(0) scale(1);
    opacity: 0.96;
    text-shadow: 0 0 4px rgba(77, 255, 198, 0.16);
  }
}

@keyframes voLogoLowFlash {
  0%, 100% { opacity: 0.94; }
  50% { opacity: 1; }
}

.map-pills {
  position: absolute;
  left: var(--pad);
  right: 70px;
  top: var(--control-top);
  z-index: 13;
  display: flex;
  gap: 10px;
  align-items: center;
}

.map-help-button {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(156, 174, 208, 0.18);
  border-radius: 50%;
  background: rgba(21, 32, 52, 0.78);
  color: rgba(237, 243, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 22px rgba(0,0,0,0.2);
  backdrop-filter: blur(14px);
}

.map-help-button:hover,
.map-help-button[aria-expanded="true"] {
  border-color: rgba(103, 244, 171, 0.42);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(103, 244, 171, 0.18), 0 10px 22px rgba(0,0,0,0.2);
}

.map-help-button span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 780;
  line-height: 1;
}

.map-help-panel {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  top: calc(var(--control-top) + 46px);
  z-index: 17;
  max-width: 430px;
  padding: 15px 44px 15px 15px;
  border: 1px solid rgba(143, 164, 196, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 0%, rgba(103, 244, 171, 0.13), transparent 34%),
    linear-gradient(145deg, rgba(18, 30, 49, 0.96), rgba(8, 17, 31, 0.96));
  box-shadow: 0 20px 48px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
  color: rgba(232, 241, 255, 0.9);
  backdrop-filter: blur(18px);
}

.map-help-panel[hidden] {
  display: none;
}

.map-help-panel h2 {
  margin: 0 0 9px;
  color: #f4f8ff;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.08;
}

.map-help-panel p {
  margin: 0;
  color: rgba(218, 229, 248, 0.84);
  font-size: 13px;
  font-weight: 540;
  line-height: 1.34;
}

.map-help-panel p + p {
  margin-top: 9px;
}

.map-help-close {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(143, 164, 196, 0.16);
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: rgba(232, 241, 255, 0.86);
  font-size: 20px;
  line-height: 1;
}

.map-help-close:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.map-pill {
  min-width: 108px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(156, 174, 208, 0.18);
  border-radius: 13px;
  background: rgba(21, 32, 52, 0.78);
  color: #edf3ff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 22px rgba(0,0,0,0.2);
  backdrop-filter: blur(14px);
}

#cityPill {
  min-width: auto;
  padding-inline: 16px;
}

#districtsPill,
.map-target {
  display: none !important;
}

.map-pill strong {
  font-family: var(--font-display);
  font-size: 11.2px;
  font-weight: 700;
  line-height: 1;
}

.map-pill__icon {
  width: 14px;
  height: 14px;
  color: #bac7df;
}

.map-pill__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-pill__chevron {
  width: 8px;
  height: 8px;
  border-right: 1.8px solid #b7c3db;
  border-bottom: 1.8px solid #b7c3db;
  transform: rotate(45deg) translateY(-2px);
}

.map-point-status {
  display: none;
}

.target-button {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(26, 37, 60, 0.78);
  border: 1px solid rgba(165, 180, 212, 0.2);
  color: #dbe6fb;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 12px 24px rgba(0,0,0,0.24);
  backdrop-filter: blur(16px);
}

.target-button span,
.target-button::before,
.target-button::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.target-button span {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
}

.target-button::before {
  width: 2px;
  height: 30px;
  background: currentColor;
  border-radius: 999px;
}

.target-button::after {
  width: 30px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.map-target {
  position: absolute;
  top: var(--control-top);
  right: var(--pad);
  z-index: 13;
  width: 42px;
  height: 42px;
  transition: opacity 160ms ease, transform 160ms ease;
}

#districtsPill {
  transition: opacity 160ms ease, transform 160ms ease;
}

.map-screen.pulse-sheet-open .map-pills,
.map-screen.pulse-sheet-open .map-target,
.map-screen.pulse-sheet-open .map-help-panel,
.map-screen.district-card-open .map-pills,
.map-screen.district-card-open #districtsPill,
.map-screen.district-card-open .map-target,
.map-screen.district-card-open .map-help-panel {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
}

.bottom-sheet {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  --pulse-content-gap: 10px;
  --pulse-edge-pad: 12px;
  top: var(--sheet-default-top);
  bottom: auto;
  z-index: 14;
  height: var(--sheet-h);
  overflow: hidden;
  padding: var(--pulse-edge-pad);
  border: 1px solid rgba(143, 164, 196, 0.18);
  border-radius: 21px;
  background:
    radial-gradient(circle at 12% 0%, rgba(119, 165, 229, 0.1), transparent 36%),
    linear-gradient(145deg, rgba(18, 30, 49, 0.92), rgba(10, 20, 36, 0.95));
  box-shadow: 0 18px 42px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: var(--pulse-content-gap);
  will-change: transform, opacity;
  transition:
    opacity 320ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

#sheetTotal,
.sheet-stats,
.sheet-basic,
.mini-activity,
.sheet-expanded,
.sheet-open-pulse {
  transition:
    opacity 320ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.sheet-basic,
#sheetTotal,
.sheet-stats {
  opacity: 0;
  transform: translateY(3px);
}

.bottom-sheet.is-basic-content-ready .sheet-basic,
.bottom-sheet.is-basic-content-ready #sheetTotal,
.bottom-sheet.is-basic-content-ready .sheet-stats {
  opacity: 1;
  transform: translateY(0);
}

.bottom-sheet[data-pulse-state="compact"] {
  top: var(--sheet-compact-top);
  height: var(--sheet-compact-h);
}

.bottom-sheet.is-expanded {
  top: var(--sheet-expanded-top);
  bottom: auto;
  z-index: 18;
  height: var(--sheet-expanded-h);
  overflow: hidden;
  scrollbar-width: none;
}

.bottom-sheet.is-expanded .mini-activity,
.bottom-sheet.is-expanded .sheet-expanded,
.bottom-sheet.is-expanded .sheet-open-pulse {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

.bottom-sheet.is-expanded-content-ready .mini-activity,
.bottom-sheet.is-expanded-content-ready .sheet-expanded,
.bottom-sheet.is-expanded-content-ready .sheet-open-pulse {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.bottom-sheet.is-expanded .pulse-balance {
  display: flex !important;
  flex: 0 0 6px;
  min-height: 6px;
  margin-bottom: 0;
}

.bottom-sheet.is-expanded::-webkit-scrollbar {
  display: none;
}

.map-screen.pulse-sheet-open .action-dock {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.sheet-controls {
  position: absolute;
  top: var(--pulse-edge-pad);
  right: var(--pulse-edge-pad);
  z-index: 2;
  display: inline-flex;
  gap: 6px;
}

.sheet-arrow {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(34, 47, 73, 0.78);
  border: 1px solid rgba(172, 188, 218, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.sheet-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-left: 1.4px solid rgba(203, 214, 233, 0.72);
  border-top: 1.4px solid rgba(203, 214, 233, 0.72);
}

.sheet-arrow--up::before {
  transform: translate(-50%, -33%) rotate(45deg);
}

.sheet-arrow--down::before {
  transform: translate(-50%, -66%) rotate(225deg);
}

.bottom-sheet[data-pulse-state="compact"] .sheet-arrow--down,
.bottom-sheet.is-expanded .sheet-arrow--up {
  display: none;
}

.sheet-head {
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: center;
  column-gap: 8px;
  flex: 0 0 auto;
  margin: 0 36px 0 0;
}

.sheet-pulse-icon {
  position: relative;
  width: 17px;
  height: 17px;
  margin-top: 0;
  color: #a9b8d2;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 12h4l2-6 4 12 2-6h8' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 12h4l2-6 4 12 2-6h8' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.82;
  transform: translateZ(0);
  will-change: transform, opacity;
}

.sheet-pulse-icon.is-pulsing-up {
  animation: sheetPulseIconUp var(--sheet-pulse-duration, 720ms) ease-out both;
}

.sheet-pulse-icon.is-pulsing-down {
  animation: sheetPulseIconDown var(--sheet-pulse-duration, 720ms) ease-out both;
}

.sheet-pulse-icon.is-pulsing-lite {
  animation: sheetPulseIconLite var(--sheet-pulse-duration, 320ms) ease-out both;
}

:root[data-motion-mode="balanced"] .sheet-pulse-icon,
:root[data-motion-mode="low"] .sheet-pulse-icon {
  box-shadow: none !important;
}

.sheet-head > div {
  min-width: 0;
}

.sheet-head .section-kicker {
  display: none;
}

.sheet-head h2 {
  margin: 0;
  color: #f3f7ff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.1;
}

#sheetTotal {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #f5f8ff;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 450;
  line-height: 1;
}

.sheet-basic {
  display: grid;
  gap: var(--pulse-content-gap);
  max-height: 36px;
  margin: 0 0 0 24px;
  overflow: hidden;
  transition:
    opacity 320ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-sheet[data-pulse-state="compact"] .sheet-basic {
  max-height: 0;
  margin-bottom: 0;
  pointer-events: none;
}

.bottom-sheet[data-pulse-state="compact"] .mini-activity,
.bottom-sheet[data-pulse-state="compact"] .sheet-expanded,
.bottom-sheet[data-pulse-state="compact"] .sheet-open-pulse {
  display: none;
}

.sheet-metric__dot {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  text-indent: -999px;
  background: rgba(176, 188, 208, 0.72);
}

.sheet-stats {
  margin: 0;
  color: rgba(205, 216, 232, 0.74);
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
}

.sheet-stats > span:not(#sheetHotspot) {
  display: none !important;
}

.pulse-balance {
  flex: 0 0 6px;
  height: 6px;
  display: flex;
  gap: 5px;
  margin: 0;
  overflow: hidden;
  border-radius: 999px;
  box-shadow:
    0 0 12px rgba(57, 220, 134, 0.28),
    0 0 16px rgba(233, 87, 116, 0.22);
}

.bottom-sheet.is-expanded .pulse-balance {
  margin-bottom: var(--pulse-content-gap);
}

.pulse-balance span {
  min-width: 8px;
  height: 100%;
  border-radius: inherit;
}

.pulse-balance .up {
  background: linear-gradient(90deg, #39dc86, #39cc79);
  filter: drop-shadow(0 0 7px rgba(57, 220, 134, 0.72));
}

.pulse-balance .down {
  background: linear-gradient(90deg, #e95774, #d44962);
  filter: drop-shadow(0 0 7px rgba(233, 87, 116, 0.66));
}

@keyframes sheetPulseIconUp {
  0% { color: #a9b8d2; transform: translateZ(0) scale(1); opacity: 0.82; box-shadow: 0 0 0 rgba(57, 220, 134, 0); }
  34% { color: #5effa2; transform: translateZ(0) scale(1.13); opacity: 1; box-shadow: 0 0 10px rgba(57, 220, 134, 0.28); }
  100% { color: #a9b8d2; transform: translateZ(0) scale(1); opacity: 0.86; box-shadow: 0 0 0 rgba(57, 220, 134, 0); }
}

@keyframes sheetPulseIconDown {
  0% { color: #a9b8d2; transform: translateZ(0) scale(1); opacity: 0.82; box-shadow: 0 0 0 rgba(233, 87, 116, 0); }
  34% { color: #ff6a82; transform: translateZ(0) scale(1.13); opacity: 1; box-shadow: 0 0 10px rgba(233, 87, 116, 0.28); }
  100% { color: #a9b8d2; transform: translateZ(0) scale(1); opacity: 0.86; box-shadow: 0 0 0 rgba(233, 87, 116, 0); }
}

@keyframes sheetPulseIconLite {
  0% { transform: translateZ(0) scale(1); opacity: 0.82; }
  50% { transform: translateZ(0) scale(1.06); opacity: 1; }
  100% { transform: translateZ(0) scale(1); opacity: 0.86; }
}

.mini-activity {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--pulse-content-gap);
}

.bottom-sheet:not(.is-expanded) .mini-activity,
.bottom-sheet:not(.is-expanded) .sheet-expanded,
.bottom-sheet:not(.is-expanded) .sheet-open-pulse {
  display: none;
}

.mini-activity__bars {
  height: 22px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.mini-activity__bars span {
  flex: 1 1 0;
  min-width: 2px;
  height: 100%;
  border-radius: 3px 3px 1px 1px;
  background: rgba(53, 216, 140, 0.36);
  transform-origin: bottom;
}

.mini-activity__bars span.is-hot {
  background: rgba(230, 80, 109, 0.45);
}

.mini-activity__axis {
  display: flex;
  justify-content: space-between;
  color: rgba(166, 179, 198, 0.66);
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
}

.sheet-expanded {
  margin-top: 0;
  margin-bottom: var(--pulse-content-gap);
  min-height: 0;
  display: grid;
  gap: var(--pulse-content-gap);
}

.sheet-expanded__grid,
.sheet-expanded__events {
  display: grid;
  gap: 7px;
}

.sheet-expanded__events-block {
  display: grid;
  gap: var(--pulse-content-gap);
}

.sheet-expanded__label {
  display: block;
  color: rgba(227, 235, 249, 0.9);
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 560;
  line-height: 1;
  padding-left: 2px;
}

.sheet-expanded__grid button,
.sheet-expanded__events button {
  min-height: 37px;
  padding: 8px 10px;
  border-radius: 13px;
  background: rgba(255,255,255,0.045);
  color: var(--ink);
  text-align: left;
  font-size: 11px;
  font-weight: 420;
  line-height: 1.15;
}

.sheet-expanded__grid button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sheet-expanded__grid strong,
.sheet-expanded__events strong {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 520;
  line-height: 1.15;
}

.sheet-expanded__grid span,
.sheet-expanded__events span {
  color: rgba(203, 214, 230, 0.72);
  font-size: 10px;
  font-weight: 400;
}

.sheet-expanded__events {
  margin-top: 0;
}

.sheet-expanded__events button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
}

.sheet-event {
  border: 1px solid rgba(143, 164, 196, 0.12);
}

.sheet-event--up {
  border-color: rgba(57, 220, 134, 0.3);
  box-shadow: inset 0 0 0 1px rgba(57, 220, 134, 0.06), 0 0 10px rgba(57, 220, 134, 0.12);
}

.sheet-event--down {
  border-color: rgba(233, 87, 116, 0.32);
  box-shadow: inset 0 0 0 1px rgba(233, 87, 116, 0.06), 0 0 10px rgba(233, 87, 116, 0.13);
}

.sheet-event__icon {
  color: inherit;
  font-size: 13px;
  line-height: 1;
}

.sheet-open-pulse {
  width: 100%;
  min-height: 38px;
  margin-top: 0;
  border-radius: 14px;
  background: rgba(51, 228, 134, 0.12);
  color: #5ff4a3;
  box-shadow:
    inset 0 0 0 1px rgba(95, 244, 163, 0.08),
    0 0 16px rgba(57, 220, 134, 0.12);
}

:root[data-allow-infinite-glow="1"] .bottom-sheet.is-expanded-content-ready .sheet-open-pulse {
  animation: openPulseCtaGlow 2200ms ease-in-out infinite;
}

@keyframes openPulseCtaGlow {
  0%, 100% {
    background: rgba(51, 228, 134, 0.12);
    color: #5ff4a3;
    box-shadow:
      inset 0 0 0 1px rgba(95, 244, 163, 0.08),
      0 0 16px rgba(57, 220, 134, 0.12);
  }
  50% {
    background: rgba(51, 228, 134, 0.18);
    color: #7dffb8;
    box-shadow:
      inset 0 0 0 1px rgba(95, 244, 163, 0.16),
      0 0 24px rgba(57, 220, 134, 0.24);
  }
}

.action-dock {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: var(--dock-bottom);
  z-index: 15;
  height: var(--dock-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px 50px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.emoji-dock-button {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(11, 22, 38, 0.9);
  border: 1px solid rgba(103, 244, 171, 0.2);
  box-shadow: 0 12px 22px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.08);
}

.emoji-dock-button.is-active {
  border-color: rgba(103, 244, 171, 0.58);
  box-shadow: 0 0 18px rgba(103, 244, 171, 0.22), 0 12px 22px rgba(0,0,0,0.28);
}

.emoji-asset {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  object-fit: contain;
  vertical-align: middle;
}

.emoji-asset--empty,
.emoji-asset--missing {
  background: rgba(255,255,255,0.1);
  color: rgba(232, 241, 255, 0.88);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 21px;
  font-weight: 800;
}

.emoji-asset--fallback {
  font-size: 20px;
  line-height: 1;
}

.emoji-dock-picker {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: calc(var(--dock-bottom) + var(--dock-h) + 10px);
  z-index: 18;
  max-height: min(420px, calc(100vh - 210px));
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(141, 163, 196, 0.16);
  border-radius: 18px;
  background: rgba(8, 17, 31, 0.95);
  box-shadow: 0 22px 50px rgba(0,0,0,0.42);
  backdrop-filter: blur(18px);
}

.emoji-dock-picker__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.emoji-dock-picker__head strong {
  font-family: var(--font-display);
  font-size: 15px;
}

.emoji-dock-picker__head span {
  color: rgba(188, 201, 222, 0.78);
  font-size: 11px;
}

.emoji-dock-picker__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.emoji-note-editor {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid rgba(143, 164, 196, 0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
}

.emoji-note-editor > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.emoji-note-editor strong {
  min-width: 0;
  color: rgba(242, 247, 255, 0.94);
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.emoji-note-editor span {
  flex: 0 1 auto;
  max-width: 46%;
  color: rgba(188, 201, 222, 0.78);
  font-size: 10px;
  line-height: 1.12;
  text-align: right;
  overflow-wrap: anywhere;
}

.emoji-note-editor span.is-error {
  color: #ff9aad;
}

.emoji-note-editor.is-locked {
  opacity: 0.76;
}

.emoji-note-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 8px;
}

.emoji-note-input-row input {
  min-width: 0;
  height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(143, 164, 196, 0.14);
  border-radius: 12px;
  background: rgba(5, 12, 24, 0.58);
  color: var(--ink);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", var(--font-base);
  font-size: 20px;
  line-height: 1;
}

.emoji-note-input-row input::placeholder {
  color: rgba(188, 201, 222, 0.42);
  font-size: 15px;
}

.emoji-note-input-row button {
  width: 36px;
  height: 38px;
  border: 1px solid rgba(143, 164, 196, 0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.055);
  color: rgba(232, 241, 255, 0.82);
  font-size: 20px;
  line-height: 1;
}

.emoji-pack-group {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.emoji-pack-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 1px 0;
  color: rgba(226, 236, 255, 0.88);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
}

.emoji-pack-title small {
  min-width: 0;
  overflow: hidden;
  color: rgba(188, 201, 222, 0.68);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.emoji-pack-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.vo-action {
  position: relative;
  overflow: hidden;
  height: 100%;
  border-radius: 17px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 21.5px;
  font-weight: 840;
  letter-spacing: 0;
  box-shadow: 0 12px 28px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.17);
}

.vo-action-up {
  background: linear-gradient(145deg, rgba(71, 235, 160, 0.8), rgba(31, 200, 114, 0.8));
  box-shadow:
    0 12px 28px rgba(0,0,0,0.28),
    0 0 22px rgba(57, 220, 134, 0.32),
    inset 0 1px 0 rgba(255,255,255,0.17);
}

.vo-action-down {
  background: linear-gradient(145deg, rgba(246, 109, 135, 0.8), rgba(213, 74, 100, 0.8));
  box-shadow:
    0 12px 28px rgba(0,0,0,0.28),
    0 0 22px rgba(233, 87, 116, 0.3),
    inset 0 1px 0 rgba(255,255,255,0.17);
}

.vo-action-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: filter 180ms ease, opacity 180ms ease;
}

.vo-action.is-cooldown .vo-action-content {
  filter: blur(3px);
  opacity: 0.36;
}

.vo-cooldown-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.95);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 820;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0,0,0,0.62);
  transition: opacity 180ms ease;
}

.vo-action.is-cooldown .vo-cooldown-overlay {
  opacity: 1;
}

.dock-target {
  width: 50px;
  height: 50px;
  position: relative;
  color: #a68cff;
  background: radial-gradient(circle, rgba(137, 103, 255, 0.28), rgba(20, 25, 53, 0.94));
  border-color: rgba(150, 116, 255, 0.42);
  box-shadow:
    0 0 30px rgba(126, 91, 255, 0.46),
    0 0 13px rgba(174, 142, 255, 0.24),
    inset 0 0 0 1px rgba(255,255,255,0.04);
}

.location-warning-chip {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: calc(var(--dock-bottom) + var(--dock-h) + 10px);
  z-index: 17;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(18, 28, 45, 0.94);
  border: 1px solid rgba(255, 228, 92, 0.26);
  color: rgba(255, 242, 184, 0.96);
  font-size: 11px;
  font-weight: 650;
  box-shadow: 0 16px 34px rgba(0,0,0,0.32);
}

.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
  padding: 7px var(--pad) 9px;
  border-top: 1px solid rgba(141, 163, 196, 0.14);
  border-radius: 24px 24px 0 0;
  background: rgba(9, 18, 32, 0.94);
  box-shadow: 0 -18px 34px rgba(0,0,0,0.26);
  backdrop-filter: blur(18px);
}

.tab-button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  min-width: 0;
  border-radius: 16px;
  background: transparent;
  color: rgba(178, 190, 211, 0.8);
}

.tab-button span {
  width: 18px;
  height: 18px;
}

.tab-button svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-button b {
  font-size: 9.4px;
  font-weight: 500;
  line-height: 1;
}

.tab-button.is-active {
  color: #3ff494;
  background: rgba(25, 194, 112, 0.11);
  border: 1px solid rgba(51, 228, 134, 0.18);
}

.panel-screen {
  padding: var(--header-h) var(--pad) var(--nav-h);
  background:
    radial-gradient(circle at 50% 0%, rgba(63, 244, 148, 0.09), transparent 34%),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(180deg, #081423 0%, #050b15 100%);
  background-size: auto, 42px 42px, 42px 42px, auto;
}

.panel-topbar {
  padding: 16px var(--pad);
}

.screen-scroll {
  height: 100%;
  overflow: auto;
  padding: 14px 0 18px;
  scrollbar-width: none;
}

.screen-title {
  margin-bottom: 12px;
}

.profile-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 12px;
  min-width: 0;
}

.profile-title-row .screen-title {
  margin-bottom: 0;
}

.profile-subtabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  min-width: min(156px, 46vw);
  padding: 4px;
  border: 1px solid rgba(143, 164, 196, 0.12);
  border-radius: 15px;
  background: rgba(8, 17, 31, 0.58);
}

.profile-subtab {
  min-height: 34px;
  border-radius: 11px;
  color: rgba(199, 210, 228, 0.72);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.08;
  text-align: center;
  white-space: normal;
}

.profile-subtab.is-active {
  background: rgba(51, 228, 134, 0.14);
  color: #64f5a6;
  box-shadow: inset 0 0 0 1px rgba(51, 228, 134, 0.18);
}

.profile-tab-panel {
  display: none;
}

.profile-tab-panel.is-active {
  display: block;
}

.section-kicker {
  display: block;
  margin: 0 0 5px;
  color: rgba(97, 239, 159, 0.82);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.screen-title h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 780;
  line-height: 1.02;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.hero-card,
.content-section,
.profile-hero,
.profile-panel,
.cta-card,
.empty-card,
.game-gate,
.voice-metric {
  border: 1px solid rgba(143, 164, 196, 0.16);
  border-radius: 16px;
  background: rgba(10, 21, 36, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 10px 24px rgba(0,0,0,0.14);
}

.hero-card {
  min-height: 104px;
  display: grid;
  grid-template-columns: 1fr 94px;
  gap: 10px;
  align-items: center;
  padding: 14px;
}

.hero-card span,
.voice-metric span,
.profile-stats span,
.friend-slot span,
.unlock-row span {
  color: var(--soft);
  font-size: 11px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.hero-card strong {
  display: block;
  margin: 4px 0;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1;
}

.hero-card p,
.voice-metric p,
.profile-hero p,
.cta-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.glow-map {
  position: relative;
  height: 96px;
  border-radius: 16px;
  background: rgba(8, 16, 30, 0.64);
  overflow: hidden;
}

.blob {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.72;
}

.blob.up {
  left: 18px;
  top: 16px;
  background: rgba(51, 228, 134, 0.55);
}

.blob.down {
  right: 18px;
  bottom: 16px;
  background: rgba(237, 88, 116, 0.55);
}

.blob.hot {
  left: 46px;
  bottom: 14px;
  background: rgba(138, 108, 255, 0.48);
}

.filter-row,
.quick-share-row {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}

.filter-chip,
.share-command,
.icon-command,
.primary-command,
.secondary-command {
  min-height: 42px;
  border-radius: 14px;
  padding: 0 13px;
  border: 1px solid rgba(143, 164, 196, 0.14);
  background: rgba(22, 34, 55, 0.82);
  color: var(--ink);
  line-height: 1.12;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.filter-chip {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
}

.filter-chip.is-active,
.primary-command {
  color: #061321;
  background: linear-gradient(145deg, #54ef9c, #2cd782);
  border-color: rgba(89, 255, 165, 0.34);
}

.secondary-command {
  color: #dbe4fb;
}

.content-section {
  margin-top: 10px;
  padding: 13px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  min-width: 0;
}

.section-head h2 {
  min-width: 0;
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 720;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.section-head span {
  max-width: 50%;
  color: var(--soft);
  font-size: 10px;
  line-height: 1.15;
  text-align: right;
  overflow-wrap: anywhere;
}

.district-ranking,
.event-feed,
.hotspot-list,
.history-list,
.friend-slots,
.unlock-list {
  display: grid;
  gap: 8px;
}

.district-ranking__item,
.event-item,
.hotspot-card,
.history-item,
.friend-slot,
.unlock-row,
.profile-stats article,
.emoji-choice,
.avatar-choice,
.message-choice {
  min-height: 48px;
  display: grid;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid rgba(143, 164, 196, 0.12);
  border-radius: 13px;
  background: rgba(255,255,255,0.045);
  color: var(--ink);
}

.district-ranking__item,
.event-item,
.hotspot-card {
  width: 100%;
  appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.district-ranking__item {
  grid-template-columns: 24px 1fr auto;
  text-align: left;
}

.district-ranking__item b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  font-size: 10px;
}

.district-ranking__item strong,
.event-item strong,
.hotspot-card strong,
.history-item strong,
.unlock-row strong {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
  min-width: 0;
  overflow-wrap: anywhere;
}

.district-ranking__item span,
.event-item small,
.hotspot-card span,
.history-item span {
  color: var(--soft);
  font-size: 10.5px;
}

.event-item {
  grid-template-columns: 30px 1fr;
  text-align: left;
}

.event-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}

.event-up .event-icon,
.district-ranking__item--positive b {
  color: #4ff39a;
}

.event-down .event-icon,
.district-ranking__item--negative b {
  color: #ff7088;
}

.event-hot .event-icon {
  color: #a78cff;
}

.hotspot-card {
  min-height: 58px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px 13px;
  background: rgba(255,255,255,0.04);
}

.hotspot-card small {
  color: rgba(244, 247, 255, 0.92);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.hotspot-card--up {
  border-color: rgba(79, 243, 154, 0.28);
}

.hotspot-card--down {
  border-color: rgba(255, 112, 136, 0.3);
}

.hotspot-card--mixed,
.hotspot-card--neutral {
  border-color: rgba(85, 215, 255, 0.22);
}

.pulse-total__number {
  font-size: 28px;
}

.pulse-total__unit {
  font-size: 14px;
  opacity: 0.72;
}

.voice-grid,
.profile-stats,
.profile-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.voice-metric {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px;
}

.voice-metric--status {
  grid-column: 1 / -1;
  min-height: 116px;
  align-content: start;
  gap: 7px;
  padding: 16px;
}

.voice-metric strong,
.profile-hero strong,
.profile-stats strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 17px;
}

.voice-metric--status strong,
.voice-metric--status small,
.voice-metric--status p {
  margin: 0;
}

.voice-metric--status small {
  color: rgba(238, 244, 255, 0.9);
  font-size: 12px;
  line-height: 1.15;
}

.voice-metric--status p {
  max-width: 31ch;
  line-height: 1.25;
}

.progress-track,
.voice-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--purple));
}

.voice-empty,
.game-gate {
  margin-top: 10px;
  padding: 13px;
}

.friends-card {
  grid-template-columns: 1fr 72px;
}

.friend-dots {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.friend-dots span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  color: var(--green);
  font-size: 11px;
}

.friend-dots .is-active {
  background: rgba(51, 228, 134, 0.18);
}

.referral-box {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
}

.referral-box input {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(143, 164, 196, 0.14);
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
  color: var(--muted);
}

.emoji-grid,
.avatar-grid,
.message-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.avatar-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.emoji-choice,
.avatar-choice,
.message-choice {
  min-height: 44px;
  justify-content: center;
  min-width: 0;
  text-align: center;
}

.avatar-choice {
  min-height: 104px;
  grid-template-rows: 46px minmax(0, auto);
  justify-items: center;
  align-content: center;
  gap: 8px;
  padding: 12px 8px;
}

.avatar-choice__image,
.avatar-choice__fallback,
.avatar-choice__none {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.avatar-choice__image {
  display: block;
  object-fit: cover;
  background: rgba(255,255,255,0.06);
  box-shadow:
    0 8px 18px rgba(0,0,0,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.18);
}

.avatar-choice__fallback {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,0.28), transparent 34%),
    var(--avatar-color, rgba(51,228,134,0.3));
  color: #071421;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 820;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}

.avatar-choice__none {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(171, 190, 222, 0.34);
  background: rgba(255,255,255,0.045);
  color: rgba(210, 224, 244, 0.72);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 820;
  line-height: 1;
}

.avatar-choice__none::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: rgba(237, 88, 116, 0.74);
  transform: rotate(-28deg);
  box-shadow: 0 0 10px rgba(237, 88, 116, 0.24);
}

.avatar-choice b {
  max-width: 100%;
  color: rgba(232, 241, 255, 0.9);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

@media (min-width: 520px) {
  .avatar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.emoji-dock-picker__grid .emoji-choice,
.emoji-grid .emoji-choice {
  min-height: 66px;
  display: grid;
  place-items: center;
  gap: 0;
  padding: 7px 5px;
  text-align: center;
}

.emoji-choice span:not(.emoji-asset) {
  max-width: 100%;
  overflow: hidden;
  color: rgba(224, 235, 255, 0.78);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: normal;
  line-height: 1.1;
}

.emoji-choice small {
  max-width: 100%;
  color: rgba(224, 235, 255, 0.64);
  font-size: 8.2px;
  line-height: 1.12;
}

.emoji-choice.is-selected,
.avatar-choice.is-selected,
.message-choice.is-selected {
  border-color: rgba(51, 228, 134, 0.34);
  background: rgba(51, 228, 134, 0.12);
  color: #65ffa9;
}

.emoji-choice.is-locked {
  opacity: 0.78;
}

.emoji-choice.is-locked .emoji-asset {
  filter: blur(1.5px) grayscale(0.25);
  opacity: 0.42;
}

.emoji-choice:not(.is-locked) .emoji-asset {
  filter: none;
  opacity: 1;
}

.emoji-choice--none {
  min-height: 66px;
}

.telegram-entry-gate {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 20%, rgba(85, 215, 255, 0.12), transparent 34%),
    rgba(3, 8, 19, 0.86);
}

.telegram-entry-gate.is-hidden {
  display: none;
}

.telegram-entry-card {
  width: min(100%, 320px);
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(141, 163, 196, 0.18);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(17, 30, 50, 0.96), rgba(8, 17, 31, 0.98));
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: center;
}

.telegram-entry-brand {
  justify-self: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 840;
  line-height: 1;
  text-shadow:
    0 0 8px rgba(77, 255, 198, 0.42),
    0 0 20px rgba(77, 255, 198, 0.18);
}

.telegram-entry-card h2 {
  margin: 0;
  color: #f6f9ff;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.05;
}

.telegram-entry-card p {
  margin: 0;
  color: rgba(208, 220, 239, 0.82);
  font-size: 13px;
  line-height: 1.4;
}

.telegram-entry-card .primary-command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  line-height: 1.1;
  text-decoration: none;
}

.telegram-connect,
.channel-form {
  display: grid;
  gap: 10px;
}

.telegram-connect strong {
  font-family: var(--font-display);
  font-size: 16px;
}

.telegram-connect span,
.channel-form-note {
  color: rgba(188, 201, 222, 0.82);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.channel-form input,
.channel-form textarea,
.channel-form select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(141, 163, 196, 0.16);
  border-radius: 12px;
  background: rgba(7, 15, 27, 0.72);
  color: rgba(236, 244, 255, 0.94);
  font: inherit;
  letter-spacing: 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.channel-logo-upload {
  min-height: 70px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border: 1px dashed rgba(103, 244, 171, 0.28);
  border-radius: 13px;
  background: rgba(51, 228, 134, 0.065);
  color: rgba(236, 244, 255, 0.94);
  cursor: pointer;
}

.channel-logo-upload input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.channel-logo-upload span {
  color: #61ef9f;
  font-weight: 720;
}

.channel-logo-upload small {
  color: rgba(188, 201, 222, 0.7);
  font-size: 10px;
}

.channel-logo-preview {
  width: 64px;
  height: 64px;
  display: block;
  object-fit: cover;
  border-radius: 15px;
  border: 1px solid rgba(143, 164, 196, 0.18);
  background: rgba(255,255,255,0.05);
}

.channel-form textarea {
  resize: vertical;
}

.channel-mode-select,
.channel-mode-text {
  width: 100%;
  border: 1px solid rgba(141, 163, 196, 0.16);
  border-radius: 12px;
  background: rgba(7, 15, 27, 0.72);
  color: rgba(236, 244, 255, 0.94);
  padding: 10px 12px;
  font: inherit;
  letter-spacing: 0;
}

.channel-mode-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(246, 195, 90, 0.11);
  border: 1px solid rgba(246, 195, 90, 0.24);
  color: rgba(236, 244, 255, 0.94);
  font-weight: 720;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.channel-mode-toggle span {
  min-width: 0;
}

.channel-mode-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #f6c35a;
}

.channel-mode-text {
  min-height: 78px;
  resize: vertical;
}

.channel-form input::placeholder,
.channel-form textarea::placeholder {
  color: rgba(188, 201, 222, 0.48);
}

.profile-hero {
  display: grid;
  gap: 9px;
  padding: 15px;
  text-align: center;
}

.profile-hero h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.05;
}

.profile-hero strong,
.profile-hero p {
  margin: 0;
}

.vo-face {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51,228,134,0.18), rgba(8,16,30,0.92));
  color: #0a0e16;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 860;
  box-shadow: inset 0 0 0 1px rgba(51,228,134,0.4), 0 0 28px rgba(51,228,134,0.15);
}

.profile-stats {
  margin-top: 10px;
}

.profile-stats article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 61px;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
}

.profile-stats article span {
  min-width: 0;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.profile-stats article strong {
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.profile-panel,
.cta-card {
  margin-top: 10px;
  padding: 15px;
}

.profile-panel .section-head {
  margin-bottom: 12px;
}

.profile-panel-grid article {
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(143, 164, 196, 0.12);
  border-radius: 13px;
  background: rgba(255,255,255,0.045);
}

.profile-panel-grid article span {
  color: var(--soft);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.profile-panel-grid article strong {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.cta-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.15;
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}

.cta-card .primary-command {
  width: 100%;
  margin-top: 12px;
}

.profile-panel-note {
  margin: -4px 0 12px;
  color: rgba(188, 201, 222, 0.78);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.privacy-note {
  margin-top: 12px;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.district-card {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  top: var(--sheet-expanded-top);
  bottom: calc(var(--nav-h) + var(--edge-gap));
  z-index: 17;
  max-height: none;
  overflow: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(143, 164, 196, 0.16);
  border-radius: 20px;
  background: rgba(12, 23, 40, 0.94);
  box-shadow: 0 18px 42px rgba(0,0,0,0.35);
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  will-change: transform, opacity;
  transition:
    opacity 320ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.map-screen.district-card-open .bottom-sheet,
.map-screen.district-card-open .action-dock {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.district-card::-webkit-scrollbar {
  display: none;
}

.district-card.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.985);
  transition:
    opacity 320ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 420ms;
}

.district-card__close,
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  color: var(--muted);
  z-index: 3;
}

.district-card__preview {
  position: relative;
  height: 130px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 14px;
  background: #07111f;
  border: 1px solid rgba(143, 164, 196, 0.14);
}

.district-card__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 15, 28, 0.08), rgba(7, 15, 28, 0.34)),
    radial-gradient(circle at 50% 50%, rgba(51, 228, 134, 0.08), transparent 62%);
}

.district-card__mini-map,
.share-card__mini-map {
  position: relative;
  width: 100%;
  height: 100%;
}

.district-card__mini-map .maplibregl-control-container {
  display: none;
}

.district-card__mini-map .maplibregl-canvas {
  filter: saturate(0.8) brightness(0.82) contrast(1.08);
}

.district-mini-snapshot {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(73, 220, 180, 0.12), transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(118, 178, 255, 0.08), transparent 34%),
    linear-gradient(90deg, rgba(255,255,255,0.026) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.026) 1px, transparent 1px),
    #07111f;
  background-size: auto, auto, 34px 34px, 34px 34px;
}

.district-mini-snapshot svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.district-mini-snapshot path {
  vector-effect: non-scaling-stroke;
}

.district-mini-snapshot .mini-district-glow {
  fill: none;
  stroke-opacity: 0.55;
  stroke-width: 4.2;
  filter: blur(2.8px) drop-shadow(0 0 8px rgba(104, 209, 255, 0.34));
}

.district-mini-snapshot .mini-district-fill {
  fill-opacity: 0.08;
  stroke-opacity: 0.95;
  stroke-width: 1.25;
  filter: drop-shadow(0 0 5px rgba(98, 182, 255, 0.26));
}

.district-mini-hotspot {
  position: absolute;
  z-index: 2;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--hotspot-color, var(--green)) 84%, white 16%);
  background: rgba(8, 17, 31, 0.86);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 0 16px color-mix(in srgb, var(--hotspot-color, var(--green)) 38%, transparent);
  transform: translate(-50%, -50%);
}

.district-card__mini-map .leaflet-tile,
.share-card__mini-map .leaflet-tile {
  filter: saturate(0.45) brightness(0.46) contrast(1.18) hue-rotate(178deg);
}

.district-card__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  margin-right: 0;
}

.district-card__header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 640;
}

.district-card__header strong {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 450;
  text-align: right;
  justify-self: end;
  white-space: nowrap;
}

.district-card__empty,
.district-card__places-title {
  color: rgba(227, 235, 249, 0.9);
  font-size: 10.5px;
  font-weight: 560;
  line-height: 1;
}

.district-card__score,
.district-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 0;
}

.district-card__progress {
  height: 7px;
  display: flex;
  gap: 4px;
  margin-top: 0;
}

.district-card__progress span {
  border-radius: 999px;
}

.district-card__progress .up {
  background: var(--green);
}

.district-card__progress .down {
  background: var(--red);
}

.district-card__places {
  display: grid;
  gap: 7px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.district-card__places li {
  min-width: 0;
}

.district-card__places button {
  width: 100%;
  min-height: 37px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(143, 164, 196, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(236, 243, 255, 0.88);
  font-size: 10.5px;
  font-weight: 430;
  line-height: 1.15;
  text-align: left;
}

.district-card__places button small {
  color: rgba(174, 187, 207, 0.72);
  font-size: 9.5px;
  font-weight: 400;
}

.district-card__vo-list .sheet-event {
  grid-template-columns: 22px minmax(0, 1fr);
}

.district-card__vo-list .sheet-event small {
  display: none;
}

.district-card__actions button {
  flex: 1 1 0;
}

.district-card__actions .primary-command {
  min-height: 38px;
  border-radius: 14px;
  border-color: rgba(95, 244, 163, 0.16);
  background: rgba(51, 228, 134, 0.12);
  color: #5ff4a3;
  box-shadow:
    inset 0 0 0 1px rgba(95, 244, 163, 0.08),
    0 0 16px rgba(57, 220, 134, 0.12);
  text-shadow: 0 0 10px rgba(95, 244, 163, 0.28);
}

:root[data-allow-infinite-glow="1"] .district-card:not(.is-hidden) .district-card__actions .primary-command {
  animation: openPulseCtaGlow 2200ms ease-in-out infinite;
}

.district-card.is-hidden .district-card__actions .primary-command,
:root:not([data-allow-infinite-glow="1"]) .sheet-open-pulse,
:root:not([data-allow-infinite-glow="1"]) .district-card__actions .primary-command {
  animation: none !important;
  filter: none !important;
  text-shadow: none;
}

.share-modal {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(1, 4, 10, 0.7);
  backdrop-filter: blur(12px);
}

.share-modal.is-hidden {
  display: none;
}

.share-dialog,
.level-dialog {
  position: relative;
  width: min(100%, 340px);
}

.share-card,
.level-card {
  padding: 18px;
  border: 1px solid rgba(143, 164, 196, 0.16);
  border-radius: 22px;
  background: rgba(15, 26, 44, 0.96);
}

.share-brand {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 850;
}

.share-map-fragment {
  position: relative;
  height: 150px;
  overflow: hidden;
  margin: 12px 0;
  border-radius: 16px;
  background: #0a1525;
}

.share-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
}

.share-marker.is-down {
  background: var(--red);
}

.modal-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.toast-host {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: calc(var(--nav-h) + 12px);
  z-index: 60;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 26, 44, 0.95);
  border: 1px solid rgba(143, 164, 196, 0.16);
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  border-color: rgba(51, 228, 134, 0.3);
}

.toast-error {
  border-color: rgba(237, 88, 116, 0.35);
}

.vo-div-icon,
.selected-div-icon,
.ripple-div-icon,
.ambient-pulse-div-icon {
  background: transparent;
  border: 0;
}

.map-marker-shell {
  display: grid;
  place-items: center;
  overflow: visible;
  pointer-events: auto;
  position: relative;
  transform-origin: center;
  contain: layout style;
}

.map-marker-shell > * {
  grid-area: 1 / 1;
}

.map-marker-shell--passive,
.map-marker-shell--passive > * {
  pointer-events: none;
}

.map-marker-shell--ambient {
  width: 0;
  height: 0;
  display: block;
  overflow: visible;
  z-index: 90;
  transform-origin: center;
}

.map-marker-shell--ripple,
.map-marker-shell--event-flash {
  width: 0;
  height: 0;
  display: block;
  overflow: visible;
  pointer-events: none;
}

.map-marker-shell .map-ripple,
.map-marker-shell .map-event-flash,
.map-marker-shell .ambient-pulse {
  will-change: transform, opacity;
}

.map-marker-shell--ripple .map-ripple {
  position: absolute;
  left: -22px;
  top: -22px;
}

.map-marker-shell--event-flash .map-event-flash {
  position: absolute;
  left: -23px;
  top: -23px;
}

.map-marker-shell--event-flash .map-event-flash--lite {
  left: -17px;
  top: -17px;
}

.map-marker-shell--ambient .ambient-pulse {
  position: absolute;
  left: -34px;
  top: -34px;
  cursor: pointer;
  pointer-events: auto;
}

.vo-map-popup {
  z-index: 95;
  max-width: 240px;
  font-family: var(--font-ui);
  color: var(--ink);
  pointer-events: auto;
  --vo-popup-meta-size: 8.8px;
  --vo-popup-pill-h: 18px;
  --vo-popup-edge-x: 14px;
  --vo-popup-edge-y: 12px;
  --vo-popup-close-gap: 8px;
}

.vo-map-popup .maplibregl-popup-content {
  position: relative;
  pointer-events: auto;
  min-width: 190px;
  padding: 12px 14px;
  border: 1px solid rgba(143, 164, 196, 0.2);
  border-radius: 16px;
  background: rgba(13, 24, 40, 0.94);
  color: rgba(239, 245, 255, 0.94);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  font-size: 11px;
  font-weight: 450;
  line-height: 1.35;
  letter-spacing: 0;
  transform: translateY(0) scale(1);
  opacity: 1;
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.vo-map-popup .maplibregl-popup-tip {
  transition: opacity 220ms ease;
}

.vo-map-popup.is-closing .maplibregl-popup-content {
  opacity: 0;
  transform: translateY(5px) scale(0.975);
}

.vo-map-popup.is-closing .maplibregl-popup-tip {
  opacity: 0;
}

.vo-map-popup .maplibregl-popup-content strong {
  display: block;
  margin: 0 0 6px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
}

.vo-map-popup .vo-popup-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: var(--vo-popup-pill-h);
  margin: 0 0 6px;
  padding-right: calc(var(--vo-popup-pill-h) + var(--vo-popup-close-gap));
}

.vo-map-popup .vo-popup-heading strong {
  min-width: 0;
  margin: 0;
  flex: 1 1 auto;
}

.vo-map-popup .maplibregl-popup-content span,
.vo-map-popup .maplibregl-popup-content em {
  color: rgba(199, 210, 228, 0.78);
  font-size: var(--vo-popup-meta-size);
  font-style: normal;
}

.vo-map-popup .maplibregl-popup-content .vo-popup-badge {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  max-width: 150px;
  height: var(--vo-popup-pill-h);
  min-height: var(--vo-popup-pill-h);
  margin: 0 0 0 auto;
  padding: 0 7px;
  border-radius: 999px;
  font-size: var(--vo-popup-meta-size);
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0;
}

.vo-map-popup .maplibregl-popup-content .vo-popup-badge--hot {
  border: 1px solid rgba(255, 172, 70, 0.5);
  background: rgba(255, 132, 43, 0.13);
  color: #ffbd65;
  box-shadow:
    inset 0 0 0 1px rgba(255, 205, 112, 0.12),
    0 0 12px rgba(255, 146, 51, 0.26);
  text-shadow: 0 0 8px rgba(255, 179, 68, 0.38);
}

.vo-map-popup .maplibregl-popup-content .vo-popup-badge--channel {
  border: 1px solid rgba(246, 195, 90, 0.5);
  background: rgba(246, 195, 90, 0.16);
  color: #ffe6a4;
  box-shadow: 0 0 14px rgba(246, 195, 90, 0.2);
}

.vo-map-popup .vo-popup-heading--channel strong {
  color: #fff1bd;
}

.vo-popup-channel {
  display: inline-flex;
  max-width: 100%;
  margin-top: 4px;
  color: #ffe6a4;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.vo-popup-channel-text {
  margin: 5px 0 0;
  color: rgba(236, 244, 255, 0.92);
  font-size: 10px;
  line-height: 1.35;
}

.vo-popup-author {
  display: grid;
  gap: 2px;
  margin-top: 7px;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1px solid rgba(51, 228, 134, 0.2);
  background: rgba(51, 228, 134, 0.08);
}

.vo-map-popup .vo-popup-author span {
  color: #ecfff6;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
}

.vo-map-popup .vo-popup-author em {
  color: rgba(197, 255, 224, 0.76);
  font-size: 8.8px;
  font-style: normal;
  line-height: 1.2;
}

.vo-popup-reactions {
  display: flex;
  gap: 5px;
  margin-top: 7px;
}

.vo-popup-reactions button {
  min-width: 0;
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 9px;
  border: 1px solid rgba(246, 195, 90, 0.2);
  background: rgba(246, 195, 90, 0.09);
  color: rgba(236, 244, 255, 0.92);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.vo-popup-reactions button.is-active {
  background: rgba(246, 195, 90, 0.24);
  color: #fff1bd;
}

.vo-map-popup .maplibregl-popup-content .vo-popup-location,
.vo-map-popup .maplibregl-popup-content .vo-popup-time {
  display: block;
  max-width: 150px;
  color: rgba(199, 210, 228, 0.72);
  font-size: var(--vo-popup-meta-size);
  line-height: 1.25;
}

.vo-map-popup .maplibregl-popup-content .vo-popup-location {
  font-weight: 650;
}

.vo-map-popup .maplibregl-popup-content .vo-popup-time {
  margin-top: 2px;
  color: rgba(199, 210, 228, 0.58);
  font-size: var(--vo-popup-meta-size);
}

.vo-popup-close {
  position: absolute;
  right: var(--vo-popup-edge-x);
  top: var(--vo-popup-edge-y);
  z-index: 2;
  width: var(--vo-popup-pill-h);
  height: var(--vo-popup-pill-h);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(214, 224, 241, 0.68);
  cursor: pointer;
  font-size: 0;
  font-weight: 650;
  line-height: 1;
  padding: 0;
  pointer-events: auto;
  touch-action: manipulation;
}

.vo-popup-close::before {
  content: "×";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  transform: translateY(-0.5px);
}

.vo-popup-action {
  width: 68%;
  min-width: 82px;
  height: 23px;
  margin: 8px auto 0 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(51, 228, 134, 0.22);
  color: #75ffb3;
  font-family: var(--font-ui);
  font-size: var(--vo-popup-meta-size);
  font-weight: 560;
  line-height: 1;
  text-shadow: 0 0 8px rgba(99, 255, 171, 0.46);
  box-shadow:
    inset 0 0 0 1px rgba(99, 255, 171, 0.4),
    0 0 12px rgba(51, 228, 134, 0.42),
    0 0 28px rgba(51, 228, 134, 0.2);
}

.vo-popup-action--up {
  background: rgba(51, 228, 134, 0.22);
  color: #75ffb3;
  text-shadow: 0 0 8px rgba(99, 255, 171, 0.46);
  box-shadow:
    inset 0 0 0 1px rgba(99, 255, 171, 0.4),
    0 0 12px rgba(51, 228, 134, 0.42),
    0 0 28px rgba(51, 228, 134, 0.2);
}

.vo-popup-action--down {
  background: rgba(255, 92, 128, 0.2);
  color: #ff8ea6;
  text-shadow: 0 0 8px rgba(255, 112, 146, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(255, 112, 146, 0.42),
    0 0 12px rgba(255, 92, 128, 0.4),
    0 0 28px rgba(255, 92, 128, 0.18);
}

.vo-map-popup .maplibregl-popup-close-button {
  top: 7px;
  right: 7px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(214, 224, 241, 0.72);
  font-size: 14px;
  line-height: 1;
}

.vo-map-popup .maplibregl-popup-close-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.vo-map-popup.maplibregl-popup-anchor-top .maplibregl-popup-tip,
.vo-map-popup.maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
.vo-map-popup.maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
  border-bottom-color: rgba(13, 24, 40, 0.94);
}

.vo-map-popup.maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
.vo-map-popup.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
.vo-map-popup.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
  border-top-color: rgba(13, 24, 40, 0.94);
}

.vo-map-popup.maplibregl-popup-anchor-left .maplibregl-popup-tip {
  border-right-color: rgba(13, 24, 40, 0.94);
}

.vo-map-popup.maplibregl-popup-anchor-right .maplibregl-popup-tip {
  border-left-color: rgba(13, 24, 40, 0.94);
}

.district-area {
  filter: drop-shadow(0 0 8px rgba(80, 160, 220, 0.16));
  transition: opacity 140ms ease, fill-opacity 140ms ease, stroke-width 140ms ease;
}

.maplibre-base-ready .district-area {
  filter: none;
  transition: none;
}

.district-area--selected {
  filter: drop-shadow(0 0 16px rgba(83, 239, 160, 0.28));
}

.maplibre-base-ready .district-area--selected {
  filter: none;
}

.vo-marker,
.vo-cluster,
.selected-spot,
.map-ripple,
.map-event-flash,
.ambient-pulse {
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.vo-marker {
  position: relative;
  width: 38px;
  height: 38px;
  overflow: visible;
  background: rgba(8, 17, 31, 0.9);
  border: 1.5px solid rgba(229, 239, 255, 0.24);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,0.28);
  backdrop-filter: blur(10px);
}

.vo-marker--up {
  color: var(--green);
  border-color: rgba(51, 228, 134, 0.48);
  box-shadow: 0 0 18px rgba(51, 228, 134, 0.2);
}

.vo-marker--down {
  color: var(--red);
  border-color: rgba(237, 88, 116, 0.5);
  box-shadow: 0 0 18px rgba(237, 88, 116, 0.2);
}

.vo-symbol {
  position: relative;
  z-index: 1;
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.vo-marker:not(.vo-marker--emoji) .vo-symbol {
  font-size: 19px;
}

.vo-reaction-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  z-index: 2;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(8, 17, 31, 0.96);
  border: 1px solid currentColor;
  color: inherit;
  font-size: 10px;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0,0,0,0.24);
}

.vo-cluster {
  width: 50px;
  height: 50px;
  background: rgba(15, 26, 44, 0.92);
  border: 1px solid rgba(255,255,255,0.16);
}

.vo-cluster b {
  font-family: var(--font-display);
  font-size: 17px;
}

.vo-cluster small {
  font-size: 8px;
  color: var(--soft);
}

.cluster-up {
  color: var(--green);
}

.cluster-down {
  color: var(--red);
}

.cluster-mixed {
  color: var(--purple);
}

.selected-spot {
  position: relative;
  width: 28px;
  height: 28px;
  border: 2px solid var(--purple);
  background: rgba(138, 108, 255, 0.16);
}

.selected-radius {
  width: 42px;
  height: 42px;
  display: block;
  border-radius: 50%;
  border: 1px solid rgba(124, 92, 255, 0.64);
  background: rgba(124, 92, 255, 0.13);
  box-shadow: 0 0 20px rgba(124, 92, 255, 0.24);
  pointer-events: none;
}

.selected-spot i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
}

.selected-location-crosshair {
  position: relative;
  width: 24px;
  height: 24px;
  display: block;
  border-radius: 50%;
  border: 1.4px solid rgba(103, 244, 171, 0.9);
  background: rgba(12, 27, 41, 0.42);
  box-shadow: 0 0 18px rgba(82, 244, 159, 0.28);
  pointer-events: none;
}

.selected-location-crosshair::before,
.selected-location-crosshair::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  background: rgba(211, 255, 234, 0.92);
  transform: translate(-50%, -50%);
}

.selected-location-crosshair::before {
  width: 2px;
  height: 28px;
}

.selected-location-crosshair::after {
  width: 28px;
  height: 2px;
}

.map-ripple {
  width: 44px;
  height: 44px;
  border: 2px solid currentColor;
  opacity: 0;
  animation: ripple 1.5s ease-out;
}

.ripple-up {
  color: var(--green);
}

.ripple-down {
  color: var(--red);
}

.map-event-flash {
  width: 46px;
  height: 46px;
  color: var(--green);
  border: 1.5px solid currentColor;
  background: radial-gradient(circle, currentColor 0%, currentColor 8%, transparent 9%, transparent 100%);
  opacity: 0;
  transform: translateZ(0) scale(0.72);
  transform-origin: center;
  pointer-events: none;
  animation: mapEventFlash var(--map-event-duration, 520ms) ease-out both;
}

.map-event-flash--down {
  color: var(--red);
}

.map-event-flash--lite {
  width: 34px;
  height: 34px;
  border-width: 1px;
}

@keyframes mapEventFlash {
  0% {
    opacity: 0;
    transform: translateZ(0) scale(0.72);
  }
  28% {
    opacity: 0.72;
    transform: translateZ(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateZ(0) scale(1.86);
  }
}

.ambient-pulse {
  position: relative;
  width: 68px;
  height: 68px;
  display: block;
  color: #fff;
  border-radius: 50%;
  transform: translate3d(0, 0, 0);
  transform-origin: center;
  animation: ambientPulse 5s cubic-bezier(0.2, 0.82, 0.2, 1) forwards;
  pointer-events: none;
}

.ambient-pulse__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 68px;
  height: 68px;
  display: block;
  overflow: visible;
  opacity: 0.72;
  transform: translate(-50%, -50%) scale(0.58);
  transform-origin: center;
  pointer-events: none;
}

.ambient-pulse__ring circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-opacity: 0.74;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 1px currentColor);
}

.ambient-pulse b {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(8, 17, 31, 0.92);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 19px;
  font-weight: 820;
  line-height: 1;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.32);
  transform: translate(-50%, -50%);
}

.ambient-pulse em {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 2;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: rgba(8, 17, 31, 0.96);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 10px;
  font-style: normal;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0,0,0,0.24);
}

.ambient-pulse--up {
  color: var(--green);
}

.ambient-pulse--down {
  color: var(--red);
}

.ambient-pulse--initial {
  animation-duration: 5s;
}

.map-marker-shell--ambient.is-popup-open {
  z-index: 96 !important;
}

.map-marker-shell--ambient.is-popup-open .ambient-pulse {
  animation: none;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.map-marker-shell--ambient.is-popup-open .ambient-pulse__ring {
  opacity: 0.24;
}

.map-marker-shell--ambient.is-popup-closing {
  pointer-events: none;
}

.map-marker-shell--ambient.is-popup-closing .ambient-pulse {
  animation: none;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.88);
  transition:
    opacity 320ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.district-mini-vo {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(8, 17, 31, 0.9);
  color: #fff;
  font-family: var(--font-display);
  font-size: 10px;
}

@keyframes ripple {
  0% { transform: scale(0.35); opacity: 0.8; }
  100% { transform: scale(2.1); opacity: 0; }
}

@keyframes ambientPulse {
  0% { transform: translate3d(0, 0, 0) scale(0.86); opacity: 0; }
  16% { opacity: 1; }
  78% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.94; }
  100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
}

@keyframes ambientPulseRing {
  0% { transform: translate(-50%, -50%) scale(0.32); opacity: 0; }
  14% { opacity: 0.86; }
  74% { opacity: 0.48; }
  100% { transform: translate(-50%, -50%) scale(2.18); opacity: 0; }
}

@media (max-height: 860px) {
  .app-frame {
    --pad: 20px;
    --header-h: 92px;
    --control-top: calc(var(--header-h) + 18px);
    --sheet-compact-h: 64px;
    --sheet-h: 112px;
    --dock-h: 54px;
    --nav-h: 70px;
    --edge-gap: 10px;
    --dock-gap: 10px;
  }

  .brand-lockup strong,
  .panel-brand strong {
    font-size: 28px;
  }

  .top-bar,
  .panel-topbar {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px var(--pad);
  }

  .map-pill {
    min-width: 104px;
    height: 32px;
  }

  .map-target {
    width: 40px;
    height: 40px;
  }

  .vo-action {
    font-size: 20px;
    border-radius: 16px;
  }

  .dock-target {
    width: 48px;
    height: 48px;
  }
}

@media (max-height: 790px) {
  .app-frame {
    --pad: 20px;
    --header-h: 82px;
    --control-top: calc(var(--header-h) + 16px);
    --sheet-compact-h: 62px;
    --sheet-h: 110px;
    --dock-h: 50px;
    --nav-h: 66px;
    --edge-gap: 8px;
    --dock-gap: 8px;
  }

  .top-bar,
  .panel-topbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 14px var(--pad);
  }

  .brand-lockup strong,
  .panel-brand strong {
    font-size: 25px;
  }

  .brand-lockup span,
  .panel-brand span {
    font-size: 9.3px;
  }

  .map-pills {
    right: 64px;
    gap: 8px;
  }

  .map-pill {
    min-width: 104px;
    height: 32px;
    padding: 0 10px;
  }

  .bottom-sheet {
    padding: 12px;
    border-radius: 20px;
  }

  .sheet-head h2 {
    font-size: 14px;
  }

  #sheetTotal,
  .sheet-stats {
    font-size: 10px;
  }

  .mini-activity__bars {
    height: 18px;
  }

  .mini-activity__axis {
    font-size: 9px;
  }

  .tabbar {
    padding: 7px var(--pad) 8px;
  }
}

@media (max-width: 520px) {
  body {
    display: block;
    min-height: 100svh;
    overflow: hidden;
    padding: 0;
    background: #030813;
  }

  .app-frame {
    width: 100vw;
    height: 100svh;
    max-height: none;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 380px) {
  .app-frame {
    --pad: 20px;
    --header-h: 78px;
    --control-top: calc(var(--header-h) + 14px);
    --sheet-compact-h: 62px;
    --sheet-h: 108px;
    --dock-h: 48px;
    --nav-h: 64px;
    --edge-gap: 8px;
    --dock-gap: 8px;
  }

  .map-pill {
    min-width: 100px;
    font-size: 10px;
  }

  .map-pill strong {
    font-size: 10.4px;
  }

  .action-dock {
    grid-template-columns: minmax(0, 1fr) 46px 46px minmax(0, 1fr);
    gap: 8px;
  }

  .emoji-dock-button {
    width: 46px;
    height: 46px;
  }

  .dock-target {
    width: 46px;
    height: 46px;
  }

  .vo-action {
    font-size: 19px;
  }

  .tab-button b {
    font-size: 9px;
  }

  .mini-activity__bars {
    height: 16px;
  }

  .profile-title-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
  }

  .profile-subtabs {
    min-width: 0;
    width: 100%;
  }

  .screen-title h1 {
    font-size: 20px;
  }

  .profile-hero h2 {
    font-size: 22px;
  }

  .profile-stats article {
    min-height: 54px;
    padding: 11px 12px;
  }
}

.map-perf-hud {
  position: fixed;
  left: 10px;
  top: 10px;
  z-index: 10000;
  max-width: min(320px, calc(100vw - 20px));
  padding: 8px 10px;
  border: 1px solid rgba(101, 255, 169, 0.32);
  border-radius: 8px;
  background: rgba(3, 8, 19, 0.86);
  color: #c7ffdf;
  font: 500 10px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre;
  pointer-events: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

:root[data-motion-mode="balanced"] .top-bar,
:root[data-motion-mode="balanced"] .map-pill,
:root[data-motion-mode="balanced"] .bottom-sheet,
:root[data-motion-mode="balanced"] .action-dock,
:root[data-motion-mode="balanced"] .district-card,
:root[data-motion-mode="balanced"] .vo-map-popup .maplibregl-popup-content {
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

:root[data-motion-mode="balanced"] .pulse-balance .up,
:root[data-motion-mode="balanced"] .pulse-balance .down,
:root[data-motion-mode="balanced"] .ambient-pulse__ring circle,
:root[data-motion-mode="balanced"] .mini-district-glow,
:root[data-motion-mode="balanced"] .mini-district-fill,
:root[data-motion-mode="balanced"] .mini-hotspot {
  filter: none !important;
}

[hidden] .vo-top-logo,
[hidden] [data-vo-logo],
[hidden] .sheet-pulse-icon,
[hidden] .sheet-open-pulse,
[hidden] .primary-command,
.is-hidden .vo-top-logo,
.is-hidden [data-vo-logo],
.is-hidden .sheet-pulse-icon,
.is-hidden .sheet-open-pulse,
.is-hidden .primary-command,
.screen:not(.is-active) .vo-top-logo,
.screen:not(.is-active) [data-vo-logo],
.screen:not(.is-active) .sheet-pulse-icon,
.screen:not(.is-active) .sheet-open-pulse,
.screen:not(.is-active) .primary-command,
.district-card.is-hidden .district-card__actions .primary-command {
  animation: none !important;
}

:root[data-motion-mode="balanced"] .road-pulse-canvas,
:root[data-motion-mode="low"] .road-pulse-canvas,
:root[data-motion-mode="reduced"] .road-pulse-canvas {
  display: none;
}

:root[data-motion-mode="low"] .top-bar,
:root[data-motion-mode="low"] .map-pill,
:root[data-motion-mode="low"] .bottom-sheet,
:root[data-motion-mode="low"] .action-dock,
:root[data-motion-mode="low"] .tabbar,
:root[data-motion-mode="low"] .district-card,
:root[data-motion-mode="low"] .share-modal,
:root[data-motion-mode="low"] .vo-map-popup .maplibregl-popup-content,
:root[data-motion-mode="reduced"] .top-bar,
:root[data-motion-mode="reduced"] .map-pill,
:root[data-motion-mode="reduced"] .bottom-sheet,
:root[data-motion-mode="reduced"] .action-dock,
:root[data-motion-mode="reduced"] .tabbar,
:root[data-motion-mode="reduced"] .district-card,
:root[data-motion-mode="reduced"] .share-modal,
:root[data-motion-mode="reduced"] .vo-map-popup .maplibregl-popup-content {
  backdrop-filter: none;
  box-shadow: none;
}

:root[data-motion-mode="low"] .map-shade,
:root[data-motion-mode="reduced"] .map-shade {
  opacity: 0.35;
  background:
    linear-gradient(180deg, rgba(5, 8, 16, 0.18), rgba(5, 8, 16, 0.55));
}

:root[data-motion-mode="low"] .ambient-pulse,
:root[data-motion-mode="low"] .map-ripple,
:root[data-motion-mode="low"] .sheet-open-pulse,
:root[data-motion-mode="low"] .district-card__actions .primary-command,
:root[data-motion-mode="reduced"] .ambient-pulse,
:root[data-motion-mode="reduced"] .map-ripple,
:root[data-motion-mode="reduced"] .map-event-flash,
:root[data-motion-mode="reduced"] .sheet-pulse-icon,
:root[data-motion-mode="reduced"] .sheet-open-pulse,
:root[data-motion-mode="reduced"] .district-card__actions .primary-command,
:root[data-animations-paused="true"] .ambient-pulse,
:root[data-animations-paused="true"] .map-ripple,
:root[data-animations-paused="true"] .map-event-flash,
:root[data-animations-paused="true"] .sheet-pulse-icon,
:root[data-animations-paused="true"] .sheet-open-pulse,
:root[data-animations-paused="true"] .district-card__actions .primary-command {
  animation: none !important;
  filter: none !important;
  text-shadow: none;
}

:root[data-motion-mode="low"] .ambient-pulse__ring circle,
:root[data-motion-mode="low"] .ambient-pulse b,
:root[data-motion-mode="low"] .ambient-pulse em,
:root[data-motion-mode="low"] .pulse-balance,
:root[data-motion-mode="low"] .pulse-balance .up,
:root[data-motion-mode="low"] .pulse-balance .down,
:root[data-motion-mode="low"] .mini-district-glow,
:root[data-motion-mode="low"] .mini-district-fill,
:root[data-motion-mode="low"] .mini-road,
:root[data-motion-mode="low"] .mini-hotspot,
:root[data-motion-mode="reduced"] .ambient-pulse__ring circle,
:root[data-motion-mode="reduced"] .ambient-pulse b,
:root[data-motion-mode="reduced"] .ambient-pulse em,
:root[data-motion-mode="reduced"] .pulse-balance,
:root[data-motion-mode="reduced"] .pulse-balance .up,
:root[data-motion-mode="reduced"] .pulse-balance .down,
:root[data-motion-mode="reduced"] .mini-district-glow,
:root[data-motion-mode="reduced"] .mini-district-fill,
:root[data-motion-mode="reduced"] .mini-road,
:root[data-motion-mode="reduced"] .mini-hotspot {
  filter: none !important;
  box-shadow: none !important;
}

:root[data-motion-mode="low"] .bottom-sheet,
:root[data-motion-mode="low"] .district-card,
:root[data-motion-mode="low"] .action-dock,
:root[data-motion-mode="low"] .map-pills,
:root[data-motion-mode="low"] .map-target {
  transition-duration: 180ms !important;
}

:root[data-motion-mode="reduced"] .bottom-sheet,
:root[data-motion-mode="reduced"] .district-card,
:root[data-motion-mode="reduced"] .action-dock,
:root[data-motion-mode="reduced"] .map-pills,
:root[data-motion-mode="reduced"] .map-target,
:root[data-animations-paused="true"] .bottom-sheet,
:root[data-animations-paused="true"] .district-card,
:root[data-animations-paused="true"] .action-dock,
:root[data-animations-paused="true"] .map-pills,
:root[data-animations-paused="true"] .map-target {
  transition-duration: 1ms !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .vo-top-logo,
  [data-vo-logo] {
    animation: none !important;
    opacity: 1;
    text-shadow:
      0 0 6px rgba(77, 255, 198, 0.34),
      0 0 14px rgba(77, 255, 198, 0.16);
  }

  .vo-top-logo::after,
  [data-vo-logo]::after {
    content: none;
    animation: none !important;
  }

  .ambient-pulse,
  .map-ripple,
  .map-event-flash,
  .sheet-pulse-icon,
  .sheet-open-pulse,
  .dock-target,
  .vo-action,
  .bottom-sheet,
  .district-card,
  .district-card__actions .primary-command,
  .action-dock,
  .top-bar,
  .map-pill,
  .maplibregl-popup-content {
    animation: none !important;
    transition: none !important;
    filter: none !important;
    text-shadow: none !important;
  }
}
