.cabinet-wheel {
  --wheel-gold: #e8c27e;
  margin: 20px auto 34px;
  color: #f6ead7;
  text-align: center;
  border-block: 1px solid #ad8b4c40;
  background: linear-gradient(90deg, #181613ef, #181613ae 48%, #181613eb), url(img/collector-desk.webp) center 60% / cover;
}
.cabinet-wheel-preview { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: clamp(116px, 15vw, 216px); pointer-events: none; }
.cabinet-wheel-preview img { width: clamp(54px, 12vw, 100px); height: 95px; object-fit: contain; filter: drop-shadow(0 4px 5px #0008); }
.cabinet-wheel-preview img:only-child { transform: translateX(clamp(-150px,-23vw,-90px)); }
.cabinet-wheel [hidden], .cabinet-wheel[hidden] { display: none !important; }
.cabinet-wheel-stage {
  --orbit-x: min(35vw, 204px);
  --orbit-y: 133px;
  height: 152px;
  position: relative;
  isolation: isolate;
}
.cabinet-wheel.is-open .cabinet-wheel-stage { height: 410px; }
.cabinet-wheel-stage::before {
  content: ''; position: absolute; inset: 50% auto auto 50%;
  transform: translate(-50%, -50%); width: calc(2 * var(--orbit-x)); height: calc(2 * var(--orbit-y));
  border-radius: 50%; border: 1px solid #b999583e; opacity: 0; pointer-events: none;
}
.is-open .cabinet-wheel-stage::before { opacity: 1; }
.cabinet-wheel-hub {
  position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 116px; height: 116px; border-radius: 50%; border: 1px solid #ac8b52;
  background: radial-gradient(circle at 36% 20%, #50402a, #211c15 66%, #33291c);
  color: var(--wheel-gold); box-shadow: inset 0 0 0 5px #211d16, inset 0 0 0 6px #76613c, 0 8px 20px #0004;
  display: grid; align-content: center; gap: 5px; font: inherit; cursor: pointer;
}
.cabinet-wheel-hub strong { font-size: 19px; }
.cabinet-wheel-hub span { font-size: 12px; color: #e5dacc; }
.cabinet-wheel-slot {
  position: absolute; left: calc(50% + var(--x) * var(--orbit-x)); top: calc(50% + var(--y) * var(--orbit-y));
  transform: translate(-50%,-50%); width: min(26%,148px);
}
.cabinet-wheel-slot > * {
  display: grid; justify-items: center; align-content: center; gap: 4px; width: 100%; min-height: 48px;
  background: none; border: none; color: inherit; text-decoration: none; padding: 0; font: inherit; cursor: pointer;
}
.cabinet-wheel-slot img { width: 100%; height: 70px; object-fit: contain; filter: drop-shadow(0 5px 6px #0007); }
.cabinet-wheel-slot span { font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; }
.cabinet-wheel-pages { display: flex; align-items: center; justify-content: center; gap: 16px; }
.cabinet-wheel-pages button { min-height: 44px; background: none; color: var(--wheel-gold); border: none; cursor: pointer; font: inherit; }
.cabinet-wheel-pages button:disabled { opacity: .35; }
.cabinet-wheel :focus-visible { outline: 2px solid var(--wheel-gold); outline-offset: 3px; }
@media (max-width: 500px) {
  .cabinet-wheel-stage { --orbit-x: 35%; --orbit-y: 143px; }
  .cabinet-wheel.is-open .cabinet-wheel-stage { height: 440px; }
  .cabinet-wheel-slot span { font-size: 12px; }
  .cabinet-wheel-hub { width: 100px; height: 100px; }
}
@media (prefers-reduced-motion: no-preference) {
  .cabinet-wheel-stage { transition: height .44s cubic-bezier(.22,.8,.22,1); }
  .cabinet-wheel-slot { animation: cabinet-unfold .55s cubic-bezier(.2,.8,.3,1.08) var(--delay) backwards; }
  @keyframes cabinet-unfold {
    from { top: 50%; left: 50%; opacity: 0; transform: translate(-50%,-50%) scale(.34); }
  }
}
