/* A self-contained opening scene, available before the application bundle. */
:root {
  --boot-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --boot-bg: #f2ede5;
  --boot-text: #123e3e;
  --boot-muted: #56717a;
  --boot-accent: #075749;
  --boot-line: #c7dece;
  --boot-on-accent: #ffffff;
}
:root[data-theme="dark"] {
  --boot-bg: #18221e;
  --boot-text: #f0f5eb;
  --boot-muted: #b4c5b7;
  --boot-accent: #b1d4b5;
  --boot-line: #485e4f;
  --boot-on-accent: #213526;
}
:root[data-theme="green"] {
  --boot-bg: #e4efe5;
  --boot-text: #143f31;
  --boot-muted: #496b57;
  --boot-accent: #145941;
  --boot-line: #cbded0;
}
body {
  margin: 0;
  background: var(--boot-bg);
}
html[data-startup="boot"] body,
html[data-startup="leaving"] body {
  overflow: hidden;
}
html[data-startup="boot"] #root *,
html[data-startup="leaving"] #root * {
  animation-play-state: paused !important;
}
.boot {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  overflow: auto;
  min-height: 100svh;
  padding: max(32px, env(safe-area-inset-top)) 24px
    max(70px, env(safe-area-inset-bottom));
  color: var(--boot-text);
  background: var(--boot-bg);
  text-align: center;
  font-family:
    Manrope,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  transition:
    opacity 240ms var(--boot-ease),
    transform 240ms var(--boot-ease);
}
.boot::before,
.boot::after {
  content: "";
  position: fixed;
  width: min(110vw, 760px);
  height: min(110vw, 760px);
  border: 1px solid var(--boot-accent);
  opacity: 0.1;
  border-radius: 50%;
  pointer-events: none;
}
.boot::before {
  inset: -42vw auto auto -44vw;
}
.boot::after {
  inset: auto -42vw -42vw auto;
}
html[data-startup="leaving"] .boot {
  opacity: 0;
  transform: translateY(-4px);
}
.boot-scene {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 24px;
}
.boot-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 208px;
  height: 208px;
  color: var(--boot-accent);
}
.boot-mark img {
  z-index: 1;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  padding: 15px;
  box-sizing: border-box;
  background: #ffffff80;
  box-shadow: 0 16px 36px #344d3812;
  animation: boot-logo-arrive 700ms var(--boot-ease) both;
}
:root[data-theme="dark"] .boot-mark img {
  background: #f3f5eb;
  padding: 3px;
  box-sizing: border-box;
}
.boot-ring,
.boot-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.boot-ring {
  border: 1px solid currentColor;
}
.boot-ring-outer {
  inset: 0;
  opacity: 0.18;
  animation: boot-unfold 2200ms ease-in-out infinite;
}
.boot-ring-inner {
  inset: 21px;
  opacity: 0.32;
  animation: boot-unfold 2200ms ease-in-out -650ms infinite;
}
.boot-orbit {
  inset: 10px;
  animation: boot-orbit-turn 3600ms linear infinite;
}
.boot-orbit i {
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.boot-title {
  animation: boot-copy-arrive 650ms var(--boot-ease) 120ms both;
}
.boot-title strong {
  font-size: clamp(36px, 9vw, 44px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.boot p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  color: var(--boot-muted);
}
.boot-title p {
  margin-top: 9px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.boot-track {
  width: 132px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--boot-line);
}
.boot-track span {
  display: block;
  width: 60%;
  height: 100%;
  background: var(--boot-accent);
  animation: boot-progress 1600ms ease-in-out infinite;
}
#boot-label {
  animation: boot-copy-arrive 650ms var(--boot-ease) 220ms both;
}
.boot .boot-footnote {
  position: absolute;
  bottom: max(28px, env(safe-area-inset-bottom));
  font-size: 11px;
  letter-spacing: 0.04em;
}
.boot-recovery {
  max-width: 300px;
}
.boot-recovery a {
  display: inline-flex;
  min-height: 48px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: var(--boot-accent);
  color: var(--boot-on-accent);
  text-decoration: none;
  border-radius: 12px;
  margin-top: 16px;
  font-size: 14px;
}
.boot-recovery a:focus-visible {
  outline: 3px solid var(--boot-accent);
  outline-offset: 4px;
}
.boot-recovering .boot-track,
.boot-recovering .boot-footnote {
  display: none;
}
.boot-recovering .boot-mark {
  width: 144px;
  height: 144px;
}
.boot-recovering .boot-mark img {
  width: 88px;
  height: 88px;
}
@keyframes boot-logo-arrive {
  from {
    opacity: 0.3;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes boot-copy-arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes boot-unfold {
  0%,
  100% {
    transform: scale(0.92);
  }
  50% {
    transform: scale(1);
  }
}
@keyframes boot-orbit-turn {
  to {
    transform: rotate(360deg);
  }
}
@keyframes boot-progress {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(180%);
  }
}
@media (min-width: 800px) {
  .boot::before {
    top: -600px;
    left: -400px;
  }
  .boot::after {
    bottom: -560px;
    right: -340px;
  }
}
@media (max-height: 560px) {
  .boot {
    padding: 20px;
  }
  .boot-scene {
    gap: 14px;
  }
  .boot-mark {
    width: 120px;
    height: 120px;
  }
  .boot-mark img {
    width: 80px;
    height: 80px;
  }
  .boot .boot-footnote {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .boot,
  .boot *,
  .boot-mark * {
    animation: none !important;
    transition: none !important;
  }
}
