/* 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 switch, the hidden signal, the bulb (6 s) */
.why { --tint: var(--a1) }
.wy { display: flex; align-items: center; gap: 0; padding: 18px 6px 6px }
.wy-sw { flex: none; position: relative; width: 34px; height: 54px; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line-2) }
.wy-sw i { position: absolute; left: 7px; right: 7px; top: 7px; height: 18px; border-radius: 5px; background: var(--fg); animation: wy-sw 6s var(--ease) infinite both }
.wy-wire { position: relative; flex: 1; height: 2px; margin: 0 10px; background-image: linear-gradient(90deg, var(--line-2) 50%, transparent 50%); background-size: 8px 2px }
.wy-wire i { position: absolute; inset: 0 }
.wy-wire i::before { content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px var(--a1) }
.wy-wire i { animation: wy-run 6s linear infinite both }
.wy-bulb { flex: none; position: relative; width: 50px; height: 50px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2) }
.wy-bulb i { position: absolute; inset: -8px; border-radius: 50%; background: radial-gradient(closest-side, #FFF6C9, var(--a1) 55%, transparent); opacity: 0; animation: wy-glow 6s ease infinite both }
@keyframes wy-sw { 0%, 12% { transform: none } 17%, 86% { transform: translateY(22px) } 92%, 100% { transform: none } }
@keyframes wy-run { 0%, 17% { opacity: 0; transform: none } 19% { opacity: 1; transform: none } 44% { opacity: 1; transform: translateX(100%) } 47%, 100% { opacity: 0; transform: translateX(100%) } }
@keyframes wy-glow { 0%, 43% { opacity: 0; transform: scale(.6) } 50% { opacity: 1; transform: scale(1.1) } 55%, 86% { opacity: 1; transform: none } 92%, 100% { opacity: 0; transform: scale(.6) } }
.wy-cap { display: grid; width: 100%; text-align: center }
.wy-cap > span { grid-area: 1 / 1 }
.wy-c1 { animation: wy-c1 6s linear infinite both }
.wy-c2 { opacity: 0; color: var(--ink-accent); animation: wy-c2 6s linear infinite both }
@keyframes wy-c1 { 0%, 15% { opacity: 1 } 19%, 90% { opacity: 0 } 95%, 100% { opacity: 1 } }
@keyframes wy-c2 { 0%, 17% { opacity: 0 } 21%, 86% { opacity: 1 } 90%, 100% { opacity: 0 } }
