/* 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 power cut: the job pauses in the dark and carries on afterwards */
.pw { --tint: var(--a1) }
.pw-screen { position: relative; overflow: hidden; display: grid; gap: 16px; padding: 26px 22px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line) }
.pw-label { position: relative; z-index: 2; display: grid }
.pw-label > span { grid-area: 1 / 1 }
.pw-l1 { animation: pw-l1 9s linear infinite both }
.pw-l2 { opacity: 0; color: #fff; animation: pw-l2 9s linear infinite both }
.pw-l3 { opacity: 0; color: var(--fg); animation: pw-l3 9s linear infinite both }
.pw-track { position: relative; z-index: 1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden }
.pw-track i { position: absolute; inset: 0; border-radius: inherit; background: var(--rainbow); transform-origin: left; transform: scaleX(.6); animation: pw-bar 9s linear infinite both }
.pw-dark { position: absolute; inset: 0; z-index: 1; background: #000; opacity: 0; animation: pw-dark 9s linear infinite both }
@keyframes pw-bar { 0%, 4% { transform: scaleX(0); opacity: 1 } 38%, 58% { transform: scaleX(.6) } 88% { transform: none; opacity: 1 } 96%, 100% { transform: none; opacity: 0 } }
@keyframes pw-dark { 0%, 39% { opacity: 0 } 41% { opacity: .94 } 42.5% { opacity: .6 } 44%, 57% { opacity: .94 } 61%, 100% { opacity: 0 } }
@keyframes pw-l1 { 0%, 38% { opacity: 1 } 40%, 96% { opacity: 0 } 100% { opacity: 1 } }
@keyframes pw-l2 { 0%, 41% { opacity: 0 } 44%, 56% { opacity: 1 } 59%, 100% { opacity: 0 } }
@keyframes pw-l3 { 0%, 59% { opacity: 0 } 62%, 92% { opacity: 1 } 95%, 100% { opacity: 0 } }
