#clock {
  display: block;
  width: 100vw;
  height: 100vh;
  image-rendering: auto;
  will-change: transform;
}

.clock-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.clock-grid-container canvas {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1;
  max-width: 400px;
  margin: 0 auto;
}

#app-title {
  position: fixed;
  top: 10px;
  left: 10px;
  transform: none;
  padding: 0;
  border: none;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  z-index: 25;
  animation: appTitleFade 7s ease-out 0.5s forwards;
}

#app-title img {
  display: block;
  max-width: min(70vw, 360px);
  height: auto;
}

@keyframes appTitleFade {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  20% {
    opacity: 1;
    transform: translateY(0);
  }
  70% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

#face-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}