.pixel-grid-container {
    display: flex;
    justify-content: center;
    margin: 20px auto;
    padding: 20px;
    overflow: auto;
}

.pixel-grid {
    position: relative;
    background: #f9f9f9;
    border: 1px solid #eee;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    margin: 0 auto;
}

.pixel {
    position: absolute;
    width: 10px;
    height: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.pixel:hover {
    transform: scale(1.8);
    z-index: 100;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.pixel img {
    width: 100%;
    height: 100%;
    display: block;
}

.pixel::after {
    content: attr(data-description) " (Кликов: " attr(data-clicks) ")";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 1000;
    margin-top: 5px;
    min-width: 200px;
    text-align: center;
}

.pixel:hover::after {
    opacity: 1;
}