* {
    user-select: none;
    -webkit-user-select: none;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Courier New', 'Monaco', monospace;
}

.game-container {
    padding: 20px;
}

.level-label {
    color: #ffd700;
    font-family: monospace;
    font-size: 24px;      /* увеличьте это значение */
    font-weight: bold;
    margin-right: 8px;
}

.game-screen {
    position: relative;
    display: inline-block;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

#gameCanvas {
    display: block;
    background: #0a0a1a;
    // cursor: none;
}

.level-select option:disabled {
    color: #666;
    background-color: #1a1a2e;
}

.ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    font-weight: bold;
    text-shadow: 2px 2px 0 #000;
}

.score-panel {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.7);
    padding: 8px 16px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #ffd700;
}

.score-label {
    font-size: 12px;
    color: #ffd700;
    letter-spacing: 2px;
}

.score-value {
    font-size: 28px;
    color: #fff;
    font-weight: bold;
}

.level-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    padding: 8px 16px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #00d4ff;
}


.level-value {
    font-size: 28px;
    color: #fff;
    font-weight: bold;
}

.counters-panel {
    display: flex;
    flex-direction: column;  /* было row, стало column */
    gap: 8px;
    position: absolute;
    left: 20px;
    top: 100px;
}

.counter-item {
    font-size: 20px;
    font-family: monospace;
    background: #0a0a1a;
    padding: 4px 8px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;             /* один пробел между эмодзи и числом */
    border: 1px solid #2a2a4a;
}

.counter-emoji {
    font-size: 22px;
}

.counter-count {
    font-size: 18px;
    color: #ffd700;
    font-weight: bold;
}

.instructions {
    margin-top: 20px;
    display: flex;
    gap: 30px;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 12px;
    color: #888;
}

.instructions div {
    text-align: center;
}

.ctrl-hint, .reset-hint {
    color: #ffd700;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #0f0f1a);
    border: 2px solid #ffd700;
    border-radius: 20px;
    padding: 30px 40px;
    text-align: center;
    min-width: 320px;
    box-shadow: 0 0 40px rgba(255,215,0,0.3);
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-icon {
    font-size: 64px;
    margin-bottom: 15px;
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.modal-title {
    font-size: 24px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.modal-message {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 15px;
}

.modal-stats {
    font-size: 20px;
    color: #4caf50;
    margin-bottom: 25px;
    font-weight: bold;
}

.modal-btn {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 40px;
    cursor: pointer;
    color: #1a1a2e;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.modal-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255,215,0,0.4);
}
/* ... существующие стили ... */

.controls-bar {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.5);
    padding: 10px 20px;
    border-radius: 40px;
}

.level-select {
    background: #0a0a1a;
    color: #00d4ff;
    border: 1px solid #00d4ff;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    cursor: pointer;
}

.level-select:hover {
    background: #1a1a2e;
}

.load-level-btn, .reset-btn {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-family: monospace;
}

.load-level-btn:hover, .reset-btn:hover {
    transform: scale(1.02);
}

.reset-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.counter-item.blink .counter-emoji {
    animation: blink 0.6s step-end infinite;
    color: #ff8888;
}

/* Мигание только для эмодзи */
@keyframes blink-emoji {
    0% { opacity: 1; }
    50% { opacity: 0.3; transform: scale(1.1); }
    100% { opacity: 1; }
}

.counter-emoji.blink {
    animation: blink-emoji 0.6s ease-in-out infinite;
    display: inline-block;
}
.theme-btn {
    background: #1e1e3a;
    border: none;
    color: #fff;
    font-size: 20px;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.theme-btn:hover {
    background: #2a2a4a;
    transform: scale(1.05);
}

body {
    background: #0a0a1a;
}

