:root {
  --ink: #343c4b;
  --ink-soft: #68707f;
  --paper: #f6f6f7;
  --paper-deep: #e9eaed;
  --cream: #ffffff;
  --orange: #88619a;
  --purple: #88619a;
  --green: #33a474;
  --blue: #4298b4;
  --yellow: #e4ae3a;
  --red: #f25e62;
  --mint: #dff2e9;
  --line: #e1e3e7;
  --shadow: 0 12px 32px rgba(52, 60, 75, .12);
  --display: "Red Hat Display", "Avenir Next", "Hiragino Sans", "Yu Gothic", sans-serif;
  --body: Inter, "Avenir Next", "Hiragino Sans", "Yu Gothic", sans-serif;
  --mono: "Avenir Next", "Hiragino Sans", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--body);
  background: var(--paper);
  overflow-x: hidden;
}

button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(51, 164, 116, .35); outline-offset: 4px; }

.paper-noise { display: none; }

.site-header {
  height: 76px;
  padding: 12px clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 56px);
  background: var(--cream);
  border-bottom: 1px solid rgba(52, 60, 75, .06);
  box-shadow: 0 2px 12px rgba(52, 60, 75, .05);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; flex: 0 0 auto; }
.brand-mark { width: 42px; height: 42px; display: block; flex: 0 0 auto; }
.brand-copy { font: 800 11px/1.08 var(--display); letter-spacing: .2px; }
.site-nav { display: flex; align-items: stretch; align-self: stretch; gap: 6px; }
.site-nav a { min-width: 92px; padding: 0 14px; display: grid; place-items: center; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; border-top: 3px solid transparent; }
.site-nav a:first-child { border-color: var(--blue); }
.site-nav a:hover { color: var(--purple); background: #faf9fb; }
.privacy-chip { margin-left: auto; display: flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 999px; background: #eef8f3; color: #267d5b; font: 700 11px/1 var(--body); }
.privacy-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px rgba(51, 164, 116, .12); }

.screen { display: none; min-height: calc(100vh - 76px); }
.screen.is-active { display: block; animation: screen-in .42s ease both; }

.hero-screen { padding: clamp(46px, 7vh, 72px) clamp(18px, 5vw, 72px) 24px; background: var(--paper); overflow: hidden; }
.hero-intro { width: min(760px, 100%); margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.kicker { margin: 0 0 18px; color: var(--purple); font: 800 11px/1.2 var(--body); letter-spacing: 1.5px; text-transform: uppercase; }
.hero-intro h1 { margin: 0; font: 800 clamp(46px, 6.3vw, 76px)/1.08 var(--display); letter-spacing: -.055em; }
.hero-lead { margin: 16px auto 0; color: var(--ink-soft); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.7; font-weight: 500; }
.hero-intro .primary-button { margin: 26px auto 0; }
.hero-intro .micro-copy { display: block; margin-top: 13px; }

.primary-button, .secondary-button, .text-button { border: 0; cursor: pointer; }
.primary-button { min-width: 230px; min-height: 58px; padding: 14px 18px 14px 24px; border-radius: 6px; background: var(--green); color: var(--cream); display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; font-weight: 800; box-shadow: 0 4px 0 #267d5b; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.primary-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 0 #267d5b; background: #2d9368; }
.primary-button:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #267d5b; }
.primary-button:disabled { opacity: .42; cursor: not-allowed; }
.primary-button.compact { min-width: 170px; min-height: 52px; }
.button-arrow { font: 700 22px/1 var(--mono); }
.secondary-button { min-height: 48px; padding: 10px 18px; background: var(--cream); border: 1px solid var(--line); border-radius: 6px; font-weight: 700; transition: border-color .18s ease, color .18s ease, background .18s ease; }
.secondary-button:hover { border-color: var(--purple); color: var(--purple); background: #faf8fb; }
.text-button { padding: 7px 2px; background: transparent; color: var(--ink-soft); font: 700 12px/1 var(--body); text-decoration: underline; text-underline-offset: 4px; }
.micro-copy { font: 600 11px/1.5 var(--body); color: var(--ink-soft); }

.hero-cast { width: min(1160px, 108%); min-height: 370px; margin: 10px auto 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; position: relative; isolation: isolate; }
.hero-cast::before { content: ""; position: absolute; z-index: -2; left: 4%; right: 4%; bottom: 18px; height: 250px; border-radius: 50% 50% 12px 12px / 60% 60% 12px 12px; background: #e5f3ed; }
.hero-cast::after { content: ""; position: absolute; z-index: -1; left: -10%; right: -10%; bottom: 44px; height: 5px; background: rgba(51, 164, 116, .25); border-radius: 50%; transform: rotate(-1deg); }
.hero-character { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: end; position: relative; }
.hero-character-art { width: clamp(180px, 18vw, 240px); height: 300px; display: grid; place-items: end center; }
.hero-character-art .type-character { width: 100%; height: 100%; filter: drop-shadow(5px 7px 0 rgba(52, 60, 75, .15)); }
.hero-character p { min-height: 38px; margin: -2px 4px 0; position: relative; z-index: 2; color: var(--ink); text-align: center; font-size: 10px; line-height: 1.35; font-weight: 700; }
.hero-character p span { display: block; margin-bottom: 3px; color: var(--purple); font: 900 9px/1 var(--body); letter-spacing: .08em; }
.hero-character--one .hero-character-art { height: 268px; transform: rotate(-2deg) translateX(14px); }
.hero-character--two .hero-character-art { height: 286px; transform: rotate(2deg) translateX(8px); }
.hero-character--three { z-index: 2; }
.hero-character--three .hero-character-art { width: clamp(220px, 20vw, 270px); height: 330px; }
.hero-character--four .hero-character-art { height: 285px; transform: rotate(-2deg) translateX(-8px); }
.hero-character--five .hero-character-art { height: 260px; transform: rotate(2deg) translateX(-14px); }
.hero-footer { width: min(1100px, 100%); margin: 6px auto 0; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--ink-soft); font: 600 10px/1.4 var(--body); }

.type-catalog { width: min(1120px, 100%); margin: 84px auto 42px; padding-top: 26px; border-top: 1px solid var(--line); scroll-margin-top: 94px; }
.type-catalog-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; }
.type-catalog-heading h2 { margin: 0; font: 800 clamp(34px, 4.2vw, 52px)/1 var(--display); letter-spacing: -.045em; }
.type-catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.type-catalog-card { min-width: 0; padding: 14px 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); }
.catalog-character-art { height: 230px; display: grid; place-items: end center; overflow: hidden; border-radius: 7px; background: var(--character-bg); }
.catalog-character-art .type-character { width: 100%; height: 222px; filter: drop-shadow(4px 5px 0 rgba(52, 60, 75, .13)); }
.type-catalog-card h3 { margin: 13px 0 0; font: 800 15px/1.45 var(--display); }
.type-catalog-code { display: block; margin-bottom: 3px; color: var(--character-accent); font: 900 10px/1 var(--body); letter-spacing: .08em; }

.quiz-screen { padding: 28px clamp(16px, 4vw, 60px) 42px; background: var(--paper); }
.quiz-shell { width: min(1000px, 100%); min-height: calc(100vh - 138px); margin: 0 auto; display: flex; flex-direction: column; }
.quiz-header { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 24px; }
.quiz-progress-block { display: flex; align-items: center; gap: 18px; }
.quiz-count { flex: 0 0 auto; color: var(--ink-soft); font: 800 13px/1 var(--body); }
.progress-track { flex: 1; height: 10px; background: var(--paper-deep); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--blue)); border-radius: inherit; transition: width .35s ease; }
.question-stage { flex: 1; display: grid; align-content: center; padding: 46px 0 40px; }
.question-card { padding: clamp(34px, 5vw, 58px); background: var(--cream); border-radius: 12px; box-shadow: 0 10px 30px rgba(52, 60, 75, .08); animation: question-in .35s ease both; }
.question-label { margin: 0 0 18px; color: var(--purple); font: 800 11px/1 var(--body); letter-spacing: 1.2px; }
.question-title { margin: 0 auto; max-width: 870px; text-align: center; font: 700 clamp(30px, 4.2vw, 48px)/1.25 var(--display); letter-spacing: -.035em; }
.question-note { min-height: 27px; margin: 16px 0 22px; color: var(--ink-soft); text-align: center; font-size: 13px; font-weight: 500; }
.scale-field { width: min(800px, 100%); margin: 36px auto 0; }
.scale-caption { margin: 0 0 20px; text-align: center; font: 700 10px/1 var(--body); letter-spacing: 1px; color: var(--ink-soft); }
.scale-options { display: grid; grid-template-columns: repeat(7, 1fr); align-items: center; justify-items: center; gap: clamp(6px, 2.1vw, 22px); }
.scale-option { --choice-color: var(--ink-soft); width: var(--choice-size); height: var(--choice-size); padding: 0; border: 3px solid var(--choice-color); border-radius: 50%; background: transparent; cursor: pointer; position: relative; transition: transform .16s ease, background .16s ease, box-shadow .16s ease; }
.scale-option:nth-child(1), .scale-option:nth-child(7) { --choice-size: 66px; }
.scale-option:nth-child(2), .scale-option:nth-child(6) { --choice-size: 56px; }
.scale-option:nth-child(3), .scale-option:nth-child(5) { --choice-size: 46px; }
.scale-option:nth-child(4) { --choice-size: 36px; --choice-color: #9b9faa; }
.scale-option:nth-child(-n+3) { --choice-color: var(--green); }
.scale-option:nth-child(n+5) { --choice-color: var(--purple); }
.scale-option:hover { transform: translateY(-3px) scale(1.04); background: color-mix(in srgb, var(--choice-color) 9%, transparent); }
.scale-option.is-selected { background: var(--choice-color); box-shadow: inset 0 0 0 5px var(--cream); transform: scale(1.06); }
.scale-option.is-selected::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--cream); font: 900 17px/1 var(--display); }
.scale-legend { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 14px; margin-top: 20px; font-size: 13px; line-height: 1.45; font-weight: 700; }
.scale-legend span:first-child { color: var(--green); }
.scale-legend span:nth-child(2) { font: 600 10px/1.5 var(--body); color: var(--ink-soft); text-align: center; }
.scale-legend span:last-child { color: var(--purple); text-align: right; }
.slider-wrap { margin: 34px auto 0; width: min(780px, 100%); }
.slider-value { display: flex; align-items: baseline; gap: 8px; margin-bottom: 26px; }
.slider-value strong { font: 800 clamp(58px, 9vw, 92px)/.8 var(--display); letter-spacing: -.06em; color: var(--purple); }
.slider-value span { font: 800 20px/1 var(--display); }
.range-input { width: 100%; height: 34px; appearance: none; background: transparent; cursor: ew-resize; }
.range-input::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--green) var(--range-progress), var(--paper-deep) var(--range-progress)); }
.range-input::-webkit-slider-thumb { width: 32px; height: 32px; margin-top: -11px; appearance: none; border: 4px solid var(--cream); border-radius: 50%; background: var(--purple); box-shadow: 0 2px 8px rgba(52,60,75,.25); }
.range-input::-moz-range-track { height: 10px; border-radius: 999px; background: var(--paper-deep); }
.range-input::-moz-range-progress { height: 10px; background: var(--green); }
.range-input::-moz-range-thumb { width: 26px; height: 26px; border: 4px solid var(--cream); border-radius: 50%; background: var(--purple); box-shadow: 0 2px 8px rgba(52,60,75,.25); }
.range-labels { display: flex; justify-content: space-between; margin-top: 11px; color: var(--ink-soft); font: 700 11px/1 var(--body); }
.quiz-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; }

.loading-screen.is-active { display: grid; place-items: center; align-content: center; gap: 30px; text-align: center; }
.loading-stamp { width: 230px; height: 230px; border: 10px dotted var(--purple); border-radius: 50%; display: grid; align-content: center; background: var(--cream); color: var(--purple); box-shadow: var(--shadow); animation: stamp-pulse 1s ease-in-out infinite alternate; }
.loading-stamp span { font: 900 16px/1 var(--display); }
.loading-stamp strong { font: 900 64px/1 var(--display); letter-spacing: -.07em; }
.loading-screen p { font: 700 13px/1.5 var(--mono); }

.result-screen { padding: clamp(40px, 5vw, 70px) clamp(18px, 5vw, 72px) 58px; background: linear-gradient(180deg, #f6f6f7, #ffffff); }
.result-wrap { width: min(1120px, 100%); margin: 0 auto; }
.result-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding-bottom: 28px; border-bottom: 1px solid var(--line); min-width: 0; }
.result-heading > div:first-child { min-width: 0; }
.result-heading h2 { margin: 0; font: 800 clamp(40px, 5.5vw, 70px)/1.08 var(--display); letter-spacing: -.05em; }
.result-heading h2 span { color: var(--result-color, var(--purple)); }
.type-badge { width: 170px; height: 105px; flex: 0 0 auto; border-radius: 12px; background: var(--result-soft, #eee7f1); color: var(--result-color, var(--purple)); display: grid; place-content: center; text-align: center; box-shadow: 0 8px 22px rgba(52,60,75,.12); }
.type-badge small { font: 700 9px/1 var(--mono); }
.type-badge strong { margin-top: 5px; font: 900 32px/1 var(--display); letter-spacing: .05em; }
.result-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr); gap: 26px; margin-top: 26px; min-width: 0; }
.result-file, .scores-panel { border: 1px solid var(--line); border-radius: 12px; background: var(--cream); box-shadow: 0 10px 28px rgba(52, 60, 75, .08); }
.result-file { padding: clamp(22px, 4vw, 42px); position: relative; overflow: hidden; min-width: 0; }
.file-meta { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 13px; border-bottom: 1px solid var(--line); font: 700 10px/1 var(--mono); }
.result-intro { display: grid; grid-template-columns: minmax(190px, .75fr) minmax(0, 1.45fr); gap: clamp(24px, 4vw, 46px); align-items: start; margin-top: 30px; }
.character-card { min-height: 350px; position: relative; display: grid; place-items: end center; overflow: hidden; border-radius: 10px; background: var(--character-bg, var(--mint)); isolation: isolate; }
.character-card::before { content: "P-16 FIELD AGENT"; position: absolute; left: 13px; top: 13px; z-index: 2; font: 700 8px/1 var(--mono); letter-spacing: 1px; }
.character-card::after { content: ""; position: absolute; width: 220px; height: 220px; left: 50%; top: 48%; border-radius: 42% 58% 63% 37%; background: rgba(255,255,255,.36); transform: translate(-50%, -50%) rotate(18deg); z-index: -1; }
.type-character { width: 100%; height: 330px; display: block; overflow: visible; filter: drop-shadow(5px 6px 0 rgba(23, 53, 46, .18)); animation: character-arrive .7s cubic-bezier(.2,.9,.2,1.15) both; }
.type-character .char-outline { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.type-character .char-body { fill: var(--character-body, var(--yellow)); }
.type-character .char-accent { fill: var(--character-accent, var(--orange)); }
.type-character .char-paper { fill: var(--cream); }
.type-character .char-ink { fill: var(--ink); }
.type-character .char-line { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.character-nameplate { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; padding: 9px 11px; background: rgba(255,255,255,.9); border-radius: 5px; display: flex; justify-content: space-between; gap: 8px; font: 800 9px/1 var(--body); }
.result-summary { position: relative; margin: 0 0 30px; white-space: pre-line; font-size: clamp(15px, 1.35vw, 17px); line-height: 1.95; font-weight: 600; }
.quote-box { position: relative; padding: 18px 20px; border-radius: 7px; background: var(--result-soft, #eee7f1); color: var(--result-color, #684a76); font: 700 13px/1.65 var(--body); }
.quote-box::before { content: "MOTTO"; position: absolute; right: 10px; top: -17px; color: var(--ink); font: 700 9px/1 var(--mono); }
.hashtags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 7px; }
.hashtags span { padding: 8px 11px; border-radius: 999px; background: #e5f4ed; color: #267d5b; font: 700 10px/1 var(--body); }
.scores-panel { padding: 24px; min-width: 0; }
.scores-panel h3 { margin: 0 0 28px; font: 900 22px/1 var(--display); }
.score-row { margin-bottom: 23px; }
.score-axis { margin-bottom: 10px; font: 700 9px/1 var(--mono); letter-spacing: 1px; color: var(--ink-soft); }
.score-labels { display: flex; justify-content: space-between; font: 700 10px/1 var(--mono); }
.score-track { height: 14px; margin: 9px 0 6px; border-radius: 999px; background: var(--paper-deep); position: relative; overflow: hidden; }
.score-center { position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px solid var(--cream); }
.score-fill { position: absolute; top: 0; height: 100%; animation: bar-grow .7s .2s ease both; }
.score-fill.is-left { background: var(--green); transform-origin: right; }
.score-fill.is-right { background: var(--purple); transform-origin: left; }
.score-value { font: 900 12px/1 var(--mono); }
.score-value.is-left { color: var(--green); }
.score-value.is-right { color: var(--purple); }
.doctor-note { margin-top: 30px; padding-top: 18px; border-top: 1px dashed var(--ink); }
.doctor-note span { font: 700 9px/1 var(--body); color: var(--purple); }
.doctor-note p { margin: 8px 0 0; font-size: 13px; line-height: 1.75; font-weight: 700; }
.result-actions { margin-top: 28px; display: flex; gap: 16px; align-items: center; }
.result-disclaimer { margin-top: 26px; color: var(--ink-soft); font-size: 10px; line-height: 1.6; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; padding: 18px; background: rgba(52, 60, 75, .65); display: grid; place-items: center; backdrop-filter: blur(6px); }
.modal-backdrop[hidden] { display: none; }
.age-modal { width: min(540px, 100%); padding: clamp(28px, 5vw, 48px); background: var(--cream); border-radius: 14px; box-shadow: 0 24px 70px rgba(35, 40, 52, .28); }
.age-modal h2 { margin: 0; font: 800 clamp(30px, 6vw, 47px)/1.14 var(--display); letter-spacing: -.045em; }
.age-modal > p:not(.kicker) { margin: 22px 0; font-size: 14px; line-height: 1.8; font-weight: 600; }
.consent-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); cursor: pointer; font-size: 13px; font-weight: 700; line-height: 1.55; position: relative; }
.consent-check input { position: absolute; left: 15px; top: 15px; width: 1px; height: 1px; margin: 0; opacity: 0; }
.fake-check { width: 22px; height: 22px; margin-top: 1px; border: 2px solid var(--purple); border-radius: 4px; background: var(--cream); display: grid; place-items: center; }
.consent-check input:checked + .fake-check { background: var(--purple); }
.consent-check input:checked + .fake-check::after { content: "✓"; color: var(--cream); font: 900 16px/1 var(--display); transform: translateY(-1px); }
.consent-check input:focus-visible + .fake-check { outline: 3px solid var(--yellow); outline-offset: 3px; }
.modal-actions { margin-top: 22px; display: flex; align-items: center; gap: 24px; }
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 60; padding: 13px 20px; background: var(--ink); color: var(--cream); font: 700 11px/1 var(--mono); transform: translate(-50%, 140%); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

@keyframes screen-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes question-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes stamp-pulse { to { transform: rotate(-4deg) scale(1.025); } }
@keyframes bar-grow { from { transform: scaleX(0); } }
@keyframes character-arrive { from { opacity: 0; transform: translateY(45px) rotate(-3deg); } to { opacity: 1; transform: none; } }

@media (max-width: 820px) {
  .site-nav { display: none; }
  .hero-cast { width: min(720px, 106%); min-height: 350px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-character--one, .hero-character--five { display: none; }
  .hero-character--two .hero-character-art, .hero-character--four .hero-character-art { width: min(220px, 30vw); height: 280px; }
  .hero-character--three .hero-character-art { width: min(250px, 34vw); height: 320px; }
  .type-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quiz-header { grid-template-columns: 70px 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .result-intro { grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr); }
}

@media (max-width: 560px) {
  .site-header { height: 66px; }
  .brand-copy { display: none; }
  .privacy-chip { padding: 8px 10px; font-size: 9px; }
  .screen { min-height: calc(100vh - 66px); }
  .hero-screen { padding: 34px 12px 20px; }
  .hero-intro h1 { font-size: clamp(40px, 12vw, 56px); }
  .hero-lead { max-width: 310px; font-size: 14px; }
  .hero-intro .primary-button { width: min(300px, 100%); }
  .primary-button { width: 100%; }
  .hero-cast { width: 100%; min-height: 285px; margin-top: 12px; }
  .hero-cast::before { left: 0; right: 0; bottom: 14px; height: 190px; }
  .hero-character--two .hero-character-art, .hero-character--four .hero-character-art { width: 130px; height: 210px; }
  .hero-character--three .hero-character-art { width: 150px; height: 240px; }
  .hero-character p { max-width: 115px; min-height: 34px; font-size: 9px; }
  .hero-footer { margin-top: 2px; }
  .type-catalog { margin-top: 58px; padding-inline: 4px; scroll-margin-top: 78px; }
  .type-catalog-grid { gap: 10px; }
  .type-catalog-card { padding: 9px 9px 13px; }
  .catalog-character-art { height: 190px; }
  .catalog-character-art .type-character { height: 188px; }
  .type-catalog-card h3 { font-size: 12px; }
  .quiz-screen { padding-top: 18px; }
  .quiz-shell { min-height: calc(100vh - 100px); }
  .quiz-header { gap: 14px; }
  .question-stage { padding: 38px 0 28px; align-content: start; }
  .question-card { padding: 30px 18px 34px; }
  .question-title { font-size: clamp(29px, 9vw, 42px); }
  .question-note { margin-bottom: 20px; }
  .scale-field { margin-top: 30px; }
  .scale-options { gap: 4px; }
  .scale-option { border-width: 2px; }
  .scale-option:nth-child(1), .scale-option:nth-child(7) { --choice-size: 43px; }
  .scale-option:nth-child(2), .scale-option:nth-child(6) { --choice-size: 37px; }
  .scale-option:nth-child(3), .scale-option:nth-child(5) { --choice-size: 31px; }
  .scale-option:nth-child(4) { --choice-size: 25px; }
  .scale-legend { font-size: 10px; gap: 8px; }
  .quiz-footer { gap: 10px; }
  .quiz-footer .secondary-button { border: 0; padding-left: 0; font-size: 12px; }
  .quiz-footer .primary-button { min-width: 140px; width: auto; }
  .result-heading { align-items: flex-start; flex-direction: column; }
  .result-heading h2 { font-size: clamp(38px, 12vw, 46px); overflow-wrap: anywhere; }
  .type-badge { align-self: flex-end; margin-top: -12px; }
  .result-intro { grid-template-columns: 1fr; }
  .character-card { min-height: 330px; }
  .type-character { width: min(290px, 100%); }
  .result-summary { margin-top: 4px; }
  .scores-panel { padding: 20px; }
  .score-labels { font-size: 8px; letter-spacing: -.03em; }
  .result-actions { align-items: stretch; flex-direction: column; }
  .result-actions .secondary-button { width: 100%; }
  .modal-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .modal-actions .text-button { align-self: center; }
}

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