:root {
  --pink: #ff6faf;
  --pink-deep: #f04d9c;
  --purple: #8f5bff;
  --purple-soft: #efe8ff;
  --text: #2a2430;
  --muted: #7a7182;
  --card: rgba(255, 255, 255, 0.82);
  --border: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 60px rgba(175, 87, 177, 0.18);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.9), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(255, 184, 218, 0.9), transparent 26%),
    linear-gradient(180deg, #fff2f8 0%, #f5efff 54%, #eef6ff 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(1px);
  opacity: 0.55;
}

body::before {
  width: 180px;
  height: 180px;
  left: -70px;
  top: 18%;
  background: radial-gradient(circle, rgba(255, 121, 180, 0.28), transparent 62%);
}

body::after {
  width: 240px;
  height: 240px;
  right: -110px;
  bottom: 12%;
  background: radial-gradient(circle, rgba(143, 91, 255, 0.22), transparent 64%);
}

.app {
  width: 100%;
  min-height: 100vh;
  padding: max(22px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  align-items: center;
}

.screen {
  display: none;
  width: min(100%, 460px);
}

.screen.active {
  display: block;
  animation: fadeUp 0.34s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo {
  width: 34px;
  height: 34px;
  display: block;
}

.hero-card,
.question-card,
.result-card {
  border: 1px solid var(--border);
  border-radius: 32px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-card {
  padding: 34px 24px 26px;
  text-align: center;
}

.eyebrow,
.question-index {
  margin: 0 0 10px;
  color: var(--pink-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-card h1 {
  margin-bottom: 14px;
  font-size: 38px;
  line-height: 1.12;
}

.hero-card h1 span {
  background: linear-gradient(90deg, var(--pink-deep), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.chips span,
.score-grid span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 111, 175, 0.11);
  color: #7c3d73;
  font-size: 12px;
  font-weight: 700;
}

button,
input {
  font: inherit;
}

.primary-btn {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 15px 18px;
  color: white;
  font-weight: 900;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 12px 30px rgba(240, 77, 156, 0.28);
  cursor: pointer;
}

.primary-btn:active,
.option:active,
.ghost-btn:active {
  transform: scale(0.98);
}

.redeem-box {
  margin-top: 20px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
}

.redeem-box p,
.redeem-box small,
.locked-report small {
  color: var(--muted);
}

.redeem-row {
  display: flex;
  gap: 8px;
}

.redeem-row input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(240, 77, 156, 0.22);
  border-radius: 14px;
  padding: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.88);
}

.redeem-row button {
  border: 0;
  border-radius: 14px;
  padding: 0 14px;
  color: white;
  font-weight: 800;
  background: var(--pink-deep);
  cursor: pointer;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ghost-btn {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #6d5874;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  margin-bottom: 14px;
}

.progress div {
  height: 100%;
  width: 20%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  transition: width 0.25s ease;
}

.question-card {
  padding: 24px;
}

.question-card h2 {
  font-size: 23px;
  line-height: 1.36;
  margin-bottom: 18px;
}

.options {
  display: grid;
  gap: 12px;
}

.option {
  width: 100%;
  border: 1px solid rgba(240, 77, 156, 0.15);
  border-radius: 20px;
  padding: 16px;
  text-align: left;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  cursor: pointer;
}

.option strong {
  display: block;
  margin-bottom: 5px;
}

.option span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.result-card {
  padding: 28px 22px;
  text-align: center;
}

.result-card h1 {
  margin-bottom: 10px;
  font-size: 30px;
  color: var(--pink-deep);
}

.result-desc {
  color: var(--muted);
  line-height: 1.75;
}

.score-grid {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}

.locked-report,
.full-report {
  margin: 16px 0 20px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  text-align: left;
}

.lock-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 111, 175, 0.2), rgba(143, 91, 255, 0.2));
  font-size: 24px;
}

.locked-report h3,
.full-report h3 {
  text-align: center;
  margin-bottom: 8px;
}

.locked-report p,
.full-report p,
.full-report li {
  color: var(--muted);
  line-height: 1.7;
}

.full-report ul {
  padding-left: 18px;
}

.hidden {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 20;
  transform: translateX(-50%) translateY(18px);
  max-width: calc(100% - 36px);
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(35, 30, 40, 0.88);
  color: white;
  font-size: 14px;
  opacity: 0;
  transition: all 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
