/* GTA Pulse — тулбар, мобильная адаптация, плавность */
html {
  color-scheme: dark;
}
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* плавность для панелей приложения (мелкий бонус к их анимациям) */
@media (prefers-reduced-motion: no-preference) {
  #root [class*="transition"], #root [class*="panel"] {
    will-change: auto;
  }
}

#ru-toolbar {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}
#ru-toolbar button {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 10, 7, 0.92);
  color: #f5e9d7;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  transition: transform 0.12s ease, background 0.12s ease, opacity 0.12s ease;
}
#ru-toolbar button:hover {
  background: rgba(48, 40, 30, 0.95);
  transform: translateY(-1px);
}
#ru-toolbar button:active {
  transform: translateY(0) scale(0.96);
}
#ru-toolbar #ru-lang {
  font-size: 13px;
  letter-spacing: 0.04em;
}
#ru-note {
  max-width: 260px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(12, 10, 7, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f5e9d7;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

/* --- Телефон: компактный тулбар в ряд, не перекрывает зум карты --- */
@media (max-width: 640px) {
  #ru-toolbar {
    right: 8px;
    bottom: 8px;
    flex-direction: row;
    gap: 6px;
  }
  #ru-toolbar button {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 13px;
  }
  #ru-note {
    position: fixed;
    right: 8px;
    bottom: 52px;
    max-width: calc(100vw - 24px);
    font-size: 12px;
  }
  /* у приложения свои кнопки зума снизу справа — поднимаем их над тулбаром */
  #root [class*="zoom"] {
    bottom: 52px;
  }
}
@media (max-width: 640px) and (orientation: landscape) {
  #ru-toolbar {
    bottom: 6px;
  }
}
