*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f0f2f5;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
}

.entry-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  padding: 48px 32px 40px;
  text-align: center;
}

.countdown-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
}

.countdown-ring {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: #e8eaed;
  stroke-width: 4;
}

.ring-progress {
  fill: none;
  stroke: #1677ff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.15s linear;
}

.countdown-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.countdown-seconds {
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  color: #1a1a1a;
}

.countdown-unit {
  font-size: 14px;
  color: #8c8c8c;
  margin-top: 4px;
}

.brand-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.4;
}

.brand-slogan {
  font-size: 14px;
  color: #8c8c8c;
  line-height: 1.8;
  margin-bottom: 8px;
}

.brand-slogan p + p {
  margin-top: 2px;
}

.status-text {
  font-size: 13px;
  color: #8c8c8c;
  min-height: 20px;
  margin-bottom: 24px;
}

.status-text.status-ok {
  color: #52c41a;
}

.status-text.status-error {
  color: #ff4d4f;
}

.btn-go {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: #1677ff;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.btn-go:hover:not(:disabled) {
  background: #4096ff;
}

.btn-go:active:not(:disabled) {
  background: #0958d9;
}

.btn-go:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.entry-card.is-failed .ring-progress {
  stroke: #ffccc7;
}

.entry-card.is-success .ring-progress {
  stroke: #52c41a;
}

@media (max-width: 380px) {
  .entry-card {
    padding: 40px 20px 32px;
  }

  .countdown-seconds {
    font-size: 36px;
  }
}
