html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #090d18;
  font-family: "Noto Serif SC", "PingFang SC", "Microsoft YaHei", serif;
}

* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.landing-shell {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #090d18;
}

.bg-image {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center center;
  display: block;
  z-index: 0;
}

.bg-mask {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(6, 9, 18, 0.10) 0%, rgba(6, 9, 18, 0.18) 50%, rgba(6, 9, 18, 0.28) 100%);
}

.brand-name {
  position: fixed;
  top: 28px;
  left: 30px;
  z-index: 3;
  color: #ffffff;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.center-block {
  position: fixed;
  left: 50%;
  top: 72%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: min(92vw, 900px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  text-align: center;
}

.version-name {
  color: #f5dfb3;
  font-size: clamp(72px, 8.4vw, 112px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 6px;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
}

.cta-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta {
  min-width: 230px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 32px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  transition: transform 0.18s ease;
}

.cta:hover { transform: translateY(-2px); }

.cta.primary {
  color: #221709;
  background: linear-gradient(180deg, #f4dfad 0%, #d6aa59 100%);
}

.cta.secondary {
  color: #fff;
  background: rgba(10, 14, 28, 0.50);
  border-color: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
}

.cta.wide { width: 100%; }

.modal.hidden { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 12, 0.68);
  backdrop-filter: blur(8px);
}
.modal-card {
  position: relative;
  width: min(92vw, 460px);
  margin: 10vh auto 0;
  padding: 24px;
  border-radius: 22px;
  background: rgba(10, 14, 28, 0.84);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
}
.modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.72);
  font-size: 28px;
  cursor: pointer;
}
.login-form { display: grid; gap: 16px; }
.login-form label { display: grid; gap: 8px; }
.login-form span { color: rgba(247,242,234,0.74); font-size: 14px; }
.login-form input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 16px;
  outline: none;
}
.login-form input:focus {
  border-color: rgba(244,223,173,0.7);
  box-shadow: 0 0 0 4px rgba(244,223,173,0.12);
}
.form-actions { display: grid; }
.form-message {
  min-height: 22px;
  text-align: center;
  color: #ffd8a8;
  font-size: 14px;
}
.form-message.error { color: #ffb1b1; }
.form-message.success { color: #b7f1c4; }

@media (max-width: 640px) {
  .brand-name {
    top: 18px;
    left: 18px;
    font-size: 26px;
  }
  .center-block {
    top: 76%;
    gap: 22px;
  }
  .version-name {
    font-size: 54px;
    letter-spacing: 3px;
  }
  .cta-row {
    width: 100%;
  }
  .cta {
    min-width: 0;
    width: 100%;
    font-size: 18px;
  }
}
