.mystery-grid{display:grid;grid-template-columns:repeat(5,48px);gap:5px;justify-content:center;margin:24px auto}.mystery-cell{height:48px;border:1px solid #ddd7c9;border-radius:6px;display:grid;place-items:center;font-size:21px;font-weight:bold}.green{background:#6c9476!important;color:white}.gold{background:#c89d49!important;color:white}.grey{background:#a2aaa4!important;color:white}.legend{text-align:center;font-size:12px;color:#68756c;line-height:2.4}.legend span{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:4px;margin-left:8px;font-weight:bold}.guess-form{max-width:350px;margin:18px auto}.guess-form label{font-size:12px;font-weight:bold;display:block;margin-bottom:7px}.guess-form div{display:flex;gap:8px}.guess-form input{width:100%;min-width:0;padding:13px;border:1px solid #d9d2c3;border-radius:8px;text-transform:uppercase;font-size:18px;letter-spacing:.15em}.guess-form button{white-space:nowrap;border:0;border-radius:8px;background:#252d59;color:white;padding:12px 18px;font-weight:bold}.guess-form button:disabled{opacity:.5}@media(max-width:400px){.mystery-grid{grid-template-columns:repeat(5,42px)}.mystery-cell{height:42px}}

.keyboard{max-width:500px;margin:12px auto 0}.key-row{display:flex;justify-content:center;gap:4px;margin:4px 0}.key{flex:1;max-width:42px;min-width:0;min-height:44px;border:0;border-radius:5px;background:#e7e4da;color:#252d59;font-size:14px;font-weight:bold}.key-submit{display:block;margin:8px auto 0;min-height:44px;border:0;border-radius:8px;background:#252d59;color:white;padding:0 24px;font-weight:bold}.key:disabled,.key-submit:disabled{opacity:.7}.mystery-cell{transition:background .15s}.legend span{vertical-align:middle}@media(max-width:500px){.mystery-grid{grid-template-columns:repeat(5,40px);gap:4px;margin:12px auto}.mystery-cell{height:40px;font-size:19px}.legend{font-size:11px;line-height:1.7;margin:8px 0}.legend span{width:19px;height:19px;margin-left:4px}.keyboard{margin-top:8px}.key-row{gap:3px}.key{min-height:42px;font-size:13px}.key-submit{width:100%;margin-top:8px}.game-heading h2{font-size:18px}.game-heading #count{font-size:11px;white-space:nowrap}}
@media(max-width:500px) and (max-height:650px){.mystere-page .mystery-grid{grid-template-columns:repeat(5,34px);gap:3px;margin:6px auto}.mystere-page .mystery-cell{height:34px}.mystere-page .legend{margin:4px 0}.mystere-page .key{min-height:36px}.mystere-page .key-submit{min-height:39px;margin-top:4px}.mystere-page .keyboard{margin-top:4px}}
