/* ============================================================
   The "who's home" chip as a polaroid — js/apartment-chip-polaroid.js
   Over css/apartment-presence.css (the round chip's rules stay; its
   ring is replaced in the DOM, so they no longer apply).
   ============================================================ */

/* the round chip never paints — the observer re-dresses it before the next frame */
.apt-npc-chip:not(.polaroid) { visibility: hidden; }

.apt-npc-chip.polaroid { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35)); }
.apt-npc-chip.polaroid .apt-npc-card { fill: #f4eddb; stroke: #8E7F7F; stroke-width: 1; }
.apt-npc-chip.polaroid .apt-npc-edge { fill: none; stroke: rgba(58, 50, 56, 0.35); stroke-width: 0.75; }

/* the name on the card: the presence module's halo (paint-order stroke) goes;
   the id-scoped selector matches the module's own specificity in the modal */
#apartmentViewerModal .apt-npc-chip.polaroid .apt-npc-name,
.apt-npc-chip.polaroid .apt-npc-name {
  font-family: 'Special Elite', 'Courier New', Courier, monospace;
  font-size: 8px;
  letter-spacing: 1px;
  fill: #3A3238;
  stroke: none;
  paint-order: normal;
}

/* OUT: the print fades, the name greys, a red stamp across the photo */
#apartmentViewerModal .apt-npc-chip.polaroid.out .apt-npc-face,
.apt-npc-chip.polaroid.out .apt-npc-face { opacity: 0.5; filter: grayscale(1) sepia(0.3); }
#apartmentViewerModal .apt-npc-chip.polaroid.out .apt-npc-name,
.apt-npc-chip.polaroid.out .apt-npc-name { fill: #8E7F7F; }
.apt-npc-chip.polaroid.out .apt-npc-out rect { fill: rgba(235, 230, 216, 0.85); stroke: #8B0000; stroke-width: 1; }
.apt-npc-chip.polaroid.out .apt-npc-out text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 8px;
  font-weight: bold;
  letter-spacing: 2px;
  fill: #8B0000;
}
