/* MATE UI/UX overhaul — responsive typography + story motion surfaces */

/* ---------- Global typography / wrapping ---------- */
html{overflow-x:hidden;text-size-adjust:100%;-webkit-text-size-adjust:100%}
body{overflow-x:hidden}
h1,h2,h3,h4{
  text-wrap:balance;
  line-break:strict;
  word-break:auto-phrase;
  overflow-wrap:normal;
}
p,li,summary,.lead,.subcopy,.verdict-text{
  text-wrap:pretty;
  line-break:strict;
  word-break:auto-phrase;
}
.fnote span{white-space:nowrap}
.section h2,.content-page h2{max-width:22ch}
.content-page p{max-width:58ch}

/* ---------- Home: less forced wrapping, stronger section rhythm ---------- */
#home .apple-hero h1{max-width:13.5ch}
#home .home-intro h2,#home .value-stage-head h2,#home .result-tease-copy h2,#home .compat-cinematic h2,#home .home-cta h2{max-width:16ch}
#home .home-intro-inner,#home .result-tease-copy{align-items:flex-start;text-align:left}
#home .value-step h3{max-width:14ch}
#home .value-step p{max-width:38ch}

/* ---------- Result: unified story layout ---------- */
#result{--result-wide:1180px;background:#fffaf3}
#result .result-head{position:sticky;top:0;z-index:60;background:rgba(255,251,245,.82);backdrop-filter:blur(18px)}
.result-story{overflow:clip}
.result-story .shell{width:min(100%,var(--result-wide))}
.result-scene{position:relative;isolation:isolate}
.result-stage{position:relative;z-index:2}
.scene-heading h2,.advice-heading h2{margin:7px 0 10px;max-width:15ch;font-size:clamp(42px,6vw,78px);line-height:1.01;letter-spacing:-.055em}
.scene-heading>p{max-width:42ch;margin:0;color:var(--muted);font-size:14px;line-height:1.8}

/* Scene 01 */
.result-hero-scene{min-height:calc(100svh - 58px);display:grid;align-items:center;padding:54px 0 76px;background:linear-gradient(180deg,#fffaf4 0%,#f6f2ea 100%);overflow:hidden}
.result-hero-wash{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.result-hero-wash i{position:absolute;border-radius:999px;filter:blur(1px)}
.result-hero-wash i:nth-child(1){width:min(62vw,820px);height:min(62vw,820px);left:-18vw;top:-24vw;background:color-mix(in srgb,var(--charsoft),white 10%);opacity:.92}
.result-hero-wash i:nth-child(2){width:30vw;height:30vw;right:-9vw;top:18%;background:rgba(221,240,111,.24);filter:blur(32px)}
.result-hero-wash i:nth-child(3){width:38vw;height:22vw;right:16%;bottom:-10vw;background:rgba(191,220,232,.22);filter:blur(36px)}
.result-hero-stage{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);align-items:center;gap:clamp(34px,6vw,92px)}
.result-hero-visual{position:relative;min-height:620px;display:grid;align-content:center;justify-items:center}
.poster-label{font-size:10px;letter-spacing:.19em;font-weight:900;color:var(--muted)}
.result-character-stage{position:relative;width:min(48vw,570px);aspect-ratio:1;display:grid;place-items:center;margin-top:8px}
.result-character-glow{position:absolute;inset:10%;border-radius:46% 54% 58% 42%;background:var(--charsoft);transform:rotate(-6deg)}
.result-character-ring{position:absolute;inset:5%;border:1px dashed color-mix(in srgb,var(--char),transparent 56%);border-radius:50%;transform:rotate(11deg)}
.result-img{position:relative;z-index:2;width:88%;height:88%;object-fit:contain;filter:drop-shadow(0 28px 28px rgba(53,39,61,.12));transform-origin:50% 70%}
.result-popline{position:relative;z-index:3;display:inline-flex;align-items:center;gap:9px;margin-top:-12px;padding:9px 12px;background:rgba(255,255,255,.82);border:1px solid rgba(53,39,61,.05);border-radius:14px 4px 14px 4px;font-size:12px;font-weight:850;box-shadow:0 12px 26px rgba(53,39,61,.06)}
.result-popline img{width:24px;height:24px}
.result-hero-copy{max-width:520px;text-align:left}
.result-hero-copy .section-note{display:block;margin-bottom:10px}
.type-name{margin:0;max-width:10ch;font-size:clamp(52px,6.5vw,92px);line-height:.98;letter-spacing:-.065em;text-wrap:balance}
.result-hero-copy .subhero{margin:22px 0 0;padding:0 0 0 18px;border:0;border-left:3px solid var(--char);background:transparent;box-shadow:none;border-radius:0}
.result-hero-copy .subname{margin:3px 0 5px;font-size:clamp(26px,3vw,40px);line-height:1.08}
.result-hero-copy .subcopy{max-width:38ch;margin:0;color:#59525b;font-size:14px;line-height:1.75}
.result-hero-copy .verdict-text{max-width:34ch;margin:24px 0 0;font-size:clamp(19px,2vw,27px);line-height:1.45;font-weight:900}
.result-hero-copy .tags{justify-content:flex-start;margin-top:16px}
.result-hero-copy .tag{padding:6px 9px;border:1px solid color-mix(in srgb,var(--char),transparent 78%);background:color-mix(in srgb,var(--charsoft),white 32%);border-radius:999px;font-size:11px}
.result-share-hero{width:min(360px,100%);min-height:54px;margin-top:24px;border:0;border-radius:15px;background:var(--purple);color:#fff;padding:0 16px;display:flex;align-items:center;justify-content:space-between;font-family:var(--font-display);font-weight:900;box-shadow:0 6px 0 #221826}
.result-share-hero:active{transform:translateY(2px);box-shadow:0 4px 0 #221826}
.result-scroll-cue{position:absolute;left:50%;bottom:20px;display:grid;place-items:center;gap:7px;transform:translateX(-50%);color:#716973;font-size:8px;font-weight:800;letter-spacing:.17em}
.result-scroll-cue i{width:1px;height:28px;background:linear-gradient(var(--purple),transparent)}

/* compact jump nav, no giant card */
.result-jump{position:sticky;top:58px;z-index:40;display:flex;justify-content:center;gap:4px;width:min(calc(100% - 32px),520px)!important;margin:-24px auto 0;padding:5px!important;border:1px solid rgba(53,39,61,.07);border-radius:999px;background:rgba(255,252,247,.88);backdrop-filter:blur(14px);box-shadow:0 8px 24px rgba(53,39,61,.06)}
.result-jump a{flex:1;min-height:42px;display:grid;place-items:center;padding:0 15px;border:0!important;border-radius:999px;text-decoration:none;font-size:11px;font-weight:800;color:#766f78;background:transparent}
.result-jump a:before{display:none!important}
.result-jump a.active{background:var(--charsoft);color:var(--ink)}

/* Scene 02 */
.aruaru-section{margin:0!important;padding:150px 0 118px!important;background:#fffdf9;border-radius:0!important;overflow:hidden}
.result-wave{position:absolute;left:-4%;right:-4%;height:86px;pointer-events:none;background:#f2efe6;border-radius:0 0 48% 52%/0 0 100% 100%;opacity:.74}
.result-wave-top{top:-1px;transform:translateY(-48%)}
.aruaru-stage{display:grid;grid-template-columns:minmax(330px,.8fr) minmax(0,1.2fr);gap:clamp(48px,8vw,110px);align-items:start}
.aruaru-visual{position:sticky;top:128px;min-height:620px;display:grid;place-items:center}
.aruaru-blob{position:absolute;width:92%;aspect-ratio:1;border-radius:52% 48% 42% 58%;background:linear-gradient(145deg,var(--charsoft),#fff);transform:rotate(-7deg)}
.aruaru-character{position:relative;z-index:2;width:92%;filter:drop-shadow(0 26px 30px rgba(53,39,61,.1))}
.hand-note{position:absolute;right:0;bottom:12%;z-index:3;font-family:var(--font-display);font-size:12px;font-weight:900;letter-spacing:.07em;transform:rotate(-6deg);color:var(--char)}
.aruaru-content h2{margin:8px 0 12px;max-width:12ch;font-size:clamp(42px,5.8vw,72px);line-height:1.03;letter-spacing:-.055em}
.aruaru-content>.lead{max-width:42ch;margin:0 0 38px;font-size:13px;line-height:1.8}
.aru-list{display:grid;gap:0}
.aru{position:relative;min-height:150px;display:flex;align-items:center;margin:0;padding:28px 8px 28px 74px!important;border:0!important;border-bottom:1px solid rgba(53,39,61,.11)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font-family:var(--font-display);font-size:clamp(22px,3vw,38px);line-height:1.36;font-weight:900;letter-spacing:-.035em}
.aru:before{content:"0" counter(mate-aru);counter-increment:mate-aru;left:4px!important;top:50%!important;width:auto!important;height:auto!important;transform:translateY(-50%);border:0!important;border-radius:0!important;background:transparent!important;color:var(--char)!important;font-size:12px!important;letter-spacing:.08em}
.aru-list{counter-reset:mate-aru}
.result-quick{margin:44px 0 0;padding:0;border:0;background:transparent;box-shadow:none}
.result-quick-head{display:flex;gap:10px;align-items:baseline;margin-bottom:10px;padding-bottom:12px;border-bottom:1px solid rgba(53,39,61,.1)}
.result-quick-head span{font-size:10px;color:var(--muted);font-weight:800}
.result-quick-head b{font-family:var(--font-display);font-size:20px}
.quick-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
.quick-point{min-height:150px;padding:18px 18px 18px 0;border:0;border-right:1px solid rgba(53,39,61,.1);border-radius:0;background:transparent}
.quick-point+ .quick-point{padding-left:18px}
.quick-point:last-child{border-right:0}
.quick-point span{display:block;color:var(--char);font-size:9px;font-weight:850}
.quick-point b{display:block;margin-top:4px;font-family:var(--font-display);font-size:17px;line-height:1.4}
.quick-point p{margin:6px 0 0;color:#615a63;font-size:11px;line-height:1.65}
.mid-share{margin-top:60px;padding-top:22px;border-top:1px dashed rgba(53,39,61,.2);background:transparent;border-radius:0}
.mid-share>p{margin:0 0 12px;color:var(--muted);font-size:12px}

/* disclosures remain calm */
.result-detail-toggle{margin-top:28px;border:0;border-top:1px solid rgba(53,39,61,.12);border-bottom:1px solid rgba(53,39,61,.12);border-radius:0;background:transparent;box-shadow:none;overflow:visible}
.result-detail-toggle>summary{min-height:64px;list-style:none;display:grid;grid-template-columns:1fr auto;gap:2px 14px;align-items:center;padding:14px 2px;cursor:pointer}
.result-detail-toggle>summary::-webkit-details-marker{display:none}
.result-detail-toggle>summary span{font-size:9px;color:var(--muted);font-weight:800;letter-spacing:.08em}
.result-detail-toggle>summary b{font-family:var(--font-display);font-size:16px}
.result-detail-toggle>summary i{grid-column:2;grid-row:1/span 2;width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:rgba(53,39,61,.06);font-style:normal;transition:transform .2s}
.result-detail-toggle[open]>summary i{transform:rotate(45deg)}
.result-detail-toggle[open]>summary{border-bottom:1px solid rgba(53,39,61,.08)}
.result-detail-toggle .scene-block,.result-detail-toggle>.lead,.result-detail-toggle>.modes,.result-detail-toggle>.deep-read{margin:0;padding:18px 2px 24px}
.modes-section{padding:0 0 100px;background:#fffdf9}
.mode{padding:18px 0;border-bottom:1px solid rgba(53,39,61,.1)}
.hidden-trait{margin-top:28px;padding:22px 20px;border-radius:4px 28px 4px 28px;background:var(--purple);color:#fff;box-shadow:0 18px 38px rgba(53,39,61,.13)}

/* Scene 03 */
.axes-section{padding:130px 0;background:#eef6f4;overflow:hidden}
.axes-backdrop{position:absolute;inset:0;background:radial-gradient(circle at 78% 24%,rgba(255,255,255,.86),transparent 25%),radial-gradient(circle at 8% 84%,rgba(221,240,111,.18),transparent 22%);pointer-events:none}
.axes-stage{display:grid;gap:64px}
.axes-visual{display:grid;grid-template-columns:minmax(360px,.9fr) minmax(0,1.1fr);gap:clamp(44px,7vw,100px);align-items:center}
.radar-panel{position:relative;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.radar-panel h3{margin:5px 0 10px;font-size:24px}
.radar-wrap{position:relative}
.radar-svg{display:block;width:100%;max-width:480px;margin:auto;overflow:visible}
.radar-svg .shape-fill{fill:color-mix(in srgb,var(--char),white 68%);fill-opacity:.72}
.radar-svg .shape-line{stroke:var(--char);stroke-width:3;fill:none}
.radar-svg .dot{fill:var(--char);stroke:#fff;stroke-width:3}
.axes{display:grid;gap:24px}
.axes>div{padding:0 0 18px;border-bottom:1px solid rgba(53,39,61,.12)}
.axis-head{display:grid;grid-template-columns:1fr auto;align-items:end;gap:12px}
.axis-name{font-family:var(--font-display);font-size:16px;font-weight:900}
.axis-score{display:flex;align-items:center;gap:9px}
.axis-score span{padding:3px 7px;border-radius:999px;background:rgba(255,255,255,.75);font-size:10px;font-weight:850}
.axis-score b{font-family:var(--font-display);font-size:24px;line-height:1}
.bar{position:relative;height:8px;margin:11px 0 6px;overflow:visible;background:rgba(53,39,61,.12);border-radius:999px}
.bar i{display:block;height:100%;border-radius:inherit;background:var(--char);transform-origin:left center}
.axis-dot{position:absolute;top:50%;width:12px;height:12px;border:3px solid #fff;border-radius:50%;background:var(--char);transform:translate(-50%,-50%);box-shadow:0 2px 5px rgba(53,39,61,.16)}
.ends{display:flex;justify-content:space-between;color:var(--muted);font-size:10px}

/* Scene 04 */
.compat-section{padding:136px 0 124px;background:#fffaf3}
.compat-stage{display:grid;gap:54px}
.compat-good{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:end;min-height:470px}
.compat-good .compat-card{position:relative;display:grid!important;grid-template-columns:1fr!important;align-content:end;min-height:390px;margin:0!important;padding:28px 22px!important;border:0!important;border-radius:34px 10px 34px 10px!important;background:color-mix(in srgb,var(--tile,#fff),white 32%)!important;text-align:left!important;text-decoration:none;box-shadow:0 20px 48px rgba(53,39,61,.08);overflow:hidden!important}
.compat-good .compat-card:nth-child(1){min-height:465px;transform:translateY(-18px);z-index:2}
.compat-good .compat-card:nth-child(2){min-height:390px}
.compat-good .compat-card:nth-child(3){min-height:420px}
.compat-good .compat-motif{position:absolute;right:-30px;top:-30px;width:150px!important;height:150px!important;opacity:.13}
.compat-good .pair-stack{width:100%;height:190px;margin:0 0 10px!important}
.compat-good .pair-self{width:120px!important;height:120px!important;left:0;bottom:0;opacity:.68}
.compat-good .pair-other{width:170px!important;height:170px!important;right:2%;top:0}
.compat-good .rank{width:auto;height:auto;display:block;margin-bottom:5px;background:transparent;color:var(--coral);font-size:11px;text-align:left}
.compat-good .relation-label{font-size:10px;color:var(--muted);font-weight:800}
.compat-good .cname{margin-top:4px;font-family:var(--font-display);font-size:24px;line-height:1.15}
.compat-good .reason{margin-top:8px;font-size:12px;line-height:1.65;color:#605963}
.compat-good .arrow{position:absolute;right:18px;bottom:17px}
.mismatch-disclosure{margin-top:18px}
.compat-bad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:6px 0 16px}
.compat-bad .compat-card{display:grid;grid-template-columns:68px 1fr 18px;gap:12px;align-items:center;padding:14px 12px;border-bottom:1px solid rgba(53,39,61,.1);text-align:left;text-decoration:none;background:transparent!important;border-radius:0!important;box-shadow:none!important}
.compat-bad .pair-stack{width:68px;height:66px;margin:0}
.compat-bad .pair-self{width:45px!important;height:45px!important}.compat-bad .pair-other{width:60px!important;height:60px!important}

/* Advice */
.advice-section{padding:120px 0;background:#f1ebf5;overflow:hidden}
.advice-stage{display:grid;grid-template-columns:.72fr 1.28fr;gap:70px;align-items:start}
.advice-heading{position:sticky;top:130px}
.advice-list{display:grid;counter-reset:advice}
.advice-item{counter-increment:advice;display:grid;grid-template-columns:56px 1fr;gap:20px;padding:30px 0;border-top:1px solid rgba(53,39,61,.13)}
.advice-item:last-child{border-bottom:1px solid rgba(53,39,61,.13)}
.advice-item:before{content:"0" counter(advice);color:var(--char);font-size:12px;font-weight:900;letter-spacing:.08em}
.advice-item h3{margin:0 0 8px;font-size:clamp(24px,3vw,38px);line-height:1.2}
.advice-item p{margin:0;max-width:46ch;color:#5d5660;font-size:13px;line-height:1.8}
.advice-doodle{position:absolute;left:2%;bottom:-14px;font-family:var(--font-display);font-size:clamp(80px,16vw,220px);font-weight:900;color:rgba(255,255,255,.35);transform:rotate(-6deg);pointer-events:none}

/* Save: one purposeful utility card */
.result-save-panel{margin:80px auto!important;padding:30px!important;border:1px solid rgba(53,39,61,.07)!important;border-radius:26px 7px 26px 7px!important;background:linear-gradient(135deg,rgba(221,240,111,.22),rgba(255,255,255,.88))!important;box-shadow:0 18px 46px rgba(53,39,61,.06)!important}
.result-save-panel h2{margin:6px 0 8px;font-size:28px}

/* Final scene */
.result-final{position:relative;min-height:920px;margin:0!important;padding:120px 0 90px!important;overflow:hidden;border:0!important;background:linear-gradient(180deg,#2f2634 0%,#49374e 56%,#6f5a78 100%);color:#fff;text-align:left!important;isolation:isolate}
.final-sky{position:absolute;inset:0;z-index:0;overflow:hidden}
.final-sky:before{content:"";position:absolute;width:620px;height:620px;right:-140px;top:-220px;border-radius:50%;background:radial-gradient(circle,rgba(255,241,184,.22),transparent 65%)}
.final-sky i{position:absolute;bottom:0;border-radius:18px 18px 0 0;background:rgba(255,255,255,.055)}
.final-sky i:nth-child(1){left:2%;width:22%;height:31%}.final-sky i:nth-child(2){left:25%;width:28%;height:22%}.final-sky i:nth-child(3){right:4%;width:35%;height:36%}
.final-wave{position:absolute;left:-8%;right:-8%;bottom:-90px;height:260px;z-index:1;background:#fffaf3;border-radius:50% 50% 0 0/36% 36% 0 0;transform:rotate(-2deg)}
.final-share-art{position:absolute;right:4%;bottom:4%;z-index:2;width:min(48vw,620px);height:64%;pointer-events:none}
.final-share-art span{position:absolute;inset:12% 5% 7%;border-radius:46% 54% 58% 42%;background:color-mix(in srgb,var(--charsoft),transparent 14%);opacity:.92}
.final-share-art img{position:absolute;z-index:2;right:0;bottom:0;width:94%;height:94%;object-fit:contain;filter:drop-shadow(0 28px 32px rgba(15,9,18,.22))}
.final-share-inner{position:relative;z-index:3;display:grid;align-content:start;justify-items:start;width:min(100%,1180px)!important}
.final-share-copy{width:min(54%,620px)}
.final-share-copy .section-note{color:#d9cddd}
.final-share h2{margin:8px 0 12px;max-width:8ch;font-size:clamp(58px,8vw,104px);line-height:.94;letter-spacing:-.065em;color:#fff}
.final-share-copy p{max-width:35ch;margin:0;color:#e8dfea;font-size:15px;line-height:1.75}
.share-preview{width:min(48%,520px);margin-top:30px;padding:16px 0;border-top:1px solid rgba(255,255,255,.22);border-bottom:1px solid rgba(255,255,255,.22);background:transparent!important;border-radius:0!important;color:#fff}
.share-preview small,.share-preview span{display:block;color:#d7cdd9;font-size:10px}.share-preview b{display:block;margin:4px 0;font-size:15px}
.final-share .share-grid{width:min(48%,520px);grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:20px}
.final-share .share-choice{min-height:54px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);color:#fff;box-shadow:none}
.final-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:min(48%,520px);margin-top:12px}
.final-actions .save-image,.final-friend-start{min-height:50px;display:grid;place-items:center;margin:0;border:0;border-radius:13px;background:#fff;color:var(--purple);font-weight:900;text-decoration:none}
.final-friend-start{background:var(--lime);color:var(--purple)}
.final-actions .retry-action{grid-column:1/-1;width:max-content;min-height:44px;margin:2px 0 0;padding:0;border:0;background:transparent;color:#e7dfe9;text-decoration:underline;text-underline-offset:4px}
.final-share .share-privacy{width:min(48%,520px);margin-top:14px;color:#cfc5d1;font-size:9px;line-height:1.6}

/* ---------- Diagnosis: stable vertical rhythm ---------- */
#quiz .qbody h2{min-height:6.2em;display:flex;align-items:center;margin-block:0;text-wrap:balance}
#quiz .answers{min-height:310px;align-content:start}
#quiz .answer{transform-origin:center;transition:transform .15s ease,background .15s ease,border-color .15s ease}
#quiz .answer:active{transform:scale(.985)}
#quiz .qbody.question-enter-next{animation:questionNext .34s cubic-bezier(.2,.8,.2,1)}
#quiz .qbody.question-enter-prev{animation:questionPrev .34s cubic-bezier(.2,.8,.2,1)}
@keyframes questionNext{from{opacity:0;transform:translateX(28px)}to{opacity:1;transform:none}}
@keyframes questionPrev{from{opacity:0;transform:translateX(-28px)}to{opacity:1;transform:none}}

/* ---------- Character archive: alternating, character-led ---------- */
.character-archive-hero h1,.content-hero h1{max-width:16ch;text-wrap:balance}
@media(min-width:760px){
  .character-wall{display:grid!important;grid-template-columns:1fr!important;gap:30px!important;padding-bottom:44px}
  .character-tile,.character-tile:nth-child(even){width:min(94%,980px);min-height:330px!important;display:grid!important;grid-template-columns:48% 1fr!important;gap:24px;padding:28px 34px!important;border:0!important;border-radius:38px 10px 38px 10px!important;background:linear-gradient(135deg,var(--tile,#fff),#fffdf9)!important;box-shadow:0 16px 42px rgba(53,39,61,.055)!important}
  .character-tile:nth-child(even){margin-left:auto;grid-template-columns:1fr 48%!important;border-radius:10px 38px 10px 38px!important}
  .character-tile:nth-child(even) .tile-art{order:2!important}.character-tile:nth-child(even) .tile-copy{order:1!important}
  .character-tile:nth-child(3n){width:min(88%,900px)}
  .character-tile .tile-art img{width:min(100%,300px);margin:auto;transition:transform .3s ease}
  .character-tile:hover .tile-art img{transform:translateY(-6px) rotate(-1deg)}
  .character-tile .tile-copy{align-self:center}.character-tile h2{font-size:clamp(28px,3.8vw,46px)}
}

/* ---------- Content / About / FAQ / legal ---------- */
.content-hero{min-height:min(72svh,720px);display:grid;align-content:center;padding-block:72px}
.content-hero h1{font-size:clamp(44px,7vw,80px);line-height:1.02;letter-spacing:-.055em}
.content-hero>p{max-width:52ch;font-size:15px;line-height:1.9}
.mate-scenes .character-detail-grid{gap:0!important;border-top:1px solid rgba(53,39,61,.12);border-bottom:1px solid rgba(53,39,61,.12)}
.mate-scenes .story-panel{padding:24px 20px!important;border:0!important;border-right:1px solid rgba(53,39,61,.1);border-radius:0!important;background:transparent!important;box-shadow:none!important}
.mate-scenes .story-panel:last-child{border-right:0}
.axis-explainer>div{border-radius:0!important;border-bottom:1px solid rgba(53,39,61,.1);background:transparent!important;box-shadow:none!important}
.faq-group{max-width:760px;margin-inline:auto;padding-block:42px}
.faq-group h2{margin-bottom:16px;font-size:clamp(28px,4vw,40px)}
.faq-group details{border:0!important;border-bottom:1px solid rgba(53,39,61,.13)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.faq-group summary{min-height:64px;padding:16px 2px!important;font-size:15px;line-height:1.55}
.faq-group details p{padding:0 2px 20px!important;max-width:58ch;font-size:14px;line-height:1.9}
.legal-page{max-width:760px}
.content-page{padding-bottom:90px}
.content-page>.section{padding-block:44px;border-top:1px solid rgba(53,39,61,.09)}

/* ---------- Responsive ---------- */
@media(max-width:767px){
  .scene-heading h2,.advice-heading h2{font-size:clamp(36px,10.5vw,48px)}
  .result-hero-scene{min-height:auto;padding:32px 0 86px}
  .result-hero-stage{grid-template-columns:1fr;gap:4px}
  .result-hero-visual{min-height:390px;order:0}
  .result-character-stage{width:min(88vw,390px);margin-top:4px}
  .result-img{width:92%;height:92%}
  .result-popline{margin-top:-18px}
  .result-hero-copy{order:1;max-width:100%;text-align:left;padding-top:18px}
  .type-name{max-width:100%;font-size:clamp(44px,13vw,64px)}
  .result-hero-copy .subhero{margin-top:18px;padding-left:14px}
  .result-hero-copy .subname{font-size:clamp(25px,8vw,34px)}
  .result-hero-copy .subcopy{font-size:13px}
  .result-hero-copy .verdict-text{font-size:20px;margin-top:19px}
  .result-share-hero{width:100%}
  .result-scroll-cue{display:none}
  .result-jump{top:58px;width:calc(100% - 32px)!important;margin:-22px auto 0;padding:4px!important}
  .result-jump a{min-height:40px;padding:0 8px}

  .aruaru-section{padding:104px 0 78px!important}
  .aruaru-stage{grid-template-columns:1fr;gap:24px}
  .aruaru-visual{position:relative;top:auto;min-height:330px;margin-bottom:4px}
  .aruaru-blob{width:min(84vw,350px)}
  .aruaru-character{width:min(82vw,340px)}
  .hand-note{right:4%;bottom:4%;font-size:10px}
  .aruaru-content h2{font-size:clamp(38px,11vw,50px)}
  .aru{min-height:116px;padding:22px 0 22px 54px!important;font-size:clamp(21px,6vw,29px)}
  .quick-summary{grid-template-columns:1fr}
  .quick-point,.quick-point+ .quick-point{min-height:0;padding:15px 0;border-right:0;border-bottom:1px solid rgba(53,39,61,.09)}
  .quick-point:last-child{border-bottom:0}
  .modes-section{padding-bottom:70px}

  .axes-section{padding:92px 0}
  .axes-stage{gap:40px}
  .axes-visual{grid-template-columns:1fr;gap:34px}
  .radar-svg{max-width:340px}
  .axis-score b{font-size:21px}

  .compat-section{padding:92px 0}
  .compat-stage{gap:36px}
  .compat-good{grid-template-columns:1fr;gap:16px;min-height:0}
  .compat-good .compat-card,.compat-good .compat-card:nth-child(n){min-height:265px!important;display:grid!important;grid-template-columns:120px 1fr!important;align-items:center!important;transform:none!important;padding:20px!important;border-radius:26px 8px 26px 8px!important}
  .compat-good .pair-stack{width:120px;height:120px;margin:0!important}
  .compat-good .pair-self{width:72px!important;height:72px!important}.compat-good .pair-other{width:108px!important;height:108px!important}
  .compat-good .cname{font-size:21px}
  .compat-good .compat-motif{width:100px!important;height:100px!important}
  .compat-bad{grid-template-columns:1fr}

  .advice-section{padding:92px 0 108px}
  .advice-stage{grid-template-columns:1fr;gap:24px}
  .advice-heading{position:relative;top:auto}
  .advice-list{position:relative;z-index:2}
  .advice-item{grid-template-columns:42px 1fr;gap:12px;padding:24px 0}
  .advice-item h3{font-size:25px}

  .result-save-panel{width:calc(100% - 32px)!important;margin:58px auto!important;padding:23px 20px!important}
  .result-final{min-height:980px;padding:82px 0 70px!important}
  .final-share-copy,.share-preview,.final-share .share-grid,.final-actions,.final-share .share-privacy{width:100%;max-width:none}
  .final-share h2{font-size:clamp(54px,15vw,74px)}
  .final-share-art{right:-18%;bottom:1%;width:92vw;height:42%;opacity:.95}
  .final-wave{bottom:-120px;height:240px}
  .final-share .share-grid{grid-template-columns:repeat(2,1fr)}
  .final-actions{grid-template-columns:1fr;gap:9px}
  .final-actions .retry-action{grid-column:auto}
  .final-share .share-privacy{position:relative;z-index:4}

  #quiz .qbody h2{min-height:5.8em}
  #quiz .answers{min-height:300px}
  .content-hero{min-height:520px;padding-block:58px}
  .content-hero h1,.character-archive-hero h1{font-size:clamp(40px,12vw,54px)}
  .mate-scenes .character-detail-grid{display:grid;grid-template-columns:1fr!important}
  .mate-scenes .story-panel{border-right:0;border-bottom:1px solid rgba(53,39,61,.1)}
  .mate-scenes .story-panel:last-child{border-bottom:0}
  .character-tile,.character-tile:nth-child(even){border-radius:24px 7px 24px 7px!important}
}

@media(max-width:430px){
  :root{--side:18px}
  #home .apple-hero h1{max-width:12.5ch}
  #home .home-intro h2,#home .value-stage-head h2,#home .result-tease-copy h2,#home .compat-cinematic h2,#home .home-cta h2{max-width:14ch}
  .result-hero-scene{padding-top:24px}
  .result-hero-visual{min-height:360px}
  .result-character-stage{width:min(86vw,360px)}
  .result-hero-copy .tags{gap:5px}
  .result-hero-copy .tag{font-size:10px}
  .aruaru-content>.lead,.scene-heading>p{font-size:13px}
  .result-final{min-height:940px}
}
@media(max-width:350px){
  :root{--side:16px}
  .type-name{font-size:42px}
  .result-hero-visual{min-height:320px}
  .result-character-stage{width:300px}
  .aru{padding-left:48px!important;font-size:21px}
  .compat-good .compat-card,.compat-good .compat-card:nth-child(n){grid-template-columns:98px 1fr!important;padding:16px!important}
  .compat-good .pair-stack{width:98px;height:105px}.compat-good .pair-other{width:95px!important;height:95px!important}
  .final-share .share-grid{grid-template-columns:1fr 1fr}
}

@media(prefers-reduced-motion:reduce){
  .result-scroll-cue,.hand-note{animation:none!important}
  .result-img,.aruaru-character,.compat-card,.advice-item,.final-share-art,.final-sky,.result-hero-wash i{transform:none!important;opacity:1!important}
  #quiz .qbody.question-enter-next,#quiz .qbody.question-enter-prev{animation:none!important}
}
@media(min-width:768px){
  #home .highlight-rail{overflow:visible;scroll-snap-type:none;touch-action:auto}
  .compat-good .compat-card:nth-child(1){grid-column:2;grid-row:1}
  .compat-good .compat-card:nth-child(2){grid-column:1;grid-row:1}
  .compat-good .compat-card:nth-child(3){grid-column:3;grid-row:1}
}
@media(max-width:767px){
  .compat-good .compat-card:nth-child(n){grid-column:auto;grid-row:auto}
}
/* Result reveal: complete in ~2 seconds on both desktop and mobile */
.reveal .ghost{animation-duration:1.45s!important}
.reveal .ghost-stage:before{animation-duration:1.65s!important}
.reveal .reveal-final{animation:finalReveal .42s .98s forwards!important}
.reveal .reveal-name{animation:revealName .48s 1.24s forwards!important}
.quiz-chapter.chapter-pulse{animation:chapterPulse .62s ease}
@keyframes chapterPulse{0%,100%{transform:none}45%{transform:translateY(-2px);color:var(--char)}}

/* v21: mobile reliability, graceful motion fallback, Japanese wrapping */
#errorBox[hidden],#toast:not(.on){display:none!important}
.mate-motion-fallback{opacity:.01;transform:translateY(18px);transition:opacity .28s ease var(--mate-delay,0ms),transform .28s ease var(--mate-delay,0ms)}
.mate-motion-fallback.is-motion-visible{opacity:1;transform:none}
@media(max-width:767px){
  #home .apple-hero h1{max-width:none;font-size:clamp(42px,11.5vw,56px);line-height:1.08;word-break:keep-all;overflow-wrap:normal}
  #home .hero-question,#home .hero-copy{word-break:keep-all;overflow-wrap:break-word}
  #home .hero-question{font-size:clamp(20px,5.4vw,25px);line-height:1.55}
}
@media(prefers-reduced-motion:reduce){
  .mate-motion-fallback{transition-duration:.18s!important;transform:translateY(8px)}
}


/* v22: concise mobile hero, compact type cards, reliable motion spacing */
@media(max-width:767px){
  #home .apple-hero{overflow:hidden}
  #home .apple-hero h1{max-width:100%;font-size:clamp(48px,13vw,62px);line-height:1.04;white-space:normal;word-break:keep-all;overflow-wrap:normal}
  #home .hero-copy-stack{max-width:100%;min-width:0}
  #home .hero-question{max-width:18ch;font-size:clamp(19px,5vw,23px)}
  #home .hero-copy{max-width:30ch;font-size:13px;line-height:1.7}
  #home .home-intro{padding-bottom:22px}
  #home .home-intro h2{font-size:clamp(34px,9vw,44px);line-height:1.12}
  #home .mate-highlights{padding-bottom:34px}
  #home .highlight-pin{min-height:auto!important}
  #home .highlight-rail{gap:14px;padding:0 var(--side) 20px!important}
  #home .highlight-card{flex:0 0:min(64vw,280px)!important;min-height:460px!important;height:460px!important;border-radius:24px 8px 24px 8px!important}
  #home .highlight-card-copy{padding:24px 20px!important}
  #home .highlight-card-copy h3{font-size:clamp(27px,7.5vw,34px)!important}
  #home .highlight-card .character{width:92%!important;max-width:260px!important}
  #home .compat-scene{min-height:380px;overflow:visible}
  #home .compat-left,#home .compat-right{width:min(43vw,190px)!important}
  #home .compat-left{left:4%!important}
  #home .compat-right{right:4%!important}
  #home .compat-mark{z-index:3;width:112px;height:112px}
  #home .compat-link{margin-top:28px}
  #home .apple-final-cta{overflow:hidden}
  #home .apple-final-cta .home-cta-inner{will-change:transform,opacity}
  #home .final-friends img{will-change:transform,opacity}
}


/* v23: hard mobile clipping fix + independent final CTA motion */
@media(max-width:767px){
  #home .apple-hero .shell{width:100%;padding-left:22px;padding-right:22px;overflow:visible}
  #home .hero-copy-stack{width:100%;max-width:100%;overflow:visible}
  #home .apple-hero h1{
    width:100%;max-width:100%;margin-right:0;
    font-size:clamp(34px,9.2vw,42px);line-height:1.08;
    letter-spacing:-.045em;white-space:normal;word-break:keep-all;overflow-wrap:normal;
  }
  #home .hero-question{font-size:clamp(18px,4.8vw,21px);max-width:100%;word-break:keep-all}
  #home .hero-copy{max-width:100%}

  /* This motion does not depend on GSAP/ScrollTrigger. */
  #home .apple-final-cta .home-cta-inner>div:not(.final-friends),
  #home .apple-final-cta .home-cta-button{
    opacity:.01;transform:translateY(28px);
    transition:opacity .58s ease,transform .58s cubic-bezier(.2,.8,.2,1);
  }
  #home .apple-final-cta .final-friends img{
    opacity:.01;transform:translateY(74px) scale(.86);
    transition:opacity .52s ease,transform .68s cubic-bezier(.2,.9,.25,1.12);
  }
  #home .apple-final-cta.final-motion-visible .home-cta-inner>div:not(.final-friends),
  #home .apple-final-cta.final-motion-visible .home-cta-button{opacity:1;transform:none}
  #home .apple-final-cta.final-motion-visible .final-friends img{opacity:1;transform:none}
  #home .apple-final-cta.final-motion-visible .final-friends img:nth-child(1){transition-delay:.04s}
  #home .apple-final-cta.final-motion-visible .final-friends img:nth-child(2){transition-delay:.10s}
  #home .apple-final-cta.final-motion-visible .final-friends img:nth-child(3){transition-delay:.16s}
  #home .apple-final-cta.final-motion-visible .final-friends img:nth-child(4){transition-delay:.22s}
  #home .apple-final-cta.final-motion-visible .final-friends img:nth-child(5){transition-delay:.28s}
}
@media(prefers-reduced-motion:reduce) and (max-width:767px){
  #home .apple-final-cta .home-cta-inner>div:not(.final-friends),
  #home .apple-final-cta .home-cta-button,
  #home .apple-final-cta .final-friends img{transition-duration:.2s!important;transform:translateY(6px)}
  #home .apple-final-cta.final-motion-visible .home-cta-inner>div:not(.final-friends),
  #home .apple-final-cta.final-motion-visible .home-cta-button,
  #home .apple-final-cta.final-motion-visible .final-friends img{transform:none}
}


/* v24: denser mobile home + compact compatibility TOP3 */
@media(max-width:767px){
  /* Home type cards: roughly half the previous visual footprint */
  #home .home-intro{padding:48px 0 14px}
  #home .home-intro h2{font-size:clamp(31px,8vw,38px);line-height:1.08}
  #home .home-intro p{margin-top:10px}
  #home .mate-highlights{padding:4px 0 34px}
  #home .highlight-rail{gap:10px;padding:0 18px 12px!important}
  #home .highlight-card{
    flex:0 0:min(46vw,190px)!important;
    width:min(46vw,190px)!important;
    height:270px!important;min-height:270px!important;
    border-radius:18px 6px 18px 6px!important;
  }
  #home .highlight-card-copy{left:0!important;top:0!important;width:100%!important;padding:16px 13px!important}
  #home .highlight-card-index{font-size:9px!important}
  #home .highlight-card-copy h3{font-size:clamp(18px,5vw,23px)!important;line-height:1.05;margin-top:7px!important}
  #home .highlight-card-copy p{font-size:9px!important;line-height:1.45;max-width:100%!important;margin-top:8px!important}
  #home .highlight-card-copy a{font-size:9px!important;margin-top:10px!important}
  #home .highlight-card img.character{width:78%!important;max-width:150px!important;right:-3%!important;bottom:-4%!important}

  /* Compatibility scene: remove dead air */
  #home .compat-cinematic{padding:58px 0 48px}
  #home .compat-cinematic h2{font-size:clamp(34px,9vw,42px);line-height:1.08;margin-bottom:0}
  #home .compat-scene{min-height:255px!important;height:255px;margin-top:6px}
  #home .compat-scene>img{width:min(39vw,165px)!important}
  #home .compat-mark{width:82px;height:82px}
  #home .compat-mark b{width:62px;height:62px;font-size:31px}
  #home .compat-mark span{font-size:10px;white-space:nowrap}
  #home .compat-link{margin-top:8px!important}

  /* Final CTA: tighten the large empty middle while keeping the entrance */
  #home .apple-final-cta{padding-top:48px}
  #home .home-cta-inner{min-height:510px!important;padding-top:18px!important;align-content:start}
  #home .home-cta h2{font-size:clamp(48px,13vw,62px);line-height:1.02}
  #home .home-cta-button{margin-top:22px}
  #home .final-friends{height:220px!important;bottom:-10px!important;width:128vw!important}

  /* Result compatibility: all 3 rankings visible together */
  #result .compat-section{padding:72px 0 66px}
  #result .compat-stage{gap:24px}
  #result .compat-heading h2{font-size:clamp(31px,8vw,38px);line-height:1.1}
  #result .compat-good{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;min-height:0!important;align-items:stretch!important;
  }
  #result .compat-good .compat-card,
  #result .compat-good .compat-card:nth-child(1),
  #result .compat-good .compat-card:nth-child(2),
  #result .compat-good .compat-card:nth-child(3){
    min-height:0!important;height:auto!important;transform:none!important;
    padding:10px 8px 12px!important;border-radius:16px 5px 16px 5px!important;
    align-content:start!important;
  }
  #result .compat-good .compat-motif{width:54px!important;height:54px!important;right:-12px;top:-12px}
  #result .compat-good .pair-stack{height:76px!important;margin:0 0 5px!important}
  #result .compat-good .pair-self{width:48px!important;height:48px!important}
  #result .compat-good .pair-other{width:72px!important;height:72px!important}
  #result .compat-good .rank{font-size:9px!important;margin:2px 0!important}
  #result .compat-good .relation-label{font-size:8px!important;line-height:1.2}
  #result .compat-good .cname{font-size:clamp(14px,3.9vw,17px)!important;line-height:1.12;margin-top:3px!important}
  #result .compat-good .reason{
    display:block!important;margin-top:6px!important;font-size:9px!important;line-height:1.45!important;
    display:-webkit-box!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
  }
  #result .compat-good .arrow{display:none!important}
}


/* v25: compact final CTA to match approved mobile reference */
@media(max-width:767px){
  #home .apple-final-cta{
    min-height:auto!important;
    padding:42px 0 0!important;
  }
  #home .apple-final-cta .home-cta-inner{
    min-height:0!important;
    height:auto!important;
    padding:0 0 0!important;
    display:flex!important;
    flex-direction:column;
  }
  #home .apple-final-cta .home-cta-inner>div:not(.final-friends){
    padding:0 22px;
  }
  #home .apple-final-cta .home-cta h2,
  #home .apple-final-cta h2{
    margin-top:10px!important;
    font-size:clamp(48px,13vw,62px)!important;
    line-height:1.02!important;
  }
  #home .apple-final-cta .home-cta-button{
    width:calc(100% - 44px)!important;
    margin:24px 22px 0!important;
  }
  #home .apple-final-cta .final-friends{
    position:relative!important;
    left:50%!important;bottom:auto!important;
    transform:translateX(-50%)!important;
    width:118vw!important;height:190px!important;
    margin-top:34px!important;
    overflow:visible!important;
  }
  #home .apple-final-cta .final-friends img{
    bottom:-2px!important;
  }
}


/* v26: approved compact final mobile composition */
@media(max-width:767px){
  #home .apple-final-cta{
    padding:30px 0 0!important;
    min-height:0!important;
  }
  #home .apple-final-cta .home-cta-inner{
    min-height:0!important;
    height:auto!important;
    padding:0!important;
    gap:0!important;
  }
  #home .apple-final-cta .eyebrow{margin-bottom:8px!important}
  #home .apple-final-cta h2{
    margin:0!important;
    font-size:clamp(46px,12.5vw,58px)!important;
    line-height:1!important;
  }
  #home .apple-final-cta .home-cta-inner>div:not(.final-friends) p{
    margin-top:12px!important;
  }
  #home .apple-final-cta .home-cta-button{
    margin:22px 22px 0!important;
    min-height:72px!important;
  }
  #home .apple-final-cta .final-friends{
    position:relative!important;
    left:50%!important;
    bottom:auto!important;
    transform:translateX(-50%)!important;
    width:116vw!important;
    height:176px!important;
    margin:22px 0 0!important;
    overflow:visible!important;
  }
  #home .apple-final-cta .final-friends img{
    bottom:-1px!important;
    max-height:176px!important;
  }
  /* Make the mascot row meet the footer with no dead-air band. */
  #home .apple-final-cta + .site-footer,
  #home .apple-final-cta + footer{margin-top:0!important}
}


/* v27: match the approved final-section reference */
@media(max-width:767px){
  #home .compat-cinematic{padding-bottom:24px!important}
  #home .apple-final-cta{
    padding:44px 0 0!important;
    background:linear-gradient(180deg,#f8f0f0 0%,#f4edf5 100%)!important;
  }
  #home .apple-final-cta .home-cta-inner{
    width:100%!important;max-width:none!important;padding:0!important;
  }
  #home .apple-final-cta .home-cta-inner>div:not(.final-friends){
    padding:0 28px!important;text-align:center;
  }
  #home .apple-final-cta .eyebrow{margin-bottom:16px!important}
  #home .apple-final-cta h2{
    max-width:none!important;
    font-size:clamp(50px,13.4vw,62px)!important;
    line-height:.98!important;letter-spacing:-.045em!important;
  }
  #home .apple-final-cta .home-cta-inner>div:not(.final-friends) p{
    margin-top:16px!important;font-size:14px!important;line-height:1.5!important;
  }
  #home .apple-final-cta .home-cta-button{
    width:calc(100% - 40px)!important;
    margin:28px 20px 0!important;
    min-height:76px!important;
    border-radius:24px!important;
  }
  #home .apple-final-cta .final-friends{
    width:108vw!important;height:166px!important;
    margin-top:22px!important;
  }
  #home .apple-final-cta .final-friends img{max-height:166px!important;bottom:-1px!important}
  #home .apple-final-cta + .footer{
    margin-top:0!important;
    padding:30px 0 28px!important;
    min-height:0!important;
  }
  #home .apple-final-cta + .footer .shell{padding-left:28px!important;padding-right:28px!important}
  #home .apple-final-cta + .footer .footer-top{
    display:grid!important;grid-template-columns:1fr!important;gap:22px!important;
  }
  #home .apple-final-cta + .footer .footer-top>div{
    display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;
  }
  #home .apple-final-cta + .footer .flogo{font-size:30px!important;letter-spacing:.08em}
  #home .apple-final-cta + .footer .fcopy{
    display:block!important;margin:0!important;font-size:12px!important;text-align:right!important;
  }
  #home .apple-final-cta + .footer .footer-brandline{display:none!important}
  #home .apple-final-cta + .footer nav{
    display:grid!important;grid-template-columns:repeat(5,auto)!important;
    justify-content:space-between!important;gap:8px!important;
  }
  #home .apple-final-cta + .footer nav a{font-size:11px!important}
  #home .apple-final-cta + .footer .fnote{
    margin-top:22px!important;padding-top:20px!important;
    font-size:9px!important;line-height:1.5!important;
    display:flex!important;justify-content:space-between!important;gap:10px!important;
  }
}


/* v28: compact the three approved mobile sections to ~2/3 scale */
@media(max-width:767px){
  /* WHAT MATE SHOWS YOU */
  #home .value-cinematic{padding:46px 0 48px!important;min-height:0!important}
  #home .value-cinematic .section-heading{margin-bottom:18px!important}
  #home .value-cinematic .section-heading h2{font-size:clamp(34px,8.8vw,42px)!important;line-height:1.05!important}
  #home .value-steps{gap:0!important}
  #home .value-step{padding:18px 0!important;min-height:0!important}
  #home .value-step .step-no{font-size:12px!important}
  #home .value-step h3{font-size:clamp(25px,6.5vw,31px)!important;line-height:1.1!important}
  #home .value-step p{font-size:12px!important;line-height:1.55!important;margin-top:8px!important}

  /* YOUR RESULT preview */
  #home .result-preview{padding:52px 0 50px!important;min-height:0!important}
  #home .result-preview .section-heading{margin-bottom:24px!important}
  #home .result-preview .section-heading h2{font-size:clamp(35px,9vw,43px)!important;line-height:1.05!important}
  #home .result-preview .section-heading p{font-size:12px!important;line-height:1.6!important;margin-top:12px!important}
  #home .result-phone{
    width:min(78vw,330px)!important;
    min-height:0!important;height:auto!important;
    padding:22px 18px 18px!important;
    border-width:7px!important;border-radius:34px!important;
    margin:0 auto!important;
  }
  #home .result-phone .phone-brand{font-size:17px!important}
  #home .result-phone .phone-character{width:54%!important;max-width:150px!important;margin:8px auto 2px!important}
  #home .result-phone h3{font-size:clamp(23px,6vw,29px)!important;line-height:1.05!important}
  #home .result-phone .phone-subtype{font-size:10px!important;padding:6px 10px!important;margin-top:8px!important}
  #home .result-phone .phone-bars{margin-top:14px!important;gap:7px!important}
  #home .result-phone .phone-bars span{height:7px!important}
  #home .result-phone .phone-link{min-height:42px!important;margin-top:15px!important;font-size:10px!important}

  /* COMPATIBILITY */
  #home .compat-cinematic{padding:48px 0 42px!important;min-height:0!important}
  #home .compat-cinematic .section-heading{margin-bottom:4px!important}
  #home .compat-cinematic h2{font-size:clamp(32px,8.3vw,39px)!important;line-height:1.05!important}
  #home .compat-scene{height:210px!important;min-height:210px!important;margin-top:0!important}
  #home .compat-scene>img{width:min(32vw,135px)!important}
  #home .compat-left{left:10%!important}
  #home .compat-right{right:10%!important}
  #home .compat-mark{width:68px!important;height:68px!important}
  #home .compat-mark b{width:50px!important;height:50px!important;font-size:25px!important}
  #home .compat-mark span{font-size:9px!important;top:calc(100% + 6px)!important}
  #home .compat-link{margin-top:4px!important;font-size:12px!important}

  /* Keep transitions proportional to the smaller composition */
  #home .result-phone,
  #home .compat-left,
  #home .compat-right,
  #home .compat-mark{transform-origin:center center}
}


/* v29: final mobile bottom section matched to supplied reference */
@media(max-width:767px){
  #home .apple-final-cta{
    padding:38px 0 0!important;
    background:linear-gradient(180deg,#faf2f2 0%,#f5eef6 100%)!important;
  }
  #home .apple-final-cta .eyebrow{margin:0 0 14px!important}
  #home .apple-final-cta h2{
    font-size:clamp(50px,13.6vw,64px)!important;
    line-height:.98!important;
    letter-spacing:-.05em!important;
  }
  #home .apple-final-cta .home-cta-inner>div:not(.final-friends) p{
    margin-top:15px!important;
    font-size:14px!important;
  }
  #home .apple-final-cta .home-cta-button{
    width:calc(100% - 40px)!important;
    margin:26px 20px 0!important;
    min-height:76px!important;
    border-radius:24px!important;
  }
  #home .apple-final-cta .final-friends{
    width:110vw!important;
    height:178px!important;
    margin-top:20px!important;
  }
  #home .apple-final-cta .final-friends img{
    max-height:178px!important;
    bottom:-1px!important;
  }

  #home .apple-final-cta + .footer{
    margin-top:0!important;
    padding:28px 0 27px!important;
    min-height:0!important;
    background:#302333!important;
  }
  #home .apple-final-cta + .footer .shell{
    padding-left:28px!important;
    padding-right:28px!important;
  }
  #home .apple-final-cta + .footer .footer-top{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:20px!important;
  }
  #home .apple-final-cta + .footer .footer-top>div{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:18px!important;
  }
  #home .apple-final-cta + .footer .flogo{
    font-size:30px!important;
    line-height:1!important;
    letter-spacing:.09em!important;
  }
  #home .apple-final-cta + .footer .fcopy{
    display:block!important;
    margin:0!important;
    font-size:12px!important;
    line-height:1.5!important;
    text-align:right!important;
  }
  #home .apple-final-cta + .footer nav{
    display:grid!important;
    grid-template-columns:repeat(5,auto)!important;
    justify-content:space-between!important;
    align-items:center!important;
    gap:7px!important;
  }
  #home .apple-final-cta + .footer nav a{
    font-size:11px!important;
    white-space:nowrap!important;
  }
  #home .apple-final-cta + .footer .fnote{
    margin-top:21px!important;
    padding-top:18px!important;
    font-size:9px!important;
    line-height:1.45!important;
  }
}


/* v30: exact compact footer/CTA composition from supplied target */
@media(max-width:767px){
  #home .apple-final-cta{
    padding:36px 0 0!important;
    min-height:0!important;
  }
  #home .apple-final-cta .home-cta-inner{
    min-height:0!important;height:auto!important;
  }
  #home .apple-final-cta .eyebrow{margin-bottom:12px!important}
  #home .apple-final-cta h2{
    font-size:clamp(48px,13vw,60px)!important;
    line-height:.98!important;
  }
  #home .apple-final-cta .home-cta-inner>div:not(.final-friends) p{
    margin-top:14px!important;font-size:13px!important;
  }
  #home .apple-final-cta .home-cta-button{
    width:calc(100% - 40px)!important;
    min-height:72px!important;
    margin:24px 20px 0!important;
    border-radius:23px!important;
  }
  #home .apple-final-cta .final-friends{
    position:relative!important;
    width:110vw!important;height:164px!important;
    margin:18px 0 0!important;
    left:50%!important;transform:translateX(-50%)!important;
  }
  #home .apple-final-cta .final-friends img{
    max-height:164px!important;bottom:-1px!important;
  }

  #home .apple-final-cta + .footer{
    margin:0!important;
    padding:28px 0 26px!important;
    min-height:0!important;
  }
  #home .apple-final-cta + .footer .shell{
    padding:0 28px!important;
  }
  #home .apple-final-cta + .footer .footer-top{
    display:block!important;
  }
  #home .apple-final-cta + .footer .footer-top>div{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:16px!important;
  }
  #home .apple-final-cta + .footer .flogo{
    font-size:28px!important;line-height:1!important;
  }
  #home .apple-final-cta + .footer .fcopy{
    display:block!important;
    max-width:58%!important;
    margin:0!important;
    font-size:11px!important;line-height:1.45!important;
    text-align:right!important;
  }
  #home .apple-final-cta + .footer nav{
    margin-top:24px!important;
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,auto))!important;
    justify-content:space-between!important;
    gap:6px!important;
  }
  #home .apple-final-cta + .footer nav a{
    font-size:10px!important;line-height:1.2!important;
    white-space:nowrap!important;
  }
  #home .apple-final-cta + .footer .fnote{
    margin-top:23px!important;
    padding-top:18px!important;
    font-size:8.5px!important;line-height:1.45!important;
    display:flex!important;flex-direction:row!important;
    justify-content:space-between!important;align-items:center!important;
    gap:8px!important;
  }
}


/* v31: CTA order = heading -> button -> all 8 MATE characters -> footer */
@media(max-width:767px){
  #home .apple-final-cta .home-cta-inner{
    display:flex!important;
    flex-direction:column!important;
  }
  #home .apple-final-cta .home-cta-inner>div:not(.final-friends){order:1}
  #home .apple-final-cta .home-cta-button{order:2}
  #home .apple-final-cta .final-friends{order:3}

  #home .apple-final-cta .final-friends-eight{
    position:relative!important;
    left:50%!important;
    transform:translateX(-50%)!important;
    width:108vw!important;
    height:164px!important;
    margin:18px 0 0!important;
    overflow:hidden!important;
  }
  #home .apple-final-cta .final-friends-eight img{
    position:absolute!important;
    bottom:-3px!important;
    width:auto!important;
    max-width:none!important;
    object-fit:contain!important;
    transform-origin:50% 100%!important;
  }
  #home .final-friends-eight img:nth-child(1){left:-4%;height:92px!important;z-index:1}
  #home .final-friends-eight img:nth-child(2){left:8%;height:105px!important;z-index:2}
  #home .final-friends-eight img:nth-child(3){left:20%;height:123px!important;z-index:3}
  #home .final-friends-eight img:nth-child(4){left:35%;height:158px!important;z-index:5}
  #home .final-friends-eight img:nth-child(5){right:34%;height:146px!important;z-index:5}
  #home .final-friends-eight img:nth-child(6){right:20%;height:118px!important;z-index:3}
  #home .final-friends-eight img:nth-child(7){right:7%;height:108px!important;z-index:2}
  #home .final-friends-eight img:nth-child(8){right:-5%;height:96px!important;z-index:1}
}


/* v32: compact 8-character final lineup + intro compatibility link */
.home-intro .intro-compat-link{
  display:inline-block;
  margin-top:14px;
  color:inherit;
  font-weight:700;
  text-decoration:none;
  border-bottom:1px solid currentColor;
  padding-bottom:3px;
}
@media(max-width:767px){
  .home-intro .intro-compat-link{margin-top:12px;font-size:14px}

  #home .apple-final-cta .final-friends-eight{
    width:100vw!important;
    height:142px!important;
    margin-top:16px!important;
    overflow:hidden!important;
  }
  #home .apple-final-cta .final-friends-eight img{
    bottom:-2px!important;
    object-fit:contain!important;
  }
  #home .final-friends-eight img:nth-child(1){left:-5%!important;height:78px!important}
  #home .final-friends-eight img:nth-child(2){left:7%!important;height:82px!important}
  #home .final-friends-eight img:nth-child(3){left:18%!important;height:91px!important}
  #home .final-friends-eight img:nth-child(4){left:31%!important;height:126px!important}
  #home .final-friends-eight img:nth-child(5){right:31%!important;height:118px!important}
  #home .final-friends-eight img:nth-child(6){right:18%!important;height:91px!important}
  #home .final-friends-eight img:nth-child(7){right:7%!important;height:84px!important}
  #home .final-friends-eight img:nth-child(8){right:-5%!important;height:79px!important}
}


/* v33: cinematic hero intro */
#home .apple-hero{isolation:isolate}
#home .hero-media{transform-origin:50% 58%;will-change:transform,filter}
#home .hero-cinema{
  position:absolute;inset:0;z-index:1;overflow:hidden;pointer-events:none;
  mix-blend-mode:screen;
}
#home .hero-sunbeam{
  position:absolute;
  width:92vw;height:120vh;
  left:-42vw;top:-48vh;
  transform:rotate(18deg);
  background:linear-gradient(100deg,transparent 34%,rgba(255,255,255,.26) 47%,rgba(255,249,213,.5) 53%,rgba(255,255,255,.08) 61%,transparent 72%);
  filter:blur(18px);
  animation:mateHeroSunSweep 9.5s cubic-bezier(.22,.7,.25,1) .6s both;
}
#home .hero-light-orb{
  position:absolute;border-radius:50%;filter:blur(28px);opacity:.42;
  animation:mateHeroOrb 10s ease-in-out infinite alternate;
}
#home .hero-light-orb.orb-a{
  width:min(38vw,460px);height:min(38vw,460px);
  right:-10vw;top:5%;
  background:radial-gradient(circle,rgba(255,251,211,.78),rgba(255,255,255,0) 68%);
}
#home .hero-light-orb.orb-b{
  width:min(30vw,360px);height:min(30vw,360px);
  left:34%;bottom:-12%;
  background:radial-gradient(circle,rgba(218,247,255,.6),rgba(255,255,255,0) 70%);
  animation-delay:-3.2s;
}
#home .hero-bokeh{
  position:absolute;display:block;border-radius:50%;
  border:1px solid rgba(255,255,255,.8);
  background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.9),rgba(255,255,255,.18) 45%,rgba(205,239,255,.12) 72%);
  box-shadow:inset 0 0 12px rgba(255,255,255,.4),0 4px 18px rgba(116,164,190,.14);
  opacity:.62;
  animation:mateHeroBubbleFloat var(--float,8s) ease-in-out infinite alternate;
}
#home .hero-bokeh.b1{--float:7.5s;width:18px;height:18px;left:8%;top:69%}
#home .hero-bokeh.b2{--float:9s;width:28px;height:28px;left:18%;top:56%;animation-delay:-2.1s}
#home .hero-bokeh.b3{--float:8.4s;width:15px;height:15px;left:44%;top:75%;animation-delay:-4s}
#home .hero-bokeh.b4{--float:10.2s;width:34px;height:34px;right:14%;top:22%;animation-delay:-1.2s}
#home .hero-bokeh.b5{--float:7.8s;width:19px;height:19px;right:8%;top:58%;animation-delay:-3.6s}
#home .hero-bokeh.b6{--float:9.6s;width:12px;height:12px;right:35%;top:12%;animation-delay:-5.1s}
#home .hero-copy-stack>*{will-change:transform,opacity,filter}
#home .hero-intro-complete .hero-kicker{
  animation:mateHeroKickerBreath 5.8s ease-in-out infinite;
}

@keyframes mateHeroSunSweep{
  0%{transform:translate3d(-20%,0,0) rotate(18deg);opacity:0}
  18%{opacity:.78}
  65%{opacity:.48}
  100%{transform:translate3d(92vw,8vh,0) rotate(18deg);opacity:0}
}
@keyframes mateHeroOrb{
  0%{transform:translate3d(-8px,-5px,0) scale(.94);opacity:.28}
  100%{transform:translate3d(16px,12px,0) scale(1.08);opacity:.52}
}
@keyframes mateHeroBubbleFloat{
  0%{transform:translate3d(0,12px,0) scale(.9);opacity:.38}
  55%{opacity:.74}
  100%{transform:translate3d(10px,-24px,0) scale(1.08);opacity:.48}
}
@keyframes mateHeroKickerBreath{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-2px)}
}

@media(max-width:767px){
  #home .hero-cinema{mix-blend-mode:screen}
  #home .hero-sunbeam{
    width:145vw;height:100vh;left:-88vw;top:-38vh;
    filter:blur(22px);
    animation-duration:10.5s;
  }
  #home .hero-light-orb.orb-a{
    width:68vw;height:68vw;right:-30vw;top:4%;
  }
  #home .hero-light-orb.orb-b{
    width:54vw;height:54vw;left:36%;bottom:7%;
  }
  #home .hero-bokeh.b1{left:6%;top:68%}
  #home .hero-bokeh.b2{left:20%;top:57%}
  #home .hero-bokeh.b3{left:50%;top:76%}
  #home .hero-bokeh.b4{right:7%;top:32%}
  #home .hero-bokeh.b5{right:11%;top:65%}
  #home .hero-bokeh.b6{right:32%;top:18%}
}

@media(prefers-reduced-motion:reduce){
  #home .hero-sunbeam,
  #home .hero-light-orb,
  #home .hero-bokeh,
  #home .hero-intro-complete .hero-kicker{
    animation:none!important;
  }
  #home .hero-cinema{opacity:.55!important}
}


/* v34: fix broken character image + longer hero ambient motion */
#home .final-friends-eight img{
  display:block!important;
  max-width:none!important;
  width:auto!important;
  object-fit:contain!important;
}

/* Hide any failed image cleanly instead of Safari's broken-image '?' badge. */
#home .final-friends-eight img[src=""],
#home .final-friends-eight img:not([src]){display:none!important}

/* The opening background stays alive after the intro: slow cinematic drift + light sweep. */
#home .hero-media picture,
#home .hero-media picture img{
  width:100%;height:100%;
}
#home .hero-media picture img{
  object-fit:cover;
  animation:mateHeroAmbientZoom 18s ease-in-out 7.2s infinite alternate;
  will-change:transform;
}
#home .hero-sunbeam{
  animation:mateHeroSunSweep 9.5s cubic-bezier(.22,.7,.25,1) .6s both,
            mateHeroSunLoop 14s ease-in-out 10.2s infinite;
}
#home .hero-cinema:after{
  content:"";
  position:absolute;inset:-18%;
  background:linear-gradient(115deg,transparent 34%,rgba(255,255,255,.12) 48%,rgba(255,250,218,.25) 52%,transparent 66%);
  filter:blur(24px);
  opacity:0;
  animation:mateHeroLongGlow 13s ease-in-out 5s infinite;
}
@keyframes mateHeroAmbientZoom{
  0%{transform:scale(1.005) translate3d(0,0,0)}
  45%{transform:scale(1.035) translate3d(-.8%,-.35%,0)}
  100%{transform:scale(1.055) translate3d(.7%,-.7%,0)}
}
@keyframes mateHeroSunLoop{
  0%,100%{transform:translate3d(-30vw,0,0) rotate(18deg);opacity:0}
  25%{opacity:.25}
  55%{opacity:.4}
  80%{opacity:.12}
  99%{transform:translate3d(115vw,8vh,0) rotate(18deg);opacity:0}
}
@keyframes mateHeroLongGlow{
  0%,100%{transform:translate3d(-20%,0,0);opacity:0}
  25%{opacity:.2}
  60%{opacity:.34}
  90%{transform:translate3d(20%,3%,0);opacity:0}
}
@media(max-width:767px){
  #home .hero-media picture img{
    animation-duration:16s;
    animation-delay:7.2s;
  }
}
@media(prefers-reduced-motion:reduce){
  #home .hero-media picture img{
    animation:mateHeroAmbientZoom 24s ease-in-out infinite alternate!important;
  }
  #home .hero-cinema:after{
    animation:mateHeroLongGlow 18s ease-in-out infinite!important;
  }
}


/* v35: give the 8-character final lineup breathing room on phones */
@media(max-width:767px){
  #home .apple-final-cta .final-friends-eight{
    width:104vw!important;
    height:150px!important;
    margin-top:18px!important;
    overflow:hidden!important;
  }
  #home .apple-final-cta .final-friends-eight img{
    bottom:-2px!important;
    transform-origin:50% 100%!important;
  }
  #home .final-friends-eight img:nth-child(1){left:-3%!important;height:70px!important;z-index:1}
  #home .final-friends-eight img:nth-child(2){left:10%!important;height:76px!important;z-index:2}
  #home .final-friends-eight img:nth-child(3){left:22%!important;height:82px!important;z-index:3}
  #home .final-friends-eight img:nth-child(4){left:36%!important;height:108px!important;z-index:4}
  #home .final-friends-eight img:nth-child(5){right:35%!important;height:103px!important;z-index:4}
  #home .final-friends-eight img:nth-child(6){right:21%!important;height:82px!important;z-index:3}
  #home .final-friends-eight img:nth-child(7){right:9%!important;height:76px!important;z-index:2}
  #home .final-friends-eight img:nth-child(8){right:-3%!important;height:70px!important;z-index:1}
}


/* v36: final 8-character lineup — prioritize separation over oversized overlap */
@media(max-width:767px){
  #home .apple-final-cta .final-friends-eight{
    width:100vw!important;
    height:132px!important;
    margin-top:20px!important;
    overflow:hidden!important;
  }
  #home .apple-final-cta .final-friends-eight img{
    bottom:0!important;
    max-width:none!important;
    object-fit:contain!important;
  }
  #home .final-friends-eight img:nth-child(1){left:-2%!important;right:auto!important;height:61px!important;z-index:1}
  #home .final-friends-eight img:nth-child(2){left:11%!important;right:auto!important;height:66px!important;z-index:1}
  #home .final-friends-eight img:nth-child(3){left:24%!important;right:auto!important;height:70px!important;z-index:1}
  #home .final-friends-eight img:nth-child(4){left:37%!important;right:auto!important;height:82px!important;z-index:2}
  #home .final-friends-eight img:nth-child(5){left:51%!important;right:auto!important;height:80px!important;z-index:2}
  #home .final-friends-eight img:nth-child(6){left:65%!important;right:auto!important;height:69px!important;z-index:1}
  #home .final-friends-eight img:nth-child(7){left:78%!important;right:auto!important;height:65px!important;z-index:1}
  #home .final-friends-eight img:nth-child(8){left:91%!important;right:auto!important;height:60px!important;z-index:1}
}


/* v37: quiz typography — natural Japanese phrase wrapping on every question */
#quiz .qbody h2,
#quiz #qText{
  word-break:keep-all!important;
  overflow-wrap:break-word!important;
  line-break:strict!important;
  text-wrap:pretty!important;
}
@media(max-width:430px){
  #quiz .qbody h2,
  #quiz #qText{
    font-size:clamp(24px,6.35vw,31px)!important;
    line-height:1.48!important;
    letter-spacing:-.025em!important;
  }
}
@media(max-width:360px){
  #quiz .qbody h2,
  #quiz #qText{font-size:23px!important}
}
/* Do not expose the global technical loader UI to visitors. */
#errorBox{display:none!important}


/* v38: iPhone viewport safety — never let quiz text or controls exceed the screen */
#quiz,
#quiz .quiz,
#quiz .qbody,
#quiz .answers,
#quiz .answer{
  box-sizing:border-box;
  max-width:100%;
}
#quiz{overflow-x:hidden}
#quiz .quiz{
  width:100%;
  padding-left:max(20px,env(safe-area-inset-left));
  padding-right:max(20px,env(safe-area-inset-right));
}
#quiz .qbody{
  width:100%;
  min-width:0;
}
#quiz .qbody h2,
#quiz #qText{
  width:100%;
  max-width:100%;
  min-width:0;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
  line-break:strict!important;
  text-wrap:pretty!important;
}
#quiz .answers{width:100%;min-width:0}
#quiz .answer{min-width:0;width:100%}

@media(max-width:430px){
  #quiz .quiz{
    padding-left:max(16px,env(safe-area-inset-left));
    padding-right:max(16px,env(safe-area-inset-right));
  }
  #quiz .qbody h2,
  #quiz #qText{
    font-size:clamp(23px,6.1vw,29px)!important;
    line-height:1.46!important;
    letter-spacing:-.02em!important;
  }
}
@media(max-width:390px){
  #quiz .qbody h2,
  #quiz #qText{font-size:clamp(22px,6vw,27px)!important}
}


/* v39 — result page mobile polish: tighter rhythm, safe wrapping, no horizontal clipping */
#result,
#result .result-story,
#result .result-scene{max-width:100%;overflow-x:clip}
#result .shell,
#result .result-stage{box-sizing:border-box;max-width:100%;min-width:0}
#result h1,#result h2,#result h3,#result h4,
#result p,#result b,#result strong,#result span,#result a{
  min-width:0;
  overflow-wrap:break-word;
  word-break:normal;
  line-break:strict;
}
#result .result-stage{padding-top:clamp(36px,6vw,72px);padding-bottom:clamp(36px,6vw,72px)}
#result .result-jump{margin-top:0;margin-bottom:0}
#result .aruaru-section,
#result .axes-section,
#result .compat-section,
#result .advice-section{padding-block:clamp(28px,5vw,64px)}
#result .modes-section{padding-top:8px;padding-bottom:8px}
#result .result-save-panel{margin-top:24px;margin-bottom:24px}
#result .scene-heading{margin-bottom:22px}
#result .scene-heading p{max-width:42rem}
#result .result-detail-toggle{max-width:100%}
#result .share-grid{max-width:100%}
#result .compat{max-width:100%}

@media(max-width:767px){
  #result .shell,
  #result .result-stage{
    width:100%;
    padding-left:max(18px,env(safe-area-inset-left));
    padding-right:max(18px,env(safe-area-inset-right));
  }
  #result .result-stage{padding-top:30px;padding-bottom:30px}
  #result .result-hero-stage{gap:18px}
  #result .result-hero-copy{min-width:0}
  #result .type-name{
    max-width:100%;
    font-size:clamp(38px,11vw,58px)!important;
    line-height:1.08!important;
    letter-spacing:-.055em!important;
    white-space:normal!important;
    text-wrap:balance;
  }
  #result .subname{
    max-width:100%;
    font-size:clamp(23px,7vw,34px)!important;
    line-height:1.2!important;
    white-space:normal!important;
  }
  #result .subcopy,
  #result .verdict-text{font-size:14px!important;line-height:1.72!important}
  #result .result-jump{
    padding-top:12px;
    padding-bottom:12px;
    gap:8px;
  }
  #result .result-jump a{font-size:12px;white-space:nowrap}
  #result .aruaru-section,
  #result .axes-section,
  #result .compat-section,
  #result .advice-section{padding-block:24px}
  #result .aruaru-stage{gap:18px}
  #result .aruaru-content h2,
  #result .scene-heading h2,
  #result .advice-heading h2{
    font-size:clamp(29px,8.5vw,40px)!important;
    line-height:1.14!important;
    letter-spacing:-.045em!important;
    text-wrap:balance;
  }
  #result .aruaru-content .lead,
  #result .scene-heading p{font-size:13px!important;line-height:1.65!important}
  #result .result-story-list{gap:8px!important}
  #result .aru{padding:14px 16px 14px 48px!important;min-height:auto!important}
  #result .aru:after{left:17px!important;top:14px!important}
  #result .result-quick{margin-top:14px!important}
  #result .quick-summary{gap:8px!important}
  #result .result-detail-toggle{border-radius:20px}
  #result .result-detail-toggle>summary{padding:13px 15px}
  #result .result-detail-toggle>summary b{font-size:15px;line-height:1.35}
  #result .modes{grid-template-columns:1fr!important;padding:0 14px 14px!important;gap:8px!important}
  #result .mode{padding:14px!important;border-radius:17px!important}
  #result .mode strong{font-size:20px!important}
  #result .axes-stage{gap:16px}
  #result .axes-visual{gap:14px!important}
  #result .radar-panel{padding:16px 12px 10px!important;border-radius:22px!important}
  #result .radar-wrap{min-height:260px!important}
  #result .radar-svg{width:min(100%,285px)!important}
  #result .axes{gap:8px!important}
  #result .axes>div{padding:12px 14px!important;border-radius:18px!important}
  #result .axis-name{font-size:14px!important}
  #result .ends{font-size:10px!important}
  #result .compat-stage{gap:14px}
  #result .compat{gap:10px!important}
  #result .compat-card{
    min-width:0!important;
    max-width:100%!important;
    padding:14px!important;
    border-radius:20px!important;
  }
  #result .compat-card img{max-width:82px!important;height:auto!important}
  #result .compat-card h3,
  #result .compat-card strong{font-size:18px!important;line-height:1.25!important}
  #result .compat-card p{font-size:12px!important;line-height:1.55!important}
  #result .advice-list{gap:8px!important}
  #result .advice-item{padding:15px!important;border-radius:18px!important}
  #result .advice-item h3{font-size:17px!important;line-height:1.35!important}
  #result .advice-item p{font-size:12px!important;line-height:1.65!important}
  #result .result-save-panel{margin-top:16px;margin-bottom:16px;padding-top:22px;padding-bottom:22px}
  #result .result-final{min-height:auto!important}
  #result .final-share-inner{padding-top:46px!important;padding-bottom:46px!important}
  #result .final-share-copy h2{font-size:clamp(32px,9vw,44px)!important;line-height:1.12!important}
  #result .share-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  #result .share-choice{min-width:0;padding:0 10px!important;font-size:12px!important}
  #result .final-actions{gap:8px!important}
  #result .footer .shell{padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}
}
@media(max-width:390px){
  #result .shell,#result .result-stage{padding-left:15px;padding-right:15px}
  #result .type-name{font-size:clamp(35px,10.6vw,46px)!important}
  #result .result-jump a{font-size:11px}
}


/* v40 — result hero Japanese wrapping */
@media(max-width:767px){
  #result .type-name{
    font-size:clamp(34px,9.4vw,46px)!important;
    line-height:1.12!important;
    letter-spacing:-.045em!important;
    word-break:keep-all!important;
    overflow-wrap:normal!important;
    line-break:strict!important;
    text-wrap:balance!important;
  }
  #result .result-hero-copy{
    width:100%!important;
    max-width:100%!important;
  }
  #result .subname{
    font-size:clamp(22px,6.3vw,30px)!important;
    word-break:keep-all!important;
    overflow-wrap:normal!important;
    text-wrap:balance!important;
  }
  #result .verdict-text{
    word-break:keep-all!important;
    overflow-wrap:normal!important;
    text-wrap:pretty!important;
  }
}


/* v41 — kidoku-toumin-guma: compact compatibility section to ~1/3 height */
body.theme-guma .character-compat-compact{
  padding:28px 0 30px!important;
  margin:0!important;
  background:transparent!important;
}
body.theme-guma .character-compat-compact>h2{
  margin:0 0 14px!important;
  font-size:clamp(24px,7vw,32px)!important;
  line-height:1.12!important;
  letter-spacing:-.035em!important;
}
body.theme-guma .character-compat-compact .compat{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:9px!important;
  min-height:0!important;
}
body.theme-guma .character-compat-compact .compat-card,
body.theme-guma .character-compat-compact .compat-card.first{
  display:grid!important;
  grid-template-columns:58px minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  padding:10px 12px!important;
  border:1px solid rgba(53,39,61,.07)!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 6px 16px rgba(53,39,61,.045)!important;
  transform:none!important;
  overflow:hidden!important;
  text-align:left!important;
}
body.theme-guma .character-compat-compact .compat-card.first{
  background:linear-gradient(135deg,#fff,#fbf5ee)!important;
}
body.theme-guma .character-compat-compact .compat-card:before{
  width:34px!important;height:34px!important;
  left:6px!important;top:8px!important;
  filter:none!important;opacity:.22!important;
}
body.theme-guma .character-compat-compact .compat-motif{
  width:18px!important;height:18px!important;
  right:8px!important;top:8px!important;
  opacity:.10!important;
}
body.theme-guma .character-compat-compact .compat-card img:not(.compat-motif){
  width:54px!important;height:54px!important;
  margin:0!important;
  object-fit:contain!important;
  filter:none!important;
  animation:none!important;
}
body.theme-guma .character-compat-compact .rank{
  display:block!important;
  width:auto!important;height:auto!important;
  margin:0 0 2px!important;
  padding:0!important;
  background:transparent!important;
  font-size:9px!important;
  line-height:1.2!important;
  color:#8b735d!important;
  text-align:left!important;
}
body.theme-guma .character-compat-compact .cname{
  margin:0!important;
  font-size:15px!important;
  line-height:1.2!important;
  letter-spacing:-.02em!important;
}
body.theme-guma .character-compat-compact .reason{
  margin:3px 0 0!important;
  font-size:10.5px!important;
  line-height:1.45!important;
  color:#6b646c!important;
}
body.theme-guma .character-compat-compact .arrow{display:none!important}

@media(min-width:680px){
  body.theme-guma .character-compat-compact .compat{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  body.theme-guma .character-compat-compact .compat-card,
  body.theme-guma .character-compat-compact .compat-card.first{
    grid-template-columns:52px minmax(0,1fr)!important;
  }
}


/* v42 — guma illustrated compatibility cards */
body.theme-guma .compat-section--illustrated{
  padding:28px 0 34px!important;
  margin:0!important;
  background:transparent!important;
}
body.theme-guma .compat-section--illustrated>h2{
  margin:0 0 14px!important;
  font-size:clamp(24px,7vw,32px)!important;
  line-height:1.12!important;
  letter-spacing:-.035em!important;
}
body.theme-guma .compat-section--illustrated .compat-rich{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:14px!important;
}
body.theme-guma .compat-section--illustrated .compat-card-rich,
body.theme-guma .compat-section--illustrated .compat-card-rich.first{
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate!important;
  display:grid!important;
  grid-template-columns:76px minmax(0,1fr)!important;
  align-items:center!important;
  gap:12px!important;
  min-height:132px!important;
  height:auto!important;
  margin:0!important;
  padding:14px 14px 14px 12px!important;
  border:1px solid rgba(53,39,61,.07)!important;
  border-radius:28px 12px 28px 12px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.97),rgba(255,255,255,.92))!important;
  box-shadow:0 9px 22px rgba(53,39,61,.06)!important;
  transform:none!important;
  text-align:left!important;
}
body.theme-guma .compat-section--illustrated .compat-card-rich::before{
  content:""!important;
  position:absolute!important;
  inset:auto auto -22px -10px!important;
  width:110px!important;
  height:66px!important;
  border-radius:999px!important;
  background:color-mix(in srgb,var(--mate-accent),white 72%)!important;
  opacity:.35!important;
  filter:none!important;
}
body.theme-guma .compat-section--illustrated .compat-card-rich .compat-deco{
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  pointer-events:none!important;
  background-repeat:no-repeat!important;
  background-position:right -8px center!important;
  background-size:min(70%,260px) auto!important;
  opacity:.28!important;
  mix-blend-mode:multiply!important;
}
body.theme-guma .compat-section--illustrated .compat-card-rich .compat-motif{
  position:absolute!important;
  top:12px!important;
  right:12px!important;
  width:18px!important;
  height:18px!important;
  opacity:.18!important;
  z-index:2!important;
}
body.theme-guma .compat-section--illustrated .compat-card-rich .compat-media{
  position:relative!important;
  z-index:2!important;
  display:grid!important;
  place-items:center!important;
}
body.theme-guma .compat-section--illustrated .compat-card-rich .compat-media img{
  width:74px!important;
  height:74px!important;
  max-width:none!important;
  object-fit:contain!important;
  margin:0!important;
  filter:drop-shadow(0 7px 10px rgba(53,39,61,.10))!important;
  animation:none!important;
}
body.theme-guma .compat-section--illustrated .compat-card-rich .compat-copy{
  position:relative!important;
  z-index:2!important;
  min-width:0!important;
  display:grid!important;
  gap:4px!important;
  align-content:center!important;
}
body.theme-guma .compat-section--illustrated .compat-card-rich .rank{
  display:inline-flex!important;
  width:max-content!important;
  height:auto!important;
  place-items:unset!important;
  font-size:10px!important;
  font-weight:900!important;
  letter-spacing:.04em!important;
  color:#5d4b19!important;
  padding:4px 8px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.84)!important;
  border:1px solid rgba(53,39,61,.06)!important;
  box-shadow:0 3px 10px rgba(53,39,61,.04)!important;
  margin:0 0 2px!important;
}
body.theme-guma .compat-section--illustrated .compat-card-rich .cname{
  display:block!important;
  margin:0!important;
  font-size:17px!important;
  line-height:1.22!important;
  letter-spacing:-.03em!important;
  color:#263d70!important;
  font-weight:900!important;
}
body.theme-guma .compat-section--illustrated .compat-card-rich .reason{
  display:block!important;
  margin:0!important;
  font-size:12px!important;
  line-height:1.62!important;
  color:#5b5560!important;
  max-width:18em!important;
  text-wrap:pretty!important;
}
body.theme-guma .compat-section--illustrated .compat-card-rich.theme-wanko .compat-deco{
  background-image:url('../assets/images/compat/wanko-deco-clean-nano.webp')!important;
}
body.theme-guma .compat-section--illustrated .compat-card-rich.theme-neko .compat-deco{
  background-image:url('../assets/images/compat/neko-deco-clean-nano.webp')!important;
  opacity:.32!important;
}
body.theme-guma .compat-section--illustrated .compat-card-rich.theme-risu .compat-deco{
  background-image:url('../assets/images/compat/risu-deco-clean-nano.webp')!important;
  opacity:.27!important;
}
body.theme-guma .compat-section--illustrated .compat-card-rich.theme-wanko{--mate-accent:#c78a25!important}
body.theme-guma .compat-section--illustrated .compat-card-rich.theme-neko{--mate-accent:#8894ea!important}
body.theme-guma .compat-section--illustrated .compat-card-rich.theme-risu{--mate-accent:#ce8f53!important}
@media(min-width:680px){
  body.theme-guma .compat-section--illustrated .compat-rich{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  body.theme-guma .compat-section--illustrated .compat-card-rich,
  body.theme-guma .compat-section--illustrated .compat-card-rich.first{
    grid-template-columns:1fr!important;
    align-items:start!important;
    gap:12px!important;
    min-height:220px!important;
    padding:16px!important;
  }
  body.theme-guma .compat-section--illustrated .compat-card-rich .compat-deco{
    background-position:center 14px!important;
    background-size:85% auto!important;
    opacity:.24!important;
  }
  body.theme-guma .compat-section--illustrated .compat-card-rich .compat-media{
    justify-self:left!important;
  }
  body.theme-guma .compat-section--illustrated .compat-card-rich .compat-media img{
    width:86px!important;
    height:86px!important;
  }
  body.theme-guma .compat-section--illustrated .compat-card-rich .cname{font-size:19px!important}
  body.theme-guma .compat-section--illustrated .compat-card-rich .reason{max-width:none!important}
}


/* 20260923 audit cleanup */
h1,h2,h3,.type-name,.subname,.cname{line-break:strict;text-wrap:balance}
.character-tile h2,.character-detail-hero .type-name,#result .type-name,.compat-card-showcase .cname{word-break:keep-all;overflow-wrap:normal}
#aruaruSection,#axesSection,#compatSection,#finalShareScene,.content-page .section[id],.compat-map-section{scroll-margin-top:96px}

@media(max-width:767px){
  .content-hero{min-height:400px!important;padding-block:40px!important}
  .faq .content-hero{min-height:330px!important;padding-block:30px!important}
  .character-archive-hero{min-height:320px!important;padding-top:28px!important;padding-bottom:18px!important}
  .character-detail-hero{min-height:470px!important}

  #quiz .qbody h2{height:auto!important;min-height:clamp(110px,30vw,132px)!important;padding-right:72px!important;align-items:center!important;overflow:visible!important}
  #quiz .quiz-mascot{width:66px!important;height:66px!important;right:2px!important;top:4px!important}
  #quiz .answers{min-height:260px!important}

  #result .type-name{max-width:100%!important;font-size:clamp(31px,9vw,42px)!important;line-height:1.12!important;word-break:keep-all!important;overflow-wrap:normal!important}
  #result .subname{word-break:keep-all!important;overflow-wrap:normal!important}
  #result .share-privacy,.share-privacy{font-size:10px!important;line-height:1.55!important}

  #home .apple-final-cta,#home .apple-final-cta .home-cta-inner{min-height:0!important}
  #home .apple-final-cta h2{font-size:clamp(40px,11vw,54px)!important;line-height:1.02!important}
}

@media(max-width:360px){
  .content-hero{min-height:350px!important}
  .content-hero h1,.character-archive-hero h1{font-size:clamp(31px,9.6vw,38px)!important;line-height:1.12!important}
  .legal-page h1{font-size:clamp(25px,8.4vw,29px)!important;word-break:keep-all!important;overflow-wrap:normal!important}
  .character-tile h2{font-size:15.5px!important;line-height:1.18!important}
  #quiz .qbody h2{min-height:108px!important;padding-right:64px!important}
  #quiz .quiz-mascot{width:58px!important;height:58px!important}
}


/* 20260923 result polish from mobile review */
@media(max-width:767px){
  /* SCENE 03: never let meters or dots visually escape the card. */
  #result .axes>div{
    box-sizing:border-box;
    overflow:hidden;
    padding:15px 16px 14px!important;
    border:1px solid rgba(53,39,61,.055)!important;
    border-radius:22px!important;
    background:rgba(255,255,255,.94)!important;
    box-shadow:0 8px 20px rgba(53,39,61,.035)!important;
  }
  #result .axes .axis-head{
    min-width:0;
    align-items:center;
  }
  #result .axes .axis-score{
    flex:none;
    min-width:2.5ch;
    justify-content:flex-end;
  }
  #result .axes .bar{
    width:calc(100% - 8px)!important;
    margin-left:4px!important;
    margin-right:4px!important;
  }
  #result .axes .axis-dot{
    width:11px!important;
    height:11px!important;
    border-width:3px!important;
  }

  /* SCENE 04: use full horizontal story cards instead of thin empty columns. */
  #result .compat-section{
    padding:58px 0 54px!important;
  }
  #result .compat-stage{
    gap:20px!important;
  }
  #result .compat-heading{
    margin-bottom:2px!important;
  }
  #result .compat-good{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
    min-height:0!important;
    align-items:stretch!important;
  }
  #result .compat-good .compat-card,
  #result .compat-good .compat-card:nth-child(n){
    position:relative!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 118px!important;
    align-items:end!important;
    min-height:190px!important;
    height:auto!important;
    margin:0!important;
    padding:62px 14px 14px 18px!important;
    border:1px solid rgba(53,39,61,.055)!important;
    border-radius:28px!important;
    background:linear-gradient(135deg,color-mix(in srgb,var(--tile,#fff),white 15%),#fffdf9)!important;
    box-shadow:0 12px 28px rgba(53,39,61,.055)!important;
    transform:none!important;
    overflow:hidden!important;
    text-align:left!important;
  }
  #result .compat-good .compat-card:before{
    content:"";
    position:absolute;
    right:70px;
    top:54px;
    width:118px;
    height:58px;
    border-radius:999px;
    background:color-mix(in srgb,var(--tile,#f2edf4),white 24%);
    opacity:.58;
  }
  #result .compat-good .compat-rank{
    position:absolute!important;
    left:16px!important;
    top:14px!important;
    z-index:3!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:60px!important;
    height:60px!important;
    border-radius:50%!important;
    background:linear-gradient(180deg,#f4bf36,#df961d)!important;
    color:#fff!important;
    font-size:0!important;
    font-weight:950!important;
    box-shadow:0 8px 18px rgba(53,39,61,.08)!important;
  }
  #result .compat-good .compat-rank:before{
    content:attr(class);
    display:none;
  }
  #result .compat-good .compat-rank.rank-1:after{content:"1位"}
  #result .compat-good .compat-rank.rank-2:after{content:"2位"}
  #result .compat-good .compat-rank.rank-3:after{content:"3位"}
  #result .compat-good .compat-rank:after{
    font-size:21px;
    line-height:1;
    letter-spacing:-.04em;
  }
  #result .compat-good .rank-2{
    background:linear-gradient(180deg,#9da8f0,#7d88d9)!important;
  }
  #result .compat-good .rank-3{
    background:linear-gradient(180deg,#e9a05f,#cf7a3d)!important;
  }
  #result .compat-good .compat-head{
    position:absolute!important;
    right:10px!important;
    bottom:8px!important;
    z-index:2!important;
    width:116px!important;
    height:132px!important;
    display:grid!important;
    place-items:end center!important;
  }
  #result .compat-good .compat-character{
    width:112px!important;
    height:112px!important;
    object-fit:contain!important;
    filter:drop-shadow(0 10px 14px rgba(53,39,61,.08))!important;
  }
  #result .compat-good .compat-body{
    position:relative!important;
    z-index:2!important;
    align-self:end!important;
    min-width:0!important;
    padding-right:2px!important;
  }
  #result .compat-good .relation-label{
    position:absolute!important;
    left:70px!important;
    top:-48px!important;
    width:calc(100% - 80px)!important;
    overflow:hidden!important;
    color:var(--char,#365b9a)!important;
    font-size:12px!important;
    font-weight:900!important;
    line-height:1.25!important;
    white-space:nowrap!important;
    text-overflow:ellipsis!important;
  }
  #result .compat-good .cname{
    margin:0 0 7px!important;
    padding-right:2px!important;
    font-size:23px!important;
    line-height:1.12!important;
    word-break:keep-all!important;
  }
  #result .compat-good .reason{
    display:block!important;
    max-width:15.5em!important;
    margin:0!important;
    padding-right:4px!important;
    color:#5a535e!important;
    font-size:12.5px!important;
    line-height:1.62!important;
    -webkit-line-clamp:unset!important;
    overflow:visible!important;
  }
  #result .compat-good .arrow{
    display:none!important;
  }
  #result .mismatch-disclosure{
    margin-top:6px!important;
  }

  /* Final result: clearer hierarchy, readable preview, smaller intentional character. */
  #result .result-final{
    min-height:0!important;
    padding:64px 0 62px!important;
    background:linear-gradient(180deg,#3b2b42 0%,#503a58 64%,#6a5372 100%)!important;
  }
  #result .final-share-inner{
    padding-top:0!important;
    padding-bottom:0!important;
    gap:0!important;
  }
  #result .final-share-copy{
    width:100%!important;
    max-width:100%!important;
    position:relative!important;
    z-index:4!important;
  }
  #result .final-share-copy h2{
    max-width:7.5ch!important;
    margin:10px 0 14px!important;
    font-size:clamp(43px,12vw,58px)!important;
    line-height:1.02!important;
  }
  #result .final-share-copy p{
    max-width:23em!important;
    color:#f3edf5!important;
    font-size:14px!important;
    line-height:1.7!important;
  }
  #result .share-preview{
    position:relative!important;
    z-index:4!important;
    width:100%!important;
    margin:24px 0 0!important;
    padding:16px 17px!important;
    border:1px solid rgba(255,255,255,.18)!important;
    border-radius:20px!important;
    background:rgba(255,255,255,.09)!important;
    backdrop-filter:blur(8px);
  }
  #result .share-preview small{
    color:#d9cedd!important;
    font-size:10px!important;
    font-weight:800!important;
  }
  #result .share-preview b{
    margin:7px 0 5px!important;
    color:#fff!important;
    font-size:18px!important;
    line-height:1.4!important;
  }
  #result .share-preview span{
    color:#e7dfe9!important;
    font-size:11px!important;
    line-height:1.55!important;
  }
  #result .final-share .share-grid{
    position:relative!important;
    z-index:4!important;
    width:100%!important;
    margin-top:14px!important;
    gap:8px!important;
  }
  #result .final-share .share-choice{
    min-height:52px!important;
    border-radius:17px!important;
    background:rgba(255,255,255,.095)!important;
  }
  #result .final-actions{
    position:relative!important;
    z-index:4!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    width:100%!important;
    margin-top:12px!important;
    gap:9px!important;
  }
  #result .final-friend-start,
  #result .final-actions .save-image{
    min-height:58px!important;
    border-radius:18px!important;
    font-size:15px!important;
    font-weight:900!important;
  }
  #result .final-friend-start{
    order:1;
    background:var(--lime)!important;
    color:#30233a!important;
  }
  #result .final-actions .save-image{
    order:2;
    background:#fff!important;
    color:#35273d!important;
  }
  #result .final-actions .retry-action{
    order:3;
    min-height:44px!important;
    margin:2px 0 0!important;
    color:#e8dfea!important;
    font-size:12px!important;
  }
  #result .share-privacy{
    position:relative!important;
    z-index:4!important;
    width:100%!important;
    margin-top:12px!important;
    padding-right:118px!important;
    color:#d9cedd!important;
    font-size:10px!important;
    line-height:1.55!important;
  }
  #result .final-share-art{
    right:-20px!important;
    bottom:18px!important;
    width:170px!important;
    height:190px!important;
    opacity:.9!important;
    z-index:2!important;
  }
  #result .final-share-art span{
    inset:26% -20% -18% 3%!important;
    opacity:.54!important;
  }
  #result .final-share-art img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    filter:drop-shadow(0 15px 18px rgba(15,9,18,.18))!important;
  }
  #result .final-wave{
    bottom:-150px!important;
    height:210px!important;
    opacity:.98!important;
  }
}

@media(max-width:360px){
  #result .compat-good .compat-card,
  #result .compat-good .compat-card:nth-child(n){
    grid-template-columns:minmax(0,1fr) 96px!important;
    min-height:184px!important;
    padding-right:10px!important;
  }
  #result .compat-good .compat-head{
    width:96px!important;
    height:116px!important;
  }
  #result .compat-good .compat-character{
    width:94px!important;
    height:94px!important;
  }
  #result .compat-good .cname{
    font-size:20px!important;
  }
  #result .share-privacy{
    padding-right:96px!important;
  }
}


/* 20260923 MATE FRIEND brand rollout */
#home .hero-series-title{
  max-width:620px!important;
  text-wrap:balance;
}
#home .hero-kicker{
  letter-spacing:.08em;
}
@media(max-width:767px){
  #home .hero-series-title{
    max-width:100%!important;
    font-size:clamp(34px,9.4vw,43px)!important;
    line-height:1.08!important;
    letter-spacing:-.045em!important;
  }
  #home .hero-question{
    max-width:20em!important;
    font-size:clamp(17px,4.6vw,20px)!important;
    line-height:1.5!important;
  }
  #home .hero-copy{
    max-width:29em!important;
    font-size:12.5px!important;
    line-height:1.68!important;
  }
  #home .hero-actions{
    width:min(350px,100%)!important;
  }
  #home #start{
    font-size:14px!important;
  }
}


/* 20260923 final-result mobile spacing + wrapping pass */
@media(max-width:767px){
  /* Scene 01 — remove the large dead band after the share button. */
  #result .result-hero-scene{
    min-height:0!important;
    display:block!important;
    padding:22px 0 32px!important;
    overflow:hidden!important;
  }
  #result .result-hero-stage{
    padding-top:0!important;
    padding-bottom:0!important;
    gap:12px!important;
  }
  #result .result-hero-visual{
    min-height:300px!important;
    margin:0!important;
  }
  #result .result-character-stage{
    width:min(76vw,318px)!important;
    margin-top:0!important;
  }
  #result .result-popline{
    margin-top:-8px!important;
  }
  #result .result-hero-copy .section-note{
    margin-bottom:7px!important;
  }
  #result .result-hero-copy .subhero{
    margin-top:14px!important;
    padding-left:13px!important;
  }
  #result .result-hero-copy .verdict-text{
    margin-top:16px!important;
  }
  #result .result-hero-copy .tags{
    margin-top:11px!important;
  }
  #result .result-share-hero{
    min-height:52px!important;
    margin-top:15px!important;
  }
  #result .result-scroll-cue{
    display:none!important;
  }

  /* Jump nav sits immediately after Scene 01 instead of floating in empty space. */
  #result .result-jump{
    position:sticky!important;
    top:58px!important;
    margin:0 auto!important;
    padding:5px!important;
    width:calc(100% - 32px)!important;
    transform:none!important;
  }

  /* Scene 02 — character and copy belong to one compact scene. */
  #result .aruaru-section{
    padding:38px 0 52px!important;
  }
  #result .aruaru-stage{
    grid-template-columns:1fr!important;
    gap:16px!important;
    padding-top:0!important;
    padding-bottom:0!important;
  }
  #result .aruaru-visual{
    position:relative!important;
    top:auto!important;
    min-height:286px!important;
    margin:0 0 18px!important;
  }
  #result .aruaru-blob{
    width:min(74vw,296px)!important;
  }
  #result .aruaru-character{
    width:min(70vw,282px)!important;
  }
  #result .hand-note{
    right:7%!important;
    bottom:3%!important;
    font-size:9px!important;
  }
  #result .aruaru-content h2{
    max-width:none!important;
    margin:5px 0 10px!important;
    font-size:clamp(32px,8.5vw,38px)!important;
    line-height:1.12!important;
    letter-spacing:-.04em!important;
    word-break:keep-all!important;
    overflow-wrap:normal!important;
    text-wrap:balance!important;
  }
  #result .aruaru-content>.lead{
    margin-bottom:22px!important;
    max-width:32em!important;
    font-size:12.5px!important;
    line-height:1.7!important;
  }

  /* "あるある" — stop one-character orphan lines. */
  #result .aru{
    min-height:0!important;
    padding:18px 4px 18px 48px!important;
    font-size:clamp(20px,5.5vw,24px)!important;
    line-height:1.48!important;
    letter-spacing:-.025em!important;
    text-wrap:pretty!important;
    line-break:strict!important;
  }
  #result .aru:before{
    left:1px!important;
    font-size:10px!important;
  }
  #result .aru:after{
    left:19px!important;
    top:19px!important;
  }

  /* Quick summary — no label/title collision. */
  #result .result-quick{
    margin-top:24px!important;
  }
  #result .result-quick-head{
    display:grid!important;
    grid-template-columns:1fr!important;
    align-items:start!important;
    gap:3px!important;
    margin-bottom:5px!important;
    padding-bottom:10px!important;
  }
  #result .result-quick-head span{
    font-size:9px!important;
    line-height:1.3!important;
  }
  #result .result-quick-head b{
    min-width:0!important;
    font-size:18px!important;
    line-height:1.3!important;
    word-break:keep-all!important;
    overflow-wrap:normal!important;
  }
  #result .quick-summary{
    gap:0!important;
  }
  #result .quick-point,
  #result .quick-point+.quick-point{
    min-height:0!important;
    padding:15px 0!important;
  }
  #result .quick-point b{
    font-size:19px!important;
    line-height:1.35!important;
    word-break:keep-all!important;
  }
  #result .quick-point p{
    font-size:11.5px!important;
    line-height:1.62!important;
  }
  #result .mid-share{
    margin-top:34px!important;
  }
  #result .modes-section{
    padding-bottom:48px!important;
  }

  /* Scene 04 — compact cards and only intentional name breaks. */
  #result .compat-section{
    padding:48px 0 52px!important;
  }
  #result .compat-stage{
    gap:18px!important;
  }
  #result .compat-good{
    gap:12px!important;
  }
  #result .compat-good .compat-card,
  #result .compat-good .compat-card:nth-child(n){
    grid-template-columns:minmax(0,1fr) 106px!important;
    min-height:176px!important;
    padding:56px 12px 13px 16px!important;
    border-radius:25px!important;
  }
  #result .compat-good .compat-rank{
    left:14px!important;
    top:13px!important;
    width:56px!important;
    height:56px!important;
    min-width:56px!important;
  }
  #result .compat-good .compat-rank:after{
    font-size:19px!important;
  }
  #result .compat-good .compat-head{
    right:8px!important;
    bottom:7px!important;
    width:104px!important;
    height:116px!important;
  }
  #result .compat-good .compat-character{
    width:100px!important;
    height:100px!important;
  }
  #result .compat-good .relation-label{
    left:66px!important;
    top:-43px!important;
    width:calc(100% - 72px)!important;
    font-size:10.5px!important;
  }
  #result .compat-good .cname,
  #result .compat-bad .cname{
    word-break:keep-all!important;
    overflow-wrap:normal!important;
    line-break:strict!important;
    text-wrap:balance!important;
  }
  #result .compat-good .cname{
    margin-bottom:6px!important;
    font-size:clamp(18px,5.1vw,21px)!important;
    line-height:1.16!important;
  }
  #result .compat-good .reason{
    max-width:16em!important;
    font-size:11.8px!important;
    line-height:1.58!important;
  }
  #result .mismatch-disclosure{
    margin-top:10px!important;
  }
  #result .compat-bad .compat-card{
    grid-template-columns:58px minmax(0,1fr) 14px!important;
    gap:10px!important;
    padding:14px 4px!important;
  }
  #result .compat-bad .cname{
    font-size:18px!important;
    line-height:1.22!important;
  }
  #result .compat-bad .reason{
    font-size:11.5px!important;
    line-height:1.55!important;
  }
  #result .compat-bad .tip{
    font-size:11px!important;
    line-height:1.55!important;
  }

  /* Final share — intentional heading break and no character/text collision. */
  #result .result-final{
    min-height:0!important;
    margin-top:0!important;
    padding:52px 0 48px!important;
  }
  #result .final-share-inner{
    padding-top:0!important;
    padding-bottom:0!important;
  }
  #result .final-share-copy .section-note{
    font-size:9px!important;
    line-height:1.35!important;
  }
  #result .final-share-copy h2{
    max-width:none!important;
    margin:9px 0 12px!important;
    font-size:clamp(43px,11.4vw,54px)!important;
    line-height:1.03!important;
    letter-spacing:-.05em!important;
    word-break:keep-all!important;
  }
  #result .final-share-copy p{
    max-width:25em!important;
    font-size:13.5px!important;
    line-height:1.68!important;
  }
  #result .share-preview{
    margin-top:18px!important;
    padding:14px 15px!important;
  }
  #result .share-preview b{
    font-size:17px!important;
    line-height:1.38!important;
  }
  #result .final-share .share-grid{
    margin-top:12px!important;
    gap:8px!important;
  }
  #result .final-share .share-choice{
    min-height:50px!important;
  }
  #result .final-actions{
    margin-top:10px!important;
    gap:8px!important;
  }
  #result .final-friend-start,
  #result .final-actions .save-image{
    min-height:56px!important;
  }
  #result .final-friend-start{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:10px!important;
    line-height:1.2!important;
  }
  #result .final-friend-start span{
    display:inline!important;
    font-size:18px!important;
    line-height:1!important;
  }
  #result .final-actions .retry-action{
    min-height:40px!important;
    margin-top:0!important;
    padding:0!important;
    line-height:1.4!important;
  }
  #result .share-privacy{
    margin-top:10px!important;
    padding-right:104px!important;
    font-size:9.5px!important;
    line-height:1.55!important;
  }
  #result .final-share-art{
    right:-12px!important;
    bottom:14px!important;
    width:148px!important;
    height:166px!important;
    opacity:.9!important;
  }
  #result .final-share-art span{
    inset:24% -18% -14% 0!important;
  }
  #result .final-wave{
    bottom:-158px!important;
    height:205px!important;
  }
}

@media(max-width:374px){
  #result .result-hero-visual{min-height:270px!important}
  #result .result-character-stage{width:min(74vw,280px)!important}
  #result .aruaru-visual{min-height:258px!important}
  #result .aruaru-character{width:min(68vw,250px)!important}
  #result .aruaru-blob{width:min(72vw,265px)!important}
  #result .aru{font-size:19px!important;padding-left:45px!important}
  #result .compat-good .compat-card,
  #result .compat-good .compat-card:nth-child(n){
    grid-template-columns:minmax(0,1fr) 92px!important;
    min-height:170px!important;
  }
  #result .compat-good .compat-head{
    width:92px!important;
    height:108px!important;
  }
  #result .compat-good .compat-character{
    width:88px!important;
    height:88px!important;
  }
  #result .compat-good .cname{
    font-size:17px!important;
  }
  #result .share-privacy{
    padding-right:88px!important;
  }
  #result .final-share-art{
    width:126px!important;
    height:144px!important;
  }
}


/* 20260924 result compatibility showcase + share icon cleanup */
@media(max-width:767px){
  /* Diagnosis result TOP3: same illustrated feel as the richer character-page cards. */
  #result .compat-good{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
  }
  #result .compat-good .compat-card,
  #result .compat-good .compat-card:nth-child(n){
    position:relative!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 118px!important;
    align-items:end!important;
    min-height:205px!important;
    padding:62px 14px 14px 16px!important;
    overflow:hidden!important;
    border:1px solid rgba(53,39,61,.055)!important;
    border-radius:28px!important;
    box-shadow:0 12px 30px rgba(53,39,61,.05)!important;
    transform:none!important;
  }
  #result .compat-good .compat-card:before{
    content:"";
    position:absolute;
    z-index:0;
    right:82px;
    top:54px;
    width:116px;
    height:60px;
    border-radius:999px;
    opacity:.42;
  }
  #result .compat-good .compat-body{
    position:relative!important;
    z-index:2!important;
    min-width:0!important;
    align-self:end!important;
  }
  #result .compat-good .compat-rank{
    position:absolute!important;
    z-index:3!important;
    left:14px!important;
    top:14px!important;
    display:grid!important;
    place-items:center!important;
    width:58px!important;
    height:58px!important;
    min-width:58px!important;
    padding:0!important;
    border-radius:50%!important;
    color:#fff!important;
    font-size:20px!important;
    font-weight:950!important;
    box-shadow:0 7px 16px rgba(53,39,61,.08)!important;
  }
  #result .compat-good .compat-rank:after{
    content:"位";
    margin-left:1px;
    font-size:12px;
    font-weight:900;
  }
  #result .compat-good .compat-head{
    position:absolute!important;
    z-index:2!important;
    right:10px!important;
    bottom:10px!important;
    display:grid!important;
    place-items:end center!important;
    width:114px!important;
    height:132px!important;
  }
  #result .compat-good .compat-character{
    width:110px!important;
    height:110px!important;
    object-fit:contain!important;
    filter:drop-shadow(0 9px 14px rgba(53,39,61,.08))!important;
  }
  #result .compat-good .relation-label{
    position:absolute!important;
    left:70px!important;
    top:-49px!important;
    width:calc(100% - 78px)!important;
    color:var(--char,#3d6d48)!important;
    font-size:11px!important;
    font-weight:900!important;
    line-height:1.25!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  #result .compat-good .cname{
    margin:0 0 7px!important;
    max-width:100%!important;
    color:var(--char,#274f79)!important;
    font-size:clamp(19px,5.2vw,22px)!important;
    line-height:1.15!important;
    word-break:keep-all!important;
    overflow-wrap:normal!important;
  }
  #result .compat-good .reason{
    display:block!important;
    max-width:16em!important;
    margin:0!important;
    color:#59535c!important;
    font-size:11.8px!important;
    line-height:1.58!important;
  }
  #result .compat-good .compat-tags{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:6px!important;
    max-width:calc(100% + 82px)!important;
    margin-top:10px!important;
  }
  #result .compat-good .compat-tags span{
    display:inline-flex!important;
    align-items:center!important;
    min-height:27px!important;
    padding:0 10px!important;
    border-radius:999px!important;
    background:color-mix(in srgb,var(--charsoft,#eee),white 8%)!important;
    color:var(--char,#514a53)!important;
    font-size:10px!important;
    font-weight:850!important;
    white-space:nowrap!important;
  }
  #result .compat-good .arrow{display:none!important}

  #result .compat-good .theme-chameleon{--char:#5fa94b;--charsoft:#e2f2d9;background:linear-gradient(145deg,#f7fcf3,#f2f8ee)!important}
  #result .compat-good .theme-chameleon:before{background:#dcefd1}
  #result .compat-good .theme-chameleon .compat-rank{background:linear-gradient(180deg,#7ec865,#58aa45)!important}

  #result .compat-good .theme-hari{--char:#9a705a;--charsoft:#f1dfd4;background:linear-gradient(145deg,#fffaf6,#faf1eb)!important}
  #result .compat-good .theme-hari:before{background:#f0ded2}
  #result .compat-good .theme-hari .compat-rank{background:linear-gradient(180deg,#c89b7b,#aa795d)!important}

  #result .compat-good .theme-guma{--char:#876348;--charsoft:#efe0d3;background:linear-gradient(145deg,#fffaf7,#f7efe9)!important}
  #result .compat-good .theme-guma:before{background:#ecddd0}
  #result .compat-good .theme-guma .compat-rank{background:linear-gradient(180deg,#b99a7c,#96755a)!important}

  #result .compat-good .theme-wanko{--char:#a86f15;--charsoft:#fff0c8;background:linear-gradient(145deg,#fffdf5,#fff6dd)!important}
  #result .compat-good .theme-wanko:before{background:#fff0c8}
  #result .compat-good .theme-wanko .compat-rank{background:linear-gradient(180deg,#f4be35,#dc951f)!important}

  #result .compat-good .theme-neko{--char:#5c5ac0;--charsoft:#e9e7ff;background:linear-gradient(145deg,#fbfaff,#f2f0ff)!important}
  #result .compat-good .theme-neko:before{background:#e6e4ff}
  #result .compat-good .theme-neko .compat-rank{background:linear-gradient(180deg,#989bf0,#7279d8)!important}

  #result .compat-good .theme-risu{--char:#c66f34;--charsoft:#f9dfce;background:linear-gradient(145deg,#fffaf6,#fff0e6)!important}
  #result .compat-good .theme-risu:before{background:#f8dfce}
  #result .compat-good .theme-risu .compat-rank{background:linear-gradient(180deg,#eca15b,#d77c39)!important}

  #result .compat-good .theme-cheetah{--char:#c7871e;--charsoft:#f9e5b8;background:linear-gradient(145deg,#fffdf5,#fff3db)!important}
  #result .compat-good .theme-cheetah:before{background:#f9e4b7}
  #result .compat-good .theme-cheetah .compat-rank{background:linear-gradient(180deg,#f2b751,#d68b22)!important}

  #result .compat-good .theme-kurage{--char:#6683bc;--charsoft:#e2ebfb;background:linear-gradient(145deg,#fbfdff,#f0f5ff)!important}
  #result .compat-good .theme-kurage:before{background:#e0ebfc}
  #result .compat-good .theme-kurage .compat-rank{background:linear-gradient(180deg,#9db9e5,#7294cb)!important}

  /* User-provided social app icons. */
  #result .share-choice img{
    width:25px!important;
    height:25px!important;
    flex:none!important;
    object-fit:cover!important;
    border-radius:7px!important;
  }
  #result .share-choice.share-instagram img{border-radius:7px!important}
  #result .final-share .share-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }

  /* Bottom overlap fix: reserve a clean illustration zone under all text/actions. */
  #result .final-share-inner{
    padding-bottom:148px!important;
  }
  #result .share-privacy{
    width:100%!important;
    max-width:100%!important;
    padding-right:0!important;
    margin-top:10px!important;
    position:relative!important;
    z-index:5!important;
  }
  #result .final-share-art{
    right:-4px!important;
    bottom:10px!important;
    width:136px!important;
    height:136px!important;
    z-index:3!important;
  }
  #result .final-share-art span{
    inset:12% -18% -18% -4%!important;
    opacity:.48!important;
  }
  #result .final-share-art img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
  }
}

@media(max-width:374px){
  #result .compat-good .compat-card,
  #result .compat-good .compat-card:nth-child(n){
    grid-template-columns:minmax(0,1fr) 98px!important;
    min-height:198px!important;
    padding-right:10px!important;
  }
  #result .compat-good .compat-head{
    width:98px!important;
    height:116px!important;
  }
  #result .compat-good .compat-character{
    width:94px!important;
    height:94px!important;
  }
  #result .compat-good .cname{font-size:18px!important}
  #result .compat-good .reason{font-size:11.2px!important}
  #result .compat-good .compat-tags span{
    min-height:25px!important;
    padding-inline:8px!important;
    font-size:9.5px!important;
  }
  #result .final-share-inner{padding-bottom:132px!important}
  #result .final-share-art{width:118px!important;height:118px!important}
}


/* 20260924 exact character-card result + compact final share */
@media(max-width:767px){
  /* GOOD compatibility = same card composition as character detail pages. */
  #result .compat-good{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
    min-height:0!important;
  }
  #result .compat-good .compat-card-showcase{
    position:relative!important;
    isolation:isolate!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 112px!important;
    align-items:end!important;
    gap:8px!important;
    min-height:202px!important;
    height:auto!important;
    margin:0!important;
    padding:16px 14px 14px 16px!important;
    overflow:hidden!important;
    border:1px solid rgba(53,39,61,.06)!important;
    border-radius:27px!important;
    box-shadow:0 12px 25px rgba(53,39,61,.055)!important;
    text-align:left!important;
    transform:none!important;
  }
  #result .compat-good .compat-card-showcase::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:1;
    background:linear-gradient(90deg,rgba(255,255,255,.97),rgba(255,255,255,.9) 48%,rgba(255,255,255,.35) 78%,transparent);
  }
  #result .compat-card-showcase .compat-copy,
  #result .compat-card-showcase .compat-media,
  #result .compat-card-showcase .rank-badge,
  #result .compat-card-showcase .scribble,
  #result .compat-card-showcase .compat-motif,
  #result .compat-card-showcase .blob{position:relative;z-index:2}
  #result .compat-card-showcase .compat-copy{
    display:grid!important;
    align-self:end!important;
    gap:7px!important;
    min-width:0!important;
    padding-top:60px!important;
  }
  #result .compat-card-showcase .cname{
    display:block!important;
    margin:0!important;
    font-size:20px!important;
    line-height:1.16!important;
    letter-spacing:-.03em!important;
    font-weight:900!important;
    white-space:nowrap!important;
    word-break:keep-all!important;
    overflow-wrap:normal!important;
  }
  #result .compat-card-showcase .reason{
    display:block!important;
    margin:0!important;
    max-width:15em!important;
    font-size:12.5px!important;
    line-height:1.55!important;
    color:#554f59!important;
    text-wrap:pretty!important;
  }
  #result .compat-card-showcase .compat-tags{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:6px!important;
    margin-top:0!important;
  }
  #result .compat-card-showcase .compat-tags i{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:28px!important;
    padding:0 10px!important;
    border-radius:999px!important;
    font-style:normal!important;
    font-size:11px!important;
    font-weight:800!important;
    white-space:nowrap!important;
  }
  #result .compat-card-showcase .compat-media{
    display:grid!important;
    place-items:end!important;
    align-self:end!important;
    justify-self:end!important;
  }
  #result .compat-card-showcase .compat-media img{
    width:108px!important;
    height:auto!important;
    max-height:128px!important;
    margin:0!important;
    object-fit:contain!important;
    filter:drop-shadow(0 10px 15px rgba(53,39,61,.09))!important;
    animation:none!important;
  }
  #result .compat-card-showcase .rank-badge{
    position:absolute!important;
    top:14px!important;
    left:14px!important;
    display:inline-flex!important;
    align-items:center!important;
    gap:1px!important;
    min-width:58px!important;
    width:auto!important;
    height:58px!important;
    padding:0 11px!important;
    border-radius:999px!important;
    font-weight:900!important;
    box-shadow:0 7px 14px rgba(53,39,61,.07)!important;
  }
  #result .compat-card-showcase .rank-badge b{font-size:31px!important;line-height:1!important}
  #result .compat-card-showcase .rank-badge small{font-size:17px!important;line-height:1!important;margin-top:7px!important}
  #result .compat-card-showcase .compat-motif{
    position:absolute!important;
    top:16px!important;
    right:14px!important;
    width:17px!important;
    height:17px!important;
    opacity:.24!important;
  }
  #result .compat-card-showcase .scribble{
    position:absolute!important;
    font-size:12px!important;
    line-height:1.25!important;
    font-weight:900!important;
    letter-spacing:.02em!important;
    opacity:.96!important;
  }
  #result .compat-card-showcase .scribble-top{
    top:24px!important;
    left:84px!important;
    right:42px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  #result .compat-card-showcase .blob{
    position:absolute!important;
    border-radius:999px!important;
    opacity:.22!important;
  }
  #result .compat-card-showcase .blob-a{width:118px!important;height:54px!important;left:-16px!important;bottom:-10px!important}
  #result .compat-card-showcase .blob-b{width:88px!important;height:46px!important;right:88px!important;top:54px!important}
  #result .compat-card-showcase .blob-c{width:44px!important;height:44px!important;right:52px!important;bottom:26px!important;opacity:.10!important}
  #result .compat-card-showcase .arrow{display:none!important}

  #result .compat-card-showcase.theme-wanko{background:linear-gradient(180deg,#fffdf7,#fff9f0)!important;--blob:#f3de8d}
  #result .compat-card-showcase.theme-wanko .rank-badge{background:linear-gradient(180deg,#f3b839,#d89524)!important;color:#fff!important}
  #result .compat-card-showcase.theme-wanko .compat-tags i{background:#f7ebbb!important;color:#774b1c!important}
  #result .compat-card-showcase.theme-wanko .scribble{color:#bf6b1d!important}
  #result .compat-card-showcase.theme-wanko .blob{background:var(--blob)!important}
  #result .compat-card-showcase.theme-wanko .cname{color:#243e74!important}

  #result .compat-card-showcase.theme-neko{background:linear-gradient(180deg,#f8f7ff,#f3f1ff)!important;--blob:#c9d0ff}
  #result .compat-card-showcase.theme-neko .rank-badge{background:linear-gradient(180deg,#a0a6ee,#8088d5)!important;color:#fff!important}
  #result .compat-card-showcase.theme-neko .compat-tags i{background:#dfe1ff!important;color:#434aa8!important}
  #result .compat-card-showcase.theme-neko .scribble{color:#5a61d2!important}
  #result .compat-card-showcase.theme-neko .blob{background:var(--blob)!important}
  #result .compat-card-showcase.theme-neko .cname{color:#283e7b!important}

  #result .compat-card-showcase.theme-risu{background:linear-gradient(180deg,#fffaf4,#fff7f0)!important;--blob:#f4dbc5}
  #result .compat-card-showcase.theme-risu .rank-badge{background:linear-gradient(180deg,#e4a163,#cd7b44)!important;color:#fff!important}
  #result .compat-card-showcase.theme-risu .compat-tags i{background:#f7dece!important;color:#8a542a!important}
  #result .compat-card-showcase.theme-risu .scribble{color:#d3723e!important}
  #result .compat-card-showcase.theme-risu .blob{background:var(--blob)!important}
  #result .compat-card-showcase.theme-risu .cname{color:#7e4e2d!important}

  #result .compat-card-showcase.theme-chameleon{background:linear-gradient(180deg,#f6fbf6,#eef8ef)!important;--blob:#cfe9cf}
  #result .compat-card-showcase.theme-chameleon .rank-badge{background:linear-gradient(180deg,#86c76e,#5ea84c)!important;color:#fff!important}
  #result .compat-card-showcase.theme-chameleon .compat-tags i{background:#deefd8!important;color:#3c6b36!important}
  #result .compat-card-showcase.theme-chameleon .scribble{color:#5b9b4f!important}
  #result .compat-card-showcase.theme-chameleon .blob{background:var(--blob)!important}
  #result .compat-card-showcase.theme-chameleon .cname{color:#2d6b3e!important}

  #result .compat-card-showcase.theme-guma{background:linear-gradient(180deg,#faf6f2,#f7f0ea)!important;--blob:#ead9c9}
  #result .compat-card-showcase.theme-guma .rank-badge{background:linear-gradient(180deg,#b69a80,#96765f)!important;color:#fff!important}
  #result .compat-card-showcase.theme-guma .compat-tags i{background:#efe2d6!important;color:#6c4f3d!important}
  #result .compat-card-showcase.theme-guma .scribble{color:#916d52!important}
  #result .compat-card-showcase.theme-guma .blob{background:var(--blob)!important}
  #result .compat-card-showcase.theme-guma .cname{color:#6a4d3d!important}

  #result .compat-card-showcase.theme-hari{background:linear-gradient(180deg,#fcfaf6,#faf4ef)!important;--blob:#eedfcf}
  #result .compat-card-showcase.theme-hari .rank-badge{background:linear-gradient(180deg,#c69a7c,#a97858)!important;color:#fff!important}
  #result .compat-card-showcase.theme-hari .compat-tags i{background:#f3e4d6!important;color:#80583e!important}
  #result .compat-card-showcase.theme-hari .scribble{color:#ab7150!important}
  #result .compat-card-showcase.theme-hari .blob{background:var(--blob)!important}
  #result .compat-card-showcase.theme-hari .cname{color:#6f4d3c!important}

  #result .compat-card-showcase.theme-cheetah{background:linear-gradient(180deg,#fff9f3,#fff3e3)!important;--blob:#f4d4a5}
  #result .compat-card-showcase.theme-cheetah .rank-badge{background:linear-gradient(180deg,#f1b152,#d98d23)!important;color:#fff!important}
  #result .compat-card-showcase.theme-cheetah .compat-tags i{background:#f6e1bc!important;color:#925c11!important}
  #result .compat-card-showcase.theme-cheetah .scribble{color:#dd8820!important}
  #result .compat-card-showcase.theme-cheetah .blob{background:var(--blob)!important}
  #result .compat-card-showcase.theme-cheetah .cname{color:#955718!important}

  #result .compat-card-showcase.theme-kurage{background:linear-gradient(180deg,#f8fcff,#f2f8ff)!important;--blob:#d7e7ff}
  #result .compat-card-showcase.theme-kurage .rank-badge{background:linear-gradient(180deg,#8fc8ee,#69addd)!important;color:#fff!important}
  #result .compat-card-showcase.theme-kurage .compat-tags i{background:#e1efff!important;color:#486ea6!important}
  #result .compat-card-showcase.theme-kurage .scribble{color:#5c93c6!important}
  #result .compat-card-showcase.theme-kurage .blob{background:var(--blob)!important}
  #result .compat-card-showcase.theme-kurage .cname{color:#4369a0!important}

  /* Final share = strict 2x2: LINE / X, Instagram / Copy link. */
  #result .final-share .share-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  #result .final-share .share-grid .share-choice,
  #result .final-share .share-grid .share-choice:last-child,
  #result .final-share .share-grid .share-copy{
    grid-column:auto!important;
    width:auto!important;
    min-width:0!important;
  }

  /* Replace "friend diagnosis" with account-save CTA, keeping the same visual emphasis. */
  #result .final-save-account{
    order:1!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:10px!important;
    width:100%!important;
    min-height:56px!important;
    margin:0!important;
    padding:0 18px!important;
    border:0!important;
    border-radius:18px!important;
    background:var(--lime)!important;
    color:#30233a!important;
    font:inherit!important;
    font-size:15px!important;
    font-weight:900!important;
    line-height:1.2!important;
    cursor:pointer;
  }
  #result .final-save-account span{
    display:inline!important;
    font-size:18px!important;
    line-height:1!important;
  }
  #result .final-actions .save-image{order:2!important}
  #result .final-actions .retry-action{order:3!important}
}

@media(max-width:374px){
  #result .compat-good .compat-card-showcase{
    grid-template-columns:minmax(0,1fr) 92px!important;
    min-height:196px!important;
    padding:14px 11px 12px 13px!important;
  }
  #result .compat-card-showcase .compat-copy{padding-top:56px!important;gap:6px!important}
  #result .compat-card-showcase .cname{font-size:17.5px!important}
  #result .compat-card-showcase .reason{font-size:12px!important;max-width:14em!important}
  #result .compat-card-showcase .compat-media img{width:90px!important;max-height:108px!important}
  #result .compat-card-showcase .scribble-top{display:none!important}
  #result .compat-card-showcase .compat-tags i{font-size:10.5px!important;padding:0 8px!important;min-height:27px!important}
}


/* 20260924 remove compat dead-space + upcoming type teasers */
@media(max-width:767px){
  /* Remove the unexplained vertical dead-space inside GOOD compatibility cards. */
  #result .compat-good .compat-card-showcase{
    grid-template-columns:minmax(0,1fr) 104px!important;
    min-height:174px!important;
    padding:12px 12px 12px 16px!important;
    align-items:start!important;
  }
  #result .compat-card-showcase .compat-copy{
    align-self:start!important;
    padding-top:54px!important;
    gap:5px!important;
  }
  #result .compat-card-showcase .rank-badge{
    top:12px!important;
    left:14px!important;
    min-width:54px!important;
    height:54px!important;
  }
  #result .compat-card-showcase .rank-badge b{font-size:28px!important}
  #result .compat-card-showcase .rank-badge small{font-size:15px!important}
  #result .compat-card-showcase .scribble-top{
    top:20px!important;
    left:82px!important;
    right:34px!important;
  }
  #result .compat-card-showcase .cname{
    font-size:19px!important;
    line-height:1.12!important;
  }
  #result .compat-card-showcase .reason{
    max-width:16em!important;
    font-size:11.5px!important;
    line-height:1.5!important;
  }
  #result .compat-card-showcase .compat-tags{
    gap:5px!important;
    margin-top:2px!important;
  }
  #result .compat-card-showcase .compat-tags i{
    min-height:25px!important;
    padding:0 9px!important;
    font-size:10px!important;
  }
  #result .compat-card-showcase .compat-media{
    position:absolute!important;
    right:10px!important;
    bottom:10px!important;
    width:104px!important;
    height:112px!important;
    place-items:end center!important;
  }
  #result .compat-card-showcase .compat-media img{
    width:100px!important;
    max-height:108px!important;
  }
  #result .compat-card-showcase .blob-b{
    top:42px!important;
    right:72px!important;
  }

  /* Use the previously empty lower-left final area for upcoming MATE series. */
  #result .future-type-teasers{
    position:relative!important;
    z-index:5!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    width:calc(100% - 138px)!important;
    max-width:260px!important;
    margin-top:16px!important;
    margin-bottom:0!important;
  }
  #result .future-type-card{
    min-width:0!important;
    min-height:74px!important;
    padding:10px 10px 9px!important;
    border:1px solid rgba(255,255,255,.16)!important;
    border-radius:16px!important;
    background:rgba(255,255,255,.07)!important;
    backdrop-filter:blur(7px)!important;
    color:#fff!important;
  }
  #result .future-type-card span{
    display:block!important;
    margin-bottom:3px!important;
    color:#cfc4d2!important;
    font-size:7.5px!important;
    font-weight:900!important;
    letter-spacing:.14em!important;
  }
  #result .future-type-card b{
    display:block!important;
    color:#fff!important;
    font-size:11px!important;
    line-height:1.15!important;
    letter-spacing:.02em!important;
    white-space:nowrap!important;
  }
  #result .future-type-card small{
    display:inline-block!important;
    margin-top:8px!important;
    padding:3px 7px!important;
    border-radius:999px!important;
    background:rgba(255,255,255,.12)!important;
    color:#e8e0ea!important;
    font-size:8.5px!important;
    font-weight:800!important;
  }
  #result .future-love{
    background:linear-gradient(135deg,rgba(244,172,192,.13),rgba(255,255,255,.055))!important;
  }
  #result .future-work{
    background:linear-gradient(135deg,rgba(151,178,221,.13),rgba(255,255,255,.055))!important;
  }

  /* Keep final composition compact now that the blank area has content. */
  #result .final-share-inner{
    padding-bottom:118px!important;
  }
  #result .final-share-art{
    bottom:4px!important;
  }
}

@media(max-width:374px){
  #result .compat-good .compat-card-showcase{
    grid-template-columns:minmax(0,1fr) 88px!important;
    min-height:168px!important;
  }
  #result .compat-card-showcase .compat-copy{padding-top:50px!important}
  #result .compat-card-showcase .compat-media{
    width:88px!important;
    height:100px!important;
  }
  #result .compat-card-showcase .compat-media img{
    width:86px!important;
    max-height:96px!important;
  }
  #result .future-type-teasers{
    width:calc(100% - 120px)!important;
    gap:6px!important;
  }
  #result .future-type-card{
    min-height:68px!important;
    padding:9px 8px 8px!important;
  }
  #result .future-type-card b{font-size:10px!important}
}


/* 20260924 mismatch cards: no-overlap mobile layout */
@media(max-width:767px){
  #result .compat-bad{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
    margin-top:14px!important;
  }

  #result .compat-bad .compat-card,
  #result .compat-bad .compat-card:nth-child(n){
    position:relative!important;
    display:grid!important;
    grid-template-columns:52px minmax(0,1fr) 78px!important;
    grid-template-areas:"rank body art"!important;
    align-items:center!important;
    column-gap:10px!important;
    row-gap:0!important;
    min-height:154px!important;
    height:auto!important;
    margin:0!important;
    padding:14px!important;
    overflow:hidden!important;
    border:1px solid rgba(88,118,163,.16)!important;
    border-radius:24px!important;
    background:rgba(255,253,249,.86)!important;
    box-shadow:none!important;
    transform:none!important;
  }

  #result .compat-bad .compat-rank,
  #result .compat-bad .bad-rank{
    grid-area:rank!important;
    position:static!important;
    inset:auto!important;
    align-self:start!important;
    display:grid!important;
    place-items:center!important;
    width:48px!important;
    height:48px!important;
    min-width:48px!important;
    margin:0!important;
    padding:0!important;
    border-radius:50%!important;
    background:#9bb1d4!important;
    color:#fff!important;
    font-size:20px!important;
    font-weight:900!important;
    line-height:1!important;
  }

  #result .compat-bad .compat-head{
    grid-area:art!important;
    position:static!important;
    inset:auto!important;
    display:grid!important;
    place-items:center!important;
    align-self:center!important;
    justify-self:end!important;
    width:76px!important;
    height:92px!important;
    margin:0!important;
    padding:0!important;
  }

  #result .compat-bad .compat-character{
    position:static!important;
    inset:auto!important;
    display:block!important;
    width:74px!important;
    height:74px!important;
    max-width:74px!important;
    max-height:74px!important;
    margin:0!important;
    object-fit:contain!important;
    filter:none!important;
    transform:none!important;
  }

  #result .compat-bad .compat-body{
    grid-area:body!important;
    position:static!important;
    inset:auto!important;
    display:grid!important;
    align-content:start!important;
    gap:5px!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
  }

  #result .compat-bad .relation-label{
    position:static!important;
    inset:auto!important;
    width:auto!important;
    margin:0!important;
    padding:0!important;
    color:#7893bd!important;
    font-size:10.5px!important;
    font-weight:900!important;
    line-height:1.35!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }

  #result .compat-bad .cname{
    position:static!important;
    width:auto!important;
    margin:0!important;
    color:#244b7e!important;
    font-size:19px!important;
    font-weight:500!important;
    line-height:1.22!important;
    letter-spacing:-.025em!important;
    word-break:keep-all!important;
    overflow-wrap:normal!important;
  }

  #result .compat-bad .reason{
    position:static!important;
    width:auto!important;
    max-width:none!important;
    margin:2px 0 0!important;
    padding:0!important;
    color:#586575!important;
    font-size:11.5px!important;
    line-height:1.55!important;
  }

  #result .compat-bad .tip{
    position:static!important;
    width:auto!important;
    max-width:none!important;
    margin:5px 0 0!important;
    padding:7px 0 0!important;
    border-top:1px dashed rgba(88,118,163,.2)!important;
    color:#315c93!important;
    font-size:10.5px!important;
    font-weight:800!important;
    line-height:1.5!important;
  }

  #result .compat-bad .arrow{
    display:none!important;
  }
}

@media(max-width:374px){
  #result .compat-bad .compat-card,
  #result .compat-bad .compat-card:nth-child(n){
    grid-template-columns:46px minmax(0,1fr) 66px!important;
    column-gap:8px!important;
    min-height:148px!important;
    padding:12px!important;
  }
  #result .compat-bad .compat-rank,
  #result .compat-bad .bad-rank{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    font-size:18px!important;
  }
  #result .compat-bad .compat-head{
    width:64px!important;
    height:82px!important;
  }
  #result .compat-bad .compat-character{
    width:62px!important;
    height:62px!important;
    max-width:62px!important;
    max-height:62px!important;
  }
  #result .compat-bad .cname{font-size:17px!important}
  #result .compat-bad .reason{font-size:10.8px!important}
  #result .compat-bad .tip{font-size:10px!important}
}


/* 20260926seriesdetail1: denser result compatibility cards, aligned with character detail pages */
@media(max-width:767px){
  #result .compat-good .compat-card-showcase{
    grid-template-columns:minmax(0,1fr) 122px!important;
    min-height:196px!important;
    padding:14px 14px 14px 16px!important;
  }
  #result .compat-card-showcase .compat-copy{
    padding-top:56px!important;
    gap:6px!important;
  }
  #result .compat-card-showcase .cname{
    white-space:normal!important;
    font-size:20px!important;
    line-height:1.14!important;
    max-width:13em!important;
  }
  #result .compat-card-showcase .reason{
    max-width:16em!important;
    font-size:12.2px!important;
    line-height:1.52!important;
  }
  #result .compat-card-showcase .compat-tags{
    gap:5px!important;
  }
  #result .compat-card-showcase .compat-tags i{
    min-height:27px!important;
    padding:0 9px!important;
    font-size:10.5px!important;
  }
  #result .compat-card-showcase .compat-media{
    right:8px!important;
    bottom:8px!important;
    width:122px!important;
    height:138px!important;
    place-items:end center!important;
  }
  #result .compat-card-showcase .compat-media img{
    width:118px!important;
    max-height:132px!important;
  }
  #result .compat-card-showcase .blob-b{
    width:104px!important;
    height:54px!important;
    right:48px!important;
    top:54px!important;
  }
}


/* 20260926compatfill2: make result TOP3 cards use the same dense composition as FRIEND character detail cards */
@media(max-width:767px){
  #result .compat-good{
    gap:12px!important;
  }
  #result .compat-good .compat-card-showcase{
    grid-template-columns:minmax(0,1fr) 128px!important;
    min-height:184px!important;
    padding:13px 12px 13px 16px!important;
    align-items:stretch!important;
  }
  #result .compat-card-showcase .rank-badge{
    top:12px!important;
    left:14px!important;
    min-width:58px!important;
    height:58px!important;
    padding:0 10px!important;
  }
  #result .compat-card-showcase .scribble-top{
    top:21px!important;
    left:84px!important;
    right:34px!important;
    font-size:12px!important;
  }
  #result .compat-card-showcase .compat-copy{
    align-self:start!important;
    padding-top:72px!important;
    gap:6px!important;
  }
  #result .compat-card-showcase .cname{
    margin:0!important;
    font-size:21px!important;
    line-height:1.12!important;
    max-width:12.8em!important;
    white-space:normal!important;
  }
  #result .compat-card-showcase .reason{
    max-width:16em!important;
    margin:0!important;
    font-size:12.3px!important;
    line-height:1.48!important;
  }
  #result .compat-card-showcase .compat-tags{
    margin-top:1px!important;
    gap:5px!important;
  }
  #result .compat-card-showcase .compat-tags i{
    min-height:27px!important;
    padding:0 9px!important;
    font-size:10.5px!important;
  }
  #result .compat-card-showcase .compat-media{
    position:absolute!important;
    right:8px!important;
    bottom:7px!important;
    width:126px!important;
    height:132px!important;
    display:grid!important;
    place-items:end center!important;
  }
  #result .compat-card-showcase .compat-media img{
    width:122px!important;
    max-height:126px!important;
  }
  #result .compat-card-showcase .blob-a{
    width:130px!important;
    height:56px!important;
    left:-20px!important;
    bottom:-12px!important;
  }
  #result .compat-card-showcase .blob-b{
    width:102px!important;
    height:50px!important;
    right:70px!important;
    top:49px!important;
  }
  #result .compat-card-showcase .blob-c{
    right:28px!important;
    bottom:18px!important;
  }
}
@media(max-width:374px){
  #result .compat-good .compat-card-showcase{
    grid-template-columns:minmax(0,1fr) 104px!important;
    min-height:178px!important;
    padding:12px 10px 12px 13px!important;
  }
  #result .compat-card-showcase .compat-copy{
    padding-top:68px!important;
  }
  #result .compat-card-showcase .cname{
    font-size:18.5px!important;
  }
  #result .compat-card-showcase .reason{
    font-size:11.5px!important;
  }
  #result .compat-card-showcase .compat-media{
    width:104px!important;
    height:116px!important;
  }
  #result .compat-card-showcase .compat-media img{
    width:100px!important;
    max-height:110px!important;
  }
}


/* 20260927compatfriendexact2: LOVE / WORK result TOP3 = FRIEND character-detail card composition */
@media(max-width:767px){
  body[data-series="love"] #result .compat-good .compat-card-showcase,
  body[data-series="work"] #result .compat-good .compat-card-showcase{
    position:relative!important;
    isolation:isolate!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 112px!important;
    align-items:end!important;
    gap:8px!important;
    min-height:202px!important;
    height:auto!important;
    margin:0!important;
    padding:16px 14px 14px 16px!important;
    overflow:hidden!important;
    border-radius:27px!important;
  }

  body[data-series="love"] #result .compat-card-showcase .compat-copy,
  body[data-series="work"] #result .compat-card-showcase .compat-copy{
    position:relative!important;
    display:grid!important;
    align-self:end!important;
    gap:7px!important;
    min-width:0!important;
    padding-top:60px!important;
  }

  body[data-series="love"] #result .compat-card-showcase .cname,
  body[data-series="work"] #result .compat-card-showcase .cname{
    position:static!important;
    display:block!important;
    width:auto!important;
    max-width:13em!important;
    margin:0!important;
    font-size:20px!important;
    line-height:1.16!important;
    letter-spacing:-.03em!important;
    font-weight:900!important;
    white-space:normal!important;
    word-break:keep-all!important;
    overflow-wrap:normal!important;
  }

  body[data-series="love"] #result .compat-card-showcase .reason,
  body[data-series="work"] #result .compat-card-showcase .reason{
    display:block!important;
    margin:0!important;
    max-width:15em!important;
    font-size:12.5px!important;
    line-height:1.55!important;
  }

  body[data-series="love"] #result .compat-card-showcase .compat-tags,
  body[data-series="work"] #result .compat-card-showcase .compat-tags{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:6px!important;
    margin-top:0!important;
  }

  body[data-series="love"] #result .compat-card-showcase .compat-tags i,
  body[data-series="work"] #result .compat-card-showcase .compat-tags i{
    min-height:28px!important;
    padding:0 10px!important;
    font-size:11px!important;
  }

  body[data-series="love"] #result .compat-card-showcase .compat-media,
  body[data-series="work"] #result .compat-card-showcase .compat-media{
    position:relative!important;
    right:auto!important;
    bottom:auto!important;
    display:grid!important;
    place-items:end!important;
    align-self:end!important;
    justify-self:end!important;
    width:auto!important;
    height:auto!important;
  }

  body[data-series="love"] #result .compat-card-showcase .compat-media img,
  body[data-series="work"] #result .compat-card-showcase .compat-media img{
    width:108px!important;
    height:auto!important;
    max-height:128px!important;
    margin:0!important;
    object-fit:contain!important;
  }

  body[data-series="love"] #result .compat-card-showcase .rank-badge,
  body[data-series="work"] #result .compat-card-showcase .rank-badge{
    position:absolute!important;
    top:14px!important;
    left:14px!important;
    min-width:58px!important;
    width:auto!important;
    height:58px!important;
    padding:0 11px!important;
  }

  body[data-series="love"] #result .compat-card-showcase .rank-badge b,
  body[data-series="work"] #result .compat-card-showcase .rank-badge b{
    font-size:31px!important;
  }

  body[data-series="love"] #result .compat-card-showcase .rank-badge small,
  body[data-series="work"] #result .compat-card-showcase .rank-badge small{
    font-size:17px!important;
    margin-top:7px!important;
  }

  body[data-series="love"] #result .compat-card-showcase .scribble-top,
  body[data-series="work"] #result .compat-card-showcase .scribble-top{
    top:24px!important;
    left:84px!important;
    right:42px!important;
    font-size:12px!important;
  }

  body[data-series="love"] #result .compat-card-showcase .blob-a,
  body[data-series="work"] #result .compat-card-showcase .blob-a{
    width:118px!important;
    height:54px!important;
    left:-16px!important;
    bottom:-10px!important;
  }

  body[data-series="love"] #result .compat-card-showcase .blob-b,
  body[data-series="work"] #result .compat-card-showcase .blob-b{
    width:88px!important;
    height:46px!important;
    right:88px!important;
    top:54px!important;
  }

  body[data-series="love"] #result .compat-card-showcase .blob-c,
  body[data-series="work"] #result .compat-card-showcase .blob-c{
    width:44px!important;
    height:44px!important;
    right:52px!important;
    bottom:26px!important;
  }
}

@media(max-width:374px){
  body[data-series="love"] #result .compat-good .compat-card-showcase,
  body[data-series="work"] #result .compat-good .compat-card-showcase{
    grid-template-columns:minmax(0,1fr) 92px!important;
    min-height:196px!important;
    padding:14px 11px 12px 13px!important;
  }

  body[data-series="love"] #result .compat-card-showcase .compat-copy,
  body[data-series="work"] #result .compat-card-showcase .compat-copy{
    padding-top:56px!important;
    gap:6px!important;
  }

  body[data-series="love"] #result .compat-card-showcase .cname,
  body[data-series="work"] #result .compat-card-showcase .cname{
    font-size:17.5px!important;
  }

  body[data-series="love"] #result .compat-card-showcase .reason,
  body[data-series="work"] #result .compat-card-showcase .reason{
    font-size:12px!important;
    max-width:14em!important;
  }

  body[data-series="love"] #result .compat-card-showcase .compat-media img,
  body[data-series="work"] #result .compat-card-showcase .compat-media img{
    width:90px!important;
    max-height:108px!important;
  }
}
