/* Camera presentation stays outside the original signal apparatus. */
.discovery-camera { --camera-edge:rgba(247,201,155,.72);position:fixed;inset:82px max(24px,env(safe-area-inset-right)) 28px max(24px,env(safe-area-inset-left));z-index:5;display:grid;grid-template-rows:minmax(90px,1fr) auto;gap:10px;max-width:1100px;margin-inline:auto;pointer-events:none;color:var(--ink,#f3e8d9); }
.discovery-camera__view { position:relative;overflow:hidden;background:#101112;min-height:0;width:min(100%,calc((100svh - 200px) * var(--photo-aspect,1.333333)));height:auto;aspect-ratio:var(--photo-aspect,1.333333);max-width:100%;max-height:100%;justify-self:center;align-self:center;pointer-events:none; }
.discovery-camera__view--open { background:transparent; }
.discovery-camera__capture,.discovery-camera__original { position:absolute;inset:0;width:100%;height:100%;object-fit:contain; }
.discovery-camera__original { background:#101112; }
.discovery-camera[data-stage="revealing"] .discovery-camera__original,.discovery-camera[data-stage="revealing"] .discovery-camera__credit { opacity:var(--reveal-progress,0); }
.discovery-camera__brackets { position:absolute;inset:1px; }
.discovery-camera__brackets i { position:absolute;width:25px;height:25px;border:0 solid var(--camera-edge); }
.discovery-camera__brackets i:nth-child(1) { top:0;left:0;border-top-width:1px;border-left-width:1px; }
.discovery-camera__brackets i:nth-child(2) { top:0;right:0;border-top-width:1px;border-right-width:1px; }
.discovery-camera__brackets i:nth-child(3) { bottom:0;left:0;border-bottom-width:1px;border-left-width:1px; }
.discovery-camera__brackets i:nth-child(4) { bottom:0;right:0;border-bottom-width:1px;border-right-width:1px; }
.discovery-camera__target { position:absolute;top:14px;font:10px/1.5 var(--mono,monospace);color:#f7e7d3;text-shadow:0 1px 6px #000; }
.discovery-camera__target { left:16px;letter-spacing:.16em; }
.discovery-camera__crosshair { position:absolute;left:50%;top:50%;width:9px;height:9px;transform:translate(-50%,-50%);opacity:.7; }
.discovery-camera__crosshair::before,.discovery-camera__crosshair::after { content:'';position:absolute;background:#f7e7d3;box-shadow:0 0 3px #000; }
.discovery-camera__crosshair::before { left:4px;top:0;width:1px;height:9px; }
.discovery-camera__crosshair::after { left:0;top:4px;width:9px;height:1px; }
.discovery-camera__reading { min-height:60px;box-sizing:border-box;max-height:28svh;overflow:auto;pointer-events:auto;background:linear-gradient(transparent,rgba(10,12,13,.65));padding:8px;margin:-8px;scrollbar-width:thin; }
.discovery-camera__actions { display:flex;justify-content:center;align-items:center;gap:16px;flex-wrap:wrap; }
.discovery-camera .discovery-camera__action { display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;font-size:15px;padding:8px 14px;pointer-events:auto; }
.discovery-camera__action .controller-glyph { width:25px;height:25px; }
.discovery-camera__credit { margin-bottom:8px;text-align:center;font:11px/1.4 var(--mono,monospace);color:#d8cfc4; }
.discovery-camera__status:not(.sr-only) { margin:0 0 8px;text-align:center;font-size:14px; }
.discovery-camera__exposure { position:absolute;inset:0;background:#eee6d8;pointer-events:none;animation:discovery-exposure 300ms ease-out both; }
@keyframes discovery-exposure { 0% { opacity:.9; } 35% { opacity:.35; } 100% { opacity:0; } }
.discovery-camera[data-stage="revealing"] .discovery-camera__exposure { animation:none;opacity:var(--shutter-opacity,0); }
body[data-paused="true"] .discovery-camera__exposure { animation-play-state:paused; }
/* Root advances these clocks and restores their values after each DOM mount. */
.photo-uplink { --photo-width:min(calc(100vw - 48px),calc((100svh - 200px) * var(--photo-aspect,1.333333)));--photo-height:calc(var(--photo-width) / var(--photo-aspect,1.333333));--photo-left:calc((100vw - var(--photo-width)) / 2);--photo-top:82px;--photo-scale:.22; }
.photo-uplink__terminal { opacity:var(--handoff-progress,1); }
.photo-uplink__photo { position:fixed;left:var(--photo-left);top:var(--photo-top);width:var(--photo-width);height:var(--photo-height);margin:0;z-index:4;pointer-events:none;transform-origin:top left;transform:translate(calc((var(--photo-dest-x,35vw) - var(--photo-left)) * var(--handoff-progress,1)),calc((var(--photo-dest-y,45vh) - var(--photo-top)) * var(--handoff-progress,1))) scale(calc(1 - (1 - var(--photo-scale)) * var(--handoff-progress,1)));opacity:calc(1 - var(--handoff-progress,1)); }
.photo-uplink__photo img { width:100%;height:100%;object-fit:contain;background:#101112; }
.photo-uplink[data-reduced-motion="true"] { --handoff-progress:1!important; }
.discovery-camera[data-reduced-motion="true"] .discovery-camera__exposure { display:none;animation:none; }
@media (prefers-reduced-motion:reduce) {
 .photo-uplink { --handoff-progress:1!important; }
 .discovery-camera__exposure { display:none;animation:none; }
}
@media (max-width:700px) { .discovery-camera { inset:86px 18px max(18px,env(safe-area-inset-bottom)); } }
@media (max-height:420px) { .discovery-camera { top:68px;bottom:12px;gap:8px;grid-template-rows:minmax(60px,1fr) auto; } }
