:root {
  --lavender: #B8B0F5;
  --lavender-soft: #E8E4FB;
  --lavender-bg: #F2EEFB;
  --lavender-deep: #8B7FE8;
  --lavender-deeper: #6F63D4;
  --lavender-ink: #3D3566;

  --ink: #1A1628;
  --sub: #6B6585;
  --sub2: #9A94B0;
  --line: #EDEAF5;
  --bg: #F6F4FC;
  --bg-2: #FAF8FF;

  --yellow: #FFD93D;
  --coral: #FF9B8A;
  --mint: #9FE3C8;
  --sky: #A8D8EA;
  --green: #7ED4A6;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;

  --shadow-card: 0 2px 8px rgba(61, 53, 102, 0.04);
  --shadow-cta: 0 10px 24px rgba(139, 127, 232, 0.3);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
}

html,
body,
.lite-body {
  min-height: 100%;
}

.lite-body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: -0.2px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(ellipse 780px 480px at 18% 0%, #efecfb 0%, transparent 55%),
    radial-gradient(ellipse 780px 480px at 84% 100%, #eee8f9 0%, transparent 56%),
    var(--bg);
  position: relative;
}

.lite-body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(139, 127, 232, 0.08) 1px, transparent 0);
  background-size: 28px 28px;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 60px rgba(61, 53, 102, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}

.app-scroll,
.options-wrap {
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 481px) {
  .app {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
}

.app-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
}

.app-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.app-bar.with-border {
  border-bottom-color: var(--line);
}

.app-bar--transparent {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

.app-bar__side {
  min-width: 64px;
  display: flex;
  align-items: center;
}

.app-bar__side--end {
  justify-content: flex-end;
}

.app-bar__title {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.app-bar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-bar__brand img {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.app-bar__brand span {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 18px;
}

.icon-btn:hover {
  background: var(--bg);
}

.btn {
  width: 100%;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--lavender-deeper);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  box-shadow: var(--shadow-cta);
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.btn:hover {
  background: var(--lavender-deep);
}

.btn:active {
  transform: scale(0.985);
}

.btn:disabled {
  background: var(--line);
  color: var(--sub2);
  box-shadow: none;
  cursor: not-allowed;
}

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: none;
}

.btn--light {
  background: #fff;
  color: var(--lavender-deeper);
  box-shadow: none;
}

.btn--kakao {
  background: #fee500;
  color: #191919;
  box-shadow: none;
}

.input {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #fff;
  padding: 0 16px;
}

.input:focus {
  outline: none;
  border-color: var(--lavender-deep);
}

.card {
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
}

.card--shadow {
  border: none;
  box-shadow: var(--shadow-card);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15px;
  background: var(--lavender-soft);
  color: var(--lavender-deeper);
}

.tag--yellow {
  background: #fff6d6;
  color: #b48900;
}

.tag--mint {
  background: #e5f7ef;
  color: #3d9d71;
}

.tag--sky {
  background: #e0f0f8;
  color: #3a7a9a;
}

.tag--coral {
  background: #ffe5df;
  color: #c9543c;
}

.fade-in {
  animation: fadeUp 400ms cubic-bezier(.2, .8, .2, 1) both;
}

.stagger > * {
  animation: fadeUp 400ms cubic-bezier(.2, .8, .2, 1) both;
}

.stagger > *:nth-child(1) {
  animation-delay: 40ms;
}

.stagger > *:nth-child(2) {
  animation-delay: 90ms;
}

.stagger > *:nth-child(3) {
  animation-delay: 140ms;
}

.stagger > *:nth-child(4) {
  animation-delay: 190ms;
}

.progress-track {
  height: 6px;
  margin: 0 16px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: var(--lavender-deeper);
  transition: width 320ms cubic-bezier(.2, .8, .2, 1);
}

.question-wrap {
  padding: 28px 24px 10px;
}

.question-title {
  margin: 14px 0 0;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.55px;
  white-space: pre-line;
}

.question-sub {
  margin-top: 6px;
  display: block;
  color: var(--sub);
  font-size: 15px;
  font-weight: 500;
}

.options-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 10px 16px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-btn {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1.5px solid var(--line);
  background: #fff;
  text-align: left;
  transition: all 200ms ease;
}

.option-btn.is-selected {
  border-color: var(--lavender-deeper);
  background: var(--lavender-soft);
}

.option-btn.is-fading {
  opacity: 0.45;
}

.option-btn.is-picking {
  transform: scale(0.99);
}

.option-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.option-radio {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  color: var(--sub2);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.option-radio.is-selected {
  background: var(--lavender-deeper);
  border-color: var(--lavender-deeper);
  color: #fff;
}

.option-text {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.3px;
}

.hero-intro {
  margin: 16px;
  padding: 24px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #b8b0f5 0%, #8b7fe8 100%);
}

.hero-result {
  margin-top: -56px;
  padding: 72px 24px 30px;
  overflow: hidden;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 700;
  color: var(--lavender-ink);
}

.result-avatar {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(126, 212, 166, 0.3);
}

.dist-section,
.trait-section,
.growth-section,
.cta-section,
.share-section {
  padding: 24px 20px 4px;
}

.share-section {
  padding-bottom: 32px;
}

.section-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.dist-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.dist-row + .dist-row {
  margin-top: 12px;
}

.dist-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.dist-meta {
  flex: 1;
}

.dist-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--sub);
  font-weight: 600;
}

.dist-label strong {
  color: var(--ink);
}

.dist-row.is-primary .dist-label {
  color: var(--ink);
  font-weight: 800;
}

.dist-pct {
  font-variant-numeric: tabular-nums;
}

.dist-bar {
  margin-top: 5px;
  height: 6px;
  border-radius: 3px;
  background: #f0edf7;
  overflow: hidden;
}

.dist-bar > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 3px;
  transition: width 600ms cubic-bezier(.2, .8, .2, 1);
}

.trait-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trait-row {
  border-radius: 16px;
  background: #f6f4fc;
  padding: 14px 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.trait-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--lavender-deeper);
}

.trait-title {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.trait-desc {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--sub);
  line-height: 1.5;
}

.cta-card {
  border-radius: 24px;
  padding: 22px;
  color: #fff;
  background: linear-gradient(135deg, #b8b0f5 0%, #8b7fe8 100%);
}

.share-box {
  border-radius: 16px;
  border: 1.5px dashed var(--lavender-soft);
  padding: 14px;
}

.share-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.share-actions .btn {
  height: 42px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
