/* Wine numerals · Luxe (core/countdown/011) — INV-12 Burgundy Blossom v2 · Luxe W2 (A1722; plan docs/plans/plan_inv12_v2_luxe_w2.md
   D3), a fork of core/countdown/009 (v2 Premium). The engine's countdown on the Luxe skin, entering like a watch: once, the
   labels rise from behind their own lines and each number rolls through its last two values into place; later a number the
   engine changes turns over (section.js lays clones in a window; it never writes a number). The rules between the units are
   foil that catches the light, the labels are letterpressed and the sprig drifts a little with the scroll. Lite, reduced
   motion and no JS: the plain ticking numbers. */
.cd150 { color: var(--k-ink); text-align: center; }
.cd150 .cd150__in { position: relative; padding: calc(var(--k-cw) * .14 + var(--k-join-room)) calc(var(--k-cw) * .08) calc(var(--k-cw) * .08); } /* W1.2: bottom .14 -> .08 (the venue's join ornament) */
/* W1.2 (A1660, plan docs/plans/plan_inv12_v2_w1_2.md D1): the skin's join ornament (.k-join) opens the section. The top
   padding takes the join's room, and the ornament's top puts it in the middle of the join: (this top - the section above's
   bottom) / 2, so the space above and below it match, and it stays inside this section (whose top is clipped). */
.cd150 > .k-join { top: calc((var(--k-cw) * .06 + var(--k-join-room)) / 2); }
.cd150 .cd150__sprig { width: 16cqw; left: -4cqw; top: 10%; rotate: -24deg; } /* W2a (A1676, clearance): 6 -> 10 %, the larger join room moved the label to the sprig (sara 360x640 4.5 px); W1.2: top 8 -> 6 %: the join's room moved the label
   down into the spray (sara at 360x640, 7.4 px; clearance.mjs) */
.cd150 .kjy-countdown__label { margin: 0 0 clamp(12px, 4cqw, 22px); text-wrap: balance; font: 400 clamp(9px, 2.6cqw, 12px)/1.5 var(--k-font-caps);
  letter-spacing: .16em; text-transform: uppercase; color: var(--k-wine-soft); }
.cd150 .kjy-countdown__units { display: flex; justify-content: center; }
.cd150 .kjy-unit { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 clamp(10px, 4cqw, 22px); }
.cd150 .kjy-unit:has([data-unit="s"]) { display: none; }
.cd150 .kjy-unit__n { font: 600 clamp(36px, 12cqw, 60px)/1 var(--k-font-display); font-variant-numeric: lining-nums tabular-nums; color: var(--k-wine); }
.cd150 .kjy-unit__l { margin-top: clamp(6px, 1.8cqw, 10px); font: 400 clamp(8.5px, 2.4cqw, 11px)/1 var(--k-font-caps); letter-spacing: .18em;
  text-transform: uppercase; color: var(--k-ink); }
.cd150 .kjy-countdown__done { margin: 0; font: 400 clamp(26px, 8cqw, 40px)/1.2 var(--k-font-script); color: var(--k-wine); }

/* W1.1 (A1632): the near-full-width desktop card (the skin's query): the padding follows the skin's rhythm, not the card's
   width, and the sprig is capped so the shorter band never cuts it (16cqw would be 210 px on a 1310 px card) */
/* W2a (A1676): portrait tablets take this wide block too (plan_inv12_v2_w2.md A3) */
@media (min-aspect-ratio: 1/1) and (min-width: 1000px), (max-aspect-ratio: 999/1000) and (min-width: 700px) {
  .cd150 > .k-join { top: calc((var(--k-dpad-t) + var(--k-join-room) - var(--k-dpad-b)) / 2); }
  .cd150 .cd150__in { padding: calc(var(--k-dpad-t) + var(--k-join-room)) calc(var(--k-cw) * .06) var(--k-dpad-b); }
  .cd150 .cd150__sprig { width: min(16cqw, 92px); } /* eye r2: the band is shorter again (90 + 45 px padding), so the sprig's foot stays inside it */
}

/* ---------- Luxe (W2, A1722) ---------- */
/* L22: foil rules between the units (the frozen partial has no element for them, so a unit's ::before; never the root's) */
.cd150 .kjy-unit + .kjy-unit::before { content: ""; position: absolute; left: 0; top: 4%; bottom: 4%; width: 1.25px; pointer-events: none;
  background: var(--k-glint-v) 0 130% / 100% 320% no-repeat, var(--k-foil-v); }
/* L02: the labels are letterpressed */
.cd150 :is(.kjy-countdown__label, .kjy-unit__l) { text-shadow: var(--k-press); }
/* L20 + L21: the roll window round each number (section.js adds it; the engine keeps its reference to the number). Flex keeps
   the number a blockified item, so the box is exactly the bare number's (no strut: no layout change against the still). The
   clip is on only while a number rolls, so resting glyphs are never cut; the clones are aria-hidden copies laid over it */
.cd150 { --cd150-t: 220ms; --cd150-e: cubic-bezier(.45, 0, .25, 1); } /* W3 (A1732): a true wheel: a settle step lasts exactly STEP, in and out on one easing */
.cd150.is-done { --cd150-t: 480ms; --cd150-e: var(--k-ease, cubic-bezier(.22, 1, .36, 1)); } /* a later turn: slower */
.cd150 .cd150-roll { position: relative; display: flex; justify-content: center; line-height: 1; }
.cd150 .cd150-roll.is-clip { clip-path: inset(0 -.6em); }
.cd150 .cd150-roll.is-wait > [data-unit] { color: transparent; } /* the real number keeps its box until its step */
.cd150 .cd150-was { position: absolute; inset: 0; text-align: center; white-space: nowrap; pointer-events: none; } /* 99 -> "101" may be wider */
/* a wheel: the old number leaves the window as the new one enters, 1em apart, never overlapping (W3, parked #3) */
.cd150 .cd150-roll .is-up { animation: cd150-in var(--cd150-t) var(--cd150-e) both; }
.cd150 .cd150-roll .is-out { animation: cd150-out var(--cd150-t) var(--cd150-e) both; }
@keyframes cd150-in { from { translate: 0 1em; } to { translate: 0 0; } }
@keyframes cd150-out { from { translate: 0 0; } to { translate: 0 -1em; } }
/* "The watch": the labels rise from behind their own lines, 90 ms apart (no wrapper, since the engine may rewrite the kicker).
   The mask's window is the middle third of a 300 % tall mask: at 50 % it covers the label's own box, at 100 % the box above
   it. Moving it 100 % -> 50 % while the label rises 100 % -> 0 (its own height, so any number of lines) keeps the window
   still on the page: the words come up from behind their bottom edge, fully hidden at the start (review: .9em leaked) */
html.kjy-fx .cd150.is-armed:not(.is-done) :is(.kjy-countdown__label, .kjy-unit__l) {
  -webkit-mask: linear-gradient(#0000 33.333%, #000 33.333% 66.667%, #0000 66.667%) 0 50% / 100% 300% no-repeat;
  mask: linear-gradient(#0000 33.333%, #000 33.333% 66.667%, #0000 66.667%) 0 50% / 100% 300% no-repeat; }
html.kjy-fx .cd150.is-armed:not(.is-in) :is(.kjy-countdown__label, .kjy-unit__l) { translate: 0 100%; -webkit-mask-position: 0 100%; mask-position: 0 100%; }
html.kjy-fx .cd150.is-armed.is-in:not(.is-done) :is(.kjy-countdown__label, .kjy-unit__l) {
  transition: translate 700ms var(--k-ease) var(--cd150-d, 0ms), -webkit-mask-position 700ms var(--k-ease) var(--cd150-d, 0ms), mask-position 700ms var(--k-ease) var(--cd150-d, 0ms); }
/* depth: the sprig drifts with the scroll, 0 until the section is centred, then trailing down as it leaves (one-sided: an
   upward drift brings it within 8 px of a wrapped label at 360x640; clearance_luxe, A1722). The timeline lives on the root,
   never on the moving sprig; its static rotate composes. The foil rules catch the light, each on its own unit's timeline */
.cd150 .cd150__sprig { --cd150-dp: 8px; }
/* W4 (A1744, D-110): the breeze (the skin's k-breeze): alone here for browsers without view timelines; with the depth inside @supports */
html:not(.motion-reduce):not(.kjy-lite).kjy-opened .cd150 .cd150__sprig { animation: k-breeze 8.4s ease-in-out .45s infinite; }
@supports (animation-timeline: view()) {
  html:not(.motion-reduce):not(.kjy-lite) .cd150 { view-timeline: --cd150-v block; }
  html:not(.motion-reduce):not(.kjy-lite) .cd150 .cd150__sprig { animation: cd150-depth linear both; animation-timeline: --cd150-v; animation-range: cover 50% cover 100%; }
  html:not(.motion-reduce):not(.kjy-lite).kjy-opened .cd150 .cd150__sprig { animation: cd150-depth linear both, k-breeze 8.4s ease-in-out .45s infinite;
    animation-timeline: --cd150-v, auto; animation-range: cover 50% cover 100%, normal; }
  html:not(.motion-reduce):not(.kjy-lite) .cd150 .kjy-unit + .kjy-unit { view-timeline: --cd150-u block; view-timeline-inset: 20% 38%; }
  html:not(.motion-reduce):not(.kjy-lite) .cd150 .kjy-unit + .kjy-unit::before { animation: k-glint-v linear both; animation-timeline: --cd150-u; }
}
@keyframes cd150-depth { from { translate: 0 0; } to { translate: 0 var(--cd150-dp); } }
