*, *::after, *::before{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Cochin, Georgia, serif;
}

body{
  background:linear-gradient(to right, hsl(249, 40%, 84%), hsl(250, 50%, 63%)) ;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

.clock{
    width: 300px;
    height: 300px;
    background-color: rgba(121, 39, 138, 0.7);
    border-radius: 50%;
    border: 2px solid goldenrod;
    position: relative;
}

.clock .number{
    --rotation: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 1.5rem;
    transform: rotate(var(--rotation));
}

.clock .num1{--rotation:30deg;}
.clock .num2{--rotation:60deg;}
.clock .num3{--rotation:90deg;}
.clock .num4{--rotation:120deg;}
.clock .num5{--rotation:150deg;}
.clock .num6{--rotation:180deg;}
.clock .num7{--rotation:210deg;}
.clock .num8{--rotation:240deg;}
.clock .num9{--rotation:270deg;}
.clock .num10{--rotation:300deg;}
.clock .num11{--rotation:330deg;}

.clock .hand{
    --rotation: 0;
    position: absolute;
    bottom: 50%;
    left: 50%;
    border: 1px solid;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    transform-origin: bottom;
    z-index: 10;
    transform: translateX(-50%) rotate(calc(var(--rotation) * 1deg));
}

.clock::after{
    content: '';
    position: absolute;
    background-color: gold;
    border: 1px solid;
    z-index: 11;
    width: 15px;
    height: 15px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.clock .hand.seconds{
    width: 4px;
    height: 45%;
    background-color: red;
}

.clock .hand.minute{
    width: 7px;
    height: 40%;
    background-color:gold;
}

.clock .hand.hour{
    width: 10px;
    height: 35%;
    background-color: gold;
}