.test-main {
  min-height: 100vh;
  padding: calc(var(--header-height) + 56px) 24px 100px;
  background:
    linear-gradient(rgba(246, 241, 231, 0.9), rgba(246, 241, 231, 0.97)),
    url("/assets/background.webp") center top / cover fixed;
}

.test-shell,
.question-shell,
.test-analyzing {
  width: min(1080px, 100%);
  min-height: 620px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--white);
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(16, 47, 73, 0.17);
}

.test-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.test-intro-copy {
  display: flex;
  position: relative;
  z-index: 2;
  justify-content: center;
  padding: 64px 24px 64px 68px;
  flex-direction: column;
}

.test-intro-copy > p,
.question-card > p {
  margin: 0 0 15px;
  color: var(--blue);
  font-family: "Mulmaru", Pretendard, sans-serif;
  font-size: 1.1rem;
}

.test-intro-copy h1 {
  margin: 0;
  color: #073e78;
  font-family: "Mulmaru", Pretendard, sans-serif;
  font-size: clamp(4rem, 7vw, 6.5rem);
  font-weight: normal;
  letter-spacing: -0.1em;
  line-height: 0.94;
  overflow-wrap: normal;
  word-break: keep-all;
}

.test-intro-copy > strong {
  margin-top: 30px;
  color: #294c68;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.65;
}

.test-primary-button {
  align-self: flex-start;
  margin-top: 30px;
  padding: 17px 24px;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 14px;
  font-family: "Mulmaru", Pretendard, sans-serif;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 7px 0 #03284f;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.test-primary-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 9px 0 #03284f; }
.test-primary-button:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 3px 0 #03284f; }
.test-primary-button:disabled { cursor: default; opacity: 0.42; }

.test-intro-copy > small {
  margin-top: 23px;
  color: #74899b;
  line-height: 1.6;
}

.test-intro-art {
  display: flex;
  position: relative;
  overflow: hidden;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(145deg, #dff4ff, #79c8ef);
}

.test-intro-art::before {
  position: absolute;
  inset: 42px;
  border: 4px dashed rgba(7, 62, 120, 0.23);
  border-radius: 24px;
  content: "";
}

.test-intro-art img {
  position: absolute;
  bottom: 38px;
  width: 70%;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 16px 20px rgba(5, 47, 83, 0.25));
}

.test-intro-art img:nth-of-type(1) { left: -16%; width: 58%; transform: rotate(-5deg); }
.test-intro-art img:nth-of-type(2) { z-index: 2; width: 72%; }
.test-intro-art img:nth-of-type(3) { right: -19%; width: 58%; transform: rotate(5deg); }

.test-sheet-icon {
  position: absolute;
  z-index: 3;
  top: 62px;
  right: 56px;
  width: 104px;
  height: 126px;
  background: #fff;
  border: 5px solid var(--navy);
  box-shadow: 8px 8px 0 rgba(7, 62, 120, 0.18);
  transform: rotate(7deg);
}

.test-sheet-icon::before { position: absolute; top: -16px; left: 26px; width: 44px; height: 25px; background: #ffc145; border: 5px solid var(--navy); content: ""; }
.test-sheet-icon i { display: block; width: 67px; height: 5px; margin: 21px auto -8px; background: #9dd9f5; }

.question-shell {
  padding: 52px 64px 58px;
}

.question-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--navy);
  font-family: "Mulmaru", Pretendard, sans-serif;
  font-size: 1.08rem;
}

.question-progress-head button {
  padding: 8px 11px;
  color: #587086;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.question-progress {
  overflow: hidden;
  height: 18px;
  margin: 18px 0 52px;
  background: #dbeef7;
  border: 4px solid #0a4b84;
  border-radius: 999px;
}

.question-progress i {
  display: block;
  width: 11.11%;
  height: 100%;
  background: linear-gradient(90deg, #31a5e3, #70d2f6);
  transition: width 260ms ease;
}

.question-card > p { margin-bottom: 12px; }
.question-card h2 { min-height: 104px; margin: 0 0 30px; color: #102f4e; font-family: "Mulmaru", Pretendard, sans-serif; font-size: clamp(2rem, 4.2vw, 3.45rem); font-weight: normal; letter-spacing: -0.07em; line-height: 1.26; overflow-wrap: normal; word-break: keep-all; }
.question-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.question-option { display: flex; min-height: 88px; align-items: center; gap: 15px; padding: 17px 20px; color: #2d4e68; background: #f2f8fb; border: 3px solid transparent; border-radius: 16px; font: inherit; font-size: 1.05rem; line-height: 1.5; text-align: left; cursor: pointer; transition: border 150ms ease, background 150ms ease, transform 150ms ease; }
.question-option:hover { transform: translateY(-2px); border-color: #9dd9f5; }
.question-option.is-selected { color: #082f62; background: #dff3fd; border-color: var(--blue); }
.question-option b { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; color: #fff; background: var(--navy); border-radius: 10px; font-family: "Mulmaru", Pretendard, sans-serif; font-weight: normal; }
.question-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 36px; }
.question-actions > button:first-child { padding: 14px 18px; color: var(--navy); background: #eaf4fa; border: 0; border-radius: 12px; font-family: "Mulmaru", Pretendard, sans-serif; cursor: pointer; }
.question-actions > button:first-child:disabled { opacity: 0.35; cursor: default; }
.question-actions .test-primary-button { margin: 0; }

.test-analyzing {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 26px;
  color: var(--navy);
  text-align: center;
}
.test-analyzing[hidden] { display: none; }
.test-analyzing__kit { display: flex; width: 230px; height: 138px; align-items: center; justify-content: center; gap: 13px; background: #fff; border: 7px solid var(--navy); box-shadow: 12px 12px 0 #9dd9f5; }
.test-analyzing__kit i { width: 22px; height: 22px; background: var(--blue); animation: test-dot 0.9s ease-in-out infinite; }
.test-analyzing__kit i:nth-child(2) { animation-delay: 0.15s; }
.test-analyzing__kit i:nth-child(3) { animation-delay: 0.3s; }
.test-analyzing p { margin: 0; font-family: "Mulmaru", Pretendard, sans-serif; font-size: clamp(1.8rem, 4vw, 3rem); }
.test-analyzing button { color: #547087; background: transparent; border: 0; text-decoration: underline; cursor: pointer; }
.test-disclaimer { width: min(900px, 100%); margin: 32px auto 0; color: #62788a; font-size: 0.9rem; line-height: 1.75; text-align: center; }

@keyframes test-dot { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 820px) {
  .test-shell { grid-template-columns: 1fr; }
  .test-intro-copy { padding: 56px 44px 30px; }
  .test-intro-art { min-height: 360px; }
  .question-shell { padding: 42px 34px 48px; }
}

@media (max-width: 720px) {
  .test-main { padding: calc(var(--header-height) + 20px) 11px calc(var(--mobile-nav-height) + 54px); background-attachment: scroll; }
  .test-shell, .question-shell, .test-analyzing { min-height: 610px; border-radius: 22px; }
  .test-intro-copy { padding: 42px 25px 24px; }
  .test-intro-copy h1 { font-size: clamp(3.5rem, 17vw, 5rem); }
  .test-intro-copy > strong { margin-top: 22px; }
  .test-primary-button { width: 100%; justify-content: center; text-align: center; }
  .test-intro-art { min-height: 300px; }
  .test-intro-art img { bottom: 8px; }
  .test-sheet-icon { top: 28px; right: 28px; transform: scale(0.72) rotate(7deg); transform-origin: top right; }
  .question-shell { padding: 29px 17px 34px; }
  .question-progress { margin-bottom: 34px; }
  .question-card h2 { min-height: 0; margin-bottom: 24px; font-size: clamp(1.8rem, 8.5vw, 2.7rem); }
  .question-options { grid-template-columns: 1fr; gap: 10px; }
  .question-option { min-height: 72px; padding: 13px 14px; font-size: 0.98rem; }
  .question-actions { gap: 10px; margin-top: 25px; }
  .question-actions .test-primary-button { width: auto; flex: 1; }
  .test-disclaimer { font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .test-analyzing__kit i { animation: none; }
  .question-progress i,
  .question-option,
  .test-primary-button { transition: none; }
}
