.finder-shell {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(4rem, 7vw, 6rem);
  overflow-wrap: break-word;
  word-break: keep-all;
}

body:has(.finder-shell) {
  min-height: 100vh;
  background: #fbfaf7;
}

body.finder-result-mode:has(.finder-shell) {
  background:
    linear-gradient(180deg, #fbfaf7 0%, #f4f1eb 100%);
}

.finder-hero {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: min(720px, calc(100svh - clamp(4rem, 9vw, 7rem)));
  gap: clamp(1.8rem, 5vw, 3.8rem);
  align-items: center;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.finder-result-mode .finder-hero {
  min-height: auto;
  grid-template-rows: auto;
  gap: 0;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.finder-copy {
  align-self: center;
  justify-self: center;
  width: min(100%, 48rem);
  text-align: center;
}

.finder-result-mode .finder-copy {
  width: min(100%, 42rem);
}

.finder-kicker,
.result-label,
.racket-brand,
.player-context span,
.question-purpose,
.intro-label,
.quiz-status {
  margin: 0 0 0.45rem;
  color: #1c6a4d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.finder-copy h1 {
  max-width: none;
  margin-bottom: 1rem;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  white-space: nowrap;
}

.finder-result-mode .finder-copy h1 {
  margin-bottom: 0.8rem;
  font-size: clamp(2.2rem, 4.4vw, 4.15rem);
}

.finder-lead {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  color: #3d4650;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
}

.finder-result-mode .finder-lead {
  max-width: 36rem;
  color: #525a64;
  font-size: clamp(0.98rem, 1.45vw, 1.08rem);
}

.finder-shell:has(#quizSection:not(.is-hidden)) {
  padding-top: clamp(1.45rem, 3vw, 2.5rem);
}

.finder-shell:has(#introCard:not(.is-hidden)) {
  padding-top: clamp(1.45rem, 3vw, 2.5rem);
}

.finder-shell:has(#quizSection:not(.is-hidden)) .finder-hero {
  display: none;
}

.finder-shell:has(#introCard:not(.is-hidden)) .finder-hero {
  min-height: auto;
  grid-template-rows: auto auto;
  gap: clamp(1.25rem, 2.4vw, 2rem);
  margin-bottom: 0;
}

.finder-shell:has(#quizSection:not(.is-hidden)) .finder-copy {
  width: min(100%, 58rem);
}

.finder-shell:has(#introCard:not(.is-hidden)) .finder-copy {
  width: min(100%, 58rem);
}

.finder-shell:has(#quizSection:not(.is-hidden)) .finder-copy h1 {
  margin-bottom: 0.55rem;
  font-size: clamp(2.2rem, 4.45vw, 4.05rem);
}

.finder-shell:has(#introCard:not(.is-hidden)) .finder-copy h1 {
  margin-bottom: 0.55rem;
  font-size: clamp(2.2rem, 4.45vw, 4.05rem);
}

.finder-shell:has(#quizSection:not(.is-hidden)) .finder-lead {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(0.9rem, 1.08vw, 1.03rem);
}

.finder-shell:has(#introCard:not(.is-hidden)) .finder-lead {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(0.9rem, 1.08vw, 1.03rem);
}

.finder-shell:has(#quizSection:not(.is-hidden)) .quiz-layout {
  margin-top: 0;
}

.finder-intro-card,
.quiz-layout,
.result-visual,
.result-panel {
  border: 1px solid rgba(24, 26, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 22px 70px rgba(29, 33, 38, 0.11);
}

.finder-intro-card {
  width: min(100%, 28rem);
  justify-self: center;
  align-self: end;
  padding: 1.25rem;
}

.finder-intro-card h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  line-height: 1.08;
}

.finder-intro-card p:not(.intro-label) {
  margin-bottom: 1rem;
  color: #4c5661;
  font-weight: 700;
}

.quiz-layout {
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1rem, 3vw, 1.6rem);
  scroll-margin-top: 92px;
}

.quiz-status {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.progress-track {
  height: 10px;
  margin-bottom: clamp(1.1rem, 3vw, 1.6rem);
  border-radius: 999px;
  background: #e2e6dd;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #181a1f;
  transition: width 180ms ease;
}

.question-panel h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  line-height: 1.08;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.answer-button {
  min-height: 82px;
  padding: 1rem;
  border: 1px solid rgba(24, 26, 31, 0.13);
  border-radius: 8px;
  background: #fff;
  color: #181a1f;
  font: inherit;
  font-weight: 850;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.answer-button:hover,
.answer-button:focus-visible {
  border-color: #181a1f;
  outline: none;
}

.answer-button.active {
  border-color: #181a1f;
  background: #181a1f;
  color: #fff;
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 1rem;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(20rem, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.1rem, 3.4vw, 2.4rem);
  align-items: start;
}

.result-visual,
.result-panel {
  overflow: hidden;
}

.result-visual {
  display: grid;
  place-items: center;
  min-height: 620px;
  background: #f8f7f2;
}

.result-visual img {
  width: 100%;
  height: 100%;
  max-height: 820px;
  object-fit: cover;
  object-position: top center;
}

.result-panel {
  padding: clamp(1.1rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.88);
}

.result-panel h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(2rem, 3.1vw, 3.35rem);
  white-space: nowrap;
}

.result-summary {
  margin-bottom: 1.25rem;
  color: #424b55;
  font-size: 1.08rem;
  font-weight: 700;
}

.racket-card {
  display: grid;
  grid-template-columns: minmax(8rem, 13.5rem) minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 1.4rem);
  align-items: center;
  margin-bottom: 1rem;
  padding: clamp(0.9rem, 2vw, 1.15rem);
  border: 1px solid #d8ddd5;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f7f2 100%);
}

.racket-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  border-radius: 6px;
  background: #fbfaf7;
}

.racket-card h3 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.45rem, 2.15vw, 2rem);
  line-height: 1.05;
  white-space: nowrap;
}

.racket-card p:last-child {
  margin-bottom: 0;
  color: #525b66;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0 0 1rem;
}

.spec-grid div,
.player-context {
  padding: 0.9rem;
  border: 1px solid #d8ddd5;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.spec-grid dt {
  color: #68727d;
  font-size: 0.82rem;
  font-weight: 800;
}

.spec-grid dd {
  margin: 0.25rem 0 0;
  color: #20252b;
  font-weight: 750;
}

.player-context {
  margin-bottom: 1rem;
}

.player-context strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.player-context p {
  margin-bottom: 0;
  color: #626b76;
  font-size: 0.94rem;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.finder-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: clamp(1.5rem, 4vw, 3rem);
}

.finder-guide-grid article {
  min-height: 15rem;
  padding: 1.15rem;
  border: 1px solid rgba(24, 26, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.guide-label {
  margin: 0 0 0.5rem;
  color: #1c6a4d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.finder-guide-grid h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  line-height: 1.08;
}

.finder-guide-grid p:last-child {
  margin-bottom: 0;
  color: #4c5661;
}

.finder-button {
  min-height: 48px;
  padding: 0 1rem;
  border: 1px solid #181a1f;
  border-radius: 999px;
  font: inherit;
  font-weight: 850;
}

.primary-action {
  background: #181a1f;
  color: #fff;
  cursor: pointer;
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.secondary-action {
  background: #fff;
  color: #181a1f;
  cursor: pointer;
}

.kakao-action {
  border-color: #fee500;
  background: #fee500;
  color: #181600;
  cursor: pointer;
}

.secondary-action:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.kakao-action:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.load-error {
  padding: 1rem;
  border: 1px solid #a23b2a;
  border-radius: 8px;
  background: #fff7f4;
  color: #7c2f22;
  font-weight: 800;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 920px) {
  .finder-hero,
  .result-layout,
  .finder-guide-grid {
    grid-template-columns: 1fr;
  }

  .finder-hero {
    min-height: auto;
    grid-template-rows: auto auto;
  }

  .finder-result-mode .finder-hero {
    grid-template-rows: auto;
  }

  .result-visual {
    min-height: auto;
  }

  .result-visual img {
    max-height: 620px;
  }
}

@media (max-width: 620px) {
  .finder-copy h1 {
    font-size: clamp(1.85rem, 8.4vw, 3.6rem);
    white-space: nowrap;
  }

  .answer-grid,
  .racket-card,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .finder-result-mode .finder-copy h1 {
    font-size: clamp(1.95rem, 9vw, 3rem);
  }

  .finder-result-mode .finder-lead {
    max-width: 21rem;
  }

  .finder-shell:has(#quizSection:not(.is-hidden)) .finder-lead {
    max-width: 21rem;
    white-space: normal;
  }

  .finder-shell:has(#introCard:not(.is-hidden)) .finder-lead {
    max-width: 21rem;
    white-space: normal;
  }

  .result-panel h2,
  .racket-card h3 {
    white-space: normal;
  }

  .quiz-status {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.1rem;
  }

  .quiz-actions {
    flex-direction: column;
  }
}
