@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/web/fonts/cormorant-garamond-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/web/fonts/cormorant-garamond-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/web/fonts/pt-serif-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/web/fonts/pt-serif-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "PT Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/web/fonts/pt-serif-400-italic-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "PT Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/web/fonts/pt-serif-400-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/web/fonts/pt-serif-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/web/fonts/pt-serif-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --champagne: #f7e7c6;
  --ivory: #fff8e8;
  --gold: #d6a64a;
  --gold-light: #f3d58a;
  --rose: #e8a9b6;
  --plum: #4a2940;
  --night: #142244;
  --ink: #3b2a2e;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", Times, serif;
  --font-body: "PT Serif", Georgia, "Times New Roman", Times, serif;
  font-family: var(--font-body);
  font-synthesis: none;
  background: #1d1220;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #1d1220;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  margin: 0;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: default;
}

[hidden] {
  display: none !important;
}

button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--ivory);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(74, 41, 64, 0.82), 0 0 24px rgba(243, 213, 138, 0.85);
}

.ambient {
  position: fixed;
  z-index: 0;
  inset: -44px;
  background-color: #211525;
  background-image:
    linear-gradient(rgba(20, 12, 24, 0.58), rgba(20, 12, 24, 0.76)),
    url("../assets/web/backgrounds/scene-01-title-paradise-garden.webp");
  background-position: center;
  background-size: cover;
  filter: blur(30px) saturate(0.78) brightness(0.46);
  transform: scale(1.08);
}

.app {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  place-items: center;
  overflow: hidden;
}

.stage {
  position: relative;
  width: 100vw;
  max-width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background-color: #4b3040;
  background-image: url("../assets/web/backgrounds/scene-01-title-paradise-garden.webp");
  background-position: center;
  background-size: cover;
  box-shadow: 0 0 0 1px rgba(243, 213, 138, 0.35), 0 20px 70px rgba(10, 4, 13, 0.72);
  touch-action: pan-y;
}

.slides,
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slides {
  z-index: 1;
  overflow: hidden;
}

.slide {
  --card-width: min(88%, 360px);
  --card-bg: rgba(255, 248, 232, 0.79);
  --card-border: rgba(243, 213, 138, 0.88);
  --card-text: var(--ink);
  --frame-opacity: 0.42;
  display: grid;
  visibility: hidden;
  padding: calc(var(--safe-top) + 78px) calc(var(--safe-right) + 20px)
    calc(var(--safe-bottom) + 74px) calc(var(--safe-left) + 20px);
  place-items: center;
  overflow: hidden;
  opacity: 0;
  color: var(--card-text);
  transition: opacity 900ms ease, visibility 0s linear 900ms;
}

.slide::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(34, 19, 30, 0.08) 0%,
    transparent 25%,
    transparent 68%,
    rgba(38, 18, 28, 0.3) 100%
  );
  content: "";
  pointer-events: none;
}

.slide.is-active,
.slide.is-entering,
.slide.is-exiting {
  visibility: visible;
  transition-delay: 0s;
}

.slide.is-active,
.slide.is-entering {
  z-index: 2;
  opacity: 1;
}

.slide.is-entering {
  animation: scene-reveal 900ms ease both;
}

.slide.is-exiting {
  z-index: 1;
  opacity: 0;
}

.slide__background {
  position: absolute;
  z-index: 0;
  inset: -2%;
  width: 104%;
  height: 104%;
  max-width: none;
  object-fit: cover;
  object-position: var(--background-position, center);
  background-position: var(--background-position, center);
  background-size: cover;
  transform: scale(1);
  animation: ken-burns 15s ease-in-out infinite alternate;
  pointer-events: none;
  user-select: none;
}

.slide__frame {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: var(--frame-opacity);
  pointer-events: none;
  user-select: none;
}

.butterflies {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  opacity: 0.88;
  pointer-events: none;
  transition: opacity 500ms ease;
}

.stage.is-loading .butterflies {
  opacity: 0;
}

.butterfly {
  --butterfly-size: clamp(15px, 5vw, 21px);
  --flap-duration: 430ms;
  --wing-light: #fff4da;
  --wing-main: #e8a9b6;
  --wing-deep: #814766;
  position: absolute;
  width: var(--butterfly-size);
  height: var(--butterfly-size);
  opacity: 0;
  filter: drop-shadow(0 2px 3px rgba(48, 22, 39, 0.36));
  transform-style: preserve-3d;
  will-change: left, top, transform, opacity;
}

.butterfly::after {
  position: absolute;
  z-index: 0;
  top: 48%;
  left: -24%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 239, 190, 0.9);
  box-shadow:
    -5px 2px 0 rgba(255, 239, 190, 0.5),
    -10px -1px 0 rgba(255, 248, 232, 0.22);
  content: "";
}

.butterfly--one {
  animation: butterfly-flight-one 18s linear -3s infinite;
}

.butterfly--two {
  --butterfly-size: clamp(13px, 4.2vw, 18px);
  --flap-duration: 360ms;
  --wing-light: #fff0bd;
  --wing-main: #d6a64a;
  --wing-deep: #854d4f;
  animation: butterfly-flight-two 24s linear -12s infinite;
}

.butterfly--three {
  --butterfly-size: clamp(14px, 4.6vw, 19px);
  --flap-duration: 510ms;
  --wing-light: #e5f6ed;
  --wing-main: #91b9aa;
  --wing-deep: #596987;
  animation: butterfly-flight-three 29s linear -20s infinite;
}

.butterfly__wing {
  position: absolute;
  z-index: 1;
  top: 9%;
  width: 52%;
  height: 78%;
  border: 1px solid rgba(255, 248, 232, 0.5);
  background: linear-gradient(145deg, var(--wing-light), var(--wing-main) 54%, var(--wing-deep));
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.36);
  backface-visibility: hidden;
}

.butterfly__wing--left {
  right: 49%;
  border-radius: 82% 42% 68% 36%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.88) 0 8%, transparent 30%),
    linear-gradient(145deg, var(--wing-light), var(--wing-main) 54%, var(--wing-deep));
  transform-origin: right center;
  animation: butterfly-flap-left var(--flap-duration) ease-in-out infinite alternate;
}

.butterfly__wing--right {
  left: 49%;
  border-radius: 42% 82% 36% 68%;
  background:
    radial-gradient(circle at 66% 28%, rgba(255, 255, 255, 0.88) 0 8%, transparent 30%),
    linear-gradient(215deg, var(--wing-light), var(--wing-main) 54%, var(--wing-deep));
  transform-origin: left center;
  animation: butterfly-flap-right var(--flap-duration) ease-in-out infinite alternate;
}

.butterfly__body {
  position: absolute;
  z-index: 2;
  top: 18%;
  left: 50%;
  width: 2px;
  height: 66%;
  border-radius: 999px;
  background: linear-gradient(#f3d58a, #4a2940 34%, #281526);
  box-shadow: 0 0 2px rgba(255, 248, 232, 0.74);
  transform: translateX(-50%);
}

.butterfly__body::before {
  position: absolute;
  top: -2px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #4a2940;
  content: "";
  transform: translateX(-50%);
}

.butterfly,
.butterfly__wing {
  animation-play-state: paused;
}

.slide.is-active .butterfly,
.slide.is-active .butterfly__wing,
.slide.is-entering .butterfly,
.slide.is-entering .butterfly__wing,
.slide.is-exiting .butterfly,
.slide.is-exiting .butterfly__wing {
  animation-play-state: running;
}

.slide__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--card-width);
  max-height: 100%;
  padding: clamp(22px, 5vh, 38px) clamp(18px, 5.5vw, 30px);
  border: 1px solid var(--card-border);
  border-radius: clamp(20px, 6vw, 28px);
  background: var(--card-bg);
  box-shadow:
    inset 0 0 28px rgba(255, 248, 232, 0.22),
    0 16px 42px rgba(49, 25, 34, 0.24);
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px) saturate(1.06);
  -webkit-backdrop-filter: blur(8px) saturate(1.06);
}

.slide__eyebrow,
.slide__title,
.slide__body,
.slide__signature {
  margin: 0;
}

.slide__eyebrow {
  margin-bottom: clamp(10px, 2.4vh, 18px);
  color: #6e3d42;
  font-family: var(--font-display);
  font-size: clamp(17px, 4.8vw, 22px);
  font-weight: 700;
  line-height: 1.18;
}

.slide__title {
  max-width: 100%;
  color: #512f3b;
  font-family: var(--font-display);
  font-size: clamp(27px, 8vw, 39px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.slide__body {
  margin-top: clamp(14px, 3vh, 24px);
  font-size: clamp(16px, 4.35vw, 20px);
  line-height: 1.42;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

.slide__signature {
  margin-top: clamp(16px, 3vh, 24px);
  font-size: clamp(15px, 4vw, 18px);
  font-style: italic;
  line-height: 1.38;
  white-space: pre-line;
}

mark {
  margin: 0 -0.04em;
  padding: 0 0.04em;
  border-radius: 0.18em;
  color: inherit;
  background: linear-gradient(transparent 60%, rgba(232, 169, 182, 0.46) 60%);
  font-weight: 700;
}

.slide__cta,
.navigation__button--restart {
  display: inline-flex;
  min-width: min(100%, 250px);
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: clamp(22px, 4vh, 34px);
  padding: 12px 24px;
  border: 2px solid var(--gold-light);
  border-radius: 999px;
  color: var(--ivory);
  background: linear-gradient(180deg, #63364e, #482238);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 24px rgba(61, 27, 43, 0.3);
  font-family: var(--font-display);
  font-size: clamp(17px, 4.6vw, 21px);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.slide__cta:hover,
.navigation__button--restart:hover {
  filter: brightness(1.09);
  box-shadow: 0 10px 28px rgba(61, 27, 43, 0.42), 0 0 20px rgba(243, 213, 138, 0.24);
}

.slide__cta:active,
.navigation__button:active,
.sound-toggle:active,
.pagination__dot:active {
  transform: scale(0.97);
}

.slide--title {
  --card-width: min(86%, 350px);
  --card-bg: rgba(77, 47, 57, 0.67);
  --card-text: var(--ivory);
  --frame-opacity: 0.94;
  padding-bottom: calc(var(--safe-bottom) + 72px);
}

.slide--title .slide__content {
  margin-top: -2vh;
  box-shadow: inset 0 0 34px rgba(255, 231, 196, 0.12), 0 20px 48px rgba(47, 19, 32, 0.28);
  text-shadow: 0 1px 2px rgba(35, 13, 24, 0.82);
}

.slide--title .slide__title {
  color: var(--ivory);
  font-size: clamp(33px, 10vw, 46px);
  line-height: 1.04;
}

.slide--title .slide__body {
  color: var(--champagne);
  font-size: clamp(18px, 5.2vw, 23px);
  font-style: italic;
}

.slide--providence {
  --background-position: 50% center;
}

.slide--providence .slide__title,
.slide--nature .slide__title,
.slide--fortune .slide__title,
.slide--finale .slide__title {
  font-size: clamp(24px, 6.6vw, 32px);
  line-height: 1.08;
}

.slide--nature {
  --card-bg: rgba(255, 248, 232, 0.76);
  --frame-opacity: 0.34;
  --background-position: center;
}

.slide--fortune {
  --card-bg: rgba(18, 25, 60, 0.77);
  --card-border: rgba(243, 213, 138, 0.74);
  --card-text: var(--ivory);
  --frame-opacity: 0.46;
  --background-position: center;
}

.slide--fortune .slide__content {
  box-shadow: inset 0 0 30px rgba(232, 169, 182, 0.08), 0 18px 42px rgba(4, 8, 25, 0.38);
  text-shadow: 0 1px 2px rgba(3, 6, 20, 0.92);
}

.slide--fortune .slide__title,
.slide--fortune .slide__eyebrow {
  color: var(--gold-light);
}

.slide--fortune mark {
  background: linear-gradient(transparent 60%, rgba(214, 166, 74, 0.38) 60%);
}

.slide--finale {
  --card-bg: rgba(255, 248, 232, 0.8);
  --frame-opacity: 0.9;
  --background-position: center;
}

.slide--finale .slide__title {
  color: #633347;
}

.sound-toggle {
  position: absolute;
  z-index: 8;
  top: calc(var(--safe-top) + 8px);
  right: calc(var(--safe-right) + 10px);
  display: grid;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  place-items: center;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 248, 232, 0.3), rgba(74, 41, 64, 0.12) 68%, transparent 70%);
  pointer-events: none;
  transition: opacity 300ms ease, transform 160ms ease, filter 160ms ease;
}

.is-started .sound-toggle {
  opacity: 1;
  pointer-events: auto;
}

.sound-toggle:hover {
  filter: brightness(1.12);
}

.sound-toggle img,
.sound-toggle svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.sound-toggle.is-muted img,
.is-muted .sound-toggle img {
  filter: saturate(0.72);
}

.navigation {
  position: absolute;
  z-index: 7;
  top: calc(var(--safe-top) + 8px);
  right: calc(var(--safe-right) + 70px);
  left: calc(var(--safe-left) + 12px);
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.is-started .navigation {
  opacity: 1;
  pointer-events: auto;
}

.navigation:empty,
.pagination:empty {
  display: none;
}

.navigation__button {
  display: inline-flex;
  width: min(43%, 172px);
  min-width: 44px;
  min-height: 48px;
  max-height: 60px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  transition: transform 160ms ease, filter 160ms ease;
}

.navigation__button:hover {
  filter: brightness(1.1) drop-shadow(0 5px 8px rgba(45, 23, 32, 0.28));
}

.navigation__button--back {
  margin-right: auto;
}

.navigation__button--next {
  margin-left: auto;
}

.navigation__button img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.navigation__button--restart {
  width: min(48%, 190px);
  min-width: 130px;
  min-height: 48px;
  margin-top: 0;
  padding: 10px 18px;
  font-size: clamp(16px, 4.4vw, 20px);
}

.pagination {
  position: absolute;
  z-index: 8;
  right: calc(var(--safe-right) + 70px);
  bottom: calc(var(--safe-bottom) + 10px);
  left: calc(var(--safe-left) + 70px);
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.is-started .pagination {
  opacity: 1;
  pointer-events: auto;
}

.pagination__dot {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 1 44px;
  padding: 0;
  border-radius: 50%;
  place-items: center;
  background: transparent;
  transition: transform 180ms ease;
}

.pagination__dot::before {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 248, 232, 0.9);
  border-radius: 50%;
  background: rgba(74, 41, 64, 0.62);
  box-shadow: 0 1px 6px rgba(34, 16, 26, 0.65);
  content: "";
  transition: width 180ms ease, height 180ms ease, background-color 180ms ease;
}

.pagination__dot:hover::before {
  background: var(--rose);
}

.pagination__dot.is-active::before,
.pagination__dot[aria-current="true"]::before,
.pagination__dot[aria-current="page"]::before {
  width: 13px;
  height: 13px;
  border-color: var(--ivory);
  background: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(74, 41, 64, 0.42), 0 0 12px rgba(243, 213, 138, 0.72);
}

.loading {
  position: absolute;
  z-index: 10;
  right: calc(var(--safe-right) + 20px);
  bottom: calc(var(--safe-bottom) + 22px);
  left: calc(var(--safe-left) + 20px);
  padding: 10px 16px;
  border: 1px solid rgba(243, 213, 138, 0.55);
  border-radius: 999px;
  opacity: 0;
  color: var(--ivory);
  background: rgba(58, 31, 48, 0.82);
  box-shadow: 0 8px 24px rgba(25, 10, 20, 0.28);
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.stage.is-loading .loading,
.stage[aria-busy="true"] .loading {
  opacity: 1;
  transform: translateY(0);
}

.stage.has-error .loading {
  max-width: 340px;
  margin-inline: auto;
  border-radius: 18px;
  opacity: 1;
  transform: none;
}

.stage.is-transitioning .navigation__button,
.stage.is-transitioning .pagination__dot {
  pointer-events: none;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.noscript-message {
  position: fixed;
  z-index: 20;
  top: 50%;
  left: 50%;
  width: min(86vw, 360px);
  padding: 24px;
  border: 1px solid var(--gold-light);
  border-radius: 24px;
  color: var(--ivory);
  background: rgba(74, 41, 64, 0.94);
  box-shadow: 0 16px 50px rgba(20, 8, 17, 0.45);
  font-size: 18px;
  line-height: 1.45;
  text-align: center;
  transform: translate(-50%, -50%);
}

@keyframes ken-burns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.055);
  }
}

@keyframes scene-reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes butterfly-flight-one {
  0% {
    left: -12%;
    top: 18%;
    opacity: 0;
    transform: rotate(8deg) scale(0.78);
  }
  8% {
    opacity: 0.78;
  }
  28% {
    left: 25%;
    top: 11%;
    transform: rotate(-7deg) scale(0.94);
  }
  55% {
    left: 57%;
    top: 25%;
    transform: rotate(11deg) scale(1.04);
  }
  80% {
    left: 86%;
    top: 14%;
    transform: rotate(-5deg) scale(0.9);
  }
  92% {
    opacity: 0.78;
  }
  100% {
    left: 112%;
    top: 21%;
    opacity: 0;
    transform: rotate(9deg) scale(0.76);
  }
}

@keyframes butterfly-flight-two {
  0% {
    left: 112%;
    top: 67%;
    opacity: 0;
    transform: rotate(-12deg) scale(0.78);
  }
  10% {
    opacity: 0.68;
  }
  27% {
    left: 82%;
    top: 74%;
    transform: rotate(7deg) scale(0.96);
  }
  52% {
    left: 53%;
    top: 57%;
    transform: rotate(-10deg) scale(1.06);
  }
  76% {
    left: 23%;
    top: 69%;
    transform: rotate(8deg) scale(0.9);
  }
  91% {
    opacity: 0.68;
  }
  100% {
    left: -12%;
    top: 53%;
    opacity: 0;
    transform: rotate(-9deg) scale(0.74);
  }
}

@keyframes butterfly-flight-three {
  0% {
    left: -10%;
    top: 46%;
    opacity: 0;
    transform: rotate(7deg) scale(0.7);
  }
  9% {
    opacity: 0.56;
  }
  25% {
    left: 20%;
    top: 34%;
    transform: rotate(-9deg) scale(0.88);
  }
  50% {
    left: 48%;
    top: 48%;
    transform: rotate(10deg) scale(0.98);
  }
  75% {
    left: 78%;
    top: 31%;
    transform: rotate(-7deg) scale(0.86);
  }
  91% {
    opacity: 0.56;
  }
  100% {
    left: 110%;
    top: 42%;
    opacity: 0;
    transform: rotate(8deg) scale(0.68);
  }
}

@keyframes butterfly-flap-left {
  from {
    transform: perspective(42px) rotateY(66deg) rotateZ(-10deg);
  }
  to {
    transform: perspective(42px) rotateY(0deg) rotateZ(8deg);
  }
}

@keyframes butterfly-flap-right {
  from {
    transform: perspective(42px) rotateY(-66deg) rotateZ(10deg);
  }
  to {
    transform: perspective(42px) rotateY(0deg) rotateZ(-8deg);
  }
}

@media (min-width: 601px) {
  .stage {
    width: min(430px, calc(100vh * 9 / 16));
    width: min(430px, calc(100svh * 9 / 16));
    width: min(430px, calc(100dvh * 9 / 16));
    height: min(100vh, calc(430px * 16 / 9));
    height: min(100svh, calc(430px * 16 / 9));
    height: min(100dvh, calc(430px * 16 / 9));
    border-radius: min(2.2vh, 18px);
  }
}

@media (max-height: 650px) {
  .slide {
    padding: calc(var(--safe-top) + 56px) calc(var(--safe-right) + 16px)
      calc(var(--safe-bottom) + 62px) calc(var(--safe-left) + 16px);
  }

  .slide--title {
    padding-bottom: calc(var(--safe-bottom) + 54px);
  }

  .slide__content {
    padding: 16px 17px;
    border-radius: 19px;
  }

  .slide__eyebrow {
    margin-bottom: 7px;
    font-size: clamp(15px, 4.3vw, 18px);
  }

  .slide__title,
  .slide--providence .slide__title,
  .slide--nature .slide__title,
  .slide--fortune .slide__title,
  .slide--finale .slide__title {
    font-size: clamp(21px, 6.1vw, 27px);
  }

  .slide--title .slide__title {
    font-size: clamp(30px, 9vw, 39px);
  }

  .slide__body {
    margin-top: 10px;
    font-size: clamp(14px, 4vw, 17px);
    line-height: 1.31;
  }

  .slide__signature {
    margin-top: 10px;
    font-size: clamp(13px, 3.7vw, 16px);
    line-height: 1.28;
  }

  .slide__cta {
    min-height: 46px;
    margin-top: 15px;
    padding-block: 9px;
  }

  .sound-toggle {
    top: calc(var(--safe-top) + 5px);
    right: calc(var(--safe-right) + 7px);
    width: 48px;
    height: 48px;
  }

  .navigation {
    top: calc(var(--safe-top) + 5px);
    min-height: 46px;
  }

  .navigation__button,
  .navigation__button img {
    min-height: 44px;
    max-height: 48px;
  }

  .pagination {
    bottom: calc(var(--safe-bottom) + 5px);
  }
}

@media (max-height: 540px) {
  .slide__content {
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(214, 166, 74, 0.72) transparent;
    scrollbar-width: thin;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  .slide {
    transition-duration: 180ms;
  }

  .slide__background {
    transform: none;
  }

  .butterflies {
    display: none;
  }
}

@media (forced-colors: active) {
  .butterflies {
    display: none;
  }

  .slide__content,
  .slide__cta,
  .navigation__button--restart,
  .loading {
    border: 2px solid CanvasText;
  }

  .pagination__dot::before {
    border: 2px solid ButtonText;
  }
}
