@font-face {
  font-family: 'Fredoka';
  src: url('/assets/fonts/Fredoka-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Fredoka';
  src: url('/assets/fonts/Fredoka-Bold.ttf') format('truetype');
  font-weight: 700 900;
  font-style: normal;
  font-display: block;
}

canvas{ image-rendering: auto; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #070314;
  background-image: var(--page-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
#app {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #070314;
  background-image: var(--page-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#app:fullscreen,
#app:-webkit-full-screen {
  background: #070314;
  background-image: var(--page-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#app:fullscreen::backdrop,
#app:-webkit-full-screen::backdrop,
body:fullscreen::backdrop,
body:-webkit-full-screen::backdrop {
  background: #070314;
  background-image: var(--page-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
canvas { display: block; }

#app-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #071124;
  overflow: hidden;
  transition: opacity 260ms ease, visibility 260ms ease;
}

#app-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-splash__inner {
  width: min(86vw, 420px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px;
}

.app-splash__logo {
  width: min(78vw, 340px);
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(6, 12, 34, 0.45));
}

.app-splash__loader {
  width: min(68vw, 250px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.app-splash__track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 8px 24px rgba(0,0,0,0.22);
}

.app-splash__bar {
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: -32%;
  width: 32%;
  border-radius: 999px;
  background: linear-gradient(166deg, #5b79ff 0%, #7467ff 42%, #d95df7 100%);
  box-shadow: 0 0 14px rgba(116, 103, 255, 0.45);
  animation: splashBar 1.15s ease-in-out infinite;
}

.app-splash__dots {
  display: inline-flex;
  gap: 8px;
}

.app-splash__dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(217, 93, 247, 0.95);
  box-shadow: 0 0 12px rgba(217, 93, 247, 0.34);
  animation: splashDot 1s ease-in-out infinite;
}

.app-splash__dots span:nth-child(2) { animation-delay: 0.14s; }
.app-splash__dots span:nth-child(3) { animation-delay: 0.28s; }

@keyframes splashBar {
  0% { left: -32%; }
  100% { left: 100%; }
}

@keyframes splashDot {
  0%, 80%, 100% { transform: translateY(0) scale(0.92); opacity: 0.5; }
  40% { transform: translateY(-2px) scale(1.08); opacity: 1; }
}
