/* =========================================================
   3D mission worlds (js/scene3d.js, js/farm3d.js)
   The host fills its scene; the 2D drawing inside shows only when 3D cannot start.
   Labels float over the canvas as dark glass pills in both themes, with no shadows.
   ========================================================= */
.s3d { position: absolute; inset: 0; overflow: hidden; background: #000000}
.s3d > .s3d-2d { position: absolute; inset: 0}
.s3d.on > .s3d-2d { display: none}
.s3d.off { background: transparent}
.s3d-canvas { position: absolute; inset: 0; display: block; touch-action: none; outline: none; cursor: grab}
.s3d-canvas:active { cursor: grabbing}
.mx-scene > .s3d, .f2-host > .s3d, .mm-host > .s3d { z-index: 0}

/* labels: place names to tap, and callouts on parts */
.s3d-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; direction: ltr}
.s3d-label { position: absolute; left: 0; top: 0; margin-top: -12px; display: grid; justify-items: center; gap: 1px; padding: 5px 11px 6px; border-radius: 12px; background: rgba(0, 0, 0, 0.7); border: 1px solid rgba(255, 255, 255, 0.16); color: #f5f5f7; font: 600 12.5px/1.2 var(--font); white-space: nowrap; letter-spacing: -.01em; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px)}
.s3d-label::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 12px; background: rgba(255, 255, 255, 0.55)}
.s3d-label b { font-weight: 600}
.s3d-label span { font-size: 11.5px; font-weight: 500; color: #00FF6F}
.s3d-label.click { pointer-events: auto; cursor: pointer; transition: background .15s, border-color .15s}
.s3d-label.click:hover, .s3d-label.click:focus-visible { background: rgba(0, 0, 0, 0.86); border-color: #00FF6F; outline: none}
.s3d-label.callout span { color: #A78BFA}
.s3d-label.callout.ok span, .s3d-label.callout.done span { color: #00FF6F}
#stage[dir="rtl"] .s3d-label { font-family: var(--font)}

/* the design previews sit inside their panel */
.f2-host > .s3d, .mm-host.mm-in > .s3d { border-radius: inherit}
