/* Conformity. Everything scoped under .cnf-*. */

/* the phone and its chat */
.cnf-phone {
  width: min(100%, 320px); border-radius: 26px; padding: 10px 10px 12px; background: #0E1322;
  border: 2px solid var(--line-strong); box-shadow: 0 8px 0 #05070E; display: flex; flex-direction: column; gap: 8px;
}
.cnf-top { display: flex; flex-direction: column; align-items: center; padding: 4px 0 6px; border-bottom: 1px solid var(--line); }
.cnf-top b { font-size: 15px; font-weight: 800; }
.cnf-top span { font-size: 12px; color: var(--dim); }
.cnf-msgs { display: flex; flex-direction: column; gap: 5px; height: 256px; overflow: hidden; justify-content: flex-end; }
.cnf-msg { align-self: flex-start; max-width: 84%; display: flex; flex-direction: column; gap: 1px; animation: cnf-pop .25s cubic-bezier(.2,.9,.3,1.2) both; }
.cnf-msg b { font-size: 12px; font-weight: 800; padding-left: 10px; }
.cnf-msg span { display: block; padding: 7px 11px; border-radius: 16px 16px 16px 5px; background: var(--raised); font-size: 15px; line-height: 1.3; }
.cnf-msg.mine { align-self: flex-end; }
.cnf-msg.cnf-inl { flex-direction: row; align-items: center; gap: 6px; }
.cnf-msg.cnf-inl b { padding-left: 4px; }
.cnf-msg.cnf-inl span { padding: 5px 10px; }
.cnf-phone.short .cnf-msgs { height: 196px; }
.cnf-msg.mine span { background: var(--violet); color: #fff; border-radius: 16px 16px 5px 16px; }
.cnf-typing span { display: flex; gap: 4px; padding: 10px 12px; }
.cnf-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); animation: cnf-dot 1s infinite; }
.cnf-typing i:nth-child(2) { animation-delay: .15s; }
.cnf-typing i:nth-child(3) { animation-delay: .3s; }
.cnf-replies .choice { font-size: 17px; }

/* two reasons */
.cnf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.cnf-why { display: flex; flex-direction: column; gap: 4px; padding: 12px 10px; border-radius: 16px; background: var(--surface); border: 2px solid var(--line); text-align: center; }
.cnf-why.fit { border-color: rgba(252,192,80,.45); }
.cnf-why b { font-family: var(--serif); font-size: 19px; font-weight: 700; }
.cnf-why span { font-size: 14px; line-height: 1.3; }
.cnf-why small { font-size: 12px; color: var(--dim); }
.cnf-pic svg { display: block; width: 100%; height: auto; }
.cnf-ha { font-family: var(--mono); font-size: 17px; font-weight: 600; fill: var(--gold); }
.cnf-ha.y { fill: var(--text); font-size: 20px; }

/* laughs alone and together */
.cnf-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.cnf-count { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: 16px; background: var(--surface); border: 2px solid var(--line); transition: border-color .3s; }
.cnf-count .cnf-pic { width: 110px; }
.cnf-count span { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }
.cnf-count b { font-family: var(--mono); font-size: 44px; line-height: 1.1; color: var(--text); }
.cnf-count small { font-size: 13px; color: var(--dim); }
.cnf-count.loud b, .cnf-count.paper b { font-size: 30px; }
.cnf-count .cnf-pic svg { overflow: visible; }
.cnf-count.on { border-color: var(--gold); }
.cnf-count.on b { color: var(--gold); }

@keyframes cnf-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes cnf-dot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

@media (max-height: 700px) {
  .cnf-msgs { height: 240px; }
  .cnf-phone.short .cnf-msgs { height: 168px; }
  .cnf-msg span { font-size: 14px; padding: 6px 10px; }
  .cnf-phone { padding: 8px 8px 10px; }
  .cnf-why { padding: 10px 8px; }
  .cnf-count b { font-size: 36px; }
}
