* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: grid;
  height: 100vh;
  place-items: center;
  background: radial-gradient(circle at top left, #0f2027, #203a43, #2c5364);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Wrapper */
.wrapper {
  display: flex;
  height: 300px;
  align-items: center;
  position: relative;
}

/* Glass effect panel */
.glass {
  z-index: 2;
  height: 100%;
  width: 95px;
  margin-right: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 40px;
  backdrop-filter: blur(15px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

/* Light reflection on glass */
.glass::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0) 70%
  );
  transform: rotate(25deg);
}

/* Selector container */
.selector {
  display: flex;
  flex-direction: column;
}

/* Choice */
.choice {
  margin: 20px 0;
  display: flex;
  align-items: center;
  position: relative;
  transition: transform 0.3s ease;
}

.choice:hover {
  transform: translateX(10px) scale(1.02);
}

/* Label text */
.choice::after {
  content: attr(data-number);
  margin-left: 25px;
  font-size: 22px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
  transition: 0.3s ease;
}

.choice:hover::after {
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

/* Radio container */
.choice > div {
  position: relative;
  width: 55px;
  height: 55px;
  margin-right: 20px;
  z-index: 0;
}

/* Circle base */
.circle {
  appearance: none;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  border: 8px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  transition: all 0.4s ease;
}

.circle:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Ball indicator */
.ball {
  z-index: 1;
  position: absolute;
  inset: 0;
  transform: translateX(-110px);
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4);
  background-size: 200% 200%;
  animation: gradientMove 5s ease infinite;
  transition: transform 0.7s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* Animated gradient */
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Colors for each option */
#one:checked + .ball {
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  background-size: 200% 200%;
  animation: gradientMove 5s ease infinite;
  box-shadow: 0 0 25px rgba(255, 65, 108, 0.7);
}

#two:checked + .ball {
  background: linear-gradient(135deg, #36d1dc, #5b86e5);
  background-size: 200% 200%;
  animation: gradientMove 5s ease infinite;
  box-shadow: 0 0 25px rgba(91, 134, 229, 0.7);
}

#three:checked + .ball {
  background: linear-gradient(135deg, #11998e, #38ef7d);
  background-size: 200% 200%;
  animation: gradientMove 5s ease infinite;
  box-shadow: 0 0 25px rgba(56, 239, 125, 0.7);
}

/* Checked state */
.circle:checked + .ball {
  transform: translateX(0);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Title */
.title {
  position: absolute;
  top: -85px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: 1px;
}
