body.mbr-diagnosis-body{margin:0;background:#FFF9F7;color:#60484F;font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif}.mbd-shell *{box-sizing:border-box}.mbd-shell{min-height:100vh;font-size:16px;line-height:1.85}.mbd-top{padding:16px max(18px,calc((100vw - 880px)/2));display:flex;justify-content:space-between;align-items:center;background:white;border-bottom:1px solid #F1DEE6;gap:10px}.mbd-top>a:first-child{display:flex;align-items:center;gap:8px;font-size:19px;font-weight:800;color:#60484F}.mbd-top img{width:38px;height:38px;object-fit:contain}.mbd-top small{font-size:11px;font-weight:400}.mbd-shell a{text-decoration:none}.mbd-home{color:#A53865;font-size:13px;white-space:nowrap}.mbd-main{max-width:820px;margin:auto;padding:48px 18px 80px}.mbd-eyebrow{text-align:center;font-size:12px;letter-spacing:.16em;color:#B64675;font-weight:800;margin:0 0 10px}.mbd-main h1{text-align:center;font-size:clamp(28px,6.4vw,38px);line-height:1.5;margin:0 0 16px}.mbd-main h1 span{font-size:.7em}.mbd-lead{text-align:center;color:#735F68;margin:0 0 32px}.mbd-card{padding:clamp(24px,5vw,44px);background:#FFF;border:1px solid #EEDBE2;border-radius:24px;box-shadow:0 12px 32px #A86E8614;margin-bottom:25px}.mbd-card[hidden],.mbd-card-message[hidden]{display:none!important}.mbd-card h2{font-size:clamp(21px,5vw,28px);line-height:1.55;margin:0 0 22px}.mbd-card h3{font-size:19px;margin:25px 0 10px}.mbd-card p{color:#715F67}.mbd-btn{display:inline-flex;justify-content:center;align-items:center;border:0;border-radius:100px;background:#D65282;color:white!important;font-weight:750;padding:14px 25px;font:inherit;min-height:54px;cursor:pointer;text-decoration:none!important;text-align:center}.mbd-secondary{border:1px solid #E8CAD5;background:white;color:#A83D68;border-radius:100px;padding:10px 20px;cursor:pointer;font:inherit}.mbd-hint{font-size:13px;color:#806F77!important}.mbd-progress-line{display:flex;justify-content:space-between;gap:12px;color:#AE456E;font-size:14px}.mbd-track{height:7px;background:#F8E6ED;border-radius:9px;margin:12px 0 26px;overflow:hidden}.mbd-track>div{background:#D65282;height:100%;transition:width .2s}.mbd-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mbd-choice{padding:14px 9px;background:#FFF9FB;border:1px solid #EDD8E1;border-radius:14px;font:inherit;color:#60484F;cursor:pointer;text-align:center}.mbd-choice:hover,.mbd-choice:focus-visible,.mbd-choice.chosen{background:#F7DAE5;border-color:#D65282}.mbd-controls{margin-top:22px}.mbd-controls button:disabled{opacity:.35;cursor:default}.mbd-divider{height:1px;background:#EEDBE2;margin:30px 0}.mbd-restart{display:block;margin-top:20px}.mbd-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;margin:28px 0}.mbd-cards button{min-height:165px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;border:2px solid #D9A0B5;border-radius:18px;background:linear-gradient(150deg,#FFF8FB,#FBE7EF);color:#B54472;cursor:pointer}.mbd-cards span{font-size:45px}.mbd-cards small{font-size:13px}.mbd-card-message{padding:18px;border-radius:16px;background:#FFF3F7;border:1px solid #F0D8E1;margin:18px 0}.mbd-card-message h3{margin:0}.mbd-card-message strong{display:block;color:#A63D67}.mbd-contact{text-align:center;border-radius:24px;background:#F9E8EE;padding:30px 22px;margin-top:24px}.mbd-contact h2{font-size:clamp(21px,5vw,26px)}.mbd-contact p{max-width:600px;margin:0 auto 21px}.mbd-disclaimer{font-size:12px;color:#80717A;text-align:center;margin-top:25px}.mbd-shell button:focus-visible,.mbd-shell a:focus-visible{outline:3px solid #A83D68;outline-offset:3px}@media(max-width:450px){.mbd-main{padding-top:32px}.mbd-options{grid-template-columns:1fr}.mbd-cards button{min-height:130px}.mbd-cards span{font-size:34px}.mbd-top{padding:12px}.mbd-top small{display:none}}
/* 2.8: genuine randomized card order with visible shuffle animation */
.mbd-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 14px}
.mbd-cards .mbd-tarot-back{min-height:170px;position:relative;overflow:hidden;border:3px solid #E7C692;border-radius:16px;background:linear-gradient(145deg,#DB8CAE,#BB638E);box-shadow:0 8px 19px #84586D24;color:#FFF4D8;transition:transform .2s,box-shadow .2s}
.mbd-cards .mbd-tarot-back::before{content:"";position:absolute;inset:8px;border:1px solid #FFE5B5;border-radius:10px;pointer-events:none}
.mbd-cards .mbd-tarot-back .mbd-back-art{font-family:serif;font-size:29px;letter-spacing:.05em;line-height:1}
.mbd-cards .mbd-tarot-back small{font-size:12px;line-height:1.3;color:#FFF9ED}
.mbd-cards .mbd-tarot-back:disabled{cursor:default;opacity:.85}
.mbd-cards .mbd-tarot-back.is-selected{outline:3px solid #B64675;outline-offset:3px;transform:translateY(-5px)}
.mbd-cards .mbd-tarot-back:not(:disabled):hover{transform:translateY(-5px);box-shadow:0 12px 25px #84586D38}
.mbd-cards.is-shuffling .mbd-tarot-back{animation:mbd-shuffle .75s ease-in-out both}
.mbd-cards.is-shuffling .mbd-tarot-back:nth-child(2){animation-delay:.07s}
.mbd-cards.is-shuffling .mbd-tarot-back:nth-child(3){animation-delay:.12s}
@keyframes mbd-shuffle{0%{transform:translateX(0) rotate(0)}30%{transform:translateX(15px) rotate(6deg)}60%{transform:translateX(-13px) rotate(-5deg)}100%{transform:translateX(0) rotate(0)}}
.mbd-shuffle-btn{display:block;margin:12px auto 22px;min-height:44px}
.mbd-shuffle-btn:disabled{opacity:.55;cursor:wait}
#mbd-shuffle-status{text-align:center;min-height:1.5em}
@media(max-width:450px){.mbd-cards .mbd-tarot-back{min-height:140px}.mbd-cards .mbd-tarot-back .mbd-back-art{font-size:22px}}
@media(prefers-reduced-motion:reduce){.mbd-cards.is-shuffling .mbd-tarot-back{animation:none}}

/* v2.9: stronger centered gathering, overlapping shuffle and fan-out */
.mbd-cards{position:relative;isolation:isolate;overflow:visible}
.mbd-cards .mbd-tarot-back{will-change:transform;backface-visibility:hidden;transform-origin:50% 50%;touch-action:manipulation}
.mbd-cards.is-shuffling .mbd-tarot-back{animation:none!important;pointer-events:none;box-shadow:0 16px 28px rgba(99,49,79,.23)}
.mbd-cards .mbd-tarot-back:disabled{opacity:1}
#mbd-shuffle-status{font-weight:700;color:#A63868!important}
@media(prefers-reduced-motion:reduce){.mbd-cards .mbd-tarot-back{will-change:auto}}

/* v3.0: seven-card deck and illustrated face cards */
.mbd-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;max-width:650px;margin-inline:auto}
.mbd-cards .mbd-tarot-back{min-height:140px;border-radius:13px;padding:10px 2px}
.mbd-cards .mbd-tarot-back .mbd-back-art{font-size:25px}
.mbd-cards .mbd-tarot-back small{font-size:11px}
.mbd-card-message{text-align:center}
.mbd-tarot-image{display:block;max-width:210px;width:75%;height:auto;aspect-ratio:220/310;object-fit:contain;margin:2px auto 15px;filter:drop-shadow(0 6px 12px rgba(121,67,86,.15))}
@media(max-width:490px){.mbd-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.mbd-cards .mbd-tarot-back{min-height:118px;padding:7px 0;border-width:2px}.mbd-cards .mbd-tarot-back::before{inset:5px}.mbd-cards .mbd-tarot-back .mbd-back-art{font-size:19px}.mbd-cards .mbd-tarot-back small{font-size:10px}.mbd-tarot-image{max-width:195px}}

/* v3.1 Eight illustrated cards and response labels without points */
.mbd-options .mbd-choice{font-weight:650;min-height:54px;line-height:1.55;letter-spacing:.015em}
.mbd-cards{grid-template-columns:repeat(4,minmax(0,1fr));max-width:700px;gap:11px}
.mbd-cards .mbd-tarot-back{background:linear-gradient(145deg,#C67B9D 0%,#AE5787 100%);border:3px solid #E8C889;border-radius:14px;box-shadow:0 7px 17px rgba(111,63,87,.16)}
.mbd-cards .mbd-tarot-back::before{border:1px solid #FFE9B9}
.mbd-tarot-image{width:min(100%,300px);max-width:300px;aspect-ratio:440 / 620;object-fit:cover;border-radius:14px;box-shadow:0 15px 27px rgba(102,62,82,.16);filter:none;margin:0 auto 22px}
.mbd-card-message{padding:clamp(19px,4vw,32px);background:#FFF7F9}
.mbd-card-message h3{font-size:clamp(20px,5vw,26px);margin:0 0 12px}
.mbd-card-message p{text-align:left;line-height:1.9}
.mbd-card-message strong{text-align:left;line-height:1.7}
@media(max-width:490px){.mbd-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.mbd-cards .mbd-tarot-back{min-height:128px;border-width:2px;padding:4px 0}.mbd-cards .mbd-tarot-back .mbd-back-art{font-size:19px}.mbd-cards .mbd-tarot-back small{font-size:10px}.mbd-tarot-image{width:min(100%,270px);max-width:270px}}


/* v3.2 Polished eight-card tarot experience -- consistent desktop and mobile */
body.mbr-diagnosis-body{background:#FFF9F6;color:#5C454D}
.mbd-shell{color:#5C454D;font-size:16px;line-height:1.82;background:linear-gradient(180deg,#FFFDFB,#FFF7FA 68%,#FFFAF7)}
.mbd-top{background:#FFFEFD;border-bottom:1px solid #F0DDE4;box-shadow:0 4px 16px rgba(119,74,92,.035)}
.mbd-top>a:first-child{color:#5C454D;letter-spacing:.02em}
.mbd-main{max-width:900px;padding:40px 20px 84px}
.mbd-main h1{font-size:clamp(27px,5vw,39px);line-height:1.45;letter-spacing:.015em}
.mbd-lead{max-width:32em;margin:0 auto 32px;line-height:1.9;color:#75616A}
.mbd-card{border:1px solid #EFDCE3;box-shadow:0 16px 38px rgba(113,67,85,.055);border-radius:24px}
.mbd-card h2{font-size:clamp(22px,4.4vw,31px);line-height:1.47;letter-spacing:.015em;overflow-wrap:normal}
.mbd-card p{line-height:1.9}
.mbd-btn{font-weight:800;line-height:1.45;letter-spacing:.015em;background:#C84776;color:#fff!important;box-shadow:0 8px 18px rgba(178,62,104,.18);transition:background .2s,transform .2s}
.mbd-btn:hover{background:#AD3464;transform:translateY(-1px)}
.mbd-secondary{font-weight:700;line-height:1.5;min-height:46px;border-color:#EBCFD9;transition:background .2s}
.mbd-secondary:hover{background:#FFF3F7}
.mbd-tarot-section{position:relative;overflow:hidden;background:radial-gradient(circle at 3% 9%,#FBE4EA 0%,transparent 22%),radial-gradient(circle at 97% 24%,#FFF0EA 0%,transparent 25%),#FFFDFC;padding:clamp(23px,5vw,44px)}
.mbd-tarot-section:before,.mbd-tarot-section:after{content:'✿';position:absolute;pointer-events:none;color:#E9AFC4;opacity:.23;font-size:128px;line-height:1}
.mbd-tarot-section:before{left:-40px;top:76px;transform:rotate(-24deg)}
.mbd-tarot-section:after{right:-36px;top:160px;transform:rotate(27deg)}
.mbd-tarot-head{position:relative;z-index:1;text-align:center}
.mbd-tarot-head .mbd-eyebrow{font-size:12px;letter-spacing:.18em;margin:0 0 13px;color:#B64B75}
.mbd-tarot-head h2{margin:0 auto 15px;max-width:19em;font-weight:800;font-size:clamp(22px,4.8vw,33px);color:#5C454D}
.mbd-tarot-head p{max-width:34em;margin:0 auto;color:#735E68;font-size:16px;line-height:1.8}
.mbd-gold-divider{display:block;color:#C9A16C;font-size:21px;letter-spacing:.32em;margin:15px auto 23px}
#mbd-shuffle-status{position:relative;z-index:1;min-height:1.5em;color:#A84C71!important;margin:0 0 10px;font-size:13px;font-weight:700;text-align:center}
.mbd-cards{position:relative;z-index:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;max-width:660px;margin:20px auto 28px}
.mbd-cards .mbd-tarot-back{appearance:none;position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;min-height:0;aspect-ratio:440 / 620;gap:12px;padding:10px 4px;overflow:hidden;border:3px solid #D8B274;border-radius:14px;background:radial-gradient(ellipse at 25% 18%,#D997B6 0%,#C77E9F 52%,#A95682 100%);color:#FFF2CE;box-shadow:0 9px 17px rgba(112,60,83,.15);transition:transform .25s,box-shadow .25s}
.mbd-cards .mbd-tarot-back::before{inset:8px;border:1.5px solid #FFE9BC;border-radius:8px}
.mbd-cards .mbd-tarot-back::after{content:'✧';position:absolute;left:50%;top:14%;transform:translateX(-50%);font-size:18px;color:#FFE4AD;opacity:.85}
.mbd-cards .mbd-tarot-back .mbd-back-art{font-size:clamp(24px,3vw,39px);letter-spacing:.08em;text-shadow:0 2px 4px #6F385C55;margin-top:7px}
.mbd-cards .mbd-tarot-back small{position:absolute;bottom:10%;left:50%;transform:translateX(-50%);font-size:12px;letter-spacing:.12em;color:#FFF0CB}
.mbd-cards .mbd-tarot-back.is-selected{outline:3px solid #B94777;outline-offset:3px;transform:translateY(-5px) scale(1.02);box-shadow:0 13px 25px rgba(136,64,99,.25)}
.mbd-cards.has-selection .mbd-tarot-back:not(.is-selected){filter:saturate(.7);opacity:.68}
.mbd-shuffle-btn{position:relative;z-index:1;display:flex;gap:8px;align-items:center;justify-content:center;width:min(100%,440px);min-height:54px;margin:0 auto 29px;background:#C84776;border:0;border-radius:999px;box-shadow:0 9px 20px rgba(168,57,98,.17);font-size:16px;color:#fff!important;font-weight:800}
.mbd-shuffle-btn:hover{background:#A93565}
.mbd-shuffle-btn span{font-size:22px;font-weight:400}
.mbd-card-message{position:relative;padding:clamp(22px,4vw,36px);margin:28px auto 22px;max-width:700px;background:linear-gradient(180deg,#FFFDFB 0%,#FFF4F8 100%);border:1px solid #E9CECA;border-radius:24px;text-align:center;box-shadow:0 12px 32px rgba(123,72,90,.07);opacity:0;transform:translateY(18px);transition:opacity .48s ease,transform .48s ease}
.mbd-card-message.is-visible{opacity:1;transform:translateY(0)}
.mbd-result-kicker{font-size:11px!important;letter-spacing:.2em;color:#B84A75!important;font-weight:800;margin:0 0 9px!important;text-align:center}
.mbd-card-message h3{margin:0 auto 23px;color:#5C454D;font-size:clamp(22px,4vw,29px);line-height:1.45;letter-spacing:.035em;text-align:center}
.mbd-tarot-image{display:block;width:min(100%,310px);max-width:310px;height:auto;aspect-ratio:440 / 620;object-fit:cover;margin:0 auto 24px;border-radius:15px;border:2px solid #E6C78C;box-shadow:0 14px 25px rgba(100,56,77,.16)}
.mbd-result-copy{max-width:29em;margin:0 auto;text-align:left}
.mbd-card-message .mbd-result-copy p{font-size:16px;color:#66525B;line-height:1.93;margin:0 0 20px}
.mbd-question-label{font-size:12px!important;color:#B84A75!important;font-weight:800;letter-spacing:.04em;margin:0 0 7px!important}
.mbd-result-copy strong{display:block;color:#A93F69;font-size:17px;line-height:1.8;overflow-wrap:break-word}
.mbd-tarot-disclaimer{max-width:43em;margin:25px auto 17px;font-size:13px!important;color:#806E77!important;line-height:1.8!important;text-align:left}
.mbd-redraw{display:block;margin:8px auto 0}
.mbd-contact{background:linear-gradient(145deg,#FFF0F5,#FBE4ED);border:1px solid #F0DCE3}
@media(max-width:600px){
 .mbd-main{padding:30px 13px 70px}
 .mbd-card{padding:24px 17px;border-radius:20px}
 .mbd-tarot-section{padding:25px 14px 30px}
 .mbd-tarot-section:before,.mbd-tarot-section:after{font-size:88px;opacity:.15}
 .mbd-tarot-head h2{font-size:clamp(21px,5.6vw,27px);line-height:1.5;max-width:16em}
 .mbd-tarot-head p{font-size:15px;line-height:1.85}
 .mbd-gold-divider{margin:12px auto 17px}
 .mbd-cards{gap:7px;margin:16px auto 23px}
 .mbd-cards .mbd-tarot-back{border-width:2px;border-radius:10px;gap:2px;padding:5px 2px}
 .mbd-cards .mbd-tarot-back::before{inset:5px;border-radius:5px}
 .mbd-cards .mbd-tarot-back::after{font-size:11px;top:12%}
 .mbd-cards .mbd-tarot-back .mbd-back-art{font-size:clamp(16px,4.5vw,25px);letter-spacing:0}
 .mbd-cards .mbd-tarot-back small{font-size:10px;bottom:9%}
 .mbd-shuffle-btn{width:min(100%,330px);font-size:15px;min-height:52px;margin-bottom:23px}
 .mbd-card-message{padding:20px 15px;border-radius:17px}
 .mbd-tarot-image{width:min(100%,260px);margin-bottom:20px}
 .mbd-card-message h3{font-size:23px;margin-bottom:16px}
 .mbd-card-message .mbd-result-copy p{font-size:16px;line-height:1.85}
 .mbd-result-copy strong{font-size:16px}
 .mbd-tarot-disclaimer{font-size:12px!important}
}
@media(max-width:355px){.mbd-cards{gap:5px}.mbd-cards .mbd-tarot-back .mbd-back-art{font-size:16px}.mbd-cards .mbd-tarot-back small{font-size:9px}}
@media(prefers-reduced-motion:reduce){.mbd-card-message,.mbd-btn,.mbd-secondary{transition:none!important}}

/* v3.3: mobile-first text rhythm and spacing, prevents orphaned Japanese endings */
.mbd-shell{line-height:1.72}
.mbd-main{padding-top:36px}
.mbd-main h1{line-height:1.35;margin-bottom:17px}
.mbd-lead{font-size:16px;line-height:1.72;max-width:34em;margin:0 auto 27px;text-wrap:pretty}
.mbd-lead-main,.mbd-lead-sub{display:block}
.mbd-lead-sub{margin-top:7px}
.mbd-card{padding:clamp(22px,4vw,36px);margin-bottom:22px}
.mbd-card h2{line-height:1.42;margin-bottom:17px}
.mbd-card h3{line-height:1.48;margin:24px 0 10px}
.mbd-card p{font-size:16px;line-height:1.75;margin:0 0 16px}
.mbd-card p.mbd-hint{font-size:13px;line-height:1.65;margin-bottom:17px}
.mbd-card .mbd-divider{margin:24px 0}
.mbd-btn{line-height:1.45;min-height:50px;padding:12px 22px}
.mbd-tarot-head h2{line-height:1.4;margin-bottom:12px}
.mbd-tarot-head p{line-height:1.7}
.mbd-tarot-head .mbd-eyebrow{margin-bottom:10px}
.mbd-gold-divider{margin:10px auto 17px}
.mbd-card-message{margin:24px auto 18px}
.mbd-card-message h3{line-height:1.42;margin:0 auto 17px}
.mbd-card-message .mbd-result-copy p{line-height:1.75;margin-bottom:14px}
.mbd-result-copy strong{line-height:1.65}
.mbd-contact{padding:25px 21px}
.mbd-contact h2{line-height:1.45;margin:0 0 13px}
.mbd-contact p{line-height:1.7;margin-bottom:18px}
@media(max-width:600px){
 .mbd-main{padding:28px 14px 68px}
 .mbd-main h1{font-size:clamp(25px,6.1vw,30px);line-height:1.35;margin-bottom:14px}
 .mbd-lead{font-size:15px;line-height:1.62;max-width:22em;margin-bottom:24px}
 .mbd-lead-main{font-size:15px}
 .mbd-lead-sub{font-size:15px;max-width:20em;margin:7px auto 0}
 .mbd-card{padding:22px 18px;margin-bottom:20px;border-radius:20px}
 .mbd-card h2{font-size:clamp(20px,5.4vw,24px);line-height:1.45;margin-bottom:16px}
 .mbd-card h3{font-size:18px;line-height:1.45;margin-top:22px}
 .mbd-card p{font-size:15px;line-height:1.73;margin-bottom:14px}
 .mbd-card p.mbd-hint{font-size:12px;line-height:1.65}
 .mbd-tarot-section{padding:23px 13px 28px}
 .mbd-tarot-head h2{font-size:clamp(21px,5.4vw,26px);line-height:1.42;margin-bottom:12px}
 .mbd-tarot-head p{font-size:15px;line-height:1.7}
 .mbd-card-message h3{font-size:22px}
 .mbd-card-message .mbd-result-copy p{font-size:15px;line-height:1.7}
 .mbd-result-copy strong{font-size:15px;line-height:1.65}
 .mbd-contact{padding:22px 17px;margin-top:22px}
 .mbd-contact h2{font-size:21px;line-height:1.42;max-width:15em;margin:0 auto 12px}
 .mbd-contact p{font-size:15px;line-height:1.72}
}
@media(max-width:380px){.mbd-lead-sub{max-width:19em;font-size:14.5px}}

/* v4.8: keep the diagnosis disclaimer readable on its pale background. */
.mbd-disclaimer{color:#6C5964!important}

/* v4.8.9: diagnostic results explain a concrete next step, without forcing contact. */
.mbd191-result-path{border-left:3px solid #D68AA9;padding:9px 12px;background:#FFF9FB;border-radius:0 8px 8px 0;color:#513B38!important;font-size:14px!important;line-height:1.7!important}
.mbd191-alt-contact{margin:12px 0 0!important;font-size:13px!important;line-height:1.5!important;text-align:center}
.mbd191-alt-contact a{color:#8D3C63!important;text-decoration:underline!important;text-underline-offset:3px!important}
.mbd191-alt-contact a:focus-visible{outline:2px solid #CE356C;outline-offset:3px}
