:root {
  --wheel-h: 220px;
  --wheel-item: 74px;
  --wheel-radius: 240px;
  --wheel-step: 24deg;
  --wheel-center: 90px;
}

@media (max-width: 560px) {
  :root {
    --wheel-h: 180px;
    --wheel-item: 62px;
    --wheel-radius: 200px;
    --wheel-step: 25deg;
    --wheel-center: 72px;
  }
}

body {
  padding-bottom: calc(var(--wheel-h) + env(safe-area-inset-bottom, 0px));
}

section[data-section] {
  scroll-margin-top: 82px;
}

section.hero {
  padding: 0;
  padding-top: clamp(90px, 12vh, 148px);
}

.wheel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.wheel__panel {
  background: transparent;
  pointer-events: none;
}

.wheel__viewport {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: var(--wheel-h);
  margin-inline: auto;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 12%,
    #000 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 12%,
    #000 100%
  );
}

.wheel__track {
  position: absolute;
  left: 50%;
  bottom: calc(-1 * var(--wheel-center));
  width: 0;
  height: 0;
  pointer-events: none;
}

.wheel__item {
  pointer-events: auto;
  position: absolute;
  width: var(--wheel-item);
  height: var(--wheel-item);
  left: calc(var(--wheel-item) / -2);
  top: calc(var(--wheel-item) / -2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(15, 18, 25, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(234, 242, 239, 0.82);
  cursor: pointer;
  padding: 0;
  touch-action: none;
  will-change: transform, opacity;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    opacity 0.3s ease;
}

.wheel__viewport.is-dragging .wheel__item {
  transition: none;
}

.wheel__item.is-active {
  background: linear-gradient(145deg, var(--accent, #1fe0a0), var(--accent-2, #12b886));
  color: var(--accent-ink, #04130d);
  border-color: rgba(31, 224, 160, 0.55);
  box-shadow:
    0 0 0 1px rgba(31, 224, 160, 0.35),
    0 8px 28px rgba(31, 224, 160, 0.38);
}

.wheel__icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
}

.wheel__icon svg {
  display: block;
  width: 29px;
  height: 29px;
}

.wheel__label {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text, #eaf2ef);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.wheel__item.is-active .wheel__label {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .wheel__item {
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }
}
