/* ValuePeak START button — stacked wheel design (track + arc + lime face) */

.vp-start-wheel-btn {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  overflow: visible !important;
}

.vp-start-wheel-btn .vp-start-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 62%, #2a2a2a 63%, #1c1c1c 78%, #111 100%);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.06),
    inset 0 -3px 6px rgba(0, 0, 0, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 0;
}

/* Green spinner arc on the dark track */
.vp-start-wheel-btn .vp-start-arc {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: conic-gradient(
    from -40deg,
    #daff45 0deg,
    #daff45 52deg,
    transparent 52deg 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
  filter: drop-shadow(0 0 4px rgba(218, 255, 69, 0.65));
  pointer-events: none;
}

.vp-start-wheel-btn .vp-start-face {
  position: relative;
  z-index: 1;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: #daff45;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow:
    0 0 0 1px rgba(218, 255, 69, 0.35),
    0 0 18px rgba(218, 255, 69, 0.45),
    0 6px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}

.vp-start-wheel-btn:active:not(:disabled) .vp-start-face {
  transform: scale(0.97);
}

.vp-start-wheel-btn .vp-start-play {
  display: none !important;
}

.vp-start-wheel-btn .vp-start-play::after {
  display: none !important;
}

.vp-start-wheel-btn .vp-start-label {
  color: #111 !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  line-height: 1.05 !important;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  white-space: nowrap;
}

.vp-start-wheel-btn .vp-start-count {
  color: #111 !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  opacity: 1;
  letter-spacing: 0.02em;
}

html[data-vp-theme="light"] .vp-start-wheel-btn .vp-start-label,
html[data-vp-theme="light"] .vp-start-wheel-btn .vp-start-count {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

/* Light mode: slightly softer outer track, still dark for contrast on pale pages */
html[data-vp-theme="light"] .vp-start-wheel-btn .vp-start-ring {
  background:
    radial-gradient(circle at 50% 50%, transparent 62%, #2f2f2f 63%, #1a1a1a 78%, #0e0e0e 100%);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.07),
    inset 0 -3px 6px rgba(0, 0, 0, 0.5),
    0 2px 10px rgba(0, 0, 0, 0.22);
}

html[data-vp-theme="light"] .vp-start-wheel-btn .vp-start-face {
  box-shadow:
    0 0 0 1px rgba(196, 230, 18, 0.4),
    0 0 16px rgba(196, 230, 18, 0.35),
    0 6px 14px rgba(16, 24, 40, 0.18);
}

/* Desktop / large */
@media (min-width: 768px) {
  .vp-start-wheel-btn .vp-start-play {
    display: none !important;
  }
  .vp-start-wheel-btn .vp-start-label {
    font-size: 22px !important;
  }
  .vp-start-wheel-btn .vp-start-count {
    font-size: 18px !important;
  }
  .vp-start-wheel-btn .vp-start-arc {
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
  }
}

/* Grid sizing */
.sl-start-grid .vp-start-wheel-btn,
.sl-start-grid button.task-button.vp-start-wheel-btn,
.sl-start-grid button.sl-start-btn.vp-start-wheel-btn {
  width: 86% !important;
  height: 86% !important;
  max-width: 86% !important;
  max-height: 86% !important;
  background: transparent !important;
  box-shadow: none !important;
  gap: 0 !important;
  padding: 0 !important;
}

.sl-start-grid .vp-start-wheel-btn .vp-start-face {
  width: 78% !important;
  height: 78% !important;
  background: #daff45 !important;
  gap: 4px !important;
}

.sl-start-grid .vp-start-wheel-btn .vp-start-label {
  font-size: clamp(13px, 3.4vw, 18px) !important;
  color: #111 !important;
  font-weight: 900 !important;
  -webkit-text-fill-color: #111 !important;
}

.sl-start-grid .vp-start-wheel-btn .vp-start-count {
  font-size: clamp(12px, 3vw, 16px) !important;
  color: #111 !important;
  font-weight: 800 !important;
  -webkit-text-fill-color: #111 !important;
  opacity: 1 !important;
}

.sl-start-grid .vp-start-wheel-btn .vp-start-play {
  display: none !important;
}

.sl-start-grid .vp-start-wheel-btn > div {
  font-size: inherit !important;
}

/* Center cell: dark backdrop like the reference */
.sl-start-grid .sl-grid-center {
  background: #141414 !important;
  border-radius: 50% !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04) !important;
}
.sl-start-grid .sl-grid-center::before {
  display: none !important;
}

/* ===== Spin: only the arc/ring rotates (wheel), face stays readable ===== */
@keyframes vp-start-wheel {
  0%   { rotate: 0deg; }
  100% { rotate: 1080deg; }
}

@keyframes vp-start-face-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(218, 255, 69, 0.35), 0 0 18px rgba(218, 255, 69, 0.45), 0 6px 16px rgba(0, 0, 0, 0.35); }
  50% { box-shadow: 0 0 0 4px rgba(218, 255, 69, 0.25), 0 0 28px rgba(218, 255, 69, 0.7), 0 6px 16px rgba(0, 0, 0, 0.35); }
}

.vp-start-wheel-btn.vp-start-spin {
  pointer-events: none !important;
}

.vp-start-wheel-btn.vp-start-spin .vp-start-ring,
.vp-start-wheel-btn.vp-start-spin .vp-start-arc {
  animation: vp-start-wheel 2s cubic-bezier(0.12, 0.7, 0.15, 1) both;
  will-change: rotate;
  transform-origin: center center;
}

.vp-start-wheel-btn.vp-start-spin .vp-start-face {
  animation: vp-start-face-pulse 2s ease-in-out both;
}

/* Fallback if old whole-button spin class is applied without structure */
.vp-start-spin:not(.vp-start-wheel-btn) {
  animation: vp-start-wheel 2s cubic-bezier(0.12, 0.7, 0.15, 1) both !important;
}


/* Hide legacy SVG progress ring when the new wheel button is used */
.starting-page .relative:has(> button.vp-start-wheel-btn) > svg {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Explicit sizes (avoid missing Tailwind arbitrary classes) */
/* Fallback / pre-grid mobile row: keep wheel from overlapping copy */
.starting-page button.vp-start-wheel-btn {
  width: 92px !important;
  height: 92px !important;
  max-width: 92px !important;
  max-height: 92px !important;
  flex-shrink: 0 !important;
  align-self: center !important;
}
.starting-page button.vp-start-wheel-btn.absolute {
  width: 92px !important;
  height: 92px !important;
}
/* Grid center overrides the fixed fallback size (see rules above: width/height 86%) */
@media (min-width: 768px) {
  .starting-page button.vp-start-wheel-btn.absolute {
    width: 200px !important;
    height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
  }
  .starting-page .hidden.md\:block button.vp-start-wheel-btn {
    width: 200px !important;
    height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
  }
}
