:root{color-scheme:dark;--bg:#130e16;--panel:#241724;--pink:#ab2e65;--blush:#fcdade;--muted:#cba9b9;--line:#593149}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(ellipse at 50% 0,#392035 0,transparent 52%),var(--bg);color:#fff2f6;font:16px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-height:100dvh}.wrap{max-width:580px;margin:auto;padding:25px 18px 60px}header{text-align:center;margin-bottom:27px}.eyebrow{font-size:11px;letter-spacing:.15em;text-transform:uppercase;color:var(--blush);font-weight:750}h1,h2,h3{font-family:Georgia,"Times New Roman",serif;line-height:1.14}h1{font-size:clamp(38px,9vw,57px);margin:13px 0}h1 em{color:var(--blush);font-weight:400}h2{font-size:clamp(27px,7vw,34px);margin:12px 0}h3{font-size:26px;margin:8px 0}.sub{color:var(--muted);font-size:14px}.panel{background:linear-gradient(155deg,#2c1a2b,#1b131e);border:1px solid var(--line);padding:26px 20px;border-radius:5px;box-shadow:0 18px 60px #0003}.symbol{font-size:49px;color:var(--blush);line-height:1.25}.options{display:grid;gap:10px;margin:23px 0}.choice{border:1px solid #70445b;background:#291c2b;color:#fff0f6;text-align:left;padding:15px;border-radius:4px;font:inherit;cursor:pointer;min-height:51px}.choice.selected{border:2px solid #f4a9c9;background:#4b243a;padding:14px}.choice:focus-visible,.btn:focus-visible{outline:3px solid #f4a9c9;outline-offset:3px}.btn{border:0;border-radius:4px;padding:15px 16px;background:var(--pink);color:#fff;font:700 15px system-ui;cursor:pointer;min-height:49px;touch-action:manipulation}.btn.secondary{background:transparent;border:1px solid #a76d88;color:var(--blush)}.btn:disabled{opacity:.35;cursor:not-allowed}.actions{display:flex;gap:10px;margin-top:20px}.actions .btn{flex:1}.full{width:100%;margin-top:11px}.wrap-actions{flex-wrap:wrap}.progress{display:flex;gap:5px;margin:18px 0 25px}.progress span{height:5px;background:#4c3546;flex:1}.progress span.active{background:#e779a8}.hidden{display:none!important}.fine{background:#3a2233;border-left:3px solid var(--pink);padding:16px;margin-top:18px;font-style:italic}.result-copy p{margin:14px 0}.certificate{background:#160e19;border:2px solid var(--pink);padding:25px 18px;text-align:center;margin:12px 0}.certmate{border-top:1px solid var(--line);padding:17px 0}.certmate strong{display:block;font-family:Georgia,serif;font-size:23px}.certmate .symbol{font-size:37px}.cert-joke{font-style:italic;color:var(--blush);margin:20px 0}.certmate .sub{margin:6px 0}footer{text-align:center;color:var(--muted);font-size:11px;margin-top:30px}#status{text-align:center;min-height:20px}@media(max-width:360px){.actions{flex-wrap:wrap}.actions .btn{min-width:45%}.wrap{padding-left:12px;padding-right:12px}}@media print{body{background:#160e19}header,footer,.actions,.full,#status{display:none!important}.wrap{max-width:100%;padding:0}.certificate{break-inside:avoid}}

/* V1.1: Compact certificate proportions and clear species symbols */
#resultSymbol{margin-top:10px;margin-bottom:4px;font-size:44px;line-height:1.2}
#resultNumber{margin-bottom:5px}
.certificate{padding:23px 18px 18px}
.certificate h2{margin:9px 0 5px}
#certHearts{font-size:37px;line-height:1.15;margin:0 0 5px}
#certTitle{margin:4px 0 15px}
.certmate{padding:12px 0 8px}
.certmate .symbol{font-size:34px;line-height:1.15;margin:0 0 4px}
.certmate .eyebrow{margin:5px 0}
.certmate strong{font-size:23px;line-height:1.2;margin:4px 0}
.certmate .sub{margin:6px auto 0;line-height:1.4;max-width:470px}
.cert-joke{margin:14px auto 9px;max-width:470px;line-height:1.45}
.certificate>.eyebrow:last-of-type{margin:8px 0 2px}
.certificate>.sub:last-child{margin:2px 0 0}
/* The Mother's Match v1 */
.panel p{overflow-wrap:break-word}.species{font-family:Georgia,serif;font-weight:700}.director-note{color:var(--blush);font-style:italic}.choice{width:100%}#resultHelp{text-align:center;margin:12px 0 0}.certificate{background:linear-gradient(155deg,#251526,#120d17)}.certmate{padding:11px 0 10px}.certmate strong{margin:2px 0}.certmate .sub{margin:3px auto}.cert-joke{padding:0 6px}button{ -webkit-tap-highlight-color:transparent }@media(prefers-reduced-motion:no-preference){.panel:not(.hidden){animation:appear .25s ease-out}@keyframes appear{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}}

/* V3.3: Madame Sherise welcome illustration — welcome page only */
.welcome-panel{padding:18px 20px 26px;overflow:hidden}
.sherise-portrait{margin:0 0 22px;position:relative;border:1px solid #96516f;background:#1a101c;border-radius:8px;overflow:hidden}
.sherise-portrait img{display:block;width:100%;height:auto;max-height:460px;object-fit:cover;object-position:center 28%}
.sherise-portrait figcaption{position:absolute;bottom:0;left:0;right:0;padding:28px 12px 12px;background:linear-gradient(transparent,rgba(16,8,19,.94));font-size:10px;font-weight:750;letter-spacing:.12em;text-align:center;color:#fcdade}
.welcome-heart{text-align:center;font-size:30px;margin:0 0 6px}
.welcome-panel>.eyebrow{text-align:center;margin:0}
.welcome-panel h2{text-align:center}
@media(min-width:700px){.wrap:has(#intro:not(.hidden)){max-width:740px}.welcome-panel{padding:24px 28px 30px}.sherise-portrait img{max-height:510px;object-position:center 30%}}
@media(max-width:480px){.welcome-panel{padding:14px 15px 22px}.sherise-portrait{margin-bottom:16px}.sherise-portrait img{max-height:350px;object-position:center 23%}.sherise-portrait figcaption{font-size:9px;letter-spacing:.09em}.welcome-panel h2{margin-top:7px}}
@media(max-width:360px){.sherise-portrait img{max-height:290px}}

/* V3.4: horizontal portrait displays without clipping */
.sherise-portrait img{height:auto;max-height:none;object-fit:contain;object-position:center}
@media(min-width:700px){.sherise-portrait img{max-height:none;object-position:center}}
@media(max-width:480px){.sherise-portrait img{max-height:none;object-position:center}}
@media(max-width:360px){.sherise-portrait img{max-height:none}}

/* V3.5: highlight the director and agency names in the welcome copy */
.welcome-panel .director-highlight{color:#ee91bd;font-weight:750}
/* v3.6 — Highlight the reader's selected answers on every match result. */
.result-copy strong{color:#ee91bd;font-weight:750}
