﻿:root {
  --bg: #fffff4;
}

* {
  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(90vw, 90svh);
  aspect-ratio: 1 / 1;
}

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

.time-display {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2%;
  transform: translateY(var(--time-offset-y, 0px)) scale(var(--time-scale, 1));
  transform-origin: center center;
}

.glyph-img {
  width: 10.2%;
  height: auto;
  object-fit: contain;
  display: block;
}

.glyph-colon {
  animation: colon-blink 1s step-end infinite;
}

@keyframes colon-blink {
  0%,
  49.999% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

.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;
}
