/* Copied verbatim from version/1.0: circular orbits, particles and duration ring. */
.orbit {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
}

.orbit--wide {
  top: -47px;
  left: 47px;
  width: 336px;
  height: 336px;
  border: 1px solid rgba(238, 171, 147, 0.17);
  box-shadow: 0 0 18px rgba(100, 91, 175, 0.05);
}

.orbit--wide::before,
.orbit--inner::before {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(126, 114, 201, 0.13);
  border-radius: 50%;
  content: "";
}

.orbit--wide::after {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 13%, rgba(238, 171, 147, 0.28) 16%, transparent 20% 53%, rgba(126, 114, 201, 0.2) 58%, transparent 66%);
  content: "";
  opacity: 0.45;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
}

.orbit--inner {
  top: -17px;
  left: 77px;
  width: 276px;
  height: 276px;
  border: 1px solid rgba(100, 91, 175, 0.16);
}

.orbit-particles {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.particle-layer {
  position: absolute;
  top: -47px;
  left: 47px;
  width: 336px;
  height: 336px;
  transform-origin: 50% 50%;
  animation: orbitSpin 32s linear infinite;
}

.particle-layer--reverse {
  top: -17px;
  left: 77px;
  width: 276px;
  height: 276px;
  animation-duration: 41s;
  animation-direction: reverse;
}

.orbit-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--peach);
  box-shadow: 0 0 7px rgba(238, 171, 147, 0.55);
  animation: particlePulse var(--pulse, 3.4s) ease-in-out infinite var(--delay, 0s);
}

.dial__arc-gradient {
  position: absolute;
  z-index: 5;
  inset: 8px;
  border-radius: 50%;
  pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(238, 171, 147, 0.48)) drop-shadow(0 0 10px rgba(238, 171, 147, 0.14));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4.2px), #000 calc(100% - 3.35px), #000 calc(100% - 0.35px), transparent 100%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 4.2px), #000 calc(100% - 3.35px), #000 calc(100% - 0.35px), transparent 100%);
}

.dial__arc-gradient::before {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(245, 200, 174, 0.34);
  box-shadow: 0 0 6px rgba(245, 200, 174, 0.18);
  content: "";
  transform: translateX(-50%);
}

.dial__marker {
  position: absolute;
  z-index: 20;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 26px;
  border: 2px solid #fff5d7;
  border-radius: 50%;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #ffe090 35%, #d18a28 75%, #6e400c 100%);
  box-shadow: 0 0 10px rgba(255, 215, 110, 0.85), 0 0 20px rgba(235, 160, 40, 0.4), 0 3px 6px rgba(0, 0, 0, 0.7);
  transform: translate(-50%, -50%) rotate(-90deg) translateX(88px);
  transition: box-shadow 160ms ease, opacity 180ms ease;
  animation: markerBreathe 3.2s ease-in-out infinite;
}

.dial__marker::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
}

.dial__marker i {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fffdf5;
  box-shadow: 0 0 4px #ffe699;
}

@keyframes markerBreathe {
  0%, 100% {
    box-shadow: 0 0 8px rgba(255, 215, 100, 0.75), 0 0 18px rgba(235, 160, 40, 0.35);
  }
  50% {
    box-shadow: 0 0 14px rgba(255, 235, 140, 0.95), 0 0 26px rgba(245, 180, 50, 0.55);
  }
}

.dial.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.dial.is-dragging .dial__marker {
  cursor: grabbing;
  animation: none;
  box-shadow: 0 0 18px rgba(255, 235, 140, 1), 0 0 30px rgba(245, 180, 50, 0.7), 0 4px 10px rgba(0, 0, 0, 0.8);
  transition: none !important;
}

.dial:not([data-meditation-state="idle"]) .dial__marker {
  opacity: 0;
  pointer-events: none;
}

@keyframes particlePulse {
  0%, 100% { opacity: 0.24; transform: scale(0.72); }
  45% { opacity: 0.9; transform: scale(1.25); }
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}
