/* V24 investigative game, restrained palette keyed to existing tokens */
.casebook-game[hidden]{display:none!important}
.casebook-game{position:fixed;inset:0;z-index:1700;overflow:auto;padding:clamp(8px,2vw,26px);background:#071b24ed;color:#f0f6ef;font-family:system-ui,-apple-system,"Microsoft YaHei",sans-serif}
.casebook-shell{max-width:1080px;margin:auto;border:1px solid #648d8b;border-radius:18px;background:linear-gradient(145deg,#143543,#0a242e);box-shadow:0 16px 75px #000b;padding:clamp(12px,2.8vw,32px)}
.casebook-shell>header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.casebook-shell>header h2{font-size:clamp(21px,3vw,32px);margin:5px 0}.casebook-shell>header p{margin:4px 0 10px;color:#cae3db}.casebook-shell>header small,.casebook-eyebrow{color:#9bbab8;letter-spacing:.09em}
.casebook-shell button{cursor:pointer;font:inherit;border-radius:10px}.casebook-shell button:focus-visible{outline:3px solid #efce84;outline-offset:3px}
#casebookExit{background:#284653;color:white;border:1px solid #829f9d;padding:9px 12px;white-space:nowrap}
.casebook-scene{width:100%;height:clamp(142px,25vw,290px);display:block;object-fit:cover;border:1px solid #769999;border-radius:13px;background:#1a414d}
.casebook-progress{display:flex;justify-content:center;gap:10px;padding:17px 0 6px}.casebook-progress span{width:29px;height:29px;border:1px solid #7aada8;border-radius:50%;display:grid;place-items:center;color:#b7d6d0}.casebook-progress span.current{background:#f2d398;color:#173440;font-weight:700}.casebook-progress span.done{background:#70b49d;color:#102a35}
.casebook-goal{max-width:790px;margin:12px auto;text-align:center}.casebook-goal h3{font-size:clamp(18px,2.5vw,24px);margin:7px 0}.casebook-goal p{margin:5px 0 14px;line-height:1.55;color:#cfdfdf}
.casebook-evidence{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:920px;margin:0 auto}.casebook-card{min-height:130px;text-align:left;display:flex;flex-direction:column;gap:6px;padding:16px;color:#e2eee9;background:#1e4552;border:1px solid #658b89;transition:transform .1s,background .1s}.casebook-card small{color:#c7decb}.casebook-card b{font-size:17px}.casebook-card span{line-height:1.45;font-size:13px}.casebook-card i{font-style:normal;margin-top:auto;font-size:12px;color:#b0cabf}.casebook-card.selected{border:2px solid #ffd994;background:#3d5b58}.casebook-card:hover{transform:translateY(-2px)}
.casebook-actions{display:flex;gap:12px;justify-content:center;align-items:center;margin:20px 0 4px}.casebook-actions button,.casebook-solved button,.casebook-end button{padding:12px 18px;color:#102c39;background:#f2d398;border:0;font-weight:700}.casebook-actions button:disabled{opacity:.4;cursor:not-allowed}.casebook-notice{text-align:center;min-height:20px;color:#f2d398}.casebook-solved,.casebook-end{max-width:760px;margin:28px auto;padding:24px;background:#204755;border:1px solid #77a89f;border-radius:13px;text-align:center}.casebook-solved p,.casebook-end p{line-height:1.7}.casebook-solved small{display:block;color:#b7dfd4;margin-bottom:20px}.casebook-summary{text-align:left}.casebook-summary p{display:flex;flex-direction:column;gap:4px;border-bottom:1px solid #5c7c7e;padding-bottom:12px}.casebook-summary span{color:#cee0dc}
.casebook-shell footer{color:#abc3c0;font-size:11px;margin-top:18px;line-height:1.5;text-align:center}
@media(max-width:640px){.casebook-game{padding:0}.casebook-shell{border-radius:0;min-height:100dvh;padding:14px}.casebook-scene{height:145px}.casebook-shell>header h2{font-size:20px}.casebook-shell>header p{font-size:12px}.casebook-evidence{grid-template-columns:1fr;gap:7px}.casebook-card{min-height:0;padding:10px 13px}.casebook-card b{font-size:15px}.casebook-card span{font-size:12px}.casebook-actions{position:sticky;bottom:0;padding:10px 4px;background:#0f2b37;justify-content:space-between}.casebook-actions button{font-size:13px}.casebook-goal h3{font-size:19px}.casebook-goal p{font-size:13px}}
/* Terrain truth/provenance stays readable above the map rather than suggesting survey precision */
.terrain-truth{position:fixed;bottom:15px;left:16px;z-index:18;max-width:min(330px,70vw);font-size:11px;pointer-events:none}
/* Suspend unrelated global navigation while the evidence desk owns the viewport. */
body.casebook-open #v17Dock,body.casebook-open #gameHubLaunch,body.casebook-open #v17Intro,body.casebook-open #v22WelcomeShade,body.casebook-open .terrain-truth,body.casebook-open .physics-lab-launch{display:none!important}
.casebook-shell h2,.casebook-shell h3,.casebook-shell b{color:#f2f6f0;font-family:system-ui,-apple-system,"Microsoft YaHei","Noto Sans CJK SC",sans-serif}
.casebook-shell .casebook-card b{color:#f2f6f0}
.casebook-game,.casebook-shell{font-family:system-ui,-apple-system,"Microsoft YaHei","Noto Sans CJK SC",sans-serif}
