#ctCityMenu {
  --ct-menu-icon-size: 30px;
}

#ctCityMenu > button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  max-width: 100%;
  padding: 3px 9px;
  line-height: 1.15;
  text-align: start;
}

#ctCityMenu .ct-city-menu-icon {
  display: block;
  flex: 0 0 var(--ct-menu-icon-size);
  width: var(--ct-menu-icon-size);
  height: var(--ct-menu-icon-size);
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgb(7 12 27 / 48%));
}

#ctCityMenu .ct-city-menu-label {
  min-width: 0;
}

#ctCityMenu .ct-city-menu-icon,
#ctCityMenu .ct-city-menu-label {
  pointer-events: none;
}

#ctCityMenu > button:focus-visible {
  outline: 2px solid var(--gold, #ffd35a);
  outline-offset: 2px;
}

#ctCityMenu .ct-city-girlfriend:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 164px;
  margin: 0;
  padding: 5px 8px 5px 5px;
  border: 1px solid #ad718d;
  border-radius: 11px;
  background: linear-gradient(145deg, #48334e, #2b293f);
  color: #fff5fa;
}

.ct-city-girlfriend img {
  flex: 0 0 44px;
  border: 1px solid #c18da6;
  border-radius: 7px;
  background: #262138;
  object-fit: cover;
  object-position: 50% 32%;
}

.ct-city-girlfriend figcaption {
  min-width: 0;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.ct-city-girlfriend figcaption span,
.ct-city-girlfriend figcaption strong {
  display: block;
}

.ct-city-girlfriend figcaption span {
  margin-bottom: 3px;
  color: #efbbd1;
  font-size: 11px;
}

.ct-city-girlfriend figcaption strong {
  font-size: 14px;
}

.ct-city-girlfriend [data-phone-proposal-entry] {
  min-height: 32px;
  padding: 4px 9px;
  margin-top: 4px;
  white-space: nowrap;
}

@media (min-width: 981px) {
  #ctCityMenu {
    /* Leave space for the measured balance bar, including when it grows after sign-in. */
    max-height: calc(100% - var(--ct-menu-top) - var(--ct-hud-bottom) - var(--hud, 68px) - 8px);
    flex-wrap: nowrap;
    overflow: hidden auto;
    scroll-padding-block: 7px;
    scrollbar-width: thin;
    scrollbar-color: rgb(154 169 207 / 66%) transparent;
  }

  #ctCityMenu > * {
    flex-shrink: 0;
  }
}

@media (min-width: 981px) and (max-height: 780px) {
  #ctCityMenu {
    --ct-menu-icon-size: 26px;
    gap: 4px;
  }

  #ctCityMenu > button {
    min-height: 32px;
    padding-block: 2px;
  }
}

@media (max-width: 980px) {
  #ctCityMenu > button {
    min-height: 44px;
  }

  #ctCityMenu .ct-city-menu-label {
    overflow-wrap: anywhere;
  }

  #ctCityMenu .ct-city-girlfriend:not([hidden]) {
    flex: 0 0 100%;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #ctCityMenu > button {
    transition: none;
  }

  #ctCityMenu > button:is(:hover, :active) {
    transform: none;
  }
}
