:root {
  /* The site's real "sunset" from the brand swatches — not the #f0731f that
     used to live here, which was a shade off from everything else. */
  --ripple-sunset: #f0512f;
  --ripple-dark: #17181c;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--ripple-dark);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
}

#viewer {
  position: fixed;
  inset: 0;
}

/* ---- branding overlay ---- */
.brand {
  position: fixed;
  top: 14px;
  left: 16px;
  z-index: 50;
  pointer-events: none;
  user-select: none;
}

/* Embedded on the Space page the site's own heading sits right above the
   iframe, so the badge would just repeat it — and at phone widths it eats a
   real chunk of the viewer. ?embed=1 sets this class (see tour.js). */
.embed .brand {
  display: none;
}

.brand-badge {
  display: block;
  width: 76px;
  height: auto;
  /* The badge is teal on transparency, which sinks into the darker rooms (the
     closet and back wall especially). A tight white halo lifts it off any
     panorama without putting a solid disc behind the mark. */
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.9))
          drop-shadow(0 2px 7px rgba(0, 0, 0, 0.35));
}

/* ---- first-visit hint ---- */
.hint {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  background: rgba(23, 24, 28, 0.75);
  color: #fff;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  pointer-events: none;
  transition: opacity 1s ease;
  max-width: 80vw;
  text-align: center;
}

.hint.hidden {
  opacity: 0;
}

/* ---- Photo Sphere Viewer theme tweaks ---- */
.psv-loader {
  color: var(--ripple-sunset);
}

.psv-navbar {
  background: rgba(23, 24, 28, 0.8);
}

.psv-caption-content {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.psv-gallery-item-title {
  font-size: 13px;
}

.psv-gallery-item--active {
  outline: 3px solid var(--ripple-sunset) !important;
  outline-offset: -3px;
}

@media (max-width: 600px) {
  .brand-badge { width: 54px; }
  .hint { top: auto; bottom: 70px; font-size: 12px; }
}
