* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  height: 100vh;
  display: grid;
  place-items: center;
  background-image: radial-gradient(circle, #0b4, #021);
}

.clock {
  width: 500px;
  height: 500px;
  position: relative;
  background-color: lightgray;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: radial-gradient(circle, #05263c, #000d1a);
}

.clock::before {
  content: "";
  width: 525px;
  height: 525px;
  position: absolute;
  border-radius: 50%;
  background-image: linear-gradient(to right, #00d9ff, #ee00ff);
  box-shadow: 0 0 15px 15px rgba(0, 0, 0, 0.2);
  z-index: -1;
}

.number {
  position: absolute;
  text-align: center;
  color: #00d9ff;
  inset: 20px;
  font-size: 40px;
  text-shadow: 0 0 12px #ee00ff;
  transform: rotate(calc(30deg * var(--n)));
}

.center-dot {
  position: absolute;
  width: 25px;
  height: 25px;
  background-color: #ee00ff;
  border: 5px solid #00d9ff;
  border-radius: 50%;
}

.hour-hand,
.minute-hand,
.second-hand {
  --rotate: 0;
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform: translate(-50%) rotate(calc(var(--rotate) * 1deg));
  transform-origin: bottom;
  border-radius: 30px 30px 0 0;
}

.hour-hand {
  width: 12px;
  height: 130px;
  background: white;
  background-image: linear-gradient(#00d9ff, #ee00ff);
}

.minute-hand {
  width: 12px;
  height: 190px;
  background: blue;
  background-image: linear-gradient(to top, #00d9ff, #ee00ff);
}

.second-hand {
  width: 6px;
  height: 210px;
  background-color: red;
  background-image: linear-gradient(to top, #00d9ff, #ee00ff);
}
