:root {
  color-scheme: dark;
  --background: #090b10;
  --surface: #111720;
  --ink: #f7f3e9;
  --muted: #a5afbf;
  --line: #283442;
  --blue: #88d1ff;
  --gold: #ffd350;
  --red: #ff7358;
  font: 1rem/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 22% 0%, #102339, transparent 46rem), var(--background);
  color: var(--ink);
}
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.mast, .footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--muted); }
.mast { min-height: 76px; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); font: italic 700 2rem Georgia, serif; letter-spacing: -.07em; }
.mast > span:last-child, .footer { font-size: .875rem; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}
.deck { display: grid; place-items: center; min-width: 0; }
.platter {
  position: relative;
  width: min(100%, 424px);
  aspect-ratio: 1;
  isolation: isolate;
}
.platter::before {
  content: "";
  position: absolute;
  inset: 1%;
  border-radius: 50%;
  box-shadow: 0 0 32px 8px #0008, 0 0 64px 12px #0005;
  z-index: -1;
}
.vinyl-surface, .record, .record img, .vinyl-reflections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.vinyl-surface {
  border-radius: 50%;
  overflow: hidden;
  background: #07080a;
  box-shadow: 0 0 0 1px #8597a02b;
}
.record {
  rotate: 0deg;
  background:
    radial-gradient(ellipse 9% 2.5% at 18% 82%, #bec7d305, transparent),
    radial-gradient(ellipse 4% 2% at 22% 86%, #c8d2df03, transparent),
    radial-gradient(ellipse 3% 7% at 91% 39%, #a6b0b905, transparent),
    radial-gradient(ellipse 2% 3% at 94% 43%, #a6b0b903, transparent),
    radial-gradient(ellipse 6% 2% at 43% 15%, #aebdce03, transparent),
    conic-gradient(from 17deg, transparent 43deg, #ffffff03 61deg, transparent 82deg, #0002 151deg, transparent 184deg, #ffffff03 267deg, transparent 308deg),
    radial-gradient(circle closest-side, transparent 77%, #08090b 77.4%, transparent 78.1%, transparent 96%, #22262b 98%, #090a0d 100%),
    repeating-radial-gradient(circle closest-side, #08090b 0 0.45%, #111216 .62%, #050608 .93%, #0b0c0f 1.24%);
}
.record::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(transparent 24deg, #cbd4df05 35deg, transparent 49deg,
    transparent 155deg, #cbd4df04 164deg, transparent 178deg,
    transparent 232deg, #cbd4df04 248deg, transparent 264deg);
  mask-image: radial-gradient(circle closest-side, transparent 64%, #000 65%, transparent 66%,
    transparent 84%, #000 84.5%, transparent 85.3%);
}
.record img {
  transform: translate(-.16%, .80%);
  mask-image: radial-gradient(circle closest-side at 50.16% 49.2%, #000 40%, transparent 42%);
}
@property --vinyl-light {
  syntax: "<color>";
  inherits: true;
  initial-value: #f4f8ff;
}
@property --label-fill {
  syntax: "<color>";
  inherits: true;
  initial-value: #3974b5;
}
@property --label-tint-opacity {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
.platter {
  --label-fill: #3974b5;
  --label-tint-opacity: 0;
  transition:
    --vinyl-light 900ms cubic-bezier(.22, .61, .36, 1),
    --label-fill 900ms cubic-bezier(.22, .61, .36, 1),
    --label-tint-opacity 900ms cubic-bezier(.22, .61, .36, 1);
}
@media (prefers-reduced-motion: reduce) {
  .platter { transition: none; }
}
.vinyl-reflections {
  --light: var(--vinyl-light);
  background:
    conic-gradient(from var(--key-shift, 0deg), transparent 30deg, color-mix(in srgb, var(--light) 17%, transparent) 39deg, color-mix(in srgb, var(--light) 72%, transparent) 45deg,
      color-mix(in srgb, var(--light) 40%, transparent) 48deg, color-mix(in srgb, var(--light) 13%, transparent) 57deg, transparent 73deg),
    conic-gradient(from var(--fill-shift, 0deg), transparent 169deg, color-mix(in srgb, var(--fill-light, var(--light)) 11%, transparent) 184deg,
      color-mix(in srgb, var(--fill-light, var(--light)) 55%, transparent) 200deg,
      color-mix(in srgb, var(--fill-light, var(--light)) 21%, transparent) 207deg, transparent 218deg),
    conic-gradient(transparent 279deg, color-mix(in srgb, var(--rim-light, var(--light)) 18%, transparent) 304deg, color-mix(in srgb, var(--rim-light, var(--light)) 7%, transparent) 325deg, transparent 347deg);
  opacity: calc(var(--reflection-strength, 1) * var(--beat-level, 1) * var(--reflection-scale, 1));
  mask-image: radial-gradient(circle closest-side, transparent 40%, #000 47%, #000 94%, #0008 100%);
  mix-blend-mode: screen;
}
.puppytown .vinyl-reflections {
  --light: color-mix(in srgb, #8fd8ff var(--beat-blue, 0%), #f4f8ff);
}
.phone {
  --label-light: color-mix(in srgb, #8fd8ff var(--beat-blue, 100%), #fff0d8);
}
.phone .vinyl-reflections {
  --light: var(--label-light);
  --fill-light: #579ddb;
  --rim-light: #c4e7ff;
}
.dopamine .vinyl-reflections {
  --light: #fff0dc;
  --fill-light: #f1e6dc;
  --rim-light: #d98e65;
}
.one-more-song .vinyl-reflections {
  --amber: color-mix(in srgb, #c58a3a var(--amber-level, 0%), #f4f8ff);
  --light: color-mix(in srgb, #f5ebd7 var(--cream-level, 0%), var(--amber));
  --fill-light: color-mix(in srgb, #7e4fff var(--violet-level, 0%), var(--light));
}
.violet-label { --label-fill: #6742bd; --label-tint-opacity: .14; }
.blue-label { --label-fill: #3974b5; --label-tint-opacity: .14; }
.vinyl-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle closest-side at 60% 38%,
    var(--label-light, var(--vinyl-light)), var(--label-fill, #3974b5));
  mask-image: radial-gradient(circle closest-side, #000 38%, transparent 42%);
  mix-blend-mode: screen;
  opacity: calc(var(--label-tint-opacity, 0) * var(--beat-level, 1) * var(--reflection-strength, 1));
}
.spindle {
  position: absolute;
  z-index: 1;
  inset: 49%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 29%, #c7ced4, #5a646c 42%, #161b21 72%);
  box-shadow: 0 1px 3px #000c;
}
.tonearm {
  position: absolute;
  top: 1%;
  left: 96%;
  width: auto;
  height: 58%;
  transform-origin: 44% 19%;
  transform: translateX(-44%) rotate(13deg);
  filter: drop-shadow(2px 3px 2px #000b);
  pointer-events: none;
}
h1, h2, p { margin: 0; }
h1 { font: 500 clamp(3.7rem, 8vw, 7.4rem)/.83 Georgia, serif; letter-spacing: -.085em; }
h1 span:last-child { color: var(--gold); }
.description { margin-top: 1rem; color: var(--muted); }
.transport { margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.now { display: grid; gap: .12rem; }
.now span { color: var(--blue); font-size: .75rem; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; }
.now strong { font-size: 1.25rem; overflow-wrap: anywhere; }
.seek { display: block; margin-top: .7rem; }
input[type=range] { width: 100%; margin: 0; accent-color: var(--blue); cursor: pointer; }
input[type=range]:disabled { opacity: .48; cursor: default; }
.times { display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.controls, .buttons, .volume { display: flex; align-items: center; gap: .4rem; }
.controls { justify-content: space-between; flex-wrap: wrap; margin-top: .65rem; }
.volume label { width: 64px; }
button {
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background-color .18s, color .18s, transform .18s;
}
button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
.icon { display: grid; place-items: center; border: 0; border-radius: 50%; width: 44px; height: 44px; background: var(--surface); }
.icon svg, .track-index svg { width: 20px; height: 20px; }
.icon:hover { background: #263648; transform: translateY(-2px); }
.icon.primary { width: 58px; height: 58px; background: #ffe487; color: #151004; }
.icon.primary:hover { background: #fff0b8; }
.icon.quiet { background: transparent; color: var(--muted); }
.icon.quiet:hover { background: var(--surface); color: var(--ink); }
.icon[aria-pressed=true], #repeat[data-mode]:not([data-mode=off]) { color: var(--blue); background: #142637; }
.icon:disabled { opacity: .45; cursor: default; transform: none; }
#notice { color: var(--muted); font-size: .875rem; }
#notice:not(:empty) { margin-top: .6rem; }
.sequence { border-top: 1px solid var(--line); }
.sequence-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.4rem 0 .8rem; }
h2 { font: 500 clamp(1.45rem, 3.5vw, 2.35rem)/1.15 Georgia, serif; letter-spacing: -.035em; }
.sequence-header > span { color: var(--muted); white-space: nowrap; font-size: .875rem; }
#tracks { list-style: none; padding: 0; margin: 0; }
.track { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) auto; gap: .65rem; align-items: center; width: 100%; text-align: left; min-height: 56px; border: 0; border-radius: 9px; padding: .5rem .75rem; background: transparent; }
#tracks li + li { border-top: 1px solid #1b2430; }
.track:hover { background: #172433; }
.track[aria-current=true] { color: var(--blue); background: #101c2a; }
.track-index, .track-time { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.track-index { display: grid; justify-items: center; }
.track:hover .track-index, .track[aria-current=true] .track-index { color: var(--blue); }
.track[aria-current=true] .track-title { font-weight: 700; }
.track-title { overflow-wrap: anywhere; }
details { margin-top: 1.25rem; color: var(--muted); }
details summary { width: fit-content; cursor: pointer; font-size: .875rem; }
details p { margin-top: .7rem; }
.footer { margin-top: 2rem; padding: 1.1rem 0 1.6rem; border-top: 1px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 760px) {
  .shell { width: min(540px, calc(100% - 32px)); }
  .mast { min-height: 60px; }
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-block: 2rem; }
  .platter { width: min(62vw, 285px); }
  h1 { font-size: clamp(3.5rem, 12vw, 5.4rem); }
  h1 br { display: none; }
  h1 br::after { content: " "; }
  .controls { gap: .5rem; }
  .volume label { display: none; }
}
@media (prefers-reduced-motion: reduce) { button { transition: none; } }

/* Listening Room layout */
:root {
  --background: #06182b;
  --surface: #0d2435;
  --ink: #f5ebd7;
  --muted: #a8bac8;
  --line: #233a4b;
  --blue: #8fd8ff;
  --gold: #ffcf3e;
}
body { background: var(--background); }
.shell { width: min(1488px, calc(100% - 96px)); }
.mast { min-height: 74px; justify-content: flex-start; gap: clamp(2rem, 6vw, 6rem); }
.brand { display: block; width: 138px; height: auto; mix-blend-mode: lighten; }
.room-name { color: var(--ink); }
.hero {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
  padding-block: clamp(40px, 5vw, 80px);
}
.deck { padding: 0 12px 0 0; align-self: center; }
.platter { width: min(100%, 510px); }
.player { min-width: 0; align-self: center; }
h1 { font-size: clamp(3.3rem, 5.5vw, 6.8rem); }
.description { color: var(--ink); margin-top: 1rem; }
.transport { margin-top: 1rem; padding-top: 1rem; }
.now span { font-size: .7rem; }
.now strong { font-size: clamp(1.1rem, 1.55vw, 1.4rem); }
.seek { margin-top: 1rem; }
input[type=range] { display: block; min-height: 24px; }
#seek {
  appearance: none;
  background: transparent;
}
#seek::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 5px;
  background: linear-gradient(to right, var(--blue) var(--progress, 0%), #526573 var(--progress, 0%));
}
#seek::-moz-range-track { height: 5px; border-radius: 5px; background: #526573; }
#seek::-moz-range-progress { height: 5px; border-radius: 5px; background: var(--blue); }
#seek::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--blue);
}
#seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--blue); }
.icon:active { transform: scale(.94); }
.sequence {
  margin: 0;
  padding-inline-start: clamp(16px, 2vw, 32px);
  border-top: 0;
  border-inline-start: 1px solid var(--line);
}
.sequence-header {
  width: 100%;
  color: var(--ink);
  padding: 0 0 12px;
  font-size: .8rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .045em;
}
.sequence-header > span:first-child { color: var(--ink); }
.sequence-header .track-count { font-size: .75rem; text-transform: none; font-weight: 500; letter-spacing: 0; }
.track { grid-template-columns: 1.7rem minmax(0, 1fr) auto; min-height: 39px; font-size: .875rem; gap: .5rem; padding-inline: .55rem; border-radius: 5px; }
.track[aria-current=true] { background: #102f43; color: var(--ink); }
.track-index, .track-time { font-size: .8rem; }
.mobile-actions { display: none; }
@media (min-width: 1024px) {
  .sequence-header { cursor: default; pointer-events: none; }
}
@media (min-width: 1024px) and (max-width: 1100px) {
  .shell { width: calc(100% - 56px); }
  .hero { gap: 24px; }
  .buttons { gap: 2px; }
  .icon { width: 36px; height: 36px; }
  .icon.primary { width: 48px; height: 48px; }
}
@media (max-width: 1023px) {
  .shell { width: min(480px, calc(100% - 40px)); }
  .mast { min-height: 64px; justify-content: center; }
  .brand { width: 124px; }
  .room-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 24px; }
  .deck { padding: 0; }
  .platter { width: min(76vw, 355px); }
  h1 { font: 600 clamp(2.4rem, 11vw, 4rem)/1 Georgia, serif; letter-spacing: -.065em; }
  h1 br { display: none; }
  .description { margin-top: .5rem; font-size: .9rem; }
  .transport { margin-top: .8rem; padding-top: .8rem; }
  .controls { flex-direction: column; align-items: center; gap: .4rem; }
  .buttons { justify-content: center; gap: clamp(4px, 3vw, 16px); }
  .volume { align-self: stretch; }
  .volume label { display: block; flex: 1; }
  .mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-top: .7rem; }
  .mobile-actions button { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: .875rem; }
  .sequence { padding: 0; border: 0; }
  .sequence:not([open]) { display: none; }
  .sequence-header { display: none; }
  .track { min-height: 48px; }
}
@media (min-width: 1200px) {
  .controls { gap: 4px; }
  .buttons { gap: 4px; }
  .controls .icon { width: 40px; height: 40px; }
  .controls .icon.primary { width: 54px; height: 54px; }
  .volume label { width: 48px; }
}

#lite-mode {
  margin-inline-start: auto;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: .8rem;
  white-space: nowrap;
}
#lite-mode:hover, #lite-mode[aria-pressed=true] {
  color: var(--blue);
  border-color: var(--blue);
}
.lite-mode .deck { display: none; }
.lite-mode button { transition: none; }
@media (min-width: 1024px) {
  .lite-mode .hero {
    max-width: 920px;
    margin-inline: auto;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}
@media (max-width: 1023px) {
  .mast { position: relative; }
  #lite-mode { position: absolute; right: 0; padding-inline: 7px; }
}

.mirror-wash {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms ease-in-out;
}
.mirror-wash.is-sweeping { opacity: .56; }
.mirror-field, .mirror-vinyl, .mirror-distortion { position: absolute; inset: 0; }
.mirror-room {
  opacity: 0;
  mask-image: radial-gradient(circle var(--disc-radius, 0px) at var(--disc-x, -100px) var(--disc-y, -100px),
    transparent 94%, #000 100%);
}
.mirror-wash.room-revealed .mirror-room {
  opacity: 1;
  transition: opacity 150ms ease-out;
}
.mirror-vinyl {
  mask-image:
    radial-gradient(circle var(--disc-radius, 0px) at var(--disc-x, -100px) var(--disc-y, -100px),
      #000 94%, transparent 100%),
    conic-gradient(from var(--dot-key-shift, 0deg) at var(--disc-x, -100px) var(--disc-y, -100px),
      #000e 0deg 29deg, #000 45deg, #000e 71deg 360deg),
    conic-gradient(from var(--dot-fill-shift, 0deg) at var(--disc-x, -100px) var(--disc-y, -100px),
      transparent 0deg 177deg, #000a 200deg, transparent 219deg);
  mask-composite: intersect, add;
  filter: blur(1.35px) brightness(1.2);
}
.mirror-field::before,
.mirror-field::after {
  content: "";
  position: absolute;
  inset: -25vw -640px -25vw 0;
  background: url("../images/mirror-reflections.svg") repeat;
  background-size: 640px 560px;
  animation: mirror-sweep 14s linear infinite paused;
}
.mirror-field::after {
  background-size: 480px 420px;
  background-position: 95px 110px;
  opacity: .4;
  animation: mirror-sweep-far 20s linear infinite paused;
}
.mirror-wash.is-sweeping .mirror-field::before,
.mirror-wash.is-sweeping .mirror-field::after { animation-play-state: running; }
@keyframes mirror-sweep {
  0% { transform: skewY(-7deg) translate(0, 0); }
  25% { transform: skewY(-7deg) translate(-160px, -13px); }
  50% { transform: skewY(-7deg) translate(-320px, 0); }
  75% { transform: skewY(-7deg) translate(-480px, 11px); }
  100% { transform: skewY(-7deg) translate(-640px, 0); }
}
@keyframes mirror-sweep-far {
  0% { transform: skewY(-4deg) translate(0, 0); }
  25% { transform: skewY(-4deg) translate(-120px, 9px); }
  50% { transform: skewY(-4deg) translate(-240px, 0); }
  75% { transform: skewY(-4deg) translate(-360px, -7px); }
  100% { transform: skewY(-4deg) translate(-480px, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .mirror-wash { display: none; }
}

.mirror-near {
  position: absolute;
  inset: -25vw -960px -25vw 0;
  z-index: 1;
  background: url("../images/mirror-near.svg") repeat;
  background-size: 960px 680px;
  animation: mirror-sweep-near 6s linear infinite paused;
}
.mirror-wash.is-sweeping .mirror-near { animation-play-state: running; }
@keyframes mirror-sweep-near {
  0% { transform: skewY(-10deg) translate(0, 0); }
  25% { transform: skewY(-10deg) translate(-240px, -25px); }
  50% { transform: skewY(-10deg) translate(-480px, 0); }
  75% { transform: skewY(-10deg) translate(-720px, 19px); }
  100% { transform: skewY(-10deg) translate(-960px, 0); }
}

.mirror-distortion {
  transform-origin: var(--disc-x, 50%) var(--disc-y, 50%);
  transform:
    translate(var(--dot-drift-x, 0px), calc(var(--dot-drift-y, 0px) - var(--vinyl-dot-rise, 0px)))
    skewY(var(--dot-shear, 0deg))
    scaleY(var(--dot-stretch, 1));
}

@property --room-intensity {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
body {
  --room-spill: calc(var(--room-intensity) * (0.46 + 0.54 * var(--room-pulse, 0)));
  --ink: color-mix(in srgb, #f5ebd7, var(--room-ink, #e2ceff) calc(24% * var(--room-spill)));
  --muted: color-mix(in srgb, #a8bac8, var(--room-muted, #c3a7f5) calc(25% * var(--room-spill)));
  --surface: color-mix(in srgb, #0d2435, var(--room-surface, #462676) calc(42% * var(--room-spill)));
  --line: color-mix(in srgb, #233a4b, var(--room-line, #654597) calc(35% * var(--room-spill)));
  isolation: isolate;
  transition: --room-intensity 650ms ease-in-out;
}
body.alien-lighting { --room-intensity: 1; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 17% 12%, var(--room-key, #7e4fff56) 0%, var(--room-mid, #582cc42e) 29%, transparent 64%),
    radial-gradient(ellipse at 88% 78%, var(--room-fill, #39206045), transparent 60%);
  opacity: var(--room-spill);
  mask-image: radial-gradient(circle var(--disc-radius, 0px) at var(--disc-x, -100px) var(--disc-y, -100px),
    transparent 94%, #000 105%);
}
.track[aria-current=true] {
  background: color-mix(in srgb, #102f43, var(--room-track, #49277f) calc(44% * var(--room-spill)));
}
.icon.primary {
  box-shadow: 0 0 20px color-mix(in srgb, var(--room-halo, #ad84ff) calc(28% * var(--room-spill)), transparent);
}

.brand { filter: url("../images/wordmark-mask.svg#remove-backing"); mix-blend-mode: normal; }

.lou-lou .vinyl-reflections { --reflection-scale: .5; }

.lemon-fizz {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}
.lemon-fizz.is-fizzing,
.lemon-fizz.is-popping { opacity: 1; }
.lemon-fizz.is-popping { animation: fizz-clear 155ms step-end forwards; }
@keyframes fizz-clear { to { opacity: 0; } }
.lemon-fizz i {
  position: absolute;
  left: var(--x);
  bottom: -30px;
  width: var(--size);
  aspect-ratio: 1;
  animation: bubble-rise var(--time) linear var(--offset) infinite paused;
}
.lemon-fizz i:nth-child(1) { --x: 9%; --size: 12px; --time: 12s; --offset: -8s; }
.lemon-fizz i:nth-child(2) { --x: 24%; --size: 7px; --time: 9s; --offset: -2s; }
.lemon-fizz i:nth-child(3) { --x: 39%; --size: 17px; --time: 15s; --offset: -7s; }
.lemon-fizz i:nth-child(4) { --x: 62%; --size: 8px; --time: 11s; --offset: -3s; }
.lemon-fizz i:nth-child(5) { --x: 79%; --size: 14px; --time: 14s; --offset: -9s; }
.lemon-fizz i:nth-child(6) { --x: 92%; --size: 10px; --time: 10s; --offset: -6s; }
.lemon-fizz.is-fizzing i { animation-play-state: running; }
.lemon-fizz i::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid #ffe69a5c;
  background:
    radial-gradient(circle at 29% 24%, #fff7cfb3, transparent 28%),
    radial-gradient(circle at 69% 76%, #efd97155, transparent 39%),
    conic-gradient(from 25deg, #fff1a525, transparent, #a9e2db46, #f4c46b44, #fff1a525);
  box-shadow: 0 0 8px #ffd26a24;
  animation: bubble-life var(--time) linear var(--offset) infinite paused;
}
.lemon-fizz.is-fizzing i::before { animation-play-state: running; }
.lemon-fizz.is-popping i::before { animation: none; visibility: hidden; }
.lemon-fizz i::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 25%, #fff2ae 0 7%, transparent 9%),
    radial-gradient(circle at 78% 16%, #fff8d3 0 6%, transparent 8%),
    radial-gradient(circle at 90% 64%, #ffe08a 0 6%, transparent 8%),
    radial-gradient(circle at 35% 87%, #ffe8a4 0 5%, transparent 7%);
  opacity: 0;
  animation: bubble-spray var(--time) linear var(--offset) infinite paused;
}
.lemon-fizz.is-fizzing i::after { animation-play-state: running; }
.lemon-fizz.is-popping i::after { animation: bubble-stop-spray 155ms ease-out both; }
@keyframes bubble-rise {
  0% { transform: translate(0, 0); }
  30% { transform: translate(13px, -32vh); }
  65% { transform: translate(-8px, -69vh); }
  100% { transform: translate(7px, -108vh); }
}
@keyframes bubble-life {
  0% { opacity: 0; visibility: visible; }
  14%, 76.9% { opacity: .72; scale: 1; visibility: visible; }
  77%, 100% { opacity: 0; visibility: hidden; }
}
@keyframes bubble-spray {
  0%, 76.9% { opacity: 0; scale: .85; }
  77% { opacity: .8; scale: 1; }
  78.2%, 100% { opacity: 0; scale: 1.85; }
}
@keyframes bubble-stop-spray {
  from { opacity: .8; scale: 1; }
  to { opacity: 0; scale: 1.85; }
}
@media (prefers-reduced-motion: reduce) {
  .lemon-fizz { display: none; }
}

/* Keep the distortion in the letterforms and the title's layout stationary. */
.title-lead { display: inline-block; position: relative; }
#album-title[data-distortion="signal"] .title-lead::first-letter,
#album-title[data-distortion="resolve"] .title-lead::first-letter {
  color: transparent;
}
#album-title[data-distortion="signal"] .title-lead::before,
#album-title[data-distortion="resolve"] .title-lead::before {
  content: "";
  position: absolute;
  left: .04em;
  top: .03em;
  width: .47em;
  height: .72em;
  background: #c9aaff;
  clip-path: polygon(0 22%, 76% 0, 100% 23%, 72% 52%, 34% 58%, 34% 97%, 11% 87%, 11% 45%, 65% 34%, 74% 23%, 23% 34%);
  animation: alien-letter 220ms ease-in-out both;
}
#album-title[data-distortion="resolve"] .title-lead::before {
  animation-direction: reverse;
}
#album-title[data-distortion="jumble"] .title-lead {
  color: #ead7ff;
  animation: alien-letter 240ms ease-out both;
}
@keyframes alien-letter {
  from { scale: 1 .75; transform-origin: left center; }
  to { scale: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .title-lead, .title-lead::before { animation: none !important; }
}

/* Lou Lou lives inside the record and player columns. */
.deck {
  position: relative;
  --lou-card-duration: 6s;
  --lou-card-fade: calc(var(--lou-card-duration) * .2);
}
.record .lou-label {
  display: none;
  inset: 29%;
  width: 42%;
  height: 42%;
  border-radius: 50%;
  transform: none;
  mask-image: none;
}
.lou-lou .record .lou-label {
  display: block;
  opacity: 0;
  visibility: hidden;
}
.lou-lou .record .lou-label.art-ready { visibility: visible; }
.lou-label-revealed .record .lou-label { opacity: 1; }
.deck:has(.lou-intro:not([hidden])) .lou-lou .record .lou-label {
  animation: lou-label-reveal var(--lou-card-fade) step-end both;
}
@keyframes lou-label-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .lou-label-dip { --lou-label-dip-duration: 320ms; }
  .lou-label-dip .record .lou-label {
    display: block;
    animation: lou-label-withdraw var(--lou-label-dip-duration) step-end both;
  }
  .lou-label-dip .record::after {
    content: "";
    position: absolute;
    inset: 29%;
    z-index: 1;
    border-radius: 50%;
    background: radial-gradient(circle closest-side, #101113, #090a0b);
    animation: lou-label-darken var(--lou-label-dip-duration) ease-in-out both;
  }
}
@keyframes lou-label-withdraw {
  from { opacity: 1; }
  50%, to { opacity: 0; }
}
@keyframes lou-label-darken {
  from, to { opacity: 0; }
  50% { opacity: 1; }
}
.album-heading { position: relative; }
.lou-sponsor {
  position: absolute;
  z-index: 1;
  inset-block-start: 46%;
  inset-inline-end: 0;
  width: clamp(96px, 38%, 178px);
  transform: translateY(-50%) rotate(calc(7deg + var(--lou-badge-rock, 0deg)));
  pointer-events: none;
}
.lou-badge {
  display: none;
  width: 100%;
  height: auto;
  filter: saturate(.88) contrast(.96)
    drop-shadow(0 -1px 0 #fff0be70)
    drop-shadow(1px 2px 0 #553c16b0)
    drop-shadow(1px 4px 4px #0007);
}
.lou-badge.art-ready { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .lou-sponsor:not([hidden]) .lou-badge.art-ready {
    animation: lou-sticker-settle 440ms cubic-bezier(.22, .65, .34, 1) both;
  }
}
@keyframes lou-sticker-settle {
  from { scale: .87; opacity: 0; }
  62% { scale: 1.035; opacity: 1; }
  84% { scale: .994; }
  to { scale: 1; opacity: 1; }
}
.lou-intro-copy span {
  font-size: .61rem;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.lou-intro em { font: italic 1rem Georgia, serif; }
.lou-intro {
  position: absolute;
  inset: 3% 0;
  z-index: 2;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #655539;
  border-color: #a18a61 #564127 #483520 #8d7650;
  border-radius: 5px;
  background: #071b25;
  box-shadow: 1px 2px 0 #3e2d20, 2px 4px 0 #211813, 3px 8px 18px #0009;
  pointer-events: none;
  animation: lou-sting var(--lou-card-duration) ease-in-out both;
}
.lou-sponsor[hidden], .lou-intro[hidden] { display: none; }
.lou-intro-art, .lou-intro::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.lou-intro-art { object-fit: cover; filter: saturate(.91); }
.lou-intro::after {
  content: "";
  background:
    radial-gradient(ellipse at 0 0, #d1b17e39, transparent 46%),
    radial-gradient(ellipse at center, #03141aaa, #03141a26 82%);
}
.lou-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Exposed paper gathers at the corners and breaks up along the edge. */
  background:
    radial-gradient(ellipse 24px 1px at 9px 0, #ceb589d9 46%, transparent 100%),
    radial-gradient(ellipse 1.5px 19px at 0 7px, #e4cba3cb 46%, transparent 100%),
    radial-gradient(ellipse 6px 1.5px at 29px 1px, #d8bd90a0 45%, transparent 100%),
    radial-gradient(ellipse 2px 1px at 36px 3px, #d8bd907a 42%, transparent 100%),
    radial-gradient(ellipse 1.5px 4px at 2px 29px, #d8bd908d 44%, transparent 100%),
    radial-gradient(ellipse 2px 1.5px at 5px 38px, #d8bd906b 42%, transparent 100%),
    radial-gradient(ellipse 19px 1.5px at calc(100% - 7px) 100%, #ccb183c9 45%, transparent 100%),
    radial-gradient(ellipse 1.5px 13px at 100% calc(100% - 6px), #e4cba3a8 45%, transparent 100%),
    radial-gradient(ellipse 5px 1.5px at calc(100% - 23px) calc(100% - 2px), #bfa67792 45%, transparent 100%),
    radial-gradient(ellipse 1px 2px at calc(100% - 3px) calc(100% - 20px), #d8bd9080 45%, transparent 100%);
  box-shadow: inset 0 1px 0 #fff3cb28, inset -1px -1px 0 #24190e80;
}
.lou-intro-copy { display: grid; justify-items: center; gap: 12px; padding: 16px; text-align: center; }
.lou-intro-copy img { width: clamp(138px, 23vw, 320px); max-width: 100%; height: auto; }
@keyframes lou-sting {
  0%, 100% { opacity: 0; }
  20%, 80% { opacity: 1; }
}
.lou-haze {
  display: none;
  position: fixed;
  inset: auto auto 1vh -12vw;
  z-index: -1;
  width: min(57vw, 810px);
  aspect-ratio: 1.9;
  pointer-events: none;
  background: url("../images/lou-lou/haze.webp") center / 100% 100% no-repeat;
  mask-image: radial-gradient(ellipse, #000 7%, transparent 70%);
  opacity: .115;
  animation: lou-drift 28s ease-in-out infinite alternate;
}
.lou-playing .lou-haze { display: block; }
@keyframes lou-drift {
  from { transform: translate(-8%, 12%) rotate(-5deg); }
  to { transform: translate(35%, -20%) rotate(9deg); }
}
.lemon-fizz { z-index: -1; }
.lemon-fizz i:nth-child(3) { --x: 32%; }
.lemon-fizz i:nth-child(4) { --x: 73%; }
@media (max-width: 1023px) {
  .lou-intro-art { object-position: center 65%; }
  .lou-sponsor { width: clamp(94px, 36%, 166px); inset-block-start: 43%; }
  .lou-haze { width: 86vw; opacity: .08; }
}
@media (prefers-reduced-motion: reduce) {
  .lou-playing .lou-haze, .lou-intro { display: none; }
}

/* Keep the heading footprint stable when the overlay enters or leaves. */
@media (max-width: 460px) {
  .album-heading h1 br { display: initial; }
  .lou-sponsor { inset-inline-end: -4px; }
}
