/* The record crate: real covers, vinyl that slides out of the sleeve, wooden crate front */
#crateStage{height:228px;bottom:calc(68px + env(safe-area-inset-bottom));width:min(760px,56vw)}
#crateHead{top:-2px;text-shadow:0 2px 10px rgba(0,0,0,.8)}
#sleeves{top:22px;padding:30px 18px 0;gap:6px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;cursor:grab}
#sleeves .sleeve{flex:0 0 130px;height:130px;margin-bottom:24px;padding:0;border-radius:3px;background:#1a0f10 var(--cv) center/cover no-repeat;box-shadow:0 -3px 14px rgba(0,0,0,.55),inset 0 0 0 1px rgba(255,255,255,.14),inset 0 0 22px rgba(0,0,0,.25);transform-origin:50% 100%;transition:transform .45s cubic-bezier(.2,.8,.2,1),box-shadow .45s;overflow:visible}
#sleeves .sleeve::before{content:"";position:absolute;inset:0;border-radius:3px;background:linear-gradient(115deg,rgba(255,255,255,.14),transparent 28%,transparent 70%,rgba(0,0,0,.3)),repeating-linear-gradient(0deg,rgba(255,255,255,.025) 0 1px,transparent 1px 3px);pointer-events:none}
#sleeves .sleeve:nth-child(3n){transform:translateY(2px) rotate(-.6deg)}
#sleeves .sleeve:nth-child(3n+1){transform:rotate(.5deg)}
#sleeves .sleeve:hover,#sleeves .sleeve:focus-visible{transform:translateY(-18px) rotate(0);box-shadow:0 -16px 30px rgba(0,0,0,.65),0 0 0 1px var(--gold)}
#sleeves .sleeve.here{transform:translateY(-6px)}
#sleeves .sleeve.playing{transform:translateY(-34px) rotate(0);z-index:3;box-shadow:0 -20px 38px rgba(227,197,138,.3),0 0 0 1px var(--gold2)}
#sleeves .sleeve small,#sleeves .sleeve b,#sleeves .sleeve .dur{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#sleeves .sleeve.played::after{content:"";position:absolute;top:7px;left:7px;width:8px;height:8px;border-radius:50%;background:var(--gold2);box-shadow:0 0 8px var(--gold2)}
/* the vinyl */
#sleeves .sleeve .sdisc{right:auto;left:26px;top:6px;width:114px;height:114px;opacity:0;z-index:-1;border-radius:50%;transform:translateX(0) rotate(0);transition:transform .9s cubic-bezier(.2,.8,.2,1),opacity .4s;
  background:radial-gradient(circle,#050203 0 3%,transparent 3.4%),repeating-radial-gradient(circle,#0d0708 0 2px,#1a0f11 2px 3px),#0b0607;box-shadow:0 8px 22px rgba(0,0,0,.65)}
#sleeves .sleeve .sdisc::after{content:"";position:absolute;inset:33%;border-radius:50%;background:var(--cv) center/cover;box-shadow:0 0 0 2px rgba(0,0,0,.5)}
#sleeves .sleeve .sdisc::before{content:"";position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 20deg,transparent 0 18%,rgba(255,255,255,.11) 24%,transparent 30% 68%,rgba(255,255,255,.08) 74%,transparent 80%);pointer-events:none}
#sleeves .sleeve.playing .sdisc{opacity:1;transform:translateX(80px);animation:spin 3.6s linear .9s infinite}
/* the wooden crate front */
.crateFront{height:50px;background:repeating-linear-gradient(90deg,rgba(0,0,0,0) 0 120px,rgba(0,0,0,.26) 120px 122px),repeating-linear-gradient(180deg,rgba(255,220,170,.05) 0 2px,rgba(0,0,0,.08) 2px 5px),linear-gradient(180deg,#7a4d2a,#4a2b15 55%,#2e1a0d);box-shadow:0 -3px 0 #9a6a3c inset,0 14px 30px rgba(0,0,0,.6),0 0 0 1px rgba(0,0,0,.4);z-index:4}
.crateFront::after{content:"";position:absolute;left:14%;top:12px;width:72px;height:16px;border-radius:8px;background:rgba(10,5,3,.55);box-shadow:inset 0 2px 4px rgba(0,0,0,.7)}
@media (max-width:820px){
  #crateStage{height:214px;bottom:calc(66px + env(safe-area-inset-bottom));width:auto}
  #sleeves .sleeve{flex-basis:118px;height:118px;margin-bottom:22px}
  #sleeves .sleeve .sdisc{width:104px;height:104px;left:22px}
  #sleeves .sleeve.playing .sdisc{transform:translateX(72px)}
  #sleeves .sleeve.playing{transform:translateY(-34px)}
  .crateFront{height:44px}.crateFront::after{top:10px}
  #stageUI{bottom:calc(292px + env(safe-area-inset-bottom))}
}
@media (min-width:821px){#stageUI{bottom:calc(312px + env(safe-area-inset-bottom));gap:14px}}
@media (prefers-reduced-motion:reduce){#sleeves .sleeve.playing .sdisc{animation:none}}
