@charset "utf-8";

/* -------------------------------------------------------------------------- */
/* Webfonts (S-Core Dream: 로고/제목/강조,   Saira: 숫자/카운터)              */
/* -------------------------------------------------------------------------- */

@font-face {
  font-family: 's-core-dream-regular';
  src: url('./public/fonts/SCDream4.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 's-core-dream-medium';
  src: url('./public/fonts/SCDream5.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 's-core-dream-bold';
  src: url('./public/fonts/SCDream6.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 's-core-dream-heavy';
  src: url('./public/fonts/SCDream8.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* 기본 Reset (원본 사이트 common.css 에 맞춘 최소 버전) */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  outline: 0 !important;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
div,
p,
blockquote,
pre,
code,
address,
ul,
ol,
li,
menu,
nav,
section,
article,
aside,
dl,
dt,
dd,
table,
thead,
tbody,
tfoot,
label,
caption,
th,
td,
form,
fieldset,
legend,
hr,
input,
button,
textarea,
object,
figure,
figcaption {
  font-family: 'Noto Sans KR', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  font-size: 62.5%;
  margin: 0;
  padding: 0;
}

body {
  min-width: 320px;
  background: #fff9ed;
  word-wrap: break-word;
  word-break: break-all;
  -webkit-text-size-adjust: none;
}

dl,
ul,
ol,
li {
  list-style: none;
}

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

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

img {
  border: 0;
  vertical-align: middle;
}

#wrap {
  float: left;
  width: 100%;
  height: 100%;
  background: #fff9ed;
}

#layoutmbti-wrap {
  position: relative;
  float: left;
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

/* mbti 테스트 첫 화면 (원본 layout.css 기반) */
.mbti-intro {
  display: flex;
  flex-flow: column;
  margin: 0 auto;
  width: 100%;
  max-width: 720px;
  text-align: center;
  padding: 0 2rem;
}

.mbti-intro .intro-img img {
  max-width: 90%;
}

.mbti-intro .hashtag {
  width: 100%;
  margin-top: 2rem;
  font-size: 0;
}

.mbti-intro .hashtag span {
  display: inline-block;
  width: auto;
  height: 3.4rem;
  transform: rotate(-0.03deg);
  font-size: 1.8rem;
  color: #fff;
  font-weight: 500;
  line-height: 3.4rem;
  padding: 0 2.4rem;
  margin: 0.4rem 0.3rem;
  background: #2f2f2f;
  border-radius: 5rem;
}

.mbti-intro .gudie-txt {
  width: 100%;
  margin: 2rem 0;
}

.mbti-intro .gudie-txt p {
  transform: rotate(-0.03deg);
  font-family: 's-core-dream-medium', 'Noto Sans KR', system-ui, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 2.2rem;
  color: #91856d;
  letter-spacing: -0.06rem;
  line-height: 1.4;
}

.mbti-intro .gudie-txt p strong {
  font-family: 's-core-dream-heavy', 'Noto Sans KR', system-ui, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #231803;
  font-weight: normal;
}

.mbti-intro .intro-form {
  width: 100%;
  margin: 1rem 0 0;
  text-align: left;
}

.mbti-intro .intro-form .form-row {
  margin-top: 1rem;
}

.mbti-intro .intro-form label {
  display: block;
  font-size: 1.6rem;
  color: #555;
  margin-bottom: 0.4rem;
}

.mbti-intro .intro-form input {
  width: 100%;
  height: 4rem;
  padding: 0 1rem;

  font-size: 16px;
  line-height: 1.2;
  border-radius: 0.8rem;
  border: 1px solid #d6c198;
  background-color: #fff;
}

.mbti-intro .intro-form input:focus {
  border-color: #109aea;
}

.mbti-intro .intro-form .form-help {
  margin-top: 0.8rem;
  font-size: 1.4rem;
  color: #91856d;
}

.mbti-intro .start-btn {
  width: 100%;
  margin-top: 2rem;
  transform: rotate(-0.03deg);
}

.mbti-intro .start-btn .tittxt {
  font-family: 's-core-dream-heavy', 'Noto Sans KR', system-ui, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 2.4rem;
  color: #111;
  letter-spacing: -0.06rem;
  line-height: 1;
}

.mbti-intro .start-btn .btns {
  width: 100%;
  margin-top: 1rem;
}

.mbti-intro .start-btn .btns button {
  display: inline-block;
  width: auto;
  height: 5.4rem;
  transform: rotate(-0.03deg);
  font-family: 's-core-dream-bold', 'Noto Sans KR', system-ui, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 2rem;
  color: #fff;
  font-weight: 500;
  padding: 0 3.5rem;
  background: #109aea;
  border-radius: 5rem;
  transition: background 0.3s;
}

.mbti-intro .start-btn .btns button:hover {
  background: #0771ae;
}

.mbti-intro .copyright {
  width: 100%;
  margin-top: 2rem;
}

.mbti-intro .copyright p {
  transform: rotate(-0.03deg);
  font-family: 's-core-dream-medium', 'Noto Sans KR', system-ui, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.8rem;
  color: #747373;
  letter-spacing: -0.06rem;
  line-height: 1;
}

.mbti-step {
  display: flex;
  flex-flow: column;
  margin: 0 auto;
  width: 100%;
  max-width: 620px;
  text-align: center;
  padding: 0 2rem 4rem;
}

.mbti-step .step-title {
  width: 100%;
  margin-bottom: 3rem;
  text-align: left;

  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.mbti-step .step-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 5.6rem;      /* ← 4.4rem -> 5.6rem */
  height: 5.6rem;     /* ← 4.4rem -> 5.6rem */

  font-size: 1.8rem;  /* 글자 크기 고정 */
  font-family: 'Saira', 'Noto Sans KR', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
  font-weight: 500;

  color: #fff;
  background-color: #111;
  border-radius: 100%;

  line-height: 1;
  white-space: nowrap;
  overflow: hidden;

  margin-right: 1rem;
  vertical-align: top;
  letter-spacing: -0.02rem;
}

.mbti-step .step-title h3 {
  flex: 1 1 auto;

  display: inline-block;
  width: auto;
  font-family: 's-core-dream-medium', 'Noto Sans KR', system-ui, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 2.6rem;
  color: #252525;
  letter-spacing: -0.02rem;
  line-height: 1.4;
  text-align: left;
  word-break: keep-all;
  margin-top: 0.55rem;
}

.mbti-step .select-answer {
  width: 100%;
}

.mbti-step .select-answer .answer-type {
  margin-bottom: 2rem;
}

.mbti-step .select-answer .answer-type .option-btn {
  display: block;
  width: 100%;
  height: 100%;
  text-align: left;
  padding: 3rem 3rem;
  background-color: #fff;
  border: 2px dashed #d6c198;
  border-radius: 2rem;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.mbti-step .select-answer .answer-type .option-btn .typebox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}

.mbti-step .select-answer .answer-type .option-btn span.ico {
  display: inline-block;
  width: 3.5rem;
  text-align: center;
  font-size: 2rem;
  color: #fff;
  font-weight: 400;
  line-height: 1;
  padding: 0.8rem 1rem;
  margin-right: 1rem;
  background-color: #d08568;
  border-radius: 0.5rem;
  vertical-align: middle;
}

.mbti-step .select-answer .answer-type .option-btn p {
  display: inline-block;
  width: 90%;
  transform: rotate(-0.03deg);
  font-size: 2.2rem;
  color: #656464;
  font-weight: 500;
  line-height: 1.2;
  word-break: keep-all;
  vertical-align: top;
}

/* hover/active */
.mbti-step .select-answer .answer-type .option-btn:active,
.mbti-step .select-answer .answer-type .option-btn:hover {
  background: #e0ecf3;
  border-color: #6aa6c9;
}

.mbti-step .select-answer .answer-type .option-btn:active span.ico,
.mbti-step .select-answer .answer-type .option-btn:hover span.ico {
  background-color: #1f77aa;
}

.mbti-step .select-answer .answer-type .option-btn:active p,
.mbti-step .select-answer .answer-type .option-btn:hover p {
  color: #000;
}

.mbti-step .select-answer .answer-type .option-btn.is-selected {
  background: #e0ecf3;
  border-color: #6aa6c9;
}

.mbti-step .select-answer .answer-type .option-btn.is-selected span.ico {
  background-color: #1f77aa;
}

.mbti-step .select-answer .answer-type .option-btn.is-selected p {
  color: #000;
}

.mbti-step .step-btn .btns {
  width: 100%;
  margin-top: 3rem;
  text-align: center;

  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.mbti-step .step-btn .btns button {
  display: inline-block;
  width: auto;
  height: 4.6rem;
  transform: rotate(-0.03deg);
  font-family: 's-core-dream-bold', 'Noto Sans KR', system-ui, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.8rem;
  color: #fff;
  font-weight: 500;
  padding: 0 3rem;
  background: #111;
  border-radius: 1rem;
  transition: background 0.3s;
}

/* 질문 하단 버튼 2개 배치 */
.mbti-step .step-btn .btns.btns-two {
  display: flex;
  justify-content: center;
  gap: 1.2rem;          /* 버튼 간격 */
}

.mbti-step .step-btn .btns.btns-two button {
  flex: 1 1 0;
  max-width: 22rem;     /* 너무 커지지 않게 */
}

/* 뒤로가기 버튼 색상 */
.mbti-step .step-btn .btns button.btn-secondary {
  background: #1f77aa;
}

.mbti-step .step-btn .btns button.btn-secondary:hover {
  background: #109aea;
}

.mbti-step .step-btn .btns button.btn-outline {
  background: transparent;
  color: #111;
  border: 2px solid #111;
}

.mbti-step .step-btn .btns button.btn-outline:hover {
  background: #111;
  color: #fff;
}

.mbti-step .step-btn .btns button:hover {
  background: #0771ae;
}

.mbti-step .step-btn .btns button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mbti-step .step-btn .btns button:disabled:hover {
  background: #111;
}

/* 결과 화면 */
#result-type{
  display: block;
  white-space: pre-line; /* \n 줄바꿈 반영 */
  line-height: 1.15;     /* 두 줄일 때 간격 자연스럽게 */
}

.mbti-final {
  display: flex;
  flex-flow: column;
  margin: 0 auto;
  width: 100%;
  max-width: 1200px;
  text-align: center;
  padding: 0 2rem 4rem;
}

.mbti-final .result-headline {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 2rem;
  text-align: left;

  font-family: 's-core-dream-medium', 'Noto Sans KR', system-ui, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 3.3rem;
  color: #000;
  letter-spacing: -0.08rem;
  line-height: 1.3;
  font-weight: normal;

  transform: rotate(-0.03deg);
  word-break: keep-all;
}

.mbti-final .result-headline span {
  color: #cab792;
  font-weight: 700;
}

.mbti-final .result-head {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 1.6rem;
  text-align: left;
  transform: rotate(-0.03deg);
}

.mbti-final .result-head h4 {
  font-family: 's-core-dream-medium', 'Noto Sans KR', system-ui, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 3.3rem;
  color: #000;
  letter-spacing: -0.08rem;
  line-height: 1.3;
  font-weight: normal;
}

.mbti-final .result-head h4 span {
  font-family: 'Noto Sans KR', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  color: #cab792;
  font-weight: 700;
}

.mbti-final .final-answer {
  display: flex;
  flex-wrap: wrap;
}

.mbti-final .final-answer .thumbbox {
  width: 33.3334%;
}

.mbti-final .final-answer .thumbbox .thumb-img {
  width: 100%;
}

.mbti-final .final-answer .thumbbox .thumb-img img {
  width: 100%;
}

.mbti-final .final-answer .thumbbox .thumb-txt {
  width: 100%;
  padding: 2rem 2rem 2.2rem;
  background-color: #d08568;
}

.mbti-final .final-answer .thumbbox .thumb-txt span {
  font-family: 'Saira', 'Noto Sans KR', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
  font-size: 5rem;
  color: #fff;
  font-weight: 700;
  text-align: center;
  line-height: 1;
}

.mbti-final .final-answer .infobox {
  width: 66.6667%;
  text-align: left;
  padding-left: 6.6667%;
  transform: rotate(-0.03deg);
  word-break: keep-all;
}

.mbti-final .final-answer .infobox h4 {
  font-family: 's-core-dream-medium', 'Noto Sans KR', system-ui, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 3.3rem;
  color: #000;
  letter-spacing: -0.08rem;
  line-height: 1.3;
  font-weight: normal;
}

.mbti-final .final-answer .infobox h4 span {
  font-family: 'Noto Sans KR', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  color: #cab792;
  font-weight: 700;
}

.mbti-final .final-answer .infobox div.tittxt {
  font-family: 's-core-dream-medium', 'Noto Sans KR', system-ui, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 2.4rem;
  color: #000;
  letter-spacing: -0.06rem;
  line-height: 1.3;
  margin-top: 4rem;
}

.mbti-final .final-answer .infobox p {
  font-size: 2rem;
  color: #8a6e35;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.06rem;
  margin-top: 0.5rem;
  word-break: keep-all;
  white-space: pre-line; /* \n 줄바꿈 표시 */
}

.mbti-final .step-btn .btns {
  width: 100%;
  margin-top: 5rem;
}

.mbti-final .step-btn .btns button {
  display: inline-block;
  width: auto;
  height: 4.6rem;
  transform: rotate(-0.03deg);
  font-size: 1.8rem;
  color: #fff;
  font-weight: 500;
  padding: 0 3rem;
  background: #111;
  border-radius: 1rem;
  transition: background 0.3s;
}

.mbti-final .step-btn .btns button:hover {
  background: #0771ae;
}

/* 공통 */
.hidden {
  display: none !important;
}

/* 반응형: 모바일 좁은 화면 보정 (간단 버전) */
@media screen and (max-width: 719px) {
  .mbti-step {
    padding: 0 2rem 3rem;
  }

  .mbti-step .select-answer .answer-type .option-btn {
    padding: 2rem 2rem;
  }

  .mbti-step .select-answer .answer-type .option-btn p {
    width: 80%;
    font-size: 2rem;
    letter-spacing: -0.1rem;
  }

  .mbti-final .final-answer .thumbbox,
  .mbti-final .final-answer .infobox {
    width: 100%;
    padding-left: 0;
  }

  .mbti-final .final-answer .thumbbox .thumb-img img {
    width: 70%;
  }
}

/* -------------------------------------------------------------------------- */
/* Base font-size (copied-site behavior)                                       */
/* -------------------------------------------------------------------------- */

@media screen and (max-width: 359px) {
  html,
  body,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  div,
  p,
  blockquote,
  pre,
  code,
  address,
  ul,
  ol,
  li,
  menu,
  nav,
  section,
  article,
  aside,
  dl,
  dt,
  dd,
  table,
  thead,
  tbody,
  tfoot,
  label,
  caption,
  th,
  td,
  form,
  fieldset,
  legend,
  hr,
  input,
  button,
  textarea,
  object,
  figure,
  figcaption {
    font-size: 50%;
  }
}

@media screen and (min-width: 360px) and (max-width: 719px) {
  html,
  body,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  div,
  p,
  blockquote,
  pre,
  code,
  address,
  ul,
  ol,
  li,
  menu,
  nav,
  section,
  article,
  aside,
  dl,
  dt,
  dd,
  table,
  thead,
  tbody,
  tfoot,
  label,
  caption,
  th,
  td,
  form,
  fieldset,
  legend,
  hr,
  input,
  button,
  textarea,
  object,
  figure,
  figcaption {
    font-size: 56.25%;
  }
}