/* Cassette reels — tape packs + light & smear (options B + C).
   Applies only to .cassette elements that cassette-reels.js has enhanced
   (.js .pk .lt). The label, shell, window glow and serial are untouched. */

:root { --smear: rgba(245,241,230,0.20); }
body.tone-studio, body.tone-paper, body.tone-newsprint { --smear: rgba(16,20,24,0.16); }

/* JS drives the reels; the window texture follows the same motor */
.cassette.js .big-reel { animation: none; will-change: transform; }
.cassette.js .tape-window::before { animation: none; background-position: var(--tx, 0px) 0, 0 0; }

/* tape pack + toothed hub */
.cassette.pk .big-reel .pack {
  position: absolute; left: 50%; top: 50%; width: 88%; height: 88%; margin: -44% 0 0 -44%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255,232,200,0.06) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 50% 50%, #3d2615 0%, #2b1a0e 62%, #1c1109 100%);
  box-shadow: 0 0 0 1px rgba(255,225,180,0.22), inset 0 0 12px rgba(0,0,0,0.55);
  will-change: transform;
}
.cassette.pk .big-reel .hubcap {
  position: absolute; left: 50%; top: 50%; width: 42%; height: 42%; margin: -21% 0 0 -21%;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 2px var(--ink);
}
.cassette.pk .big-reel .hubcap::after {            /* six teeth, so rotation reads */
  content: ''; position: absolute; inset: 0;
  background: repeating-conic-gradient(from 0deg, var(--ink) 0 16deg, transparent 16deg 60deg);
  -webkit-mask: radial-gradient(circle, transparent 0 40%, #000 41% 62%, transparent 63%);
          mask: radial-gradient(circle, transparent 0 40%, #000 41% 62%, transparent 63%);
}

/* depth, fixed highlight, motion smear */
.cassette.lt .big-reel {
  box-shadow:
    inset 0 0 0 7px var(--paper),
    inset 0 0 0 8px var(--ink),
    inset 0 -8px 18px rgba(26,18,8,0.10),
    inset 0 10px 16px rgba(0,0,0,0.38);
}
.cassette.lt .big-reel .smear {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none; opacity: 0;
  background: repeating-conic-gradient(from 0deg, transparent 0 18deg, var(--smear) 60deg);
  -webkit-mask: radial-gradient(circle, transparent 0 33%, #000 34% 88%, transparent 89%);
          mask: radial-gradient(circle, transparent 0 33%, #000 34% 88%, transparent 89%);
}
.cassette.lt .big-reel .gloss {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background:
    conic-gradient(from 205deg at 50% 50%, transparent 0 14deg, rgba(255,255,255,0.22) 38deg, transparent 66deg 196deg, rgba(255,255,255,0.08) 224deg, transparent 250deg),
    radial-gradient(120% 90% at 30% 12%, rgba(255,255,255,0.12), transparent 55%);
  mix-blend-mode: screen;
}
body.tone-studio .cassette.lt .big-reel .gloss,
body.tone-paper .cassette.lt .big-reel .gloss,
body.tone-newsprint .cassette.lt .big-reel .gloss { mix-blend-mode: soft-light; }
