:root{font-family:"DM Sans","Segoe UI",sans-serif;color:#223a31;background:#183832;font-size:17px;--ink:#203b33;--paper:#fbf4dd;--dim:#4e6153;--orange:#f6ac54}
*{box-sizing:border-box}body{margin:0;min-height:100vh;padding:clamp(0px,3vw,30px) 12px;background:repeating-radial-gradient(ellipse at 2% 5%,transparent 0 42px,#25443a 43px 44px,transparent 45px 66px),#183832}button,input{font:inherit}button{cursor:pointer}button:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #be541e;outline-offset:3px}button:disabled{cursor:default}
.folder{max-width:620px;margin:auto;background:var(--paper);border:1px solid #112d27;border-radius:12px;overflow:hidden;box-shadow:0 12px 45px #0e292688}
.mast{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--ink);color:#fff3d4;padding:12px clamp(16px,5vw,36px);border-bottom:3px solid #e8a951}
.brand{font-family:Georgia,serif;font-weight:700;font-size:1.04rem;display:flex;align-items:center;gap:8px}.paw{display:inline-grid;place-content:center;background:#f6b65c;font-size:.92rem;border-radius:50%;width:26px;height:26px}.dept,.tag,.statusline,.evidence-name,.footnote{font-family:"IBM Plex Mono",Consolas,monospace}.dept,.tag,.evidence-name,.statusline{text-transform:uppercase;font-size:.8rem;letter-spacing:.065em;font-weight:700}.dept{font-size:.72rem;text-align:right;color:#e3ddbd}
.cover{margin:0;background:#f7be6d;border-bottom:3px solid var(--ink)}.cover img{display:block;width:100%;height:auto}.paper{padding:clamp(18px,4vw,36px);background:var(--paper)}.tag{display:inline-block;background:#eed7ad;color:#643a24;padding:5px 9px;border-radius:3px;letter-spacing:.11em}
h1,h2{font-family:"DM Serif Text",Georgia,serif;letter-spacing:-.05em;line-height:.98;margin:14px 0 16px;font-weight:700}h1{font-size:clamp(2.85rem,8vw,4.55rem)}h1 em,.ending em{color:#8f4028}h2{font-size:clamp(2rem,6vw,3rem)}p{line-height:1.48;margin:12px 0;font-size:1.06rem}.how{color:var(--dim);font-size:.98rem}
.primary{display:block;width:100%;background:#204937;color:#fff4d6;font-weight:700;padding:14px 18px;border:2px solid #143c2f;border-radius:7px;box-shadow:0 3px 0 #132f26;margin:18px 0 0}.primary:hover{background:#2c5946}.primary:active{transform:translateY(1px)}.footnote{font-size:.77rem;line-height:1.45;text-align:center;margin:14px 0 0;color:var(--dim)}[hidden]{display:none!important}
.game-page{min-height:510px}.statusline{display:flex;justify-content:space-between;gap:8px;color:var(--dim);font-size:.76rem}.trail{display:flex;gap:5px;margin:9px 0 23px}.trail span{height:6px;border-radius:3px;flex:1;background:#ddd5bc}.trail .done{background:#477052}.trail .current{background:#d7773a}
.evidence{display:flex;align-items:center;gap:12px;margin:6px 0 18px}.clue-icon{font-size:2rem;line-height:1;width:55px;height:55px;display:grid;place-items:center;background:#f0d7a8;border:1px solid #d5b57e;border-radius:13px;transform:rotate(-5deg)}.evidence-name{color:#705439;font-size:.82rem}
.prompt{font-size:1.19rem;line-height:1.55}.blank{display:inline-block;min-width:3.1em;border-bottom:2px dashed #aa6230;text-align:center;font-weight:750;color:#864c29;line-height:1.1}.blank.solved{border:0;color:#265636;min-width:0}.choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.answer{background:#fffaf0;color:var(--ink);border:2px solid #7d8b72;border-radius:6px;padding:12px 2px;font-weight:650;min-height:48px}.answer:hover:enabled{background:#f3e5c7}.answer.miss{background:#f5e1cf;border-color:#ad704b;text-decoration:line-through}.answer.hit{background:#d6e5c6;border-color:#48734d}
fieldset{border:0;padding:0;margin:20px 0 0;min-width:0}legend,.input-label{display:block;font-size:.9rem;font-weight:700;margin-bottom:8px}.field{width:100%;background:#fffaf0;color:var(--ink);border:2px solid #7d8b72;border-radius:6px;padding:11px 12px;font-size:1rem}.field[readonly]{background:#e8e4d3}.fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.input-label{margin-top:7px}.feedback{background:#e3ebd5;border-left:4px solid #467049;border-radius:4px;margin-top:18px;padding:12px 15px;line-height:1.44}.feedback strong,.feedback span{display:block}.feedback span{margin-top:3px}.feedback.wrong{background:#f7e4c9;border-color:#ac6736}
.ending .end-art{font-size:2.55rem;margin:6px 0 20px}.ending h2{font-size:clamp(2.6rem,6vw,4rem)}.result{font-weight:bold;font-family:Georgia,serif;font-size:1.22rem}details{margin-top:18px}summary{cursor:pointer;padding:7px 0;font-weight:bold}table{width:100%;border-collapse:collapse;font-size:.9rem;text-align:left;margin:10px 0}th,td{border-bottom:1px solid #d4cbb3;padding:6px 4px}th{font-size:.8rem}
@media(max-width:520px){body{padding:0}.folder{border-radius:0;border:0;min-height:100svh}.mast{padding:11px 18px}.cover img{max-height:210px;object-fit:cover}.paper{padding:20px}.game-page{min-height:0}.statusline{font-size:.72rem}}
@media(max-width:350px){.paper{padding:15px}.mast{padding:10px 13px}.dept{font-size:.62rem}.fields{grid-template-columns:1fr}.choices{gap:4px}.answer{font-size:.95rem}}
