/* Mystery Case — investigative game UI for MixUp V10.9 */
.ff-mini-card[data-act="mystery-open"] .ff-mini-icon{overflow:hidden;border-radius:18px}
.ff-mini-card[data-act="mystery-open"] .ff-mini-icon img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
.mystery-shell{max-width:900px;margin:0 auto 24px;color:#283755}
.mystery-heading{position:relative;border-radius:25px;padding:21px 22px 28px;background:linear-gradient(125deg,#122e52,#354e81 65%,#755884);color:#fff;box-shadow:0 15px 34px #2c336d35;overflow:hidden;min-height:150px}
.mystery-heading:before{content:"";position:absolute;right:-60px;top:-70px;width:250px;height:250px;background:radial-gradient(circle,#b6dce84a,transparent 72%);pointer-events:none}
.mystery-heading h1{position:relative;color:#fff;font-size:clamp(34px,7vw,52px);line-height:1.1;margin:9px 0 0;letter-spacing:-1px}
.mystery-heading .eyebrow{display:block;color:#cddbf7;letter-spacing:.13em;font-size:10px;font-weight:900;margin-top:12px}
.mystery-logo{position:absolute;right:28px;bottom:16px;font-size:57px;opacity:.85;filter:drop-shadow(0 5px 8px #162d64)}
.mystery-back{border:1px solid #ffffff48;color:#fff;background:#ffffff24;padding:7px 12px;border-radius:12px;font-size:12px;font-weight:850;position:relative;z-index:2}
.mystery-about,.mystery-connect{margin:15px 0;border-radius:23px;border:1px solid #deddec;background:linear-gradient(125deg,#faf9ff,#ecf6fc);padding:22px;box-shadow:0 8px 22px #242c750c}
.mystery-about h2,.mystery-connect h2{font-size:25px;color:#2e3665;margin:0 0 9px}.mystery-about p,.mystery-connect p{color:#566581}
.mystery-how{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:24px 0}
.mystery-how span{display:flex;align-items:center;gap:7px;font-size:13px;color:#405077;font-weight:750;padding:10px;border-radius:13px;background:#edf2fc;line-height:1.3}
.mystery-how b{display:grid;place-items:center;flex:0 0 28px;height:28px;background:#604fa5;border-radius:50%;color:white}
.mystery-setting,.mystery-connect label{display:block;margin:15px 0;font-size:14px;font-weight:850;color:#3c4872}
.mystery-setting select,.mystery-connect input,.mystery-connect select{display:block;margin-top:7px;border:1.5px solid #bcc7e2;border-radius:12px;padding:12px;color:#22355d;background:#fff;max-width:100%;width:100%;font-size:15px}
.mystery-mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0}
.mystery-mode{border:0;border-radius:20px;padding:21px 14px;min-height:135px;color:#fff;background:linear-gradient(130deg,#6d46b0,#ab60c0);box-shadow:0 11px 20px #6441a02d;text-align:center}
.mystery-mode.multi{background:linear-gradient(130deg,#1e7184,#39aa9d)}.mystery-mode span{font-size:40px;display:block}.mystery-mode strong{display:block;font-size:20px;line-height:1.2}.mystery-mode small{display:block;font-size:12px;opacity:.9;margin-top:5px}
.mystery-hint,.mystery-note{font-size:12px!important;color:#667490!important}
.mystery-connect-options{display:grid;gap:12px;grid-template-columns:1fr;max-width:430px}.mystery-connect-options>span{text-align:center;color:#75839d;font-weight:800}
.mystery-connect-options label{margin:0}
.mystery-status{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin:14px 0;color:#4c4f79;font-weight:900;font-size:13px}
.mystery-status>span{background:#f1effe;border:1px solid #dddafa;padding:8px 12px;border-radius:12px}
.mystery-casefile{position:relative;padding:23px 19px;border:1.5px solid #e2d0a2;border-radius:21px;background:linear-gradient(120deg,#fff9e9,#f5e7cc);color:#414258;box-shadow:0 12px 26px #62553712}
.mystery-filetag{display:inline-block;font-weight:950;font-size:10px;letter-spacing:.15em;color:#7e6591;background:#f0e0cb;border-radius:7px;padding:6px 10px}
.mystery-casefile h2{font-size:clamp(24px,5vw,33px);line-height:1.2;margin:14px 0 8px;color:#393857}
.mystery-casefile h3{font-size:15px;margin:19px 0 10px;color:#665578}
.mystery-scene{font-size:15px;line-height:1.55;font-weight:650;color:#545773}
.mystery-clue-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.mystery-clue{padding:13px;border-radius:12px;background:#fffaf0;border:1px solid #ebd7b9;box-shadow:0 3px 12px #60492a11}
.mystery-clue>span{display:block;color:#a47149;font-size:10px;letter-spacing:.1em;font-weight:950;margin-bottom:7px}.mystery-clue p{font-size:13px;line-height:1.4;margin:0;color:#4c5065;font-weight:700}
.mystery-accuse{font-size:19px;margin:20px 0 10px;color:#34416a}
.mystery-suspects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mystery-suspect{display:flex;gap:9px;align-items:center;position:relative;min-height:78px;border:1.5px solid #c9d3e6;border-radius:14px;background:linear-gradient(130deg,#fff,#eef3fc);padding:11px;font-size:14px;font-weight:780;text-align:left;color:#334267}
.mystery-suspect small{position:absolute;top:3px;right:8px;font-size:10px;color:#919aad}.mystery-suspect:disabled{opacity:1}
.mystery-person{width:33px;height:33px;border-radius:50%;display:grid;place-items:center;background:#e8dfff;font-size:21px;flex-shrink:0}
.mystery-suspect.correct{border-color:#30a77d;background:#e1f9ed}.mystery-suspect.wrong{border-color:#db7d85;background:#ffeded}
.mystery-more{margin:13px 0 0;background:#50428b;color:#fff;border:0;border-radius:13px;padding:12px 16px;font-size:14px;font-weight:850}.mystery-more small{display:block;opacity:.85;font-size:11px;font-weight:600;margin-top:3px}
.mystery-advice{background:#edf2ff;color:#536481;font-size:13px;margin:13px 0;border-radius:11px;padding:11px 14px}
.mystery-reveal{border:1.5px solid #9ed6b8;background:#e9fff1;border-radius:17px;padding:17px;margin-top:17px;animation:mystery-rise .35s ease}
.mystery-reveal.missed{border-color:#e5c4a6;background:#fff8e8}
.mystery-reveal h3{font-size:22px;color:#2e6f5e;margin:0 0 8px}.mystery-reveal p{margin:7px 0;font-size:14px;color:#425776}
.mystery-next{margin-top:15px;width:100%}
.mystery-scores{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.mystery-scores span{background:#fff;border:1px solid #ded6ef;border-radius:12px;padding:10px;font-size:12px;font-weight:700}.mystery-scores b{color:#5451a6;margin-left:8px}
.mystery-party{display:flex;flex-wrap:wrap;gap:9px}.mystery-party span{padding:9px 11px;background:#eee7ff;border-radius:12px}
.mystery-finish{margin:18px auto;text-align:center;border:1px solid #d9c6f6;background:linear-gradient(125deg,#f8eeff,#eafbf3);border-radius:25px;padding:31px 17px;animation:mystery-rise .5s ease}
.mystery-winner{font-size:78px;animation:mystery-trophy 1.2s cubic-bezier(.26,1.4,.53,.98)}.mystery-finish h2{font-size:clamp(25px,6vw,39px);color:#5550a1;margin:8px 0}.mystery-finish p{color:#66728c}.mystery-finish strong{display:block;font-size:32px;color:#277b7a;margin:8px 0 24px}
@keyframes mystery-rise{from{opacity:0;transform:translateY(15px) scale(.98)}to{opacity:1;transform:none}}@keyframes mystery-trophy{0%{transform:scale(.5) rotate(-13deg)}72%{transform:scale(1.15) rotate(6deg)}100%{transform:scale(1)}}
@media(max-width:670px){.mystery-clue-board{grid-template-columns:1fr}.mystery-clue p{font-size:14px}.mystery-about,.mystery-connect{padding:14px}.mystery-how{grid-template-columns:1fr}.mystery-suspects{grid-template-columns:1fr}.mystery-heading{min-height:130px}.mystery-logo{font-size:41px}}
@media(prefers-reduced-motion:reduce){.mystery-reveal,.mystery-finish,.mystery-winner{animation:none!important}}

/* V10.9 illustrated investigations: original scene comics and visual evidence */
.mystery-scene-art{margin:13px 0 14px;overflow:hidden;border:3px solid #e0d0f5;border-radius:19px;background:#262152;box-shadow:0 10px 22px #29215335}
.mystery-scene-art img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.mystery-scene-art figcaption{background:#272046;padding:9px 12px;color:#ffedb9;font-size:11px;letter-spacing:.05em;font-weight:950;text-align:center}
.mystery-clue{padding:0!important;overflow:hidden;border:2px solid #e3d4b5!important}
.mystery-clue .mystery-evidence-art{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:linear-gradient(130deg,#292058,#8477ba)}
.mystery-clue>span{padding:11px 12px 0;margin-bottom:0!important}
.mystery-clue>p{padding:7px 12px 13px;margin:0!important}
@media(max-width:590px){.mystery-clue-board{grid-template-columns:1fr!important}.mystery-clue{display:grid;grid-template-columns:38% 1fr;grid-template-rows:auto 1fr;align-items:start}.mystery-clue .mystery-evidence-art{grid-row:1/span 2;aspect-ratio:1/1;height:100%}.mystery-clue>span{grid-column:2}.mystery-clue>p{grid-column:2}}
