:root{--cm-ink:#172b46;--cm-sub:#5b6d84;--cm-line:#d8e1ed;--cm-brand:#305ec6;--cm-pale:#e9f0ff;--cm-bg:#f5f8fd;--cm-good:#0c7d56;--cm-bad:#b3383c}body{background:var(--cm-bg);color:var(--cm-ink)}.cm-wrap{max-width:1220px;margin:auto;padding:22px 18px 90px;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}.cm-hero{padding:24px 0 22px}.cm-eyebrow{font-size:12px;letter-spacing:.17em;font-weight:850;color:#385cc1}.cm-hero h1{font-size:clamp(30px,4.5vw,51px);letter-spacing:-.055em;line-height:1.1;margin:10px 0}.cm-hero p{font-size:17px;line-height:1.65;max-width:770px;color:var(--cm-sub);margin:0}.cm-layout{display:grid;grid-template-columns:minmax(295px,.83fr) minmax(0,1.17fr);gap:18px;align-items:start}.cm-panel{background:white;border:1px solid var(--cm-line);border-radius:22px;padding:22px;box-shadow:0 6px 24px rgba(22,53,92,.04);min-width:0}.cm-panelhead{display:flex;align-items:center;gap:12px;margin-bottom:20px}.cm-panelhead h2{font-size:20px;letter-spacing:-.035em;line-height:1.2;margin:0 0 5px}.cm-panelhead p{font-size:13px;color:var(--cm-sub);margin:0;line-height:1.5}.cm-step{flex:0 0 35px;height:35px;display:grid;place-items:center;border-radius:12px;background:var(--cm-pale);color:var(--cm-brand);font-weight:900}.cm-number{margin-left:auto;white-space:nowrap;border-radius:99px;background:#f0f4fa;padding:5px 10px;font-size:12px;font-weight:800}.cm-field{display:flex;flex-direction:column;gap:7px;color:#263f61;font-size:13px;font-weight:750;margin-bottom:14px}.cm-hint{font-size:11px;color:var(--cm-sub);font-weight:550}.cm-field textarea,.cm-field input,.cm-field select,.cm-pager select{width:100%;box-sizing:border-box;color:var(--cm-ink);background:white;border:1px solid #c6d4e6;border-radius:11px;padding:11px 12px;font:inherit;font-weight:500;min-height:44px}.cm-field textarea{resize:vertical;min-height:142px;line-height:1.55;font-size:13px}.cm-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cm-wrap button,.cm-import{font:inherit;font-size:13px;font-weight:750;border:1px solid #c8d6e9;border-radius:11px;padding:10px 13px;min-height:44px;background:#fff;color:#2b4265;cursor:pointer;transition:background .15s,border-color .15s}.cm-wrap button:hover,.cm-import:hover{background:#eff5fd;border-color:#8eaeef}.cm-wrap button:focus-visible,.cm-wrap select:focus-visible,.cm-wrap input:focus-visible,.cm-wrap textarea:focus-visible,.cm-wrap summary:focus-visible{outline:3px solid #99bcfa;outline-offset:2px}.cm-wrap button:disabled{opacity:.46;cursor:not-allowed}.cm-wrap .cm-primary{background:var(--cm-brand);border-color:var(--cm-brand);color:white}.cm-wrap .cm-primary:hover{background:#204ab1}.cm-big{width:100%;font-size:15px!important;display:flex;align-items:center;justify-content:space-between;padding:14px 17px!important}.cm-quick,.cm-exportbuttons,.cm-actions{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:14px}.cm-quick button{min-height:37px;padding:7px 10px}.cm-more{border-top:1px solid #e2e9f2;margin:15px 0;padding-top:12px}.cm-more summary{font-weight:800;font-size:13px;cursor:pointer;padding:6px 0}.cm-more>div{padding-top:13px}.cm-small{font-size:12px;color:var(--cm-sub);line-height:1.6;margin:12px 0 0}.cm-error{background:#fff0f1;color:#99282e;border:1px solid #f2c8c9;padding:10px;border-radius:9px;font-size:13px}.cm-pager{display:flex;align-items:center;gap:8px;margin-bottom:14px}.cm-pager select{flex:1;min-width:0}.cm-status{background:#edf3ff;border:1px solid #d4e3ff;padding:15px;border-radius:14px;display:flex;flex-direction:column;gap:5px;margin-bottom:10px}.cm-status strong{color:#254aa5;letter-spacing:.035em;font-size:13px}.cm-status span{font-size:13px;color:#4c6284;line-height:1.45}.cm-status[data-state="passed"]{background:#e6f7ed;border-color:#99d7b4}.cm-status[data-state="passed"] strong{color:var(--cm-good);font-size:19px}.cm-status[data-state="incorrect"],.cm-status[data-state="revealed"]{background:#fff0ef;border-color:#fac0ba}.cm-status[data-state="incorrect"] strong,.cm-status[data-state="revealed"] strong{color:var(--cm-bad)}.cm-status[data-state="assisted"]{background:#fff7e1;border-color:#f3df9d}.cm-status[data-state="assisted"] strong{color:#966007}.cm-meter{height:6px;background:#e7edf5;overflow:hidden;border-radius:99px}.cm-meter span{display:block;background:#436bdd;height:100%;width:0;transition:width .2s}.cm-meta{display:flex;justify-content:space-between;font-size:12px;color:var(--cm-sub);font-weight:700;margin:8px 1px 14px}.cm-puzzle{border:1px solid #e0e8f3;background:#f9fbff;border-radius:16px;padding:18px 14px;min-height:145px;display:flex;flex-wrap:wrap;align-content:flex-start;gap:14px 12px;line-height:1.1}.cm-word{display:inline-flex;gap:3px;white-space:nowrap;align-items:flex-end}.cm-letter{display:flex;flex-direction:column;gap:4px;align-items:center;min-width:21px;padding:6px 3px;border:1px solid transparent;border-radius:7px;color:#26354d;background:transparent;cursor:pointer}.cm-letter:hover{background:#e8efff}.cm-letter.is-selected{border-color:#527ae7;background:#e3edff}.cm-letter.is-given{background:#e5f4ee;border-color:#c4e6d3}.cm-letter.is-right{background:#e5f7ec}.cm-letter.is-wrong{background:#ffe7e7}.cm-letter .cm-code{font-size:12px;line-height:1.15;font-weight:850;color:#647a9c}.cm-letter .cm-decoded{font-size:18px;line-height:1.2;font-weight:900;min-height:22px;min-width:18px;border-bottom:2px solid #becde0;text-align:center}.cm-letter.is-given .cm-decoded{border-color:#61af8b;color:#087647}.cm-letter.cm-punct{pointer-events:none;min-width:8px;padding:6px 1px;border:0}.cm-letter.cm-punct .cm-decoded{border:0}.cm-selected{font-weight:800}.cm-selection{display:flex;justify-content:space-between;align-items:center;gap:9px;margin:12px 0}.cm-selection span{font-size:13px;font-weight:800;color:#38506d}.cm-selection button{font-size:12px}.cm-keyboard{display:grid;grid-template-columns:repeat(13,minmax(0,1fr));gap:4px;margin-bottom:15px}.cm-wrap .cm-keyboard button{min-width:0;min-height:35px;padding:6px 0;font-size:13px;border-radius:7px}.cm-wrap .cm-keyboard button.is-used{background:#f0f4f9;color:#98a7b9}.cm-wrap .cm-keyboard button.is-picked{background:#315cbd;color:white}.cm-actions button{flex:1 1 120px}.cm-reveal{margin-top:5px}.cm-reveal p{font-size:12px;color:var(--cm-sub)}.cm-export{margin-top:18px}.cm-import{display:inline-flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.cm-import input{position:absolute;inset:0;opacity:0;cursor:pointer}.cm-info{max-width:820px;padding:25px 5px;line-height:1.65;color:#526781}.cm-info h2,.cm-info h3{color:var(--cm-ink);margin:12px 0 6px}.cm-info p{margin:7px 0 12px}.cm-info a{color:var(--cm-brand)}@media(max-width:900px){.cm-layout{grid-template-columns:minmax(0,1fr)}.cm-play{order:0}.cm-maker{order:0}}@media(max-width:480px){.cm-wrap{padding:12px 10px 60px}.cm-hero{padding:17px 5px 15px}.cm-hero p{font-size:14px}.cm-panel{padding:15px;border-radius:16px}.cm-two{grid-template-columns:1fr 1fr;gap:8px}.cm-panelhead h2{font-size:17px}.cm-panelhead{gap:9px}.cm-step{flex-basis:29px;height:29px}.cm-pager{gap:5px}.cm-pager button{min-width:0;padding:8px;font-size:11px}.cm-pager select{font-size:12px}.cm-puzzle{padding:12px 8px;gap:9px 7px}.cm-letter{min-width:16px;padding:5px 1px}.cm-letter .cm-decoded{font-size:15px;min-width:15px}.cm-letter .cm-code{font-size:10px}.cm-word{gap:1px}.cm-keyboard{grid-template-columns:repeat(9,minmax(0,1fr))}.cm-actions button{flex:1 1 130px}.cm-wrap button{font-size:12px}}
@media print{.topbar,.cm-maker,.cm-export,.cm-hero,.cm-pager,.cm-keyboard,.cm-actions,.cm-reveal,.cm-selection,.cm-info,.cm-panelhead,.cm-status,.cm-meta,.cm-meter{display:none!important}body{background:white}.cm-layout,.cm-wrap{display:block;padding:0}.cm-panel{border:0;box-shadow:none}.cm-puzzle{background:white;border:0;font-size:20px;min-height:0}.cm-decoded{font-size:19px}}
/* Override shared button padding for small cipher tiles on all viewports. */
.cm-wrap .cm-letter{padding:5px 3px;min-height:0;min-width:20px}
.cm-wrap .cm-letter.cm-punct{padding:5px 1px;min-width:8px}
@media(max-width:480px){.cm-wrap .cm-letter{padding:5px 1px;min-width:16px}.cm-wrap .cm-letter.cm-punct{padding:5px 1px;min-width:7px}}
