/* Cryptogram only: the typewriter keys under the paper. Everything else comes from ../shared/game.css.
   Cream keycaps in black rings with a thin chrome edge, like an old typewriter; each key shows (small, red) the code
   letter it is standing in for. */
#screen{touch-action:manipulation;user-select:none;-webkit-user-select:none}
canvas#world{cursor:pointer}
canvas#world:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}
.progress-fill{background:linear-gradient(90deg,#d6a86a,#86c7bb,#b9a8ff);transition:width .25s ease-out}
.zone-banner{top:40%}

.keys{display:grid;gap:6px;width:100%;max-width:760px;margin:0 auto;padding:8px 10px;border-radius:16px;
  background:linear-gradient(180deg,#2b241f,#15110e);border:1px solid #3d3229;box-shadow:inset 0 1px 0 #ffffff12,0 8px 18px -10px #000}
.key-row{display:flex;gap:6px;justify-content:center}
.tkey{position:relative;flex:1 1 0;min-width:0;max-width:50px;height:38px;padding:0;border-radius:999px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;touch-action:manipulation;
  background:radial-gradient(circle at 50% 32%,#fffaf0,#e9dfc6 62%,#cdbf9f);color:#2a2118;
  border:3px solid #24211f;box-shadow:0 0 0 1.5px #b9b2a4,0 3px 0 1.5px #0d0b09;
  transition:transform .06s ease,box-shadow .06s ease,background .15s}
.tkey span{font:800 17px/1 "Bricolage Grotesque",system-ui,sans-serif}
.tkey small{position:absolute;right:5px;bottom:2px;font:700 9px/1 "Plus Jakarta Sans",system-ui,sans-serif;color:#a4442e;letter-spacing:.02em}
.tkey.used{background:radial-gradient(circle at 50% 32%,#f3ead6,#d8caa8 62%,#bba985)}
.tkey.given small{color:#2c5a88}
.tkey.clash{border-color:#9a2a20}
.tkey.clash small{color:#d0402c}
.tkey.now{box-shadow:0 0 0 2px #f2c46a,0 3px 0 1.5px #0d0b09}
.tkey:active{transform:translateY(2px);box-shadow:0 0 0 1.5px #b9b2a4,0 1px 0 1px #0d0b09}
.tkey:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}
.tkey.tool{flex:1.7 1 0;max-width:86px;flex-direction:column;gap:1px;
  background:radial-gradient(circle at 50% 30%,#4a3e33,#2a221c);color:#f2d28a;border-color:#15110e}
.tkey.tool span{font:800 13px/1 "Plus Jakarta Sans",system-ui,sans-serif;letter-spacing:.06em}
.tkey.tool small{position:static;color:#cdb98e;font-size:8px;letter-spacing:.08em}
.tkey.tool:disabled{opacity:.42;cursor:default}
.tkey.tool:disabled:active{transform:none}
@media (max-width:560px){
  .keys{gap:5px;padding:6px 5px;border-radius:12px}
  .key-row{gap:4px}
  .tkey{height:42px;border-width:2px;box-shadow:0 0 0 1px #b9b2a4,0 2px 0 1px #0d0b09}
  .tkey span{font-size:16px}
  .tkey small{right:3px;font-size:8px}
  .tkey.tool span{font-size:11px}
  .tkey.tool small{font-size:7px}
}
/* computers: slimmer keys, so the paper (and the start card) keep their room */
@media (min-width:561px){.keys{gap:5px;padding:6px 10px}.key-row{gap:6px}.tkey{height:33px}.tkey span{font-size:16px}}
@media (max-height:620px) and (min-width:561px){.tkey{height:29px}.tkey span{font-size:14px}}
@media (prefers-reduced-motion:reduce){.tkey{transition:none}.tkey:active{transform:none}}
