/* cd140 Four pebbles (INV-18 W1, A2545): round crystals laid loosely, each engraved with a number. Phone 2 x 2, the top pair
   12 px higher on the left; tablet and laptop one row, +-10 px. Angles -3, +2, -1, +4 degrees. Starts blank (kjy-fx).
   W1.1 (A2563): four pebbles, four cuts (pb-a to pb-d), no mirrored twins. */
.cd140 { display: flex; flex-direction: column; align-items: center; gap: var(--sgl-gap-in); padding: var(--k-section-pad) 0; text-align: center; color: var(--k-on-dark); }
.cd140 .kjy-countdown__label { margin: 0 0 12px; font: 400 1.45rem/1.1 var(--k-font-script); color: var(--c-secondary); }
.cd140 .kjy-countdown__units { display: grid; grid-template-columns: repeat(2, var(--cd140-w)); gap: 14px 18px; justify-content: center; --cd140-w: min(38vw, 140px); }
.cd140 .kjy-unit { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; width: var(--cd140-w); aspect-ratio: var(--k-pa-ar); }
.cd140 .kjy-unit::after { content: ""; position: absolute; z-index: -1; pointer-events: none; left: calc(-1 * var(--k-pa-l)); top: calc(-1 * var(--k-pa-t)); width: var(--k-pa-pw); height: var(--k-pa-ph); background: var(--k-pa-pic) center / 100% 100% no-repeat; }
.cd140 .kjy-unit:nth-child(even)::after { left: calc(-1 * var(--k-pc-l)); top: calc(-1 * var(--k-pc-t)); width: var(--k-pc-pw); height: var(--k-pc-ph); background-image: var(--k-pc-pic); }
.cd140 .kjy-unit:nth-child(3)::after { left: calc(-1 * var(--k-pe-l)); top: calc(-1 * var(--k-pe-t)); width: var(--k-pe-pw); height: var(--k-pe-ph); background-image: var(--k-pe-pic); }
.cd140 .kjy-unit:nth-child(4)::after { left: calc(-1 * var(--k-pf-l)); top: calc(-1 * var(--k-pf-t)); width: var(--k-pf-pw); height: var(--k-pf-ph); background-image: var(--k-pf-pic); }
.cd140 .kjy-unit:nth-child(1) { rotate: -3deg; translate: 0 -12px; }
.cd140 .kjy-unit:nth-child(2) { rotate: 2deg; }
.cd140 .kjy-unit:nth-child(3) { rotate: -1deg; translate: 0 -12px; }
.cd140 .kjy-unit:nth-child(4) { rotate: 4deg; }
.cd140 .kjy-unit__n { font: 400 calc(var(--cd140-w) * .26)/1 var(--k-font-display); color: var(--k-gold); text-shadow: var(--sgl-text-shadow); }
.cd140 .kjy-unit__l { margin-top: 3px; font: 400 calc(var(--cd140-w) * .075)/1.2 var(--k-font-body); letter-spacing: .2em; text-transform: uppercase; }
.cd140 .kjy-countdown__done { font: 400 2rem/1.2 var(--k-font-script); color: var(--c-secondary); }
@media (min-width: 700px) {
  .cd140 .kjy-countdown__units { grid-template-columns: repeat(4, var(--cd140-w)); gap: 22px; --cd140-w: 172px; }
  .cd140 .kjy-unit:nth-child(1) { translate: 0 -6px; } .cd140 .kjy-unit:nth-child(2) { translate: 0 8px; }
  .cd140 .kjy-unit:nth-child(3) { translate: 0 -10px; } .cd140 .kjy-unit:nth-child(4) { translate: 0 4px; }
}
@media (min-width: 1100px) { .cd140 .kjy-countdown__units { --cd140-w: 196px; gap: 30px; } }
/* the pebbles wait for the tap like every lower piece (W1.1) */
html:not(.kjy-opening) .cd140 .kjy-unit::after { background-image: none; }
/* W1.3 (A2589): the objects on the table (scripts/morning_table_props.py), true size, on top, never over a word */
.cd140 { position: relative; }
.cd140 .cd140__hg { width: calc(var(--k-mm) * 64); left: -15%; top: 17%; }   /* a small one at the screen's edge, on the first pebble's rim */
@media (min-width: 700px) { .cd140 .cd140__hg { width: calc(var(--k-mm) * 74); left: 58%; top: auto; bottom: -22%; } }
@media (min-width: 1100px) { .cd140 .cd140__hg { width: calc(var(--k-mm) * 86); left: calc(50% + 470px); bottom: 14%; } }
/* W1.4 (A2597): a honey drop and a pale one under the stones, away from the hourglass and the heading */
.cd140 .cd140__d1 { right: 9%; bottom: 7%; }
.cd140 .cd140__d2 { right: 18%; bottom: 4%; }
@media (min-width: 700px) and (max-width: 1099.98px) { .cd140 .cd140__d1 { right: 4%; bottom: 3%; } .cd140 .cd140__d2 { right: 11%; bottom: 1%; } }
/* W2 (A2669): an engraved dash on each pebble until the stones come into view, then the numbers fill with gold, one after
   another, once (section.js). Only under kjy-fx and is-armed: lite, Reduce motion and no script show the numbers */
.cd140 .kjy-unit:nth-child(2) { --cd140-d: .14s; }
.cd140 .kjy-unit:nth-child(3) { --cd140-d: .28s; }
.cd140 .kjy-unit:nth-child(4) { --cd140-d: .42s; }
html.kjy-fx:not(.kjy-lite) .cd140.is-armed:not(.is-done) .kjy-unit__n { position: relative; }
html.kjy-fx:not(.kjy-lite) .cd140.is-armed:not(.is-done) .kjy-unit__n::after { content: "\2014"; position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center; color: var(--k-gold); text-shadow: var(--sgl-text-shadow); transition: opacity .45s ease-out var(--cd140-d, 0s); }
html.kjy-fx:not(.kjy-lite) .cd140.is-armed:not(.is-in) .kjy-unit__n { color: transparent; text-shadow: none; }
html.kjy-fx:not(.kjy-lite) .cd140.is-armed.is-in:not(.is-done) .kjy-unit__n { transition: color 1s ease-out var(--cd140-d, 0s), text-shadow 1s ease-out var(--cd140-d, 0s); }
html.kjy-fx:not(.kjy-lite) .cd140.is-armed.is-in .kjy-unit__n::after { opacity: 0; }
