:root {
  --brand: #2f6df6;
  --brand-2: #6a3df6;
  --ink: #1f2937;
  --muted: #6b7280;
  --bg-1: #eef3ff;
  --bg-2: #f6efff;
  --card: #ffffff;
  --radius: 22px;
  --shadow: 0 24px 60px -18px rgba(47, 109, 246, .35);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 34px 34px;
  text-align: center;
  overflow: hidden;
  animation: rise .7s cubic-bezier(.22, .9, .3, 1) both;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 120px;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  opacity: .12;
}

.emoji {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 26px;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(47, 109, 246, .6);
  animation: pop .6s .15s cubic-bezier(.22, .9, .3, 1) both;
}

.emoji svg { width: 52px; height: 52px; }

.code {
  position: relative;
  font-size: 54px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 6px 0 4px;
}

.title {
  font-size: 20px;
  font-weight: 700;
  margin: 4px 0 10px;
}

.desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 26px;
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 22px -8px rgba(47, 109, 246, .6);
}

.btn-ghost {
  color: var(--brand);
  background: #eef3ff;
}

.btn:hover { transform: translateY(-2px); }

.iconbar {
  position: relative;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px dashed #e5e7eb;
  font-size: 12.5px;
  color: #9ca3af;
}

@media (max-width: 480px) {
  .card { padding: 34px 22px 26px; border-radius: 18px; }
  .code { font-size: 46px; }
  .title { font-size: 18px; }
  .emoji { width: 84px; height: 84px; }
  .emoji svg { width: 46px; height: 46px; }
  .btn { flex: 1 1 auto; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pop {
  from { opacity: 0; transform: scale(.6); }
  to { opacity: 1; transform: scale(1); }
}
