/* Boot screen shown by index.html until React renders (no JS / CSS bundle needed). */
html,
body {
  margin: 0;
  background: #0f0c14;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #0f0c14;
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

/* Added by src/app/boot.ts after the minimum display time. */
.boot.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-logo {
  display: none;
  width: 72px;
  height: 72px;
  border-radius: 25%;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 48px rgba(255, 224, 143, 0.18);
  animation: boot-breathe 2.4s ease-in-out infinite;
}

/* <html data-logo> is set by the inline boot script from the saved settings (default: catholic). */
html:not([data-logo='buddhism']) .boot-logo[data-religion='catholic'],
html[data-logo='buddhism'] .boot-logo[data-religion='buddhism'] {
  display: block;
}

.boot-dots {
  display: flex;
  gap: 6px;
}

.boot-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffe08f;
  opacity: 0.3;
  animation: boot-dot 1.2s ease-in-out infinite;
}

.boot-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.boot-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes boot-breathe {
  50% {
    transform: scale(1.06);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 72px rgba(255, 224, 143, 0.35);
  }
}

@keyframes boot-dot {
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (min-width: 768px) {
  .boot-logo {
    width: 96px;
    height: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot-logo,
  .boot-dots span {
    animation: none;
  }
}
