* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Sora', ui-sans-serif, system-ui;
}

.wheel-frame {
  position: relative;
  width: min(78vw, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  /* box-shadow ring instead of border: overflow:hidden clips to the same
     edge as border-radius, giving a geometrically exact circle.
     A CSS border shifts the content inward, creating a slightly different
     clip curve and causing visible deformation. */
  box-shadow: 0 0 0 14px #e2e8f0, 0 10px 50px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.wheel {
  width: 100%;
  height: 100%;
}

.wheel-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(37%, 155px);
  transform-origin: 0 0;
  color: #ffffff;
  font-size: clamp(0.62rem, 1.5vw, 0.875rem);
  font-weight: 700;
  text-align: right;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wheel-center {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 86px;
  height: 86px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: #111827;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14), 0 0 0 3px rgba(255, 255, 255, 0.9);
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  padding: 0;
}

.wheel-center:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.18), 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.wheel-center:active:not(:disabled) {
  transform: translate(-50%, -50%) scale(0.97);
}

.wheel-center:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.wheel-pointer {
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 22px solid #64748b;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.12));
  margin-bottom: 6px;
  flex-shrink: 0;
}
