/* Theme "dune" for the promo strip — «Дюна: Частина третя». A desert at dusk:
   indigo sky fading into burnt ochre sand, two moons, dune ridges along the top
   edge, spice dust drifting in the wind. On the right a thumper beats, a sand
   ripple runs towards it and a giant worm rises out of the dunes, opens its petal
   mouth and sinks back (one 10 s loop). Wide airy title in the middle.
   Overrides only — layout lives in kuzma_promo.css. */

.kz-promo--dune {
  --kz-amber: #e9b45c;
  --kz-amber2: #d4943a;
  --kz-red: #c8642a;
  --kz-red2: #a44d1c;
  --dn-sand: #c48a4a;
  --dn-deep: #2a1608;
  --dn-ink: #1a0c04;
  background:
    radial-gradient(60% 160% at 78% 140%, rgba(233,150,70,.55), transparent 62%),
    radial-gradient(40% 120% at 8% 140%, rgba(196,120,60,.45), transparent 60%),
    linear-gradient(180deg, rgba(26,14,30,0) 0%, rgba(26,14,30,0) 12%, rgba(40,20,22,.82) 40%,
                    #5a2f17 66%, #3a1d0c 100%);
}

/* two moons low over the horizon */
.dn-moons { position: absolute; right: 31%; bottom: 128px; width: 60px; height: 36px; pointer-events: none; }
.dn-moons i { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3d6, #e7c992 60%, #b9935c); }
.dn-moons .m1 { width: 22px; height: 22px; left: 0; top: 6px; box-shadow: 0 0 18px rgba(255,226,170,.55); opacity: .9; }
.dn-moons .m2 { width: 11px; height: 11px; left: 34px; top: 0; opacity: .75; box-shadow: 0 0 10px rgba(255,226,170,.45); }

/* dune ridges instead of the crowd silhouette */
.dn-dunes { position: absolute; left: 0; width: 100%; height: 44px; display: block; }
.dn-dunes--far { bottom: 120px; }
.dn-dunes--far path { fill: rgba(70,36,18,.78); }
.dn-dunes--near { bottom: 106px; height: 40px; }
.dn-dunes--near path { fill: rgba(92,48,22,.95); }

/* CTA card: dark sand-brown with an ochre edge */
.kz-promo--dune .kz-promo__cta {
  color: #fbf1df;
  background: linear-gradient(180deg, rgba(48,25,12,.94), rgba(24,12,5,.96));
  border-color: rgba(233,180,92,.55);
  box-shadow: 0 16px 38px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,230,190,.08);
}
.kz-promo--dune .kz-promo__poster { background: #3a1d0c; }
.kz-promo--dune .kz-promo__eyebrow { color: #2a1405; }
.kz-promo--dune .kz-promo__meta { color: #e6cfa6; }
.kz-promo--dune .kz-promo__age { color: #fbf1df; border-color: rgba(230,207,166,.55); }
.kz-promo--dune .kz-promo__btn { box-shadow: 0 8px 18px rgba(200,100,42,.45); }
.kz-promo--dune .kz-promo__close { background: rgba(24,12,5,.6); color: #f5e6cc; border-color: rgba(255,230,190,.3); }
.kz-promo--dune .kz-promo__close:hover { background: rgba(24,12,5,.9); }

/* wide, airy title like a desert horizon */
.dn-lockup {
  position: absolute; left: 50%; bottom: 26px;
  display: flex; flex-direction: column; align-items: center;
  transform: translateX(-38%);
  white-space: nowrap; line-height: 1; pointer-events: none;
}
.dn-lockup__title {
  font-family: "Unbounded", "Manrope", sans-serif; font-weight: 300;
  font-size: 2.9rem; letter-spacing: .5em; margin-right: -.5em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff2d4 0%, #f0c98a 55%, #c98a44 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 10px rgba(20,8,2,.55));
  animation: dn-shimmer 10s ease-in-out infinite;
}
.dn-lockup__sub {
  margin-top: 8px;
  font-family: "Unbounded", "Manrope", sans-serif; font-weight: 400;
  font-size: .78rem; letter-spacing: .62em; margin-right: -.62em; text-transform: uppercase;
  color: #f3dcb0; opacity: .9;
}
/* heat haze on the title while the worm is up */
@keyframes dn-shimmer {
  0%, 30%, 74%, 100% { transform: translateY(0) skewX(0); }
  42% { transform: translateY(1px) skewX(-1.5deg); }
  50% { transform: translateY(-1px) skewX(1.2deg); }
  60% { transform: translateY(0) skewX(-.6deg); }
}

/* spice dust in the wind */
.dn-spice { position: absolute; inset: 0; pointer-events: none; }
.dn-spice i {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: #ffb45a; box-shadow: 0 0 8px 2px rgba(255,160,70,.65);
  opacity: 0; animation: dn-drift 8s linear infinite;
}
.dn-spice .p0 { left: 18%; bottom: 40px; animation-delay: 0s; }
.dn-spice .p1 { left: 27%; bottom: 84px; animation-delay: -1.3s; animation-duration: 9s; }
.dn-spice .p2 { left: 36%; bottom: 22px; animation-delay: -2.6s; }
.dn-spice .p3 { left: 44%; bottom: 66px; animation-delay: -4s; animation-duration: 7s; }
.dn-spice .p4 { left: 52%; bottom: 100px; animation-delay: -5.2s; }
.dn-spice .p5 { left: 61%; bottom: 34px; animation-delay: -6.1s; animation-duration: 10s; }
.dn-spice .p6 { left: 69%; bottom: 76px; animation-delay: -.7s; }
.dn-spice .p7 { left: 77%; bottom: 18px; animation-delay: -3.3s; animation-duration: 9s; }
.dn-spice .p8 { left: 85%; bottom: 58px; animation-delay: -4.6s; }
.dn-spice .p9 { left: 92%; bottom: 96px; animation-delay: -2s; animation-duration: 7.5s; }
.dn-spice .p10 { left: 58%; bottom: 120px; width: 3px; height: 3px; animation-delay: -6.8s; }
.dn-spice .p11 { left: 31%; bottom: 128px; width: 3px; height: 3px; animation-delay: -3.9s; }
@keyframes dn-drift {
  0% { opacity: 0; transform: translate(0, 0); }
  12% { opacity: .85; }
  80% { opacity: .5; }
  100% { opacity: 0; transform: translate(-150px, -18px); }
}

/* stage: thumper + ripple + the worm */
.dn-stage {
  position: absolute; right: 12%; bottom: 0;
  width: 190px; height: 188px;
  pointer-events: none;
}
.dn-thumper { position: absolute; left: -26px; bottom: 74px; width: 8px; height: 30px; }
.dn-thumper b {
  position: absolute; left: 2px; bottom: 0; width: 4px; height: 28px; border-radius: 2px;
  background: linear-gradient(#e8d2a8, #8a6a44);
  animation: dn-thump 10s steps(1) infinite;
}
.dn-thumper .ring {
  position: absolute; left: 50%; bottom: -4px; width: 16px; height: 6px; margin-left: -8px;
  border: 2px solid rgba(255,214,150,.75); border-radius: 50%;
  opacity: 0; animation: dn-ring 10s ease-out infinite;
}
.dn-thumper .r2 { animation-delay: .9s; }
.dn-thumper .r3 { animation-delay: 1.8s; }
@keyframes dn-thump {
  0%, 4%, 9%, 13%, 18%, 22%, 27%, 100% { transform: translateY(0); }
  2%, 11%, 20% { transform: translateY(3px); }
}
@keyframes dn-ring {
  0% { opacity: 0; transform: scale(.4); }
  3% { opacity: .9; }
  14% { opacity: 0; transform: scale(5); }
  100% { opacity: 0; transform: scale(5); }
}

/* the sand ripple racing towards the thumper */
.dn-ripple {
  position: absolute; left: 30px; bottom: 70px; width: 110px; height: 18px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,214,150,.55), rgba(255,214,150,.12) 60%, transparent);
  opacity: 0; animation: dn-ripple 10s cubic-bezier(.4,.1,.6,1) infinite;
}
@keyframes dn-ripple {
  0%, 6% { opacity: 0; transform: translateX(-420px) scaleX(.6); }
  12% { opacity: .9; }
  30% { opacity: 1; transform: translateX(-30px) scaleX(1.1); }
  34% { opacity: 0; transform: translateX(0) scaleX(1.3); }
  100% { opacity: 0; transform: translateX(0) scaleX(1.3); }
}

.dn-worm {
  position: absolute; left: 4px; bottom: -10px; width: 172px; height: 198px;
  transform: translateY(115%);
  animation: dn-worm 10s cubic-bezier(.3,.05,.3,1) infinite;
  filter: drop-shadow(0 -4px 10px rgba(255,190,110,.25));
}
.dn-worm svg { width: 100%; height: 100%; display: block; overflow: visible; }
@keyframes dn-worm {
  0%, 32% { transform: translateY(115%) rotate(0); }
  46% { transform: translateY(6%) rotate(-3deg); }
  52% { transform: translateY(0) rotate(-2deg); }
  60% { transform: translateY(2%) rotate(1deg); }
  74%, 100% { transform: translateY(115%) rotate(2deg); }
}
/* the maw: a closed slit while rising, opens wide at the top, closes as it sinks */
.dn-mouth > ellipse, .dn-mouth > g:not(.petals) {
  transform-box: fill-box; transform-origin: 50% 50%;
  animation: dn-maw 10s ease-in-out infinite;
}
@keyframes dn-maw {
  0%, 44% { transform: scale(.7, .18); }
  52%, 61% { transform: scale(1, 1); }
  69%, 100% { transform: scale(.7, .18); }
}
.dn-mouth .pt { transform-box: fill-box; animation: dn-petal 10s ease-in-out infinite; }
.dn-mouth .pl { transform-origin: 100% 100%; --open: -34deg; }
.dn-mouth .pr { transform-origin: 0 100%; --open: 34deg; }
.dn-mouth .pm { transform-origin: 50% 100%; --open: 0deg; }
@keyframes dn-petal {
  0%, 44% { transform: rotate(0) scale(.25); }
  52%, 61% { transform: rotate(var(--open)) scale(1); }
  69%, 100% { transform: rotate(0) scale(.25); }
}

/* sand spraying up as it breaks the surface */
.dn-spray { position: absolute; left: 40px; bottom: 70px; width: 100px; height: 10px; }
.dn-spray i {
  position: absolute; bottom: 0; width: 6px; height: 6px; border-radius: 50%;
  background: #e5b97a; opacity: 0;
  animation: dn-spray 10s ease-out infinite;
}
.dn-spray i:nth-child(1) { left: 0; --dx: -30px; }
.dn-spray i:nth-child(2) { left: 22px; --dx: -14px; animation-delay: .1s; }
.dn-spray i:nth-child(3) { left: 46px; --dx: 4px; animation-delay: .05s; }
.dn-spray i:nth-child(4) { left: 70px; --dx: 18px; animation-delay: .12s; }
.dn-spray i:nth-child(5) { left: 92px; --dx: 32px; animation-delay: .08s; }
@keyframes dn-spray {
  0%, 36% { opacity: 0; transform: translate(0, 0); }
  38% { opacity: .95; }
  50% { opacity: 0; transform: translate(var(--dx), -56px); }
  100% { opacity: 0; transform: translate(var(--dx), -56px); }
}

/* narrower screens: drop the title first, then the stage */
@media (max-width: 1240px) {
  .dn-lockup { display: none; }
  .dn-stage { right: 22%; }
  .dn-moons { right: 46%; }
}
@media (max-width: 860px) {
  .dn-stage, .dn-moons { display: none; }
}
@media (max-width: 640px) {
  .dn-dunes--far { bottom: 98px; }
  .dn-dunes--near { bottom: 86px; }
}

@media (prefers-reduced-motion: reduce) {
  .dn-lockup__title, .dn-spice i, .dn-thumper b, .dn-thumper .ring, .dn-ripple,
  .dn-worm, .dn-mouth .pt, .dn-spray i { animation: none; }
  .dn-worm { transform: translateY(40%); }
  .dn-spice i { opacity: .5; }
}
