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

/* speak it: five phrases, each landing in its place (15 s) */
.say { --tint: var(--a4) }
.sy-top { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2) }
.sy-mic { flex: none; display: flex; align-items: center; gap: 3px; height: 22px }
.sy-mic i { width: 3px; height: 100%; border-radius: 3px; background: var(--a2); transform: scaleY(.3); animation: sy-wave 1s ease-in-out infinite }
.sy-mic i:nth-child(2) { animation-duration: .7s } .sy-mic i:nth-child(3) { animation-duration: 1.2s } .sy-mic i:nth-child(4) { animation-duration: .85s } .sy-mic i:nth-child(5) { animation-duration: 1.05s }
@keyframes sy-wave { 50% { transform: scaleY(1) } }
.sy-said { display: grid; min-width: 0; font-size: 15px; font-weight: 500 }
.sy-said > span { grid-area: 1 / 1; opacity: 0; animation: 15s ease infinite both }
.sy-dest { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center }
.sy-d { position: relative; overflow: hidden; padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2) }
.sy-d i { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px var(--a2); background: rgba(52, 211, 153, .14); opacity: 0; animation: 15s ease infinite both }
.sy-said .p1 { animation-name: sy-p1 } .sy-d .d1 { animation-name: sy-d1 }
@keyframes sy-p1 { 0% { opacity: 0; transform: translateY(6px) } 2%, 16% { opacity: 1; transform: none } 19%, 100% { opacity: 0; transform: translateY(-6px) } }
@keyframes sy-d1 { 0%, 6% { opacity: 0 } 8%, 16% { opacity: 1 } 19%, 100% { opacity: 0 } }
.sy-said .p2 { animation-name: sy-p2 } .sy-d .d2 { animation-name: sy-d2 }
@keyframes sy-p2 { 0%, 20% { opacity: 0; transform: translateY(6px) } 22%, 36% { opacity: 1; transform: none } 39%, 100% { opacity: 0; transform: translateY(-6px) } }
@keyframes sy-d2 { 0%, 26% { opacity: 0 } 28%, 36% { opacity: 1 } 39%, 100% { opacity: 0 } }
.sy-said .p3 { animation-name: sy-p3 } .sy-d .d3 { animation-name: sy-d3 }
@keyframes sy-p3 { 0%, 40% { opacity: 0; transform: translateY(6px) } 42%, 56% { opacity: 1; transform: none } 59%, 100% { opacity: 0; transform: translateY(-6px) } }
@keyframes sy-d3 { 0%, 46% { opacity: 0 } 48%, 56% { opacity: 1 } 59%, 100% { opacity: 0 } }
.sy-said .p4 { animation-name: sy-p4 } .sy-d .d4 { animation-name: sy-d4 }
@keyframes sy-p4 { 0%, 60% { opacity: 0; transform: translateY(6px) } 62%, 76% { opacity: 1; transform: none } 79%, 100% { opacity: 0; transform: translateY(-6px) } }
@keyframes sy-d4 { 0%, 66% { opacity: 0 } 68%, 76% { opacity: 1 } 79%, 100% { opacity: 0 } }
.sy-said .p5 { animation-name: sy-p5 } .sy-d .d5 { animation-name: sy-d5 }
@keyframes sy-p5 { 0%, 80% { opacity: 0; transform: translateY(6px) } 82%, 96% { opacity: 1; transform: none } 99%, 100% { opacity: 0; transform: translateY(-6px) } }
@keyframes sy-d5 { 0%, 86% { opacity: 0 } 88%, 96% { opacity: 1 } 99%, 100% { opacity: 0 } }
.js .sy-said .p1 { opacity: 0 }
@media (prefers-reduced-motion: reduce) { .sy-said .p1 { opacity: 1 !important } .sy-d:first-child i { opacity: 1 } }
[data-motion="off"] .sy-said .p1 { opacity: 1 !important } [data-motion="off"] .sy-d:first-child i { opacity: 1 }
