/* Sheets (notebook, suspects, accusation) and their buttons. */
/* sheets */
#backdrop { position: fixed; inset: 0; background: rgba(3,5,10,.6); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 21; }
#backdrop.show { opacity: 1; pointer-events: auto; }
#sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 22; max-height: 86%; display: flex; flex-direction: column; background: var(--file); color: var(--file-ink); border-radius: 14px 14px 0 0; box-shadow: 0 -12px 40px rgba(0,0,0,.5); transform: translateY(calc(100% + 24px)); transition: transform .3s cubic-bezier(.2,.8,.2,1); padding-bottom: env(safe-area-inset-bottom, 0px); }
#sheet.show { transform: translateY(0); }
#sheet::before { content: ""; position: absolute; left: 22px; top: -10px; width: 120px; height: 12px; background: var(--file-2); border-radius: 8px 8px 0 0; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding-block: 14px 8px; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); border-bottom: 1px dashed rgba(43,33,21,.35); }
.sheet-head h2 { margin: 0; flex: 1; font-family: var(--f-display); font-weight: 800; font-size: 28px; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.sheet-head .close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(43,33,21,.3); background: transparent; display: grid; place-items: center; }
.sheet-body { overflow-y: auto; padding-block: 12px 20px; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 18px; }
.lbl { font-family: var(--f-type); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--file-muted); margin-bottom: 8px; }
.suspects { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.sus { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 8px; border: 1.5px solid rgba(43,33,21,.35); background: rgba(255,255,255,.25); text-align: center; min-width: 0; }
.sus .L { font-family: var(--f-display); font-weight: 800; font-size: 26px; line-height: 1; }
.sus .N { font-size: 11.5px; line-height: 1.2; overflow-wrap: anywhere; }
.sus.struck { opacity: .45; text-decoration: line-through; }
.sus.sel { background: var(--file-ink); color: var(--file); border-color: var(--file-ink); }
.sus .flag { position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--bad); color: #fff; font: 700 10px/14px var(--f-body); }
.weapons { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.wpn { min-height: 52px; padding: 8px 10px; border-radius: 8px; border: 1.5px solid rgba(43,33,21,.35); background: rgba(255,255,255,.25); font-weight: 600; font-size: 14px; color: var(--file-ink); }
.wpn.sel { background: var(--file-ink); color: var(--file); border-color: var(--file-ink); }
.steps { font-family: var(--f-type); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--file-muted); display: flex; gap: 12px; flex-wrap: wrap; }
.steps b { color: var(--file-ink); font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.clues { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.clue { font-family: var(--f-type); font-size: 14px; line-height: 1.4; padding: 9px 11px; background: rgba(255,255,255,.35); border-left: 3px solid var(--file-ink); }
.clue b { font-family: var(--f-body); font-weight: 600; font-size: 13px; display: block; }
.clue-pick { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; border: 1.5px solid rgba(43,33,21,.3); border-radius: 8px; background: rgba(255,255,255,.3); padding: 9px 11px; color: var(--file-ink); }
.clue-pick .box { flex: none; width: 20px; height: 20px; border-radius: 4px; border: 2px solid var(--file-ink); display: grid; place-items: center; margin-top: 1px; }
.clue-pick[aria-pressed="true"] { background: var(--file-ink); color: var(--file); }
.clue-pick[aria-pressed="true"] .box { border-color: var(--file); background: var(--file); color: var(--file-ink); }
.clue-pick .t { font-weight: 600; font-size: 14px; }
.clue-pick .n { font-family: var(--f-type); font-size: 12.5px; opacity: .85; }
.clue-pick.ded, .clue.ded { border-left: 4px solid #a3291b; }
.empty { font-family: var(--f-type); font-size: 14px; color: var(--file-muted); }
.statement { font-family: var(--f-type); font-size: 17px; line-height: 1.45; padding: 12px 14px; background: rgba(255,255,255,.4); border-radius: 6px; }
.statement.broken { text-decoration: line-through; text-decoration-color: var(--bad); text-decoration-thickness: 2px; }
.verdict { font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 6px; }
.verdict.ok { background: rgba(232,96,79,.18); color: #7a1e12; }
.verdict.no { background: rgba(43,33,21,.1); }
.verdict.combo { font-weight: 400; margin-bottom: 8px; animation: pop .3s ease-out; }
.verdict.combo .tk { font-family: var(--f-type); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.verdict.combo .tt { font-weight: 700; margin: 2px 0; }
@keyframes pop { from { transform: translateY(6px); opacity: 0; } }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.sticky { position: sticky; bottom: -20px; background: var(--file); padding-block: 10px; margin-block: -10px; }
.fbtn { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1.5px solid var(--file-ink); background: transparent; color: var(--file-ink); font-weight: 600; }
.fbtn.solid { background: var(--file-ink); color: var(--file); font-family: var(--f-display); font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: .04em; }
.fbtn:disabled { opacity: .4; cursor: default; }
.back { background: none; border: none; padding: 0; color: var(--file-muted); font-size: 13px; font-weight: 600; align-self: flex-start; }
.profile { font-size: 14px; line-height: 1.5; }
