:root {
  color: #111827;
  background: #f4f6fb;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

button {
  font: inherit;
}

.landing-page {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: #f4f6fb;
}

.landing-loading,
.landing-disabled {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}

.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #dbe3ef;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.landing-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background-color: #111827;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.landing-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0) 42%, rgba(17, 24, 39, 0.48) 100%);
  pointer-events: none;
}

.landing-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 24px 24px calc(48px + env(safe-area-inset-bottom));
}

.landing-cta {
  width: min(100%, 336px);
  min-height: 54px;
  padding: 0 28px;
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  background: #2563eb;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.32);
  cursor: pointer;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.landing-cta:active {
  transform: translateY(1px) scale(0.99);
}

.landing-cta:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.landing-error {
  width: min(100%, 336px);
  margin: 14px 0 0;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  background: rgba(185, 28, 28, 0.9);
  border-radius: 8px;
}

[hidden] {
  display: none !important;
}
