/* =========================================================
   DATABRIDGE — 3d-effects.css
   ========================================================= */
.stage3d { position: relative; width: 100%; height: 100%; }
.stage3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.stage3d[data-drag] canvas { cursor: grab; }
.stage3d[data-drag] canvas:active { cursor: grabbing; }
.stage3d__fb { position: absolute; inset: 0; display: none; place-items: center; }
.stage3d__fb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.stage3d.no-gl canvas { display: none; }
.stage3d.no-gl .stage3d__fb { display: grid; }
.fb-mods { width: min(55%, 300px); aspect-ratio: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8%; }
.fb-mods i { border-radius: 10px; background: var(--blue); } .fb-mods i:nth-child(2), .fb-mods i:nth-child(3) { border-radius: 10px 50% 10px 10px; } .fb-mods i:nth-child(4) { background: var(--violet); }
.viewer { position: relative; height: min(72vh, 640px); min-height: 420px; overflow: hidden; border-radius: var(--r) var(--arc) var(--r) var(--r); background: radial-gradient(70% 70% at 50% 40%, #fff, var(--light) 60%); border: 1px solid var(--line); }
.viewer--dk { background: radial-gradient(70% 70% at 50% 40%, #1A2350, var(--mid-2)); border-color: #1E2748; }
.viewer__hint { position: absolute; z-index: 3; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 8px; background: var(--mid-2); color: #fff; font-family: var(--f-mono); font-size: .66rem; text-transform: uppercase; pointer-events: none; }
.viewer--dk .viewer__hint { background: rgba(255,255,255,.1); }
.viewer__card { position: absolute; z-index: 3; right: 18px; top: 18px; width: min(320px, calc(100% - 36px)); padding: 18px 20px; }
.viewer__card h3 { font-size: 1.15rem; margin: 4px 0 6px; }
.viewer__card p { color: var(--muted); font-size: .9rem; margin: 0; }
.viewer--dk .viewer__card p { color: var(--muted-d); }
.switch { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: #fff; border: 1px solid var(--line); margin-top: 16px; }
.switch button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; color: var(--muted); }
.switch button[aria-pressed="true"] { background: var(--blue); color: #fff; }
