/* Twelve decors made for birthdays: cake, streamers, crown, fireworks, disco, presents, pop art, vinyl, arcade and bubbles,
   then two for a super-hero party (spider web and rooftops at night).
   Same rules as the other decors (see invitation-decor.css): shapes painted in the accent colour, a hero that moves by
   itself and stops for visitors who ask for less motion, a page and its cards. */

/* --- Shapes ------------------------------------------------------------------------------------------------------- */
.dc-m-couronne {
  --m: url('/art/forme/couronne.svg');
}
.dc-m-cadeau {
  --m: url('/art/forme/cadeau.svg');
}
.dc-m-toile {
  --m: url('/art/forme/toile.svg');
}
.dc-m-araignee {
  --m: url('/art/forme/araignee.svg');
}
.si-decor-gateau {
  --m: url('/art/forme/goutte.svg');
}
.si-decor-serpentins {
  --m: url('/art/forme/ballon.svg');
}
.si-decor-couronne {
  --m: url('/art/forme/couronne.svg');
}
.si-decor-feu {
  --m: url('/art/forme/etoile.svg');
}
.si-decor-disco {
  --m: url('/art/forme/etoile.svg');
}
.si-decor-cadeaux {
  --m: url('/art/forme/cadeau.svg');
}
.si-decor-comics {
  --m: url('/art/forme/eclair.svg');
}
.si-decor-vinyle {
  --m: url('/art/forme/lune.svg');
}
.si-decor-arcade {
  --m: url('/art/forme/etoile.svg');
}
.si-decor-bulles {
  --m: url('/art/forme/goutte.svg');
}
.si-decor-toile,
.si-decor-gratteciel {
  --m: url('/art/forme/araignee.svg');
}

/* --- Pages and cards ---------------------------------------------------------------------------------------------- */
.invite-decor-gateau,
.invite-decor-serpentins,
.invite-decor-couronne,
.invite-decor-cadeaux,
.invite-decor-comics,
.invite-decor-vinyle,
.invite-decor-bulles,
.invite-decor-toile {
  --card-bg: color-mix(in srgb, var(--invite-bg) 45%, #fff);
  --card-fg: var(--invite-text);
  --card-head: var(--invite-accent);
}
.invite-decor-feu,
.invite-decor-disco,
.invite-decor-arcade,
.invite-decor-gratteciel {
  --card-bg: color-mix(in srgb, var(--invite-accent) 14%, transparent);
  --card-fg: var(--invite-text);
  --card-head: var(--invite-accent);
}
.invite-decor-gateau .bn-card,
.invite-decor-serpentins .bn-card,
.invite-decor-couronne .bn-card,
.invite-decor-feu .bn-card,
.invite-decor-disco .bn-card,
.invite-decor-cadeaux .bn-card,
.invite-decor-comics .bn-card,
.invite-decor-vinyle .bn-card,
.invite-decor-arcade .bn-card,
.invite-decor-bulles .bn-card,
.invite-decor-toile .bn-card,
.invite-decor-gratteciel .bn-card {
  border: 1px solid color-mix(in srgb, var(--invite-accent) 35%, transparent);
}
.invite-decor-gateau .bn-intro h2,
.invite-decor-serpentins .bn-intro h2,
.invite-decor-couronne .bn-intro h2,
.invite-decor-feu .bn-intro h2,
.invite-decor-disco .bn-intro h2,
.invite-decor-cadeaux .bn-intro h2,
.invite-decor-comics .bn-intro h2,
.invite-decor-vinyle .bn-intro h2,
.invite-decor-arcade .bn-intro h2,
.invite-decor-bulles .bn-intro h2,
.invite-decor-toile .bn-intro h2,
.invite-decor-gratteciel .bn-intro h2 {
  font-size: 44px;
  letter-spacing: 0;
  text-transform: none;
}
.invite-decor-comics .bn-card {
  border: 3px solid var(--invite-text);
  box-shadow: 5px 5px 0 var(--invite-accent);
}
.invite-decor-toile .bn-card {
  border: 2px solid var(--invite-accent);
  border-radius: 14px;
  box-shadow: 0 5px 0 color-mix(in srgb, var(--invite-text) 80%, transparent);
}
.invite-decor-gratteciel .bn-card {
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--invite-accent) 55%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--invite-accent) 28%, transparent);
}
.invite-decor-gratteciel .bn-intro h2 {
  font-size: 34px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.invite-decor-arcade .bn-card {
  border-radius: 0;
  border: 2px solid var(--invite-accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--invite-accent) 35%, transparent);
}
.invite-decor-arcade .bn-intro h2 {
  font-size: 32px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.invite-decor-gateau {
  background-image:
    radial-gradient(
      circle at 0 0,
      color-mix(in srgb, var(--invite-accent) 20%, transparent),
      transparent 40%
    ),
    radial-gradient(
      circle at 100% 55%,
      color-mix(in srgb, var(--invite-accent) 12%, transparent),
      transparent 44%
    );
}
.invite-decor-serpentins {
  background-image:
    radial-gradient(
      circle at 100% 0,
      color-mix(in srgb, var(--invite-accent) 24%, transparent),
      transparent 40%
    ),
    radial-gradient(
      circle at 0 50%,
      color-mix(in srgb, var(--invite-accent) 12%, transparent),
      transparent 42%
    );
}
.invite-decor-couronne {
  background-image: radial-gradient(
    ellipse at 50% 0,
    color-mix(in srgb, var(--invite-accent) 22%, transparent),
    transparent 58%
  );
}
.invite-decor-feu {
  background-image:
    radial-gradient(
      circle at 20% 4%,
      color-mix(in srgb, var(--invite-accent) 6%, transparent),
      transparent 38%
    ),
    radial-gradient(
      circle at 85% 12%,
      color-mix(in srgb, var(--invite-accent) 4%, transparent),
      transparent 34%
    );
}
.invite-decor-disco {
  background-image: radial-gradient(
    ellipse at 50% 0,
    color-mix(in srgb, var(--invite-accent) 16%, transparent),
    transparent 52%
  );
}
.invite-decor-cadeaux {
  background-image:
    radial-gradient(
      circle at 100% 0,
      color-mix(in srgb, var(--invite-accent) 20%, transparent),
      transparent 40%
    ),
    radial-gradient(
      circle at 0 70%,
      color-mix(in srgb, var(--invite-accent) 12%, transparent),
      transparent 40%
    );
}
.invite-decor-comics {
  background-image: radial-gradient(
    color-mix(in srgb, var(--invite-accent) 22%, transparent) 20%,
    transparent 22%
  );
}
.invite-decor-comics {
  background-size: 14px 14px;
}
.invite-decor-vinyle {
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0 7px,
      color-mix(in srgb, var(--invite-accent) 6%, transparent) 7px 8px
    ),
    radial-gradient(
      circle at 100% 0,
      color-mix(in srgb, var(--invite-accent) 16%, transparent),
      transparent 44%
    );
}
.invite-decor-arcade {
  background-image: linear-gradient(
    color-mix(in srgb, var(--invite-accent) 7%, transparent) 50%,
    transparent 50%
  );
}
.invite-decor-arcade {
  background-size: 100% 4px;
}
.invite-decor-bulles {
  background-image: linear-gradient(
    180deg,
    color-mix(in srgb, var(--invite-accent) 22%, transparent),
    transparent 600px
  );
}
/* Toile: a mesh of fine diagonal threads over the whole page. */
.invite-decor-toile {
  background-image:
    repeating-linear-gradient(
      45deg,
      color-mix(in srgb, var(--invite-accent) 9%, transparent) 0 1px,
      transparent 1px 22px
    ),
    repeating-linear-gradient(
      -45deg,
      color-mix(in srgb, var(--invite-accent) 9%, transparent) 0 1px,
      transparent 1px 22px
    );
}
/* Gratte-ciel: the glow of the city rising from the top of the page. */
.invite-decor-gratteciel {
  background-image:
    radial-gradient(
      ellipse at 50% 0,
      color-mix(in srgb, var(--invite-accent) 26%, transparent),
      transparent 60%
    ),
    linear-gradient(180deg, color-mix(in srgb, #3b5bdb 18%, transparent), transparent 700px);
}
.invite-decor-gateau .invite-gallery img,
.invite-decor-bulles .invite-gallery img,
.invite-decor-cadeaux .invite-gallery img {
  border-radius: 18px;
}

/* A photo that is not there yet: a soft frame in the page's own colours, and the photo fills its frame */
.dc-cake-photo:empty,
.dc-streamers-photo:empty,
.dc-crown-photo:empty,
.dc-fire-photo:empty,
.dc-disco-photo:empty,
.dc-giftbox-photo:empty,
.dc-pop-photo:empty,
.dc-vinyl-photo:empty,
.dc-arcade-photo:empty,
.dc-bubbles-photo:empty,
.dc-web-photo:empty,
.dc-skyline-photo:empty {
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--invite-accent) 18%, var(--invite-bg)),
    color-mix(in srgb, var(--invite-accent) 38%, var(--invite-bg))
  );
}
.dc-cake-photo img,
.dc-streamers-photo img,
.dc-crown-photo img,
.dc-fire-photo img,
.dc-disco-photo img,
.dc-giftbox-photo img,
.dc-pop-photo img,
.dc-vinyl-photo img,
.dc-arcade-photo img,
.dc-bubbles-photo img,
.dc-web-photo img,
.dc-skyline-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Gâteau: a photo on a tiered cake, candles that flicker ---------------------------------------------------------- */
.dc-cake {
  width: min(100%, 340px);
  height: 360px;
}
.dc-cake-candles {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  gap: 22px;
  transform: translateX(-50%);
}
.dc-candle {
  position: relative;
  display: block;
  width: 8px;
  height: 36px;
  margin-top: 22px;
  border-radius: 3px;
  background: repeating-linear-gradient(
    180deg,
    var(--invite-accent) 0 8px,
    color-mix(in srgb, var(--invite-accent) 40%, #fff) 8px 16px
  );
}
.dc-candle .dc-flame {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 14px;
  height: 20px;
  margin-bottom: 3px;
  background: #ffb703;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  animation: dc-flicker-flame 0.9s ease-in-out infinite alternate;
}
.dc-candle-2 {
  margin-top: 12px;
}
.dc-candle-3 {
  margin-top: 6px;
}
.dc-candle-4 {
  margin-top: 12px;
}
.dc-candle-2 .dc-flame {
  animation-delay: -0.3s;
}
.dc-candle-3 .dc-flame {
  animation-delay: -0.6s;
}
.dc-candle-4 .dc-flame {
  animation-delay: -0.2s;
}
.dc-cake-photo {
  position: absolute;
  top: 70px;
  left: 50%;
  width: 62%;
  aspect-ratio: 1;
  overflow: hidden;
  transform: translateX(-50%);
  border: 5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--invite-accent) 30%, transparent);
}
.dc-cake-tier {
  position: absolute;
  left: 50%;
  display: block;
  border-radius: 14px 14px 8px 8px;
  background:
    radial-gradient(circle at 10px 0, #fff 9px, transparent 10px) 0 0 / 26px 18px repeat-x,
    var(--invite-accent);
  transform: translateX(-50%);
}
.dc-cake-tier-1 {
  bottom: 44px;
  width: 66%;
  height: 40px;
}
.dc-cake-tier-2 {
  bottom: 0;
  width: 88%;
  height: 48px;
  filter: brightness(0.9);
}
@keyframes dc-flicker-flame {
  from {
    transform: translateX(-50%) scale(1, 1) rotate(-4deg);
    opacity: 0.9;
  }
  to {
    transform: translateX(-50%) scale(0.9, 1.12) rotate(4deg);
    opacity: 1;
  }
}

/* --- Serpentins: streamers that sway, confetti that falls ------------------------------------------------------------- */
.dc-streamers {
  width: min(100%, 340px);
  height: 360px;
  overflow: hidden;
}
.dc-streamers-photo {
  position: absolute;
  top: 66px;
  left: 50%;
  width: 60%;
  aspect-ratio: 1;
  overflow: hidden;
  transform: translateX(-50%);
  border: 5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--invite-accent) 32%, transparent);
}
.dc-streamer {
  position: absolute;
  top: -6px;
  width: 16px;
  height: var(--l, 170px);
  background: repeating-linear-gradient(
    180deg,
    var(--invite-accent) 0 12px,
    color-mix(in srgb, var(--invite-accent) 45%, #fff) 12px 24px
  );
  clip-path: polygon(
    0 0,
    100% 0,
    78% 18%,
    100% 36%,
    78% 54%,
    100% 72%,
    78% 90%,
    100% 100%,
    0 100%,
    22% 82%,
    0 64%,
    22% 46%,
    0 28%,
    22% 12%
  );
  transform-origin: 50% 0;
  animation: dc-streamer-sway var(--t, 4s) ease-in-out infinite alternate;
}
.dc-streamer-1 {
  left: 6%;
}
.dc-streamer-2 {
  left: 20%;
  --l: 120px;
  --t: 3.4s;
}
.dc-streamer-3 {
  left: 50%;
  --l: 80px;
  --t: 5s;
}
.dc-streamer-4 {
  right: 20%;
  --l: 140px;
  --t: 3.8s;
}
.dc-streamer-5 {
  right: 6%;
  --l: 190px;
  --t: 4.4s;
}
.dc-bit {
  position: absolute;
  top: -8%;
  left: var(--x);
  width: 9px;
  height: 14px;
  background: color-mix(in srgb, var(--invite-accent) var(--m, 100%), #fff);
  animation: dc-bit-fall var(--t, 6s) linear infinite;
  animation-delay: var(--dl, 0s);
}
.dc-bit-1 {
  --x: 12%;
  --m: 100%;
  --t: 6s;
  --y: 20%;
}
.dc-bit-2 {
  --x: 28%;
  --m: 60%;
  --t: 7.5s;
  --dl: -2s;
  --y: 70%;
}
.dc-bit-3 {
  --x: 42%;
  --m: 80%;
  --t: 5.5s;
  --dl: -4s;
  --y: 35%;
}
.dc-bit-4 {
  --x: 58%;
  --m: 45%;
  --t: 8s;
  --dl: -1s;
  --y: 85%;
}
.dc-bit-5 {
  --x: 72%;
  --m: 100%;
  --t: 6.5s;
  --dl: -3s;
  --y: 50%;
}
.dc-bit-6 {
  --x: 86%;
  --m: 70%;
  --t: 7s;
  --dl: -5s;
  --y: 15%;
}
.dc-bit-7 {
  --x: 20%;
  --m: 50%;
  --t: 9s;
  --dl: -6s;
  --y: 60%;
}
.dc-bit-8 {
  --x: 94%;
  --m: 90%;
  --t: 5.8s;
  --dl: -2.5s;
  --y: 80%;
}
@keyframes dc-streamer-sway {
  from {
    transform: rotate(-5deg);
  }
  to {
    transform: rotate(5deg);
  }
}
@keyframes dc-bit-fall {
  0% {
    transform: translateY(0) rotate(0);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  100% {
    transform: translateY(380px) rotate(520deg);
    opacity: 0.9;
  }
}

/* --- Couronne: a golden crown on a round photo ------------------------------------------------------------------------ */
.dc-crown {
  width: min(100%, 340px);
  height: 340px;
}
.dc-crown-photo {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 66%;
  aspect-ratio: 1;
  overflow: hidden;
  transform: translateX(-50%);
  border: 6px solid var(--invite-accent);
  border-radius: 50%;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--invite-accent) 32%, transparent);
}
.dc-crown-art {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 40%;
  aspect-ratio: 120 / 84;
  transform: translateX(-50%) rotate(-6deg);
  transform-origin: 50% 100%;
  animation: dc-crown-bob 4.5s ease-in-out infinite;
}
.dc-crown-glint {
  position: absolute;
  aspect-ratio: 1;
  width: 14px;
  animation: dc-twinkle 2.4s ease-in-out infinite;
}
.dc-crown-glint-1 {
  top: 4%;
  left: 28%;
}
.dc-crown-glint-2 {
  top: 12%;
  right: 24%;
  width: 10px;
  animation-delay: -0.8s;
}
.dc-crown-glint-3 {
  top: 40%;
  right: 6%;
  width: 11px;
  animation-delay: -1.5s;
}
@keyframes dc-crown-bob {
  50% {
    transform: translateX(-50%) rotate(5deg) translateY(-4px);
    filter: brightness(1.18);
  }
}

/* --- Feu d'artifice: bursts of light in the night sky ------------------------------------------------------------------- */
.dc-fire {
  width: min(100%, 340px);
  height: 370px;
}
.dc-fire-photo {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 56%;
  aspect-ratio: 1;
  overflow: hidden;
  transform: translateX(-50%);
  border: 4px solid var(--invite-accent);
  border-radius: 50%;
  box-shadow: 0 0 34px color-mix(in srgb, var(--invite-accent) 45%, transparent);
}
.dc-burst {
  position: absolute;
  width: var(--w, 130px);
  aspect-ratio: 1;
  left: var(--x);
  top: var(--y);
  border-radius: 50%;
  background: repeating-conic-gradient(var(--invite-accent) 0 3deg, transparent 3deg 15deg);
  -webkit-mask: radial-gradient(circle, transparent 18%, #000 20%, #000 46%, transparent 48%);
  mask: radial-gradient(circle, transparent 18%, #000 20%, #000 46%, transparent 48%);
  transform: scale(0);
  opacity: 0;
  animation: dc-burst 4.2s ease-out infinite;
  animation-delay: var(--dl, 0s);
}
.dc-burst-1 {
  --x: 2%;
  --y: 2%;
}
.dc-burst-2 {
  --x: 56%;
  --y: 0;
  --w: 150px;
  --dl: -1.4s;
}
.dc-burst-3 {
  --x: 30%;
  --y: 20%;
  --w: 110px;
  --dl: -2.8s;
}
@keyframes dc-burst {
  0% {
    transform: scale(0.1);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  55% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

/* --- Disco: a mirror ball and beams of light ---------------------------------------------------------------------------- */
.dc-disco {
  width: min(100%, 340px);
  height: 370px;
}
.dc-disco-beams {
  position: absolute;
  inset: -40% -20% 0;
  background: repeating-conic-gradient(
    from 0deg at 50% 12%,
    color-mix(in srgb, var(--invite-accent) 26%, transparent) 0 8deg,
    transparent 8deg 30deg
  );
  -webkit-mask: radial-gradient(ellipse at 50% 12%, #000, transparent 72%);
  mask: radial-gradient(ellipse at 50% 12%, #000, transparent 72%);
  animation: dc-spin 14s linear infinite;
}
.dc-disco-string {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 36px;
  background: var(--invite-accent);
}
.dc-disco-ball {
  position: absolute;
  top: 34px;
  left: 50%;
  width: 78px;
  aspect-ratio: 1;
  margin-left: -39px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgb(255 255 255 / 85%), transparent 36%),
    repeating-linear-gradient(0deg, rgb(0 0 0 / 28%) 0 2px, transparent 2px 10px),
    repeating-linear-gradient(90deg, rgb(0 0 0 / 28%) 0 2px, transparent 2px 10px), var(--invite-accent);
  background-size:
    100% 100%,
    100% 100%,
    20px 100%,
    100% 100%;
  box-shadow: 0 0 30px color-mix(in srgb, var(--invite-accent) 60%, transparent);
  animation: dc-ball 3s linear infinite;
}
.dc-disco-photo {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 56%;
  aspect-ratio: 1;
  overflow: hidden;
  transform: translateX(-50%);
  border: 4px solid var(--invite-accent);
  border-radius: 50%;
  box-shadow: 0 0 40px color-mix(in srgb, var(--invite-accent) 50%, transparent);
}
@keyframes dc-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes dc-ball {
  to {
    background-position:
      0 0,
      0 0,
      20px 0,
      0 0;
  }
}

/* --- Cadeaux: a photo between wrapped presents that hop ----------------------------------------------------------------- */
.dc-giftbox {
  width: min(100%, 340px);
  height: 360px;
}
.dc-giftbox-photo {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 62%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  transform: translateX(-50%) rotate(-2deg);
  border: 6px solid #fff;
  border-radius: 16px;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--invite-accent) 30%, transparent);
}
.dc-gift {
  position: absolute;
  bottom: 4px;
  width: 22%;
  aspect-ratio: 1;
  animation: dc-hop 2.6s ease-in-out infinite;
}
.dc-gift-1 {
  left: 2%;
}
.dc-gift-2 {
  right: 2%;
  width: 26%;
  animation-delay: -0.9s;
}
.dc-gift-3 {
  top: 0;
  right: 6%;
  bottom: auto;
  width: 14%;
  animation-delay: -1.7s;
}
@keyframes dc-hop {
  0%,
  70%,
  100% {
    transform: translateY(0);
  }
  80% {
    transform: translateY(-14px) rotate(-4deg);
  }
  90% {
    transform: translateY(0) rotate(3deg);
  }
}

/* --- Pop art: a comic-book plate and an explosion ----------------------------------------------------------------------- */
.dc-pop {
  width: min(100%, 340px);
  height: 360px;
}
.dc-pop-dots {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(var(--invite-accent) 28%, transparent 30%) 0 0 / 14px 14px,
    transparent;
  -webkit-mask: linear-gradient(135deg, #000 0, transparent 55%);
  mask: linear-gradient(135deg, #000 0, transparent 55%);
  opacity: 0.55;
}
.dc-pop-photo {
  position: absolute;
  top: 28px;
  left: 6%;
  width: 66%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 6px solid var(--invite-text);
  background: #fff;
  box-shadow: 10px 10px 0 var(--invite-accent);
  transform: rotate(-3deg);
}
.dc-pop-burst {
  position: absolute;
  right: 0;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 46%;
  aspect-ratio: 1;
  padding: 10px;
  background: var(--invite-accent);
  clip-path: polygon(
    50% 0,
    60% 18%,
    80% 6%,
    78% 28%,
    100% 30%,
    86% 48%,
    100% 66%,
    78% 68%,
    82% 92%,
    62% 80%,
    50% 100%,
    40% 80%,
    20% 94%,
    22% 70%,
    0 68%,
    14% 50%,
    0 32%,
    22% 30%,
    20% 6%,
    40% 18%
  );
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: 1px 1px 0 var(--invite-text);
  transform: rotate(8deg);
  animation: dc-pow 1.8s ease-in-out infinite;
}
@keyframes dc-pow {
  50% {
    transform: rotate(-4deg) scale(1.12);
  }
}

/* --- Vinyle: a record that spins, the photo as its label ----------------------------------------------------------------- */
.dc-vinyl {
  width: min(100%, 320px);
  aspect-ratio: 1;
}
.dc-vinyl-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(
      from 0deg,
      transparent 0 20%,
      rgb(255 255 255 / 16%) 25%,
      transparent 30% 70%,
      rgb(255 255 255 / 16%) 75%,
      transparent 80%
    ),
    repeating-radial-gradient(circle, #151515 0 2px, #262626 2px 4px);
  box-shadow: 0 14px 30px rgb(0 0 0 / 30%);
  animation: dc-spin 5s linear infinite;
}
.dc-vinyl-photo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42%;
  aspect-ratio: 1;
  overflow: hidden;
  transform: translate(-50%, -50%);
  border: 5px solid var(--invite-accent);
  border-radius: 50%;
}

/* --- Arcade: a video-game screen ------------------------------------------------------------------------------------------ */
.dc-arcade {
  position: relative;
  width: min(100%, 340px);
  padding: 14px 14px 12px;
  border: 4px solid var(--invite-accent);
  background:
    linear-gradient(rgb(255 255 255 / 5%) 50%, transparent 50%) 0 0 / 100% 4px,
    color-mix(in srgb, var(--invite-bg) 80%, #000);
  box-shadow:
    0 0 24px color-mix(in srgb, var(--invite-accent) 45%, transparent),
    inset 0 0 22px color-mix(in srgb, var(--invite-accent) 22%, transparent);
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}
.dc-arcade-hud {
  display: flex;
  justify-content: space-between;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--invite-accent);
}
.dc-arcade-photo {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 3px solid var(--invite-accent);
  image-rendering: pixelated;
}
.dc-arcade-start {
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  color: var(--invite-accent);
  animation: dc-blink 1.1s steps(2, jump-none) infinite;
}
.dc-pixel {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--invite-accent);
  box-shadow:
    8px 0 var(--invite-accent),
    -8px 0 var(--invite-accent),
    0 8px var(--invite-accent),
    0 -8px var(--invite-accent);
  animation: dc-twinkle 1.6s steps(3, jump-none) infinite;
}
.dc-pixel-1 {
  top: -22px;
  left: 14%;
}
.dc-pixel-2 {
  top: -14px;
  right: 12%;
  animation-delay: -0.5s;
}
.dc-pixel-3 {
  bottom: -20px;
  left: 20%;
  animation-delay: -1s;
}
.dc-pixel-4 {
  bottom: -16px;
  right: 24%;
  animation-delay: -0.3s;
}
@keyframes dc-blink {
  50% {
    opacity: 0.15;
  }
}

/* --- Bulles: bubbles that rise around a round photo ----------------------------------------------------------------------- */
.dc-bubbles {
  width: min(100%, 340px);
  height: 360px;
  overflow: hidden;
}
.dc-bubbles-photo {
  position: absolute;
  top: 40px;
  left: 50%;
  width: 62%;
  aspect-ratio: 1;
  overflow: hidden;
  transform: translateX(-50%);
  border: 5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--invite-accent) 32%, transparent);
}
.dc-bubble {
  position: absolute;
  bottom: -10%;
  left: var(--x);
  width: var(--s, 28px);
  aspect-ratio: 1;
  border: 2px solid color-mix(in srgb, var(--invite-accent) 70%, #fff);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgb(255 255 255 / 85%), transparent 38%),
    color-mix(in srgb, var(--invite-accent) 14%, transparent);
  animation: dc-bubble-rise var(--t, 7s) ease-in infinite;
  animation-delay: var(--dl, 0s);
}
.dc-bubble-1 {
  --x: 4%;
  --s: 34px;
  --t: 7s;
  --y: 62%;
}
.dc-bubble-2 {
  --x: 18%;
  --s: 18px;
  --t: 6s;
  --dl: -2s;
  --y: 30%;
}
.dc-bubble-3 {
  --x: 30%;
  --s: 26px;
  --t: 8s;
  --dl: -4s;
  --y: 78%;
}
.dc-bubble-4 {
  --x: 44%;
  --s: 14px;
  --t: 5.5s;
  --dl: -1s;
  --y: 12%;
}
.dc-bubble-5 {
  --x: 58%;
  --s: 30px;
  --t: 7.5s;
  --dl: -3s;
  --y: 70%;
}
.dc-bubble-6 {
  --x: 70%;
  --s: 20px;
  --t: 6.5s;
  --dl: -5s;
  --y: 40%;
}
.dc-bubble-7 {
  --x: 82%;
  --s: 36px;
  --t: 9s;
  --dl: -2.5s;
  --y: 58%;
}
.dc-bubble-8 {
  --x: 92%;
  --s: 16px;
  --t: 6s;
  --dl: -4.5s;
  --y: 20%;
}
.dc-bubble-9 {
  --x: 50%;
  --s: 22px;
  --t: 8.5s;
  --dl: -6s;
  --y: 86%;
}
@keyframes dc-bubble-rise {
  0% {
    transform: translate(0, 0) scale(0.7);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  50% {
    transform: translate(10px, -190px) scale(1);
  }
  100% {
    transform: translate(-8px, -400px) scale(1.05);
    opacity: 0;
  }
}

/* --- Toile: a spider web behind a round photo, a spider that lowers itself on its thread ------------------------------------ */
.dc-web {
  width: min(100%, 340px);
  height: 360px;
}
.dc-web-net {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  aspect-ratio: 1;
  opacity: 0.42;
  transform: translate(-50%, -50%);
  animation: dc-web-breathe 5s ease-in-out infinite;
}
.dc-web-corner {
  position: absolute;
  top: -70px;
  left: -70px;
  width: 140px;
  aspect-ratio: 1;
  opacity: 0.7;
  clip-path: inset(50% 0 0 50%);
}
.dc-web-photo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 6px solid var(--invite-text);
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 6px var(--invite-accent),
    0 14px 26px rgb(0 0 0 / 25%);
  transform: translate(-50%, -50%);
}
.dc-web-drop {
  position: absolute;
  top: -6px;
  right: 9%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dc-web-thread {
  display: block;
  width: 2px;
  height: 70px;
  background: color-mix(in srgb, var(--invite-text) 70%, transparent);
  animation: dc-web-lower 4.6s ease-in-out infinite;
}
.dc-web-spider {
  width: 38px;
  height: 38px;
  background: var(--invite-text);
}
@keyframes dc-web-lower {
  0%,
  100% {
    height: 46px;
  }
  50% {
    height: 120px;
  }
}
@keyframes dc-web-breathe {
  50% {
    transform: translate(-50%, -50%) scale(1.05) rotate(2deg);
  }
}

/* --- Gratte-ciel: rooftops at night, lit windows, a hero swinging on a thread ----------------------------------------------- */
.dc-skyline {
  width: min(100%, 340px);
  height: 400px;
  overflow: hidden;
  border: 3px solid var(--invite-accent);
  border-radius: 22px;
  background:
    radial-gradient(
      ellipse at 50% 100%,
      color-mix(in srgb, var(--invite-accent) 45%, transparent),
      transparent 62%
    ),
    linear-gradient(180deg, #060b24, #16246b);
  box-shadow: 0 0 26px color-mix(in srgb, var(--invite-accent) 35%, transparent);
}
.dc-sky-moon {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffbe6, #f1e3a4);
  box-shadow: 0 0 22px rgb(255 244 190 / 55%);
}
.dc-swing {
  position: absolute;
  top: -4px;
  right: 22%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% 0;
  animation: dc-swing 3.8s ease-in-out infinite;
}
.dc-swing-thread {
  display: block;
  width: 2px;
  height: 92px;
  background: rgb(255 255 255 / 80%);
}
.dc-swing-spider {
  width: 34px;
  height: 34px;
  background: var(--invite-accent);
}
.dc-skyline-photo {
  position: absolute;
  top: 132px;
  left: 50%;
  z-index: 2;
  width: 58%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 5px solid #fff;
  background: #fff;
  box-shadow:
    0 0 0 4px var(--invite-accent),
    0 10px 24px rgb(0 0 0 / 45%);
  transform: translateX(-50%) rotate(2deg);
}
.dc-skyline-city {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 110px;
  background: #050816;
  -webkit-mask: url('/art/forme/ville.svg') center bottom / 100% 100% no-repeat;
  mask: url('/art/forme/ville.svg') center bottom / 100% 100% no-repeat;
}
.dc-window {
  position: absolute;
  z-index: 3;
  width: 6px;
  height: 8px;
  background: #ffd45a;
  box-shadow: 0 0 7px #ffd45a;
  animation: dc-window 3.2s ease-in-out infinite;
}
.dc-window-1 {
  bottom: 30px;
  left: 10px;
}
.dc-window-2 {
  bottom: 52px;
  left: 40px;
  animation-delay: -0.6s;
}
.dc-window-3 {
  bottom: 20px;
  left: 48px;
  animation-delay: -1.4s;
}
.dc-window-4 {
  right: 50px;
  bottom: 40px;
  animation-delay: -2s;
}
.dc-window-5 {
  right: 24px;
  bottom: 28px;
  animation-delay: -0.9s;
}
.dc-window-6 {
  bottom: 18px;
  left: 150px;
  animation-delay: -2.4s;
}
.dc-window-7 {
  right: 118px;
  bottom: 12px;
  animation-delay: -1.8s;
}
@keyframes dc-swing {
  0%,
  100% {
    transform: rotate(-38deg);
  }
  50% {
    transform: rotate(26deg);
  }
}
@keyframes dc-window {
  0%,
  100% {
    opacity: 1;
  }
  45% {
    opacity: 0.25;
  }
  60% {
    opacity: 0.9;
  }
}

/* Visitors who ask for less motion keep the still picture */
@media (prefers-reduced-motion: reduce) {
  .dc-candle .dc-flame,
  .dc-streamer,
  .dc-crown-art,
  .dc-crown-glint,
  .dc-disco-beams,
  .dc-disco-ball,
  .dc-gift,
  .dc-pop-burst,
  .dc-vinyl-disc,
  .dc-arcade-start,
  .dc-pixel,
  .dc-web-net,
  .dc-web-thread,
  .dc-swing,
  .dc-window {
    animation: none;
  }
  .dc-burst {
    animation: none;
    opacity: 0.85;
    transform: scale(0.9);
  }
  .dc-bit,
  .dc-bubble {
    animation: none;
    top: var(--y);
    bottom: auto;
    opacity: 0.85;
  }
}
