* {
  box-sizing: border-box;
}

:root {
  --brand-purple: #9816a2;
  --footer-bg: #f7e6f3;
  --footer-text: #3b1248;
  color-scheme: light;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #24112a;
}

.page {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow: hidden;
}

.splash {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: clamp(16px, 2.5vh, 28px);
  padding: 24px 16px 8px;
}

.brand-logo {
  display: block;
  width: min(280px, 42vw, 36vh);
  height: auto;
  animation: logo-in 0.45s ease-out both;
}

.loader {
  display: inline-flex;
  gap: 10px;
}

.loader span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--brand-purple);
  animation: pulse 1.2s infinite ease-in-out;
}

.loader span:nth-child(2) {
  animation-delay: 0.15s;
}

.loader span:nth-child(3) {
  animation-delay: 0.3s;
}

.site-footer {
  flex: 0 0 auto;
  width: 100%;
}

.footer-art {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: visible;
}

.footer-clouds {
  display: block;
  width: 100%;
  height: auto;
  transform: scaleY(1.2);
  transform-origin: center bottom;
}

.footer-characters {
  position: absolute;
  left: 50%;
  bottom: 38%;
  z-index: 2;
  width: clamp(220px, 28vw, 420px);
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
}

.footer-copy {
  margin: 0;
  padding: 5px 12px;
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  font-size: 0.65rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes pulse {
  0%, 80%, 100% {
    opacity: 0.35;
    transform: translateY(0) scale(0.85);
  }
  40% {
    opacity: 1;
    transform: translateY(-4px) scale(1);
  }
}

@keyframes logo-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 720px) {
  .brand-logo {
    width: min(240px, 68vw);
  }

  .footer-clouds {
    transform: scaleY(1.35);
    transform-origin: center bottom;
  }

  .footer-characters {
    width: clamp(200px, 62vw, 300px);
    bottom: 36%;
  }

  .footer-copy {
    padding: 4px 10px;
    font-size: 0.58rem;
  }
}
