/* Мини-сканер порталов (three.js) */
#screen-scanner { position: absolute; inset: 0; background: #02060d; z-index: 5; }
#screen-scanner.hidden { display: none; }
#scan-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.scan-hud { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: linear-gradient(180deg, #02060dcc 0%, #02060d00 100%); pointer-events: none; z-index: 3; font-family: 'Coda', system-ui, sans-serif; }
.scan-hud > * { pointer-events: auto; }
.scan-hud__back { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #1d4666; background: #0b1826ee; color: #8cf; display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; flex-shrink: 0; }
.scan-hud__title { font-size: 13px; letter-spacing: 1px; color: #5b93ff; font-weight: 600; }
.scan-hud__count { font-size: 11px; color: #5b7; font-family: monospace; }
.scan-popup { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); min-width: 240px; max-width: 90vw; background: #08111aee; border: 1px solid #1d4666; border-radius: 10px; padding: 12px 16px; color: #cde; z-index: 4; box-shadow: 0 0 24px rgba(0,193,255,.15); font-family: 'Coda', system-ui, sans-serif; }
.scan-popup.hidden { display: none; }
.scan-popup__name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.scan-popup__meta { font-size: 11px; color: #5b7; font-family: monospace; letter-spacing: .5px; }
.scan-popup__close { position: absolute; right: 8px; top: 6px; background: transparent; border: none; color: #5b7; font-size: 18px; cursor: pointer; }