/* Under the stars (core/countdown/290, fork of core/countdown/180), INV-29 Midnight Serenade · Luxe (A3046, W1.1 A3053; plan row 5 and W1.1 item 5):
   the Milky Way (the skin's night sky) behind the section, faded in at the top and out at the bottom; "The countdown" over "Until we say I do"; each of
   the four numbers in its own small tile of smoked glass (the .k-ms-glass look at radius 14 px, 1 : 1.15), the sky blurred through the tile, the label
   under the number inside it; the tiles carry the legibility (W1's hairline separators and dark wash are gone). The numbers are gilt Bodoni; the text
   shadow is on the labels only, never on the gilt numbers (iPhone).
   The engine writes every number; the fork's section.js is kept, but stage 1 draws none of its motion (the countdown starting blank is stage 2). */
.cd290 { padding-bottom: 0; color: var(--k-ms-ivory); }
.cd290__room { position: relative; isolation: isolate; overflow: hidden; padding-block: 100px 116px; }
.cd290__sky {
  position: absolute; inset: 0; z-index: -1; background: 50% 62% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 76%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 76%, transparent 100%);
}
/* A3069 (A7, as INV-25's dc230): the same art with no script too (html:not(.js): the engine marks html.js when it runs) */
html.kjy-opened .cd290__sky, html:not(.js) .cd290__sky { background-image: var(--k-ms-sky); } /* after the tap: the sky is far below the cover (A2500) */
.cd290 .kjy-countdown__label { display: none; }
.cd290 .kjy-countdown [hidden] { display: none; }
.cd290 .kjy-countdown__units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 560px; margin: 0 auto; }
/* a number's tile: the skin's .k-ms-glass recipe (the engine's partial carries no skin class, so the look is copied here) */
.cd290 .kjy-unit {
  position: relative; display: grid; align-content: center; justify-items: center; gap: 8px; min-width: 0; aspect-ratio: 1 / 1.15; padding: 6px 3px;
  border-radius: 14px;
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 46%),
    linear-gradient(112deg, rgba(255, 255, 255, 0) 28%, var(--k-ms-sheen) 38%, rgba(240, 240, 245, .03) 47%, rgba(255, 255, 255, 0) 54%),
    linear-gradient(112deg, rgba(255, 255, 255, 0) 60%, rgba(240, 240, 245, .05) 64%, rgba(255, 255, 255, 0) 69%),
    linear-gradient(180deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .02) 22%, rgba(255, 255, 255, 0) 40%),
    linear-gradient(180deg, var(--k-ms-panel-a), var(--k-ms-panel-b));
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--k-ms-glass-hi), inset 0 3px 8px -2px rgba(255, 255, 255, .07), inset 0 -1px 0 rgba(200, 200, 208, .15),
    inset 0 -14px 24px -14px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .04), 0 24px 44px -26px rgba(0, 0, 0, .95);
}
.cd290 .kjy-unit::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(170deg, var(--k-ms-edge), var(--k-ms-edge-lo) 36%, rgba(236, 236, 240, .06) 68%, rgba(236, 236, 240, .26));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.cd290 .kjy-unit__n {
  font: 400 clamp(28px, 8vw, 60px)/1 var(--k-font-num); font-variant-numeric: lining-nums tabular-nums;
  background: var(--k-ms-gilt); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.cd290 .kjy-unit__l { padding-left: .3em; font: 400 10px/1 var(--k-font-caps); letter-spacing: .3em; text-transform: uppercase; color: var(--k-ms-mist); text-shadow: 0 1px 8px rgba(7, 7, 7, .95), 0 0 3px rgba(7, 7, 7, .9); }
.cd290 .kjy-countdown__done { font: 300 clamp(28px, 7.4vw, 44px)/1.2 var(--k-font-display); color: var(--k-ms-champ-1); text-wrap: balance; }
@media (max-width: 400px) { .cd290 .kjy-unit__l { letter-spacing: .2em; padding-left: .2em; } }
@media (min-width: 760px) { .cd290 .kjy-countdown__units { gap: 18px; } }
@media (min-width: 1100px) and (min-aspect-ratio: 1 / 1) {
  .cd290 .kjy-countdown__units { max-width: 720px; }
}

/* W2.2 (A3066), the countdown starts blank (D-187): the fork's script arms it; a short champagne dash sits in each tile until the numbers come into
   view; the numbers wait about 0.9 s (the tiles rise first, so the guest sees the dashes), then fade in one after another, 140 ms apart, once.
   Only under kjy-fx and is-armed: lite, Reduce motion and no script show the numbers. The gilt number is a clipped background, so it fades by
   opacity, and the dash is the tile's own ::after over the number's place. A return visit gets is-in and is-done at once: no fade. */
.cd290 .kjy-unit { --cd290-d: .9s; }
.cd290 .kjy-unit:nth-child(2) { --cd290-d: 1.04s; }
.cd290 .kjy-unit:nth-child(3) { --cd290-d: 1.18s; }
.cd290 .kjy-unit:nth-child(4) { --cd290-d: 1.32s; }
html.kjy-fx:not(.kjy-lite) .cd290.is-armed .kjy-unit::after {
  content: ""; position: absolute; left: 50%; top: calc(50% - 11px); width: 18px; height: 1px; translate: -50% 0; pointer-events: none;
  background: var(--k-ms-champ-2); opacity: .85;
}
html.kjy-fx:not(.kjy-lite) .cd290.is-armed:not(.is-in) .kjy-unit__n { opacity: 0; }
html.kjy-fx:not(.kjy-lite) .cd290.is-armed.is-in .kjy-unit__n { transition: opacity 1s ease-out var(--cd290-d); }
html.kjy-fx:not(.kjy-lite) .cd290.is-armed.is-in .kjy-unit::after { opacity: 0; transition: opacity .5s ease var(--cd290-d); }
html.kjy-fx:not(.kjy-lite) .cd290.is-armed.is-in.is-done .kjy-unit::after { content: none; }
