/* DREAMCARS — slow connection hint (top banner). */
:root {
  --dc-connection-hint-h: 0px;
}

body.dc-connection-hint-active {
  --dc-connection-hint-h: 44px;
}

body.dc-connection-hint-active.device-mobile {
  --dc-connection-hint-h: 52px;
}

.dc-connection-hint {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12000;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 40px 8px 12px;
  padding-top: max(8px, env(safe-area-inset-top, 0px));
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(18, 28, 42, 0.97), rgba(12, 18, 28, 0.95));
  border-bottom: 1px solid rgba(116, 145, 171, 0.28);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  color: #e8edf3;
  font-size: 12px;
  line-height: 1.35;
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.dc-connection-hint.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.dc-connection-hint-text {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.dc-connection-hint-close {
  position: absolute;
  top: max(6px, env(safe-area-inset-top, 0px));
  right: 8px;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #c5d0dc;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.dc-connection-hint-close:hover,
.dc-connection-hint-close:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  outline: none;
}

@media (min-width: 768px) {
  body.dc-connection-hint-active {
    --dc-connection-hint-h: 40px;
  }

  .dc-connection-hint {
    left: 50%;
    right: auto;
    width: min(720px, calc(100% - 24px));
    transform: translate(-50%, -110%);
    border-radius: 0 0 12px 12px;
    font-size: 13px;
    padding: 10px 44px 10px 14px;
  }

  .dc-connection-hint.is-visible {
    transform: translate(-50%, 0);
  }

  .dc-connection-hint-close {
    top: 8px;
    right: 10px;
  }
}
