#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: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: none;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  z-index: 25;
}

#app-title.logo-intro {
  animation: appTitleFade 7s ease-out 0.5s forwards;
}

#app-title img {
  display: block;
  width: 15vw;
  height: auto;
}

#app-tagline {
  font-family: "UnifrakturMaguntia", serif;
  color: #d4af37;
  font-size: 2.4vw;
  letter-spacing: 0.06em;
  white-space: nowrap;
  opacity: 0;
  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.9),
    0 0 12px rgba(212, 175, 55, 0.6);
}

#app-title.logo-intro #app-tagline {
  animation: taglineFade 6s ease-out 1.5s forwards;
}

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

@keyframes taglineFade {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  13% {
    opacity: 1;
    transform: translateY(0);
  }
  70% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(6px);
  }
}

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

#face-name-toast {
  position: fixed;
  top: 16px;
  left: 75px;
  z-index: 30;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 25px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 3.3vw;
  color: #d4af37;
  letter-spacing: 0.05em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.9),
    0 0 12px rgba(212, 175, 55, 0.6);
}

#face-name-toast-logo {
  display: none;
  height: calc(3.3vw * 1.2);
  width: auto;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.55);
}

#face-name-toast.show {
  animation: faceNameToastAnim 3.5s ease-out forwards;
}

@keyframes faceNameToastAnim {
  0% {
    opacity: 0;
    transform: translateX(-24px);
  }
  28% {
    opacity: 1;
    transform: translateX(0);
  }
  70% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-24px);
  }
}