/*
 * Splash styles only. Static file so it paints before the module bundle loads and so a
 * style-src 'self' CSP holds. The game's own stylesheet ships with the bundle.
 */
html,
body {
  margin: 0;
  padding: 0;
  background: #fbf3e6;
  color: #1e2a45;
  font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Pretendard', 'Noto Sans KR',
    'Malgun Gothic', system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

#splash {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #fbf3e6;
  transition: opacity 0.3s ease;
}

#splash[hidden] {
  display: none;
}

html[data-boot='ready'] #splash {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash__card {
  max-width: 320px;
  text-align: center;
}

.splash__mark {
  display: block;
  width: 92px;
  height: 92px;
  margin: 0 auto 14px;
  filter: drop-shadow(0 8px 16px rgba(70, 50, 25, 0.18));
}

.splash__code {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #d9a52a;
}

.splash__title {
  margin: 4px 0 10px;
  font-size: 24px;
  font-weight: 800;
}

#splash p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #46536f;
}

html[data-boot='failed'] #splash-status {
  font-weight: 700;
  color: #c1534a;
}

.splash__bar {
  width: 160px;
  height: 8px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: #efdcc0;
  overflow: hidden;
}

.splash__bar i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: 999px;
  background: #a5ddc6;
  animation: splash-slide 1.15s ease-in-out infinite;
}

html[data-boot='failed'] .splash__bar {
  display: none;
}

#splash button {
  appearance: none;
  margin-top: 14px;
  border: 0;
  border-radius: 16px;
  background: #ffd489;
  color: #1e2a45;
  font: 800 14px/1 inherit;
  font-family: inherit;
  padding: 13px 18px;
  min-height: 48px;
  cursor: pointer;
  box-shadow: 0 3px 0 #c98e2c;
}

#splash button[hidden] {
  display: none;
}

.noscript {
  margin: 0;
  padding: 18px;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

@keyframes splash-slide {
  from {
    transform: translateX(-60%);
  }
  to {
    transform: translateX(250%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash__bar i {
    width: 100%;
    animation: none;
  }
  #splash {
    transition: none;
  }
}
