.cryptogram-board{--crypto-paper:#ffe8b8;--crypto-ink:#402018;--crypto-gold:#ffbe75;--crypto-hint:#9aebd0;--crypto-error:#8a1f35;--crypto-rows:4;--crypto-row-gap:.2rem;--crypto-tile-height:clamp(33px, calc((var(--game-top-height,100dvh) - 24rem) / var(--crypto-rows) - var(--crypto-row-gap)), 44px);color:#ffe9cb;background:radial-gradient(at 50% 0,#db9a5277,#0000 62%),repeating-linear-gradient(109deg,#ffe1aa10 0 1px,#0000 1px 5px),linear-gradient(160deg,#9d572e,#552822 34%,#3c1b1f 72%,#632d22);border:1px solid #b1744d;border-radius:.8rem;gap:.28rem;max-width:39rem;margin-inline:auto;padding:clamp(.35rem,1.5vw,.5rem);display:grid;position:relative;box-shadow:inset 0 1px #ffdb9e,inset 0 -3px #281013,inset 0 0 0 3px #9b5b3e80,0 4px 10px #2e151e40}.pj-shell:fullscreen .cryptogram-board{--game-top-height:100dvh}@container (width<=40rem){.cryptogram-board{--crypto-rows:6}}.cryptogram-board .cryptogram-paper{isolation:isolate;place-content:center;gap:var(--crypto-row-gap) .65rem;min-height:7rem;color:var(--crypto-ink);background:radial-gradient(ellipse at 50% 40%, transparent 28%, #89381142), repeating-linear-gradient(174deg, #9353260e 0 1px, transparent 1px 4px), radial-gradient(ellipse at 36% 22%, #fff3cb, var(--crypto-paper) 55%, #e8aa66);border:1px solid #9f5937;border-radius:.55rem;flex-wrap:wrap;padding:.4rem;display:flex;position:relative;overflow:clip;box-shadow:inset 0 0 0 2px #ffeab36e,inset 0 0 0 3px #a7673a52,inset 0 0 15px #87431d50,0 2px 4px #240b0e66}.cryptogram-board .cryptogram-dial{z-index:-1;inset-inline-end:6%;color:#8b532b;opacity:.2;pointer-events:none;width:min(47%,12rem);position:absolute;top:50%;translate:0 -50%}.cryptogram-board .cryptogram-word{align-items:stretch;gap:1px;display:inline-flex}.cryptogram-board .cryptogram-slot{--crypto-slot-metal:linear-gradient(146deg, #ffde97, #bd7841 45%, #8a4329 76%, #e3a865);min-width:0;min-height:var(--crypto-tile-height);width:clamp(20px,6.15cqi,30px);color:var(--crypto-ink);background:var(--crypto-slot-metal);touch-action:manipulation;border:1px solid #995e36;border-radius:.28rem;grid-template-rows:minmax(0,1fr) 12px;gap:1px;padding:1px 1px 2px;display:grid;position:relative;box-shadow:inset 0 1px #fff2bf,inset 0 -2px #5a2a20,0 1px 2px #5a2a2055}.cryptogram-board .cryptogram-slot strong{background:linear-gradient(#d2a46e,#f4cc92 40%,#ffe7b3);border-radius:.15rem;place-items:center;font:900 1.05rem/1 Georgia,serif;display:grid;position:relative;box-shadow:inset 0 1px 2px #6b381c7d,0 1px #ffebb580}.cryptogram-board .cryptogram-slot strong[data-filled=false]{background:linear-gradient(90deg,#0000 20%,#946337ad 20% 80%,#0000 80%) 50% 75%/100% 1px no-repeat,linear-gradient(#d2a46e,#f4cc92 40%,#ffe7b3)}.cryptogram-board .cryptogram-slot small{color:#ffeac1;text-shadow:0 -1px #471b16;font:850 .65rem/1 var(--site-font);background:radial-gradient(circle at 2px,#ffdf95 0 1px,#0000 1.25px),radial-gradient(circle at calc(100% - 2px),#ffdf95 0 1px,#0000 1.25px),linear-gradient(#ac6139,#663223);border-radius:2px;place-items:center;display:grid;box-shadow:inset 0 1px #ffd58b9e,inset 0 -1px #4f211c}.cryptogram-board .cryptogram-slot[aria-pressed=true]{--crypto-slot-metal:linear-gradient(138deg, #fff3b6, #ffbd63 51%, #bc602b);z-index:1;border-color:#713717;box-shadow:inset 0 0 0 1px #fff3bd,inset 0 -2px #7c381c,0 0 0 1px #ffefb2,0 0 8px 2px #f79437aa}.cryptogram-board .cryptogram-slot[aria-pressed=true] small{color:#4b2316;text-shadow:0 1px #fff1b680;background:linear-gradient(#ffe4a2,#eda556)}.cryptogram-board .cryptogram-slot[data-locked=true] strong{color:#154e49;box-shadow:inset 0 0 0 1px #398778, inset 0 1px 3px #23635470, 0 0 5px var(--crypto-hint);text-underline-offset:1px;background:linear-gradient(#a0c9ad,#e0efd0);text-decoration:underline}.cryptogram-board[data-decoded=true] .cryptogram-slot strong{color:#511d19;text-shadow:0 1px #ffefc4}.cryptogram-board .cryptogram-slot[data-error=true]{border-color:var(--crypto-error);border-style:dashed}.cryptogram-board .cryptogram-slot[data-error=true] strong{color:var(--crypto-error);background:#ffd3ab}.cryptogram-board .cryptogram-slot[data-error=true]:after{content:"×";color:var(--crypto-error);font:900 .63rem/1 var(--site-font);pointer-events:none;position:absolute;top:0;right:1px}.cryptogram-board .cryptogram-slot:focus-visible{z-index:2;outline-offset:-2px;outline:2px solid #472414}.cryptogram-board .cryptogram-punctuation{text-align:center;align-self:center;width:10px;font-weight:900}.cryptogram-board .cryptogram-note{text-align:center;text-shadow:0 1px 2px #260d0e;margin:0;padding:.12rem .2rem;font-size:.83rem;line-height:1.25}.cryptogram-board :is(.cryptogram-actions,.cryptogram-keys>div){justify-content:center;gap:.22rem;display:flex}.cryptogram-board :is(.cryptogram-actions,.cryptogram-keys) button{touch-action:manipulation}.cryptogram-board :is(.cryptogram-actions,.cryptogram-keys) button:focus-visible{outline-offset:-2px;outline:2px solid #fff4c2}.cryptogram-board .cryptogram-actions button{color:#3c1e16;text-shadow:0 1px #ffe6aa90;background:linear-gradient(#ffdf9c,#d8894c 85%,#a05231 85%);border:1px solid #db9c64;border-radius:.4rem;min-width:7.75rem;padding:0 .42rem;font-weight:850;box-shadow:inset 0 1px #fff0b4,inset 0 -2px #6f311c,0 2px 3px #260d10aa}.cryptogram-board .cryptogram-actions button+button{color:#fff0d1;text-shadow:0 1px #2e1114;background:linear-gradient(#86482f,#613025 85%,#3e1a19 85%);box-shadow:inset 0 1px #ce8a52,inset 0 -2px #491e19,0 2px 3px #260d10aa}.cryptogram-board .cryptogram-keys{background:repeating-linear-gradient(0deg,#f9bf7410 0 1px,#0000 1px 4px),radial-gradient(at top,#6f3529,#341819 60%,#291317);border-radius:.42rem .42rem .55rem .55rem;gap:.2rem;display:grid;box-shadow:inset 0 0 0 1px #b16b47,inset 0 2px 8px #210c10}.cryptogram-board .cryptogram-keys button{background:0 0;border:0;border-radius:.4rem;flex:0 2.65rem;place-items:center;min-width:0;padding:0;display:grid}.cryptogram-board .cryptogram-keys button span{aspect-ratio:1;color:#4f271a;text-shadow:0 1px #fff5d5;pointer-events:none;background:radial-gradient(at 35% 18%,#fff9e1,#0000 48%),radial-gradient(circle at 50% 35%,#fff0c6 46%,#d3a36d 84%);border:2px solid #c1864b;border-top-color:#ffe3a8;border-radius:50%;place-items:center;width:min(100%,34px);font:800 .9rem/1 Georgia,serif;display:grid;box-shadow:inset 0 0 0 1px #995c37aa,0 2px #7d3e29,0 3px 4px #1b0a0e}.cryptogram-board .cryptogram-keys button[data-used=true] span{color:#ffe2b8;text-shadow:0 1px #301417;text-underline-offset:2px;background:radial-gradient(circle at 36% 19%,#8c5941,#543028 73%);border-color:#a77858;text-decoration:underline;box-shadow:inset 0 0 0 1px #563126,0 2px #50251d,0 3px 4px #1b0a0e}.cryptogram-board .cryptogram-keys button[aria-label] span{font:850 .92rem/1 var(--site-font)}@media (width<=40rem),(height<=42rem){.cryptogram-board .cryptogram-keys button{min-height:37px}}@media (hover:hover){.cryptogram-board .cryptogram-slot:hover{border-color:#67351d}.cryptogram-board .cryptogram-actions button:enabled:hover{outline:1px solid var(--crypto-gold);outline-offset:-2px}.cryptogram-board .cryptogram-actions button:focus-visible:hover{outline:2px solid #fff4c2}.cryptogram-board .cryptogram-keys button:enabled:hover span{border-color:#ffdb8b}}.cryptogram-board .cryptogram-actions button:active,.cryptogram-board .cryptogram-keys button:enabled:active span{box-shadow:inset 0 2px 4px #4f241c8c}.cryptogram-board .cryptogram-decode{display:none}@media (prefers-reduced-motion:no-preference){.cryptogram-board .cryptogram-dial{animation:18s ease-in-out infinite alternate crypto-dial-drift}.cryptogram-board :is(.cryptogram-slot,.cryptogram-actions button,.cryptogram-keys button span){transition:transform .13s ease-out}@media (hover:hover){.cryptogram-board :is(.cryptogram-slot:hover,.cryptogram-actions button:enabled:hover,.cryptogram-keys button:enabled:hover span){transform:translateY(-1px)}}.cryptogram-board :is(.cryptogram-slot:active,.cryptogram-actions button:enabled:active,.cryptogram-keys button:enabled:active span){transform:translateY(1px)scale(.96)}.cryptogram-board .cryptogram-slot strong[data-stamp=true][data-filled=true] span{animation:crypto-ink-stamp .26s var(--crypto-delay) cubic-bezier(.22,.7,.2,1)}.cryptogram-board .cryptogram-slot strong[data-stamp=true]:after{content:"";border-radius:inherit;pointer-events:none;animation:crypto-ink-ripple .35s var(--crypto-delay) ease-out both;background:radial-gradient(#ffca7b99,#0000);border:1px solid #fff0b4;position:absolute;inset:0}.cryptogram-board .cryptogram-slot[data-locked=true] strong[data-stamp=true]:after{border-color:var(--crypto-hint);background:radial-gradient(#acffe4,#0000);animation-duration:.68s}.cryptogram-board .cryptogram-slot[data-error=true]:after{animation:.24s ease-out crypto-ink-stamp}.cryptogram-board .cryptogram-decode{z-index:2;border-radius:inherit;pointer-events:none;display:block;position:absolute;inset:0;overflow:clip}.cryptogram-board .cryptogram-decode:before{content:"";background:linear-gradient(112deg,#0000 34%,#e69d5020 41%,#ffde9890 49%,#fff6c6c0 50%,#ffe0a250 55%,#0000 63%);animation:.68s ease-out both crypto-decode-sweep;position:absolute;inset:0}.cryptogram-board .cryptogram-decode svg{color:#d99037;filter:drop-shadow(0 0 3px #ffc573);width:100%;height:100%;animation:.72s ease-out 80ms both crypto-decode-sparks;position:absolute;inset:0}@keyframes crypto-dial-drift{to{opacity:.12;transform:rotate(12deg)scale(1.04)}}@keyframes crypto-ink-stamp{0%{opacity:.55;transform:translateY(-2px)scale(1.2)}35%{opacity:1;transform:translateY(1px)scale(.84)}68%{transform:scale(1.05)}}@keyframes crypto-ink-ripple{0%{opacity:0;transform:scale(.65)}24%{opacity:.85}to{opacity:0;transform:scale(1.2)}}@keyframes crypto-decode-sweep{0%{transform:translate(-87%)}65%{opacity:.75}to{opacity:0;transform:translate(87%)}}@keyframes crypto-decode-sparks{0%{opacity:0;transform:scale(.65)}25%{opacity:1}to{opacity:0;transform:translateY(-12px)scale(1.18)}}}
