/* Visitor-specific metal-detector overlay. The detector plate remains the
   original readout frame; this sidecar only replaces its generic body profile
   with the active visitor's transparent character cutout. */
.rs-detector-visual {
  display: grid;
  min-height: 0;
  padding: 0;
  background: #050909;
}

/* Dedicated character plates are complete 3:2 images. This rule intentionally
 * keeps them undistorted; the legacy CSS composite below is only a temporary
 * fallback until the visitor’s detector plate is generated. */
.rs-detector-art {
  width: 100%;
  height: auto;
  max-height: 360px;
  aspect-ratio: 1536 / 1024;
  object-fit: contain;
  object-position: center;
}

.rs-detector-scan {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: 360px;
  aspect-ratio: 1536 / 1024;
  overflow: hidden;
  isolation: isolate;
}

.rs-detector-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center;
}

.rs-detector-person-window {
  position: absolute;
  top: 22%;
  left: 34.5%;
  z-index: 2;
  width: 31%;
  height: 64%;
  overflow: hidden;
  pointer-events: none;
}

.rs-detector-person {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0.72;
  filter: grayscale(1) brightness(1.42) contrast(1.6) sepia(0.14) hue-rotate(112deg) saturate(0.55);
  mix-blend-mode: screen;
}

.rs-detector-person-window::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(125, 222, 209, 0.04), transparent 20%, transparent 79%, rgba(125, 222, 209, 0.12));
  box-shadow: inset 0 0 18px rgba(84, 199, 190, 0.14);
}

.rs-detector-readout-label {
  position: absolute;
  right: 10.2%;
  bottom: 7.2%;
  z-index: 3;
  color: rgba(139, 216, 205, 0.78);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-size: clamp(7px, 1.1vw, 10px);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(63, 188, 177, 0.55);
}

@media (max-width: 760px) {
  .rs-detector-scan {
    max-height: 230px;
  }

  .rs-detector-readout-label {
    right: 9%;
    bottom: 7%;
    font-size: 7px;
  }
}
