/* 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 locked studio: an idea goes in, a video comes out, the box stays shut */
.box { --tint: var(--a2) }
.bx { display: flex; align-items: center; gap: 10px }
.bx-chip { flex: none; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap }
.bx-chip.out { color: var(--fg); box-shadow: inset 0 0 0 1px var(--a3) }
.bx-wire { position: relative; flex: 1; min-width: 14px; height: 1.5px; background: var(--line-2) }
.bx-wire i { position: absolute; inset: 0; animation: bx-run 3.2s var(--ease) infinite both }
.bx-wire i::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 2px var(--a2) }
@keyframes bx-run { 0% { opacity: 0; transform: none } 10% { opacity: 1 } 45% { opacity: 1; transform: translateX(100%) } 52%, 100% { opacity: 0; transform: translateX(100%) } }
.bx-core { position: relative; overflow: hidden; flex: none; width: clamp(92px, 24vw, 132px); aspect-ratio: 1; border-radius: 18px; display: grid; place-content: center; justify-items: center; gap: 8px; background: #0B0C10; color: #F3F4F6; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 10px 30px -12px var(--a3); transition: transform .3s var(--ease) }
.bx-core:enabled:hover { transform: translateY(-3px) }
/* The box is written into the page switched off, and toy.js switches it on. Where script cannot
   run it is simply a picture, and the caption that invites a tap is not shown. */
.bx-core:disabled { cursor: default }
html:not(.js) .bx-say { display: none }
.bx-core svg { width: 26px; height: 26px }
.bx-core .mono { color: #A2A8B6 }
.bx-sheen { position: absolute; top: -20%; bottom: -20%; left: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent); transform: translateX(-120%) skewX(-18deg); animation: bx-sheen 4s ease-in-out infinite }
@keyframes bx-sheen { 0%, 55% { transform: translateX(-120%) skewX(-18deg) } 85%, 100% { transform: translateX(320%) skewX(-18deg) } }
.bx-core.nope { animation: nope .45s ease }
