:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text, #b8cbde); background: var(--stage, #0b121c); }
* { box-sizing: border-box; }
html, body, #scene-stage { width: 100%; height: 100%; min-width: 0; min-height: 0; margin: 0; overflow: hidden; }
#scene-stage { position: relative; isolation: isolate; touch-action: none; overscroll-behavior: contain; background: radial-gradient(ellipse at 50% 40%, var(--stage-center, #182637) 0, var(--stage, #0b121c) 72%); }
#pc-canvas { display: block; width: 100%; height: 100%; outline: none; touch-action: none; }
#pc-canvas:focus-visible { outline: 2px solid var(--accent, #4dc8ff); outline-offset: -5px; }
#scene-stage, #scene-stage * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; }
#hotspots { z-index: 2; }
.scene-hotspot { -webkit-tap-highlight-color: transparent; }
.scene-hotspot:focus-visible { outline: 3px solid var(--accent, #4dc8ff); outline-offset: 3px; }
/* Keep the visual markers compact while retaining a comfortable touch target. */
.scene-hotspot::before { content: ""; position: absolute; inset: -8px; border-radius: inherit; }
.scene-caption { position: absolute; z-index: 1; inset: auto 12px max(12px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; line-height: 1.4; text-align: center; color: var(--text, #b8cbde); pointer-events: none; }
#gesture-hint { font-size: 11px; color: var(--text, #b8cbde); }
#model-note { opacity: .8; }
#loading { position: absolute; z-index: 4; inset: 0; display: grid; place-content: center; gap: 8px; padding: 24px; background: var(--panel, #101b28); font-size: 13px; text-align: center; }
#loading[hidden] { display: none; }
#loading[data-error="true"] { color: var(--error, #ff8a96); line-height: 1.7; }
@media (max-height: 280px) { .scene-caption { bottom: 6px; gap: 1px; } #model-note { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }


.scene-hotspot { background: var(--panel, #101b28) !important; color: var(--text, #b8cbde) !important; border-color: var(--accent, #4dc8ff) !important; }
.scene-hotspot[aria-pressed='true'] { background: var(--accent, #4dc8ff) !important; color: var(--on-accent, #07111b) !important; }

