#app-splash {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #f9f6ef;
  color: #362c24;
  transition: opacity 95ms ease-out;
}
#app-splash::before {
  content: "";
  width: 44px;
  height: 44px;
  margin-bottom: 2px;
  border-radius: 13px;
  background-color: #fdfbf6;
  border: 1px solid #e6dfd4;
  box-shadow: 0 6px 20px -8px rgba(54, 44, 36, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 4.6v5.6' stroke='%23e37756' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M7.6 7.3v2.9' stroke='%23e37756' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M16.4 7.3v2.9' stroke='%23e37756' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M5.4 12.4h13.2' stroke='%232b231d' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M6.1 12.4a5.9 5.9 0 0 0 11.8 0' stroke='%232b231d' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 26px 26px;
}
#app-splash.app-splash-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.app-splash-title {
  margin: 0;
  font-family: "Lora Variable", "Songti SC", "Noto Serif SC", Georgia, serif;
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.app-splash-sub {
  margin: 0;
  font-family: "Public Sans", Inter, system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: #69625a;
}
.app-splash-bar {
  width: 108px;
  height: 3px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(54, 44, 36, 0.11);
}
.app-splash-bar > span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: #e37756;
  animation: app-splash-slide 1.05s ease-in-out infinite;
}
.app-splash-retry {
  margin-top: 6px;
  border: 1px solid rgba(54, 44, 36, 0.18);
  border-radius: 10px;
  background: #fdfbf6;
  color: #362c24;
  font: inherit;
  font-size: 13px;
  padding: 8px 18px;
  cursor: pointer;
}
@keyframes app-splash-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}
html.dark #app-splash {
  background: #1f1811;
  color: #e8e4dd;
}
html.dark #app-splash::before {
  background-color: #2b241c;
  border-color: #40382f;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.55);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 4.6v5.6' stroke='%23e28b63' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M7.6 7.3v2.9' stroke='%23e28b63' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M16.4 7.3v2.9' stroke='%23e28b63' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M5.4 12.4h13.2' stroke='%23e8e4dd' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M6.1 12.4a5.9 5.9 0 0 0 11.8 0' stroke='%23e8e4dd' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
html.dark .app-splash-sub { color: #9e978e; }
html.dark .app-splash-bar { background: rgba(232, 228, 221, 0.14); }
html.dark .app-splash-bar > span { background: #e28b63; }
html.dark .app-splash-retry {
  border-color: #483f37;
  background: #2b241c;
  color: #e8e4dd;
}
@media (prefers-reduced-motion: reduce) {
  .app-splash-bar > span {
    width: 100%;
    animation: none;
    opacity: 0.6;
  }
}
