/* Involuntary memory. Everything scoped under .im-*. */

.ivm-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ivm-note { font-size: 12px; color: var(--faint); text-align: center; }

/* the task card */
.ivm-tally { font-size: 14px; font-weight: 700; color: var(--dim); }
.ivm-tally b { font-family: var(--mono); color: var(--gold); }
.ivm-frame { width: 100%; max-width: 320px; height: 190px; border-radius: 20px; background: #F4EEE2; color: #1B1A22;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 6px 0 #B9AE98;
  transition: box-shadow .2s, background .2s; }
.ivm-frame:active { transform: translateY(3px); box-shadow: 0 3px 0 #B9AE98; }
.ivm-frame.ivm-in { animation: imIn .22s ease-out both; }
@keyframes imIn { from { opacity: .2; transform: scale(.97); } }
.ivm-frame.ivm-got { background: #DDF6EA; box-shadow: 0 6px 0 var(--mint); }
.ivm-frame.ivm-done { background: var(--surface); color: var(--dim); box-shadow: none; }
.ivm-frame.shake { animation: imShake .3s; }
@keyframes imShake { 30% { transform: translateX(-5px); } 60% { transform: translateX(4px); } }
.ivm-lines { width: 120px; height: 72px; }
.ivm-lines line { stroke: #1B1A22; stroke-width: 4; stroke-linecap: round; }
.ivm-ph { font: italic 500 22px var(--serif); color: #4A4538; }
.ivm-dots { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; max-width: 320px; }
.ivm-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--raised); }
.ivm-dots i.on { background: var(--violet-bright); }

/* the phrases, all at once */
.ivm-cloud { width: 100%; max-width: 340px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-top: 6px; }
.ivm-cloud span { font: italic 500 16px var(--serif); padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--dim);
  animation: imFloat .5s calc(var(--k) * 40ms) both; transition: color .3s, border-color .3s, box-shadow .3s; }
@keyframes imFloat { from { opacity: 0; transform: translateY(8px); } }
.ivm-cloud.lit span { color: var(--text); border-color: var(--gold); box-shadow: 0 0 12px rgba(252,192,80,.25); }

/* the busy task */
.ivm-cards2 { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.ivm-mini { width: 120px; height: 84px; border-radius: 14px; background: #F4EEE2; color: #1B1A22; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.ivm-mini .ivm-lines { width: 64px; height: 38px; }
.ivm-mini em { font: italic 500 14px var(--serif); color: #4A4538; }
.ivm-mini.ivm-sum b { font: 700 20px var(--mono); }
.ivm-plus { font-size: 22px; font-weight: 800; color: var(--dim); }
.ivm-sc .gauge { width: 100%; max-width: 320px; }

/* Proust */
.ivm-hero img { width: 170px; display: block; filter: drop-shadow(0 14px 24px rgba(123,92,253,.35)); }
.ivm-two { width: 100%; max-width: 340px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ivm-two span { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--dim); line-height: 1.3; }
.ivm-two b { color: var(--gold); font-size: 14px; }

@media (max-height: 700px) {
  .ivm-frame { height: 160px; }
  .ivm-hero img { width: 130px; }
  .ivm-cloud { gap: 6px; padding-top: 0; }
  .ivm-cloud span { font-size: 14px; padding: 4px 10px; }
}
.ivm-two.ivm-hide { visibility: hidden; }
