/* Self-criticism. Everything scoped under .scx-*. */
.scx-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.scx-open { flex: 1; justify-content: center; padding: 0 16px; }
.scx-hl { display: block; font: 800 12.5px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }

/* the phone */
.scx-phone { width: 100%; max-width: 330px; border-radius: 26px; background: #0E1220; border: 2px solid rgba(234, 227, 215, .16); padding: 10px 12px 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.scx-top { display: flex; justify-content: center; font: 800 13px var(--sans); color: var(--dim); margin-bottom: 8px; }
.scx-feed { display: flex; flex-direction: column; gap: 8px; min-height: 90px; }
.scx-note { padding: 10px 12px; border-radius: 16px; background: rgba(234, 227, 215, .1); display: flex; flex-direction: column; gap: 2px; opacity: 0; }
.scx-note.in { opacity: 1; animation: scx-drop .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes scx-drop { from { transform: translateY(-24px); opacity: 0; } }
.scx-note small { font: 700 12.5px var(--sans); color: var(--dim); }
.scx-note b { font: 800 18px var(--sans); color: var(--text); }
.scx-bad { color: var(--gold); }
.scx-msg { max-width: 86%; padding: 9px 13px; border-radius: 18px; font: 600 15px/1.3 var(--sans); animation: scx-pop .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes scx-pop { from { transform: scale(.9); opacity: 0; } }
.scx-msg small { display: block; font: 800 12px var(--sans); color: var(--dim); margin-bottom: 1px; }
.scx-in { align-self: flex-start; display: flex; align-items: flex-end; gap: 8px; background: transparent; padding: 0; }
.scx-in img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; background: #2A2140; flex: none; }
.scx-in span { padding: 9px 13px; border-radius: 18px 18px 18px 6px; background: var(--raised); }
.scx-out { align-self: flex-end; background: var(--violet); color: #fff; border-radius: 18px 18px 6px 18px; }
.scx-hurt span { color: var(--dim); }

/* the voice */
.scx-head { width: 100%; max-width: 330px; display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; border-radius: 18px; border: 2px dashed rgba(234, 227, 215, .2); min-height: 136px; }
.scx-thought { font: italic 600 19px/1.25 var(--serif); color: var(--text); animation: scx-pop .45s cubic-bezier(.2, .8, .2, 1); }
.scx-hrow { display: flex; align-items: center; gap: 6px; width: 100%; max-width: 340px; }
.scx-hart { width: 104px; height: auto; flex: none; filter: drop-shadow(0 12px 20px rgba(123, 92, 253, .3)); }
.scx-hrow .scx-head { flex: 1; min-width: 0; }
.scx-hrow .scx-thought { font-size: 17.5px; }

/* side by side */
.scx-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 360px; animation: scx-pop .4s ease-out; }
.scx-col { padding: 12px; border-radius: 16px; background: var(--surface); border: 2px solid var(--line-strong); }
.scx-col p { margin: 0 0 6px; font: 600 15px/1.3 var(--serif); }
.scx-self p { font-style: italic; color: var(--dim); }
.scx-friend { border-color: var(--violet); }
.scx-friend p { color: var(--text); }

/* the notes */
.scx-notes { max-width: 360px; margin: 0 auto; }
.scx-cards { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.scx-card { display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 2px solid var(--line-strong); color: var(--text); text-align: left; transition: border-color .3s; }
.scx-card:disabled { cursor: default; }
.scx-ch { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.scx-card b { font: 800 12.5px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.scx-card span { font: 600 14.5px/1.3 var(--serif); }
.scx-bar { height: 7px; border-radius: 4px; background: rgba(234, 227, 215, .1); overflow: hidden; margin-top: 4px; }
.scx-bar i { display: block; height: 100%; width: 0; background: var(--violet-bright); border-radius: 4px; }
.scx-card em { font: 800 12.5px var(--sans); font-style: normal; color: var(--dim); }
.scx-card.scx-picked { box-shadow: 0 0 0 2px var(--violet-bright); }
.scx-card.scx-win { border-color: var(--gold); }
.scx-card.scx-win .scx-bar i { background: var(--gold); }
.scx-card.scx-win em { color: var(--gold); }

/* rewrite */
.scx-rewrite { max-width: 360px; margin: 0 auto; }
.scx-rewrite .scx-head { min-height: 0; gap: 8px; }
.scx-line { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; border-radius: 12px; transition: background .3s; }
.scx-line s { font: italic 600 17px/1.25 var(--serif); color: var(--text); text-decoration: none; }
.scx-line span { font: 700 16px/1.25 var(--serif); color: var(--violet-bright); }
.scx-line span:empty { display: none; }
.scx-line.scx-now { background: rgba(123, 92, 253, .16); }
.scx-line.scx-done s { color: var(--faint); text-decoration: line-through; }

@media (max-height: 700px) {
  .scx-thought, .scx-hrow .scx-thought { font-size: 16px; }
  .scx-hart { width: 88px; }
  .scx-card { padding: 8px 10px; }
  .scx-card span { font-size: 13.5px; }
  .scx-line s { font-size: 15.5px; }
  .scx-line span { font-size: 15px; }
}
