/* core/countdown/080 The paintbox (INV-14B Ink & Bloom, A2189): four pans of paint, one colour each, a number on each. The owner
   dropped the tin round them after the W1a look (D-213): the pans stand on the page. The colours are tokens. */
.cd082 { text-align: center; }
.cd082__words { position: relative; }
/* the laptop's left page: a painted flower under the title. Hidden below that size, so its art is never fetched */
.cd082__art { display: none; }
.cd082__box { margin-top: calc(var(--k-ig-u) * 18); }
.cd082 .kjy-countdown__label { margin-bottom: calc(var(--k-ig-u) * 14); font: 500 calc(var(--k-ig-u) * 11)/1.5 var(--k-font-caps); letter-spacing: .24em; text-transform: uppercase; color: var(--k-ink-soft); text-wrap: balance; }
.cd082 .kjy-countdown__units { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--k-ig-u) * 9); }
.cd082 .kjy-unit { position: relative; aspect-ratio: 66 / 82; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--k-ig-u) * 3); border-radius: 13%; overflow: hidden; background: radial-gradient(60% 50% at 34% 26%, rgb(255 255 255 / .16), transparent 72%), var(--cd082-p); box-shadow: inset 0 0 0 1px rgb(20 20 20 / .34), inset 0 calc(var(--k-ig-u) * -5) calc(var(--k-ig-u) * 8) rgb(20 20 20 / .07); }
/* the paint in a pan has a surface: the real washes, once dark and once light, give each cake its own blooms */
.cd082 .kjy-unit::before, .cd082 .kjy-unit::after { content: ""; position: absolute; inset: -30%; }
.cd082 .kjy-unit::before { background: rgb(20 20 20 / .16); rotate: var(--cd082-t, 0deg); }
.cd082 .kjy-unit::after { background: rgb(255 255 255 / .3); rotate: calc(var(--cd082-t, 0deg) + 150deg); }
html:not(.js) .cd082 .kjy-unit::before, html.kjy-opening .cd082 .kjy-unit::before { -webkit-mask: url("/skins/ink_bloom_rose/assets/art/wash-b.webp") center / cover no-repeat; mask: url("/skins/ink_bloom_rose/assets/art/wash-b.webp") center / cover no-repeat; }
html:not(.js) .cd082 .kjy-unit::after, html.kjy-opening .cd082 .kjy-unit::after { -webkit-mask: url("/skins/ink_bloom_rose/assets/art/wash-c.webp") center / cover no-repeat; mask: url("/skins/ink_bloom_rose/assets/art/wash-c.webp") center / cover no-repeat; }
.cd082 .kjy-unit:nth-child(1) { --cd082-p: var(--kb-peony); }
.cd082 .kjy-unit:nth-child(2) { --cd082-p: var(--kb-sun); --cd082-t: 95deg; --cd082-i: 1; }
.cd082 .kjy-unit:nth-child(3) { --cd082-p: var(--kb-coral); --cd082-t: 200deg; --cd082-i: 2; }
.cd082 .kjy-unit:nth-child(4) { --cd082-p: var(--kb-sky); --cd082-t: 300deg; --cd082-i: 3; }
.cd082 .kjy-unit__n { position: relative; z-index: 2; font: 400 calc(var(--k-ig-u) * 30)/1 var(--k-font-display); color: #111111; font-variant-numeric: lining-nums tabular-nums; }
.cd082 .kjy-unit__l { position: relative; z-index: 2; font: 500 calc(var(--k-ig-u) * 8)/1 var(--k-font-caps); letter-spacing: .06em; text-transform: uppercase; color: #111111; }
.cd082 .kjy-countdown__done { font: 400 calc(var(--k-ig-u) * 44)/1.1 var(--k-font-script); color: var(--kb-lead); }
@media (min-width: 1024px) and (min-aspect-ratio: 1/1) {
  .cd082__box { margin-top: 0; }
  .cd082 .kjy-countdown__units { gap: calc(var(--k-ig-u) * 14); }
  .cd082 .kjy-unit__n { font-size: calc(var(--k-ig-u) * 46); }
  .cd082 .kjy-unit__l { font-size: calc(var(--k-ig-u) * 10.5); }
  .cd082 .kjy-countdown__label { font-size: calc(var(--k-ig-u) * 12.5); margin-bottom: calc(var(--k-ig-u) * 22); }
  .cd082__art { position: relative; display: block; width: calc(var(--k-ig-u) * 300); height: calc(var(--k-ig-u) * 190); margin: calc(var(--k-ig-u) * 26) auto 0; }
  .cd082__art .k-ib-daub { width: 62%; left: 22%; top: 0; opacity: .34; }
  .cd082__art .k-ib-daub + .k-ib-daub { width: 36%; left: 8%; top: 40%; opacity: .34; }
  .cd082__fl { position: absolute; background: center / contain no-repeat; }
  .cd082__fl--a { width: calc(var(--k-ig-u) * 132); aspect-ratio: 1; left: 34%; top: 12%; rotate: 6deg; }
  .cd082__fl--b { width: calc(var(--k-ig-u) * 62); aspect-ratio: 240 / 384; left: 18%; top: 22%; rotate: -16deg; }
  html:not(.js) .cd082__fl--a, html.kjy-opening .cd082__fl--a { background-image: url("/skins/ink_bloom_rose/assets/art/part-rose-a.webp"); }
  html:not(.js) .cd082__fl--b, html.kjy-opening .cd082__fl--b { background-image: url("/skins/ink_bloom_rose/assets/art/part-bud.webp"); }
}
@media (min-width: 700px) and (max-aspect-ratio: 1/1) {
  .cd082 .kjy-unit__n { font-size: calc(var(--k-ig-u) * 40); }
  .cd082 .kjy-unit__l { font-size: calc(var(--k-ig-u) * 10); }
}
/* stage 2: an empty pan with "---" on it. A drop of colour lands in the middle and spreads until it takes over the pan, one pan after another, as the book's other colours do (owner), and the number arrives once (D-187). The paint then settles into the pan beneath. Before-states only under kjy-fx; scale and opacity only, so it costs an iPhone little. */
.cd082__e { position: absolute; z-index: 1; inset: 0; display: none; overflow: hidden; background: var(--k-paper); border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(20 20 20 / .34); }
html.kjy-fx:not(.kjy-lite) .cd082:not(.is-done) .cd082__e { display: block; }
html.kjy-fx:not(.kjy-lite) .cd082__e::after { content: ""; position: absolute; left: 50%; top: 50%; width: 300%; aspect-ratio: 1; margin: -150% 0 0 -150%; background: var(--cd082-p); rotate: var(--cd082-t, 0deg); scale: 0; }
html:not(.js) .cd082__e::after, html.kjy-opening .cd082__e::after { -webkit-mask: url("/skins/ink_bloom_rose/assets/art/wash-d.webp") center / contain no-repeat; mask: url("/skins/ink_bloom_rose/assets/art/wash-d.webp") center / contain no-repeat; }
html.kjy-fx:not(.kjy-lite) .cd082.is-in .cd082__e::after { animation: cd082-bloom 1.1s cubic-bezier(.3, .1, .3, 1) calc(var(--cd082-i, 0) * 200ms) both; }
html.kjy-fx:not(.kjy-lite) .cd082.is-in .cd082__e { animation: cd082-settle .45s ease calc(var(--cd082-i, 0) * 200ms + 1.05s) both; }
@keyframes cd082-bloom { 0% { scale: 0; } 12% { scale: .1; } 24% { scale: .12; } 100% { scale: 1; } }
@keyframes cd082-settle { to { opacity: 0; } }
html.kjy-fx:not(.kjy-lite) .cd082:not(.is-in) .kjy-unit__n { color: transparent; }
html.kjy-fx:not(.kjy-lite) .cd082:not(.is-done) .kjy-unit__n::before { content: "---"; position: absolute; left: 50%; translate: -50% 0; white-space: nowrap; color: #111111; }
html.kjy-fx:not(.kjy-lite) .cd082.is-in:not(.is-done) .kjy-unit__n::before { opacity: 0; transition: opacity .25s ease calc(var(--cd082-i, 0) * 200ms + .7s); }
html.kjy-fx:not(.kjy-lite) .cd082.is-in:not(.is-done) .kjy-unit__n { transition: color .3s ease calc(var(--cd082-i, 0) * 200ms + .8s); }
/* INV-14D in red roses (A2340) */
/* W2 (A2352): the pans are petals now, in the roses' own soft wash, with black numbers: every word on the page is black */
.cd082 .kjy-unit { background: var(--cd082-p); box-shadow: none; }
.cd082 .kjy-unit:nth-child(odd) { --cd082-p: #F0ABAD; }
.cd082 .kjy-unit:nth-child(even) { --cd082-p: #EA9CA0; }
.cd082 .kjy-unit__n, .cd082 .kjy-unit__l { color: #141414; }
.cd082 .kjy-unit::before { background: rgb(187 63 70 / .3); }
