* { box-sizing: border-box; }
body { margin: 0; background: #17181c; color: #e8e8e8; font-family: "Segoe UI", Arial, sans-serif; }
.wrap { max-width: 560px; margin: 0 auto; padding: 24px 16px 48px; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
h1 { margin: 0; font-size: 26px; color: #7bd88f; letter-spacing: 1px; }
h2 { font-size: 18px; color: #9aa0a6; }
p { line-height: 1.5; }
.hidden { display: none !important; }
.error { color: #ff6b6b; min-height: 20px; }

.btn { background: #2f9e44; color: #fff; border: none; border-radius: 8px; padding: 10px 18px; font-size: 16px; cursor: pointer; }
.btn:hover { background: #37b24d; }
.btn.small { padding: 6px 12px; font-size: 14px; }
.btn.big { width: 100%; padding: 12px; font-size: 17px; margin-top: 8px; }
.btn.diff { background: #2b2d33; color: #cfd3d8; flex: 1; }
.btn.diff.active { background: #2f9e44; color: #fff; }

input { width: 100%; padding: 10px 12px; font-size: 16px; background: #232529; color: #fff;
        border: 2px solid #3a3d44; border-radius: 8px; margin: 4px 0 12px; }
input:focus { outline: none; border-color: #2f9e44; }
label { color: #9aa0a6; }

.diffs { display: flex; gap: 8px; }

#canvas { display: block; margin: 16px auto; width: 320px; height: 320px;
          image-rendering: pixelated; border: 3px solid #3a3d44; border-radius: 4px; background: #111; }
#attemptLabel { text-align: center; font-weight: 600; margin: 8px 0 0; }

/* Уже попробованные варианты */
.guesses { text-align: center; margin-top: 10px; font-size: 14px; color: #9aa0a6; }
.guesses .chip { display: inline-block; background: #232529; border: 1px solid #3a3d44;
                 border-radius: 12px; padding: 2px 10px; margin: 3px 3px;
                 color: #cfd3d8; font-size: 13px; }

.guessRow { display: flex; gap: 8px; }
.guessBox { position: relative; flex: 1; }
.guessBox input { margin: 0; }
.guessRow .btn { width: auto; margin-top: 0; }

/* Выпадающие подсказки (только Профи), две колонки */
.suggestions { position: absolute; left: 0; right: 0; top: 100%; margin-top: 2px;
               background: #232529; border: 2px solid #3a3d44; border-radius: 8px;
               max-height: 330px; overflow-y: auto; z-index: 10;
               display: flex; gap: 6px; }
.sugCol { flex: 1 1 0; min-width: 0; }
.sug { padding: 7px 12px; cursor: pointer; font-size: 14px;
       white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug:hover, .sug.active { background: #2f9e44; color: #fff; }
#resultTitle { font-size: 22px; font-weight: bold; }
#resultTitle.ok { color: #7bd88f; }
#resultTitle.bad { color: #ff6b6b; }
#answerName { font-size: 20px; color: #ffd43b; }

#recent ul { list-style: none; padding: 0; }
#recent li { padding: 6px 0; border-bottom: 1px solid #2b2d33; font-size: 14px; color: #cfd3d8; }
footer { margin-top: 32px; font-size: 12px; color: #61656b; }
li.empty { color: #61656b; font-style: italic; }
.btn.hint { background: #1971c2; }
.btn.hint:hover { background: #1c7ed6; }
.btn.hint:disabled { background: #495057; cursor: default; }
.hintLabel { text-align: center; color: #74c0fc; font-weight: 600; margin: 6px 0 0; }
/* Кнопка каталога */
.btn.alt { background: #364fc7; }
.btn.alt:hover { background: #3b5bdb; }

/* Каталог блоков */
.catalogHead { display: flex; align-items: center; gap: 10px; }
.catalogHead h2 { margin: 0; }
.catGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
           gap: 8px; margin-top: 10px; max-height: 62vh; overflow-y: auto; }
.catCell { background: #232529; border: 1px solid #3a3d44; border-radius: 8px;
           padding: 8px 4px; text-align: center; }
.catCell img { width: 32px; height: 32px; image-rendering: pixelated; }
.catName { font-size: 11px; color: #cfd3d8; margin-top: 4px; line-height: 1.2; }

/* Уже попробованные варианты в подсказках Профи */
.sug.tried { color: #868e96; text-decoration: line-through; }
.catHead { grid-column: 1 / -1; font-weight: 600; color: #ffd43b;
           font-size: 14px; margin-top: 8px; }