/* KSIM_V55 — kontaktisik ilmub väljaspool laeva eraldi holoekraanil. */

.contact-holo-frame {
  display: none;
  pointer-events: none;
  user-select: none;
}

.scene[data-contact-presentation="remote-holo"] .contact-stage.visible {
  overflow: visible;
  place-items: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Halli ruumis säilib V54 inimese mudeli täpne jalajälg. */
.scene[data-room-owner="grey"][data-contact-presentation="remote-holo"] .contact-stage.visible {
  left: 27% !important;
  bottom: 17% !important;
  width: 17% !important;
  height: 55% !important;
}

.scene[data-contact-presentation="remote-holo"] .contact-holo-frame {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  filter:
    drop-shadow(0 0 .44cqw color-mix(in srgb, var(--human-state-accent, #65dcff) 72%, transparent))
    drop-shadow(0 .45cqw .5cqw rgba(0, 7, 20, .56));
}

#contactStage[data-presentation="remote-holo"] #contactSprite {
  position: absolute !important;
  z-index: 3;
  left: 12% !important;
  top: 13% !important;
  width: 76% !important;
  height: 72% !important;
  max-width: 76% !important;
  max-height: 72% !important;
  object-fit: contain !important;
  object-position: center center !important;
  opacity: .94;
  mix-blend-mode: screen;
  filter:
    saturate(.82)
    contrast(1.06)
    drop-shadow(0 .2cqw .24cqw rgba(0, 5, 18, .58))
    drop-shadow(0 0 .54cqw color-mix(in srgb, var(--human-state-accent, #65dcff) 66%, transparent)) !important;
}

.scene[data-contact-presentation="remote-holo"] .contact-stage::before {
  border-radius: .55cqw !important;
}

#contactStage[data-presentation="remote-holo"] #contactVisualState {
  z-index: 7;
  top: 7%;
  max-width: 70%;
  transform: translateX(-50%);
  border-color: color-mix(in srgb, var(--human-state-accent, #65dcff) 82%, transparent);
  background: rgba(1, 12, 31, .9);
}

#contactStage[data-presentation="remote-holo"] #contactStageName {
  z-index: 7;
  right: 15%;
  bottom: 6%;
  left: 15%;
  width: auto;
  padding: .22cqw .4cqw;
  border: 1px solid rgba(102, 222, 255, .5);
  border-radius: .2cqw;
  background: rgba(1, 12, 31, .88);
  color: #e5fbff;
  box-shadow: 0 0 .5cqw rgba(65, 210, 255, .26);
}

/* Olekuanimatsioonid jäävad ekraani sisse ega liiguta tervet akent. */
.scene[data-contact-presentation="remote-holo"][data-human-state="astral"] .contact-stage::before,
.scene[data-contact-presentation="remote-holo"][data-human-state="telepathy"] .contact-stage::before,
.scene[data-contact-presentation="remote-holo"][data-human-state="distant-confused"] .contact-stage::before,
.scene[data-contact-presentation="remote-holo"][data-human-state="distant-calm"] .contact-stage::before,
.scene[data-contact-presentation="remote-holo"][data-human-state="scan"] .contact-stage::before,
.scene[data-contact-presentation="remote-holo"][data-human-state="integration"] .contact-stage::before {
  inset: 13% 12% 15% !important;
}

.scene[data-contact-presentation="remote-holo"][data-human-state="sleeping"] .contact-stage::before {
  inset: 19% 15% 20% !important;
}

.scene[data-contact-presentation="remote-holo"][data-human-state="sleeping"] .contact-stage::after {
  top: 20%;
  right: 14%;
}

.scene[data-contact-presentation="remote-holo"][data-human-state="telepathy"] .contact-stage::after {
  top: 38%;
  left: 60%;
  width: 28%;
}

.scene[data-contact-presentation="remote-holo"][data-human-state="distant-confused"] .contact-stage::after {
  inset: 14% 12% 15% !important;
}

.scene[data-contact-presentation="remote-holo"][data-human-state="distant-confused"] .contact-stage::before {
  top: 18% !important;
  right: 15% !important;
  left: auto !important;
  bottom: auto !important;
}

.scene[data-contact-presentation="remote-holo"][data-human-state="scan"] .contact-stage::after {
  right: 13%;
  left: 13%;
  top: 18%;
}

.scene[data-contact-presentation="physical"] .contact-holo-frame,
.scene[data-contact-presentation="none"] .contact-holo-frame {
  display: none !important;
}

@media (max-width: 900px) {
  .scene[data-room-owner="grey"][data-contact-presentation="remote-holo"] .contact-stage.visible {
    left: 27% !important;
    width: 17% !important;
  }

  #contactStage[data-presentation="remote-holo"] #contactVisualState {
    max-width: 74%;
    font-size: 8px;
  }
}
