/* Shared scene tokens and high-contrast controls. */
:root {
  --surface: #101a20;
  --surface-elevated: #15242b;
  --line-strong: rgba(124, 199, 255, .34);
  --text: #f3fbff;
  --muted: #b9cbd2;
  --accent: #7cc7ff;
}

#panel,
#quality-toolbar,
#visitor-marker-nav,
#panel-toggle {
  background: var(--surface-elevated) !important;
  border-color: var(--line-strong) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* High-contrast text for the interactive scene controls. */
#progress-text,
#tips,
#loading-indicator,
#hud-top,
#panel .section-label,
#panel label span.lname,
#panel label span.lval,
#panel button:not(.active),
#panel-toggle,
.quality-toolbar-label,
#quality-toolbar button:not(.active),
.visitor-marker-nav-title,
.visitor-marker-types,
.visitor-marker-empty {
  color: #b8c7d5 !important;
}

.visitor-marker-item {
  color: #d3e2ec !important;
}

/* Mobile scenes need a predictable way back to the scene list. Keep this
   separate from the viewer controls and hide it on desktop. */
#scene-mobile-nav {
  display: none;
}

@media (max-width: 760px) {
  #scene-mobile-nav {
    position: fixed;
    top: max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    z-index: 160;
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(124, 199, 255, .44);
    border-radius: 8px;
    background: rgba(16, 26, 32, .94);
    color: var(--text);
    text-decoration: none;
    font: 700 20px/1 Arial, sans-serif;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
    -webkit-tap-highlight-color: transparent;
  }

  #scene-mobile-nav:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
}

[style*="color:#446688"],
[style*="color: #446688"] {
  color: #a8bfd0 !important;
}
