html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background-color: #ffffff;
  background-size: 100% 100%;
  font-family: 'Epilogue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
}

/* Splash container */
#splash {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: #ffffff;
}

/* Logo text container */
.splash-logo {
  display: flex;
  align-items: baseline;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1;
  animation: breathe 2.4s ease-in-out infinite;
  user-select: none;
  -webkit-user-select: none;
}

.splash-logo-accent {
  color: #0A6847;
}

.splash-logo-text {
  color: #111111;
}

/* Breathe animation */
@keyframes breathe {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Progress bar track */
.splash-progress-track {
  width: 200px;
  height: 2px;
  margin-top: 32px;
  background: rgba(10, 104, 71, 0.1);
  border-radius: 1px;
  overflow: hidden;
}

/* Progress bar fill — animated indeterminate */
.splash-progress-bar {
  width: 40%;
  height: 100%;
  background: #0A6847;
  border-radius: 1px;
  animation: indeterminate 1.6s ease-in-out infinite;
}

@keyframes indeterminate {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(250%);
  }
  100% {
    transform: translateX(500%);
  }
}

/* Noscript fallback styling */
noscript {
  display: block;
  padding: 40px;
  text-align: center;
  color: #111111;
}

noscript h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
}

noscript p {
  font-size: 16px;
  color: #666666;
  line-height: 1.6;
}

/* Legacy classes kept for compatibility */
.center {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.contain {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stretch {
  display: block;
  width: 100%;
  height: 100%;
}

.cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bottom {
  position: absolute;
  bottom: 0;
  left: 50%;
  -ms-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
}

.bottomLeft {
  position: absolute;
  bottom: 0;
  left: 0;
}

.bottomRight {
  position: absolute;
  bottom: 0;
  right: 0;
}

/* Prefers reduced motion: disable all animations */
@media (prefers-reduced-motion: reduce) {
  .splash-logo {
    animation: none;
    opacity: 1;
    transform: scale(1);
  }
  .splash-progress-bar {
    animation: none;
    width: 100%;
    transform: none;
  }
}
