.recreio-intro-pending {
  overflow: hidden;
}

.recreio-intro-pending .site-root {
  visibility: hidden;
}

.recreio-intro-revealing .site-root {
  visibility: visible;
  animation: ri-site-in 1.15s cubic-bezier(.16, 1, .3, 1) both;
}

.recreio-intro {
  --ri-blue: #082f9b;
  --ri-blue-deep: #04184f;
  --ri-coral: #ff6173;
  --ri-pink: #ff87b5;
  --ri-yellow: #ffc94f;
  --ri-cream: #fff8e9;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  color: var(--ri-blue);
  background:
    radial-gradient(circle at 12% 14%, #fff 0 1.7%, transparent 1.8%),
    radial-gradient(circle at 88% 78%, #fff 0 2.1%, transparent 2.2%),
    linear-gradient(135deg, #fff9ec 0%, #fff4df 43%, #ffd9e4 100%);
  font-family: Fredoka, NunitoRecreio, system-ui, sans-serif;
  overflow: hidden;
  isolation: isolate;
}

.recreio-intro::before,
.recreio-intro::after {
  content: "";
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(1px);
}

.recreio-intro::before {
  width: min(72vw, 980px);
  aspect-ratio: 1;
  left: -25vw;
  top: -48vw;
  background: #a9c5ff;
  animation: ri-orbit-left 8s ease-in-out infinite alternate;
}

.recreio-intro::after {
  width: min(55vw, 760px);
  aspect-ratio: 1;
  right: -18vw;
  bottom: -35vw;
  background: var(--ri-coral);
  animation: ri-orbit-right 7s ease-in-out infinite alternate;
}

.ri-grain {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.ri-topbar {
  position: absolute;
  top: clamp(18px, 3.2vw, 42px);
  left: clamp(20px, 4vw, 62px);
  right: clamp(20px, 4vw, 62px);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ri-logo {
  width: clamp(150px, 16vw, 230px);
  height: auto;
  display: block;
  box-sizing: content-box;
  padding: 11px 16px 9px;
  border: 2px solid rgba(8,47,155,.12);
  border-radius: 22px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 28px rgba(8,47,155,.12);
  backdrop-filter: blur(12px);
}

.ri-skip {
  appearance: none;
  border: 2px solid var(--ri-blue);
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  color: var(--ri-blue);
  box-shadow: 0 5px 0 var(--ri-blue);
  padding: 11px 17px;
  font: 800 11px/1 Fredoka, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.ri-skip:hover,
.ri-skip:focus-visible {
  background: #fff;
  transform: translateY(-2px);
  outline: none;
}

.ri-skip:active {
  transform: translateY(4px);
  box-shadow: none;
}

.ri-copy {
  position: absolute;
  z-index: 8;
  left: clamp(22px, 5.5vw, 90px);
  top: 50%;
  width: min(38vw, 560px);
  transform: translateY(-47%);
}

.ri-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--ri-coral);
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.ri-eyebrow::before {
  content: "";
  width: 28px;
  height: 8px;
  border-radius: 999px;
  background: var(--ri-yellow);
  transform: rotate(-7deg);
}

.ri-title {
  margin: 0;
  color: var(--ri-blue);
  font-size: clamp(58px, 7.4vw, 126px);
  font-weight: 700;
  letter-spacing: -.075em;
  line-height: .77;
  text-wrap: balance;
}

.ri-title span {
  display: block;
  transform-origin: left center;
  animation: ri-word-in .85s cubic-bezier(.16, 1, .3, 1) both;
}

.ri-title span:nth-child(2) {
  color: var(--ri-coral);
  animation-delay: .12s;
}

.ri-title span:nth-child(3) {
  animation-delay: .24s;
}

.ri-title em {
  position: relative;
  font-style: normal;
  color: var(--ri-blue);
}

.ri-title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.04em;
  height: .07em;
  border-radius: 999px;
  background: var(--ri-yellow);
  transform: scaleX(0) rotate(-2deg);
  transform-origin: left;
  animation: ri-underline .65s .9s cubic-bezier(.16, 1, .3, 1) forwards;
}

.ri-caption {
  min-height: 24px;
  margin: 40px 0 0;
  color: #5c6f98;
  font: 900 clamp(11px, 1.05vw, 14px)/1.4 NunitoRecreio, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.ri-caption span {
  color: var(--ri-coral);
}

.ri-stage {
  position: absolute;
  top: 50%;
  right: clamp(3vw, 6vw, 100px);
  z-index: 7;
  width: min(48vw, 720px);
  height: min(78vh, 760px);
  transform: translateY(-46%);
  display: grid;
  place-items: center;
}

.ri-stage::before {
  content: "";
  position: absolute;
  inset: 5% 6% 1%;
  border-radius: 48% 52% 42% 58% / 49% 44% 56% 51%;
  background:
    radial-gradient(circle at 50% 38%, #fff 0 4%, transparent 34%),
    linear-gradient(145deg, var(--ri-yellow), #ffe492 55%, #fff1c5);
  box-shadow:
    inset 0 0 0 13px rgba(255,255,255,.38),
    0 40px 110px rgba(8,47,155,.18);
  animation: ri-blob 5s ease-in-out infinite alternate;
}

.ri-stage::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 16%;
  bottom: 0;
  height: 9%;
  border-radius: 50%;
  background: rgba(4,24,79,.18);
  filter: blur(18px);
  animation: ri-shadow 1.1s ease-in-out infinite alternate;
}

.ri-frame {
  position: relative;
  z-index: 3;
  width: 78%;
  height: 88%;
  display: grid;
  place-items: center;
}

.ri-pose {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 28px 22px rgba(4,24,79,.23));
  transform: translate3d(0, 8%, 0) scale(.88) rotate(-4deg);
  opacity: 0;
  will-change: transform, opacity;
}

.ri-pose.is-current {
  opacity: 1;
  animation: ri-pose-in .85s cubic-bezier(.16, 1.2, .3, 1) both,
    ri-float 1.8s .85s ease-in-out infinite alternate;
}

.ri-pose.is-leaving {
  animation: ri-pose-out .42s cubic-bezier(.7, 0, .84, 0) both;
}

.ri-photo-label {
  position: absolute;
  z-index: 8;
  right: -1%;
  bottom: 10%;
  min-width: 190px;
  border: 3px solid var(--ri-blue);
  border-radius: 19px 19px 5px 19px;
  background: #fff;
  color: var(--ri-blue);
  box-shadow: 0 8px 0 var(--ri-coral);
  padding: 14px 17px;
  transform: rotate(3deg);
  text-align: center;
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: ri-label-pop .55s cubic-bezier(.16, 1.4, .3, 1) both;
}

.ri-camera-corners {
  position: absolute;
  inset: 3% 0 2%;
  z-index: 6;
  pointer-events: none;
  border: 0 solid transparent;
  background:
    linear-gradient(var(--ri-blue), var(--ri-blue)) left top / 54px 4px no-repeat,
    linear-gradient(var(--ri-blue), var(--ri-blue)) left top / 4px 54px no-repeat,
    linear-gradient(var(--ri-blue), var(--ri-blue)) right top / 54px 4px no-repeat,
    linear-gradient(var(--ri-blue), var(--ri-blue)) right top / 4px 54px no-repeat,
    linear-gradient(var(--ri-blue), var(--ri-blue)) left bottom / 54px 4px no-repeat,
    linear-gradient(var(--ri-blue), var(--ri-blue)) left bottom / 4px 54px no-repeat,
    linear-gradient(var(--ri-blue), var(--ri-blue)) right bottom / 54px 4px no-repeat,
    linear-gradient(var(--ri-blue), var(--ri-blue)) right bottom / 4px 54px no-repeat;
  opacity: .38;
  animation: ri-focus 2.2s ease-in-out infinite;
}

.ri-flash {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.ri-flash.is-flashing {
  animation: ri-flash .42s ease-out;
}

.ri-scoop,
.ri-sprinkle,
.ri-star {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.ri-scoop {
  width: clamp(52px, 6vw, 100px);
  aspect-ratio: 1;
  border: 6px solid #fff;
  border-radius: 48% 52% 55% 45% / 43% 49% 51% 57%;
  box-shadow: 0 13px 30px rgba(8,47,155,.16);
  animation: ri-scoop-float var(--duration, 5s) ease-in-out var(--delay, 0s) infinite alternate;
}

.ri-scoop::after {
  content: "";
  position: absolute;
  width: 26%;
  height: 16%;
  left: 22%;
  top: 19%;
  border-radius: 50%;
  background: rgba(255,255,255,.65);
  transform: rotate(-24deg);
}

.ri-sprinkle {
  width: 28px;
  height: 8px;
  border-radius: 999px;
  background: var(--color, var(--ri-coral));
  animation: ri-sprinkle var(--duration, 4s) ease-in-out var(--delay, 0s) infinite alternate;
}

.ri-star {
  color: var(--ri-yellow);
  font-size: clamp(24px, 3vw, 48px);
  line-height: 1;
  filter: drop-shadow(0 4px 0 #fff);
  animation: ri-star 2s ease-in-out var(--delay, 0s) infinite alternate;
}

.ri-progress {
  position: absolute;
  z-index: 30;
  left: clamp(22px, 5.5vw, 90px);
  right: clamp(22px, 5.5vw, 90px);
  bottom: clamp(21px, 4vw, 46px);
  height: 8px;
  border: 2px solid var(--ri-blue);
  border-radius: 999px;
  background: rgba(255,255,255,.66);
  overflow: hidden;
}

.ri-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ri-coral), var(--ri-yellow));
  animation: ri-progress 6.4s linear forwards;
}

.ri-counter {
  position: absolute;
  right: clamp(22px, 5.5vw, 90px);
  bottom: calc(clamp(21px, 4vw, 46px) + 19px);
  z-index: 30;
  color: var(--ri-blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
}

.recreio-intro.is-leaving {
  pointer-events: none;
  animation: ri-curtain 1.05s cubic-bezier(.7, 0, .84, 0) forwards;
}

@keyframes ri-word-in {
  from { opacity: 0; transform: translateY(70px) rotate(4deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

@keyframes ri-underline { to { transform: scaleX(1) rotate(-2deg); } }
@keyframes ri-orbit-left { to { transform: translate(8vw, 7vw) scale(1.06); } }
@keyframes ri-orbit-right { to { transform: translate(-6vw, -5vw) scale(.92); } }
@keyframes ri-blob { to { border-radius: 57% 43% 55% 45% / 40% 59% 41% 60%; transform: rotate(5deg) scale(1.03); } }
@keyframes ri-shadow { to { transform: scaleX(.78); opacity: .55; } }
@keyframes ri-focus { 50% { inset: 7% 2% 0; opacity: .72; } }
@keyframes ri-label-pop { from { opacity: 0; transform: scale(.45) rotate(-8deg); } }
@keyframes ri-pose-in {
  0% { opacity: 0; transform: translate3d(20%, 14%, 0) scale(.7) rotate(12deg); }
  65% { opacity: 1; transform: translate3d(-2%, 4%, 0) scale(1.04) rotate(-6deg); }
  100% { opacity: 1; transform: translate3d(0, 5%, 0) scale(1) rotate(-2deg); }
}
@keyframes ri-pose-out { to { opacity: 0; transform: translate3d(-22%, -4%, 0) scale(1.08) rotate(-12deg); } }
@keyframes ri-float { to { transform: translate3d(0, 2%, 0) scale(1.015) rotate(1deg); } }
@keyframes ri-flash { 0% { opacity: 0; } 14% { opacity: .94; } 100% { opacity: 0; } }
@keyframes ri-scoop-float { to { transform: translateY(-32px) rotate(14deg); } }
@keyframes ri-sprinkle { to { transform: translate(18px, -25px) rotate(50deg); } }
@keyframes ri-star { to { transform: rotate(30deg) scale(1.3); } }
@keyframes ri-progress { to { width: 100%; } }
@keyframes ri-site-in { from { opacity: 0; transform: scale(1.035); filter: blur(7px); } }
@keyframes ri-curtain {
  0% { clip-path: circle(150vmax at 50% 50%); opacity: 1; }
  72% { opacity: 1; }
  100% { clip-path: circle(0 at 50% 47%); opacity: 0; }
}

@media (max-width: 820px) {
  .ri-topbar { top: 17px; }
  .ri-logo { width: 145px; }
  .ri-skip { padding: 10px 13px; font-size: 9px; }
  .ri-copy {
    top: 112px;
    left: 20px;
    right: 20px;
    width: auto;
    transform: none;
    text-align: center;
  }
  .ri-eyebrow { justify-content: center; margin-bottom: 10px; }
  .ri-title { font-size: clamp(47px, 14.7vw, 76px); line-height: .8; }
  .ri-title span { display: inline; }
  .ri-title span::after { content: " "; }
  .ri-caption { margin-top: 13px; font-size: 10px; }
  .ri-stage {
    top: auto;
    right: 6vw;
    left: 6vw;
    bottom: 44px;
    width: auto;
    height: 57vh;
    transform: none;
  }
  .ri-stage::before { inset: 6% 2% 2%; }
  .ri-frame { width: 86%; height: 90%; }
  .ri-photo-label {
    right: 0;
    bottom: 9%;
    min-width: 150px;
    padding: 11px 12px;
    font-size: 10px;
  }
  .ri-camera-corners { inset: 4% -2% 1%; }
  .ri-progress { left: 24px; right: 24px; bottom: 18px; height: 7px; }
  .ri-counter { right: 25px; bottom: 34px; font-size: 8px; }
  .recreio-intro::before { width: 100vw; left: -61vw; top: -47vw; }
  .recreio-intro::after { width: 100vw; right: -58vw; bottom: -33vw; }
}

@media (max-width: 420px) and (max-height: 740px) {
  .ri-copy { top: 92px; }
  .ri-eyebrow { display: none; }
  .ri-title { font-size: 47px; }
  .ri-stage { height: 55vh; bottom: 35px; }
  .ri-caption { margin-top: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .recreio-intro *,
  .recreio-intro::before,
  .recreio-intro::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .ri-pose.is-current { opacity: 1; transform: translate3d(0, 5%, 0) scale(1); }
}
