:root {
  color-scheme: dark;
  --background: #000;
  --text: #fff;
}

* { box-sizing: border-box; }

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--background);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.screen {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4.5vh, 62px);
  padding: clamp(20px, 4vw, 72px);
  text-align: center;
}

.analog-clock {
  position: relative;
  width: 58vmin;
  height: 58vmin;
  min-width: 300px;
  min-height: 300px;
  max-width: 680px;
  max-height: 680px;
  flex: 0 0 auto;
  border: clamp(5px, 0.9vmin, 10px) solid #f7f7f7;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 36%, #171717 0, #080808 48%, #000 74%);
  box-shadow:
    0 clamp(16px, 3vmin, 34px) clamp(24px, 5vmin, 60px) rgb(0 0 0 / 85%),
    0 clamp(5px, 0.8vmin, 10px) clamp(8px, 1.5vmin, 18px) rgb(255 255 255 / 18%),
    inset 0 clamp(7px, 1.1vmin, 13px) clamp(10px, 1.8vmin, 22px) rgb(255 255 255 / 22%),
    inset 0 clamp(-12px, -1.6vmin, -7px) clamp(12px, 2.2vmin, 28px) rgb(0 0 0 / 95%);
}

.analog-clock::before {
  content: "";
  position: absolute;
  inset: clamp(8px, 1.4vmin, 16px);
  z-index: 1;
  border: clamp(2px, 0.32vmin, 4px) solid rgb(255 255 255 / 20%);
  border-radius: 50%;
  box-shadow:
    inset 0 clamp(5px, 0.8vmin, 10px) clamp(8px, 1.4vmin, 16px) rgb(0 0 0 / 90%),
    0 1px 0 rgb(255 255 255 / 28%);
  pointer-events: none;
}

.numbers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.numbers { z-index: 2; }

.number {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(44px, 7.2vmin, 84px);
  height: clamp(38px, 6.2vmin, 74px);
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: clamp(1.8rem, 4.2vmin, 3.8rem);
  font-weight: 750;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transform: translate(-50%, -50%);
  text-shadow:
    0 clamp(2px, 0.35vmin, 4px) clamp(2px, 0.5vmin, 6px) #000,
    0 -1px 0 rgb(255 255 255 / 35%);
}

.hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  z-index: 4;
  transform-origin: 50% 100%;
  transform: translateX(-50%) rotate(0deg);
  border-radius: 999px;
  background: var(--text);
  box-shadow:
    clamp(3px, 0.55vmin, 7px) clamp(4px, 0.7vmin, 9px) clamp(4px, 0.8vmin, 10px) rgb(0 0 0 / 85%),
    inset 1px 0 0 rgb(255 255 255 / 55%),
    inset -1px 0 0 rgb(0 0 0 / 42%);
}

.hour {
  width: clamp(9px, 1.25vmin, 16px);
  height: 25%;
}

.minute {
  width: clamp(6px, 0.9vmin, 11px);
  height: 36%;
}

.second {
  width: clamp(3px, 0.45vmin, 6px);
  height: 40%;
}

.pin {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: clamp(18px, 2.8vmin, 34px);
  height: clamp(18px, 2.8vmin, 34px);
  border-radius: 50%;
  background: var(--text);
  transform: translate(-50%, -50%);
  box-shadow:
    clamp(3px, 0.5vmin, 6px) clamp(4px, 0.7vmin, 8px) clamp(5px, 0.9vmin, 11px) rgb(0 0 0 / 90%),
    inset 0 clamp(2px, 0.3vmin, 4px) clamp(3px, 0.5vmin, 6px) rgb(255 255 255 / 45%),
    inset 0 clamp(-4px, -0.5vmin, -2px) clamp(3px, 0.5vmin, 6px) rgb(0 0 0 / 48%);
}

.date {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5.8vw, 7rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
