:root {
  --cf-bg: #f7f7f7;
  --cf-ink: #1d1f20;
  --cf-muted: #595959;
  --cf-line: #e0e0e0;
  --cf-orange: #f6821f;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background: var(--cf-bg);
  color: var(--cf-ink);
  font-family: var(--sans);
}

.cf-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.cf-page[hidden] {
  display: none;
}

.cf-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 48px 20px 24px;
}

.cf-card {
  width: min(100%, 420px);
  text-align: center;
}

.cf-card h1 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 640;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.cf-body {
  margin: 0 0 28px;
  color: var(--cf-muted);
  font-size: 15px;
  line-height: 1.55;
}

.cf-slot {
  display: flex;
  justify-content: center;
  min-height: 65px;
  margin: 0 0 18px;
}

.cf-error {
  margin: -6px 0 14px;
  color: #d93025;
  font-size: 14px;
}

.cf-error[hidden] {
  display: none;
}

#continue {
  width: min(100%, 300px);
  min-height: 44px;
  margin: 4px auto 0;
  border: 0;
  border-radius: 4px;
  background: var(--cf-orange);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

#continue:hover:not(:disabled) {
  filter: brightness(0.96);
}

#continue:disabled {
  opacity: 0.5;
  cursor: default;
}

.cf-footer {
  border-top: 1px solid var(--cf-line);
  background: #fff;
  padding: 18px 20px 22px;
}

.cf-footer-inner {
  width: min(100%, 720px);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  color: var(--cf-muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.cf-ray,
.cf-by {
  margin: 0;
}

.cf-ray code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--cf-ink);
}

@media (max-width: 520px) {
  .cf-card h1 {
    font-size: 24px;
  }

  .cf-footer-inner {
    justify-content: center;
    text-align: center;
  }
}
