.beauty-wheel {
  --wheel-shelf: clamp(13.6rem, min(25vw, 37svh), 24rem);
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(ellipse 45% 43% at 50% 49%, #fff7f9b8, transparent),
    radial-gradient(ellipse 52% 37% at 12% 58%, #eadcf1, transparent),
    radial-gradient(ellipse 52% 36% at 87% 58%, #d9cbedb0, transparent),
    radial-gradient(ellipse 70% 69% at 48% 10%, #fffaff, transparent),
    linear-gradient(180deg, #eeeafa, #eee6f5 58%, #e1d3ef);
}

.beauty-wheel::before, .beauty-wheel::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: max(28rem, 66vw);
  height: max(10rem, 13vw);
  background:
    radial-gradient(ellipse, #fffcf9df, #fff6f9a8 27%, transparent 68%) center / 100% 17% no-repeat,
    radial-gradient(ellipse, #fff1f0c2, #e3ddfe80 34%, transparent 68%) center / 100% 82% no-repeat;
  pointer-events: none;
}
.beauty-wheel::before {
  top: 1%;
  left: -21%;
  transform: rotate(-26deg);
}
.beauty-wheel::after {
  top: 20%;
  right: -24%;
  transform: rotate(-25deg);
  opacity: .7;
}

.wheel-heading { position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter); }
.storefront .wheel-heading h1 { font-size: clamp(3.35rem, min(7.5vw, 11.3svh), 7.25rem); line-height: 1; letter-spacing: -.035em; }
.wheel-help { position: relative; width: fit-content; margin: .2rem auto 0; }
.wheel-heading p { font-size: clamp(.96rem, 1.8vw, 1.75rem); line-height: 1.35; }
.wheel-message { margin-top: .75rem; }
.wheel-stage { position: relative; isolation: isolate; touch-action: pan-y pinch-zoom; }
.wheel-stage.is-dragging, .wheel-stage.is-dragging button { cursor: grabbing; }
.wheel-dial {
  position: absolute;
  z-index: -1;
  top: var(--wheel-shelf);
  left: 50%;
  width: clamp(32rem, 91.5vw, 93rem);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: clamp(3px, .39vw, 6px) solid transparent;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 46% 19%, #faf3fa 0%, #ebe0f2 24%, #d9c7e7 54%, #e9d9f5 76%) padding-box,
    conic-gradient(from -54deg, #dcc2e9, #fdedfa 9%, #dac8ee 16%, #eef1ff 27%, #eed1e6 48%, #a7a0dc 74%, #c6d9fe 87%, #f9e6cb 95%, #dcc2e9) border-box;
  box-shadow: 0 -1px 3px #fffdfd, 0 0 35px #966faf50, inset 0 6px 18px #9970cb43;
}
.wheel-dial::before, .wheel-dial::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.wheel-dial::before {
  inset: .4%;
  padding: clamp(2px, .57vw, 9px);
  background: conic-gradient(from -65deg, #ffe9b1, #fffafa 9%, #bba0dd 16%, #fabee8 22%, #eaf9ff 32%, #b49ce1 55%, #fbe7fa 75%, #a5c9fc 89%, #fff8e2 98%, #ffe9b1);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: .87;
}
.wheel-dial::after { inset: 1.2%; border: 1px solid #fffaffcf; box-shadow: 0 0 9px #fff7fbaf; }
#wheel-ring {
  position: absolute;
  inset: 1.9%;
  border-radius: 50%;
  transform: rotate(var(--wheel-rotation, 0deg));
  background: repeating-conic-gradient(from .5deg, #8154a6b3 0deg .15deg, transparent .19deg 3deg);
  mask-image: radial-gradient(transparent 67.25%, #000 67.4% 70.2%, transparent 70.5%);
}
.wheel-items { position: absolute; inset: 0; user-select: none; }
.wheel-item {
  position: absolute;
  z-index: var(--wheel-depth, 1);
  top: var(--wheel-shelf);
  left: 50%;
  display: block;
  width: clamp(8.5rem, 23vw, 22rem);
  height: calc(var(--wheel-shelf) - .55rem);
  padding: 0 .25rem .3rem;
  border: 0;
  border-radius: .55rem;
  transform: translate3d(var(--wheel-x, 0px), var(--wheel-y, 0px), 0) translate(-50%, -100%) scale(var(--wheel-scale, 1));
  transform-origin: center bottom;
  opacity: var(--wheel-opacity, 1);
  background: transparent;
  cursor: pointer;
}
.wheel-item::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: auto 23% -.4rem;
  height: 1.4rem;
  background: radial-gradient(ellipse, #6237894f, transparent 68%);
}
.wheel-item:focus-visible { outline: 2px dashed var(--ink); outline-offset: 4px; }
.wheel-media { display: block; width: 100%; height: 100%; pointer-events: none; }
.wheel-media img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.wheel-media .product-art, .wheel-media img { filter: drop-shadow(6px 9px 8px #734c913e); }
.wheel-item:hover .wheel-media { filter: brightness(1.045); }
.wheel-info {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: clamp(.3rem, .65vw, .68rem);
  width: min(43rem, calc(100% - 2.1rem));
  margin-inline: auto;
  padding-block: calc(var(--wheel-shelf) + clamp(3.25rem, 5.15vw, 5rem)) clamp(1.25rem, 2vw, 1.5rem);
  text-align: center;
  pointer-events: none;
}
.wheel-info h2 { font-size: clamp(2.1rem, min(3.72vw, 5.7svh), 3.65rem); line-height: 1.035; text-wrap: balance; overflow-wrap: anywhere; }
.wheel-brand { font-weight: 700; font-size: clamp(.77rem, 1.42vw, 1.35rem); letter-spacing: .19em; text-transform: uppercase; }
.wheel-price { max-width: 100%; font-size: clamp(.98rem, 1.75vw, 1.7rem); }
.wheel-info .wheel-view { min-height: clamp(2.75rem, 3.8vw, 3.65rem); width: clamp(11rem, 20vw, 19rem); margin-top: .1rem; border-radius: clamp(.85rem, 1.5vw, 1.4rem); font-size: clamp(1rem, 1.86vw, 1.75rem); pointer-events: auto; }
.wheel-catalog-link { color: var(--muted); font-size: .93rem; pointer-events: auto; }
.wheel-item .sold-out-ribbon { font-size: clamp(.77rem, 1.28vw, 1.12rem); }
.wheel-pause { position: absolute; inset: 50% auto auto calc(100% + .65rem); transform: translateY(-50%); display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fffaff7d; }
.wheel-pause:hover { background: var(--light-paper); }
.wheel-pause span { width: .46rem; height: .68rem; border-inline: 2px solid currentColor; }
.wheel-pause[data-playing='false'] span { width: 0; height: 0; border: 0; border-block: .32rem solid transparent; border-inline-start: .49rem solid currentColor; transform: translateX(.05rem); }

@media (min-width: 661px) {
  .wheel-heading h1 { transform: scaleX(1.1); }
}

@media (min-width: 661px) and (max-height: 820px) {
  .wheel-info { padding-top: calc(var(--wheel-shelf) + clamp(2.65rem, 7svh, 3.6rem)); }
  .wheel-info h2 { font-size: clamp(2.1rem, min(3.55vw, 5.35svh), 3.15rem); }
  .wheel-price { font-size: clamp(1rem, 1.5vw, 1.25rem); }
  .wheel-info .wheel-view { min-height: 2.75rem; font-size: clamp(1rem, 1.45vw, 1.25rem); }
}

@media (max-width: 660px) {
  .beauty-wheel { --wheel-shelf: clamp(12.2rem, min(57vw, 36svh), 18rem); }
  .beauty-wheel::before { top: 0; left: -59%; }
  .beauty-wheel::after { top: 15%; right: -58%; }
  .wheel-heading { padding-top: .6rem; }
  .storefront .wheel-heading h1 { font-size: clamp(2.5rem, 10.6vw, 4rem); }
  .wheel-help { display: flex; align-items: center; gap: .5rem; max-width: 100%; margin-top: .35rem; }
  .wheel-pause { position: static; transform: none; flex: 0 0 2.25rem; width: 2.25rem; height: 2.25rem; }
  .wheel-dial { width: max(147%, 27rem); }
  .wheel-item { width: clamp(7.5rem, 38vw, 14.5rem); }
  .wheel-info { gap: .35rem; padding-top: calc(var(--wheel-shelf) + clamp(2.9rem, 12vw, 3.9rem)); }
  .wheel-info h2 { font-size: clamp(1.7rem, 7.1vw, 2.8rem); }
}

@media (max-width: 660px) and (max-height: 650px) {
  .beauty-wheel { --wheel-shelf: clamp(10.35rem, 32svh, 12.4rem); }
  .wheel-info { padding-top: calc(var(--wheel-shelf) + 2.55rem); }
}
