.menu-detective-id {border:1px solid var(--border-dim);border-radius:7px;background:transparent;color:var(--paper);padding:10px 14px;font:600 12px var(--font-sans);cursor:pointer;}
.menu-detective-id:hover {border-color:var(--amber);color:var(--amber);}
.detective-dialog {width:min(750px,calc(100% - 28px));max-height:calc(100dvh - 36px);overflow:auto;border:1px solid var(--border-dim);border-radius:15px;padding:0;background:var(--bg-panel);color:var(--paper);}
.detective-dialog::backdrop {background:#090a0ce0;backdrop-filter:blur(7px);}
.detective-dialog-heading {display:flex;justify-content:space-between;align-items:center;padding:22px 28px;border-bottom:1px solid var(--border-dim);}
.detective-dialog-heading h2 {margin:0;font-size:17px;}
.detective-passport {margin:26px;background:#d9ccb1;color:#352d24;padding:27px;border:1px solid #b2a184;border-radius:4px;box-shadow:0 7px 25px #0003;position:relative;overflow:hidden;}
.detective-passport::before {content:'';position:absolute;inset:0;pointer-events:none;opacity:.18;background:repeating-radial-gradient(ellipse at 80% 30%,transparent 0 11px,#8a7455 12px,transparent 13px);}
.detective-passport-head,.detective-passport-person,.detective-passport-stats {position:relative;display:flex;justify-content:space-between;gap:20px;}
.detective-passport-head {border-bottom:1px solid #94816499;padding-bottom:17px;margin-bottom:22px;align-items:center;font:600 11px/1.5 var(--font-sans);letter-spacing:2px;}
.detective-passport-head strong {font-size:20px;letter-spacing:-.8px;}
.detective-monogram {display:grid;place-items:center;width:80px;height:95px;flex-shrink:0;border:1px solid #94816488;background:#c9bca4;font:italic 33px Georgia,serif;}
.detective-passport-person {justify-content:flex-start;align-items:center;margin-bottom:25px;}
.detective-passport-name {font:500 29px/1.2 Georgia,serif;margin:0 0 8px;overflow-wrap:anywhere;}
.detective-passport-number {font:11px/1.6 monospace;letter-spacing:1.3px;}
.detective-passport-stats {display:grid;grid-template-columns:1fr 1fr 1fr;padding-top:19px;border-top:1px solid #94816488;}
.detective-passport-stats strong {display:block;font:600 29px/1.2 var(--font-sans);}
.detective-passport-stats span {display:block;font:11px/1.5 var(--font-sans);margin-top:5px;}
.detective-body {padding:0 28px 28px;}
.detective-body h3 {font:600 14px var(--font-sans);margin:25px 0 14px;}
.detective-empty {font-size:13px;line-height:1.7;color:var(--paper-dim);}
.detective-case-row {display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--border-dim);padding:14px 0;font-size:13px;}
.detective-case-row strong,.detective-case-row small {display:block;}.detective-case-row small {font-size:11px;color:var(--paper-dim);margin-top:5px;}.detective-case-score {white-space:nowrap;color:var(--amber);font-weight:600;}
.detective-achievements {display:flex;flex-wrap:wrap;gap:9px;}.detective-achievement {padding:9px 12px;border:1px solid var(--border-dim);border-radius:6px;color:var(--paper-dim);font-size:11px;}.detective-achievement.earned {color:var(--amber);border-color:var(--amber);background:var(--accent-soft);}
.detective-account {margin-top:25px;padding-top:22px;border-top:1px solid var(--border-dim);}.detective-account-title {font-size:15px;margin:0 0 7px;}.detective-account p {color:var(--paper-dim);font-size:12px;line-height:1.6;}.detective-account-actions {display:flex;gap:10px;flex-wrap:wrap;margin-top:15px;}.detective-account-actions .btn {min-height:40px;font-size:12px;}
.detective-auth-form {display:grid;gap:14px;margin-top:18px;}.detective-auth-form label {display:grid;gap:7px;font-size:12px;}.detective-auth-form input,.puzzle-select-fields select {width:100%;min-width:0;border:1px solid var(--border-dim);border-radius:6px;padding:12px;background:var(--input-bg);color:var(--paper);font:14px var(--font-sans);}.detective-auth-form .btn {justify-content:center;}.detective-auth-terms {font-size:11px!important;}.detective-auth-terms a {color:var(--paper);}.detective-status {font-size:12px;color:var(--amber);line-height:1.6;min-height:1em;}.detective-status.is-error {color:#dc9785;}
.puzzle-select-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:24px 0 17px;}.puzzle-select-fields label {display:grid;gap:8px;font-size:13px;}.puzzle-reward {display:flex;align-items:center;gap:18px;margin:22px 0;padding:23px;border:1px solid var(--amber);border-radius:9px;background:var(--accent-soft);}.puzzle-reward[hidden] {display:none;}.puzzle-reward p {color:var(--amber);font-size:9px;letter-spacing:2px;margin:0 0 7px;}.puzzle-reward h3 {font:500 26px Georgia,serif;margin:0 0 6px;}.puzzle-reward span {font-size:11px;color:var(--paper-dim);}.puzzle-reward .reward-seal {width:55px;height:55px;display:grid;place-items:center;flex-shrink:0;border:1px solid var(--amber);border-radius:50%;font-size:28px;color:var(--amber);}.puzzle-reward .btn {margin-left:auto;font-size:11px;min-height:40px;}
.puzzle-witness-art {position:absolute;inset:55px 35px 25px;display:flex;justify-content:center;gap:10px;}.puzzle-witness-art i {display:grid;place-items:center;height:110px;width:78px;background:#d6c8ac;color:#45392a;transform:rotate(-8deg);font:italic 40px Georgia,serif;box-shadow:0 5px 15px #0007;}.puzzle-witness-art i:nth-child(2) {transform:rotate(2deg) translateY(-8px);}.puzzle-witness-art i:nth-child(3) {transform:rotate(8deg);}.puzzle-witness-art b {position:absolute;top:135px;font:8px monospace;letter-spacing:2px;color:#c3ae8e;white-space:nowrap;}
.puzzle-code-art {position:absolute;inset:63px 15px 20px;text-align:center;font:26px/1.3 monospace;letter-spacing:8px;color:#d8c39c;transform:rotate(-5deg);}.puzzle-code-art span {display:block;margin-top:20px;font-size:8px;letter-spacing:1.2px;color:#a3947d;}.puzzle-drawers-art {position:absolute;inset:50px 42px 20px;display:grid;gap:7px;transform:rotate(-3deg);}.puzzle-drawers-art i {display:flex;gap:14px;align-items:center;border:1px solid #796e5d;background:#3b3a36;padding:9px 14px;color:#cabc9e;font:14px Georgia,serif;box-shadow:0 3px 8px #0007;}.puzzle-drawers-art b {font:8px monospace;background:#c6b796;color:#413c31;padding:5px;letter-spacing:1px;}
.puzzle-evidence-cipher p:first-of-type {font:600 24px/1.5 monospace;letter-spacing:5px;}
.puzzle-reward {display:grid;grid-template-columns:55px minmax(0,1fr) auto;}.puzzle-reward .btn {width:auto;white-space:nowrap;min-width:145px;justify-content:center;}.detective-account-actions .btn {width:auto;justify-content:center;}
@media(max-width:640px){.menu-detective-id {padding:9px 10px;font-size:11px;}.detective-dialog-heading {padding:20px;}.detective-passport {margin:18px;padding:20px;}.detective-passport-head {font-size:8px;letter-spacing:1px;}.detective-passport-name {font-size:24px;}.detective-monogram {width:55px;height:74px;font-size:25px;}.detective-passport-person {gap:14px;}.detective-passport-stats {gap:10px;}.detective-passport-stats strong {font-size:23px;}.detective-passport-stats span {font-size:9px;}.detective-body {padding:0 20px 22px;}.puzzle-select-fields {grid-template-columns:1fr;}.puzzle-reward {flex-wrap:wrap;padding:18px;gap:14px;}.puzzle-reward .btn {width:100%;margin:0;}.puzzle-witness-art {inset:49px 12px 20px;gap:3px;}.puzzle-witness-art i {height:55px;width:24px;font-size:22px;}.puzzle-witness-art b {top:75px;font-size:5px;letter-spacing:0;}.puzzle-code-art {inset:57px 8px 20px;font-size:15px;letter-spacing:2px;}.puzzle-code-art span {font-size:5px;letter-spacing:0;}.puzzle-drawers-art {inset:47px 9px 20px;gap:4px;}.puzzle-drawers-art i {font-size:9px;padding:4px;gap:5px;}.puzzle-drawers-art b {font-size:4px;letter-spacing:0;padding:3px;}}
@media(max-width:640px){.puzzle-reward{grid-template-columns:45px minmax(0,1fr);}.puzzle-reward .reward-seal{width:45px;height:45px;}.puzzle-reward .btn{grid-column:1 / -1;width:100%;}.detective-account-actions .btn{width:100%;}}
