/* Splash screen — waving flag intro */

#splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0c1f3d;
  gap: 1.5rem;
  overflow: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

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

/* Coat of arms — splash centrepiece */
#splash-coa {
  width: min(140px, 40vw);
  height: auto;
  object-fit: contain;
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
  transition: opacity 0.7s ease, transform 0.7s ease;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.45));
}

#splash-coa.splash-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Text messages */
.splash-messages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.splash-msg {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.splash-msg.splash-visible {
  opacity: 1;
  transform: translateY(0);
}

.splash-msg[data-i="0"] {
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  color: #ffffff;
}

.splash-msg[data-i="1"] {
  font-size: clamp(0.8rem, 2.8vw, 1rem);
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.18em;
  font-weight: 500;
  font-family: 'Source Sans 3', system-ui, sans-serif;
}

.splash-msg[data-i="2"] {
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  color: #c8a85a;
}

/* Progress bar */
#splash-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: #b5291c;
  transition: width 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  #splash { transition: none; }
  #splash-coa { transition: none; opacity: 1; transform: none; }
  .splash-msg { transition: none; opacity: 1; transform: none; }
}
