.teal{--tone:#397f79;--tint:#e5f2ed;--panel:#edf6f1}
main:focus{outline:none}.record-difficulty{color:#7c8f74;font-size:9px;display:block;padding-left:21px}
.cipher-invitation{display:flex;align-items:center;gap:20px;background:linear-gradient(110deg,#edf5ef,#f8fbf8);border:1px solid #d7e6d9;border-radius:18px;padding:23px 25px;margin:-6px 0 28px}
.cipher-invitation-icon{width:53px;height:58px;border:1px solid #d2e3d5;background:#e0ede1;border-radius:15px;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#528165;transform:rotate(-6deg)}
.cipher-invitation-icon .icon{width:28px;height:28px;transform:rotate(6deg)}
.cipher-invitation>div:nth-child(2){flex:1}.cipher-invitation>div>span{color:#65816d;font-size:9px;font-weight:750;letter-spacing:1px}.cipher-invitation h2{font-size:19px;color:#354d40;margin:3px 0}.cipher-invitation p{font-size:11px;color:#6b7e70}.cipher-invitation .btn{background:#457d62;box-shadow:none;flex-shrink:0}.cipher-invitation .btn:hover{background:#38674f}
.cipher-page{max-width:1040px}.cipher-page .game-title{margin-bottom:22px}.cipher-page .game-title h1{letter-spacing:1px}.cipher-page .game-level-tag{color:#4c7a6c;background:#eaf1eb}.cipher-page .game-under-note{color:#7c8c84}.cipher-page .board-meta{color:#7c8783;padding:15px 25px}.cipher-page .game-board{border-color:#e0e7e1}.cipher-body{padding:24px}.cipher-mission{position:relative;display:flex;justify-content:space-between;align-items:center;background:#293d44;border-radius:15px;padding:26px 28px;color:#fff;overflow:hidden;gap:20px}.cipher-mission:before{content:'';position:absolute;right:-50px;top:-140px;width:340px;height:340px;border:1px solid #b9dfc718;border-radius:50%;pointer-events:none}.cipher-mission:after{content:'';position:absolute;right:-10px;top:-100px;width:260px;height:260px;border:1px solid #b9dfc718;border-radius:50%;pointer-events:none}.cipher-eyebrow{display:flex;align-items:center;gap:6px;font-size:10px;font-weight:600;letter-spacing:2px;color:#b4d2bd;margin-bottom:11px}.cipher-eyebrow .icon{width:14px;height:14px}.cipher-mission h2{font-size:25px;letter-spacing:1px;font-weight:750;line-height:1.4;color:#f5f8f3}.cipher-mission p{font-size:11px;color:#bdd0cd;margin-top:9px}.cipher-emblem{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:0 9px;flex-shrink:0;color:#cfdfb0}.cipher-emblem>.icon{width:44px;height:44px;stroke-width:1.2}.cipher-emblem>span{font-size:8px;font-weight:650;letter-spacing:3px}
.cipher-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:21px 0 14px}.cipher-levels{display:flex;gap:4px;background:#f4f6f3;padding:5px;border-radius:11px}.cipher-levels button{border-radius:8px;padding:8px 18px;min-height:52px;background:transparent;color:#7b887f;font-size:12px;font-weight:650;line-height:1.5}.cipher-levels small{display:block;font-weight:400;font-size:9px;white-space:nowrap;color:#7f8c83;margin-top:2px}.cipher-levels button.active{color:#306952;background:#fff;box-shadow:0 2px 6px #354d400d}.cipher-levels button.active small{color:#5c7e6a}.cipher-levels button:hover{background:#e9eee8}.cipher-unique{display:flex;align-items:center;gap:5px;font-size:10px;color:#60826f;white-space:nowrap}.cipher-unique .icon{width:15px;height:15px}.cipher-rules{font-size:11px;color:#76837d;line-height:1.9;margin-bottom:20px;padding:0 2px}.cipher-rules strong{font-weight:600;color:#4b6155}
.cipher-workspace{display:grid;grid-template-columns:minmax(0,1.24fr) minmax(260px,1fr);gap:20px;align-items:start}.cipher-evidence,.cipher-console{min-width:0;border:1px solid #e6ebe5;border-radius:13px;padding:19px}.cipher-console{background:#fafbf9}.cipher-section-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px}.cipher-section-title h3{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:700;color:#42594d}.cipher-section-title h3 .icon{width:17px;height:17px;stroke-width:1.8}.cipher-section-title>span{color:#849288;font-size:10px;white-space:nowrap}.cipher-clues{width:100%;border-collapse:collapse;table-layout:auto;text-align:center}.cipher-clues thead th{font-size:9px;color:#78877c;font-weight:500;padding:0 3px 12px;line-height:1.6}.cipher-clues thead th:nth-child(2){text-align:left;padding-left:10px}.cipher-clues tbody tr{border-top:1px solid #eef1ec;transition:background .15s}.cipher-clues tbody th{width:26px;font-weight:450;color:#a3ada5;font-size:10px;font-variant-numeric:tabular-nums}.cipher-clues td{padding:12px 3px;position:relative}.cipher-clues td:nth-child(2){padding-left:8px;padding-right:5px;text-align:left}.cipher-code{display:inline-flex;gap:5px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.cipher-code>span{display:inline-flex;align-items:center;justify-content:center;width:26px;height:33px;border:1px solid #e6eae4;border-radius:5px;background:#f7f9f5;color:#495c4f;font-size:16px;font-weight:600}.cipher-count{display:inline-flex;width:27px;height:27px;border-radius:50%;align-items:center;justify-content:center;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}.cipher-count.exact{color:#477b5a;background:#eaf3e8}.cipher-count.misplaced{color:#a07738;background:#f8f1e3}.cipher-legend{display:flex;gap:13px;margin:14px 0 8px;flex-wrap:wrap}.cipher-legend span{display:flex;align-items:center;gap:5px;font-size:9px;color:#6d7c71}.cipher-legend i{width:6px;height:6px;border-radius:50%}.cipher-legend .exact{background:#7caa84}.cipher-legend .misplaced{background:#c5a16d}.cipher-clue-tip{font-size:10px;color:#889389;line-height:1.9;border-top:1px dashed #e5eae1;padding-top:10px}.clue-verdict{display:block;font-size:9px;line-height:1.2;position:absolute;bottom:0;left:8px;letter-spacing:.5px}.clue-conflict{background:#fff6f0}.clue-conflict .clue-verdict{color:#b26648}.clue-matched .clue-verdict{color:#6b926e}
.cipher-answer{display:block;width:100%;min-width:0;height:69px;border:1px solid #d8e3d7;border-radius:9px;text-align:center;font-size:31px;letter-spacing:.38em;text-indent:.38em;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-weight:600;color:#3d5d4a;background:#fff;margin:2px 0 15px}.cipher-answer::placeholder{color:#bfccbc;opacity:1}.cipher-answer:focus-visible{outline-color:#78a282}.cipher-answer:disabled{background:#f2f5ef;color:#91a18f}.cipher-keypad{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.cipher-keypad button{min-width:0;min-height:43px;border:1px solid #e6eae2;border-radius:7px;color:#5f735f;background:#fff;font-size:16px;font-variant-numeric:tabular-nums;transition:background .15s}.cipher-keypad button:hover:not(:disabled){background:#edf3e7;border-color:#d0ddc8}.cipher-keypad button:disabled{opacity:.45}.cipher-keypad .cipher-key-edit{font-size:10px;color:#82907b;background:#f1f4ee}.cipher-key-edit .icon{width:17px;height:17px}.cipher-submit{width:100%;margin-top:15px;background:#547d58;box-shadow:none}.cipher-submit:hover:not(:disabled){background:#426447}.cipher-submit:disabled{background:#a9bba5}.cipher-message{min-height:36px;font-size:10px;line-height:1.8;color:#819078;margin:11px 0}.cipher-message.error{color:#aa6647}.cipher-console-actions{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e9ede4;padding-top:5px;gap:7px}.cipher-console-actions .text-btn{color:#70866a;font-size:10px}.cipher-console-actions .text-btn:disabled{opacity:.45}.cipher-console-actions .text-btn>span{color:#a2ae9a;font-variant-numeric:tabular-nums;font-size:9px}.cipher-score-note{font-size:9px;color:#8e9a87;line-height:1.8;margin-top:5px}
.cipher-hints{border:1px solid #e7e5cd;background:#faf9ee;border-radius:11px;padding:17px 19px;margin-top:20px}.cipher-hints h3{display:flex;align-items:center;gap:7px;color:#8f804a;font-size:12px;margin-bottom:10px}.cipher-hints h3 .icon{width:16px;height:16px}.cipher-hints p{display:flex;gap:10px;font-size:11px;color:#8a805e;line-height:1.9;margin-top:9px}.cipher-hints p strong{font-size:10px;color:#b5a26e;flex-shrink:0;line-height:2.1;font-variant-numeric:tabular-nums}
.cipher-notes{border:1px solid #e6ebe3;border-radius:12px;margin-top:20px;background:#fff}.cipher-notes summary{display:flex;align-items:center;gap:8px;padding:17px 19px;font-size:12px;font-weight:650;color:#536b58;cursor:pointer;list-style:none;min-height:50px}.cipher-notes summary::-webkit-details-marker{display:none}.cipher-notes summary>.icon{width:16px;height:16px}.cipher-notes summary>span{display:flex;align-items:center;gap:8px;font-size:9px;font-weight:400;color:#94a08e;margin-left:auto}.cipher-notes summary>span .icon{width:13px;height:13px;transform:rotate(90deg)}.cipher-notes[open] summary>span .icon{transform:rotate(-90deg)}.cipher-notes summary:focus-visible{outline:2px solid #7b9f7b;outline-offset:2px;border-radius:10px}.cipher-notes-body{border-top:1px solid #edf0e9;padding:12px 19px 17px}.cipher-notes-guide{display:flex;justify-content:space-between;gap:6px;align-items:center;margin-bottom:8px}.cipher-notes-guide p{display:flex;gap:14px;align-items:center;font-size:10px;color:#83917c;flex-wrap:wrap}.cipher-notes-guide small{font-size:9px;color:#a1ab9a}.cipher-notes-guide>div{display:flex;gap:6px;flex-shrink:0}.cipher-notes-guide .text-btn{color:#83917c;font-size:10px}.cipher-notes-guide .text-btn:disabled{opacity:.4}.cipher-notes-guide .mark-exclude{color:#b7826b}.cipher-notes-guide .mark-keep{color:#57865a}.cipher-note-table{width:100%;border-collapse:separate;border-spacing:5px;text-align:center;table-layout:fixed}.cipher-note-table thead th{font-size:10px;color:#87947e;font-weight:450;height:25px}.cipher-note-table th:first-child{width:40px}.cipher-note-table tbody th{font-size:14px;color:#65845f;font-weight:600;font-variant-numeric:tabular-nums}.cipher-note-table td{padding:0}.note-cell{width:100%;height:36px;min-height:36px;background:#f7f9f3;border:1px solid #e9ede2;border-radius:6px;color:#c0cbb7;font-size:18px;line-height:1;font-weight:500}.note-cell:hover{background:#edf2e5}.note-cell.mark-1{background:#fbf2ed;border-color:#eedbd0;color:#b37b63}.note-cell.mark-2{background:#eaf3e5;border-color:#cfdfc2;color:#5b8a54}.cipher-note-help{font-size:9px;color:#9aa58e;line-height:1.8;margin:9px 5px 0}.cipher-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 -7px;font-size:10px;color:#95a18d}.cipher-bottom .text-btn{font-size:10px;color:#77916f}.cipher-bottom .icon{width:13px;height:13px}
.cipher-solution{margin-top:20px;padding:23px;background:#eff4e8;border:1px solid #dbe4cc;border-radius:12px;scroll-margin-top:20px}.cipher-solution-label{font-size:9px;letter-spacing:2px;color:#8b9a74}.cipher-solution h3{font-size:16px;color:#5b7047;margin:6px 0 13px}.cipher-solution h3 code{margin-left:9px;font-size:21px;letter-spacing:3px;color:#3f5b35;white-space:nowrap}.cipher-solution p{font-size:11px;line-height:1.9;color:#82906e}.cipher-solution ol{padding-left:22px;margin:15px 0}.cipher-solution li{font-size:11px;line-height:2;color:#74845f;padding-left:3px;margin-bottom:8px}.cipher-solution li strong{color:#597044;font-variant-numeric:tabular-nums}.cipher-solution li code{display:block;overflow-wrap:anywhere;color:#557143;letter-spacing:1px}.cipher-solution .btn{background:#dfeacb;color:#5d7544;margin-top:15px}
@media(min-width:1400px){.cipher-workspace{gap:24px;grid-template-columns:minmax(0,1.2fr) minmax(285px,1fr)}.cipher-clues td{padding-top:15px;padding-bottom:15px}.cipher-code>span{width:30px;height:36px;font-size:18px}.cipher-evidence,.cipher-console{padding:23px}.cipher-console .cipher-keypad button{min-height:45px}}
@media(max-width:1100px){.cipher-workspace{gap:15px;grid-template-columns:minmax(0,1.2fr) minmax(225px,1fr)}.cipher-evidence,.cipher-console{padding:15px}.cipher-body{padding:20px}.cipher-code{gap:4px}.cipher-code>span{width:23px;height:31px}.cipher-levels button{padding:8px 15px}.cipher-invitation{gap:15px;padding:20px}.cipher-invitation h2{font-size:17px}.cipher-invitation p{font-size:10px}.cipher-invitation .btn{font-size:11px;padding:10px 14px}}
@media(max-width:900px) and (min-width:761px){.cipher-workspace{grid-template-columns:1fr}.cipher-console{display:block}.cipher-console form{max-width:360px;margin:0 auto}.cipher-console .cipher-message,.cipher-console-actions,.cipher-score-note{max-width:360px;margin-left:auto;margin-right:auto}.cipher-code>span{width:29px;height:35px}.cipher-evidence{padding:20px}.cipher-invitation{flex-wrap:wrap}.cipher-invitation>.btn{margin-left:68px}.cipher-levels button{padding:8px 12px}}
@media(max-width:760px){.cipher-page .game-title p{font-size:10px}.cipher-page .game-level-tag{font-size:9px}.cipher-body{padding:17px}.cipher-page .board-meta{padding:14px 18px;font-size:10px}.cipher-mission{padding:23px 21px}.cipher-mission h2{font-size:23px}.cipher-mission p{font-size:10px}.cipher-emblem>.icon{width:36px;height:36px}.cipher-toolbar{flex-wrap:wrap;gap:10px;margin-top:17px}.cipher-levels{flex:1;justify-content:space-between}.cipher-levels button{flex:1;padding:8px 12px;min-height:55px;font-size:12px}.cipher-levels small{font-size:9px}.cipher-unique{font-size:9px}.cipher-rules{font-size:11px}.cipher-workspace{grid-template-columns:1fr;gap:17px}.cipher-evidence,.cipher-console{padding:18px}.cipher-clues thead th{font-size:10px}.cipher-clues tbody th{width:28px;font-size:11px}.cipher-clues td{padding:14px 3px}.cipher-code{gap:7px}.cipher-code>span{width:29px;height:36px;font-size:18px}.cipher-count{width:29px;height:29px;font-size:14px}.cipher-clue-tip{font-size:10px}.cipher-legend span{font-size:10px}.cipher-console form{max-width:380px;margin:0 auto}.cipher-answer{height:70px;font-size:33px}.cipher-keypad button{min-height:48px;font-size:18px}.cipher-keypad .cipher-key-edit{font-size:11px}.cipher-message{font-size:11px;min-height:24px}.cipher-submit{font-size:12px;min-height:46px}.cipher-score-note{font-size:10px}.cipher-console-actions .text-btn{font-size:11px;min-height:44px}.cipher-notes summary{padding:16px;font-size:12px}.cipher-notes summary>span{font-size:9px}.cipher-notes-body{padding:10px 10px 14px}.cipher-notes-guide{flex-wrap:wrap;padding:0 4px}.cipher-notes-guide p{gap:10px;font-size:10px}.cipher-notes-guide small{display:none}.cipher-notes-guide .text-btn{min-height:40px}.cipher-note-table{border-spacing:4px}.cipher-note-table th:first-child{width:31px}.cipher-note-table thead th{font-size:9px}.note-cell{min-height:44px;height:44px}.cipher-note-help{font-size:9px}.cipher-bottom{font-size:10px}.cipher-bottom .text-btn{min-height:42px}.cipher-hints{padding:15px}.cipher-hints p{font-size:11px}.cipher-solution{padding:19px 16px}.cipher-solution h3{font-size:14px}.cipher-solution h3 code{font-size:20px;margin-left:5px}.cipher-invitation{padding:19px;gap:14px;flex-wrap:wrap;margin-bottom:25px}.cipher-invitation h2{font-size:17px}.cipher-invitation p{font-size:10px;line-height:1.9}.cipher-invitation>div>span{font-size:8px}.cipher-invitation-icon{width:43px;height:48px;border-radius:12px}.cipher-invitation-icon .icon{width:24px;height:24px}.cipher-invitation .btn{margin-left:57px;min-height:40px;font-size:11px}.cipher-page .game-under-note{font-size:10px}}
@media(max-width:420px){.cipher-body{padding:13px}.cipher-mission{padding:21px 17px;gap:10px}.cipher-mission h2{font-size:21px;letter-spacing:0}.cipher-mission p{font-size:9px}.cipher-eyebrow{font-size:9px}.cipher-emblem{padding:0}.cipher-emblem>span{font-size:7px;letter-spacing:1px}.cipher-levels button{padding:7px 8px}.cipher-toolbar{gap:9px}.cipher-unique{width:100%;justify-content:flex-end;margin-top:0}.cipher-evidence,.cipher-console{padding:15px 12px}.cipher-rules{font-size:10px}.cipher-code{gap:4px}.cipher-code>span{width:24px;height:33px;font-size:17px}.cipher-clues thead th{font-size:9px}.cipher-clues td:nth-child(2){padding-left:5px;padding-right:3px}.cipher-clues thead th:nth-child(2){padding-left:6px}.clue-verdict{left:5px}.cipher-count{width:25px;height:25px;font-size:13px}.cipher-legend{gap:10px}.cipher-legend span{font-size:9px}.cipher-clue-tip{font-size:9px}.cipher-clues tbody th{width:22px;font-size:10px}.cipher-section-title h3{font-size:12px}.cipher-section-title>span{font-size:9px}.cipher-score-note{font-size:9px}.cipher-note-table{border-spacing:3px}.cipher-note-table th:first-child{width:26px}.cipher-note-table thead th{font-size:8px}.cipher-notes summary{padding:15px 13px}.cipher-notes summary>span{font-size:8px;gap:3px}.cipher-note-help{font-size:9px}.cipher-invitation p{font-size:9px}.cipher-invitation h2{font-size:16px}}
