/* Boot splash — enne Reacti (sama --cover-h mis coverViewport.js) */

.fullscreen-cover-layer {
  position: fixed;
  top: var(--cover-top, 0px);
  left: 0;
  width: 100%;
  height: var(--cover-h, 100svh);
  min-height: var(--cover-h, 100svh);
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  transform: translateZ(0);
}

.splash-screen {
  position: fixed;
  top: var(--cover-top, 0px);
  left: 0;
  right: 0;
  height: var(--cover-h, 100svh);
  z-index: 10;
  overflow: hidden;
  background: transparent;
}

.splash-screen-inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: var(--cover-h, 100svh);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: calc(26vh + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  text-align: center;
}

.splash-screen-logo {
  width: min(41vw, 280px);
  height: auto;
  object-fit: contain;
}

.splash-screen-brand-wrap {
  display: inline-block;
  margin: -6px 0 0;
  line-height: 1;
}

.splash-screen-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: clamp(3rem, 11vw, 4.75rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  color: #6386aa;
}

.splash-screen-divider {
  width: min(28vw, 120px);
  height: 1px;
  margin: 8px auto 6px;
  background: linear-gradient(90deg, transparent, #a28b7a 15%, #a28b7a 85%, transparent);
}

.splash-screen-subtitle {
  margin: 0 0 clamp(32px, 5.5vh, 56px);
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(10px, 1.9vw, 13px);
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  text-transform: uppercase;
  color: #a28b7a;
}

.splash-screen-loading {
  margin: 0;
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(10px, 1.8vw, 12px);
  letter-spacing: 0.25em;
  text-indent: 0.25em;
  text-transform: uppercase;
  color: #6386aa;
  white-space: nowrap;
}

.splash-screen-progress {
  width: min(34vw, 231px);
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(99, 134, 170, 0.28);
  overflow: hidden;
}

.splash-screen-progress > span {
  display: block;
  height: 100%;
  width: 38%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7a9ec0, #6386aa);
  animation: splash-progress 2.2s ease-in-out infinite;
}

.splash-screen-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 12px;
}

.splash-screen-dots > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6386aa;
  opacity: 0.32;
  animation: splash-dot 1.2s ease-in-out infinite;
}

.splash-screen-dots > span:nth-child(1) { opacity: 0.95; }
.splash-screen-dots > span:nth-child(2) { animation-delay: 0.2s; }
.splash-screen-dots > span:nth-child(3) { animation-delay: 0.4s; }

@keyframes splash-progress {
  0% { transform: translateX(-110%); opacity: 0.55; }
  50% { opacity: 1; }
  100% { transform: translateX(250%); opacity: 0.55; }
}

@keyframes splash-dot {
  0%, 80%, 100% { opacity: 0.28; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1); }
}
