/* BOT: a chat on a phone, the way a dating app, a DM or a help chat shows it. Generic looks, no real logos.
   Their messages sit on the left in grey, yours on the right in blue, each with the time it was sent:
   the times are part of the game (a bot answers a long question in the same minute at 3 am). */
.stage { max-width: 640px; }

.chat-head {
  position: relative; flex: none; display: flex; align-items: center; gap: 10px;
  padding: 2px 12px 10px 34px; background: #F6F6F4; border-bottom: 1px solid #E8E8E3;
}
.chat-back { position: absolute; left: 12px; top: 50%; margin-top: -11px; display: flex; color: #1F63D6; }
.chat-back svg { width: 11px; height: 18px; }
.chat-head .msg-av { width: 40px; height: 40px; font-size: 17px; background: #B9BDC6; }
.chat-who { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.chat-name { font-size: 16px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.chat-sub { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.3; overflow-wrap: anywhere; }
.chat-app {
  flex: none; padding: 4px 9px; border-radius: 999px; background: var(--white); border: 1px solid #E3E3DE;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--muted); white-space: nowrap;
}
.chat-bio { margin: 0; padding: 8px 14px; background: #FAFAF8; border-bottom: 1px solid #EFEFEA; font-size: 14px; line-height: 1.4; color: #3A3F47; font-style: italic; }

/* a dark help chat and a purple-ish dating app, so the apps don't all look the same */
.app-dating .chat-head { background: #FBF0F6; }
.app-support .chat-head { background: #EEF3FB; }
.app-telegram .chat-head, .app-discord .chat-head { background: #EFF1F8; }

.chat-thread { gap: 4px; }
.chat-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 100%; }
.chat-msg.is-you { align-items: flex-end; }
.chat-msg + .chat-msg { margin-top: 4px; }
.spec-chat .bubble { font-size: clamp(16px, 4.2vw, 18px); max-width: 86%; }
.bubble.is-you { align-self: flex-end; background: #2F7BF5; color: var(--white); border-radius: 20px 20px 6px 20px; }
.bubble.is-you .link { color: var(--white); }
.chat-time { margin: 3px 8px 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.is-revealed .chat-time { color: var(--ink); }
.spec-chat .bubble .link { overflow-wrap: anywhere; }
.chat-name .tell, .chat-sub .tell, .chat-bio .tell { color: var(--ink); }

@media (max-width: 560px) {
  .chat-head { padding-left: 30px; }
  .chat-app { font-size: 10px; padding: 3px 7px; }
}

/* an unknown number gets a blank person, like a real phone (as in LURE) */
.msg-av.is-unknown { position: relative; overflow: hidden; }
.msg-av.is-unknown::before { content: ""; position: absolute; top: 8px; left: 50%; width: 15px; height: 15px; margin-left: -7.5px; border-radius: 50%; background: var(--white); }
.msg-av.is-unknown::after { content: ""; position: absolute; bottom: -6px; left: 50%; width: 28px; height: 19px; margin-left: -14px; border-radius: 14px 14px 0 0; background: var(--white); }
