html,
body,
#root {
  min-height: 100%;
  width: 100%;
  margin: 0;
  background: #000000;
  color: #ffffff;
  overflow-x: hidden;
}

html.swapper-tma-locked,
html.swapper-tma-locked body,
html.swapper-tma-locked #root {
  height: var(--swapper-tma-viewport-height, 100dvh);
  min-height: var(--swapper-tma-viewport-height, 100dvh);
  overflow: hidden;
  overscroll-behavior: none;
  background: #000000 !important;
}

body.swapper-tma-locked {
  position: fixed;
  inset: 0;
  width: 100%;
  background: #000000 !important;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#boot-shell {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  background: #000000 !important;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity 180ms ease;
}

#boot-shell-inner {
  display: grid;
  place-items: center;
  perspective: 720px;
}

#boot-shell.boot-shell-failed {
  pointer-events: auto;
}

#boot-shell.boot-shell-failed #boot-shell-inner {
  gap: 24px;
  width: min(84vw, 320px);
  text-align: center;
}

#boot-shell.boot-shell-failed #boot-shell-logo {
  animation: none;
  opacity: 0.72;
}

#boot-shell-recovery {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.boot-shell-recovery-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}

.boot-shell-recovery-description {
  max-width: 280px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.56);
}

.boot-shell-recovery-button {
  min-width: 148px;
  min-height: 44px;
  margin-top: 6px;
  border: 1px solid rgba(240, 185, 11, 0.34);
  border-radius: 14px;
  background: #f0b90b;
  color: #080808;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.boot-shell-recovery-button:active {
  transform: scale(0.98);
}

#boot-shell.boot-shell-exit {
  opacity: 0;
}

#boot-shell-logo {
  height: 58px;
  width: 58px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 26px rgba(240, 185, 11, 0.22));
  transform-origin: 50% 50%;
  will-change: transform;
  animation: boot-logo-turn 3.4s cubic-bezier(0.42, 0, 0.18, 1) infinite;
  backface-visibility: visible;
}

html.admin-login-neutral #boot-shell-logo {
  display: none;
}

@keyframes boot-logo-turn {
  0%,
  22% {
    transform: rotateY(0deg) scale(1);
  }
  54%,
  68% {
    transform: rotateY(360deg) scale(1.018);
  }
  100% {
    transform: rotateY(360deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  #boot-shell-logo {
    animation: none;
  }
}
