:root {
  --cream: #fbf7f1;
  --ink: #3b332c;
  --ink-muted: #8a7f73;
  --pink: #efc9b9;
  --sage: #9fb8a8;
  --line-green: #06c755;
  --card-line: #e7dfd4;
  --track: #efe6d8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 40px;
}

.screen { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.screen[hidden] { display: none; }

.top-icon { font-size: 44px; text-align: center; margin-top: 10vh; }
.top-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  line-height: 1.6;
}
.top-meta {
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
}

.progress-bar {
  height: 6px;
  background: var(--track);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-fill {
  height: 100%;
  background: var(--sage);
  transition: width .25s ease;
}
.progress-label {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 4px;
}

.q-text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  margin-top: 18px;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.choice-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.choice-btn:active,
.choice-btn:hover {
  border-color: var(--sage);
  background: #eef5f0;
}

.type-icon { font-size: 48px; text-align: center; margin-top: 6vh; }
.type-name {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}
.type-summary {
  font-size: 14px;
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.8;
}

.axes { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.axis-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-muted); }
.axis-label { width: 60px; flex: none; }
.axis-track { flex: 1; height: 8px; background: var(--track); border-radius: 4px; overflow: hidden; }
.axis-fill { display: block; height: 100%; background: #d97a56; border-radius: 4px; }

.tip-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.tip-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
}
.tip-item .n {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pink);
  color: #5b3223;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lifestyle-note {
  font-size: 12.5px;
  color: var(--ink-muted);
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 4px;
}

.cta {
  display: block;
  width: 100%;
  text-align: center;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
}
.cta.primary { background: var(--line-green); color: #fff; }
.cta.ghost { background: transparent; border: 1px solid var(--ink-muted); color: var(--ink); }
.cta.share { background: var(--pink); color: #5b3223; }

.footer-note {
  text-align: center;
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: auto;
  padding-top: 24px;
}

.error-box {
  background: #fdecea;
  border: 1px solid #f3b8b0;
  color: #8a2e22;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
}
