* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: radial-gradient(circle, #0b456b, #021c34);
}

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

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

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

.center {
  position: absolute;
  width: 24px;
  height: 24px;
  background: radial-gradient(circle, #ee00ff 0%, #00d9ff 90%);
  border-radius: 50%;
}

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

.hour-hand {
  width: 16px;
  height: 128px;
  background: linear-gradient(to top, #00d9ff, #ee00ff);
}

.minute-hand {
  width: 8px;
  height: 192px;
  background: linear-gradient(to top, #00d9ff, #ee00ff);
}

.second-hand {
  width: 4px;
  height: 256px;
  background: linear-gradient(to top, #00d9ff, #ee00ff);
}
