html,
body {
  margin: 0;
  min-height: 100%;
  background: #ffffff;
}

body {
  color: #000000;
  font-family: Arial, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  position: relative;
  overflow-x: hidden;
}

.hero {
  position: relative;
  z-index: 1;
  padding: 114px 24px 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.star-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.twinkle-star {
  --size: 18px;
  --alpha: 0.55;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: auto;
  height: auto;
  opacity: 0;
  color: currentColor;
  font-size: var(--size);
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  text-shadow: 0 0 9px currentColor, 0 0 18px rgba(37, 99, 235, 0.16);
  transform: translate(-50%, -50%) scale(0.58);
  animation: starGlimmer var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
  user-select: none;
}

.twinkle-star.is-blue {
  color: rgba(37, 99, 235, var(--alpha));
}

.twinkle-star.is-ink {
  color: rgba(0, 0, 0, var(--alpha));
}

.twinkle-star.is-soft {
  color: rgba(96, 112, 134, var(--alpha));
}

.kicker {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 58px;
  margin-bottom: 48px;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
}

.word {
  display: inline-flex;
}

.glyph {
  display: inline-block;
  color: #000000;
  will-change: color;
}

.word-left {
  animation: driftLeft 5.2s ease-in-out infinite;
}

.word-right {
  animation: driftRight 5.2s ease-in-out infinite;
}

.word-center {
  animation: none;
}

h1 {
  margin: 0;
  font-size: clamp(46px, 5.9vw, 76px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: 0;
}

.subtitle {
  max-width: 430px;
  margin: 24px 0 0;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 500;
}

.hero-panel {
  width: min(660px, calc(100% - 96px));
  min-height: 490px;
  margin: 64px auto 0;
  border-radius: 36px;
  background: #ffffff;
  box-shadow: 0 34px 78px rgba(0, 0, 0, 0.16);
  box-sizing: border-box;
  padding: 44px 44px 46px;
  display: grid;
  gap: 18px;
  text-align: left;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.hero-panel.is-invalid {
  box-shadow: 0 34px 82px rgba(0, 0, 0, 0.16), 0 0 34px rgba(255, 76, 76, 0.42);
}

.hero-panel.is-checking {
  box-shadow: 0 34px 82px rgba(0, 0, 0, 0.16), 0 0 38px rgba(47, 125, 255, 0.46);
  animation: checkingGlow 1.15s ease-in-out infinite;
}

.hero-panel.is-valid {
  box-shadow: 0 34px 82px rgba(0, 0, 0, 0.16), 0 0 34px rgba(30, 186, 99, 0.42);
}

.panel-section {
  box-sizing: border-box;
  border: 2px solid #f3f3f3;
  border-radius: 12px;
  background: #ffffff;
}

.panel-announcement {
  min-height: 46px;
  padding: 12px 16px;
}

.panel-announcement p {
  margin: 0;
  color: #111111;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
}

.panel-info {
  display: grid;
  padding: 16px;
}

.panel-account {
  min-height: 70px;
  display: grid;
  padding: 14px 16px;
}

.panel-account input,
.panel-info-text {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  outline: 0;
  padding: 0;
  color: #111111;
  background: transparent;
  font: inherit;
  line-height: 1.5;
}

.panel-account input {
  min-height: 30px;
  font-size: 17px;
  font-weight: 600;
}

.panel-info-text {
  min-height: 96px;
  color: #111111;
  font-size: 15px;
  font-weight: 600;
  white-space: pre-wrap;
  cursor: default;
  user-select: text;
}

.panel-account input::placeholder {
  color: #9a9a9a;
}

.enter-button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #111111;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.enter-button:hover {
  transform: translateY(-1px);
}

.enter-button.is-invalid {
  background: #e64040;
  box-shadow: 0 16px 30px rgba(230, 64, 64, 0.28), 0 0 24px rgba(230, 64, 64, 0.34);
}

.enter-button.is-checking {
  background: linear-gradient(90deg, #1454d6, #2f7dff, #8ebcff, #1454d6);
  background-size: 240% 100%;
  box-shadow: 0 16px 30px rgba(47, 125, 255, 0.28), 0 0 26px rgba(47, 125, 255, 0.38);
  animation: checkingFlow 1.05s linear infinite;
}

.enter-button.is-valid {
  background: #17a35b;
  box-shadow: 0 16px 30px rgba(23, 163, 91, 0.26), 0 0 24px rgba(23, 163, 91, 0.34);
}

.account-feedback {
  min-height: 20px;
  margin: -6px 2px 0;
  color: #666666;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.account-feedback.is-checking {
  color: #1454d6;
  font-weight: 700;
}

.account-feedback.is-valid {
  color: #13864d;
  font-weight: 700;
}

.account-feedback.is-invalid {
  color: #d93434;
  font-weight: 700;
}

@keyframes checkingFlow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 240% 50%;
  }
}

@keyframes checkingGlow {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 34px 82px rgba(0, 0, 0, 0.16), 0 0 24px rgba(47, 125, 255, 0.26);
  }

  50% {
    transform: translateY(-1px);
    box-shadow: 0 34px 82px rgba(0, 0, 0, 0.16), 0 0 44px rgba(47, 125, 255, 0.54);
  }
}

@keyframes starGlimmer {
  0%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.46);
  }

  42% {
    opacity: 0.18;
  }

  52% {
    opacity: 0.92;
    transform: translate(-50%, -50%) scale(1.08);
  }

  64% {
    opacity: 0.28;
  }
}

@keyframes driftLeft {
  0%,
  100% {
    transform: translateX(0);
  }

  28% {
    transform: translateX(-18px);
  }

  40% {
    transform: translateX(-52px);
  }

  58% {
    transform: translateX(-60px);
  }

  76% {
    transform: translateX(-28px);
  }
}

@keyframes driftRight {
  0%,
  100% {
    transform: translateX(0);
  }

  28% {
    transform: translateX(18px);
  }

  40% {
    transform: translateX(52px);
  }

  58% {
    transform: translateX(60px);
  }

  76% {
    transform: translateX(28px);
  }
}

@media (max-width: 640px) {
  .twinkle-star {
    --size: 13px;
  }

  .hero {
    padding: 92px 20px 34px;
  }

  .kicker {
    gap: 28px;
    margin-bottom: 44px;
    font-size: 16px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .subtitle {
    max-width: 340px;
    font-size: 17px;
  }

  .hero-panel {
    width: min(100%, calc(100% - 32px));
    min-height: 400px;
    margin-top: 44px;
    border-radius: 28px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.14);
    padding: 28px 22px 30px;
    gap: 16px;
  }

  .panel-announcement,
  .panel-account,
  .panel-info {
    padding: 14px;
  }

  .panel-account {
    min-height: 66px;
  }

  .panel-info-text {
    min-height: 76px;
  }

  @keyframes driftLeft {
    0%,
    100% {
      transform: translateX(0);
    }

    28% {
      transform: translateX(-10px);
    }

    40% {
      transform: translateX(-24px);
    }

    58% {
      transform: translateX(-30px);
    }

    76% {
      transform: translateX(-14px);
    }
  }

  @keyframes driftRight {
    0%,
    100% {
      transform: translateX(0);
    }

    28% {
      transform: translateX(10px);
    }

    40% {
      transform: translateX(24px);
    }

    58% {
      transform: translateX(30px);
    }

    76% {
      transform: translateX(14px);
    }
  }
}
