/* Louie Louie (public/louie.js): a letterboard slip with a 45 spinning on it while the song plays. */
.louie { position: fixed; z-index: 36; left: 50%; top: calc(10px + env(safe-area-inset-top)); width: min(calc(100% - 24px), 380px); padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: none; text-align: left; color: var(--letter); transform: translate(-50%, calc(-100% - 20px - env(safe-area-inset-top))); transition: transform .32s cubic-bezier(.2, .9, .3, 1.2); box-shadow: 0 0 0 1px #f5f5f21f, 0 3px 0 #0000004d; visibility: hidden; -webkit-tap-highlight-color: transparent; }
.louie.in { transform: translate(-50%, 0); visibility: visible; }
.louie:not(.in) { transition: transform .22s ease-in, visibility 0s .22s; }
.louie .lo-board { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 68px; padding: 12px 88px 11px 16px; }
.louie .lo-title { font-size: 25px; white-space: nowrap; }
.louie .lo-title b { display: inline-block; font-weight: inherit; }
.louie .lo-title .sp { display: inline-block; width: .42em; }
.louie .lo-title b.hop { animation: lo-hop .2s ease-out 1; }
@keyframes lo-hop { 40% { transform: translateY(-5px); } }
.louie .lo-line { text-transform: none; letter-spacing: .04em; font-size: 16px; }
.louie.waiting .lo-line { opacity: 1; }

/* the 45: vinyl grooves, an indigo label, the big spindle hole */
.louie .lo-disc { position: absolute; right: 12px; top: 50%; width: 58px; height: 58px; margin-top: -29px; border-radius: 50%;
  background: repeating-radial-gradient(circle, #151419 0 1.4px, #26252c 1.4px 2.6px); box-shadow: 0 0 0 1px #f5f5f22e; }
.louie .lo-disc::after { content: ""; position: absolute; inset: 7px 20px 40px 20px; border-radius: 50% 50% 0 0; background: #ffffff14; transform-origin: 50% 22px; } /* the shine that shows it turning */
.louie .lo-label { position: absolute; inset: 17px; border-radius: 50%; background: #3340a0; display: grid; place-items: center; }
.louie .lo-label::before { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--felt); }
.louie .lo-label span { position: absolute; top: 3px; font: 600 7px/1 var(--board); letter-spacing: .12em; color: var(--letter); text-shadow: none; }
.louie.spin .lo-disc { animation: lo-spin 1.33s linear infinite; } /* 45 rpm */
@keyframes lo-spin { to { transform: rotate(360deg); } }
.louie.waiting .lo-disc { box-shadow: 0 0 0 2px #9aa4ff; }
.louie:active .lo-board { transform: translateY(1px); }

/* the note after "X joined" plays it again */
.louie-note { display: inline-grid; place-items: center; vertical-align: -9px; width: 36px; height: 36px; margin: -9px -8px -9px -2px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; opacity: .85; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .6)); }
.louie-note svg { width: 17px; height: 17px; }
.louie-note:active { opacity: 1; transform: scale(.92); }

@media (prefers-reduced-motion: reduce) {
  .louie, .louie:not(.in) { transition: none; }
  .louie.spin .lo-disc { animation: none; }
}
