.mamachie-quiz{--mq-brown:#70513d;--blue:#b3cfe3;--cream:#fbf3de;--paper:#fffdf8;--line:#ddc99f;--yellow:#fff1b8;max-width:720px;margin:24px auto;padding:0;border:0;background:transparent;color:var(--mq-brown);font-family:"Hiragino Maru Gothic ProN","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;font-size:17px;line-height:1.8;text-align:center;overflow-wrap:anywhere}
.mamachie-quiz .mq-shell{border:1px solid var(--line);border-radius:24px;overflow:hidden;background:var(--paper)}
.mamachie-quiz .mq-header{padding:18px;background:var(--paper)}
.mamachie-quiz .mq-header img{display:block;width:190px;max-width:75%;height:auto;margin:auto;mix-blend-mode:multiply}
.mamachie-quiz .mq-stripe{padding:16px;background:repeating-linear-gradient(90deg,var(--blue) 0 12px,var(--cream) 12px 32px)}
.mamachie-quiz .mq-screen{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:clamp(18px,4vw,32px);min-height:360px}
.mamachie-quiz .mq-screen p{margin:14px 0;padding:0;line-height:1.9}
.mamachie-quiz .mq-heading{background:none!important;border:0!important;padding:0!important;margin:12px 0 18px!important;color:var(--mq-brown);font-size:clamp(23px,5vw,31px);line-height:1.55;box-shadow:none!important;text-align:center}
.mamachie-quiz .mq-heading:before,.mamachie-quiz .mq-heading:after{display:none!important;content:none!important}
.mamachie-quiz .mq-brand,.mamachie-quiz .mq-badge,.mamachie-quiz .mq-quiz-title{display:table;margin:0 auto 14px!important;padding:4px 18px!important;border-radius:999px;background:#e4eff4;font-size:14px;font-weight:700;color:var(--mq-brown)}
.mamachie-quiz .mq-badge{background:#f9edcb}
.mamachie-quiz .mq-intro{font-size:clamp(17px,4vw,21px);font-weight:600}
.mamachie-quiz .mq-mascots{display:flex;align-items:flex-end;justify-content:center;gap:16px;margin:18px 0 22px}
.mamachie-quiz .mq-mascots img{display:block;width:auto;height:clamp(112px,25vw,160px);max-width:43%;object-fit:contain;margin:0;box-shadow:none}
.mamachie-quiz .mq-mascots img.mq-trio{width:340px;max-width:100%;height:auto;object-fit:contain}
.mamachie-quiz .mq-scene{background:#fbf7ef;border:1px solid #e6d8bd;padding:22px 18px!important;border-radius:14px;line-height:2.2!important;font-size:clamp(17px,4vw,21px);font-weight:600;text-align:left;margin:16px 0 20px!important}
.mamachie-quiz rt{font-size:.56em;font-weight:400}
.mamachie-quiz .mq-button{appearance:none;display:block;width:100%;min-height:60px;margin:12px 0 0;padding:13px 16px;border:1px solid var(--line);border-radius:999px;background:var(--yellow);color:var(--mq-brown);font:inherit;font-size:clamp(17px,4vw,21px);font-weight:700;line-height:1.65;cursor:pointer;box-shadow:none;white-space:normal;text-align:center}
.mamachie-quiz .mq-choices .mq-button{background:var(--paper);border-radius:14px;min-height:66px;font-size:clamp(20px,4.5vw,25px)}
.mamachie-quiz .mq-button:hover:not(:disabled){background:#f4e5a6}
.mamachie-quiz button:focus-visible{outline:3px solid #66879e;outline-offset:3px}
.mamachie-quiz .mq-button:disabled{opacity:1;cursor:default}
.mamachie-quiz .mq-choices .mq-correct{border:2px solid #6c884b;background:#e6eed8}
.mamachie-quiz .mq-choices .mq-wrong{border:2px dashed #a76543;background:#f8e8de}
.mamachie-quiz .mq-feedback{padding:18px 20px;margin:18px 0;border-radius:14px;text-align:left;background:#edf2e4;border:1px solid #cbd9b7}
.mamachie-quiz .mq-feedback.mq-retry{background:#fff2e2;border-color:#e4c5a5}
.mamachie-quiz .mq-feedback p{margin:0 0 8px}
.mamachie-quiz .mq-verdict{font-weight:700;font-size:23px;color:#526c32}
.mamachie-quiz .mq-retry .mq-verdict{color:#9a5937}
.mamachie-quiz .mq-feedback-mascot{height:86px;width:auto;display:block;margin:10px 0 0 auto}
.mamachie-quiz .mq-progress{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:9px 12px;border-radius:999px;background:#f5f0e5;color:var(--mq-brown);font-size:15px;font-weight:700}
.mamachie-quiz .mq-dots{display:flex;gap:7px;flex-wrap:wrap}
.mamachie-quiz .mq-dot{width:11px;height:11px;border-radius:50%;background:#ddd4c4}
.mamachie-quiz .mq-dot.active{background:#dd8c50}
.mamachie-quiz .mq-score{font-size:clamp(26px,6vw,40px);font-weight:700;color:#b96631;padding:16px!important;border:1px solid var(--line);border-radius:16px;background:#faf4df}
.mamachie-quiz .mq-growth{display:block;width:230px;max-width:90%;height:94px;object-fit:contain;margin:22px auto}
.mamachie-quiz .mq-feedback:empty{display:none}
.mamachie-quiz .mq-scene,.mamachie-quiz .mq-feedback p{white-space:pre-line}
.mamachie-quiz .mq-next-set{box-sizing:border-box;text-decoration:none!important;background:#e4eff4;border-color:#a8c3d3;color:var(--mq-brown)!important}
.mamachie-quiz .mq-next-set:hover{background:#d7e7ef}
.mamachie-quiz .mq-next-label{display:block;font-size:14px;font-weight:500}
.mamachie-quiz .mq-compare{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 12px;padding:10px;font-size:13px;background:#f1f6f8;border-radius:12px}
.mamachie-quiz .mq-compare button{border:1px solid #9ab6c8;background:white;color:var(--mq-brown);border-radius:999px;padding:7px 14px;font:inherit;cursor:pointer}
.mamachie-quiz .mq-compare button[aria-pressed=true]{background:var(--blue);font-weight:700}
.mamachie-quiz.mq-simple .mq-stripe{padding:0;border-top:12px solid transparent;border-image:repeating-linear-gradient(90deg,var(--blue) 0 12px,var(--cream) 12px 32px) 1;background:var(--paper)}
.mamachie-quiz.mq-simple .mq-screen{border:0;border-radius:0;padding:clamp(22px,5vw,40px)}
.mamachie-quiz.mq-simple .mq-scene{background:none;border:0;border-radius:0;padding:14px 0!important}
.mamachie-quiz.mq-simple .mq-choices .mq-button{background:var(--yellow)}
.mamachie-quiz.mq-simple .mq-choices .mq-correct{background:#e6eed8}
.mamachie-quiz.mq-simple .mq-choices .mq-wrong{background:#f8e8de}
.mamachie-quiz.mq-simple .mq-feedback-mascot{display:none}
.mamachie-quiz.mq-simple .mq-feedback{background:none;border:0;border-top:1px solid var(--line);border-radius:0;padding:16px 0}
@media(max-width:480px){.mamachie-quiz{margin:12px auto}.mamachie-quiz .mq-header{padding:14px}.mamachie-quiz .mq-stripe{padding:10px}.mamachie-quiz .mq-screen{padding:18px 14px}.mamachie-quiz .mq-progress{gap:7px}.mamachie-quiz .mq-dots{gap:6px}.mamachie-quiz .mq-dot{width:10px;height:10px}.mamachie-quiz .mq-mascots{gap:12px}}

/* v0.6: compact exercise mode. The theme's header/sidebar never consume quiz space. */
.mamachie-quiz-page .entry-title,.mamachie-quiz-page .eye-catch,.mamachie-quiz-page .date-tags{display:none!important}
.mamachie-quiz [hidden]{display:none!important}
.mamachie-quiz .mq-header{padding:9px 14px}
.mamachie-quiz .mq-header img{width:160px}
.mamachie-quiz .mq-screen[data-stage=start]{min-height:0;padding:16px clamp(12px,3vw,24px)}
.mamachie-quiz .mq-screen[data-stage=start] .mq-heading{margin:5px 0 8px!important}
.mamachie-quiz .mq-screen[data-stage=start] .mq-brand,.mamachie-quiz .mq-screen[data-stage=start] .mq-badge{margin:0 auto 7px!important}
.mamachie-quiz .mq-screen[data-stage=start] .mq-intro{margin:5px 0 8px}
.mamachie-quiz .mq-screen[data-stage=start] .mq-mascots{margin:8px 0 10px}
.mamachie-quiz .mq-screen[data-stage=start] .mq-trio{width:260px;height:clamp(90px,19vh,135px);object-fit:contain}
.mamachie-quiz .mq-screen[data-stage=start] .mq-button{min-height:48px;margin:5px 0 0;padding:8px 12px}
.mamachie-quiz .mq-stage-body{min-width:0}
.mamachie-quiz .mq-stage-actions{display:grid;gap:8px}
.mamachie-quiz .mq-stage-actions .mq-button{margin:0!important;min-height:48px;padding:8px 10px;line-height:1.45;font-size:clamp(16px,4vw,20px)}
.mamachie-quiz .mq-choices{display:grid;gap:8px;grid-template-columns:repeat(3,minmax(0,1fr))}
.mamachie-quiz .mq-choices .mq-button{margin:0!important;min-width:0;min-height:52px;font-size:clamp(17px,3.5vw,23px);overflow-wrap:anywhere}
.mamachie-quiz .mq-answer{font-weight:700;font-size:clamp(20px,5vw,28px);color:var(--mq-brown)}
.mamachie-quiz .mq-selected-answer{font-size:14px;color:#8b6850}
.mamachie-quiz .mq-feedback p{margin:4px 0!important;line-height:1.65}
.mamachie-quiz .mq-feedback{margin:8px 0;padding:12px 14px}
.mamachie-quiz .mq-review-scene{text-align:left;margin:4px 0;font-size:13px;color:var(--mq-brown)}
.mamachie-quiz .mq-review-scene summary{cursor:pointer;min-height:32px;display:list-item;padding:5px 0}
.mamachie-quiz .mq-review-text{white-space:pre-line;text-align:left;border-top:1px solid var(--line);font-size:15px}
.mamachie-quiz .mq-result-secondary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.mamachie-quiz .mq-result-secondary .mq-button{background:var(--paper);min-height:44px}
.mamachie-quiz .mq-next-set{display:block!important}
html.mq-focus-lock,html.mq-focus-lock body{overflow:hidden!important;overscroll-behavior:none}
.mq-focus-dialog{position:fixed!important;inset:0!important;box-sizing:border-box;width:100%!important;max-width:none!important;height:100vh;height:100dvh;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;padding:8px 16px;padding:max(8px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:#fbf8f0;color:#70513d;overflow:hidden;font-family:"Hiragino Maru Gothic ProN","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif}
.mq-focus-dialog[open]{display:flex;flex-direction:column;align-items:center;gap:8px}
.mq-focus-dialog[open]{justify-content:center}
.mq-focus-dialog::backdrop{background:#fbf8f0}
.mq-focus-dialog .mq-focus-bar{width:100%;max-width:880px;display:flex;gap:10px;justify-content:space-between;align-items:center;flex:none;min-height:44px;padding:0 2px;box-sizing:border-box}
.mq-focus-dialog .mq-focus-title{font-size:clamp(13px,3.5vw,18px);font-weight:700;line-height:1.35;overflow-wrap:anywhere}
.mq-focus-dialog .mq-focus-close{flex:0 0 auto;min-height:44px;min-width:70px;padding:6px 12px;border:1px solid #d5c7ad;background:#fffdf8;color:#70513d;border-radius:999px;font:inherit;font-size:14px;cursor:pointer}
.mq-focus-dialog .mq-focus{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;max-height:720px;width:100%;max-width:880px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
.mq-focus-dialog .mq-focus .mq-header,.mq-focus-dialog .mq-focus .mq-quiz-title,.mq-focus-dialog .mq-focus .mq-compare{display:none!important}
.mq-focus-dialog .mq-focus .mq-shell{display:flex;flex:1;flex-direction:column;min-height:0;border-radius:18px}
.mq-focus-dialog .mq-focus .mq-stripe{display:flex;flex:1;flex-direction:column;min-height:0;padding:8px}
.mq-focus-dialog .mq-focus.mq-simple .mq-stripe{padding:0}
.mq-focus-dialog .mq-focus .mq-screen{display:flex;flex:1;flex-direction:column;min-height:0;gap:8px;padding:clamp(10px,2.1vw,20px);border-radius:12px;overflow:hidden}
.mq-focus-dialog .mq-focus .mq-progress{flex:none;min-height:34px;padding:5px 10px;font-size:14px;line-height:1.4;gap:6px}
.mq-focus-dialog .mq-focus .mq-dots{gap:4px;max-width:62%;justify-content:flex-end}
.mq-focus-dialog .mq-focus .mq-dot{width:8px;height:8px;flex:none}
.mq-focus-dialog .mq-focus .mq-stage-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:2px;display:flex;flex-direction:column;justify-content:safe center;gap:8px;scrollbar-width:thin}
.mq-focus-dialog .mq-focus .mq-stage-body>*{flex-shrink:0}
.mq-focus-dialog .mq-focus .mq-stage-actions{flex:none;gap:8px}
.mq-focus-dialog .mq-focus .mq-heading{font-size:clamp(19px,4vw,27px);line-height:1.4!important;margin:0!important}
.mq-focus-dialog .mq-focus .mq-scene{font-size:clamp(17px,3.5vw,22px);padding:10px 13px!important;line-height:1.65!important;margin:0!important}
.mq-focus-dialog .mq-focus .mq-feedback{margin:0;padding:12px 16px;font-size:clamp(16px,3vw,20px)}
.mq-focus-dialog .mq-focus .mq-feedback .mq-verdict{font-size:clamp(21px,5vw,28px)}
.mq-focus-dialog .mq-focus .mq-feedback .mq-answer{line-height:1.4}
.mq-focus-dialog .mq-focus .mq-score{margin:0!important;padding:10px!important;line-height:1.4}
.mq-focus-dialog .mq-focus .mq-growth{margin:2px auto;height:clamp(42px,12vh,90px);width:180px}
.mq-focus-dialog .mq-focus [data-stage=result] .mq-stage-body p{margin:0!important;font-size:clamp(15px,3.5vw,19px);line-height:1.6}
.mq-focus-dialog .mq-focus [data-stage=result] .mq-stage-body .mq-score{font-size:clamp(26px,6vw,40px)}
@media(max-width:590px){.mamachie-quiz .mq-choices{grid-template-columns:1fr;gap:6px}.mamachie-quiz .mq-choices .mq-button{min-height:46px;padding:6px 10px}.mq-focus-dialog{padding:6px 8px;padding:max(6px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));gap:4px}.mq-focus-dialog .mq-focus .mq-stripe{padding:5px}.mq-focus-dialog .mq-focus .mq-screen{padding:10px;gap:6px}.mq-focus-dialog .mq-focus .mq-stage-body{gap:6px}.mq-focus-dialog .mq-focus .mq-scene{padding:8px 10px!important}}
@media(max-height:520px) and (min-width:480px){.mq-focus-dialog .mq-focus-bar{min-height:38px}.mq-focus-dialog .mq-focus-close{min-height:38px}.mq-focus-dialog .mq-focus .mq-screen{padding:8px;gap:5px}.mq-focus-dialog .mq-focus .mq-stage-body{gap:4px}.mq-focus-dialog .mq-focus .mq-scene{font-size:16px;line-height:1.45!important;padding:6px 10px!important}.mq-focus-dialog .mq-focus .mq-heading{font-size:19px}.mq-focus-dialog .mq-focus .mq-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.mq-focus-dialog .mq-focus .mq-growth{display:none}.mq-focus-dialog .mq-focus .mq-stage-actions .mq-button{min-height:44px;padding:5px 8px}}
@media(max-height:600px) and (max-width:479px){.mq-focus-dialog .mq-focus .mq-screen{padding:7px;gap:5px}.mq-focus-dialog .mq-focus .mq-stage-body{gap:4px}.mq-focus-dialog .mq-focus .mq-scene{font-size:16px;line-height:1.5!important;padding:6px 9px!important}.mq-focus-dialog .mq-focus .mq-heading{font-size:18px}.mq-focus-dialog .mq-focus .mq-feedback{padding:8px 10px}.mq-focus-dialog .mq-focus .mq-growth{height:50px}}

/* v0.8: compact, positive perfect-score celebration, without blocking the next button. */
.mamachie-quiz .mq-perfect-award{display:flex;align-items:center;justify-content:center;gap:clamp(9px,3vw,25px);width:100%;padding:clamp(12px,3vw,24px) 10px;background:#fff4e2;border:1px solid #ecc9aa;border-radius:16px;box-sizing:border-box;min-width:0}
.mamachie-quiz .mq-hanamaru{display:block;width:clamp(80px,24vw,150px);height:auto;max-width:40%;margin:0!important;object-fit:contain;animation:mq-stamp-in .55s cubic-bezier(.2,.8,.25,1.2) both}
.mamachie-quiz .mq-perfect-points{min-width:0;text-align:center}
.mamachie-quiz .mq-perfect-award .mq-perfect-number{font-size:clamp(38px,8vw,66px)!important;font-weight:800;line-height:1.3!important;color:#bd674e;margin:0!important;letter-spacing:.01em;white-space:nowrap}
.mamachie-quiz .mq-perfect-award .mq-score{font-size:clamp(14px,3.5vw,17px)!important;font-weight:600;color:var(--mq-brown);padding:0!important;background:none!important;border:0!important;margin:6px 0 0!important;line-height:1.5!important}
.mamachie-quiz .mq-perfect-award .mq-perfect-label{font-size:13px!important;font-weight:700;color:#8c7158;margin:0!important;line-height:1.5!important}
.mamachie-quiz .mq-perfect-message{font-weight:700;color:#70513d;text-align:center}
@keyframes mq-stamp-in{0%{opacity:0;transform:scale(1.4) rotate(-12deg)}65%{opacity:1;transform:scale(.94) rotate(4deg)}100%{opacity:1;transform:scale(1) rotate(0)}}
@media(prefers-reduced-motion:reduce){.mamachie-quiz .mq-hanamaru{animation:none}}
@media(max-height:520px){.mamachie-quiz .mq-perfect-award{padding:6px 10px;gap:10px}.mamachie-quiz .mq-hanamaru{width:74px}.mamachie-quiz .mq-perfect-award .mq-perfect-number{font-size:36px!important}.mamachie-quiz .mq-perfect-award .mq-score{font-size:13px!important;margin-top:2px!important}}
