:root {
  --bg: #FFFBFD;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
}

body {
  font-family: sans-serif;
}

.clock-stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--bg);
}

.clock {
  position: relative;
  width: min(82.8vw, calc(82.8svh * 684 / 637));
  aspect-ratio: 684 / 637;
}

.clock-frame {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.clock-hand {
  position: absolute;
  left: 50.1%;
  top: 54.2%;
  height: auto;
  user-select: none;
  pointer-events: none;
  transform-origin: center center;
}

.clock-hour-hand {
  width: 47%;
  transform-origin: 49.8047% 61.3281%;
  transform: translate(-49.8047%, -61.3281%) rotate(var(--hour-rotation, 0deg));
}

.clock-minute-hand {
  width: 52%;
  transform-origin: 49.7778% 61.5111%;
  transform: translate(-49.7778%, -61.5111%) rotate(var(--minute-rotation, 0deg));
}

.audio-gate {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: clamp(12px, 2.4vw, 18px);
  line-height: 1;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  cursor: pointer;
}

.audio-gate.is-hidden {
  display: none;
}
