/* Wrapper */
.switch {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hide checkbox */
.switch input {
  display: none;
}

/* Button background (glass circle) */
.slider {
  position: absolute;
  inset: 0; /* заменяет top/left/right/bottom: 0 */
  cursor: pointer;
  border-radius: 50%;
  background: rgba(140, 140, 140, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(5px);
  transition: background 0.25s ease;
  display: flex;
  justify-content: center;
  align-items: center; /* <-- идеальный центр содержимого */
}

/* Torch icon (фонарик) */
.torch {
  width: 28px;
  height: 28px;
  transform: rotate(-40deg);
  transition: transform 0.25s ease;
  opacity: 0.95;
  pointer-events: none;
}

/* Dark mode ON */
.chk_85:checked + .slider {
  background: #FFA133;
}

.chk_85:checked + .slider .torch {
  transform: rotate(10deg);
}

/* Hover */
.slider:hover {
  background: rgba(170,170,170,0.3);
}
