:root {
  --blue: #1768e6;
  --navy: #071f4b;
  --gold: #ffbd16;
  --green: #34824b;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: #081b36;
  color: #fff;
  touch-action: none;
}
header {
  height: 68px;
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  background: #fffffff2;
  color: var(--navy);
  box-shadow: 0 1px 14px #00112b26;
  backdrop-filter: blur(12px);
}
.brand {
  font-size: 24px;
  font-weight: 950;
  text-decoration: none;
  color: var(--navy);
}
.brand i {
  display: inline-block;
  width: 26px;
  height: 26px;
  margin-right: 7px;
  border-radius: 8px 8px 3px 3px;
  background: var(--blue);
  vertical-align: -5px;
}
.brand small {
  font-size: 10px;
  color: var(--blue);
  letter-spacing: 0.3px;
}
header nav {
  display: flex;
  gap: 12px;
  align-items: center;
}
header nav a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.header-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 10px 12px;
  border-radius: 10px;
}
.discovery {
  position: fixed;
  z-index: 12;
  top: 82px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  align-items: center;
  width: min(850px, calc(100% - 36px));
  pointer-events: none;
}
.search {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fffffff2;
  color: var(--navy);
  border-radius: 13px;
  padding: 0 12px;
  box-shadow: 0 10px 26px #03112635;
  min-width: 275px;
  pointer-events: auto;
}
.search span {
  font-size: 22px;
}
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font: inherit;
  color: var(--navy);
}
.filters {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: #fffffff0;
  border-radius: 13px;
  box-shadow: 0 10px 26px #03112635;
  overflow: auto;
  pointer-events: auto;
}
.filters button {
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #36557d;
  font-weight: 850;
  padding: 8px 10px;
  white-space: nowrap;
  cursor: pointer;
}
.filters button.active {
  background: var(--blue);
  color: #fff;
}
.viewport {
  position: fixed;
  inset: 68px 0 0;
  overflow: hidden;
  cursor: grab;
  background: #0a1930;
}
.viewport.drag {
  cursor: grabbing;
}
.world {
  position: absolute;
  width: 3000px;
  height: 1688px;
  transform-origin: 0 0;
  background:
    linear-gradient(#061b3622, #061b3622),
    url("/assets/vitriny-city-master.jpg") center/cover no-repeat;
  will-change: transform;
}
.pin {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -100%);
  border: 3px solid #fff;
  border-radius: 99px;
  color: #fff;
  padding: 10px 14px;
  background: #1768e6f2;
  font-weight: 950;
  font-size: 15px;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  text-shadow: 0 1px 2px #001a42;
  box-shadow:
    0 8px 20px #06152db5,
    0 0 0 3px #061b4230;
  transition:
    transform 0.16s,
    filter 0.16s,
    opacity 0.2s;
}
.pin:hover,
.pin:focus-visible {
  transform: translate(-50%, -100%) scale(1.07);
  filter: brightness(1.08);
  outline: 0;
}
.pin:after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  height: 17px;
  border-left: 3px dotted #fff;
  filter: drop-shadow(0 1px 1px #001a42);
}
.pin:before {
  content: "";
  position: absolute;
  left: calc(50% - 5px);
  top: calc(100% + 16px);
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px #001a42;
}
.pin.featured {
  font-size: 16px;
  padding: 0;
  overflow: visible;
  width: 255px;
}
.ticker-window {
  display: block;
  overflow: hidden;
  padding: 12px 0;
  border-radius: 99px;
  background: inherit;
}
.ticker {
  display: inline-block;
  width: max-content;
  padding-left: 100%;
  white-space: nowrap;
  animation: marquee 10s linear infinite;
}
.pin.featured:hover .ticker {
  animation-play-state: paused;
}
.pin.hidden {
  display: none;
}
.pin.lot.reserved {
  background: #9a6a18;
  color: #fff5d2;
}
.pin.lot.occupied {
  background: #26724a;
  color: #fff;
  box-shadow:
    0 8px 20px #06152db5,
    0 0 0 5px #46bd7b55;
}
.country {
  left: 950px;
  top: 1310px;
}
.agro {
  left: 1900px;
  top: 930px;
}
.praca {
  left: 1500px;
  top: 800px;
}
.moda {
  left: 700px;
  top: 1040px;
}
.food {
  left: 2300px;
  top: 1240px;
}
.services {
  left: 2430px;
  top: 900px;
}
.edu {
  left: 1150px;
  top: 1120px;
}
.outdoor {
  width: 230px;
  min-height: 96px;
  padding: 14px 12px;
  border: 7px solid #132e49;
  background: linear-gradient(145deg, #0969da, #35a7ff);
  color: #fff;
  border-radius: 5px;
  box-shadow: 0 14px 24px #001d3e88;
}
.outdoor span,
.outdoor small {
  display: block;
}
.outdoor span {
  font-size: 18px;
  line-height: 1.05;
}
.outdoor small {
  margin-top: 7px;
  color: #ffe36e;
  font-size: 11px;
}
.outdoor-a {
  left: 500px;
  top: 980px;
}
.outdoor-b {
  left: 1180px;
  top: 510px;
}
.outdoor-c {
  left: 2220px;
  top: 390px;
}
.outdoor-d {
  left: 2050px;
  top: 1190px;
}
.lot {
  background: #d89000;
}
.lot1 {
  left: 820px;
  top: 1430px;
}
.lot2 {
  left: 2160px;
  top: 680px;
}
.lot3 {
  left: 2500px;
  top: 1400px;
}
.north-hub {
  left: 1500px;
  top: 350px;
  background: #4159a7;
}
.boulevard {
  left: 2600px;
  top: 1050px;
  background: #b65c3d;
}
.lot4 {
  left: 2750px;
  top: 1320px;
}
.avatar {
  position: absolute;
  z-index: 5;
  width: 48px;
  height: 54px;
  border-radius: 50% 50% 42% 42%;
  background: linear-gradient(
    145deg,
    #ffd1a3 0 35%,
    #4d2b1c 36% 46%,
    #1768e6 47%
  );
  border: 3px solid #fff;
  box-shadow: 0 5px 15px #06152d99;
  transform: translate(-50%, -90%);
  transition:
    left 1.05s ease,
    top 1.05s ease;
}
.avatar:before {
  content: "";
  position: absolute;
  width: 40px;
  height: 14px;
  border-radius: 50%;
  background: #6b3c20;
  left: 1px;
  top: -8px;
}
.avatar:after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 12px;
  width: 8px;
  height: 16px;
  background: #1c3659;
  box-shadow: 15px 0 #1c3659;
}
.avatar span {
  position: absolute;
  top: 55px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #09275de8;
  color: #fff;
  border-radius: 99px;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 900;
}
.avatar-button {
  position: fixed;
  z-index: 13;
  top: 82px;
  right: 18px;
  display: flex;
  gap: 7px;
  align-items: center;
  border: 0;
  background: #fffffff0;
  color: var(--navy);
  padding: 10px 12px;
  border-radius: 13px;
  box-shadow: 0 8px 22px #03112642;
  cursor: pointer;
}
.hint {
  position: fixed;
  z-index: 11;
  top: 141px;
  left: 18px;
  max-width: 300px;
  background: #fffffff0;
  color: var(--navy);
  border-radius: 17px;
  padding: 14px 38px 14px 15px;
  box-shadow: 0 13px 35px #01142a55;
}
.hint button {
  position: absolute;
  right: 8px;
  top: 8px;
  border: 0;
  background: #e8f2ff;
  color: var(--navy);
  border-radius: 8px;
  width: 25px;
  height: 25px;
  cursor: pointer;
}
.hint b {
  font-size: 16px;
}
.hint p {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #597292;
}
.tools {
  position: fixed;
  z-index: 11;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
}
.tools button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 13px;
  background: #fffffff0;
  color: var(--navy);
  font-weight: 950;
  font-size: 22px;
  box-shadow: 0 10px 25px #01142a4d;
  cursor: pointer;
}
.legend {
  position: fixed;
  z-index: 10;
  left: 18px;
  bottom: 18px;
  background: #071d42e8;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 11px;
  display: flex;
  gap: 13px;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.legend i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1768e6;
}
.legend .store-dot {
  background: #3f8b4e;
}
.legend .lot-dot {
  background: #d89000;
}
.panel {
  visibility: hidden;
  opacity: 0;
  transform: translateX(18px);
  position: fixed;
  z-index: 18;
  right: 18px;
  top: 140px;
  width: min(370px, calc(100vw - 36px));
  max-height: calc(100vh - 158px);
  overflow: auto;
  background: #fff;
  color: var(--navy);
  padding: 20px;
  border-radius: 19px;
  box-shadow: 0 22px 60px #0011267c;
  transition: 0.2s;
}
.panel.show {
  visibility: visible;
  opacity: 1;
  transform: none;
}
.panel > button {
  float: right;
  border: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #eaf3ff;
  font-size: 18px;
  cursor: pointer;
}
.shop-image {
  display: none;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 13px;
  margin: 0 0 13px;
}
.panel small {
  font-weight: 950;
  color: var(--blue);
}
.panel h2 {
  font-size: 28px;
  margin: 9px 0;
}
.panel p {
  font-size: 14px;
  color: #557093;
  line-height: 1.55;
}
.panel-actions {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}
.panel-actions a {
  display: none;
  background: #e9f3ff;
  padding: 12px;
  border-radius: 10px;
  color: #1359bb;
  text-align: center;
  font-weight: 900;
  text-decoration: none;
}
.panel-actions a.primary {
  background: var(--blue);
  color: #fff;
}
.avatar-shop {
  display: none;
  position: fixed;
  z-index: 30;
  inset: 0;
  background: #04142c99;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.avatar-shop.show {
  display: flex;
}
.avatar-card {
  width: min(420px, 100%);
  background: #fff;
  color: var(--navy);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 24px 64px #01102688;
}
.avatar-card h2 {
  margin: 0;
}
.avatar-card p {
  color: #557093;
  line-height: 1.5;
}
.close-modal {
  float: right;
  border: 0;
  background: #eaf3ff;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  font-size: 18px;
  cursor: pointer;
}
.choices {
  display: flex;
  gap: 10px;
}
.choice {
  flex: 1;
  display: grid;
  place-items: center;
  gap: 4px;
  border: 2px solid #d8e8fb;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  color: var(--navy);
  font-weight: 900;
}
.choice.active {
  border-color: var(--blue);
  background: #eef6ff;
}
.choice.disabled {
  opacity: 0.55;
}
.choice small {
  display: block;
}
.mini {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    #ffd1a3 0 36%,
    #4d2b1c 37% 47%,
    #1b5aa7 48%
  );
}
.country-skin {
  filter: hue-rotate(310deg);
}
.empty {
  display: none;
  position: fixed;
  z-index: 14;
  left: 50%;
  top: 145px;
  transform: translateX(-50%);
  background: #fff;
  color: var(--navy);
  padding: 12px 15px;
  border-radius: 12px;
  box-shadow: 0 12px 30px #00112655;
  font-size: 13px;
  font-weight: 850;
}
@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}
@media (max-width: 760px) {
  header {
    height: 62px;
    padding: 0 14px;
  }
  .brand {
    font-size: 20px;
  }
  .brand small {
    display: none;
  }
  .header-cta {
    padding: 8px 9px;
  }
  .viewport {
    inset: 62px 0 0;
  }
  .discovery {
    top: 71px;
    left: 10px;
    right: 10px;
    transform: none;
    width: auto;
    display: block;
  }
  .search {
    height: 40px;
    min-width: 0;
    width: 100%;
  }
  .filters {
    margin-top: 6px;
    padding: 4px;
  }
  .filters button {
    padding: 7px 9px;
    font-size: 11px;
  }
  .avatar-button {
    top: 155px;
    right: 10px;
    padding: 8px 9px;
    font-size: 11px;
  }
  .hint {
    top: 154px;
    left: 10px;
    max-width: 210px;
    padding: 11px 32px 11px 12px;
  }
  .hint b {
    font-size: 13px;
  }
  .hint p {
    font-size: 10px;
  }
  .pin {
    font-size: 12px;
    padding: 8px 10px;
    border-width: 2px;
  }
  .pin.featured {
    font-size: 13px;
    width: 200px;
  }
  .ticker-window {
    padding: 10px 0;
  }
  .legend {
    left: 10px;
    bottom: 12px;
    right: 68px;
    overflow: auto;
    font-size: 9px;
  }
  .tools {
    right: 10px;
    bottom: 11px;
  }
  .tools button {
    width: 43px;
    height: 43px;
  }
  .panel {
    top: auto;
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    max-height: 64vh;
    transform: translateY(18px);
  }
  .panel.show {
    transform: none;
  }
  .shop-image {
    max-height: 160px;
  }
  .panel h2 {
    font-size: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ticker {
    animation: none;
    padding-left: 0;
  }
  .avatar,
  .panel {
    transition: none;
  }
}
.panel > .favorite-action {
  float: none;
  width: 100%;
  height: auto;
  border: 1px solid #cfe1f7;
  background: #f4f8fd;
  color: #174f99;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.panel > .favorite-action.saved {
  border-color: #ffc928;
  background: #fff8dd;
  color: #7d5700;
}
.city-pulse {
  position: fixed;
  z-index: 12;
  left: 18px;
  bottom: 62px;
  width: 290px;
  background: #071d42ed;
  border: 1px solid #ffffff25;
  border-radius: 16px;
  box-shadow: 0 14px 38px #00112670;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.pulse-heading {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: left;
}
.pulse-chevron {
  margin-left: auto;
  transition: transform 0.2s;
}
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #35db7f;
  box-shadow: 0 0 0 5px #35db7f28;
  animation: livePulse 1.8s infinite;
}
.pulse-list {
  display: grid;
  padding: 0 7px 8px;
}
.pulse-list button {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-top: 1px solid #ffffff18;
  background: transparent;
  color: #fff;
  padding: 10px 8px;
  text-align: left;
  cursor: pointer;
}
.pulse-list button:hover,
.pulse-list button:focus-visible {
  background: #ffffff12;
  outline: 0;
}
.pulse-list button > span:first-child {
  font-size: 19px;
}
.pulse-list b,
.pulse-list small {
  display: block;
}
.pulse-list b {
  font-size: 12px;
}
.pulse-list small {
  font-size: 10px;
  color: #afc8e8;
  margin-top: 2px;
}
.city-pulse.collapsed .pulse-list {
  display: none;
}
.city-pulse.collapsed .pulse-chevron {
  transform: rotate(180deg);
}
.mobile-dock {
  display: none;
}
@keyframes livePulse {
  50% {
    box-shadow: 0 0 0 9px #35db7f08;
  }
}
@media (max-width: 760px) {
  .viewport {
    inset: 62px 0 64px;
  }
  .legend {
    display: none;
  }
  .tools {
    bottom: 76px;
  }
  .panel {
    bottom: 74px;
    max-height: 62vh;
  }
  .city-pulse {
    left: 10px;
    bottom: 76px;
    width: min(250px, calc(100vw - 76px));
  }
  .city-pulse:not(.collapsed) {
    width: min(310px, calc(100vw - 76px));
  }
  .pulse-heading {
    padding: 10px 12px;
  }
  .mobile-dock {
    position: fixed;
    z-index: 17;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
    background: #fff;
    color: var(--navy);
    box-shadow: 0 -5px 22px #00112635;
  }
  .mobile-dock button {
    position: relative;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #557093;
    font-size: 9px;
    font-weight: 900;
    cursor: pointer;
  }
  .mobile-dock button span {
    font-size: 20px;
    line-height: 22px;
  }
  .mobile-dock button.active {
    color: var(--blue);
  }
  .mobile-dock em {
    position: absolute;
    top: 2px;
    right: calc(50% - 20px);
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: 99px;
    background: var(--gold);
    color: var(--navy);
    font-size: 9px;
    font-style: normal;
    line-height: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot {
    animation: none;
  }
  .pulse-chevron {
    transition: none;
  }
}
