.app-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 32px 24px 120px;
  background: linear-gradient(160deg, var(--primary), var(--primary-dark));
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

body:not(.app-home-loading) .app-splash {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  width: 100%;
  max-width: 420px;
  min-width: 0;
  max-height: 100%;
  overflow-y: auto;
  text-align: center;
}

.app-splash-name {
  margin: 0;
  max-width: 100%;
  color: var(--accent);
  font-family: "Noto Serif KR", "Nanum Myeongjo", Batang, serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.app-splash-divider {
  width: 44px;
  height: 1px;
  background: var(--accent);
  opacity: 0.55;
}

.app-splash-name.is-long { font-size: 24px; }
.app-splash-name.is-very-long { font-size: 20px; }

.app-splash-vision {
  margin: 0;
  max-width: 100%;
  color: var(--splash-text, rgb(255 255 255 / 78%));
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: keep-all;
  white-space: pre-line;
}

.app-splash-loading {
  position: absolute;
  bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  left: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--splash-text, rgb(255 255 255 / 65%));
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.app-splash-spinner {
  box-sizing: border-box;
  width: 26px;
  height: 26px;
  border: 2px solid rgb(255 255 255 / 15%);
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  border-radius: 50%;
  animation: app-splash-spin 1s linear infinite;
}

@keyframes app-splash-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .app-splash { transition: none; }
  .app-splash-spinner { animation: none; }
}
