/* ════════════════════════════════════════════════════════════════════
 * 개발자 직군 테스트 — 스타일
 * 컨셉: 한 장의 노트 위에서 풀어가는 손그림 성향 테스트.
 *   기존 TodayWay 랜딩 팔레트(종이/잉크/색연필)를 그대로 차용.
 * ════════════════════════════════════════════════════════════════════ */

:root {
  --paper: #f5edd6;
  --paper-deep: #ebe0bf;
  --paper-card: #fdfaf0;
  --paper-shadow: #d8caa4;
  --ink: #1f1a14;
  --ink-soft: #3a3023;
  --ink-mute: #6a5d44;
  --line: #c4b78c;

  --blue: #2563eb;
  --blue-soft: #bfd0f5;
  --green: #5da566;
  --green-soft: #c0d8b7;
  --coral: #d8503f;
  --coral-soft: #f1b5ac;
  --amber: #d9a04a;
  --amber-soft: #ecd4a3;

  --hand: "Gaegu", "Gowun Dodum", sans-serif;
  --display: "Jua", "Gaegu", sans-serif;
  --kr: "Gowun Dodum", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --read: "Nanum Gothic", "Apple SD Gothic Neo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--kr);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* 노트 종이 텍스처 — 스크롤과 무관하게 고정 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--paper);
  background-image: url("../assets/landing/scene-1-calendar/notebook-paper.jpg");
  background-size: 1100px auto;
  background-repeat: repeat;
  pointer-events: none;
}
/* 종이 가장자리 비네팅 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(80, 60, 20, 0.12) 100%);
}

img { display: block; max-width: 100%; }
.hand { font-family: var(--hand); }
.mono { font-family: var(--hand); font-weight: 700; letter-spacing: 0.02em; }
b { font-weight: 700; color: var(--ink); }

/* ═══════════════ 화면 전환 ═══════════════ */
.screen {
  display: none;
  min-height: 100dvh;
  padding: 64px 22px;
  align-items: center;
  justify-content: center;
}
.screen.is-active { display: flex; }
.screen.is-active > * { animation: screenIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* 결과/질문은 내용이 길 수 있어 위에서부터 정렬 */
#screen-result.is-active,
#screen-quiz.is-active { align-items: flex-start; }

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

/* ═══════════════ 공용 버튼 ═══════════════ */
.btn-primary {
  font-family: var(--display);
  font-size: 1.4rem;
  color: #fff;
  background: var(--blue);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 16px 46px;
  cursor: pointer;
  box-shadow: 5px 6px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 7px 8px 0 var(--ink); }
.btn-primary:active { transform: translate(3px, 4px); box-shadow: 2px 2px 0 var(--ink); }

.btn-ghost {
  font-family: var(--kr);
  font-size: 0.96rem;
  color: var(--ink-mute);
  background: transparent;
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 9px 20px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-mute); background: rgba(0,0,0,0.03); }
.btn-ghost:disabled { opacity: 0; pointer-events: none; }

.badge {
  display: inline-block;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 10px 24px;
  box-shadow: 2px 3px 0 var(--ink);
}

/* ═══════════════ 1. 시작 화면 ═══════════════ */
.start-wrap {
  max-width: 560px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.start-sub {
  font-size: 1.12rem;
  color: var(--ink-soft);
}
.start-character {
  position: relative;
  width: 220px;
  height: 230px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.start-character > img:first-child { height: 100%; width: auto; }
.float-soft { animation: floatSoft 3.4s ease-in-out infinite; }
@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.doodle { position: absolute; pointer-events: none; }
.doodle-q {
  width: 64px; top: -6px; right: -2px;
  transform: rotate(12deg);
  animation: wiggle 2.8s ease-in-out infinite;
}
.doodle-star {
  width: 46px; bottom: 26px; left: -6px;
  transform: rotate(-10deg);
  animation: wiggle 3.2s ease-in-out infinite reverse;
}
@keyframes wiggle {
  0%, 100% { transform: rotate(10deg) scale(1); }
  50% { transform: rotate(-6deg) scale(1.08); }
}
/* ═══════════════ 2. 질문 화면 ═══════════════ */
.quiz-wrap {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.quiz-head { display: flex; flex-direction: column; gap: 10px; }
.progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#q-counter { font-size: 0.92rem; color: var(--ink-mute); }
.q-axis-tag {
  font-family: var(--hand);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 2px 14px;
  transform: rotate(-1.5deg);
}
.progress-track {
  width: 100%;
  height: 14px;
  background: var(--paper-card);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 8%;
  background: repeating-linear-gradient(
    45deg, var(--blue), var(--blue) 9px,
    #3f76ee 9px, #3f76ee 18px);
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.quiz-body { display: flex; flex-direction: column; gap: 22px; }
.quiz-body.swap { animation: cardSwap 0.34s ease both; }
@keyframes cardSwap {
  from { opacity: 0; transform: translateX(26px); }
  to   { opacity: 1; transform: translateX(0); }
}

.scene-card {
  position: relative;
  background: var(--paper-card);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 26px 24px;
  box-shadow: 5px 6px 0 var(--ink);
  transform: rotate(-0.6deg);
}
.scene-q-num {
  position: absolute;
  top: -18px; left: 20px;
  font-family: var(--display);
  font-size: 1.05rem;
  color: #fff;
  background: var(--coral);
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  padding: 2px 12px;
  transform: rotate(-4deg);
}
.scene-figure {
  margin: 8px 0 16px;
  padding: 8px;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  text-align: center;
  line-height: 0;
}
.scene-figure img {
  max-width: 100%;
  max-height: 240px;
  width: auto;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}
.scene-text {
  font-family: var(--hand);
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  word-break: keep-all;
}

.choices { display: flex; flex-direction: column; gap: 14px; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  width: 100%;
  background: var(--paper-card);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  box-shadow: 3px 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  font-family: var(--read);
}
.choice:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 6px 0 var(--ink);
  background: #fff;
}
.choice:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.choice.picked {
  background: var(--amber-soft);
  transform: translate(2px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}
.choice-key {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.1rem;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
}
.choice:nth-child(2) .choice-key { background: var(--blue); }
.choice-text {
  font-size: 1.04rem;
  line-height: 1.55;
  color: var(--ink-soft);
  padding-top: 3px;
  word-break: keep-all;
}
.quiz-foot { display: flex; justify-content: center; }

/* ═══════════════ 3. 로딩 화면 ═══════════════ */
.loading-wrap {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.loading-char { height: 150px; width: auto; }
.loading-char.run { animation: runBounce 0.28s ease-in-out infinite; }
@keyframes runBounce {
  0%, 100% { transform: translateY(2px); }
  50% { transform: translateY(-13px); }
}
.loading-text { font-size: 1.6rem; font-weight: 700; color: var(--ink); }
.loading-dots { display: flex; gap: 9px; }
.loading-dots span {
  width: 13px; height: 13px;
  background: var(--blue);
  border: 2px solid var(--ink);
  border-radius: 50%;
  animation: blink 1.1s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.18s; }
.loading-dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-10px); opacity: 1; }
}

/* ═══════════════ 4. 결과 화면 ═══════════════ */
.result-wrap {
  width: 100%;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* 직군 테마색 — data.js 의 color 값과 매핑 */
.result-wrap[data-color="blue"]  { --accent: var(--blue);  --accent-soft: var(--blue-soft); }
.result-wrap[data-color="green"] { --accent: var(--green); --accent-soft: var(--green-soft); }
.result-wrap[data-color="coral"] { --accent: var(--coral); --accent-soft: var(--coral-soft); }
.result-wrap[data-color="amber"] { --accent: var(--amber); --accent-soft: var(--amber-soft); }
.result-wrap[data-color="ink"]   { --accent: var(--ink-soft); --accent-soft: #cabfa2; }

.result-tagline {
  text-align: center;
  font-family: var(--hand);
  font-size: 1.15rem;
  color: var(--ink-mute);
}

/* — 결과 메인 카드 — */
.result-hero {
  position: relative;
  background: var(--paper-card);
  border: 3.5px solid var(--ink);
  border-radius: 22px;
  box-shadow: 7px 9px 0 var(--ink);
  padding: 30px 26px 26px;
  text-align: center;
  overflow: hidden;
}
.result-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-soft);
  opacity: 0.45;
  z-index: 0;
}
.result-hero > * { position: relative; z-index: 1; }
.card-label {
  display: inline-block;
  font-family: var(--hand);
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  padding: 2px 16px;
}
.result-job-name {
  font-family: var(--display);
  font-size: 2.5rem;
  color: var(--ink);
  line-height: 1.2;
  margin-top: 8px;
}
.result-nick {
  font-family: var(--hand);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 6px;
  word-break: keep-all;
}
.result-nick .nick-quote { color: var(--ink-mute); }

/* 직군 캐릭터/이미지 자리 */
.result-figure {
  width: 200px;
  height: 200px;
  margin: 16px auto 4px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 4px 5px 0 var(--ink);
  display: grid;
  place-items: center;
  overflow: hidden;
  transform: rotate(-1.5deg);
}
.result-figure img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.result-figure .fig-note {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 0.62rem;
  color: var(--ink-mute);
  position: absolute;
  margin-top: 168px;
  background: var(--paper-card);
  border: 1.5px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}

/* 결과 카드 하단 — MBTI · 오늘어디 활용유형 요약 배지
 * 이미지 저장(html2canvas 1.4.1)은 flex column·gap 을 제대로 못 그린다.
 * → block + text-align + margin 으로 구성해 화면/저장 결과를 일치시킴. */
.card-badges {
  display: flex;
  margin-top: 18px;
}
.card-badge {
  flex: 1;
  min-width: 0;
  background: var(--paper-card);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  padding: 9px 6px 10px;
  display: block;
  text-align: center;
}
.card-badge + .card-badge { margin-left: 10px; }
.cb-label {
  display: block;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: var(--ink-mute);
}
.cb-value {
  display: block;
  margin-top: 3px;
  font-family: var(--display);
  font-size: 1.16rem;
  color: var(--ink);
  line-height: 1.25;
  word-break: keep-all;
}

/* — 결과 카드 저장 버튼 — */
.result-savebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: -6px;
}

/* — 결과 QR — 휴대폰으로 결과 가져가기 — */
.result-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--paper-card);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 16px 26px 20px;
  box-shadow: 4px 5px 0 var(--ink);
}
.result-qr-label {
  font-family: var(--display);
  font-size: 1rem;
  color: #fff;
  background: var(--coral);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 3px 16px;
  transform: rotate(-2deg);
}
.result-qr-img {
  width: 170px;
  height: 170px;
  image-rendering: pixelated;
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  background: #fff;
}
.result-qr-cap {
  font-family: var(--hand);
  font-size: 1.05rem;
  line-height: 1.4;
  text-align: center;
  color: var(--ink-soft);
}
.btn-save {
  font-family: var(--display);
  font-size: 1.05rem;
  color: #fff;
  background: var(--blue);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 11px 30px;
  cursor: pointer;
  box-shadow: 4px 5px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-save:hover { transform: translate(-2px, -2px); box-shadow: 6px 7px 0 var(--ink); }
.btn-save:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-save:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
  box-shadow: 4px 5px 0 var(--ink);
}

/* — 공용 섹션 카드 — */
.panel {
  background: var(--paper-card);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 5px 6px 0 var(--ink);
  padding: 22px 22px 24px;
}
.panel-title {
  font-family: var(--display);
  font-size: 1.32rem;
  color: var(--ink);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-title::before {
  content: "";
  width: 16px; height: 16px;
  background: var(--accent, var(--blue));
  border: 2px solid var(--ink);
  border-radius: 5px;
  transform: rotate(-8deg);
  flex-shrink: 0;
}
.panel-sub {
  font-family: var(--read);
  font-weight: 800;
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.result-summary { font-family: var(--read); font-weight: 800; font-size: 1.05rem; line-height: 1.7; color: var(--ink); }
.result-fit {
  font-family: var(--read);
  font-weight: 800;
  margin-top: 12px;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-deep);
  border-left: 4px solid var(--accent, var(--blue));
  border-radius: 0 8px 8px 0;
  padding: 9px 14px;
}

/* — MBTI 카드 — */
.mbti-headline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.mbti-letter {
  font-family: var(--display);
  font-size: 2.3rem;
  width: 58px;
  height: 64px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 4px 0 var(--paper-shadow);
}
.mbti-letter.lit { background: var(--accent, var(--blue)); }

.axis-row { margin-bottom: 16px; }
.axis-row:last-child { margin-bottom: 0; }
.axis-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--read);
  font-weight: 800;
  font-size: 0.94rem;
  margin-bottom: 5px;
}
.axis-labels .axis-side { color: var(--ink-mute); transition: color 0.3s; }
.axis-labels .axis-side.win { color: var(--ink); }
.axis-side .axis-code {
  font-family: var(--display);
  font-size: 1rem;
  margin-right: 3px;
}
.axis-bar {
  position: relative;
  height: 22px;
  background: var(--paper-deep);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
}
.axis-bar-fill {
  position: absolute;
  top: 0; bottom: 0;
  background: var(--accent, var(--blue));
  width: 0;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.axis-bar-fill.from-left  { left: 0; border-radius: 999px 0 0 999px; }
.axis-bar-fill.from-right { right: 0; border-radius: 0 999px 999px 0; background: var(--ink-soft); }
.axis-mid {
  position: absolute;
  left: 50%; top: -2px; bottom: -2px;
  width: 3px;
  background: var(--ink);
  transform: translateX(-50%);
  z-index: 2;
}
.axis-pct {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 3px;
}

/* — 직군 적합도 막대그래프 — */
.fit-bar-row { margin-bottom: 13px; }
.fit-bar-row:last-child { margin-bottom: 0; }
.fit-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.94rem;
  margin-bottom: 4px;
}
.fit-bar-name { font-family: var(--read); font-weight: 800; font-size: 0.98rem; color: var(--ink-soft); }
.fit-bar-row.top .fit-bar-name { color: var(--ink); }
.fit-bar-name .rank-num {
  display: inline-block;
  min-width: 17px;
  margin-right: 7px;
  font-family: var(--display);
  color: var(--ink-mute);
  text-align: center;
}
.fit-bar-row.top .fit-bar-name .rank-num { color: var(--accent, var(--blue)); }
.fit-bar-pct { font-family: var(--hand); font-weight: 700; font-size: 0.82rem; color: var(--ink-mute); }
.fit-bar-track {
  height: 18px;
  background: var(--paper-deep);
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
}
.fit-bar-fill {
  height: 100%;
  width: 0;
  background: var(--line);
  border-radius: 999px;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.fit-bar-row.top .fit-bar-fill {
  background: repeating-linear-gradient(
    45deg, var(--accent, var(--blue)), var(--accent, var(--blue)) 8px,
    rgba(255,255,255,0.35) 8px, rgba(255,255,255,0.35) 16px);
}

/* — 스택 칩 — */
.stack-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-chip {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--paper-deep);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 4px 11px;
}

.mbti-hint {
  margin-top: 14px;
  font-family: var(--hand);
  font-size: 1.05rem;
  color: var(--ink-soft);
  text-align: center;
}

/* — 오늘어디 활용유형 — */
.apptype-head {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper-deep);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.apptype-figure {
  flex-shrink: 0;
  width: 106px;
  height: 106px;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.apptype-figure img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.apptype-headtext { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.apptype-kicker {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.04rem;
  letter-spacing: 0.03em;
  color: var(--ink-mute);
}
.apptype-name {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1.2;
}
.apptype-tagline {
  font-family: var(--hand);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--accent, var(--blue));
  word-break: keep-all;
}
.apptype-axes { margin-bottom: 16px; }
.apptype-desc {
  font-family: var(--read);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.66;
  color: var(--ink);
  background: var(--paper-deep);
  border-left: 4px solid var(--accent, var(--blue));
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  margin-bottom: 16px;
  word-break: keep-all;
}
.apptype-tips { display: flex; flex-direction: column; gap: 10px; }
.tip-row {
  display: flex;
  gap: 12px;
  background: var(--paper-card);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 3px 4px 0 var(--ink);
}
.tip-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1rem;
  color: #fff;
  background: var(--accent, var(--blue));
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.tip-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tip-feature {
  font-family: var(--hand);
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--ink);
}
.tip-how {
  font-family: var(--read);
  font-weight: 800;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink-soft);
  word-break: keep-all;
}

/* — 결과 액션 — */
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}
.btn-retry {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink);
  background: var(--paper-card);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 12px 38px;
  cursor: pointer;
  box-shadow: 4px 5px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-retry:hover { transform: translate(-2px,-2px); box-shadow: 6px 7px 0 var(--ink); }
.btn-retry:active { transform: translate(2px,3px); box-shadow: 1px 1px 0 var(--ink); }
.result-share-note {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.14rem;
  color: var(--ink-mute);
  text-align: center;
}

/* ═══════════════ 반응형 ═══════════════ */
@media (max-width: 540px) {
  body { font-size: 16px; }
  .screen { padding: 44px 16px; }
  .scene-text { font-size: 1.24rem; }
  .result-job-name { font-size: 2rem; }
  .result-nick { font-size: 1.14rem; }
  .btn-primary { font-size: 1.2rem; padding: 14px 36px; }
  .mbti-letter { font-size: 1.9rem; width: 48px; height: 54px; }
  .result-figure { width: 168px; height: 168px; }
  .apptype-name { font-size: 1.28rem; }
  .cb-value { font-size: 1rem; }
}

/* 큰 화면(부스 키오스크/태블릿) — 살짝 키움 */
@media (min-width: 1024px) {
  body { font-size: 18px; }
  .scene-text { font-size: 1.56rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
