.nv-clock {
  --card-height: clamp(42px, 7vw, 72px);
  --card-width: clamp(24px, 4.1vw, 44px);
  color: #f4e7ce;
  text-align: center;
  margin: clamp(42px, 6svh, 72px) auto 1.5rem;
  width: fit-content;
  max-width: 100%;
}
.nv-clock[hidden], .nv-clock .nv-clock-end { display: none }
.beta-date time { font: 400 clamp(18px, 3vw, 30px)/1.5 Trajan, Georgia, serif; color: #e7d7b9 }
.nv-clock.has-ended .nv-clock-end { display: block }
.nv-clock.has-ended .nv-clock-running { display: none }
.nv-clock .nv-clock-end {
  margin: 0 auto 12px;
  font: 500 clamp(12px, 2vw, 15px)/1.5 Manrope, sans-serif;
  color: #e7d7b9;
}
.nv-clock .nv-clock-caption {
  margin: 0 0 clamp(14px, 1.6vw, 22px);
  text-wrap: balance;
  color: #faf0dc;
  font-family: Trajan, Georgia, serif;
  line-height: 1.35;
  text-shadow: 0 2px 5px #071019cc;
}
.nv-clock-row, .nv-clock-digits { display: flex; justify-content: center }
.nv-clock-row { gap: clamp(7px, 2vw, 19px) }
.nv-clock-digits { gap: 2px }
.nv-clock-unit small {
  display: block; margin-top: 7px;
  color: #d7dfe1; font: 500 11px/1.4 Manrope, sans-serif;
  text-shadow: 0 1px 3px #081016;
}
.nv-clock-card {
  display: block; position: relative; width: var(--card-width); height: var(--card-height);
  perspective: 380px; font: 400 calc(var(--card-height) * .67)/1 Trajan, Georgia, serif;
  font-variant-numeric: tabular-nums; border-radius: 5px;
  background: linear-gradient(125deg, #e6f5ff1c, transparent 44%), #10202b80;
  box-shadow: inset 0 0 0 1px #e4eeef47, inset 0 1px 0 #ffffff52, 0 4px 12px #02050855;
}
@supports ((backdrop-filter: blur(3px)) or (-webkit-backdrop-filter: blur(3px))) {
  .nv-clock-card {
    background-color: #0d1e2a42;
    -webkit-backdrop-filter: blur(3px) saturate(115%);
    backdrop-filter: blur(3px) saturate(115%);
  }
}
.nv-clock-pane {
  position: absolute; left: 0; right: 0; height: 50%; overflow: hidden;
  backface-visibility: hidden; box-sizing: border-box;
  text-shadow: 0 1px 3px #0007;
}
.nv-clock-pane.upper {
  top: 0; transform-origin: bottom; border-radius: 4px 4px 0 0;
  background: linear-gradient(160deg, #e9f8ff18, #badcf506 60%);
}
.nv-clock-pane.lower {
  bottom: 0; transform-origin: top; border-radius: 0 0 4px 4px;
  background: linear-gradient(165deg, #22333b08, #02090e24);
}
.nv-clock-pane > span {
  position: absolute; left: 0; right: 0; height: var(--card-height);
  display: grid; place-items: center;
}
.nv-clock-pane.upper > span { top: 0 }
.nv-clock-pane.lower > span { bottom: 0 }
.nv-clock-card::after {
  content: ''; position: absolute; z-index: 4; left: 0; right: 0; top: 50%;
  height: 1px; background: #040a0dbb;
}
.nv-clock .turn-out { animation: nv-turn-out .23s ease-in both }
.nv-clock .turn-in { animation: nv-turn-in .27s .23s ease-out both }
/* The card supplies one continuous glass surface beneath every moving glyph. */
.nv-clock-pane.leaf { background: transparent }
@media (prefers-reduced-motion: no-preference) {
  .nv-clock-card:has(> .turn-in) > .lower:not(.leaf) > span { visibility: hidden }
  .nv-clock-card:has(> .turn-in) > .upper:not(.leaf) > span {
    animation: nv-show-upper .23s step-end both;
  }
  .nv-clock .hold { animation: nv-hide-lower .23s step-end both }
}
@keyframes nv-show-upper { from { opacity: 0 } to { opacity: 1 } }
@keyframes nv-hide-lower { from { opacity: 1 } to { opacity: 0 } }
@keyframes nv-turn-out { to { transform: rotateX(-90deg); filter: brightness(.55) } }
@keyframes nv-turn-in { from { transform: rotateX(90deg); filter: brightness(.55) } }
.nv-clock-readout {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
}
@media (prefers-reduced-motion: reduce) { .nv-clock .leaf { display: none } }

@media (max-width: 800px) {
  .nv-clock .nv-clock-caption { font-size: clamp(27px, 5.6vw, 39px) }
}
@media (max-width: 560px) {
  .nv-clock .nv-clock-caption { font-size: 28px }
}
@media (max-width: 360px) {
  .nv-clock .nv-clock-caption { font-size: 25px }
}
