.deduction-intro{padding:42px 0 20px}.deduction-intro h1{font-size:clamp(2.5rem,6vw,4.5rem)}.deduction-intro p{max-width:78ch;color:var(--muted);line-height:1.7}.deduction-board{padding:28px;background:#1c1f22;border:1px solid var(--line);border-radius:8px;margin:20px 0}.collection-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.collection-bar select{font:inherit;background:#24282c;color:var(--ink);padding:10px;border:1px solid #626970;border-radius:4px;margin:8px}.collection-bar a{color:var(--accent)}.puzzle-meta,.board-key,.deduction-save{font-size:.8rem;color:var(--muted);margin:18px 0}.puzzle-title{font-size:1.4rem}.puzzle-story{line-height:1.7;color:#c6ccd0}.deduction-actions{display:flex;flex-wrap:wrap;gap:10px}.deduction-actions button,.deduction-success button{min-height:44px;border:1px solid #626970;border-radius:5px;background:#24282c;color:var(--ink);padding:10px 18px;font:inherit;cursor:pointer}button:disabled{opacity:.5;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #dec683;outline-offset:3px}.deduction-notice{min-height:28px;line-height:1.7;color:#dec683}.deduction-success{border:1px solid #7fac92;background:#203128;padding:20px;border-radius:5px}.deduction-success strong{font-size:1.4rem}[hidden]{display:none!important}
.cipher-message{display:flex;gap:16px 20px;flex-wrap:wrap;margin:30px 0}.cipher-word{display:inline-flex;align-items:center;gap:3px;flex-wrap:wrap}.cipher-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;width:31px;min-height:54px;border:0;border-bottom:1px solid #69717a;background:transparent;color:#f2f3f4;cursor:pointer;padding:1px}.cipher-tile b{font:500 1.2rem/1.5 monospace}.cipher-tile small{color:#9da7af;font-size:.68rem}.cipher-tile.filled b{color:#dec683}.punctuation{align-self:flex-start;padding-top:8px}.cipher-key{display:grid;grid-template-columns:repeat(auto-fit,minmax(76px,1fr));gap:10px;margin:18px 0}.cipher-key label{display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:.8rem;color:#a3a8ad}.cipher-key input{width:38px;height:44px;text-align:center;font:600 1.1rem monospace;background:#17191b;border:1px solid #626970;border-radius:3px;color:#dec683}.cipher-key input[readonly]{background:#33463e;border-color:#6e9c7d}.detective-layout{display:grid;grid-template-columns:minmax(230px,1fr) minmax(340px,1.3fr);gap:30px}.detective-clues{padding-left:25px;line-height:1.8;margin-top:12px}.detective-clues li{padding:5px 0 5px 8px}.detective-grids{min-width:0}.detective-grids table{width:100%;table-layout:fixed;border-collapse:collapse;margin:15px 0 25px}.detective-grids caption{text-align:left;margin-bottom:14px;font-weight:600}.detective-grids th{font-size:.75rem;font-weight:500;overflow-wrap:anywhere;color:#c6ccd0;padding:5px}.detective-grids td{padding:2px}.detective-mark{width:100%;min-height:44px;background:#24282c;border:1px solid #4c565e;color:#bac6d0;font-size:1.3rem;border-radius:3px;cursor:pointer}.detective-mark.mark-2{background:#305341;color:#d0f2dc}.detective-mark.mark-1{background:#322c30;color:#dcbec8}
.loop-board{display:grid;width:min(100%,560px);aspect-ratio:1;margin:12px auto 24px;align-items:center;justify-items:center}.loop-dot{width:7px;height:7px;border-radius:50%;background:#bac6d0;z-index:2}.loop-clue{font:500 clamp(1rem,3vw,1.5rem) monospace}.loop-edge{padding:0;border:0;border-radius:4px;background:transparent;display:grid;place-items:center;position:relative;cursor:pointer;color:#d1a5a5;z-index:1}.loop-edge.horizontal{width:100%;height:28px}.loop-edge.vertical{height:100%;width:28px}.loop-edge.horizontal span{width:100%;height:3px;background:#354149}.loop-edge.vertical span{height:100%;width:3px;background:#354149}.loop-edge.edge-1 span{background:#dcc383;border-radius:4px}.loop-edge.horizontal.edge-1 span{height:5px;width:calc(100% + 14px)}.loop-edge.vertical.edge-1 span{width:5px;height:calc(100% + 14px)}.loop-edge:hover{background:#364048}.board-key{text-align:center}
@media(max-width:800px){.detective-layout{grid-template-columns:1fr}.deduction-board{padding:20px}.detective-grids{max-width:520px}.cipher-tile{width:27px}.cipher-message{gap:14px 16px}}@media(max-width:480px){.deduction-board{padding:14px}.detective-grids th{font-size:.65rem}.cipher-key{grid-template-columns:repeat(4,minmax(0,1fr))}.cipher-key label{flex-direction:column}.deduction-actions button{flex:1}.loop-board{grid-template-columns:repeat(var(--w),10px minmax(23px,1fr)) 10px!important;grid-template-rows:repeat(var(--h),10px minmax(23px,1fr)) 10px!important}.cipher-message{gap:14px 12px}.cipher-tile{width:24px}.page{width:calc(100% - 28px)}}
