
html,
body {
  height: 100%;
  overflow: hidden;
}
body {
  display: flex;
  flex-direction: column;
}
.result-top {
  position: relative;
  z-index: 30;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, .9);
}
.result-top .sitebar {
  position: static;
}
.result-banner {
  margin: 0 auto;
}
.result-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
#roleName {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  margin: 10px 0 !important;
  font-size: 18px !important;
  line-height: 1.2;
}
#roleName > span {
  display: block;
}
#roleName > span:first-child {
  width: max-content;
  max-width: 100%;
  color: #fff;
  font-weight: 700;
  letter-spacing: .01em;
}
  .result-title-kpop {
    display: inline-block;
    background: url('K-POP文字背景-2172x724-compressed.webp') 18% 74% / 420% auto no-repeat;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 0.35px rgba(255, 255, 255, 0.95));
  }
#roleName > span:last-child {
  color: #fff;
  font-weight: 900;
  letter-spacing: -.02em;
}
#bonusAnswers .answer .key {
  width: 22px;
  height: 22px;
  border: 2px solid #b8aecb;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  font-size: 0 !important;
  transition: border-color .16s ease, background-color .16s ease;
}
#bonusAnswers .answer .key::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--violet);
  transform: scale(0);
  transition: transform .16s ease;
}
#bonusAnswers .answer.is-selected {
  border-color: var(--violet);
  background: #faf8ff;
}
#bonusAnswers .answer.is-selected .key {
  border-color: var(--violet);
}
#bonusAnswers .answer.is-selected .key::after {
  transform: scale(1);
}
#bonusAnswers .answer:disabled {
  cursor: default;
}
#roleGuideTitle {
  scroll-margin-top: 12px;
}
.result-actions-mobile {
  display: none;
}
@media (max-width: 768px) {
  .result-wrap {
    padding: 6px 0 12px;
  }
  .result-hero {
    padding: 8px 14px 10px;
    border-radius: 20px;
  }
  .result-copy {
    --result-summary-size: 132px;
    display: grid;
    grid-template-columns: var(--result-summary-size) minmax(0, 1fr);
    grid-template-areas:
      'art title'
      'art desc'
      'ad ad'
      'metrics metrics'
      'actions actions';
    column-gap: 10px;
    row-gap: 0;
    align-items: stretch;
  }
  #roleName {
    grid-area: title;
    margin: 10px 0 !important;
  }
  #seattle-ad-result-10001 {
    grid-area: ad;
    margin-top: 6px;
    margin-bottom: 0;
  }
  #resultArea .result-actions-mobile {
    grid-area: actions;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 6px 0 0;
  }
  .result-actions-mobile > .btn {
    width: auto;
    min-height: 48px;
    padding: 7px 9px;
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
  }
  .result-actions-desktop {
    display: none;
  }
  .result-copy > p {
    grid-area: desc;
    margin: 0;
    font-size: 12.5px;
    line-height: 1.35;
  }
  .result-art {
    grid-area: art;
    width: var(--result-summary-size);
    min-height: var(--result-summary-size);
    height: auto;
    max-width: none;
    margin: 0;
    align-self: stretch;
  }
  .result-role-image {
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 15px;
  }
  .result-copy .metric-row {
    grid-area: metrics;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 6px 0 0;
    align-items: stretch;
  }
  .result-copy .metric {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 62px;
    padding: 7px 8px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.35;
  }
  .result-copy .metric br {
    display: none;
  }
  .result-copy .metric b {
    margin-bottom: 3px;
  }
  #deepTitle {
    font-size: 18px !important;
    line-height: 1.25;
  }
  #deepBody {
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  .result-hero {
    padding-left: 8px;
    padding-right: 8px;
  }
  .result-copy {
    --result-summary-size: 112px;
    column-gap: 8px;
  }
  .result-copy > p {
    font-size: 11.5px;
    line-height: 1.3;
  }
  .result-copy .metric {
    min-height: 60px;
    padding: 6px;
    font-size: 12px;
  }
  .result-actions-mobile > .btn {
    min-height: 46px;
    padding: 6px;
    font-size: 11px;
  }
  #resultArea .result-actions-mobile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .result-actions-mobile .btn-secondary {
    white-space: nowrap;
    font-size: 11px;
    letter-spacing: -.02em;
  }
}
@media (min-width: 641px) {
  #resultArea > .wrap > .section,
  #resultArea #roleGuideSection.content-section {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  #resultArea > .wrap > .cta-row {
    justify-content: center;
    margin-top: 12px;
  }
}
