* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #ffffff;
  background: #0f172a;
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
}

body::before {
  width: 40vw;
  height: 40vw;
  max-width: 520px;
  max-height: 520px;
  top: -10vh;
  left: -10vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 70%);
  animation: float 10s ease-in-out infinite alternate;
}

body::after {
  width: 36vw;
  height: 36vw;
  max-width: 460px;
  max-height: 460px;
  bottom: -10vh;
  right: -10vw;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.28), transparent 70%);
  animation: float 12s ease-in-out infinite alternate-reverse;
}

.container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 24px;
}

.glass-card {
  position: relative;
  width: min(90vw, 680px);
  padding: clamp(32px, 6vw, 64px) clamp(24px, 5vw, 56px);
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.status-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 6px 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: breathe 2s ease-in-out infinite;
}

.clock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1.2vw, 12px);
  font-family: "SF Mono", "Roboto Mono", "Fira Code", "Menlo", monospace;
  font-size: clamp(48px, 12vw, 120px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.clock__sep {
  color: rgba(255, 255, 255, 0.45);
  animation: tick 1s step-end infinite;
}

.clock__second {
  color: rgba(255, 255, 255, 0.85);
  min-width: 2ch;
}

.date-group {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.date-text {
  font-size: clamp(16px, 3vw, 22px);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.05em;
}

.lunar-text {
  font-size: clamp(13px, 2.4vw, 17px);
  color: rgba(255, 255, 255, 0.55);
}

.tagline {
  margin-top: 32px;
  font-size: clamp(13px, 2.4vw, 16px);
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
}

.footer {
  padding: 24px;
  text-align: center;
}

.icp-link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}

.icp-link:hover,
.icp-link:focus {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

@keyframes breathe {
  0%, 100% {
    opacity: 0.5;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes tick {
  0%, 100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(20px, 30px) scale(1.08);
  }
}

@media (max-width: 480px) {
  .glass-card {
    border-radius: 22px;
    padding: 36px 22px;
  }

  .clock {
    gap: 4px;
  }

  .status-row {
    margin-bottom: 22px;
  }

  .date-group {
    margin-top: 22px;
  }
}
