:root {
  --ink: #1d1b2e;
  --paper: #f8f3eb;
  --white: #fffdf8;
  --violet: #6756d9;
  --violet-dark: #3f347e;
  --pink: #ff718b;
  --mint: #9adfc5;
  --blue: #8dc8f5;
  --amber: #ffc857;
  --red: #ef5b4c;
  --muted: #706b7d;
  --line: #1d1b2e;
  --family: #8066cf;
  --family-dark: #3f347e;
  --family-soft: #eee9ff;
  --family-accent: #ffc857;
  --family-accent-soft: #fff0c7;
  --shadow: 5px 5px 0 var(--line);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 11% 18%, color-mix(in srgb, var(--family-accent) 15%, transparent) 0 2px, transparent 2.5px),
    radial-gradient(circle at 86% 28%, color-mix(in srgb, var(--family) 13%, transparent) 0 1.5px, transparent 2px),
    var(--paper);
  background-size: 31px 31px, 23px 23px, auto;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 4px solid var(--family-accent); outline-offset: 3px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px max(18px, env(safe-area-inset-left));
  border-bottom: 2px solid var(--line);
  background: rgba(248,243,235,.94);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-logo { width: 42px; height: 42px; flex: 0 0 auto; overflow: visible; filter: drop-shadow(2px 2px 0 var(--line)); transform: rotate(-2deg); }
.logo-paper { fill: var(--white); stroke: var(--line); stroke-width: 2.5; }
.logo-sun { fill: var(--red); stroke: var(--line); stroke-width: 2; }
.logo-roof { fill: var(--violet); stroke: var(--line); stroke-width: 2.2; stroke-linejoin: round; }
.logo-campus { fill: none; stroke: var(--line); stroke-width: 2.5; stroke-linecap: round; }
.logo-types circle { stroke: var(--line); stroke-width: 1; }
.logo-types circle:nth-child(1) { fill: #8066cf; }
.logo-types circle:nth-child(2) { fill: #48a981; }
.logo-types circle:nth-child(3) { fill: #4b91c6; }
.logo-types circle:nth-child(4) { fill: #d99322; }
.brand-word { display: grid; min-width: 0; line-height: 1; }
.brand-word strong { font-size: .98rem; font-weight: 1000; letter-spacing: .05em; }
.brand-word small { margin-top: 3px; font-size: .65rem; font-weight: 900; letter-spacing: .08em; }
.serious-link { color: var(--ink); font-size: .84rem; font-weight: 900; text-decoration: none; border-bottom: 3px solid var(--family-accent); white-space: nowrap; }
main { width: min(100% - 32px, 1120px); margin: 0 auto; padding: 28px 0 78px; }
.screen { display: none; }
.screen.active { display: block; animation: rise .36s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Home */
.hero { position: relative; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(350px,.92fr); gap: clamp(26px,5vw,74px); align-items: center; min-height: calc(100vh - 126px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 8px 11px; background: var(--amber); border: 2px solid var(--line); border-radius: 8px; font-size: .8rem; font-weight: 950; letter-spacing: .04em; transform: rotate(-1deg); box-shadow: 3px 3px 0 var(--line); }
.eyebrow i { width: 9px; height: 9px; background: var(--pink); border: 1px solid var(--line); border-radius: 50%; }
h1 { margin: 0; max-width: 720px; font-size: clamp(3rem,7.4vw,6rem); line-height: .94; letter-spacing: -.07em; font-weight: 950; }
h1 .line { display: block; }
h1 .title-question { width: max-content; max-width: 100%; font-size: min(.78em,5vw); white-space: nowrap; }
h1 .highlight { display: inline-block; color: var(--violet); position: relative; z-index: 0; }
h1 .highlight::after { content: ""; position: absolute; left: -.04em; right: -.05em; bottom: .03em; height: .18em; z-index: -1; background: var(--mint); transform: rotate(-1.5deg); }
.lede { max-width: 650px; margin: 23px 0 26px; color: #403c4d; font-size: clamp(1.02rem,2vw,1.23rem); line-height: 1.68; font-weight: 650; }
.lede b { color: var(--violet-dark); }
.start-row { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; }
.primary-btn, .secondary-btn, .share-btn {
  min-height: 54px;
  padding: 14px 21px;
  border: 2px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 950;
  transition: transform .15s ease, box-shadow .15s ease;
}
.primary-btn { color: var(--white); background: var(--violet); box-shadow: var(--shadow); }
.primary-btn:hover { transform: translate(-1px,-1px); box-shadow: 7px 7px 0 var(--line); }
.secondary-btn { color: var(--ink); background: var(--white); box-shadow: 3px 3px 0 var(--line); }
.share-btn { color: var(--ink); background: var(--family-accent); box-shadow: 3px 3px 0 var(--line); }
.micro { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.trust-strip span { padding: 7px 9px; background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; font-size: .76rem; font-weight: 850; }
.hero-deck { position: relative; min-height: 520px; }
.deck-card { position: absolute; border: 3px solid var(--line); box-shadow: 7px 7px 0 var(--line); overflow: hidden; }
.deck-main { inset: 30px 8px 24px 24px; padding: 24px; background: var(--violet); border-radius: 24px; transform: rotate(1.4deg); }
.deck-kicker { display: flex; justify-content: space-between; color: var(--white); font-size: .72rem; font-weight: 950; letter-spacing: .11em; }
.deck-title { margin: 18px 0 16px; color: var(--amber); font-size: clamp(2rem,4vw,3.7rem); line-height: .94; letter-spacing: -.06em; font-weight: 950; text-wrap: balance; }
.avatar-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.collage-person { position: relative; min-height: 0; aspect-ratio: 1; overflow: hidden; background: var(--white); border: 2px solid var(--line); border-radius: 16px; }
.collage-person .avatar { position: absolute; inset: 0; }
.collage-person span { position: absolute; left: 9px; bottom: 8px; z-index: 2; padding: 4px 7px; background: var(--white); border: 1.5px solid var(--line); border-radius: 7px; font-weight: 950; }
.deck-sticker { position: absolute; right: -2px; top: -3px; z-index: 3; display: grid; place-items: center; width: 98px; height: 98px; text-align: center; color: var(--ink); background: var(--amber); border: 3px solid var(--line); border-radius: 50%; font-size: .83rem; font-weight: 950; line-height: 1.15; transform: rotate(9deg); }
.type-ribbon { position: absolute; left: -11px; right: 18px; bottom: -4px; z-index: 4; display: flex; gap: 13px; padding: 10px 13px; overflow: hidden; color: var(--ink); background: var(--mint); border: 2px solid var(--line); font-size: .74rem; font-weight: 950; white-space: nowrap; transform: rotate(-2deg); }

/* Quiz */
.quiz-shell { max-width: 960px; margin: 1vh auto 0; }
.progress-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 11px; font-size: .8rem; font-weight: 950; }
.progress-head span:last-child { color: var(--muted); }
.progress-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 24px; }
.progress-segment { height: 9px; background: #ddd7cf; border: 1.5px solid var(--line); border-radius: 99px; transition: background .25s; }
.progress-segment.done { background: var(--family); }
.question-card { padding: clamp(20px,4vw,38px); background: var(--white); border: 3px solid var(--line); border-radius: 24px; box-shadow: 7px 7px 0 var(--line); }
.question-head { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; margin-bottom: 24px; }
.question-head h2 { margin: 0 0 8px; font-size: clamp(2rem,5vw,3.6rem); letter-spacing: -.055em; line-height: 1.03; text-wrap: balance; line-break: strict; overflow-wrap: anywhere; }
.question-head p { margin: 0; color: var(--muted); line-height: 1.58; font-weight: 650; }
.step-stamp { padding: 9px 11px; color: var(--white); background: var(--family); border: 2px solid var(--line); border-radius: 9px; font-size: .76rem; font-weight: 950; transform: rotate(2deg); }
.family-block + .family-block { margin-top: 22px; }
.family-title { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: .83rem; font-weight: 950; }
.family-title::before { content: ""; width: 18px; height: 8px; background: var(--group-color); border: 1.5px solid var(--line); border-radius: 99px; }
.mbti-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.mbti-card { position: relative; min-height: 202px; padding: 0; overflow: hidden; text-align: left; background: var(--card-tint); border: 2px solid var(--line); border-radius: 16px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.mbti-card:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--line); }
.mbti-card.selected { box-shadow: 0 0 0 4px var(--group-color), 5px 5px 0 var(--line); transform: translateY(-2px); }
.mbti-card .avatar { width: 100%; aspect-ratio: 1; }
.mbti-meta { position: relative; padding: 9px 10px 11px; background: rgba(255,253,248,.92); border-top: 2px solid var(--line); }
.mbti-meta strong { display: block; font-size: 1.15rem; letter-spacing: .03em; }
.mbti-meta small { display: block; margin-top: 2px; color: var(--muted); font-size: .73rem; font-weight: 750; }
.avatar { background-color: var(--card-tint, #ede8ff); background-image: var(--atlas); background-size: 200% 200%; background-position: var(--pos); background-repeat: no-repeat; }
.choice-section + .choice-section { margin-top: 25px; padding-top: 24px; border-top: 2px dashed #cbc4d4; }
.choice-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.choice-label h3 { margin: 0; font-size: 1.18rem; }
.choice-label span { color: var(--muted); font-size: .75rem; font-weight: 750; }
.choice-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.choice-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.choice-card { position: relative; min-height: 112px; padding: 15px; text-align: left; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 14px; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.choice-card:hover { transform: translateY(-1px); box-shadow: 3px 3px 0 var(--line); }
.choice-card.selected { background: var(--mint); box-shadow: 4px 4px 0 var(--line); }
.choice-card strong { display: block; margin-bottom: 5px; font-size: 1rem; }
.choice-card small { display: block; color: #5d5868; font-size: .75rem; line-height: 1.4; }
.choice-card .emoji { display: block; margin-bottom: 8px; font-size: 1.35rem; }
.field-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.field-card { min-height: 142px; padding: 17px; text-align: left; color: var(--ink); background: var(--field-color); border: 2px solid var(--line); border-radius: 16px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.field-card:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--line); }
.field-card.selected { box-shadow: 0 0 0 4px var(--violet), 5px 5px 0 var(--line); }
.field-card .emoji { display: block; margin-bottom: 13px; font-size: 1.65rem; }
.field-card strong { display: block; margin-bottom: 5px; font-size: 1.05rem; }
.field-card small { display: block; color: #575260; font-size: .75rem; line-height: 1.42; }
.quiz-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 25px; }
.text-btn { min-height: 44px; padding: 10px 0; color: var(--muted); background: transparent; border: 0; cursor: pointer; font-weight: 850; }
.text-btn[disabled] { opacity: 0; pointer-events: none; }
.primary-btn[disabled] { opacity: .35; box-shadow: none; cursor: not-allowed; }

/* Loading and result */
.loading-shell { display: grid; place-items: center; min-height: calc(100vh - 180px); text-align: center; }
.loading-avatar { width: 170px; height: 170px; margin: 0 auto 28px; border: 3px solid var(--line); border-radius: 50%; box-shadow: 6px 6px 0 var(--line); animation: pulse-card 1.1s ease-in-out infinite; }
@keyframes pulse-card { 0%,100% { transform: rotate(-3deg) scale(.97); } 50% { transform: rotate(3deg) scale(1.03); } }
.loading-shell h2 { margin: 0 0 9px; font-size: clamp(2rem,7vw,4.2rem); letter-spacing: -.06em; text-wrap: balance; word-break: keep-all; }
.loading-shell p { margin: 0; color: var(--muted); font-weight: 700; }
.result-wrap { max-width: 960px; margin: 0 auto; }
.result-kicker { display: inline-flex; gap: 8px; margin-bottom: 14px; padding: 7px 9px; background: var(--family-accent); border: 2px solid var(--line); border-radius: 8px; font-size: .78rem; font-weight: 950; transform: rotate(-1deg); }
.result-card { overflow: hidden; background: var(--family-dark); border: 3px solid var(--line); border-radius: 24px; box-shadow: 8px 8px 0 var(--family); color: var(--white); }
.result-top { position: relative; padding: clamp(26px,5vw,52px); overflow: hidden; }
.result-top::after { content: ""; position: absolute; right: -105px; bottom: -125px; width: 260px; height: 260px; border: 32px solid var(--family-accent); border-radius: 50%; opacity: .18; }
.result-top > * { position: relative; z-index: 2; }
.result-heading { min-width: 0; }
.result-detail { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 28px; align-items: center; margin-top: 28px; }
.result-avatar-wrap { position: relative; z-index: 2; }
.result-avatar { width: 186px; aspect-ratio: 1; background-color: var(--family-soft); border: 3px solid var(--line); border-radius: 20px; box-shadow: 5px 5px 0 var(--family-accent); }
.type-badge { position: absolute; left: -12px; bottom: -10px; padding: 8px 11px; color: var(--ink); background: var(--family-accent); border: 2px solid var(--line); border-radius: 9px; font-size: 1rem; font-weight: 950; transform: rotate(-3deg); }
.result-meta { min-width: 0; }
.result-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.result-tags span { padding: 5px 8px; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; font-size: .72rem; font-weight: 900; white-space: nowrap; }
.result-label { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 14px; padding: 7px 11px 7px 8px; color: var(--ink); background: var(--family-accent); border: 2px solid var(--line); border-radius: 10px; box-shadow: 3px 3px 0 var(--line); font-size: .82rem; font-weight: 950; letter-spacing: .06em; transform: rotate(-1deg); }
.result-label strong { font-size: clamp(1.55rem,4vw,2.25rem); line-height: .9; letter-spacing: -.02em; }
.result-label span { white-space: nowrap; }
.result-school { display: block; width: 100%; margin: 0; color: var(--family-accent); font-size: 5.75rem; line-height: .94; letter-spacing: -.065em; white-space: nowrap; }
.result-major { margin: 0; font-size: clamp(1.12rem,2.6vw,1.55rem); font-weight: 850; line-height: 1.4; overflow-wrap: anywhere; }
.match-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 20px; }
.match-score { font-size: clamp(2.6rem,6vw,4.25rem); line-height: .9; font-weight: 950; color: var(--family-accent); white-space: nowrap; }
.match-copy { font-size: .74rem; font-weight: 800; line-height: 1.3; opacity: .84; }
.verdict { margin: 28px 0 0; max-width: 820px; font-size: clamp(1.18rem,3vw,1.75rem); line-height: 1.48; font-weight: 850; overflow-wrap: anywhere; }
.reason-grid { display: grid; grid-template-columns: repeat(3,1fr); color: var(--ink); background: var(--white); border-top: 3px solid var(--line); }
.reason { min-height: 175px; padding: 23px; border-right: 2px solid var(--line); }
.reason:last-child { border-right: 0; }
.reason:nth-child(1) { background: var(--family-soft); }
.reason:nth-child(2) { background: var(--white); }
.reason:nth-child(3) { background: var(--family-accent-soft); }
.reason b { display: block; margin-bottom: 9px; color: var(--family-dark); font-size: .74rem; letter-spacing: .08em; }
.reason p { margin: 0; font-size: .9rem; line-height: 1.58; font-weight: 700; overflow-wrap: anywhere; }
.pitfall { display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: start; padding: 18px 23px; color: var(--ink); background: var(--family-accent-soft); border-top: 2px solid var(--line); }
.pitfall span { font-size: 1.35rem; }
.pitfall b { display: block; margin-bottom: 3px; font-size: .78rem; }
.pitfall p { margin: 0; font-size: .85rem; line-height: 1.5; font-weight: 700; overflow-wrap: anywhere; }
.funnel { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; margin-top: 32px; padding: 24px; color: var(--ink); background: var(--family-soft); border: 3px solid var(--line); border-radius: 18px; box-shadow: 5px 5px 0 var(--family); }
.funnel h3 { margin: 0 0 5px; font-size: clamp(1.28rem,4vw,1.9rem); letter-spacing: -.035em; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
.funnel p { margin: 0; max-width: 580px; line-height: 1.55; font-weight: 650; overflow-wrap: anywhere; }
.funnel a { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 13px 18px; color: var(--white); background: var(--family-dark); border: 2px solid var(--line); border-radius: 11px; box-shadow: 3px 3px 0 var(--line); text-align: center; text-decoration: none; font-weight: 950; }
.result-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 24px; }
.result-note { margin: 20px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.6; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%,20px); padding: 12px 16px; color: var(--white); background: var(--ink); border: 2px solid var(--white); border-radius: 10px; opacity: 0; pointer-events: none; transition: .24s; font-size: .84rem; font-weight: 850; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.confetti { position: fixed; inset: 0; z-index: 50; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -30px; width: 12px; height: 20px; animation: fall 1.8s cubic-bezier(.2,.7,.4,1) forwards; }
@keyframes fall { to { transform: translate3d(var(--drift),110vh,0) rotate(720deg); } }
.poster-modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 18px; background: rgba(29,27,46,.88); backdrop-filter: blur(12px); }
.poster-modal.show { display: grid; }
.poster-sheet { position: relative; display: grid; grid-template-rows: auto minmax(0,1fr) auto auto; width: min(100%,460px); max-height: calc(100vh - 36px); overflow: auto; padding: 13px; background: var(--paper); border: 3px solid var(--line); border-radius: 18px; box-shadow: 8px 8px 0 var(--family-accent); }
.poster-sheet img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 220px); margin: 0 auto; border: 2px solid var(--line); border-radius: 10px; object-fit: contain; }
.poster-close { position: sticky; top: 0; z-index: 2; display: block; width: 40px; height: 40px; margin: 0 0 8px auto; border: 2px solid var(--line); border-radius: 9px; background: var(--family-accent); cursor: pointer; font-size: 1.1rem; font-weight: 950; }
.poster-tip { margin: 13px 0 9px; text-align: center; font-size: .88rem; font-weight: 850; }
.poster-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.poster-actions button { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 12px; color: var(--ink); background: var(--white); border: 2px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 900; }
.poster-actions button:last-child { background: var(--family-accent); }
.poster-actions button[disabled], .share-btn[disabled], .mobile-result-bar button[disabled] { opacity: .58; cursor: wait; box-shadow: none; }
.mobile-result-bar { display: none; }

@media (max-width: 800px) {
  .topbar { padding-top: max(11px,env(safe-area-inset-top)); }
  .brand-logo { width: 38px; height: 38px; }
  .brand-word strong { font-size: .86rem; }
  .brand-word small { font-size: .58rem; }
  .serious-link { font-size: .75rem; }
  main { width: min(100% - 24px,640px); padding: 21px 0 70px; }
  .hero { display: flex; flex-direction: column; min-height: auto; align-items: stretch; }
  .hero-copy { padding-top: 8px; }
  h1 { font-size: clamp(3.1rem,16vw,4.65rem); }
  h1 .title-question { font-size: min(1em,10.8vw); }
  .lede { margin: 18px 0 21px; }
  .start-row .primary-btn { width: 100%; }
  .hero-deck { min-height: 455px; margin: 0 3px 29px 0; }
  .deck-main { inset: 26px 5px 22px 10px; padding: 18px; }
  .deck-title { font-size: 2.55rem; }
  .deck-sticker { width: 84px; height: 84px; font-size: .73rem; }
  .question-card { padding: 18px; border-radius: 18px; box-shadow: 5px 5px 0 var(--line); }
  .question-head { display: block; margin-bottom: 18px; }
  .step-stamp { display: none; }
  .mbti-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .mbti-card { min-height: 197px; }
  .choice-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .choice-grid.three { grid-template-columns: 1fr; }
  .choice-grid.three .choice-card { min-height: 86px; }
  .field-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .field-card { min-height: 138px; padding: 14px; }
  .quiz-actions { position: sticky; bottom: 8px; z-index: 8; padding: 9px; margin: 20px -4px -4px; background: rgba(255,253,248,.94); border: 2px solid var(--line); border-radius: 13px; backdrop-filter: blur(10px); }
  .quiz-actions .primary-btn { min-width: 145px; }
  .result-top { padding: 23px 18px 27px; }
  .result-label { gap: 7px; padding: 6px 9px 6px 7px; font-size: .69rem; letter-spacing: .03em; }
  .result-label strong { font-size: 1.55rem; }
  .result-detail { grid-template-columns: 112px minmax(0,1fr); gap: 17px; margin-top: 22px; }
  .result-avatar { width: 112px; border-radius: 15px; }
  .type-badge { left: -5px; bottom: -8px; font-size: .84rem; }
  .result-school { font-size: 4rem; }
  .result-major { font-size: .94rem; }
  .match-row { margin-top: 14px; }
  .verdict { margin-top: 24px; }
  .reason-grid { grid-template-columns: 1fr; }
  .reason { min-height: auto; border-right: 0; border-bottom: 2px solid var(--line); }
  .reason:last-child { border-bottom: 0; }
  .funnel { grid-template-columns: 1fr; }
  .funnel a { width: 100%; }
  .result-actions > * { flex: 1 1 100%; width: 100%; }
  body.has-result main { padding-bottom: 112px; }
  .mobile-result-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none; grid-template-columns: .88fr 1.3fr; gap: 8px; padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); background: rgba(248,243,235,.96); border-top: 2px solid var(--line); backdrop-filter: blur(12px); }
  body.has-result .mobile-result-bar { display: grid; }
  .mobile-result-bar button, .mobile-result-bar a { min-height: 50px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 950; }
  .mobile-result-bar button { color: var(--ink); background: var(--family-accent); }
  .mobile-result-bar a { color: var(--white); background: var(--family-dark); }
}
@media (max-width: 390px) {
  h1 { font-size: clamp(2.65rem,13vw,2.85rem); }
  .hero-deck { min-height: 420px; }
  .result-detail { grid-template-columns: 94px minmax(0,1fr); gap: 14px; }
  .result-avatar { width: 94px; }
  .type-badge { max-width: 110px; font-size: .74rem; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
