/* Shared critical styles: HTML boot, React Suspense, and the arrival preview. */
html {
  color-scheme: dark;
  scrollbar-gutter: stable;
}
/* Older Safari versions need an explicit track before the app stylesheet loads. */
@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}
.moai-loading,
.moai-loading * {
  box-sizing: border-box;
}
.moai-loading {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 80px 24px 105px;
  background: #102e25;
  color: #f4efe6;
  text-align: center;
  font-family: "Jost", sans-serif;
}
.pv-app:has(> .moai-loading--preview) {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.moai-loading--preview {
  min-height: 0;
  flex: 1;
}
.moai-loading-forest,
.moai-loading-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}
.moai-loading-forest {
  object-fit: cover;
  opacity: 0.26;
}
.moai-loading-shade {
  z-index: -2;
  background: radial-gradient(ellipse at 50% 36%, #102e2530 0%, #102e25d6 76%);
}
.moai-loading-branch {
  position: absolute;
  left: -30px;
  top: 0;
  width: 38%;
  max-width: 480px;
  opacity: 0.32;
  z-index: -1;
  transform-origin: 0 0;
}
.moai-loading-content {
  position: relative;
  width: 100%;
  max-width: 620px;
  /* Revealed by moai-loading.js once the brand artwork has decoded, so the
     mark, wordmark and type arrive together rather than type first. */
  opacity: 0;
  transition: opacity 0.55s ease;
}
.moai-loading-content[data-ready="1"] {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .moai-loading-content {
    transition: none;
  }
}
.moai-loading-mark {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 auto 25px;
  width: 132px;
  height: 132px;
}
.moai-loading-mark .brand {
  display: block;
  width: 71px;
  height: 80px;
  color: #d4c09a;
}
.moai-loading-ring {
  position: absolute;
  inset: 0;
  border: 1px solid #d4c09a28;
  border-radius: 50%;
}
.moai-loading-ring::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid #d4c09a1c;
  border-radius: 50%;
}
.moai-loading-wordmark {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.32em;
  color: #d4c09a;
  padding-left: 0.32em;
}
.moai-loading .moai-loading-title {
  font-family: "Jost", sans-serif;
  font-weight: 300;
  color: #f4efe6;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 29px 0 28px;
  min-height: 2.12em;
}
.moai-loading-title > span {
  display: block;
}
.moai-loading-status {
  display: flex;
  justify-content: center;
  gap: 11px;
  align-items: center;
  font-size: 14px;
  line-height: 1.6;
  color: #d4cbb9;
  margin: 0;
}
.moai-loading-breath {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  background: #d4c09a;
  border-radius: 50%;
}
.moai-loading-support {
  font-size: 14px;
  line-height: 1.6;
  color: #a7b9a9;
  margin: 15px 0 0;
  min-height: 3.2em;
}
.moai-loading-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
  opacity: 0.35;
}
.moai-loading-rain i {
  position: absolute;
  top: -10%;
  left: calc(6% + var(--drop) * 12%);
  height: 24px;
  width: 1px;
  background: linear-gradient(transparent, #e3d9b480, transparent);
}
.moai-loading-recovery {
  min-height: 76px;
  padding-top: 20px;
  font-size: 14px;
  color: #b7c4b6;
}
.moai-loading-recovery p {
  margin: 0 0 6px;
}
.moai-loading-recovery button {
  color: #d4c09a;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}
.moai-loading-controls {
  position: absolute;
  bottom: 27px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  color: #bdc6b9;
  border-top: 1px solid #c2cdb328;
  padding-top: 18px;
  white-space: nowrap;
}
.moai-loading-controls button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font: inherit;
  color: inherit;
}
.moai-loading-controls > span {
  color: #a7b9a9;
}
@media (prefers-reduced-motion: no-preference) {
  .moai-loading-branch {
    animation: moai-loading-leaf 9s ease-in-out infinite alternate;
  }
  .moai-loading-ring {
    animation: moai-loading-ring 3.6s ease-out infinite;
  }
  .moai-loading-breath {
    animation: moai-loading-breath 2s ease-in-out infinite;
  }
  .moai-loading-rain i {
    animation: moai-loading-rain 4.4s linear infinite;
    animation-delay: calc(var(--drop) * -0.7s);
  }
}
@keyframes moai-loading-leaf {
  to {
    transform: rotate(2deg) translateY(5px);
  }
}
@keyframes moai-loading-ring {
  0%,
  100% {
    opacity: 0.2;
  }
  55% {
    opacity: 0.8;
  }
}
@keyframes moai-loading-breath {
  50% {
    opacity: 0.35;
    transform: scale(0.7);
  }
}
@keyframes moai-loading-rain {
  from {
    transform: rotate(12deg);
  }
  to {
    transform: translate(-15vw, 110dvh) rotate(12deg);
  }
}
@media (max-width: 700px) {
  .moai-loading {
    padding: 60px 20px 105px;
  }
  .moai-loading .moai-loading-title {
    font-size: clamp(36px, 10.5vw, 48px);
    margin-block: 24px;
  }
  .moai-loading-mark {
    width: 110px;
    height: 110px;
    margin-bottom: 21px;
  }
  .moai-loading-mark .brand {
    width: 60px;
    height: 68px;
  }
  .moai-loading-branch {
    width: 70%;
    left: -55px;
    opacity: 0.25;
  }
  .moai-loading-forest {
    object-position: 48% center;
  }
  .moai-loading-controls {
    gap: 13px;
    bottom: 25px;
  }
  .moai-loading-controls > span {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .moai-loading-rain {
    display: none;
  }
}

.moai-loading .moai-loading-wordmark {
  width: 142px;
  height: 37px;
  margin-inline: auto;
  color: #d4c09a;
}
