/* The toy in this note. Loaded on this page only, after styles.css and notes.css.
   Same rules as everywhere: only opacity and transform move, and anything marked
   .lp loops only while the toy is on screen. */

/* a "now" status that ages while you watch */
.stale { --tint: var(--a1) }
.st-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 12px; padding: 18px 20px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line) }
.st-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--a2); box-shadow: 0 0 10px var(--a2); animation: pulse 1.6s ease-in-out infinite; transition: opacity .6s }
.st-text { font-weight: 500; font-size: 16px }
.st-text .mono { margin-right: 8px; color: var(--ink-accent) }
.st-age { grid-column: 2; transition: color .6s }
.stale.old .st-dot { opacity: .25; animation: none; box-shadow: none; background: var(--faint) }
.stale.old .st-age { color: #E5866A }

/* the second card that never ages, and the years passing underneath both */
.st-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
@media (max-width: 560px) { .st-pair { grid-template-columns: minmax(0, 1fr) } }
.st-card { transition: opacity .6s }
.stale.old .st-card:not(.st-fresh) { opacity: .6 }
.st-fresh { box-shadow: inset 0 0 0 1.5px var(--a2) }
.stale.old .st-fresh .st-dot { opacity: 1; animation: pulse 1.6s ease-in-out infinite; box-shadow: 0 0 10px var(--a2); background: var(--a2) }
.stale.old .st-fresh .st-age { color: var(--ink-accent) }
.st-time { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin-top: 16px; font-size: 10.5px; color: var(--muted) }
.st-track { grid-column: 1 / -1; position: relative; overflow: hidden; height: 4px; border-radius: 4px; background: var(--line) }
.st-track i { position: absolute; inset: 0; border-radius: 4px; background: var(--a2); transform: scaleX(0); transform-origin: left; transition: transform .2s linear }
