/* Ten decors made for children's cartoon birthday parties: an armoured hero (reactor, armour screen), racing cars (circuit,
   desert road), a ladybug (spots, night in Paris), a ninja (scroll, swirl) and rescue pups (paws, beacon).
   Same rules as the other decors (see invitation-decor.css and invitation-birthday.css): the drawings are original and
   generic (no logo, no character), shapes are painted by a CSS mask, every hero moves by itself and stops for visitors who
   ask for less motion. Animation names start with `toon-`. */

/* --- Shapes ------------------------------------------------------------------------------------------------------- */
.dc-m-voiture {
  --m: url('/art/forme/voiture.svg');
}
.dc-m-coccinelle {
  --m: url('/art/forme/coccinelle.svg');
}
.dc-m-tour {
  --m: url('/art/forme/tour.svg');
}
.dc-m-shuriken {
  --m: url('/art/forme/shuriken.svg');
}
.dc-m-spirale {
  --m: url('/art/forme/spirale.svg');
}
.dc-m-patte {
  --m: url('/art/forme/patte.svg');
}
.si-decor-reacteur {
  --m: url('/art/forme/eclair.svg');
}
.si-decor-armure,
.si-decor-sirene {
  --m: url('/art/forme/etoile.svg');
}
.si-decor-circuit,
.si-decor-route {
  --m: url('/art/forme/voiture.svg');
}
.si-decor-coccinelle {
  --m: url('/art/forme/coccinelle.svg');
}
.si-decor-paris {
  --m: url('/art/forme/tour.svg');
}
.si-decor-ninja {
  --m: url('/art/forme/shuriken.svg');
}
.si-decor-tourbillon {
  --m: url('/art/forme/spirale.svg');
}
.si-decor-patte {
  --m: url('/art/forme/patte.svg');
}

/* --- Pages and cards ---------------------------------------------------------------------------------------------- */
.invite-decor-armure,
.invite-decor-circuit,
.invite-decor-route,
.invite-decor-coccinelle,
.invite-decor-ninja,
.invite-decor-patte,
.invite-decor-sirene {
  --card-bg: color-mix(in srgb, var(--invite-bg) 45%, #fff);
  --card-fg: var(--invite-text);
  --card-head: var(--invite-accent);
}
.invite-decor-reacteur,
.invite-decor-paris,
.invite-decor-tourbillon {
  --card-bg: color-mix(in srgb, var(--invite-accent) 12%, transparent);
  --card-fg: var(--invite-text);
  --card-head: var(--invite-accent);
}
.invite-decor-armure .bn-intro h2,
.invite-decor-circuit .bn-intro h2,
.invite-decor-route .bn-intro h2,
.invite-decor-coccinelle .bn-intro h2,
.invite-decor-ninja .bn-intro h2,
.invite-decor-patte .bn-intro h2,
.invite-decor-sirene .bn-intro h2 {
  font-size: 44px;
  letter-spacing: 0;
  text-transform: none;
}
.invite-decor-reacteur .bn-intro h2,
.invite-decor-paris .bn-intro h2,
.invite-decor-tourbillon .bn-intro h2 {
  font-size: 34px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Réacteur: dark page, a warm glow from the top, cards that glow */
.invite-decor-reacteur {
  background-image:
    radial-gradient(
      ellipse at 50% 0,
      color-mix(in srgb, var(--invite-accent) 24%, transparent),
      transparent 58%
    ),
    linear-gradient(180deg, color-mix(in srgb, #b3121b 22%, transparent), transparent 640px);
}
.invite-decor-reacteur .bn-card {
  border: 1px solid color-mix(in srgb, var(--invite-accent) 60%, transparent);
  border-radius: 10px;
  box-shadow: 0 0 18px color-mix(in srgb, var(--invite-accent) 24%, transparent);
}
/* Armure: a fine grid, cards in a double frame */
.invite-decor-armure {
  background-image:
    linear-gradient(color-mix(in srgb, var(--invite-accent) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--invite-accent) 8%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
}
.invite-decor-armure .bn-card {
  border: 2px solid var(--invite-accent);
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 3px var(--invite-bg),
    inset 0 0 0 4px var(--invite-accent);
}
/* Circuit: a chequered page, cards like race tickets */
.invite-decor-circuit {
  background-image: conic-gradient(
    color-mix(in srgb, var(--invite-text) 7%, transparent) 25%,
    transparent 0 50%,
    color-mix(in srgb, var(--invite-text) 7%, transparent) 0 75%,
    transparent 0
  );
  background-size: 36px 36px;
}
.invite-decor-circuit .bn-card {
  border: 3px solid var(--invite-text);
  border-radius: 16px;
  box-shadow: 0 5px 0 var(--invite-accent);
}
/* Route du désert: the colours of a sunset, cards with a dashed line like the road */
.invite-decor-route {
  background-image: linear-gradient(
    180deg,
    color-mix(in srgb, var(--invite-accent) 22%, transparent),
    transparent 560px
  );
}
.invite-decor-route .bn-card {
  border: 2px dashed var(--invite-accent);
  border-radius: 12px;
}
/* Coccinelle: spots all over the page */
.invite-decor-coccinelle {
  background-image: radial-gradient(
    color-mix(in srgb, var(--invite-accent) 14%, transparent) 14%,
    transparent 15%
  );
  background-size: 48px 48px;
}
.invite-decor-coccinelle .bn-card {
  border: 3px solid var(--invite-text);
  border-radius: 22px;
  box-shadow: 5px 5px 0 var(--invite-accent);
}
/* Nuit à Paris: a dark violet sky, cards that glow softly */
.invite-decor-paris {
  background-image:
    radial-gradient(
      ellipse at 50% 0,
      color-mix(in srgb, var(--invite-accent) 22%, transparent),
      transparent 60%
    ),
    linear-gradient(180deg, color-mix(in srgb, #6b2a7a 30%, transparent), transparent 700px);
}
.invite-decor-paris .bn-card {
  border: 1px solid color-mix(in srgb, var(--invite-accent) 55%, transparent);
  border-radius: 14px;
  box-shadow: 0 0 16px color-mix(in srgb, var(--invite-accent) 26%, transparent);
}
/* Parchemin ninja: a paper grain, cards with a hard shadow */
.invite-decor-ninja {
  background-image: repeating-linear-gradient(
    45deg,
    color-mix(in srgb, var(--invite-accent) 7%, transparent) 0 2px,
    transparent 2px 14px
  );
}
.invite-decor-ninja .bn-card {
  border: 2px solid var(--invite-text);
  border-radius: 4px;
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--invite-accent) 75%, transparent);
}
/* Tourbillon: rings of energy rising from a corner */
.invite-decor-tourbillon {
  background-image: repeating-radial-gradient(
    circle at 100% 0,
    color-mix(in srgb, var(--invite-accent) 10%, transparent) 0 1px,
    transparent 1px 30px
  );
}
.invite-decor-tourbillon .bn-card {
  border: 1px solid color-mix(in srgb, var(--invite-accent) 55%, transparent);
  border-radius: 16px;
  box-shadow: 0 0 16px color-mix(in srgb, var(--invite-accent) 24%, transparent);
}
/* Pattes: big round dots, very rounded cards */
.invite-decor-patte {
  background-image: radial-gradient(
    color-mix(in srgb, var(--invite-accent) 12%, transparent) 22%,
    transparent 23%
  );
  background-size: 64px 64px;
}
.invite-decor-patte .bn-card {
  border: 3px solid var(--invite-accent);
  border-radius: 24px;
  box-shadow: 0 5px 0 color-mix(in srgb, var(--invite-text) 55%, transparent);
}
/* Gyrophare: warning stripes at the top of the page */
.invite-decor-sirene {
  background-image: repeating-linear-gradient(
    135deg,
    color-mix(in srgb, var(--invite-accent) 10%, transparent) 0 14px,
    transparent 14px 28px
  );
}
.invite-decor-sirene .bn-card {
  border: 3px solid var(--invite-accent);
  border-radius: 10px;
  box-shadow: 4px 4px 0 #2563eb;
}

/* A photo that is not there yet: a soft frame in the page's own colours, and the photo fills its frame */
.dc-reactor-photo:empty,
.dc-hud-photo:empty,
.dc-track-photo:empty,
.dc-desert-photo:empty,
.dc-ladybug-photo:empty,
.dc-parisnight-photo:empty,
.dc-scroll-photo:empty,
.dc-swirl-photo:empty,
.dc-paws-photo:empty,
.dc-siren-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-reactor-photo img,
.dc-hud-photo img,
.dc-track-photo img,
.dc-desert-photo img,
.dc-ladybug-photo img,
.dc-parisnight-photo img,
.dc-scroll-photo img,
.dc-swirl-photo img,
.dc-paws-photo img,
.dc-siren-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Réacteur: rings of light that turn around a round photo ------------------------------------------------------------- */
.dc-reactor {
  width: min(100%, 340px);
  aspect-ratio: 1;
}
.dc-reactor-glow {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(circle, #b8f6ff 0, rgb(90 220 255 / 55%) 38%, transparent 70%);
  filter: blur(6px);
  animation: toon-pulse 2.4s ease-in-out infinite;
}
.dc-reactor-ring {
  position: absolute;
  border-radius: 50%;
}
.dc-reactor-ring-1 {
  inset: 0;
  border: 3px dashed var(--invite-accent);
  animation: toon-spin 26s linear infinite;
}
.dc-reactor-ring-2 {
  inset: 8%;
  background: repeating-conic-gradient(var(--invite-accent) 0 3deg, transparent 3deg 12deg);
  -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%, #000 74%, transparent 75%);
  mask: radial-gradient(circle, transparent 66%, #000 67%, #000 74%, transparent 75%);
  animation: toon-spin 18s linear infinite reverse;
}
.dc-reactor-ring-3 {
  inset: 19%;
  border: 2px solid #b8f6ff;
  box-shadow:
    0 0 18px #6be9ff,
    inset 0 0 18px #6be9ff;
  animation: toon-pulse 2.4s ease-in-out infinite;
}
.dc-reactor-photo {
  position: absolute;
  inset: 25%;
  overflow: hidden;
  border: 5px solid var(--invite-accent);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 22px rgb(108 233 255 / 55%);
}
.dc-reactor-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d8fbff;
  box-shadow: 0 0 10px #6be9ff;
  animation: toon-twinkle 2s ease-in-out infinite;
}
.dc-reactor-spark-1 {
  top: 6%;
  left: 24%;
}
.dc-reactor-spark-2 {
  top: 18%;
  right: 8%;
  animation-delay: -0.6s;
}
.dc-reactor-spark-3 {
  bottom: 10%;
  left: 14%;
  animation-delay: -1.2s;
}
.dc-reactor-spark-4 {
  right: 22%;
  bottom: 4%;
  animation-delay: -1.7s;
}

/* --- Armure: a head-up display ------------------------------------------------------------------------------------------- */
.dc-hud {
  position: relative;
  width: min(100%, 340px);
  padding: 14px 16px 14px;
  border: 2px solid var(--invite-accent);
  background:
    linear-gradient(rgb(255 255 255 / 4%) 50%, transparent 50%) 0 0 / 100% 4px,
    #140608;
  box-shadow: 0 0 22px color-mix(in srgb, var(--invite-accent) 40%, transparent);
  color: #ffd36b;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  overflow: hidden;
}
.dc-hud-top,
.dc-hud-bottom {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.dc-hud-top {
  margin-bottom: 12px;
}
.dc-hud-photo {
  position: relative;
  width: 74%;
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 5px;
  background: linear-gradient(160deg, #ffd36b, var(--invite-accent));
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.dc-hud-photo img {
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.dc-hud-scan {
  position: absolute;
  right: 16px;
  left: 16px;
  top: 40px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #6be9ff, transparent);
  box-shadow: 0 0 10px #6be9ff;
  animation: toon-scan 3.4s linear infinite;
}
.dc-hud-bottom {
  align-items: center;
  margin-top: 14px;
}
.dc-hud-bottom span {
  white-space: nowrap;
}
.dc-hud-bar {
  display: block;
  flex: 0 0 22%;
  height: 10px;
  border: 1px solid #ffd36b;
}
.dc-hud-bar b {
  display: block;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(90deg, #ffd36b 0 8px, transparent 8px 10px);
  animation: toon-charge 3.6s ease-in-out infinite;
}
.dc-hud-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid #6be9ff;
}
.dc-hud-corner-1 {
  top: 6px;
  left: 6px;
  border-width: 2px 0 0 2px;
}
.dc-hud-corner-2 {
  top: 6px;
  right: 6px;
  border-width: 2px 2px 0 0;
}
.dc-hud-corner-3 {
  bottom: 6px;
  left: 6px;
  border-width: 0 0 2px 2px;
}
.dc-hud-corner-4 {
  right: 6px;
  bottom: 6px;
  border-width: 0 2px 2px 0;
}

/* --- Circuit: a chequered flag, a windscreen photo, cars that drive by ---------------------------------------------------- */
.dc-track {
  position: relative;
  width: min(100%, 340px);
  padding-bottom: 96px;
  overflow: hidden;
  border-radius: 18px;
  background: color-mix(in srgb, var(--invite-accent) 10%, var(--invite-bg));
}
.dc-track-flag {
  display: block;
  height: 22px;
  background: conic-gradient(#111 25%, #fff 0 50%, #111 0 75%, #fff 0) 0 0 / 22px 22px;
  animation: toon-flag 1.4s linear infinite;
}
.dc-track-photo {
  width: 78%;
  aspect-ratio: 4 / 3;
  margin: 16px auto 0;
  overflow: hidden;
  border: 6px solid var(--invite-text);
  border-radius: 28px 28px 14px 14px;
  background: #fff;
  box-shadow: 0 8px 0 var(--invite-accent);
}
.dc-track-road {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 74px;
  border-top: 5px solid transparent;
  border-image: repeating-linear-gradient(90deg, #d62718 0 24px, #fff 24px 48px) 5;
  background: #2b2f3a;
}
.dc-track-road i {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, #fff 0 28px, transparent 28px 56px);
  animation: toon-road 0.8s linear infinite;
}
.dc-track-car {
  position: absolute;
  left: -90px;
  width: 78px;
  height: 32px;
  animation: toon-drive 5.2s linear infinite;
}
.dc-track-car-1 {
  bottom: 8px;
  background: var(--invite-accent);
}
.dc-track-car-2 {
  bottom: 42px;
  background: #f5c518;
  animation-duration: 7.4s;
  animation-delay: -2.6s;
}

/* --- Route du désert: a sunset, mesas, a road that scrolls, a road sign -------------------------------------------------- */
.dc-desert {
  position: relative;
  width: min(100%, 340px);
  height: 400px;
  overflow: hidden;
  border: 3px solid var(--invite-accent);
  border-radius: 22px;
  background: linear-gradient(180deg, #5fa8e8 0%, #ffd7a0 44%, #ff9a4d 68%, #c2410c 100%);
}
.dc-desert-sun {
  position: absolute;
  top: 164px;
  left: 12%;
  width: 72px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff6c9, #ffb347);
  box-shadow: 0 0 36px rgb(255 190 90 / 70%);
  animation: toon-sun 6s ease-in-out infinite;
}
.dc-desert-mesas {
  position: absolute;
  right: 0;
  bottom: 110px;
  left: 0;
  height: 100px;
  background: #8a2f0b;
  -webkit-mask: url('/art/forme/desert.svg') center bottom / 100% 100% no-repeat;
  mask: url('/art/forme/desert.svg') center bottom / 100% 100% no-repeat;
}
.dc-desert-photo {
  position: absolute;
  top: 30px;
  left: 50%;
  z-index: 2;
  width: 60%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 0 0 4px var(--invite-accent),
    0 10px 20px rgb(0 0 0 / 30%);
  transform: translateX(-50%) rotate(-2deg);
}
.dc-desert-road {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 120px;
  background: #3a2a24;
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
}
.dc-desert-road i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 2px);
  width: 4px;
  background: repeating-linear-gradient(180deg, #ffd166 0 14px, transparent 14px 30px);
  animation: toon-road-v 0.6s linear infinite;
}
.dc-desert-car {
  position: absolute;
  bottom: 14px;
  left: -90px;
  z-index: 3;
  width: 84px;
  height: 34px;
  background: var(--invite-accent);
  animation: toon-drive 6.4s linear infinite;
}

/* --- Coccinelle: a red shell with spots around the photo, ladybugs that wander -------------------------------------------- */
.dc-ladybug {
  width: min(100%, 340px);
  aspect-ratio: 1;
}
.dc-ladybug-shell {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    color-mix(in srgb, var(--invite-accent) 70%, #fff) 0,
    var(--invite-accent) 55%,
    color-mix(in srgb, var(--invite-accent) 70%, #000) 100%
  );
  box-shadow: 0 14px 24px rgb(0 0 0 / 22%);
  animation: toon-breathe 4s ease-in-out infinite;
}
.dc-ladybug-spot {
  position: absolute;
  width: 10%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #1a1a1a;
}
.dc-ladybug-spot-1 {
  top: 4%;
  left: 45%;
}
.dc-ladybug-spot-2 {
  top: 19%;
  left: 77%;
  width: 9%;
}
.dc-ladybug-spot-3 {
  top: 54%;
  left: 85%;
  width: 11%;
}
.dc-ladybug-spot-4 {
  top: 82%;
  left: 63%;
  width: 9%;
}
.dc-ladybug-spot-5 {
  top: 82%;
  left: 27%;
  width: 11%;
}
.dc-ladybug-spot-6 {
  top: 54%;
  left: 5%;
  width: 9%;
}
.dc-ladybug-spot-7 {
  top: 19%;
  left: 13%;
  width: 11%;
}
.dc-ladybug-photo {
  position: absolute;
  inset: 23%;
  overflow: hidden;
  border: 6px solid #1a1a1a;
  border-radius: 50%;
  background: #fff;
}
.dc-ladybug-bug {
  position: absolute;
  z-index: 2;
  width: 34px;
  height: 34px;
  background: #1a1a1a;
  animation: toon-crawl 5s ease-in-out infinite;
}
.dc-ladybug-bug-1 {
  --r: 20deg;
  --dx: 26px;
  --dy: 14px;
  top: 0;
  left: 10%;
}
.dc-ladybug-bug-2 {
  --r: 110deg;
  --dx: -10px;
  --dy: 30px;
  top: 40%;
  right: -2%;
  animation-delay: -1.7s;
}
.dc-ladybug-bug-3 {
  --r: 200deg;
  --dx: -28px;
  --dy: -12px;
  bottom: 2%;
  left: 40%;
  animation-delay: -3.1s;
}

/* --- Nuit à Paris: rooftops, a tall iron tower, stars, a yo-yo that swings --------------------------------------------------- */
.dc-parisnight {
  position: relative;
  width: min(100%, 340px);
  height: 400px;
  overflow: hidden;
  border: 3px solid var(--invite-accent);
  border-radius: 22px;
  background: linear-gradient(180deg, #0d0626, #2a1458 60%, #6b2a7a 100%);
  box-shadow: 0 0 26px color-mix(in srgb, var(--invite-accent) 32%, transparent);
}
.dc-paris-star {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #fff;
  animation: toon-twinkle 2.6s ease-in-out infinite;
}
.dc-paris-star-1 {
  top: 24px;
  left: 14%;
}
.dc-paris-star-2 {
  top: 60px;
  left: 46%;
  animation-delay: -0.7s;
}
.dc-paris-star-3 {
  top: 30px;
  right: 18%;
  animation-delay: -1.3s;
}
.dc-paris-star-4 {
  top: 96px;
  right: 6%;
  animation-delay: -1.9s;
}
.dc-paris-star-5 {
  top: 110px;
  left: 6%;
  animation-delay: -2.3s;
}
.dc-paris-tower {
  position: absolute;
  right: 5%;
  bottom: 80px;
  width: 100px;
  height: 250px;
  background: linear-gradient(0deg, #1a0b3d, #4a2a8a);
}
.dc-paris-roofs {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 110px;
  background: #0b041d;
  -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-paris-yoyo {
  position: absolute;
  top: -4px;
  left: 16%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% 0;
  animation: toon-yoyo 3.4s ease-in-out infinite;
}
.dc-paris-thread {
  display: block;
  width: 2px;
  height: 96px;
  background: #ffd0dc;
}
.dc-paris-ball {
  display: block;
  width: 32px;
  height: 32px;
  border: 2px solid #fff;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #111 0 3px, transparent 4px),
    radial-gradient(circle at 70% 38%, #111 0 3px, transparent 4px),
    radial-gradient(circle at 46% 74%, #111 0 3px, transparent 4px), var(--invite-accent);
}
.dc-parisnight-photo {
  position: absolute;
  top: 132px;
  left: 8%;
  z-index: 2;
  width: 58%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 0 0 4px var(--invite-accent),
    0 10px 24px rgb(0 0 0 / 45%);
  transform: rotate(-2deg);
}

/* --- Parchemin ninja: a scroll that unrolls, throwing stars that spin ------------------------------------------------------ */
.dc-scroll {
  position: relative;
  width: min(100%, 320px);
  padding: 0 4px;
}
.dc-scroll-rod {
  position: relative;
  z-index: 2;
  display: block;
  height: 16px;
  border-radius: 8px;
  background: linear-gradient(180deg, #9a6a35, #5b3a1a 55%, #9a6a35);
  box-shadow: 0 4px 8px rgb(0 0 0 / 25%);
}
.dc-scroll-paper {
  position: relative;
  margin: 0 12px;
  padding: 22px 18px 28px;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 10%), transparent 8%, transparent 92%, rgb(0 0 0 / 10%)), #f6e3b4;
  animation: toon-unroll 1.4s ease-out both;
}
.dc-scroll-photo {
  aspect-ratio: 1;
  overflow: hidden;
  border: 5px solid var(--invite-accent);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 0 0 3px #5b3a1a;
}
.dc-scroll-seal {
  position: absolute;
  right: 12px;
  bottom: 8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff7a68, #b3261e);
  box-shadow:
    inset 0 0 0 5px rgb(255 255 255 / 18%),
    0 3px 6px rgb(0 0 0 / 35%);
}
.dc-scroll-star {
  position: absolute;
  z-index: 3;
  background: #434b5e;
  animation: toon-spin 5s linear infinite;
}
.dc-scroll-star-1 {
  top: 34px;
  left: -8px;
  width: 34px;
  height: 34px;
}
.dc-scroll-star-2 {
  top: 46%;
  right: -10px;
  width: 26px;
  height: 26px;
  animation-direction: reverse;
  animation-duration: 4s;
}
.dc-scroll-star-3 {
  bottom: 40px;
  left: 2px;
  width: 30px;
  height: 30px;
  animation-duration: 6.4s;
}

/* --- Tourbillon: spirals of energy that turn around a round photo, stars that orbit ------------------------------------------- */
.dc-swirl {
  width: min(100%, 340px);
  aspect-ratio: 1;
}
.dc-swirl-arm {
  position: absolute;
  inset: 0;
}
.dc-swirl-arm-1 {
  background: var(--invite-accent);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--invite-accent) 70%, transparent));
  animation: toon-spin 14s linear infinite;
}
.dc-swirl-arm-2 {
  inset: 7%;
  background: #38bdf8;
  opacity: 0.85;
  filter: drop-shadow(0 0 6px rgb(56 189 248 / 70%));
  animation: toon-spin 20s linear infinite reverse;
}
.dc-swirl-photo {
  position: absolute;
  inset: 26%;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 5px var(--invite-accent),
    0 0 30px color-mix(in srgb, var(--invite-accent) 55%, transparent);
}
.dc-swirl-orbit {
  position: absolute;
  inset: 0;
  animation: toon-spin 8s linear infinite;
}
.dc-swirl-orbit-2 {
  inset: 9%;
  animation-duration: 11s;
  animation-direction: reverse;
}
.dc-swirl-orbit-3 {
  inset: 17%;
  animation-duration: 6s;
}
.dc-swirl-star {
  position: absolute;
  top: -2px;
  left: calc(50% - 12px);
  width: 24px;
  height: 24px;
  background: #e5e9f2;
}

/* --- Pattes: a round badge, paw prints that walk by, a star -------------------------------------------------------------------- */
.dc-paws {
  width: min(100%, 340px);
  aspect-ratio: 1;
}
.dc-paws-photo {
  position: absolute;
  inset: 18%;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 7px var(--invite-accent),
    0 12px 24px rgb(0 0 0 / 22%);
}
.dc-paws-star {
  position: absolute;
  top: 2%;
  left: calc(50% - 28px);
  z-index: 2;
  width: 56px;
  height: 56px;
  background: #ffc300;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 30%));
  animation: toon-pulse 2.2s ease-in-out infinite;
}
.dc-paws-print {
  position: absolute;
  width: 9.5%;
  aspect-ratio: 1;
  opacity: 0.18;
  animation: toon-step 3.6s ease-in-out infinite;
}
.dc-paws-print-1 {
  top: 70%;
  left: 1%;
  transform: rotate(-14deg);
}
.dc-paws-print-2 {
  top: 50%;
  left: 2%;
  transform: rotate(12deg);
  animation-delay: 0.5s;
}
.dc-paws-print-3 {
  top: 30%;
  left: 1%;
  transform: rotate(-12deg);
  animation-delay: 1s;
}
.dc-paws-print-4 {
  top: 66%;
  right: 1%;
  transform: rotate(14deg);
  animation-delay: 1.5s;
}
.dc-paws-print-5 {
  top: 46%;
  right: 2%;
  transform: rotate(-10deg);
  animation-delay: 2s;
}
.dc-paws-print-6 {
  top: 26%;
  right: 1%;
  transform: rotate(12deg);
  animation-delay: 2.5s;
}

/* --- Gyrophare: red and blue lights that take turns, beams, a porthole photo ---------------------------------------------------- */
.dc-siren {
  width: min(100%, 340px);
  aspect-ratio: 1;
}
.dc-siren-beams {
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from 150deg at 50% 0,
    rgb(255 70 70 / 50%) 0 30deg,
    rgb(70 130 255 / 50%) 30deg 60deg,
    transparent 60deg
  );
  -webkit-mask: radial-gradient(circle at 50% 0, #000, transparent 78%);
  mask: radial-gradient(circle at 50% 0, #000, transparent 78%);
  transform-origin: 50% 0;
  animation: toon-sweep 3s ease-in-out infinite alternate;
}
.dc-siren-lamp {
  position: absolute;
  top: 0;
  width: 54px;
  height: 36px;
  border-radius: 54px 54px 6px 6px;
  animation: toon-flash 1s steps(1) infinite;
}
.dc-siren-lamp-red {
  left: calc(50% - 60px);
  background: radial-gradient(circle at 50% 80%, #ff9a9a, #e11d2e);
  box-shadow: 0 0 22px #ff4d5a;
}
.dc-siren-lamp-blue {
  left: calc(50% + 6px);
  background: radial-gradient(circle at 50% 80%, #a9c4ff, #1d4ed8);
  box-shadow: 0 0 22px #4c7dff;
  animation-delay: -0.5s;
}
.dc-siren-photo {
  position: absolute;
  top: 28%;
  left: 50%;
  width: 62%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 10px solid #b8c0cc;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 3px #4b5566,
    inset 0 0 0 3px #7a8494,
    0 14px 24px rgb(0 0 0 / 25%);
  transform: translateX(-50%);
}

/* --- Movements --------------------------------------------------------------------------------------------------------------------- */
@keyframes toon-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes toon-pulse {
  50% {
    opacity: 0.6;
    transform: scale(1.06);
  }
}
@keyframes toon-breathe {
  50% {
    transform: scale(1.03);
  }
}
@keyframes toon-twinkle {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.6);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}
@keyframes toon-scan {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  10%,
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(290px);
    opacity: 0;
  }
}
@keyframes toon-charge {
  0%,
  100% {
    width: 25%;
  }
  60% {
    width: 100%;
  }
}
@keyframes toon-flag {
  to {
    background-position-x: 22px;
  }
}
@keyframes toon-road {
  to {
    background-position-x: -56px;
  }
}
@keyframes toon-road-v {
  to {
    background-position-y: 30px;
  }
}
@keyframes toon-drive {
  to {
    transform: translateX(470px);
  }
}
@keyframes toon-sun {
  50% {
    transform: translateY(8px) scale(1.04);
  }
}
@keyframes toon-crawl {
  0%,
  100% {
    transform: translate(0, 0) rotate(var(--r));
  }
  50% {
    transform: translate(var(--dx), var(--dy)) rotate(calc(var(--r) + 25deg));
  }
}
@keyframes toon-yoyo {
  0%,
  100% {
    transform: rotate(32deg);
  }
  50% {
    transform: rotate(-22deg);
  }
}
@keyframes toon-unroll {
  from {
    clip-path: inset(46% 0 46% 0);
  }
  to {
    clip-path: inset(0);
  }
}
@keyframes toon-step {
  0%,
  100% {
    opacity: 0.15;
  }
  20%,
  45% {
    opacity: 1;
  }
}
@keyframes toon-sweep {
  from {
    transform: rotate(-12deg);
  }
  to {
    transform: rotate(12deg);
  }
}
@keyframes toon-flash {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

/* Visitors who ask for less motion keep the still picture */
@media (prefers-reduced-motion: reduce) {
  .dc-reactor-glow,
  .dc-reactor-ring,
  .dc-reactor-spark,
  .dc-hud-scan,
  .dc-hud-bar b,
  .dc-track-flag,
  .dc-track-road i,
  .dc-track-car,
  .dc-desert-sun,
  .dc-desert-road i,
  .dc-desert-car,
  .dc-ladybug-shell,
  .dc-ladybug-bug,
  .dc-paris-star,
  .dc-paris-yoyo,
  .dc-scroll-paper,
  .dc-scroll-star,
  .dc-swirl-arm,
  .dc-swirl-orbit,
  .dc-paws-star,
  .dc-paws-print,
  .dc-siren-beams,
  .dc-siren-lamp {
    animation: none;
  }
  .dc-track-car,
  .dc-desert-car {
    left: 18%;
  }
  .dc-paws-print {
    opacity: 0.8;
  }
  .dc-reactor-spark,
  .dc-paris-star {
    opacity: 0.9;
  }
}
