/* The 3D twin of a reproduction (twin3d.js): on the reproduce pages and in the RISC-Q studio. */
.twin-stage { position: relative; height: min(68vh, 600px); border-radius: 10px; overflow: hidden; background: #0b1020; }
.twin-stage canvas { width: 100%; height: 100%; display: block; }
.twin-hud { position: absolute; left: 12px; top: 10px; color: #e2e8f0; font: 12.5px/1.45 var(--mono, ui-monospace, monospace); pointer-events: none; max-width: 62%; }
.twin-time { font-weight: 700; color: #fff; margin-bottom: 4px; }
.twin-now { list-style: none; margin: 0; padding: 0; }
.twin-now li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.twin-legend { position: absolute; right: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px 12px; max-width: 70%; justify-content: flex-end; color: #cbd5e1; font-size: 12px; }
.twin-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
.twin-controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; font-size: 13px; }
.twin-controls input[type=range] { flex: 1 1 240px; }
.twin-caption { font-size: 12.5px; color: var(--ink3, #64748b); margin: 6px 0 0; }
.twin-tip { position: absolute; z-index: 3; max-width: 300px; background: rgba(15,23,42,.94); color: #e2e8f0; border: 1px solid #334155; border-radius: 8px; padding: 8px 10px; font: 12.5px/1.45 var(--sans, system-ui, sans-serif); pointer-events: none; }
.twin-views { position: absolute; right: 10px; top: 10px; display: flex; gap: 4px; }
.twin-views button { font: 600 12px/1 var(--sans, system-ui, sans-serif); padding: 6px 9px; border-radius: 6px; border: 1px solid #334155; background: rgba(15,23,42,.8); color: #cbd5e1; cursor: pointer; }
.twin-views button[aria-pressed="true"] { background: #e2e8f0; color: #0f172a; }
