:root {
  --bg: #0b0f17;
  --card: #121826;
  --border: #1e293b;
  --fg: #e8eef7;
  --muted: #94a3b8;
  --primary: #3b82f6;
  --primary2: #8b5cf6;
  --ok: #22c55e;
  --danger: #ef4444;
  --radius: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; min-height: 100%;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 10% -10%, #1e3a5f 0%, transparent 50%),
              radial-gradient(900px 500px at 100% 0%, #3b1d5c 0%, transparent 45%),
              var(--bg);
  color: var(--fg);
}
.wrap {
  max-width: 420px;
  margin: 0 auto;
  padding: 28px 18px 48px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card {
  background: linear-gradient(145deg, rgba(30,41,59,.9), rgba(15,23,42,.95));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  text-align: center;
}
.logo {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  display: grid; place-items: center;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(59,130,246,.35);
}
h1 { font-size: 1.35rem; margin: 0 0 8px; font-weight: 700; }
.sub { color: var(--muted); font-size: .92rem; line-height: 1.5; margin: 0 0 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 18px;
  border: none; border-radius: 12px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: transform .12s, box-shadow .12s, opacity .12s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  box-shadow: 0 8px 24px rgba(59,130,246,.3);
}
.btn-ok {
  color: #052e16;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  box-shadow: 0 8px 24px rgba(34,197,94,.3);
  text-decoration: none;
}
.btn-ghost {
  margin-top: 10px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.status {
  margin-top: 16px; font-size: .88rem; color: var(--muted);
  min-height: 1.4em;
}
.status.err { color: var(--danger); }
.status.ok { color: var(--ok); }
.coins {
  font-size: 2.4rem; font-weight: 800;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin: 8px 0 4px;
}
.confetti {
  font-size: 2rem; margin-bottom: 8px;
  animation: pop .6s ease;
}
@keyframes pop {
  0% { transform: scale(.4); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.foot {
  margin-top: 20px; font-size: .75rem; color: var(--muted);
}
