/* 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. */

/* the email's two halves turning round */
.flip { --tint: var(--a2) }
.fl-row { display: flex; justify-content: center; padding: 14px 0 4px; font-family: var(--mono); font-size: clamp(26px, 6.4vw, 40px); font-weight: 500; letter-spacing: 0 }
.fl-row span { display: inline-block; width: 1ch; text-align: center; animation: fl-move 6s var(--ease) infinite }
.fl-row .fl-at { color: var(--ink-accent); animation-name: fl-at }
.fl-at::before { content: "\40" }
@keyframes fl-move { 0%, 26% { transform: none; opacity: .5 } 38% { transform: translate(calc(var(--m) * .5ch), -12px); opacity: .8 } 50%, 86% { transform: translateX(calc(var(--m) * 1ch)); opacity: 1 } 96%, 100% { transform: none; opacity: .5 } }
@keyframes fl-at { 0%, 40% { opacity: 0; transform: scale(.4) } 50%, 86% { opacity: 1; transform: none } 94%, 100% { opacity: 0; transform: scale(.4) } }
.fl-cap { display: grid; width: 100%; text-align: center }
.fl-cap > span { grid-area: 1 / 1 }
.fl-c1 { animation: fl-c1 6s linear infinite }
.fl-c2 { opacity: 0; color: var(--ink-accent); animation: fl-c2 6s linear infinite }
@keyframes fl-c1 { 0%, 40% { opacity: 1 } 46%, 92% { opacity: 0 } 98%, 100% { opacity: 1 } }
@keyframes fl-c2 { 0%, 42% { opacity: 0 } 48%, 88% { opacity: 1 } 94%, 100% { opacity: 0 } }
.fl-row span { animation-play-state: paused }
.flip.play .fl-row span, html:not(.js) .fl-row span { animation-play-state: running }

/* the email, live inside a note */
.mailtoy { --tint: var(--a4) }
.mailtoy .mail-link { font-size: clamp(24px, 4.4vw, 38px) }
