/* ============================================================
   Digital Twins branding for the tour (SuperSplat viewer v1.37, sse- markup).
   Adapted from dtwins-viewer.css: the new viewer prefixes every class
   with sse- and themes through --sse-accent. Pair with dtwins-tour.js.
   ============================================================ */
:root {
  --dtwins-accent: #A9754C;
}
.sse-viewer {
  --sse-accent: var(--dtwins-accent);
}

/* Hide stock SuperSplat toolbar buttons we don't expose */
.sse-viewer .sse-buttonsContainer .sse-orbitCamera,
.sse-viewer .sse-buttonsContainer .sse-info,
.sse-viewer .sse-showCollisionRow {
  display: none !important;
}

/* Hide the stock SuperSplat branding badge (auto-shown when embedded) */
.sse-viewer .sse-viewerBranding {
  display: none !important;
}

/* --- Digital Twins branding badge (injected by dtwins-tour.js) --- */
#dtwinsBrand {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  color: #E0DCDD;
  transition: color 150ms ease;
}
#dtwinsBrand:hover {
  color: #fff;
}
#dtwinsBrand > svg {
  height: 22px;
  width: 22px;
  flex-shrink: 0;
  padding: 7px;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.3);
}
#dtwinsBrand > span {
  font-size: 14px;
  font-weight: bold;
  text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.4), 1px -1px 0 rgba(0, 0, 0, 0.4), -1px 1px 0 rgba(0, 0, 0, 0.4), 1px 1px 0 rgba(0, 0, 0, 0.4);
}

/* --- мир из приложения: сообщение, если ссылка неверная --- */
#worldError {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 500 16px/1.4 Inter, system-ui, sans-serif;
  color: #24231F;
  background: #F4F2EE;
}
#worldError[hidden] { display: none; }

/* тур по скану: никакого интерфейса поверх сцены — только загрузка и метка «куда пойду» под курсором */
#dtwinsBrand,
.sse-viewer .sse-controlsWrap,
.sse-viewer .sse-joystickBase,
.sse-viewer .sse-annotationNav,
.sse-viewer .sse-controlsHint,
.sse-viewer .sse-settingsPanel,
.sse-viewer .sse-infoPanel,
.sse-viewer .sse-tooltip,
.sse-viewer .sse-xrModal {
  display: none !important;
}
