:root {
  color-scheme: light;
  --bg: #f2f5f8;
  --panel: #ffffff;
  --text: #111827;
  --muted: #64748b;
  --line: #d9e1ea;
  --accent: #7ee7b4;
  --accent-dark: #34b98a;
  --blue: #3b82f6;
  --cyan: #38bdf8;
  --green: #a7f3d0;
  --shadow: 0 28px 90px rgba(21, 40, 64, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% 22%, rgba(59, 130, 246, 0.16), transparent 30%),
    radial-gradient(circle at 36% 72%, rgba(126, 231, 180, 0.22), transparent 28%),
    var(--bg);
  color: var(--text);
}

a,
button {
  font: inherit;
}

.shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.panel {
  width: min(460px, 100%);
  border: 1px solid rgba(217, 225, 234, 0.9);
  border-radius: 8px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  color: #263241;
  font-size: 14px;
  font-weight: 850;
}

.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, var(--accent) 0 50%, transparent 50%),
    linear-gradient(315deg, var(--cyan) 0 50%, #ffffff 50%);
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.loader {
  position: relative;
  width: 118px;
  height: 118px;
  margin: 0 auto 28px;
}

.loader__ring,
.loader__core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.loader__ring {
  border: 7px solid #e2e8f0;
  border-top-color: var(--accent);
  border-right-color: var(--cyan);
  border-bottom-color: rgba(167, 243, 208, 0.72);
  animation: spin 880ms linear infinite;
}

.loader__core {
  inset: 24px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, var(--green), var(--cyan), var(--blue)) border-box;
  border: 1px solid transparent;
  box-shadow: inset 0 0 0 8px #f8fafc;
}

.loader__core::after {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(126, 231, 180, 0.72);
  content: "";
  animation: pulse 1.1s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 56px);
  line-height: 1.04;
}

.status {
  margin: 16px auto 0;
  max-width: 360px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.status strong {
  color: var(--text);
  font-size: 28px;
}

.meter {
  height: 8px;
  margin: 28px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e4eaf1;
}

.meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--accent));
  transition: width 260ms ease;
}

.actions {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
}

.button--primary {
  background: #123a5f;
  color: #ffffff;
}

.button--primary:hover {
  background: #0f6f68;
}

.button--ghost {
  border-color: var(--line);
  background: #ffffff;
  color: var(--text);
}

.button--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.hidden-state {
  display: none;
}

.preload {
  position: fixed;
  left: -1px;
  top: -1px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

iframe {
  display: block;
  width: 1px;
  height: 1px;
  border: 0;
}

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

@keyframes pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.75);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@media (max-width: 520px) {
  .shell {
    padding: 14px;
  }

  .panel {
    padding: 28px 20px;
  }

}
