/*! Copyright 2026 El Trivia (eltrivia.com). All rights reserved. */
.k-code{padding-block:var(--s3) var(--s7)}.k-code__intro{margin-bottom:var(--s3)}.k-code__intro h1{font-size:24px}.k-code__intro p{margin-top:var(--s1);max-width:60ch}.k-code__note{margin-bottom:var(--s3)}.k-code [hidden]{display:none!important}.k-code__game{container-type:inline-size;display:grid;gap:var(--s3);max-width:640px;padding:var(--s3)}@media (min-width:400px){.k-code__game{padding:var(--s4)}}.k-code__game:focus{outline:none}.k-code__bar{align-items:center;display:flex;flex-wrap:wrap;gap:var(--s2) var(--s4)}.k-code__adder{flex:1 1 auto;min-width:0;overflow:hidden}.k-code__bar-stats{display:flex;gap:var(--s4)}.k-code__big{font-size:18px;min-height:56px;touch-action:manipulation}.k-code__area{display:grid;position:relative}.k-code__area .play-start{border-radius:12px}.k-code__preview{display:grid;gap:var(--s3)}.k-code__top{align-content:start;display:grid;justify-items:center;min-height:220px;text-align:center}.k-code__decode-area,.k-code__reveal,.k-code__summary{display:grid;gap:var(--s2);justify-items:center}.k-code__riddle{font-size:20px;font-weight:700;max-width:32ch;min-height:1.5em}.k-code__tip{font-size:16px;max-width:40ch;min-height:1.5em}.k-code__answer{display:flex;flex-wrap:wrap;gap:var(--s2) var(--s4);justify-content:center;max-width:100%;min-height:88px}.k-code__word{display:flex;gap:4px}.k-code__cell{align-items:center;border:2px solid var(--line-strong);border-radius:8px;display:grid;grid-template-rows:40px 40px;justify-items:center;width:clamp(28px,9.5cqi,44px)}.k-code__got{font-size:26px;font-weight:800;line-height:1}.k-code__sym{border-top:2px solid var(--line);display:grid;height:100%;place-items:center;width:100%}.k-code__cell.is-current{background:var(--surface-2);border-color:var(--ink);outline:2px solid var(--ink)}.k-code__cell.is-found{background:var(--surface-2);border-color:transparent}.k-code__num{color:var(--ink);font-size:18px;font-variant-numeric:tabular-nums;font-weight:800}.k-code__pig{color:var(--ink);display:block;height:26px;width:26px}.k-code__reveal-q{font-size:16px;max-width:36ch}.k-code__reveal-a{font-size:30px;font-weight:800;letter-spacing:.04em}.k-code__reveal-star{font-size:16px;font-weight:600}.k-code__stars{display:flex;flex-wrap:wrap;gap:2px;justify-content:center;max-width:300px}.k-code__star{fill:none;stroke:var(--line-strong);stroke-width:1.6;stroke-linejoin:round;height:32px;width:32px}.k-code__star.is-on{fill:var(--field);stroke:var(--deep)}.k-code__chart{display:grid;gap:6px;grid-template-columns:repeat(5,minmax(0,1fr))}@container (min-width: 460px){.k-code__chart{grid-template-columns:repeat(7,minmax(0,1fr))}}.k-code__key{align-content:center;background:var(--surface);border:1px solid var(--line-strong);border-radius:12px;color:var(--ink);cursor:pointer;display:grid;font:inherit;gap:4px;justify-items:center;min-height:56px;min-width:56px;padding:6px 2px;touch-action:manipulation}@media (hover:hover){.k-code__key:hover{background:var(--surface-2)}}.k-code__key:focus-visible{outline:3px solid var(--ink);outline-offset:2px}.k-code__key-letter{font-size:22px;font-weight:800;line-height:1}.k-code__key-code{display:grid;height:26px;place-items:center}.k-code__key .k-code__num{color:var(--ink-2);font-size:16px;font-weight:700}.k-code__key .k-code__pig{height:26px;width:26px}.k-code__key.is-wobble{animation:k-code-wobble .45s var(--ease)}@keyframes k-code-wobble{20%{transform:translateX(-6px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(3px)}}@media (prefers-reduced-motion:reduce){.k-code__key.is-wobble{animation:none;outline:3px dashed var(--ink-2);outline-offset:2px}}@media (max-height:599px),(max-width:719px){.is-play-mode :is(.k-code__area,.k-code__preview){display:contents}.k-code__game.is-play-mode{align-content:start;grid-template-rows:auto max-content auto}.is-play-mode .k-code__bar{flex-wrap:nowrap}.is-play-mode .k-code__top{min-height:min-content}.is-play-mode .k-code__riddle{font-size:17px}.is-play-mode .k-code__tip{font-size:14px}.is-play-mode .k-code__cell{grid-template-rows:34px 34px}.is-play-mode .k-code__got{font-size:22px}.is-play-mode .k-code__chart{gap:4px}.is-play-mode .k-code__big{font-size:16px;min-height:48px}}@media (orientation:landscape) and (max-height:599px){.k-code__game.is-play-mode{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);grid-template-rows:auto minmax(0,1fr)}.is-play-mode .k-code__bar{grid-column:1/-1}.is-play-mode .k-code__top{grid-column:1}.is-play-mode .k-code__chart{grid-column:2;grid-template-columns:repeat(7,minmax(0,1fr))}.is-play-mode .k-code__key{min-width:0}}.k-code__controls{display:grid;gap:var(--s2);justify-items:center;text-align:center}.k-code__level-about{font-size:14px;max-width:48ch}.k-code__about{margin-top:var(--s6);max-width:62ch}.k-code__about>h2{margin:var(--s6) 0 var(--s3)}.k-code__about>h2:first-child{margin-top:0}.k-code__about>h3{margin:var(--s4) 0 var(--s2)}.k-code__about ol{margin:var(--s3) 0;padding-left:1.25em}.k-code__about li+li{margin-top:6px}.k-code__about p+p{margin-top:var(--s2)}.k-code__keys-help{border-collapse:collapse;font-size:15px}.k-code__keys-help td,.k-code__keys-help th{border-bottom:1px solid var(--line);padding:6px var(--s4) 6px 0;text-align:left;vertical-align:top}.k-code__keys-help th{font-weight:600;white-space:nowrap}.k-code.is-make :is(.k-code__bar-stats,.k-code__levels,.k-code__level-about){visibility:hidden}.k-code__key-word{font-size:16px;font-weight:800}.k-code__key--extra{grid-column:span 2}.k-code__crack,.k-code__maker{display:grid;gap:var(--s2);justify-items:center;width:100%}.k-code__note-line{color:var(--ink-2);font-size:15px;min-height:0}.k-code__note-line:empty{display:none}.k-code__ltr{color:var(--ink);font-size:20px;font-weight:800}.k-code__key .k-code__ltr{color:var(--ink-2);font-size:17px;font-weight:700}.k-code__msg-plain{font-size:22px;font-weight:800;letter-spacing:.04em;max-width:100%;min-height:1.4em;overflow-wrap:anywhere}.k-code__msg-plain.is-empty{border:2px dashed var(--line-strong);border-radius:12px;width:min(100%,320px)}.k-code__msg-coded{gap:var(--s1) var(--s3);min-height:0}.k-code__msg-coded .k-code__cell{grid-template-rows:14px 34px;width:30px}.k-code__msg-coded :is(.k-code__num,.k-code__ltr){font-size:15px}.k-code__msg-coded .k-code__pig{height:20px;width:20px}.k-code__msg-count{font-size:14px}.k-code__msg-actions{align-items:center;display:flex;flex-wrap:wrap;gap:var(--s2);justify-content:center}.k-code__msg-actions .btn{min-height:48px}.k-code__check{align-items:center;cursor:pointer;display:inline-flex;font-weight:600;gap:var(--s2);min-height:44px}.k-code__check input{accent-color:var(--ink);height:20px;margin:0;width:20px}.k-code__check select{background:var(--surface);border:1px solid var(--line-strong);border-radius:8px;color:var(--ink);font:inherit;min-height:44px;padding:0 var(--s2)}.k-code__private{font-size:13px;max-width:40ch}@media (max-height:599px),(max-width:719px){.is-play-mode .k-code__private{display:none}.is-play-mode .k-code__msg-coded{max-height:18vh;overflow-y:auto}.is-play-mode .k-code__msg-plain{font-size:16px}.is-play-mode .k-code__msg-count{display:none}.is-play-mode .k-code__maker{gap:var(--s1)}}.k-charts{display:grid;gap:var(--s5);margin-top:var(--s3)}.k-chart{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:var(--s3)}.k-chart__head{align-items:center;display:flex;gap:var(--s2);justify-content:space-between}.k-chart__head h3{margin:0}.k-chart__how{font-size:14px;margin:var(--s2) 0}.k-chart__grid{display:grid;gap:4px;grid-template-columns:repeat(auto-fill,minmax(56px,1fr));margin-top:var(--s2)}.k-chart__cell{border:1px solid var(--line-strong);border-radius:8px;display:grid;gap:2px;justify-items:center;padding:6px 2px}.k-chart__ch{font-size:20px;font-weight:800;line-height:1}.k-chart__code{display:grid;font-size:16px;font-weight:700;line-height:1;min-height:24px;place-items:center}.k-chart__pig{color:var(--ink);height:24px;width:24px}.k-chart__figs{color:var(--ink);display:grid;gap:var(--s2);grid-template-columns:repeat(4,minmax(0,1fr));max-width:440px}.k-chart__fig{height:auto;width:100%}.k-chart__scroll{overflow-x:auto}.k-chart__strip{border-collapse:collapse;font-size:15px;font-weight:700;text-align:center}.k-chart__strip th{font-size:13px;padding:4px var(--s2) 4px 0;text-align:left;white-space:nowrap}.k-chart__strip td{border:1px solid var(--line);min-width:22px;padding:4px 2px}.k-chart__strip .is-plain td{background:var(--surface-2)}.k-chart__credit{color:var(--ink-2);font-size:12px;margin-top:var(--s2)}.k-print{display:none}@media print{html[data-print] body>:not(.k-print){display:none!important}html[data-print] body{background:#fff;color:#000}html[data-print] .k-print{color:#000;display:block}.k-print .k-chart{background:none;border:0;padding:0}.k-print .k-chart__head h3,.k-print .k-print-msg h2{font-size:24pt;margin:0 0 6pt}.k-print .k-chart__how{font-size:11pt}.k-print .k-chart__grid{gap:5pt;grid-template-columns:repeat(6,1fr)}.k-print .k-chart__cell{border:1pt solid #000;border-radius:4pt;break-inside:avoid;padding:5pt 2pt}.k-print .k-chart__ch{color:#000;font-size:22pt}.k-print .k-chart__code{color:#000;font-size:20pt;min-height:30pt}.k-print .k-chart__pig{color:#000;height:28pt;width:28pt}.k-print .k-chart__figs{color:#000;gap:10pt;grid-template-columns:repeat(4,1fr);max-width:none}.k-print .k-chart__strip{font-size:13pt;table-layout:fixed;width:100%}.k-print .k-chart__strip th{font-size:10pt;width:15mm}.k-print .k-chart__strip td{border:1pt solid #000;min-width:0;padding:5pt 0}.k-print .k-chart__strip .is-plain td{background:none;border-bottom-width:2.5pt;font-weight:900}.k-print .k-chart__credit{color:#000;font-size:8pt;margin-top:8pt}.k-print-msg__code{font-size:12pt;margin-bottom:8pt}.k-print .k-print-msg__cells{gap:8pt 16pt;justify-content:flex-start;margin-bottom:14pt}.k-print .k-code__cell{border:1pt solid #000;border-radius:4pt;grid-template-rows:30pt 30pt;width:30pt}.k-print .k-code__sym{border-top:1pt solid #000}.k-print .k-code__ltr,.k-print .k-code__num{color:#000;font-size:16pt}.k-print .k-code__pig{color:#000;height:22pt;width:22pt}.k-print .k-print-msg .k-chart__grid{grid-template-columns:repeat(9,1fr)}.k-print .k-print-msg .k-chart__ch{font-size:16pt}.k-print .k-print-msg .k-chart__code{font-size:14pt;min-height:22pt}.k-print .k-print-msg .k-chart__pig{height:20pt;width:20pt}.k-print .k-print-msg .k-chart__figs{gap:8pt;max-width:120mm}}@page{margin:12mm}
