:root {
  --bg: #f4efe6;
  --surface: rgba(250, 247, 240, 0.94);
  --surface-strong: #fcfaf5;
  --surface-paper: #f7f3eb;
  --text: #232521;
  --text-soft: #474b4d;
  --muted: #6d7270;
  --line: rgba(99, 114, 127, 0.16);
  --line-strong: rgba(74, 87, 101, 0.28);
  --brand: #708695;
  --brand-strong: #516877;
  --brand-ink: #364550;
  --brand-soft: #e6edf1;
  --brand-soft-2: #efebe4;
  --accent-rose: #c79b93;
  --warm-blush: #f1ddd6;
  --warm-blush-strong: #d7aca1;
  --warm-blush-soft: rgba(239, 214, 208, 0.82);
  --green-soft: #edf1ea;
  --warning-soft: #f5ede1;
  --shadow: 0 28px 56px rgba(55, 61, 65, 0.1);
  --shadow-soft: 0 10px 24px rgba(59, 66, 72, 0.06);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Songti SC", "STSong", "Noto Serif SC", serif;
  --font-body: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --max-width: 1240px;
  --transition: 160ms ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 12% 0%, rgba(236, 218, 221, 0.56), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(221, 227, 232, 0.42), transparent 24%),
    linear-gradient(180deg, #f4ece5 0%, #f8f1eb 42%, #eef2f1 100%);
  color: var(--text);
}

body {
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 30%, rgba(255, 255, 255, 0.08));
}

body::after {
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(112, 134, 149, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 134, 149, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.24), transparent 72%);
}

.page-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(86px);
  opacity: 0.14;
  pointer-events: none;
}

.glow-left {
  top: -140px;
  left: -120px;
  background: rgba(228, 189, 195, 0.78);
}

.glow-right {
  top: 24%;
  right: -120px;
  background: rgba(188, 171, 177, 0.44);
}

#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 28px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.surface {
  width: 100%;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: linear-gradient(180deg, rgba(252, 249, 243, 0.94), rgba(247, 242, 234, 0.92));
  box-shadow: var(--shadow);
  padding: 28px;
}

.surface--quiz,
.surface--result {
  align-self: flex-start;
}

.panel {
  border-radius: var(--radius-lg);
  background: rgba(252, 249, 243, 0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.topbar,
.result-hero__top,
.question-panel__top,
.section-heading,
.sidebar-block__header,
.preview-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(250, 247, 240, 0.86);
  border: 1px solid rgba(81, 104, 119, 0.18);
  color: var(--brand-strong);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-pill__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f5efe7, #dce5ea);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.brand-pill--sidebar {
  margin-bottom: 18px;
}

.topbar__meta,
.action-row,
.footer-hint-list,
.state-steps,
.side-action-stack {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.action-row--compact {
  align-items: center;
}

.action-row--center {
  justify-content: center;
}

.soft-badge,
.question-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand-ink);
  background: rgba(249, 246, 239, 0.76);
  border: 1px solid rgba(81, 104, 119, 0.14);
}

.eyebrow,
.mini-kicker {
  margin: 0;
  color: var(--brand-strong);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
}

.eyebrow--compact {
  margin-bottom: 12px;
}

h1,
h2,
h3,
p,
strong,
span {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
}

.button {
  appearance: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:focus-visible,
.likert-card:focus-visible,
.question-map__item:focus-visible,
.answer-bubble:focus-visible {
  outline: 3px solid rgba(81, 104, 119, 0.22);
  outline-offset: 3px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

.button--primary {
  color: #fbfaf6;
  background: linear-gradient(180deg, #8e828b, #6e7985 62%, #9a7d85 100%);
  box-shadow: 0 14px 26px rgba(131, 95, 100, 0.22);
}

.button--secondary {
  color: var(--text);
  background: rgba(251, 248, 242, 0.96);
  border: 1px solid var(--line-strong);
}

.button--ghost {
  color: var(--brand-strong);
  background: rgba(249, 246, 239, 0.7);
  border: 1px solid rgba(81, 104, 119, 0.16);
}

.button--full {
  width: 100%;
}

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

.surface--home .topbar {
  margin-bottom: 24px;
}

.surface--home .action-row {
  margin-top: 26px;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  gap: 22px;
}

.hero-panel,
.preview-panel,
.quiz-sidebar,
.question-panel,
.state-panel,
.result-hero,
.result-section,
.side-card {
  padding: 26px;
}

.panel--editorial-hero,
.preview-panel--editorial,
.result-hero--editorial,
.panel--editorial-question {
  position: relative;
  overflow: hidden;
}

.panel--editorial-hero {
  background: linear-gradient(180deg, rgba(250, 239, 235, 0.98), rgba(246, 236, 231, 0.96));
}

.panel--editorial-hero::before,
.preview-panel--editorial::before {
  content: '';
  position: absolute;
  inset: 24px 24px auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(178, 124, 128, 0.24), transparent 82%);
}

.hero-panel__title {
  margin-top: 18px;
  max-width: 11ch;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-panel__copy {
  margin-top: 20px;
  max-width: 620px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.92;
}

.metric-grid,
.preview-score-grid,
.progress-meta-grid,
.result-map-grid,
.match-grid,
.insight-grid,
.result-layout,
.traits-grid {
  display: grid;
  gap: 14px;
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
}

.metric-card {
  background: linear-gradient(180deg, rgba(250, 247, 240, 0.92), rgba(244, 239, 232, 0.92));
}

.metric-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
}

.metric-card,
.mini-data-card,
.meta-chip,
.score-card,
.trait-card,
.match-card,
.insight-card,
.banner,
.insight-note,
.footnote-box,
.sidebar-tip-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(251, 248, 242, 0.88);
  padding: 18px;
}

.metric-card span,
.mini-data-card span,
.meta-chip span,
.footnote-box p,
.preview-card__copy,
.stack-item p,
.sidebar-tip-card p,
.question-helper,
.insight-card p,
.match-card p,
.side-card p,
.banner,
.insight-note,
.state-copy,
.footer-hint-list,
.score-card header span {
  color: var(--muted);
  line-height: 1.75;
}

.preview-card {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(250, 247, 240, 0.98), rgba(242, 238, 231, 0.96));
  border: 1px solid rgba(81, 104, 119, 0.14);
}

.preview-card__title {
  margin-top: 14px;
  font-size: 32px;
  line-height: 1.14;
}

.preview-card__copy {
  margin-top: 10px;
}

.preview-score-grid {
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-data-card strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
}

.stack-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.stack-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(99, 114, 127, 0.14);
  background: rgba(249, 246, 239, 0.78);
}

.stack-item__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 800;
}

.footnote-box {
  margin-top: 24px;
  background: rgba(247, 243, 235, 0.84);
}

.surface--quiz {
  max-width: 980px;
  margin: 0 auto;
}

.quiz-shell--mbti {
  display: grid;
  gap: 14px;
}

.quiz-shell__header,
.question-stage__meta,
.progress-panel__copy,
.share-preview-card__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.question-stage__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  gap: 18px;
}

.panel--editorial-question {
  padding: 42px 46px 32px;
  background: linear-gradient(180deg, rgba(252, 249, 243, 0.98), rgba(244, 239, 232, 0.96));
}

.question-stage__title {
  max-width: 100%;
  font-size: clamp(42px, 5.4vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.question-stage__eyebrow-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.question-stage__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.progress-panel {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(247, 243, 235, 0.94);
  border: 1px solid rgba(99, 114, 127, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.progress-panel__copy {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.question-helper--mbti {
  margin-top: 18px;
  font-size: 18px;
  text-align: left;
  color: var(--text-soft);
}

.answer-scale {
  margin-top: 26px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 16px;
  align-items: center;
  padding: 24px 24px 18px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(248, 244, 238, 0.98), rgba(243, 238, 231, 0.96));
  border: 1px solid rgba(99, 114, 127, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.answer-scale__pole {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.answer-scale__pole strong {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--text);
}

.answer-scale__pole--right {
  align-items: flex-end;
  text-align: right;
}

.answer-scale__track--editorial {
  display: grid;
  justify-self: center;
  margin: 0 auto;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.answer-bubble {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  cursor: pointer;
  transition: transform var(--transition), opacity var(--transition);
}

.answer-bubble:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.answer-bubble__core {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1.5px solid rgba(81, 104, 119, 0.14);
  box-shadow: 0 10px 20px rgba(58, 66, 72, 0.06);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.answer-bubble__core--1,
.answer-bubble__core--5 {
  width: 72px;
  height: 72px;
}

.answer-bubble__core--2,
.answer-bubble__core--4 {
  width: 64px;
  height: 64px;
}

.answer-bubble__core--3 {
  width: 56px;
  height: 56px;
}

.answer-bubble__value {
  font-size: 16px;
  font-weight: 800;
}

.answer-bubble__caption {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}

.answer-bubble.is-selected .answer-bubble__core {
  border-color: rgba(81, 104, 119, 0.42);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 14px 26px rgba(58, 66, 72, 0.1);
}

.answer-bubble.tone-1 .answer-bubble__core,
.answer-bubble.tone-2 .answer-bubble__core {
  color: #5b7485;
  background: linear-gradient(180deg, #f6f8f9, #e9eef1);
}

.answer-bubble.tone-3 .answer-bubble__core {
  color: #706766;
  background: linear-gradient(180deg, #f9efea, #ece0d8);
}

.answer-bubble.tone-4 .answer-bubble__core,
.answer-bubble.tone-5 .answer-bubble__core {
  color: #7a6261;
  background: linear-gradient(180deg, #f0ddd7, #e8d0c9);
}

.answer-scale__legend {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.answer-scale__legend span {
  padding: 10px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px dashed rgba(81, 104, 119, 0.18);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.question-footer--mbti {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(99, 114, 127, 0.12);
  align-items: center;
  justify-content: space-between;
}

.question-footer__hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.share-preview-section {
  position: static;
  top: auto;
}

.share-preview-section--editorial {
  background: linear-gradient(180deg, rgba(250, 246, 240, 0.98), rgba(246, 239, 233, 0.96));
}

.share-preview-section__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.96fr);
  gap: 24px;
  align-items: stretch;
}

.share-preview-section__intro {
  display: grid;
  align-content: start;
  gap: 18px;
}

.share-preview-section__intro h2 {
  margin-top: 8px;
}

.share-preview-section__preview {
  min-width: 0;
  display: flex;
}

.side-action-stack--share {
  flex-direction: column;
  flex-wrap: nowrap;
}

.side-action-stack--share .button {
  width: 100%;
}


.share-preview-card--editorial {
  position: relative;
  flex: 1;
  margin-top: 0;
  padding: 24px 24px 22px;
  border-radius: 28px;
  border: 1px solid rgba(124, 106, 109, 0.14);
  background: linear-gradient(180deg, rgba(248, 236, 232, 0.98), rgba(243, 232, 227, 0.96));
  box-shadow: 0 18px 30px rgba(116, 96, 100, 0.08);
  overflow: hidden;
}

.share-preview-card__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(247, 232, 228, 0.88);
  border: 1px solid rgba(163, 116, 121, 0.16);
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.share-preview-card__hero h3 {
  margin-top: 14px;
  max-width: 11ch;
  font-size: clamp(32px, 3vw, 40px);
  line-height: 1.1;
}

.share-preview-card__hero p {
  margin-top: 10px;
  max-width: 24ch;
  color: var(--text-soft);
  line-height: 1.7;
}

.share-preview-card__score-row {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.share-preview-card__score-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(252, 249, 243, 0.96);
  border: 1px solid rgba(99, 114, 127, 0.14);
}

.share-preview-card__score-pill span {
  color: var(--muted);
  font-size: 13px;
}

.share-preview-card__score-pill strong {
  font-size: 16px;
}

.share-preview-card__qr-block--editorial {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  background: rgba(252, 248, 242, 0.86);
  border: 1px solid rgba(156, 120, 123, 0.16);
}

.share-preview-card__qr-image {
  width: 132px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 16px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid rgba(99, 114, 127, 0.12);
}

.share-preview-card__qr-copy {
  display: grid;
  gap: 8px;
}

.share-preview-card__qr-link--copy {
  appearance: none;
  border: none;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.share-preview-card__qr-copy a,
.inline-link {
  color: var(--brand-ink);
  font-weight: 700;
  text-decoration: none;
  word-break: break-all;
}

.share-preview-card__qr-copy a:hover,
.inline-link:hover {
  text-decoration: underline;
}

.share-preview-card__qr-copy p {
  color: var(--muted);
}

.result-section--editorial-deep-copy {
  margin-top: 18px;
  background: linear-gradient(180deg, rgba(248, 241, 237, 0.98), rgba(244, 236, 232, 0.96));
  border-color: rgba(154, 123, 126, 0.14);
}

.deep-copy-card--editorial {
  margin-top: 18px;
  border-radius: 24px;
  border: 1px solid rgba(154, 123, 126, 0.16);
  background: rgba(251, 246, 242, 0.96);
  overflow: hidden;
}

.deep-copy-card__intro {
  padding: 28px 28px 18px;
  background: linear-gradient(180deg, rgba(252, 248, 244, 0.98), rgba(248, 241, 237, 0.94));
  border-bottom: 1px solid rgba(154, 123, 126, 0.12);
}

.deep-copy-card__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(247, 243, 235, 0.98);
  border: 1px solid rgba(99, 114, 127, 0.12);
  color: var(--brand-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.deep-copy-card__details {
  margin-top: 0;
  padding: 0 28px 28px;
}

.deep-copy-card__quote {
  margin-top: 16px;
  max-width: 18ch;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.32;
  letter-spacing: -0.035em;
  color: var(--text);
}

.deep-copy-card__lead,
.deep-copy-card__paragraph,
.deep-copy-card__meta-item p {
  margin-top: 16px;
  max-width: 42em;
  font-size: 17px;
  line-height: 1.92;
  color: var(--text-soft);
}

.deep-copy-card__lead {
  margin-top: 18px;
  font-size: 18px;
}

.deep-copy-card__closing-note {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(246, 236, 231, 0.96), rgba(241, 228, 223, 0.94));
  border: 1px solid rgba(181, 129, 126, 0.16);
  box-shadow: inset 4px 0 0 rgba(199, 155, 147, 0.52);
}

.deep-copy-card__closing-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(247, 243, 235, 0.94);
  border: 1px solid rgba(99, 114, 127, 0.1);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.deep-copy-card__highlight {
  margin-top: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--brand-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.88;
}

.deep-copy-card__details {
  margin-top: 8px;
}

.deep-copy-card__summary--editorial {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(247, 243, 235, 0.98);
  border: 1px solid rgba(99, 114, 127, 0.14);
  font-weight: 700;
  color: var(--text);
}

.deep-copy-card__summary-copy,
.deep-copy-card__summary-hint {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.deep-copy-card__summary-label--open,
.deep-copy-card__summary-hint-text--open {
  display: none;
}

.deep-copy-card__details[open] .deep-copy-card__summary-label--closed,
.deep-copy-card__details[open] .deep-copy-card__summary-hint-text--closed {
  display: none;
}

.deep-copy-card__details[open] .deep-copy-card__summary-label--open,
.deep-copy-card__details[open] .deep-copy-card__summary-hint-text--open {
  display: inline;
}

.deep-copy-card__summary::-webkit-details-marker {
  display: none;
}

.deep-copy-card__summary-hint {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.deep-copy-card__details[open] .deep-copy-card__summary--editorial {
  border-color: rgba(81, 104, 119, 0.22);
  box-shadow: 0 10px 24px rgba(59, 66, 72, 0.05);
}

.deep-copy-card__body {
  margin-top: 18px;
  display: grid;
  gap: 0;
}

.deep-copy-card__body > :first-child {
  margin-top: 0;
}

.deep-copy-card__meta-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.deep-copy-card__meta-item {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(99, 114, 127, 0.14);
  background: rgba(247, 243, 235, 0.96);
}

.deep-copy-card__meta-item p {
  margin-top: 10px;
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(288px, 0.34fr) minmax(0, 0.66fr);
  gap: 20px;
}

.panel--sidebar {
  align-self: start;
  position: sticky;
  top: 24px;
}

.sidebar-block + .sidebar-block,
.sidebar-block + .sidebar-tip-card {
  margin-top: 16px;
}

.sidebar-block__header h2,
.sidebar-block__header h3 {
  margin-top: 8px;
  font-size: 24px;
}

.sidebar-block__header--tight h3 {
  font-size: 18px;
}

.progress-track {
  margin-top: 14px;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(112, 134, 149, 0.14);
  overflow: hidden;
}

.progress-fill {
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #93a7b3, #6d8595 72%, #506574 100%);
  transition: width 220ms ease;
}

.progress-meta-grid {
  margin-top: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meta-chip {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-chip strong {
  font-size: 16px;
}

.question-map {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.question-map__item {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  border-radius: 14px;
  padding: 10px 0;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.question-map__item.is-answered {
  color: var(--brand-strong);
  background: rgba(255, 231, 240, 0.92);
}

.question-map__item.is-current {
  border-color: rgba(174, 79, 125, 0.38);
  background: linear-gradient(135deg, rgba(255, 236, 245, 0.96), rgba(239, 231, 255, 0.96));
  color: var(--text);
  transform: translateY(-1px);
}

.question-map__item--validation {
  background: rgba(255, 247, 225, 0.94);
}

.sidebar-tip-card {
  background: linear-gradient(180deg, rgba(255, 249, 251, 0.96), rgba(255, 255, 255, 0.96));
}

.question-panel {
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.question-title {
  margin-top: 24px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.question-helper {
  margin-top: 14px;
  font-size: 16px;
}

.likert-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.likert-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 190px;
  text-align: left;
  border-radius: 22px;
  border: 1px solid var(--line);
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.likert-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(141, 94, 133, 0.1);
}

.likert-card.is-selected {
  border-color: rgba(174, 79, 125, 0.38);
  box-shadow: 0 18px 34px rgba(174, 79, 125, 0.16);
}

.likert-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.likert-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 800;
}

.likert-card__accent {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.likert-card__label {
  font-size: 19px;
  line-height: 1.35;
}

.likert-card__hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.tone-1 {
  background: linear-gradient(180deg, #f9fbff, #ffffff);
}

.tone-1 .likert-card__number,
.tone-1 .likert-card__accent {
  color: #5a7bb0;
  background: rgba(232, 241, 255, 0.96);
}

.tone-2 {
  background: linear-gradient(180deg, #fbfdff, #ffffff);
}

.tone-2 .likert-card__number,
.tone-2 .likert-card__accent {
  color: #6987b1;
  background: rgba(239, 245, 255, 0.96);
}

.tone-3 {
  background: linear-gradient(180deg, #fffdfd, #ffffff);
}

.tone-3 .likert-card__number,
.tone-3 .likert-card__accent {
  color: #8e6f7f;
  background: rgba(250, 244, 247, 0.96);
}

.tone-4 {
  background: linear-gradient(180deg, #fff9fc, #ffffff);
}

.tone-4 .likert-card__number,
.tone-4 .likert-card__accent {
  color: #b45a84;
  background: rgba(255, 235, 244, 0.96);
}

.tone-5 {
  background: linear-gradient(180deg, #fff5fa, #ffffff);
}

.tone-5 .likert-card__number,
.tone-5 .likert-card__accent {
  color: #a24d79;
  background: rgba(255, 226, 239, 0.96);
}

.question-footer {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-hint-list {
  font-size: 13px;
}

.surface--state {
  align-self: center;
}

.state-panel--editorial {
  text-align: center;
  padding: 40px 32px;
  background: linear-gradient(180deg, rgba(251, 248, 242, 0.98), rgba(242, 237, 230, 0.96));
}

.state-orb {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #faf7f1, #9cadb8 62%, #6d8595 100%);
  box-shadow: 0 16px 28px rgba(64, 78, 88, 0.16);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.92;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.state-title {
  margin-top: 14px;
  font-size: clamp(32px, 4vw, 44px);
}

.state-copy {
  margin: 14px auto 0;
  max-width: 700px;
  font-size: 16px;
}

.state-steps {
  margin-top: 24px;
  justify-content: center;
}

.state-steps span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 700;
}

.panel--warning {
  background: linear-gradient(180deg, rgba(248, 236, 231, 0.98), rgba(251, 244, 240, 0.96));
}

.result-hero--editorial {
  background: linear-gradient(180deg, rgba(249, 237, 234, 0.98), rgba(244, 236, 231, 0.96));
}

.result-hero__title {
  margin-top: 14px;
  font-size: clamp(40px, 4.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.048em;
}

.result-hero__tagline {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.86;
}

.section-heading__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.section-heading__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.section-heading__meta--map .soft-badge {
  white-space: nowrap;
}

.soft-badge--tilt {
  background: rgba(247, 239, 232, 0.98);
  border-color: rgba(181, 129, 126, 0.2);
  color: var(--brand-ink);
}

.banner {
  margin-top: 14px;
}

.banner--warning {
  background: rgba(245, 237, 225, 0.96);
  border-color: rgba(173, 138, 92, 0.2);
  color: #6d5a39;
}

.banner--notice {
  background: rgba(234, 240, 244, 0.96);
  border-color: rgba(103, 122, 138, 0.18);
  color: #4d6170;
}

.result-layout {
  grid-template-columns: minmax(0, 1fr) 280px;
  margin-top: 16px;
}


.result-main {
  display: grid;
  gap: 16px;
}

.result-map-grid {
  grid-template-columns: minmax(0, 1fr) 280px;
  margin-top: 18px;
}

.axis-card {
  border-radius: 22px;
  border: 1px solid rgba(99, 114, 127, 0.14);
  background: rgba(247, 243, 235, 0.96);
  padding: 16px;
}

.axis-card__chart {
  position: relative;
  aspect-ratio: 1;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(251, 248, 242, 0.98), rgba(240, 236, 228, 0.96));
  border: 1px solid rgba(99, 114, 127, 0.12);
  overflow: hidden;
}

.axis-card__chart::before,
.axis-card__chart::after {
  content: '';
  position: absolute;
  background: rgba(111, 126, 137, 0.14);
}

.axis-card__chart::before {
  inset: calc(50% - 1px) 0 auto 0;
  height: 2px;
}

.axis-card__chart::after {
  inset: 0 auto 0 calc(50% - 1px);
  width: 2px;
}

.axis-label,
.quadrant-label {
  position: absolute;
  font-size: 12px;
  color: var(--muted);
}

.axis-label {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(252, 249, 243, 0.9);
  border: 1px solid rgba(99, 114, 127, 0.12);
}

.axis-label--top {
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
}

.axis-label--right {
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.axis-label--bottom {
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
}

.axis-label--left {
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.quadrant-label {
  font-weight: 700;
}

.quadrant-label--anxious {
  top: 16px;
  left: 22px;
}

.quadrant-label--fearful {
  top: 16px;
  right: 22px;
}

.quadrant-label--secure {
  bottom: 18px;
  left: 22px;
}

.quadrant-label--dismissive {
  bottom: 18px;
  right: 22px;
}

.axis-card__point {
  position: absolute;
  width: 18px;
  height: 18px;
  left: var(--axis-x, 50%);
  top: var(--axis-y, 50%);
  margin-left: -9px;
  margin-top: -9px;
  border-radius: 999px;
  background: #637b8b;
  border: 2px solid rgba(252, 249, 243, 0.98);
  box-shadow: 0 0 0 8px rgba(111, 134, 149, 0.12);
  transition: left 220ms ease, top 220ms ease;
}

.score-stack {
  display: grid;
  gap: 12px;
}

.score-card,
.insight-note,
.trait-card,
.insight-card,
.side-card--editorial-note {
  background: rgba(251, 248, 242, 0.9);
}

.score-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.score-card header strong {
  font-size: 18px;
}

.score-meter {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.meter-dot {
  flex: 1;
  height: 12px;
  border-radius: 999px;
  background: rgba(112, 134, 149, 0.12);
}

.meter-dot.filled {
  background: linear-gradient(90deg, #9ab0bc, #718696 72%, #536877 100%);
}

.insight-note {
  color: var(--text-soft);
}

.traits-grid {
  margin-top: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trait-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.trait-card__marker {
  width: 8px;
  height: 18px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(199, 155, 147, 0.82);
}

.trait-card__copy {
  margin: 0;
  line-height: 1.82;
}

.insight-grid {
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.insight-card {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}

.insight-card h3 {
  font-size: 18px;
  margin: 0;
}

.insight-card p {
  margin-top: 0;
}

.insight-card--positive {
  background: linear-gradient(180deg, rgba(250, 247, 240, 0.96), rgba(244, 239, 232, 0.94));
}

.insight-card--warning {
  background: linear-gradient(180deg, rgba(250, 247, 240, 0.96), rgba(244, 239, 232, 0.94));
}

.insight-card--growth {
  background: linear-gradient(180deg, rgba(250, 247, 240, 0.96), rgba(244, 239, 232, 0.94));
}

.insight-card--full {
  grid-column: 1 / -1;
  min-height: auto;
}

.match-grid {
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.match-card__body {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.match-card .match-card__focus {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.36;
}

.match-card__detail {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.72;
}

.match-card--challenge .match-card__focus {
  font-size: 20px;
}

.match-card--best .match-card__detail,
.match-card--challenge .match-card__detail {
  font-weight: 500;
}

.match-card--best {
  background: linear-gradient(180deg, rgba(238, 249, 242, 0.96), rgba(255, 255, 255, 0.98));
}

.match-card--challenge {
  background: linear-gradient(180deg, rgba(255, 244, 235, 0.96), rgba(255, 255, 255, 0.98));
}

.result-side {
  display: grid;
  gap: 16px;
  align-self: start;
}

.side-card--sticky {
  position: sticky;
  top: 24px;
}

.side-card__copy {
  margin-top: 8px;
}

.side-action-stack {
  margin-top: 18px;
  flex-direction: column;
  flex-wrap: nowrap;
}

.side-card--muted {
  background: rgba(255, 255, 255, 0.8);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(45, 49, 51, 0.92);
  color: #f7f3eb;
  box-shadow: 0 18px 30px rgba(36, 39, 41, 0.18);
  z-index: 50;
}


/* --- Second-pass editorial refinements --- */
.answer-scale {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 18px;
}

.answer-scale__pole {
  gap: 8px;
  font-size: 12px;
}

.answer-scale__pole strong {
  font-size: 17px;
  line-height: 1.2;
}

.answer-scale__track--editorial {
  position: relative;
  grid-template-columns: repeat(5, minmax(78px, 1fr));
  gap: 10px;
  padding: 10px 6px 0;
}

.answer-scale__track--editorial::before {
  content: '';
  position: absolute;
  left: 36px;
  right: 36px;
  top: 44px;
  height: 1px;
  background: linear-gradient(90deg, rgba(91, 116, 133, 0.28), rgba(109, 114, 112, 0.2), rgba(106, 91, 88, 0.28));
}

.answer-bubble {
  position: relative;
  z-index: 1;
  gap: 11px;
}

.answer-bubble.tone-1,
.answer-bubble.tone-2,
.answer-bubble.tone-3,
.answer-bubble.tone-4,
.answer-bubble.tone-5 {
  background: transparent;
}

.answer-bubble__core {
  border-width: 2px;
  box-shadow: 0 6px 14px rgba(58, 66, 72, 0.05);
}

.answer-bubble__core--1,
.answer-bubble__core--5 {
  width: 66px;
  height: 66px;
}

.answer-bubble__core--2,
.answer-bubble__core--4 {
  width: 58px;
  height: 58px;
}

.answer-bubble__core--3 {
  width: 50px;
  height: 50px;
}

.answer-bubble__caption {
  min-height: 2.5em;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}

.answer-bubble.is-selected .answer-bubble__core {
  border-color: rgba(81, 104, 119, 0.6);
  box-shadow: 0 0 0 8px rgba(112, 134, 149, 0.12), 0 12px 24px rgba(58, 66, 72, 0.1);
}

.answer-scale__legend {
  margin-top: 18px;
  gap: 8px;
}

.answer-scale__legend span {
  padding: 9px 12px;
}

.match-grid--map {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.match-grid--map .match-card {
  padding: 18px 20px;
  min-height: auto;
}

.match-grid--map .match-card p {
  margin: 0;
}

.match-card--best {
  background: linear-gradient(180deg, rgba(243, 244, 240, 0.96), rgba(251, 245, 242, 0.98));
}

.match-card--challenge {
  background: linear-gradient(180deg, rgba(247, 234, 230, 0.96), rgba(251, 244, 241, 0.98));
}

.share-preview-card__qr-block--editorial {
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.share-preview-card__qr-copy {
  align-content: start;
  justify-items: start;
  gap: 8px;
}

.share-preview-card__qr-link {
  display: block;
  max-width: 100%;
  font-size: 18px;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--brand-ink);
  word-break: normal;
  overflow-wrap: anywhere;
}

.share-preview-card__qr-contact {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}

.share-preview-card__qr-contact-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.share-preview-card__qr-contact-value {
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.35;
  word-break: break-word;
}

.result-side {
  gap: 12px;
}

.side-card--editorial-note {
  padding: 18px 20px;
}

.side-card--editorial-note h3 {
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.45;
}

.side-card--editorial-note p {
  font-size: 14px;
  line-height: 1.72;
}

.side-card--muted {
  background: rgba(247, 243, 235, 0.82);
}

@media (max-width: 1180px) {
  .home-grid,
  .quiz-layout,
  .result-layout,
  .result-map-grid {
    grid-template-columns: 1fr;
  }

  .answer-scale {
    grid-template-columns: 1fr;
  }

  .answer-scale__pole {
    align-items: center;
    text-align: center;
  }

  .answer-scale__pole--right {
    align-items: center;
  }

  .panel--sidebar,
  .side-card--sticky {
    position: static;
  }

  .likert-grid,
  .metric-grid,
  .traits-grid,
  .insight-grid,
  .match-grid,
  .progress-meta-grid,
  .preview-score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  #app {
    padding: 16px;
  }

  .surface,
  .hero-panel,
  .preview-panel,
  .quiz-sidebar,
  .question-panel,
  .state-panel,
  .result-hero,
  .result-section,
  .side-card,
  .panel--question-stage {
    padding: 20px;
  }

  .share-preview-section__layout {
    grid-template-columns: 1fr;
  }

  .topbar,
  .result-hero__top,
  .question-panel__top,
  .section-heading,
  .sidebar-block__header,
  .preview-card__top,
  .question-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-heading__title-row {
    align-items: flex-start;
  }

  .section-heading__meta {
    justify-content: flex-start;
  }

  .hero-panel__title,
  .result-hero__title,
  .question-title,
  .state-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .likert-grid,
  .metric-grid,
  .traits-grid,
  .insight-grid,
  .match-grid,
  .progress-meta-grid,
  .preview-score-grid,
  .share-preview-card__score-row,
  .share-preview-card__qr-block--editorial,
  .match-grid--map,
  .deep-copy-card__meta-grid {
    grid-template-columns: 1fr;
  }

  .question-stage__meta,
  .quiz-shell__header,
  .share-preview-card__hero,
  .question-footer--mbti,
  .deep-copy-card__summary--editorial {
    flex-direction: column;
    align-items: flex-start;
  }

  .question-stage__chips {
    justify-content: flex-start;
  }

  .answer-scale__track--editorial {
    gap: 8px;
    padding-inline: 0;
  }

  .answer-bubble__core--1,
  .answer-bubble__core--5 {
    width: 64px;
    height: 64px;
  }

  .answer-bubble__core--2,
  .answer-bubble__core--4 {
    width: 58px;
    height: 58px;
  }

  .answer-bubble__core--3 {
    width: 50px;
    height: 50px;
  }

  .question-map {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .likert-card {
    min-height: 138px;
  }
}

@media (max-width: 768px) {
  #app {
    padding: 14px;
  }

  .surface,
  .hero-panel,
  .preview-panel,
  .state-panel,
  .result-hero,
  .result-section,
  .side-card,
  .panel--question-stage {
    padding: 18px;
  }

  .home-grid,
  .result-layout,
  .result-map-grid,
  .metric-grid,
  .traits-grid,
  .insight-grid,
  .preview-score-grid,
  .share-preview-card__score-row,
  .match-grid,
  .match-grid--map {
    grid-template-columns: 1fr;
  }

  .topbar,
  .quiz-shell__header,
  .question-stage__meta,
  .result-hero__top,
  .section-heading,
  .share-preview-card__hero,
  .question-footer,
  .question-footer--mbti,
  .action-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .action-row {
    align-items: stretch;
  }

  .action-row .button,
  .question-footer .button,
  .question-footer--mbti .button {
    width: 100%;
  }

  .topbar__meta,
  .question-stage__chips,
  .result-hero__top .topbar__meta,
  .section-heading__meta {
    width: 100%;
    gap: 8px;
  }

  .hero-panel__title,
  .result-hero__title,
  .state-title {
    font-size: clamp(30px, 8vw, 42px);
  }

  .question-stage__title {
    margin-top: 16px;
    font-size: clamp(30px, 8.8vw, 46px);
    line-height: 1.12;
  }

  .question-stage__eyebrow-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero-panel__copy,
  .result-hero__tagline,
  .question-helper--mbti,
  .state-copy {
    font-size: 16px;
    line-height: 1.75;
  }

  .progress-panel {
    margin-top: 18px;
  }

  .question-helper--mbti {
    margin-top: 14px;
    text-align: center;
  }

  .answer-scale {
    margin-top: 16px;
    gap: 14px;
    padding: 18px 16px 16px;
  }

  .answer-scale__track--editorial {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 0 2px;
  }

  .answer-scale__track--editorial::before {
    left: 26px;
    right: 26px;
    top: 30px;
  }

  .answer-bubble__core--1,
  .answer-bubble__core--5 {
    width: 54px;
    height: 54px;
  }

  .answer-bubble__core--2,
  .answer-bubble__core--4 {
    width: 48px;
    height: 48px;
  }

  .answer-bubble__core--3 {
    width: 42px;
    height: 42px;
  }

  .answer-bubble__caption {
    min-height: 2.2em;
    font-size: 10px;
  }

  .answer-scale__legend {
    justify-content: flex-start;
  }

  .answer-scale__legend span {
    flex: 1 1 100%;
    text-align: center;
  }

  .question-footer__hint {
    text-align: left;
  }

  .share-preview-section {
    position: static;
    top: auto;
  }

  .share-preview-card__qr-image {
    width: 120px;
  }

  .share-preview-card__qr-link {
    font-size: 17px;
  }

  .result-side {
    gap: 10px;
  }

  .deep-copy-card__quote {
    font-size: clamp(24px, 7vw, 32px);
  }

  .deep-copy-card__lead,
  .deep-copy-card__paragraph {
    font-size: 16px;
    line-height: 1.85;
  }
}

@media (max-width: 430px) {
  #app {
    padding: 10px;
  }

  .surface,
  .hero-panel,
  .preview-panel,
  .state-panel,
  .result-hero,
  .result-section,
  .side-card,
  .panel--question-stage {
    padding: 16px;
  }

  .brand-pill {
    width: fit-content;
    justify-content: center;
  }

  .topbar__meta .soft-badge,
  .question-stage__chips .soft-badge,
  .result-hero__top .soft-badge,
  .topbar .soft-badge {
    width: auto;
    justify-content: center;
  }

  .hero-panel__title,
  .result-hero__title {
    font-size: clamp(28px, 9.2vw, 38px);
    line-height: 1.08;
  }

  .question-stage__title {
    margin-top: 14px;
    font-size: clamp(22px, 9.2vw, 34px);
    line-height: 1.16;
    letter-spacing: -0.04em;
    }

  .question-helper--mbti {
    margin-top: 12px;
    font-size: 15px;
  }

  .answer-scale {
    margin-top: 14px;
    gap: 12px;
    padding: 16px 14px 14px;
  }

  .answer-scale__pole {
    font-size: 11px;
  }

  .answer-scale__pole strong {
    font-size: 15px;
  }

  .answer-scale__track--editorial {
    gap: 4px;
    padding: 0;
  }

  .answer-scale__track--editorial::before {
    left: 22px;
    right: 22px;
    top: 26px;
  }

  .answer-bubble__core--1,
  .answer-bubble__core--5 {
    width: 48px;
    height: 48px;
  }

  .answer-bubble__core--2,
  .answer-bubble__core--4 {
    width: 44px;
    height: 44px;
  }

  .answer-bubble__core--3 {
    width: 40px;
    height: 40px;
  }

  .answer-bubble__caption {
    min-height: 2em;
    font-size: 9px;
    line-height: 1.2;
  }

  .result-map-grid {
    gap: 12px;
  }

  .axis-card,
  .score-card,
  .match-grid--map .match-card {
    padding: 14px;
  }

  .match-grid--map .match-card p {
    font-size: 15px;
  }

  .share-preview-card__qr-image {
    width: 112px;
  }

  .share-preview-card__qr-link {
    font-size: 16px;
    line-height: 1.25;
  }

  .share-preview-card__qr-contact-value {
    font-size: 15px;
  }

  .side-action-stack {
    gap: 8px;
  }

  .deep-copy-card__intro {
    padding: 20px 20px 16px;
  }

  .deep-copy-card__details {
    padding: 0 20px 20px;
  }

  .deep-copy-card__summary--editorial {
    padding: 16px;
  }
}

@media (max-width: 520px) {
  .question-map {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .brand-pill {
    width: fit-content;
    justify-content: center;
  }

  .topbar__meta .soft-badge,
  .question-stage__chips .soft-badge,
  .result-hero__top .soft-badge,
  .question-chip {
    width: auto;
    justify-content: center;
  }
}
