:root {
  --bg: #12160f;
  --ink: #e7eadf;
  --muted: #9aa392;
  --accent: #c4a35a;
  --line: rgba(231, 234, 223, 0.12);
  --card: #1b2118;
  --danger: #d36b5a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(1200px 500px at 50% -10%, #2a3322 0%, transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
}

.launch-stage {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 48px;
  text-align: center;
}

.launch-mark {
  position: relative;
  width: 88px;
  height: 88px;
  margin-bottom: 28px;
}

.launch-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-top-color: var(--accent);
  animation: spin 1.1s linear infinite;
}

.launch-core {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, #1b2118);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
}

.launch-core::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 16px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--accent);
}

body.is-error .launch-ring {
  animation: none;
  border-color: var(--line);
}

h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 620;
  letter-spacing: 0.04em;
}

.launch-copy {
  margin: 10px 0 0;
  max-width: 28ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.launch-btn {
  margin-top: 28px;
  min-width: 180px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  background: var(--accent);
  color: #1a160c;
  font-size: 15px;
  font-weight: 650;
}

.launch-btn[hidden] { display: none; }

.launch-card {
  width: min(100%, 320px);
  margin-top: 28px;
  padding: 18px 16px 16px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.launch-card .launch-copy { margin-bottom: 12px; }

label {
  display: block;
  margin: 8px 0 6px;
  color: var(--muted);
  font-size: 12px;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  background: #141910;
  color: var(--ink);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 15px;
}

form.stack { display: flex; flex-direction: column; }

.launch-card button[type="submit"] {
  margin-top: 14px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 11px;
  background: var(--accent);
  color: #1a160c;
  font-weight: 650;
}

.status {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.4;
}
.status.err { color: var(--danger); }
.status.ok { color: #7dba7a; }

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

@media (prefers-reduced-motion: reduce) {
  .launch-ring { animation: none; }
}
