:root{color-scheme:light;--bg:#f8faf7;--panel:#fff;--ink:#303d3b;--muted:#697873;--accent:#367c6e;--line:#dce7e1;font-family:system-ui,-apple-system,'Segoe UI','Microsoft YaHei',sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #8b71b5;outline-offset:4px}button:disabled{cursor:default}a{color:inherit;text-decoration:none}.header{max-width:1120px;margin:auto;padding:16px 20px;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;min-height:64px}.header a{display:flex;align-items:center;gap:8px;font-weight:700}.brand-mark{display:grid;place-items:center;background:#e3eee6;color:var(--accent);width:32px;height:32px;border-radius:11px;font-size:25px}.brand-sub{font-size:12px;font-weight:400;color:var(--muted);border-left:1px solid var(--line);padding-left:8px}.header>.mono{display:none}.mono{font-variant-numeric:tabular-nums}.eyebrow{font-size:12px;letter-spacing:1.5px;font-weight:600;line-height:1.6;color:var(--accent)}main{max-width:620px;margin:auto;padding:0 20px}h1,h2,p{overflow-wrap:anywhere}h1,h2{letter-spacing:-.5px}h1{font-weight:750}.home{padding-top:32px;text-align:center}.home .eyebrow{display:inline-block;background:#e9f0e8;padding:7px 13px;border-radius:30px}.kicker{color:var(--muted);font-size:13px;margin:23px 0 12px}.home h1{font-size:clamp(29px,7.5vw,46px);line-height:1.45;margin:0}.home h1 span{color:var(--accent)}.intro{color:var(--muted);font-size:15px;line-height:1.9;margin:18px 0}.test-meta{display:flex;justify-content:center;gap:22px;font-size:13px;margin:22px 0}.test-meta span:before{content:'✓';color:var(--accent);margin-right:7px}.primary,.secondary{min-height:52px;padding:14px 20px;border-radius:16px;font-weight:600;border:0}.primary{display:flex;justify-content:center;align-items:center;gap:24px;background:var(--accent);color:white;width:100%;box-shadow:0 5px 12px #367c6e12}.secondary{border:1px solid var(--line);background:#fff;color:var(--ink)}.start-note{font-size:12px;color:var(--muted);line-height:1.7;margin:12px 0}.home-art{height:260px;position:relative;display:grid;place-items:center;margin:24px 0}.art-stage{background:#e9eee4;border-radius:48% 52% 39% 61% / 55% 42% 58% 45%;width:250px;height:230px;display:grid;place-items:center}.art-stage img{width:210px;height:210px}.art-bubble{position:absolute;top:8px;left:0;background:white;padding:10px 14px;border-radius:15px;box-shadow:0 6px 25px #33463e07;font-size:12px;transform:rotate(-5deg)}.art-caption{position:absolute;bottom:0;color:var(--muted);font-size:12px}.art-spark{position:absolute;color:#b6a0c8;font-size:36px}.spark-one{right:6%;top:20px}.spark-two{left:7%;bottom:45px;color:#c4ac70;font-size:26px}.home-guide{display:grid;gap:12px;text-align:left;margin:36px 0 12px}.home-guide>div{position:relative;background:white;border:1px solid #edf0eb;border-radius:20px;padding:20px 20px 20px 64px}.home-guide>div>span{position:absolute;left:18px;top:22px;color:var(--accent);background:#edf4ee;padding:6px;border-radius:10px;font-size:12px}.home-guide h2{font-size:16px;margin:0 0 7px}.home-guide p{font-size:13px;color:var(--muted);margin:0;line-height:1.7}footer{text-align:center;font-size:11px;line-height:1.9;color:var(--muted);padding:28px 20px 22px}.quiz{padding-top:16px}.progress-label{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:var(--muted)}.progress-label b{font-size:19px;color:var(--accent)}.progress{height:6px;border-radius:10px;background:#e4ece5;margin-top:10px;overflow:hidden}.progress i{display:block;height:100%;border-radius:10px;background:#6a9e8c;transition:width .15s}.question-block{padding:25px 0 19px}.question-block>.eyebrow{font-size:11px;color:var(--muted);letter-spacing:1px}.question-block h1{font-size:22px;line-height:1.5;margin:10px 0 9px;outline:none}.question-block p{font-size:13px;color:var(--muted);margin:0}.options{display:grid;gap:10px}.option{display:flex;align-items:center;gap:12px;min-height:68px;width:100%;padding:13px 14px;border:1px solid var(--line);border-radius:16px;background:white;color:var(--ink);text-align:left;font-size:15px;line-height:1.65;transition:background .15s,border-color .15s,transform .15s}.letter{flex:0 0 29px;height:29px;display:grid;place-items:center;font-size:12px;font-weight:600;color:var(--muted);background:#f0f4ef;border-radius:10px}.option-arrow{display:none}.option.selected{border-color:var(--accent);background:#e7f1eb}.option.selected .letter{background:var(--accent);color:white}.quiz-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:14px;color:var(--muted);font-size:11px}.text-button{background:transparent;border:0;color:var(--ink);min-height:44px;padding:8px;font-size:13px}.text-button:disabled{opacity:.35}.quiz+footer{padding-top:20px}.result{max-width:880px}.result-hero{position:relative;text-align:center;display:flex;flex-direction:column;align-items:center;overflow:hidden;padding:12px 0 28px}.portrait{width:100%;height:190px;display:grid;place-items:center;position:relative;perspective:800px;margin:0 0 10px}.orbit{position:absolute;width:174px;height:174px;background:#e9eee4;border-radius:48% 52% 58% 42% / 55% 43% 57% 45%}.orbit:after{content:'✧';position:absolute;right:-22px;top:14px;font-size:35px;color:#b6a0c8}.avatar-turn{position:relative;z-index:1;display:grid;place-items:center;animation:none}.avatar-turn img{width:190px;height:190px;object-fit:contain}.result h1,.share-card h1{font-size:30px;line-height:1.35;margin:8px 0 14px}.identity-meta{display:flex;align-items:center;justify-content:center;gap:14px}.type{font-size:18px;font-weight:700;letter-spacing:2px;background:#e8f1eb;color:var(--accent);padding:5px 12px;border-radius:10px}.match{font-size:13px;color:var(--muted)}.match b{font-size:18px;color:var(--accent);margin-left:6px}.tags{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin:17px 0 0;max-width:410px}.tags span{font-size:12px;line-height:1.5;padding:6px 10px;border-radius:30px;background:#eeeaf4;color:#6b5d7d}.tags span:nth-child(2n){background:#f3eedf;color:#7a6a40}.result-note{font-size:16px;line-height:1.85;max-width:460px;margin:19px 8px 0;color:#52625c}.scroll-hint{font-size:12px;color:var(--muted);margin-top:20px;min-height:40px;display:flex;align-items:center;gap:10px}.scroll-hint span{font-size:18px}.details{display:grid;gap:14px;padding-top:14px}.detail{border:1px solid #e6ece5;border-radius:22px;padding:22px;background:white}.detail:nth-child(2){background:#edf4ed;border-color:#edf4ed}.detail:nth-child(3){background:#f0edf5;border-color:#f0edf5}.detail:nth-child(4){background:#f8f1e3;border-color:#f8f1e3}.detail .eyebrow{color:var(--muted);font-size:11px;letter-spacing:1px}.detail h2{font-size:19px;margin:7px 0 12px}.detail p{font-size:15px;color:#56635f;line-height:1.9;margin:0;white-space:pre-line}.result-actions{display:grid;grid-template-columns:1fr 1.6fr;gap:10px;margin-top:12px}.result-actions button{font-size:13px;gap:6px;padding:14px 10px}.card-note{font-size:11px;line-height:1.8;color:var(--muted);text-align:center;margin:0 0 10px}.confetti{position:absolute;inset:0;pointer-events:none}.confetti i{position:absolute;left:var(--x);top:0;width:6px;height:10px;border-radius:2px;background:#a5c7aa;opacity:0;animation:none}.confetti i:nth-child(3n){background:#dec486}.confetti i:nth-child(2n){background:#b9a8ce}dialog{background:var(--bg);color:var(--ink);border:1px solid var(--line);padding:16px;width:min(440px,calc(100% - 24px));max-height:90svh;border-radius:24px}dialog::backdrop{background:#263e3655;backdrop-filter:blur(5px)}body:has(dialog[open]){overflow:hidden}.dialog-top{display:flex;align-items:center;justify-content:space-between}.dialog-top h2{font-size:16px;margin:0}.share-card{text-align:center;background:white;border:1px solid var(--line);border-radius:20px;padding:24px 14px;margin:10px 0 16px}.share-card .portrait{height:170px;margin-top:12px}.share-card .avatar-turn{animation:none}.share-card .avatar-turn img{width:170px;height:170px}.share-card .orbit{width:150px;height:150px}.share-card h1{font-size:27px}.share-card small{font-size:11px;color:var(--muted)}.card-verdict{font-size:15px;line-height:1.8;margin:20px 0}.share-card .tags{gap:6px}.share-card .tags span{font-size:11px;padding:6px 8px}@keyframes reveal{from{transform:rotateY(-360deg);opacity:0}20%{opacity:1}to{transform:rotateY(0);opacity:1}}@keyframes confetti{0%{transform:translateY(0) rotate(0);opacity:0}15%{opacity:1}100%{transform:translateY(420px) rotate(var(--turn));opacity:0}}@media(hover:hover){.primary:hover{background:#296958}.option:hover{border-color:#8cb4a2;background:#f0f6f1;transform:translateY(-1px)}}@media(min-width:760px){.header{padding:24px 32px}.header>.mono{display:block;font-size:12px;color:var(--muted)}main{padding:0 32px}.home{max-width:1120px;padding-top:60px;display:grid;grid-template-columns:1.1fr 1fr;gap:30px 50px;text-align:left}.home-copy{padding:10px 0}.home h1{font-size:44px}.home .test-meta{justify-content:flex-start}.home .primary{max-width:290px}.start-note{text-align:left}.home-art{height:380px;align-self:center}.art-stage{width:330px;height:320px}.art-stage img{width:280px;height:280px}.art-bubble{top:40px}.art-caption{bottom:20px}.home-guide{grid-column:1/-1;grid-template-columns:repeat(3,1fr);margin-top:25px}.home-guide>div{padding:24px}.home-guide>div>span{position:static;display:inline-block;margin-bottom:15px}.quiz{padding-top:36px;max-width:650px}.question-block{padding:34px 0 24px}.question-block h1{font-size:27px}.option{min-height:76px;font-size:16px}.result-hero{padding-top:20px}.portrait{height:220px}.avatar-turn img{height:220px;width:220px}.orbit{height:200px;width:200px}.result h1{font-size:36px}.details{grid-template-columns:1fr 1fr;gap:18px}.result-actions,.details>.card-note{grid-column:1/-1}.result-actions{max-width:520px;width:100%;justify-self:center;margin-top:18px}.detail{padding:28px}.result-note{font-size:18px}.result-hero .tags{max-width:none}footer{padding-top:40px}}@media(max-width:360px){.header{padding:12px 16px;min-height:56px}main{padding-left:16px;padding-right:16px}.quiz{padding-top:10px}.question-block{padding:18px 0 15px}.question-block h1{font-size:20px}.option{padding:11px 12px;gap:10px;min-height:62px}.options{gap:8px}.result-hero{padding-top:4px}.portrait{height:156px}.avatar-turn img{width:156px;height:156px}.orbit{width:145px;height:145px}.result h1{font-size:27px}.tags{margin-top:12px}.tags span{font-size:11px;padding:5px 8px}.result-note{font-size:15px;margin-top:14px}.scroll-hint{margin-top:12px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.confetti{display:none}}

/* Mobile readability and character-led result refinements. */
.header{font-size:18px;min-height:64px;padding:18px 20px}
.header a{font-weight:650;gap:10px;line-height:1.5}
.header>.mono{margin-left:auto}
.music-toggle{position:relative;flex:0 0 36px;width:36px;height:36px;padding:0;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--accent);font-size:20px;line-height:1;box-shadow:0 3px 10px #33463e0a;transition:background .2s,color .2s,border-color .2s}
.music-toggle span{transform:translateY(-1px)}
.music-toggle.is-muted{color:var(--muted);background:transparent}
.music-toggle.is-muted:after{content:'';position:absolute;width:18px;height:1px;background:currentColor;transform:rotate(-45deg)}
.brand-sub{font-size:16px;padding-left:10px}
.kicker{font-size:18px;color:var(--accent);font-weight:600;margin:0 0 18px}
.home{padding-top:28px}
.intro{font-size:20px;line-height:1.7;margin:20px auto;max-width:390px;color:#52645d}
.test-meta{font-size:15px;margin:23px 0}
.primary,.secondary{font-size:18px;min-height:56px}
.home-art{margin:22px 0 12px}
.art-caption{font-size:14px}
.home-guide{gap:12px;margin-top:30px}
.home-guide>div{display:flex;align-items:center;gap:20px;padding:23px 22px;border-radius:20px;min-height:94px}
.home-guide>div>span{position:static;flex-shrink:0;font-size:32px;font-weight:600;line-height:1.2;padding:0;background:none;margin:0;color:#6e9684;font-variant-numeric:tabular-nums}
.home-guide h2{font-size:20px;font-weight:650;margin:0;line-height:1.5}
.progress-label{font-size:15px}
.progress-label b{font-size:21px}
.question-block{padding:21px 0 17px}
.question-block p{font-size:15px}
.option{font-size:18px;line-height:1.6;gap:12px;padding:14px;min-height:78px}
.letter{font-size:22px;flex-basis:24px;height:auto;background:none;border-radius:0;color:var(--accent);font-weight:600}
.option.selected .letter{background:none;color:var(--accent)}
.quiz-bottom{font-size:13px;margin-top:12px}
.text-button{font-size:16px}
footer{font-size:13px}
.result-hero{padding:0 0 22px;min-height:calc(100svh - 64px)}
.result-hero>.portrait{height:clamp(290px,calc(59svh - 66px),550px);flex-shrink:0;margin:0 0 8px}
.result-hero .avatar-turn{width:100%;height:100%}
.result-hero .avatar-turn img{width:100%;height:100%;max-width:520px;max-height:550px;object-fit:contain}
.result-hero .orbit{width:min(88%,350px);height:85%;max-height:440px}
.result-hero .orbit:after{display:none}
.result-hero>.eyebrow{font-size:14px;letter-spacing:1px}
.result h1{font-size:32px;margin:6px 0 12px;line-height:1.35}
.type{font-size:22px;padding:5px 12px}
.match{font-size:16px}
.match b{font-size:22px}
.tags{gap:7px;margin-top:14px}
.tags span{font-size:14px;padding:5px 10px}
.result-note{font-size:18px;line-height:1.65;margin:16px 0 0;max-width:500px}
.scroll-hint{font-size:14px;margin-top:12px;min-height:36px}
.detail{padding:24px;border-radius:22px}
.detail h2{font-size:22px;font-weight:700;margin:0 0 14px;line-height:1.4}
.detail p{font-size:17px;line-height:1.85}
.result-actions button{font-size:16px}
.card-note{font-size:13px;line-height:1.8}
.dialog-top h2{font-size:18px}
.card-verdict{font-size:17px}
.share-card small{font-size:13px}
.share-card .tags span{font-size:13px}
@media(min-width:760px){
 .header{padding:22px 32px}.header>.mono{font-size:14px}
 .home{padding-top:55px}.intro{margin-left:0;font-size:22px}
 .home-guide>div{display:flex;align-items:flex-start;flex-direction:column;gap:18px;padding:26px}
 .home-guide>div>span{font-size:38px;margin:0}.home-guide h2{font-size:21px}
 .question-block{padding:30px 0 24px}.option{min-height:82px}
 .result-hero>.portrait{height:clamp(360px,48svh,500px)}
 .result h1{font-size:38px}.result-note{font-size:20px}
 .result-hero .orbit{width:360px}.detail{padding:28px}
}
@media(max-width:360px){
 .header{padding:14px 16px;min-height:56px;font-size:17px}.brand-sub{font-size:15px}
 .kicker{font-size:17px}.intro{font-size:19px}
 .option{font-size:18px;gap:10px;padding:12px;min-height:74px}
 .letter{font-size:21px;flex-basis:22px}.question-block{padding:17px 0 14px}
 .result h1{font-size:30px}.tags span{font-size:14px;padding:5px 8px}
 .result-note{font-size:18px;margin-top:14px}
 .result-hero>.portrait{height:clamp(285px,calc(57svh - 60px),380px)}
 .detail{padding:22px}.result-actions{grid-template-columns:1fr}
}

.intro-ending{display:inline-block}

/* Soft title labels and quiet, independent step cards. */
.detail h2{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:9px 13px;background:#ffffffeb;border:1px solid #edf0eb;border-radius:18px;box-shadow:0 2px 5px #30483b03}
.detail-icon{flex-shrink:0;font-size:19px;line-height:1.3}
.home-guide>div{background:#fff;border:1px solid #e8eee7;border-radius:28px;box-shadow:0 5px 18px #30483b05;gap:16px}
.home-guide>div>span{display:grid;place-items:center;width:58px;height:58px;background:#edf3ec;border-radius:20px}
@media(max-width:360px){.home-guide>div{padding:22px 18px;gap:12px}.home-guide>div>span{width:50px;height:54px;border-radius:18px}.detail h2{padding:9px 10px;gap:6px}}
@media(min-width:760px){.home-guide>div>span{width:68px;height:68px;border-radius:23px}}

/* Keep headings on their parent card; emphasize selected phrases only. */
.detail h2{padding:0;background:none;border:0;border-radius:0;box-shadow:none;font-weight:750;gap:9px}
.detail p{color:#46564f;font-weight:450}
.detail p strong{font-weight:650;color:#303f38}

/* Preserve the complete proportions of supplied character artwork. */
.art-stage img{object-fit:contain}
.home-art .art-stage img,.result-hero>.portrait .avatar-turn img{opacity:1;transition:opacity .22s ease-out}
.home-art.image-pending .art-stage img,.result-hero.image-pending>.portrait .avatar-turn img{opacity:0}

/* Finite, image-ready character motion. Rotation pivots near the feet, without translation. */
.home-art .art-stage img{transform-origin:50% 90%;transform:rotate(0deg)}
.home-art.motion-home .art-stage img{animation:character-entry 2.4s ease-in-out 1}
.result-hero .avatar-turn{transform-origin:50% 90%;transform:rotate(0deg);animation:none}
.result-hero .confetti{z-index:3;overflow:hidden}
.result-hero.motion-entry .avatar-turn{animation:character-entry 2.4s ease-in-out 1}
.result-hero.motion-reveal .avatar-turn{animation:character-reveal 2.8s ease-in-out 1}
.result-hero.motion-reveal .confetti i{animation:confetti-burst var(--duration,2.4s) var(--delay) linear 1 both}
@keyframes character-entry{0%,100%{transform:rotate(0deg)}18%{transform:rotate(-1.8deg)}38%{transform:rotate(1.6deg)}58%{transform:rotate(-1.1deg)}78%{transform:rotate(.6deg)}}
@keyframes character-reveal{0%,100%{transform:rotate(0deg)}15%{transform:rotate(-3deg)}33%{transform:rotate(2.8deg)}51%{transform:rotate(-2.2deg)}69%{transform:rotate(1.5deg)}85%{transform:rotate(-.7deg)}}
/* Explicit developer-only opt-in can test full motion while the OS preference is reduce. */
@media(prefers-reduced-motion:reduce){
 .home-art.motion-force.motion-home .art-stage img{animation:character-entry 2.4s ease-in-out 1!important}
 .result-hero.motion-force.motion-entry .avatar-turn{animation:character-entry 2.4s ease-in-out 1!important}
 .result-hero.motion-force.motion-reveal .avatar-turn{animation:character-reveal 2.8s ease-in-out 1!important}
 .result-hero.motion-force.motion-reveal .confetti{display:block}
 .result-hero.motion-force.motion-reveal .confetti i{animation:confetti-burst var(--duration,2.4s) var(--delay) linear 1 both!important}
}

/* Paired confetti jets: quick outward launch, gentle gravity, then fade. */
.result-hero .confetti i{left:50%;top:var(--burst-y,180px);width:6px;height:10px;opacity:0}
.result-hero .confetti i:nth-child(4n){width:8px;height:5px}
@keyframes confetti-burst{
  0%{transform:translate(var(--start-x),0) rotate(var(--initial-turn));opacity:0}
  6%{opacity:.95}
  20%{transform:translate(calc(var(--start-x) + var(--travel-x) * .56),calc(var(--lift) * -1)) rotate(calc(var(--initial-turn) + var(--turn) * .25));opacity:1}
  45%{transform:translate(calc(var(--start-x) + var(--travel-x) * .82),calc(var(--lift) * -.6)) rotate(calc(var(--initial-turn) + var(--turn) * .5));opacity:.9}
  75%{transform:translate(calc(var(--start-x) + var(--travel-x) * .95),calc(var(--fall) * .35)) rotate(calc(var(--initial-turn) + var(--turn) * .8));opacity:.5}
  100%{transform:translate(calc(var(--start-x) + var(--travel-x)),var(--fall)) rotate(calc(var(--initial-turn) + var(--turn)));opacity:0}
}

/* Mobile home only: artwork and caption before the start button. */
@media(max-width:759px){
 .home{display:flex;flex-direction:column}
 .home-copy{display:contents}
 .home>.home-art{order:1;flex-shrink:0}
 .home-copy>#start{order:2}
 .home>.home-guide{order:3}
 .home .art-stage img{width:252px;height:252px;max-width:calc(100vw - 40px);object-fit:contain}
}
/* Mobile home reference: full-width artwork, compact copy, natural document flow. */
@media(max-width:759px){
 .home{padding-top:12px}
 .home .kicker{margin:0 0 18px}
 .home .intro{font-size:clamp(14px,4.1vw,17px);line-height:1.7;max-width:none;margin:14px 0 8px}
 .home .intro-ending{display:inline}
 .home .test-meta{margin:0 0 16px}
 .home>.home-art{display:flex;flex-direction:column;align-items:center;gap:10px;height:auto;margin:0 0 16px}
 .home .art-stage{width:100%;max-width:390px;aspect-ratio:4 / 3;height:auto;min-height:0;display:flex;align-items:center;justify-content:center}
 .home .art-stage img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain}
 .home .art-caption{position:static;font-size:16px;line-height:1.5}
 .home-copy>#start{flex-shrink:0;margin:0;min-height:56px}
 .home>.home-guide{margin-top:38px}
}
@media(max-width:759px) and (max-height:700px){
 .home{padding-top:6px}
 .home .kicker{margin-bottom:10px}
 .home .intro{margin-top:8px;margin-bottom:6px}
 .home .test-meta{margin-bottom:8px}
 .home>.home-art{gap:8px;margin-bottom:10px}
}
/* Mobile result reference: identity first, then artwork; compact second-screen cards. */
@media(max-width:759px){
 .result>.result-hero{min-height:calc(100svh - 64px);padding:16px 0 12px;gap:0}
 .result-hero>.eyebrow{order:0}
 .result-hero>h1{order:1;font-size:34px;line-height:1.3;margin:8px 0 6px}
 .result-hero>.portrait{order:2;height:clamp(220px,43svh,360px);margin:0 0 10px}
 .result-hero>.identity-meta{order:3}
 .result-hero>.tags{order:4;max-width:100%;gap:5px;margin-top:14px}
 .result-hero>.tags span{font-size:11px;line-height:1.5;padding:5px 6px}
 .result-hero>.result-note{order:5;font-size:17px;line-height:1.65;margin:18px 0 0}
 .result-hero>.scroll-hint{order:6;margin-top:auto;padding-top:14px;min-height:44px;flex-shrink:0}
 .result>.details{gap:10px;padding-top:12px;scroll-margin-top:8px}
 .result .detail{padding:16px 18px}
 .result .detail h2{font-size:20px;line-height:1.4;margin:0 0 8px}
 .result .detail p{font-size:16px;line-height:1.65}
 .result .result-actions{grid-template-columns:1fr 1.6fr;gap:10px;margin-top:6px}
 .result .result-actions button{min-height:52px;padding:12px 10px;font-size:15px}
 .result .details>.card-note{font-size:12px;margin:0;line-height:1.6}
}
@media(max-width:759px) and (max-height:700px){
 .result>.result-hero{padding-top:8px}
 .result-hero>h1{font-size:30px;margin:5px 0}
 .result-hero>.portrait{height:clamp(190px,37svh,260px);margin-bottom:8px}
 .result-hero>.tags{margin-top:10px}
 .result-hero>.result-note{font-size:16px;margin-top:12px}
 .result-hero>.scroll-hint{padding-top:8px}
 .result .detail{padding:14px 16px}
}
@media(max-width:759px){
 .result-hero>.tags{gap:4px}
 .result-hero>.tags span{font-size:10px;padding:5px 4px}
 .result>.details{gap:8px}
 .result .detail{padding-top:14px;padding-bottom:14px}
}
@media(max-width:359px) and (max-height:620px){
 .result-hero>.portrait{height:180px}
 .result-hero>.result-note{margin-top:8px}
}
/* Final mobile result hero reference: relaxed spacing, no short-screen squeezing. */
@media(max-width:759px){
 .result>.result-hero{padding:28px 0 16px;min-height:calc(100svh - 64px)}
 .result-hero>h1{font-size:34px;line-height:1.3;margin:12px 0 18px}
 .result-hero>.portrait{height:auto;aspect-ratio:1.35;margin:0 0 22px;flex-shrink:0}
 .result-hero .orbit{width:96%;height:90%;max-height:none}
 .result-hero .avatar-turn img{height:auto;max-height:100%;width:100%;object-fit:contain}
 .result-hero>.identity-meta{gap:16px}
 .result-hero>.tags{margin-top:12px;gap:4px}
 .result-hero>.result-note{font-size:16px;line-height:1.7;margin:18px 0 0}
 .result-hero>.scroll-hint{margin-top:auto;padding-top:30px;min-height:56px}
}
/* Mobile share-card layout matched to the supplied long-card reference. */
@media(max-width:759px){
 #card-dialog{width:calc(100% - 48px);max-width:440px;max-height:92svh;padding:16px;border-radius:26px;background:#f8faf7;overflow-y:auto}
 #card-dialog .dialog-top{min-height:44px;margin-bottom:12px}
 #card-dialog .dialog-top h2{font-size:18px;font-weight:700}
 #card-dialog #close-card{width:36px;min-height:44px;padding:8px;font-size:18px;flex-shrink:0}
 #card-dialog #close-card:focus,#card-dialog #close-card:focus-visible,#card-dialog #close-card:active{outline:0;box-shadow:none}
 #card-dialog .share-card{display:flex;flex-direction:column;align-items:center;margin:0;padding:26px 14px 24px;border-radius:22px}
 #card-dialog .share-card>.eyebrow:first-child{order:0;font-size:12px;letter-spacing:2px;margin:0 0 22px}
 #card-dialog .share-card>.eyebrow:not(:first-child){order:1;font-size:13px;letter-spacing:1px;margin:0 0 12px}
 #card-dialog .share-card>h1{order:2;font-size:28px;line-height:1.3;margin:0 0 4px}
 #card-dialog .share-card>.portrait{order:3;width:100%;height:auto;aspect-ratio:1.08;margin:0 0 14px;flex-shrink:0}
 #card-dialog .share-card .orbit{width:90%;height:96%}
 #card-dialog .share-card .orbit:after{right:-18px;top:20%;font-size:32px}
 #card-dialog .share-card .avatar-turn{width:100%;height:100%}
 #card-dialog .share-card .avatar-turn img{width:100%;height:100%;object-fit:contain}
 #card-dialog .share-card>.identity-meta{order:4;gap:14px}
 #card-dialog .share-card .type{font-size:24px;padding:7px 12px}
 #card-dialog .share-card .match{font-size:13px}
 #card-dialog .share-card .match b{font-size:20px}
 #card-dialog .share-card>.tags{order:5;width:100%;gap:4px;margin:18px 0 0}
 #card-dialog .share-card .tags span{font-size:9px;line-height:1.5;padding:4px}
 #card-dialog .share-card>.card-verdict{order:6;width:100%;font-size:17px;line-height:1.7;margin:18px 0 20px}
 #card-dialog .share-card>small{order:7;font-size:13px;line-height:1.5}
 #card-dialog>.card-note{display:none}
}
