#pixel-launch * {
  box-sizing: border-box;
}
#pixel-launch {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: auto;
  margin: 0;
  background: #fff;
  color: #15171c;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
#pixel-launch .screen {
  min-height: 100svh;
  max-width: 480px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 32px 36px;
  position: relative;
  overflow: hidden;
}
#pixel-launch .note {
  font-size: 11px;
  color: #8b94a3;
  text-align: center;
}
#pixel-launch .brand {
  margin-top: auto;
  text-align: center;
  padding-top: 70px;
}
#pixel-launch .logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 25%;
}
#pixel-launch h1 {
  font-size: 64px;
  letter-spacing: -4px;
  margin: 6px 0 10px;
  font-weight: 800;
}
#pixel-launch .subtitle {
  font-size: 18px;
  color: #777f8c;
  margin: 0;
}
#pixel-launch .loading {
  width: 100%;
  max-width: 290px;
  margin-top: 100px;
  text-align: center;
}
#pixel-launch .track {
  height: 5px;
  background: #e5efff;
  border-radius: 8px;
  overflow: hidden;
}
#pixel-launch .track span {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #00b9ff, #1456ed);
  animation: pixelLaunchSlide 1.8s ease-in-out infinite alternate;
}
#pixel-launch .loading p {
  font-size: 14px;
  color: #7a8392;
  margin-top: 20px;
}
#pixel-launch .footer {
  margin-top: auto;
  padding-top: 85px;
  color: #9098a5;
  font-size: 12px;
}
#pixel-launch .pixels {
  position: absolute;
  right: 30px;
  top: 90px;
  display: flex;
  gap: 12px;
  transform: rotate(-20deg);
}
#pixel-launch .pixels i {
  width: 9px;
  height: 9px;
  background: #dcecff;
  border-radius: 3px;
  animation: pixelLaunchGlow 2s ease-in-out infinite alternate;
}
#pixel-launch .pixels i:nth-child(2) {
  margin-top: 25px;
  animation-delay: 0.4s;
}
#pixel-launch .pixels i:nth-child(3) {
  margin-top: -15px;
  animation-delay: 0.8s;
}
@keyframes pixelLaunchSlide {
  from {
    transform: translateX(-70%);
  }
  to {
    transform: translateX(190%);
  }
}
@keyframes pixelLaunchGlow {
  from {
    opacity: 0.3;
  }
  to {
    opacity: 1;
  }
}
@keyframes pixelLaunchReveal {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes pixelLaunchFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  #pixel-launch .brand {
    animation: pixelLaunchReveal 0.55s ease-out both;
  }
  #pixel-launch .launch-shop-title,
  #pixel-launch .launch-shop-slogan {
    animation: pixelLaunchReveal 0.45s 0.08s ease-out both;
  }
  #pixel-launch .loading {
    animation: pixelLaunchFadeIn 0.4s 0.12s ease-out both;
  }
}
@media (prefers-reduced-motion: reduce) {
  #pixel-launch * {
    animation: none !important;
  }
}

#pixel-launch .launch-slow {
  max-width: 320px;
  text-align: center;
  font-size: 13px;
  color: #687386;
  margin: 24px auto 0;
}
#pixel-launch .launch-slow button {
  border: 0;
  border-radius: 10px;
  background: #1456ed;
  color: #fff;
  padding: 13px 18px;
  font: inherit;
  cursor: pointer;
}
#pixel-launch .launch-slow[hidden] {
  display: none;
}
#pixel-launch.is-slow .track span {
  animation: none;
}
@media print {
  #pixel-launch {
    display: none;
  }
}

/* Full viewport loading screen, v2 */
#pixel-launch {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  height: var(--pixel-viewport-height, var(--pixel-launch-height, 100dvh));
  opacity: 1;
  transition: opacity 0.24s ease;
}
#pixel-launch .screen {
  width: 100%;
  max-width: none;
  min-height: 100%;
  height: 100%;
  padding-top: calc(
    24px +
      var(
        --pixel-safe-top,
        calc(
          var(--tg-safe-area-inset-top, env(safe-area-inset-top, 0px)) +
            var(--tg-content-safe-area-inset-top, 0px)
        )
      )
  );
  padding-bottom: calc(
    36px +
      var(
        --pixel-safe-bottom,
        calc(
          var(--tg-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)) +
            var(--tg-content-safe-area-inset-bottom, 0px)
        )
      )
  );
  padding-left: calc(
    32px + var(--pixel-safe-left, env(safe-area-inset-left, 0px))
  );
  padding-right: calc(
    32px + var(--pixel-safe-right, env(safe-area-inset-right, 0px))
  );
  overflow: auto;
  overscroll-behavior: contain;
}
#pixel-launch.is-leaving {
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  #pixel-launch {
    transition: none !important;
  }
}

/* Shared startup policy: scrolling remains enabled, native page zoom does not. */
html,
body {
  touch-action: pan-x pan-y;
}
html,
body,
body * {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
body *::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
