* { box-sizing: border-box; }
:root {
  --pink: #ff87c5;
  --lavender: #9f8cff;
  --mint: #7be8d8;
  --text: #53457d;
}

body {
  margin: 0;
  font-family: 'Nunito', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 10%, #ffe2f2, transparent 30%),
              radial-gradient(circle at 80% 20%, #e2dbff, transparent 35%),
              linear-gradient(160deg, #fff7fc, #eef7ff 50%, #f8fff5);
  min-height: 100vh;
}

.container {
  width: min(760px, 92vw);
  margin: 24px auto 30px;
}

.hero {
  text-align: center;
  margin-bottom: 14px;
}

.badge {
  display: inline-block;
  background: #ffffffcc;
  border: 2px solid #ffd2ea;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 800;
  color: #ff65ac;
}

h1 {
  margin: 10px 0 6px;
  font-size: clamp(32px, 7vw, 48px);
  color: #6f57d8;
}

.subtitle {
  margin: 0;
  font-size: 17px;
}

.panel, .result {
  background: #ffffffd8;
  backdrop-filter: blur(8px);
  border: 2px solid #f2e9ff;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(120, 96, 196, 0.15);
}

.panel { margin-top: 16px; }
.result { margin-top: 16px; }

.row { margin-bottom: 14px; }
.row label, .label { font-weight: 800; display: block; margin-bottom: 8px; }

input[type='text'] {
  width: 100%;
  border: 2px solid #ebddff;
  border-radius: 14px;
  padding: 12px;
  font-size: 16px;
}

.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.options label {
  display: block;
  margin: 6px 0;
  font-weight: 600;
}

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

button {
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

#genBtn {
  color: white;
  background: linear-gradient(120deg, var(--pink), var(--lavender));
  box-shadow: 0 8px 18px rgba(148, 107, 255, 0.3);
}

.ghost {
  background: #f6f1ff;
  color: #7f5ae9;
  border: 2px solid #dfd1ff;
}

.name-card {
  background: linear-gradient(160deg, #fff, #fff0f8);
  border: 1px solid #f4d6ec;
  border-radius: 16px;
  padding: 14px;
  margin-top: 10px;
}

.name {
  margin: 0;
  font-size: 28px;
  color: #ff58a9;
}

.meaning {
  margin: 8px 0 0;
  line-height: 1.6;
}

.hint { margin: 0; color: #8b82aa; }
footer { text-align: center; margin-top: 14px; font-size: 13px; color: #8b82aa; }

@media (max-width: 620px) {
  .options { grid-template-columns: 1fr; }
}
