/* Critical splash styles — brand tokens match Clock-Kit */
html {
  background: #e2ddd8;
}

.ck-splash-skip .ck-splash {
  display: none !important;
}

.ck-splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(245, 191, 72, 0.18), transparent 55%),
    radial-gradient(800px 480px at 108% 8%, rgba(33, 57, 106, 0.12), transparent 52%),
    #e2ddd8;
  color: #222832;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

.ck-splash-inner {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  text-align: center;
  animation: ck-splash-enter 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ck-splash .splash-clock {
  width: min(220px, 58vw);
  margin: 0;
}

.ck-splash .clock-face {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 10px solid #21396a;
  position: relative;
  background: radial-gradient(circle at 50% 50%, #ffffff 62%, #f4f0eb 100%);
  box-shadow:
    10px 10px 24px rgba(59, 66, 79, 0.16),
    -10px -10px 24px rgba(255, 255, 255, 0.96);
}

.ck-splash .clock-face::after {
  content: "";
  position: absolute;
  inset: -10px 50% auto auto;
  width: 50%;
  height: calc(100% + 20px);
  border-radius: 999px 0 0 999px;
  border: 10px solid #ba133a;
  border-right: 0;
  transform: translateX(0.5px);
  pointer-events: none;
}

.ck-splash .clock-mark {
  position: absolute;
  inset: 7%;
  transform: rotate(var(--deg));
}

.ck-splash .clock-mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 9px;
  border-radius: 2px;
  background: #21396a;
  transform: translateX(-50%);
}

.ck-splash .hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform-origin: bottom center;
  background: #3b424f;
  border-radius: 4px;
  will-change: transform;
  z-index: 2;
}

.ck-splash .hand-hour { width: 6px; height: 26%; }
.ck-splash .hand-minute { width: 4px; height: 36%; }
.ck-splash .hand-second {
  width: 2px;
  height: 40%;
  background: #ba133a;
}

.ck-splash .clock-center {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #21396a;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.ck-splash .clock-figure {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.ck-splash-wordmark {
  margin: 0.2rem 0 0;
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.ck-splash-wordmark .ck-navy { color: #21396a; }
.ck-splash-wordmark .ck-red { color: #ba133a; }

.ck-splash-tag {
  margin: 0;
  max-width: 18rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #222832;
}

.ck-splash.is-live .clock-face {
  animation: ck-splash-glow 2.4s ease-in-out infinite;
}

.ck-splash.is-leaving {
  animation: ck-splash-leave 420ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: none;
}

@keyframes ck-splash-enter {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ck-splash-leave {
  to { opacity: 0; visibility: hidden; }
}

@keyframes ck-splash-glow {
  0%, 100% { box-shadow: 10px 10px 24px rgba(59, 66, 79, 0.16), -10px -10px 24px rgba(255, 255, 255, 0.96), 0 0 0 0 rgba(33, 57, 106, 0.18); }
  50% { box-shadow: 10px 10px 24px rgba(59, 66, 79, 0.16), -10px -10px 24px rgba(255, 255, 255, 0.96), 0 0 0 16px rgba(33, 57, 106, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .ck-splash-inner,
  .ck-splash.is-live .clock-face,
  .ck-splash.is-leaving {
    animation: none !important;
  }
  .ck-splash.is-leaving { opacity: 0; visibility: hidden; }
}
