/* the film and its controls, for /song/ and /how/: the app's PLAY cell, and the ball on its wire. Under the film, so nothing covers it. */
.ctl { display:flex; align-items:center; width:max(var(--w), min(100vw, 340px)); height:60px; margin:0 auto; padding:0 12px; box-sizing:border-box; color:#6a4010; background:#d6ddba; border:1px solid #9a6420; -webkit-user-select:none; user-select:none; touch-action:none; visibility:hidden; opacity:0; transition:opacity .4s; }
.ctl.up { visibility:visible; opacity:1; }
.ctl button { flex:none; width:44px; height:44px; padding:0; margin:0; border:0; background:none; color:#9a6420; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.ctl button:hover { color:#6a4010; }
.ctl button:active svg { transform:translateY(1px); }
.ctl svg { display:block; width:20px; height:20px; margin:auto; fill:currentColor; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.ctl .pp { color:#6a4010; }
.ctl .pp svg { width:26px; height:26px; }
.ctl .pp svg:nth-child(n+2), .ctl.on .pp svg:first-child, .ctl.over .pp svg:first-child { display:none; }
.ctl.on .pp svg:nth-child(2), .ctl.over .pp svg:nth-child(3) { display:block; }
.ctl .rail { position:relative; flex:1; height:44px; margin:0 8px 0 16px; cursor:pointer; }
.ctl .rail::before { content:""; position:absolute; left:0; right:0; top:22px; height:1px; background:#9a6420; }
/* the app's own wire: an open square at each stop, tied off at both ends */
.ctl .rail i, .ctl .rail u { position:absolute; box-sizing:border-box; background:#d6ddba; border:1px solid #9a6420; }
.ctl .rail i { top:19px; width:7px; height:7px; margin-left:-3px; }
.ctl .rail u { top:17px; width:5px; height:11px; left:-5px; }
.ctl .rail u + u { left:100%; }
.ctl.few .rail i { display:none; }   /* a short wire: the ends and the ball */
@media (max-width:560px) { .ctl { padding:0 14px 0 4px; } }
.ctl .rail b { position:absolute; top:15px; left:0; width:15px; height:15px; margin-left:-7px; border-radius:50%; background:radial-gradient(circle at 34% 28%, #f3d596, #c8902c 42%, #6a4010); box-shadow:0 1px 2px rgba(26,12,4,.45); }
.ctl button:focus-visible, .ctl .rail:focus-visible { outline:2px solid #7a4a12; outline-offset:-2px; }
.stage canvas { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
/* on its way: the ball breathes until the film is there */
.ctl[aria-busy] .rail b { animation:breathe 1s .25s ease-in-out infinite alternate; }
@keyframes breathe { to { opacity:.3; transform:scale(.8); } }
@media (prefers-reduced-motion:reduce) { .ctl[aria-busy] .rail b { animation:none; opacity:.45; } }
