:root {
  --bg: #0f1319;
  --panel: #171e27;
  --border: #2a3441;
  --text: #e6ebf2;
  --muted: #93a1b4;
  --accent: #7bd88f;
  --accent-strong: #a2e9b1;
  --accent-ink: #0d1a10;
  --danger: #ff8080;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 0%, #1d2632 0%, #131922 55%, var(--bg) 100%);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.card {
  width: 100%;
  max-width: 380px;
  padding: 32px 28px 24px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

.logo {
  display: block;
  margin: 0 auto 14px;
  border-radius: 18px;
}

.title {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.subtitle {
  margin: 2px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.state {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.actions .button {
  width: 100%;
}

.who {
  margin: 0;
  font-size: 15px;
}

.who strong {
  color: var(--accent-strong);
}

.uid {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.uid code {
  color: var(--text);
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

.note,
.error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
}

.note {
  color: var(--muted);
  background: #131922;
  border: 1px solid var(--border);
}

.error {
  margin-bottom: 14px;
  color: var(--danger);
  background: rgba(255, 128, 128, 0.08);
  border: 1px solid rgba(255, 128, 128, 0.28);
}

.button {
  display: inline-block;
  padding: 10px 18px;
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: 10px;
  transition: background 120ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-strong);
}

.button--ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--border);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: #1d2632;
}

.hint {
  margin: 24px 0 0;
  padding-top: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  border-top: 1px solid var(--border);
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
