* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: url(img/hammer.png) 16 16, auto;
}

.container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

h1 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.score {
    color: #4CAF50;
}

.misses {
    color: #f44336;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 2rem;
    background-color: #8B4513;
    padding: 20px;
    border-radius: 15px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
     cursor: url(img/hammer.png) 16 16, auto;
}

.cell {
    aspect-ratio: 1;
    background-color: #654321;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    cursor: inherit;
}

.cell:hover {
    transform: scale(1.05);
    background-color: #7B3F00;
}

.cell.has-gnome {
    background-color: #2E7D32;
    animation: pulse 0.5s ease;
     cursor: url(img/hammer.png) 16 16, pointer;
}

.cell:active {
     cursor: url(img/hammer.png) 16 16, grabbing;
}

.gnome-image {
    width: 80%;
    height: 80%;
    object-fit: contain;
    pointer-events: none;
    animation: bounce 0.3s ease;
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.hit-effect {
    animation: hit 0.2s ease;
}

@keyframes hit {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); background-color: #FFD700; }
    100% { transform: scale(1); }
}

.game-over {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1000;
    cursor: default;
}

.game-over.hidden {
    display: none;
}

.game-over h2 {
    color: #333;
    margin-bottom: 1rem;
}

.game-over p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.reset-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 30px;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.reset-btn:hover {
    background-color: #45a049;
}
