/* Cipher Desk 1.0.0 — generated by build-plugin.js; edit game.src.html instead. */
.cipher-desk{border-radius:12px;text-align:left;padding-block:4px 32px!important}
.cipher-desk [hidden]{display:none!important}
.cipher-desk button{margin:0;text-transform:none;letter-spacing:normal;box-shadow:none;text-shadow:none;min-height:0;min-width:0;line-height:1.2;text-decoration:none;-webkit-appearance:none;appearance:none}
.cipher-desk h2,.cipher-desk h3,.cipher-desk p{margin:0;padding:0;color:inherit;text-transform:none;border:0;background:none}
.cipher-desk blockquote{border:0;padding:0;margin:0;quotes:none;background:none;font-style:normal}
.cipher-desk blockquote::before,.cipher-desk blockquote::after{content:none}
.cipher-desk cite{font-style:normal}
.cipher-desk .brand .title{margin:0}
.cipher-desk{--bg:#E6ECEF; --surface:#F6F8F9; --ink:#121C26; --muted:#56646F; --rule:#C3CDD4;
  --accent:#2445C9; --accent-ink:#FFFFFF; --accent-soft:#DCE3F9;
  --hl:#FFE58A; --hl-ink:#121C26; --wrong:#C0262D; --lock:#17724D; --key:#FFFFFF;
  --shadow:0 1px 0 rgba(18,28,38,.06),0 8px 24px -12px rgba(18,28,38,.25);
  --f-display:"Saira Stencil One",Impact,"Arial Narrow",sans-serif;
  --f-type:"Courier Prime","Courier New",Courier,monospace;
  --f-ui:"Instrument Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --cw:27px;}
@media (prefers-color-scheme:dark){.cipher-desk:not([data-theme="light"]){color-scheme:dark;
    --bg:#0D1318; --surface:#151D24; --ink:#E3E9ED; --muted:#8A98A4; --rule:#2A3640;
    --accent:#8FA6FF; --accent-ink:#0D1318; --accent-soft:#1F2A4A;
    --hl:#574812; --hl-ink:#FFF3C4; --wrong:#FF7474; --lock:#4ED39A; --key:#1C262F;
    --shadow:0 1px 0 rgba(0,0,0,.3),0 10px 28px -14px rgba(0,0,0,.7);}

}
.cipher-desk[data-theme="dark"]{color-scheme:dark;
  --bg:#0D1318; --surface:#151D24; --ink:#E3E9ED; --muted:#8A98A4; --rule:#2A3640;
  --accent:#8FA6FF; --accent-ink:#0D1318; --accent-soft:#1F2A4A;
  --hl:#574812; --hl-ink:#FFF3C4; --wrong:#FF7474; --lock:#4ED39A; --key:#1C262F;
  --shadow:0 1px 0 rgba(0,0,0,.3),0 10px 28px -14px rgba(0,0,0,.7);}
@media (max-width:560px){.cipher-desk{--cw:22px;}
 }
@media (max-width:380px){.cipher-desk{--cw:20px;}
 }
.cipher-desk,.cipher-desk *{box-sizing:border-box}
.cipher-desk{background:var(--bg);color:var(--ink);font-family:var(--f-ui);font-size:15px;line-height:1.5;padding-inline:16px;padding-block:0 40px}
.cipher-desk button{font:inherit;color:inherit}
.cipher-desk button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.cipher-desk .wrap{max-width:980px;margin:0 auto;display:flex;flex-direction:column;gap:18px}
.cipher-desk .top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-block:18px 4px;border-bottom:1px solid var(--rule)}
.cipher-desk .brand{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.cipher-desk .brand .title{margin:0;font-family:var(--f-display);font-weight:400;font-size:34px;letter-spacing:.04em;line-height:1}
.cipher-desk .brand .sub{font-family:var(--f-type);font-size:13px;color:var(--muted)}
.cipher-desk .btn{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--rule);background:var(--surface);border-radius:6px;padding:8px 14px;font-weight:600;font-size:14px;cursor:pointer;white-space:nowrap}
.cipher-desk .btn:hover{border-color:var(--ink)}
.cipher-desk .btn.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.cipher-desk .btn.primary:hover{filter:brightness(1.08)}
.cipher-desk .btn.armed{background:var(--wrong);border-color:var(--wrong);color:#fff}
.cipher-desk .btn:disabled{opacity:.45;cursor:default}
.cipher-desk .meta{display:flex;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap}
.cipher-desk .pzl{display:flex;align-items:center;gap:12px}
.cipher-desk .num{font-family:var(--f-display);font-size:44px;line-height:.9;letter-spacing:.02em;font-variant-numeric:tabular-nums}
.cipher-desk .num small{font-size:18px;color:var(--muted);margin-left:4px}
.cipher-desk .chip{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;padding:4px 9px;border-radius:999px;background:var(--accent-soft);color:var(--accent)}
.cipher-desk .nav{display:flex;gap:6px}
.cipher-desk .nav .btn{padding:8px 11px}
.cipher-desk .stats{display:flex;gap:18px;font-family:var(--f-type);font-size:14px;color:var(--muted)}
.cipher-desk .stats b{color:var(--ink);font-weight:700;font-variant-numeric:tabular-nums}
.cipher-desk .sheet{background:var(--surface);border:1px solid var(--rule);border-radius:10px;box-shadow:var(--shadow);padding:28px 24px 22px;
  background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 31px,color-mix(in srgb,var(--rule) 45%,transparent) 31px,color-mix(in srgb,var(--rule) 45%,transparent) 32px)}
@media (max-width:560px){.cipher-desk .sheet{padding:20px 12px 16px}
 }
.cipher-desk .line{display:flex;flex-wrap:wrap;column-gap:calc(var(--cw)*.75);row-gap:18px}
.cipher-desk .line.author{justify-content:flex-end;margin-top:22px}
.cipher-desk .word{display:flex;flex-wrap:wrap;gap:3px}
.cipher-desk .cell{display:flex;flex-direction:column;align-items:center;width:var(--cw);padding:0;border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.cipher-desk .cell:focus-visible{outline:none}
.cipher-desk .cell:focus-visible .g{outline:2px dashed var(--accent)}
.cipher-desk .g{width:100%;height:calc(var(--cw)*1.2);display:grid;place-items:center;border-bottom:2px solid var(--ink);border-radius:4px 4px 0 0;
  font-family:var(--f-type);font-weight:700;font-size:calc(var(--cw)*.86);line-height:1;transition:background .12s}
.cipher-desk .c{font-family:var(--f-type);font-size:calc(var(--cw)*.52);color:var(--accent);margin-top:3px;line-height:1.1}
.cipher-desk .p{width:auto;min-width:calc(var(--cw)*.4);height:calc(var(--cw)*1.2);display:grid;place-items:end center;font-family:var(--f-type);font-weight:700;font-size:calc(var(--cw)*.86);padding-bottom:2px}
.cipher-desk .cell.same .g{background:var(--hl);color:var(--hl-ink)}
.cipher-desk .cell.sel .g{background:var(--hl);color:var(--hl-ink);box-shadow:inset 0 0 0 2px var(--accent)}
.cipher-desk .cell.lock .g{color:var(--lock)}
.cipher-desk .cell.lock.same .g,.cipher-desk .cell.lock.sel .g{color:var(--hl-ink)}
.cipher-desk .cell.wrong .g{color:var(--wrong);border-bottom-color:var(--wrong)}
.cipher-desk .cell.bump .g{animation:cd-bump .35s}
@keyframes cd-bump{30%{transform:translateY(-4px)}}
.cipher-desk .sheet.decoded .g{animation:cd-decode .5s both;animation-delay:calc(var(--i)*14ms)}
@keyframes cd-decode{0%{transform:rotateX(90deg);color:var(--accent)}100%{transform:none}}
@media (prefers-reduced-motion:reduce){.cipher-desk .sheet.decoded .g,.cipher-desk .cell.bump .g{animation:none}
 }
.cipher-desk .status{min-height:22px;font-size:14px;color:var(--muted);text-align:center}
.cipher-desk .status.good{color:var(--lock);font-weight:600}
.cipher-desk .status.bad{color:var(--wrong);font-weight:600}
.cipher-desk .controls{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.cipher-desk .keyhead{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:600}
.cipher-desk .keyhead span:last-child{font-family:var(--f-type);letter-spacing:.12em;text-transform:none}
.cipher-desk .strip{display:grid;grid-template-columns:repeat(13,1fr);gap:4px}
.cipher-desk .k{display:flex;flex-direction:column;align-items:center;gap:1px;border:1px solid var(--rule);border-radius:5px;padding:5px 0 4px;background:var(--surface);cursor:pointer;min-width:0}
.cipher-desk .k .kc{font-family:var(--f-type);color:var(--accent);font-size:14px;line-height:1}
.cipher-desk .k .kg{font-family:var(--f-type);font-weight:700;font-size:17px;line-height:1.1;min-height:19px}
.cipher-desk .k .kn{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums;line-height:1}
.cipher-desk .k.absent{opacity:.28;cursor:default}
.cipher-desk .k.cur{border-color:var(--accent);background:var(--hl);color:var(--hl-ink)}
.cipher-desk .k.lock .kg{color:var(--lock)}
.cipher-desk .k.cur.lock .kg{color:var(--hl-ink)}
.cipher-desk .kbd{display:flex;flex-direction:column;gap:6px;user-select:none}
.cipher-desk .krow{display:flex;justify-content:center;gap:5px}
.cipher-desk .kb{flex:1 1 0;max-width:46px;height:48px;border:1px solid var(--rule);border-bottom-width:3px;border-radius:6px;background:var(--key);font-family:var(--f-type);font-weight:700;font-size:18px;cursor:pointer;padding:0}
.cipher-desk .kb:active{transform:translateY(1px);border-bottom-width:2px}
.cipher-desk .kb.used{opacity:.4}
.cipher-desk .kb.wide{max-width:74px;flex-grow:1.6;font-family:var(--f-ui);font-size:13px;font-weight:600}
@media (max-width:420px){.cipher-desk .kb{height:44px;font-size:16px}
.cipher-desk .krow{gap:4px}
 }
.cipher-desk .ixhead{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}
.cipher-desk .ixhead h2{margin:0;font-family:var(--f-display);font-weight:400;font-size:30px;letter-spacing:.03em;text-wrap:balance}
.cipher-desk .bar{height:8px;border-radius:99px;background:var(--rule);overflow:hidden;width:min(320px,100%)}
.cipher-desk .bar i{display:block;height:100%;background:var(--lock);width:0}
.cipher-desk .ixsum{display:flex;flex-direction:column;gap:6px;align-items:flex-end;font-size:14px;color:var(--muted)}
.cipher-desk .tier{display:flex;flex-direction:column;gap:10px}
.cipher-desk .tier h3{margin:0;display:flex;align-items:baseline;gap:10px;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:600}
.cipher-desk .tier h3 b{font-family:var(--f-display);font-weight:400;font-size:22px;letter-spacing:.03em;color:var(--ink);text-transform:none}
.cipher-desk .tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(54px,1fr));gap:6px}
.cipher-desk .tile{position:relative;height:46px;border:1px solid var(--rule);border-radius:6px;background:var(--surface);cursor:pointer;font-family:var(--f-type);font-weight:700;font-size:15px;font-variant-numeric:tabular-nums}
.cipher-desk .tile:hover{border-color:var(--ink)}
.cipher-desk .tile.prog::after{content:"";position:absolute;top:6px;right:6px;width:7px;height:7px;border-radius:50%;background:var(--accent)}
.cipher-desk .tile.done{background:var(--lock);border-color:var(--lock);color:var(--surface)}
.cipher-desk .tile.rv{background:transparent;border-style:dashed;color:var(--muted)}
.cipher-desk .tile.here{box-shadow:0 0 0 2px var(--accent)}
.cipher-desk .legend{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.cipher-desk .legend span{display:inline-flex;align-items:center;gap:6px}
.cipher-desk .sw{width:14px;height:14px;border-radius:3px;border:1px solid var(--rule);background:var(--surface);position:relative}
.cipher-desk .sw.done{background:var(--lock);border-color:var(--lock)}
.cipher-desk .sw.prog::after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--accent)}
.cipher-desk .sw.rv{border-style:dashed;background:transparent}
.cipher-desk .scrim{position:fixed;inset:0;background:color-mix(in srgb,var(--ink) 45%,transparent);display:grid;place-items:center;padding:16px;z-index:10}
.cipher-desk .card{background:var(--surface);border:1px solid var(--rule);border-radius:12px;box-shadow:var(--shadow);max-width:520px;width:100%;padding:26px 24px;display:flex;flex-direction:column;gap:14px}
.cipher-desk .card .eyebrow{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--lock);font-weight:700}
.cipher-desk .card blockquote{margin:0;font-family:var(--f-type);font-size:19px;line-height:1.45;text-wrap:pretty}
.cipher-desk .card cite{font-style:normal;color:var(--muted);font-size:15px}
.cipher-desk .card .row{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.cipher-desk .card .figs{display:flex;gap:22px;font-family:var(--f-type);font-size:14px;color:var(--muted)}
.cipher-desk .card .figs b{color:var(--ink);font-size:18px;display:block;font-variant-numeric:tabular-nums}
.cipher-desk .help{font-size:13.5px;color:var(--muted);max-width:68ch}
.cipher-desk .help b{color:var(--ink);font-weight:600}

