.option-wheel {
  --ow-text-color: #a6a6a6;
  --ow-active-color: #ffffff;
  --ow-font-size: 3rem;
  --ow-inset: 80px;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: none;
  outline: none;
}

.option-wheel--dragging {
  cursor: grabbing;
}

.option-wheel__item {
  position: absolute;
  top: 50%;
  left: var(--ow-inset);
  white-space: nowrap;
  font-family: "Noto Serif", serif;
  font-size: var(--ow-font-size);
  line-height: 1;
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  transform-origin: left center;
  cursor: pointer;
  will-change: transform, opacity, filter;
  color: color-mix(in srgb, var(--ow-active-color) calc(var(--ow-p, 0) * 100%), var(--ow-text-color));
}

.option-wheel--right .option-wheel__item {
  left: auto;
  right: var(--ow-inset);
  transform-origin: right center;
}

.option-wheel__item--selected {
  font-weight: 500;
}

.option-wheel-shell {
  position: relative;
  width: 100%;
  min-height: min(72vh, 720px);
  height: min(72vh, 720px);
}

.option-wheel-meta {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  width: min(100%, 340px);
  max-width: 38%;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(-50%);
  pointer-events: none;
  transition: opacity 280ms ease, transform 280ms ease;
}

.option-wheel-meta.is-swapping {
  animation: wheel-meta-swap 320ms ease;
}

@keyframes wheel-meta-swap {
  0% {
    opacity: 0.35;
    transform: translateY(calc(-50% + 8px));
  }
  100% {
    opacity: 1;
    transform: translateY(-50%);
  }
}

.option-wheel-meta__index {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.625rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.option-wheel-meta__tag {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.option-wheel-meta__description {
  margin: 0;
  max-width: 28ch;
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(229, 226, 225, 0.72);
}

.option-wheel-meta__link {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 0.3rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffffff;
  transition: border-color 180ms ease, opacity 180ms ease;
}

.option-wheel-meta__link:hover {
  border-color: #ffffff;
  opacity: 0.85;
}

@media (max-width: 1023px) {
  .option-wheel-meta {
    max-width: 42%;
    width: min(100%, 280px);
  }

  .option-wheel-meta__description {
    font-size: 0.875rem;
    max-width: 24ch;
  }
}

@media (max-width: 767px) {
  .option-wheel-shell {
    display: flex;
    flex-direction: column;
    min-height: auto;
    height: auto;
    gap: 1.25rem;
  }

  .option-wheel {
    --ow-font-size: 1.45rem;
    --ow-inset: 16px;
    height: min(46svh, 360px);
    min-height: 280px;
    max-height: 400px;
  }

  .option-wheel__item {
    max-width: calc(100% - 1rem);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .option-wheel-meta {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
    padding: 1.25rem 0 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: none;
  }

  .option-wheel-meta.is-swapping {
    animation: wheel-meta-swap-mobile 320ms ease;
  }

  @keyframes wheel-meta-swap-mobile {
    0% {
      opacity: 0.35;
      transform: translateY(6px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .option-wheel-meta__description {
    max-width: none;
    font-size: 0.9rem;
  }

  .option-wheel-meta__link {
    min-height: 44px;
    align-items: center;
  }
}
