body.fun-page:has(.detective){background:#080808;color:#fff}
body.fun-page:has(.detective) .fun-shell{max-width:1260px;width:calc(100% - 36px);padding:22px 0 90px}
.detective{font-family:"Atkinson Hyperlegible",Arial,Helvetica,sans-serif;color:#fff;font-size:17px;line-height:1.5}
.detective *{box-sizing:border-box}
.detective button,.detective input{font:inherit}
.detective button{cursor:pointer}
.detective-back{display:inline-block;color:#fff;font-weight:800;text-decoration:none;padding:8px 0;border-bottom:3px solid #f0182b;margin-bottom:32px}
.detective-back:hover,.detective-back:focus-visible{color:#ffc928}
.detective-title{position:relative;display:flex;justify-content:space-between;align-items:center;gap:24px;overflow:hidden;background:linear-gradient(120deg,#510a16 0%,#1a080b 58%,#0c0c0c 100%);padding:clamp(28px,5vw,65px);min-height:300px}
.detective-overline{font-size:15px;font-weight:800;color:#ffc928;margin:0 0 20px}
.detective-title h1{font-size:clamp(3.3rem,8vw,7rem);line-height:.9;letter-spacing:-.065em;margin:0 0 23px;font-weight:900;max-width:880px}
.detective-title h1 em{font-style:normal;color:#ff3045}
.detective-title p:last-child{max-width:680px;margin:0;color:#f2f2f2;font-size:18px}
.detective-stamp{font-size:clamp(9rem,21vw,21rem);line-height:1;font-weight:900;color:#f0182b;opacity:.24;transform:rotate(-14deg);user-select:none}
.detective-modes{display:flex;flex-wrap:wrap;gap:8px;margin:25px 0}
.detective-modes button{padding:13px 20px;border:1px solid #666;background:#202020;color:#fff;font-weight:800;min-height:48px}
.detective-modes button.active{background:#f0182b;border-color:#f0182b}
.detective-modes button:hover,.detective-modes button:focus-visible{border-color:#ffc928;outline:2px solid #ffc928;outline-offset:2px}
.detective-layout{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(260px,.85fr);gap:24px;align-items:start}
.detective-case{background:#171717;border-top:6px solid #f0182b;padding:clamp(22px,4vw,44px);min-width:0}
.detective-case-heading{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;color:#ffc928;font-weight:900;font-size:14px}
.detective-question h2{font-size:clamp(2rem,4vw,3.8rem);line-height:1.05;letter-spacing:-.04em;margin:28px 0 10px}
.detective-question p{color:#d6d6d6;margin:0 0 24px}
.detective-clues{padding:0;margin:0 0 28px;list-style:none;display:grid;gap:10px}
.detective-clues li{display:grid;grid-template-columns:48px minmax(0,1fr);gap:16px;align-items:center;padding:20px;background:#292929;border-left:4px solid #f0182b;min-height:90px;font-size:18px}
.detective-clues li.sealed{border-left-color:#5a5a5a;background:#202020;color:#aaa}
.detective-clue-number{font-weight:900;color:#ffc928;font-size:21px}
.detective-clues li.sealed .detective-clue-number{color:#888}
.detective-locked{font-size:16px}
.detective-form label{display:block;font-weight:800;margin-bottom:12px}
.detective-input-row{display:flex;gap:10px}
.detective-input-row input{min-width:0;flex:1;background:#0d0d0d;border:2px solid #888;color:#fff;padding:14px 15px;min-height:56px;border-radius:0}
.detective-input-row input:focus{outline:2px solid #ffc928;outline-offset:2px}
.detective-input-row button,.detective-next{border:2px solid #f0182b;background:#f0182b;color:#fff;font-weight:900;padding:13px 22px;min-height:56px}
.detective-input-row button:hover,.detective-next:hover,.detective-input-row button:focus-visible,.detective-next:focus-visible{background:#ffc928;border-color:#ffc928;color:#080808}
.detective-feedback{color:#ffc928;min-height:25px;margin:12px 0 0}
.detective-sidebar{background:#262626;border:1px solid #484848;padding:26px}
.detective-sidebar>h2{font-size:26px;margin:0 0 20px}
.detective-count{display:flex;align-items:center;gap:16px;border-top:1px solid #555;border-bottom:1px solid #555;padding:16px 0}
.detective-count strong{font-size:70px;line-height:1;color:#ffc928}
.detective-count span{font-weight:700}
.detective-sidebar>p{color:#d8d8d8}
.detective-history{margin-top:25px}
.detective-history h3,.detective-guide h3{font-size:19px;margin:0 0 12px}
.detective-history ol{list-style:none;padding:0;margin:0}
.detective-history li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:11px 0;border-bottom:1px solid #555;overflow-wrap:anywhere}
.detective-history li strong{font-size:12px;color:#ff7b87}
.detective-history li strong.right{color:#ffc928}
.detective-history>p,.detective-guide p{font-size:15px;color:#d0d0d0}
.detective-guide{border-top:1px solid #555;margin-top:24px;padding-top:24px}
.detective-outcome{padding:28px;border:2px solid #ffc928;background:#2b2515;margin:20px 0}
.detective-outcome.loss{border-color:#f0182b;background:#2c1419}
.detective-outcome p{font-size:14px;font-weight:900;letter-spacing:.05em;margin:0 0 10px}
.detective-outcome h3{font-size:clamp(2rem,4vw,3rem);margin:0 0 10px;line-height:1.1}
.detective-next{margin-top:8px}
.detective-tomorrow{color:#ddd}
@media(max-width:850px){.detective-layout{grid-template-columns:1fr}.detective-stamp{display:none}.detective-title{min-height:0}.detective-sidebar{padding:22px}}
@media(max-width:480px){.detective-title{padding:25px}.detective-title h1{font-size:clamp(2.8rem,13vw,4.4rem)}.detective-input-row{flex-direction:column}.detective-input-row button{width:100%}.detective-clues li{grid-template-columns:35px minmax(0,1fr);gap:10px;padding:15px;font-size:16px}.detective-modes button{flex:1}}
