/* Letters to the Future — the ONE letter card (letter/cards.js, 2026-10-20). Loaded by Home
   (app/index.html) and the letters page (letter/index.html), so the card looks the same in both:
   white, the envelope on the left, who it's for, one line in words and the Written · Confirmed ·
   Delivered track, whose last stretch fills with the share of the wait already behind it.
   Self-contained: its own colours, only tokens.css's ink and faces from outside. */
.lc-list { display: grid; gap: 10px; }
.lc-card {
  position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 14px 14px 12px; border-radius: 18px; text-decoration: none; color: var(--ink, #17181C);
  background: #FFFFFF; border: 1px solid #ECEDF2;
  box-shadow: 0 1px 2px rgba(23, 24, 28, 0.04), 0 8px 24px rgba(60, 40, 60, 0.05);
  animation: lc-in .45s cubic-bezier(.2, .9, .3, 1) both; animation-delay: calc(var(--i, 0) * 60ms);
  transition: transform .15s ease, box-shadow .15s ease; -webkit-tap-highlight-color: transparent;
}
.lc-card:active { transform: scale(0.98); }
@media (hover: hover) { .lc-card:hover { box-shadow: 0 1px 2px rgba(23, 24, 28, 0.05), 0 12px 28px rgba(60, 40, 60, 0.09); } }
.lc-card:focus-visible { outline: 2px solid #C2416F; outline-offset: 2px; }
.lc-card.is-expired { filter: saturate(.4); opacity: .75; }
.lc-env { width: 56px; height: 56px; object-fit: contain; }
.lc-card.is-scheduled .lc-env { animation: lc-bob 4s ease-in-out infinite; }
.lc-body { display: grid; gap: 3px; min-width: 0; }
.lc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.lc-to {
  min-width: 0; font: 800 15px/1.25 var(--font-display, 'Pretendard', system-ui, sans-serif);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lc-go { flex: none; display: inline-flex; color: #B9B3C4; }
.lc-go .icon, .lc-go svg { display: block; }
.lc-when { font-size: 12.5px; line-height: 1.35; color: #6B6E78; }
/* the track: stop · line · stop · line · stop, each stop a dot over its word */
.lc-track { display: grid; grid-template-columns: auto minmax(10px, 1fr) auto minmax(16px, 1.6fr) auto; align-items: start; margin-top: 8px; }
.lc-stop { display: grid; justify-items: center; gap: 4px; }
.lc-stop i {
  display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid #E6DCEA; color: #fff; box-sizing: border-box;
}
.lc-stop i .icon svg { display: block; }
.lc-stop.is-on i { background: #ec5f93; border-color: #ec5f93; }
.lc-stop.is-now i { border-color: #ec5f93; animation: lc-pulse 1.6s ease-out infinite; }
.lc-stop small { font-size: 10.5px; font-weight: 700; color: var(--ink-soft, #5B5E68); white-space: nowrap; }
.lc-stop.is-on small { color: var(--ink, #17181C); }
.lc-line { height: 4px; margin: 7px 5px 0; border-radius: 4px; background: #EEE6F1; overflow: hidden; }
.lc-line i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #ec5f93, #F7A6C4); }
.lc-card.is-scheduled .lc-line.is-a i, .lc-card.is-delivered .lc-line.is-a i { width: 100%; }
.lc-card.is-pending .lc-line.is-a i { width: 55%; animation: lc-wait 1.4s ease-in-out infinite alternate; }
.lc-line.is-b i { width: var(--p, 0%); transition: width .8s ease; }
.lc-card.is-delivered .lc-line i { width: 100%; background: linear-gradient(90deg, #3FAF7F, #8ED9B0); }
.lc-card.is-delivered .lc-stop.is-on i { background: #3FAF7F; border-color: #3FAF7F; }
@keyframes lc-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes lc-pulse { 0% { box-shadow: 0 0 0 0 rgba(236, 95, 147, .45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(236, 95, 147, 0); } }
@keyframes lc-wait { from { opacity: .45; } to { opacity: 1; } }
@keyframes lc-bob { 50% { translate: 0 -3px; } }
@media (prefers-reduced-motion: reduce) {
  .lc-card, .lc-card.is-scheduled .lc-env, .lc-stop.is-now i, .lc-card.is-pending .lc-line.is-a i { animation: none; }
}
