/* Drift play disc. The panel centres the disc (part.js only adds the drift as a transform) and clips it at its
   edges, as the source's cover does. Look = the source's: a hairline ring .25rem outside a filled face with a 2px
   ink edge; pointing at the face swaps its fill and ink at once (no transition, as the source). */
.dpd {
  --dpd-size: 12rem;                      /* the face (10rem under 992px, 7rem under 480px, as the source) */
  --dpd-gap: .25rem;                      /* ring to face */
  --dpd-ring: 1px;
  --dpd-edge: 2px;
  --dpd-face: #f8ce4f;
  --dpd-ink: #1d1d1f;
  --dpd-label: calc(var(--dpd-size) * .25);
  --dpd-font: inherit;
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
}
.dpd.dpd--hit-panel { cursor: pointer; }
.dpd__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dpd__disc {
  position: relative; z-index: 2;
  display: grid; place-items: center;
  margin: 0; padding: var(--dpd-gap);
  border: var(--dpd-ring) solid var(--dpd-ink); border-radius: 50%;
  background: none; color: var(--dpd-ink);
  font: inherit; cursor: pointer;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.dpd__face {
  display: grid; place-items: center;
  width: var(--dpd-size); height: var(--dpd-size); box-sizing: border-box;
  border: var(--dpd-edge) solid var(--dpd-ink); border-radius: 50%;
  background: var(--dpd-face); color: var(--dpd-ink);
  font-family: var(--dpd-font); font-size: var(--dpd-label); line-height: 1;
}
.dpd__disc:hover .dpd__face, .dpd__disc.is-hover .dpd__face { background: var(--dpd-ink); color: var(--dpd-face); }
.dpd__disc:focus-visible { outline: 3px solid var(--dpd-ink); outline-offset: 4px; }
@media (max-width: 991px) { .dpd { --dpd-size: 10rem; } }
@media (max-width: 479px) { .dpd { --dpd-size: 7rem; } }
