@import url('https://fonts.googleapis.com/css2?family=Jua&family=Gowun+Dodum&display=swap');

:root {
  --bg1: #fff6ea;
  --bg2: #ffe9f0;
  --card: #ffffff;
  --ink: #33302a;
  --muted: #8b8378;
  --accent: #ff8a5b;
  --accent2: #6c63ff;
  --radius: 22px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Gowun Dodum', 'Apple SD Gothic Neo', sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, var(--bg1), var(--bg2) 60%, #eaf3ff);
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  padding: 24px 12px 60px;
}

.app-shell {
  width: 100%;
  max-width: 480px;
}

h1, h2, h3, .brand-title, .big-title {
  font-family: 'Jua', sans-serif;
  font-weight: normal;
}

.screen { display: none; animation: fadeIn .35s ease; }
.screen.active { display: block; }

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

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: 0 10px 30px rgba(60, 40, 20, 0.08);
}

/* ---------- 인트로 ---------- */
.intro-emoji { font-size: 56px; text-align: center; margin-bottom: 4px; }
.brand-title { font-size: 30px; text-align: center; color: var(--accent); margin: 0 0 4px; }
.brand-sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 22px; line-height: 1.5; }

.tag-row { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.tag { background: #fff2e8; color: var(--accent); font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid #ffd9c2; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid #eee0d2;
  font-size: 15px;
  font-family: inherit;
  background: #fffaf3;
}
.field input:focus { outline: none; border-color: var(--accent); }

.primary-btn {
  width: 100%;
  padding: 15px;
  margin-top: 10px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #ffb37a);
  color: white;
  font-size: 17px;
  font-family: 'Jua', sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(255, 138, 91, .35);
  transition: transform .15s ease;
}
.primary-btn:active { transform: scale(0.97); }

.disclaimer { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 16px; line-height: 1.5; }

/* ---------- 테스트 ---------- */
.progress-bar-bg { height: 8px; background: #f1e7d8; border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent2), var(--accent)); width: 0%; transition: width .25s ease; }
.progress-text { font-size: 12px; color: var(--muted); text-align: right; margin-bottom: 22px; }

.question-text { font-size: 19px; line-height: 1.5; text-align: center; min-height: 90px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }

.options-wrap { display: flex; flex-direction: column; gap: 10px; }
.likert-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1.5px solid #eee0d2;
  background: #fffaf3;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  text-align: left;
  transition: all .15s ease;
}
.likert-btn:hover { border-color: var(--accent); background: #fff2e8; }
.likert-btn.selected { border-color: var(--accent); background: #ffe6d5; transform: scale(0.98); }
.likert-emoji { font-size: 22px; }

/* ---------- 로딩 ---------- */
.loading-wrap { text-align: center; padding: 60px 0; }
.loading-spin { font-size: 48px; display: inline-block; animation: spin 1.1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.loading-text { margin-top: 18px; color: var(--muted); font-size: 14px; }

/* ---------- 결과 ---------- */
.result-header { text-align: center; margin-bottom: 6px; }
.result-emoji-big { font-size: 46px; }
.result-code { font-size: 30px; color: var(--accent2); margin: 4px 0 0; }
.result-nickname-title { font-size: 15px; color: var(--ink); margin: 4px 0 0; font-weight: bold; }
.result-for { color: var(--muted); font-size: 13px; }

.section { margin-top: 26px; }
.section-title { font-size: 17px; margin: 0 0 12px; display: flex; align-items: center; gap: 6px; }

.type-row { margin-bottom: 14px; }
.type-row-head { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 4px; }
.type-bar-bg { height: 10px; background: #f1ece2; border-radius: 999px; overflow: hidden; }
.type-bar-fill { height: 100%; border-radius: 999px; }
.type-row-desc { font-size: 12px; color: var(--muted); margin-top: 3px; }

.hex-wrap, .prediger-wrap { display: flex; justify-content: center; margin: 6px 0 10px; }
.hex-grid { fill: none; stroke: #eee0d2; stroke-width: 1; }
.hex-axis { stroke: #eee0d2; stroke-width: 1; }
.hex-label { font-size: 13px; fill: var(--ink); font-family: 'Jua', sans-serif; }
.hex-user { fill: rgba(255, 138, 91, .35); stroke: var(--accent); stroke-width: 2; }
.hex-note, .prediger-note { font-size: 13px; color: var(--muted); line-height: 1.6; background: #faf6ee; padding: 12px 14px; border-radius: 12px; }

.prediger-axis { stroke: #e4d8c7; stroke-width: 1.5; }
.prediger-label { font-size: 11px; font-weight: 700; letter-spacing: 0.4px; fill: var(--muted); font-family: Arial, Helvetica, sans-serif; }
.prediger-dot { fill: var(--accent2); stroke: white; stroke-width: 2; }
.quadrant-box { text-align: center; margin-bottom: 10px; }
.quadrant-title { font-size: 16px; color: var(--accent2); margin: 0 0 4px; }
.quadrant-desc { font-size: 13px; color: var(--muted); }

.mbti-box { background: #eef0ff; border-radius: 14px; padding: 14px 16px; text-align: center; }
.mbti-list { font-size: 18px; color: var(--accent2); font-family: 'Jua', sans-serif; margin-bottom: 4px; }
.mbti-caption { font-size: 11.5px; color: var(--muted); }

.job-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #f1ece2; }
.job-card:last-child { border-bottom: none; }
.job-emoji { font-size: 26px; }
.job-name { font-size: 15px; font-weight: bold; }
.job-match { font-size: 12px; color: var(--accent); font-weight: normal; }
.job-blurb { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

#current-job-section { display: none; }
.current-job-box { background: #fff2e8; padding: 14px 16px; border-radius: 14px; font-size: 13.5px; line-height: 1.6; }

.secondary-btn {
  width: 100%;
  padding: 13px;
  margin-top: 10px;
  border-radius: 14px;
  border: 1.5px solid #eee0d2;
  background: #fffaf3;
  font-family: 'Jua', sans-serif;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}
.secondary-btn:active { transform: scale(0.97); }

.footer-note { text-align: center; font-size: 11px; color: var(--muted); margin-top: 24px; line-height: 1.6; }
