.fx-scanlines {
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0 2px, transparent 2px 5px);
}

.fx-veil {
  background: radial-gradient(circle, transparent 35%, #000 100%);
}

.fx-snow i {
  position: absolute;
  top: -2vh;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: fx-fall linear infinite;
}

@keyframes fx-fall {
  to {
    transform: translateY(104vh);
  }
}
.fx-flock img {
  position: absolute;
  left: 0;
  width: 12vmin;
  animation: fx-stream linear infinite;
}
.fx-flock.xbright img {
  filter: brightness(1.8);
}
.fx-flock.xxbright img {
  filter: brightness(10) contrast(3);
}

@keyframes fx-stream {
  from {
    transform: translateX(-25vw);
  }
  to {
    transform: translateX(125vw);
  }
}
.fx-holes div {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  background: #fff;
  opacity: 0;
  transition: opacity 1.2s ease, filter 0.25s;
  will-change: transform;
}
.fx-holes div.on {
  opacity: 1;
}
.fx-holes i {
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: center/cover no-repeat;
}
.fx-holes img {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  object-fit: contain;
}

.fx-rise img {
  position: absolute;
  top: 100%;
  width: 10vmin;
  transition: filter 0.25s;
  animation: fx-rise linear infinite, fx-sway ease-in-out infinite alternate;
}

@keyframes fx-rise {
  to {
    transform: translateY(-130vh);
  }
}
@keyframes fx-sway {
  from {
    translate: -4vw 0;
  }
  to {
    translate: 4vw 0;
  }
}
.fx-holes .flare, .fx-rise .flare {
  filter: brightness(10) contrast(3);
}

.fx-figures.mono img, .fx-spiral.mono img, .fx-stars.mono img, .fx-bloom.mono img, .fx-boxes.mono img, .fx-carry.mono img {
  filter: grayscale(1) contrast(1.15);
}
.fx-figures.xbright img, .fx-spiral.xbright img, .fx-stars.xbright img, .fx-bloom.xbright img, .fx-boxes.xbright img, .fx-carry.xbright img {
  filter: brightness(1.8);
}
.fx-figures.xxbright img, .fx-spiral.xxbright img, .fx-stars.xxbright img, .fx-bloom.xxbright img, .fx-boxes.xxbright img, .fx-carry.xxbright img {
  filter: brightness(10) contrast(3);
}

.fx-carry img, .fx-carry i {
  position: absolute;
  left: 0;
  top: 0;
  transition: translate var(--go, 0s) ease-in-out;
}
.fx-carry img.held {
  z-index: 1;
}
.fx-carry i {
  z-index: 2;
  width: 5vmin;
  height: 5vmin;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 1.5v19l5-4.8 3.1 7 2.9-1.3-3.1-6.9H19z' fill='%23000' stroke='%23fff' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 0 0/contain no-repeat;
}
.fx-carry i.grab {
  scale: 0.85;
}

.fx-figures img {
  position: absolute;
  transition: filter 2s;
}
.fx-figures img.free {
  left: 0;
  top: 0;
  transition: translate var(--go, 0s) ease-in-out, filter 2s;
}
.fx-figures img.gray {
  filter: grayscale(1) contrast(1.15);
}
.fx-figures .flare {
  filter: brightness(10) contrast(3);
}

.fx-spiral div {
  position: absolute;
  inset: 0;
  transition: opacity 2.4s;
}
.fx-spiral div.off {
  opacity: 0;
}
.fx-spiral img {
  position: absolute;
  width: 9vmin;
  translate: -50% -50%;
  opacity: 0;
  transition: opacity 1.2s;
}
.fx-spiral img.on {
  opacity: 1;
}
.fx-spiral img.loose {
  left: 0;
  top: 0;
}

@keyframes fx-turn {
  to {
    rotate: 360deg;
  }
}
@keyframes fx-breathe {
  from {
    scale: 1;
  }
  to {
    scale: 0.25;
  }
}
.fx-stars img {
  position: absolute;
  animation: fx-twinkle ease-in-out infinite alternate;
}
.fx-stars i {
  position: absolute;
  top: 0;
  width: 22vmin;
  height: 0.5vmin;
  border-radius: 50%;
  background: linear-gradient(to right, #fff, transparent);
}

@keyframes fx-twinkle {
  from {
    opacity: 0.15;
    scale: 0.7;
  }
  to {
    opacity: 1;
    scale: 1.15;
  }
}
.fx-bloom img {
  position: absolute;
  translate: -50% -50%;
  scale: 0;
  transition: scale 2.4s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.fx-bloom img.on {
  scale: 1;
}

.fx-boxes div {
  position: absolute;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.2s, left 5s ease-in-out, top 5s ease-in-out, width 5s ease-in-out, height 5s ease-in-out;
}
.fx-boxes div.on {
  opacity: 1;
}
.fx-boxes img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fx-words span {
  position: absolute;
  font: 400 6vmin/1.1 "Director", serif;
  color: #fff;
  transition: left 3s, top 3s;
}
.fx-words p {
  position: absolute;
  inset: 0;
  margin: 0;
  font: 400 5vmin/1.15 "Director", serif;
  color: #fff;
  transition: opacity 1.4s;
}
.fx-words p.off {
  opacity: 0;
}
.fx-words p.reading {
  inset: auto 8% auto 8%;
  text-align: center;
}
.fx-words p.spiral b, .fx-words p.cloud b {
  position: absolute;
  translate: -50% -50%;
  white-space: nowrap;
}
.fx-words b {
  font-weight: 400;
  opacity: 0;
  transition: opacity 0.7s;
}
.fx-words b.on {
  opacity: 1;
}

/* Lightweight patterns shared by side screens and phones. */
.fx-dots {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0 3px, transparent 4px);
  background-size: 36px 36px;
}

.fx-stripes {
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0 12px, transparent 12px 32px);
}

.fx-checker {
  background-image: conic-gradient(rgba(255, 255, 255, 0.65) 25%, transparent 0 50%, rgba(255, 255, 255, 0.65) 0 75%, transparent 0);
  background-size: 64px 64px;
}
