.case{--wine:#812a2c;--ink:#142b34;--rule:#cbbd9f;margin:0 auto clamp(2rem,6vw,4rem);max-width:52rem;border:1px solid var(--rule);background:#fffaf0;color:var(--ink);scroll-margin-top:.5rem}
.case [hidden],.case[hidden]{display:none}
.case-cover{background:#244337;color:#fffae9;padding:clamp(1rem,3.5vw,2rem);border-bottom:4px solid #b69757}
.case-cover p:first-child,.case-count{font-weight:750;font-size:.86rem;letter-spacing:.075em;text-transform:uppercase}
.case-cover p:first-child{color:#ffdda4;margin:0}.case-cover h2{font-size:clamp(1.95rem,5vw,3.4rem);margin:.25rem 0 .55rem}.case-cover p:last-child{max-width:58ch;margin:0}
.case-file{padding:clamp(.9rem,3.5vw,2rem)}.case-count{margin:0 0 .4rem;color:var(--wine)}
.case-file fieldset{min-width:0;margin:0;padding:0;border:0}.case-file legend,.case-file h3{font:700 clamp(1.45rem,3vw,2rem)/1.14 Georgia,serif;margin:0;padding:0}
.case-file #clue{max-width:56ch;margin:.55rem 0 1rem}.case-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.35rem,2vw,1rem);max-width:35rem}
.case-choices label{position:relative;cursor:pointer;display:flex;align-items:stretch;flex-direction:column;overflow:hidden;background:#fff;border:2px solid var(--rule);border-radius:.35rem}
.case-choices input{position:absolute;top:.32rem;left:.32rem;width:1.15rem;height:1.15rem;margin:0;accent-color:var(--wine)}
.case-choices img{display:block;width:100%;aspect-ratio:4/5;object-fit:contain;background:#f3ead9}
.case-choices span{flex:1;display:grid;place-items:center;min-height:2.7rem;text-align:center;font-weight:700;line-height:1.15;font-size:clamp(.9rem,2vw,1.05rem);padding:.3rem}
.case-choices label:has(:checked){border-color:var(--wine)}.case-choices input:checked~span{color:#fff;background:var(--wine)}.case-choices label:focus-within{outline:3px solid #245d9c;outline-offset:2px}
.case-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.8rem;margin-top:1.1rem}
.case-actions button{min-height:46px;padding:.6rem 1rem;background:var(--wine);border:1px solid var(--wine);border-radius:.2rem;color:white;font:700 1rem system-ui;cursor:pointer}
.case-actions #previous{background:transparent;color:var(--wine)}
.case-file #deductions{padding-left:1.15rem}.case-file #deductions li{margin:.6rem 0}.case-file #deductions strong{display:block}
