/* Загрузка: статичная шторка меню и заставка после выбора старта. */
#boot-loading,
#game-loading,
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 42%, #2a2a20 0%, #17170f 52%, #0b0b07 100%);
  color: #ede4cf;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  user-select: none;
  opacity: 1;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

#game-loading {
  z-index: 12000;
}

#boot-loading.is-hidden,
#game-loading.is-hidden,
.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-card {
  width: min(560px, calc(100vw - 40px));
  padding: 0 24px;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.loading-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 7vw, 58px);
  font-weight: 700;
  letter-spacing: 3px;
  color: #f4e8cc;
  margin-bottom: 14px;
}

.loading-stage {
  min-height: 20px;
  font-size: 14px;
  letter-spacing: 0.4px;
  color: #c8bda8;
  margin-bottom: 22px;
}

.loading-row {
  margin-top: 16px;
  text-align: left;
}

.loading-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.4px;
  color: #c8bda8;
  margin-bottom: 7px;
}

.loading-bar {
  height: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.loading-bar > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b48a4a, #efd18b);
  box-shadow: 0 0 12px rgba(239, 209, 139, 0.28);
  transition: width 0.18s linear;
}

@media (max-width: 768px) {
  .loading-title {
    font-size: clamp(30px, 10vw, 44px);
    letter-spacing: 2px;
  }

  .loading-card {
    padding: 0 16px;
  }
}
