/* ============================================================
   styles/screens.css — 加载画面 / 首页 / 暂停菜单
   （原 styles/main.css 拆解而来：1198~1405 行）
   ============================================================ */

/* ============================================================
   加载画面
   ============================================================ */

#loading-screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0d24;
  z-index: 200;
}

#loading-screen .loading-text {
  font-size: 16px;
  color: #ffe296;
  letter-spacing: 0.2em;
  opacity: 0.7;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ============================================================
   首页
   ============================================================ */

#title-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(122, 63, 40, 0.35), transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(90, 46, 30, 0.25), transparent 60%),
    linear-gradient(180deg, #0a0d24, #1a1a3e 60%, #2b1e3a);
  z-index: 80;
  transition: opacity 0.3s;
}

#title-screen.hidden {
  display: none;
}

.title-wrap {
  text-align: center;
  margin-bottom: 60px;
}

.title-cn {
  margin: 0;
  font-size: 68px;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: #ffe296;
  text-shadow:
    0 0 30px rgba(255, 226, 150, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.6);
  font-family: "STKaiti", "KaiTi", "PingFang SC", sans-serif;
}

.title-en {
  margin: 12px 0 0;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: #a9713f;
  text-transform: uppercase;
}

.title-sub {
  margin: 24px 0 0;
  font-size: 13px;
  color: rgba(255, 226, 150, 0.5);
  letter-spacing: 0.1em;
}

.title-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 240px;
}

.title-btn {
  padding: 14px 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 226, 150, 0.25);
  background: rgba(255, 226, 150, 0.06);
  color: #ffe296;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.08em;
}

.title-btn:hover:not(:disabled) {
  background: rgba(255, 226, 150, 0.16);
  border-color: rgba(255, 226, 150, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 226, 150, 0.12);
}

.title-btn:active:not(:disabled) {
  transform: translateY(0);
}

.title-btn.primary {
  background: rgba(255, 217, 122, 0.18);
  border-color: rgba(255, 217, 122, 0.55);
  color: #ffd97a;
}

.title-btn.primary:hover:not(:disabled) {
  background: rgba(255, 217, 122, 0.3);
}

.title-btn.secondary {
  color: #cfc6b8;
  border-color: rgba(255, 255, 255, 0.15);
}

.title-btn.disabled,
.title-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.4);
}

.title-version {
  position: absolute;
  bottom: 24px;
  right: 28px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.1em;
}

/* ============================================================
   暂停菜单
   ============================================================ */

#pause-menu {
  z-index: 75;
  background: rgba(4, 5, 12, 0.75);
}

.pause-panel {
  width: min(360px, 92vw);
  padding: 32px 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, #1c1f38, #141628);
  border: 1px solid rgba(255, 226, 150, 0.18);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pause-title {
  margin: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #ffe296;
  letter-spacing: 0.3em;
}

.pause-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pause-btn {
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #cfc6b8;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s;
  letter-spacing: 0.08em;
}

.pause-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.pause-btn.primary {
  background: rgba(255, 217, 122, 0.16);
  border-color: rgba(255, 217, 122, 0.45);
  color: #ffe296;
}

.pause-btn.primary:hover {
  background: rgba(255, 217, 122, 0.28);
}
