.game-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.score-board {
    display: flex;
    justify-content: space-around;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.grid {
    width: 600px;
    height: 600px;
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
}

.hole {
    flex: 1 0 33.33%;
    overflow: hidden;
    position: relative;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><ellipse cx="50" cy="80" rx="40" ry="15" fill="%238B4513" /></svg>') bottom center no-repeat;
    background-size: 80%;
}

.hole:after {
    content: '';
    display: block;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M10,80 Q50,100 90,80" stroke="%23654321" stroke-width="5" fill="none"/></svg>') bottom center no-repeat;
    background-size: 80%;
    width: 100%;
    height: 100px;
    position: absolute;
    z-index: 2;
    bottom: -30px;
    pointer-events: none;
}

.mole {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 100%;
    width: 80%;
    height: 80%;
    left: 10%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="80" font-size="80">🐹</text></svg>');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
    transition: top 0.4s;
    cursor: pointer;
}

.hole.up .mole {
    top: 0;
}

/* Hit effect */
.hole.up .mole.bonked {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="80" font-size="80">💥</text></svg>');
    pointer-events: none;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 10px;
}

.overlay.hidden {
    display: none;
}

.overlay h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #333;
}

.overlay p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .grid {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .hole {
        height: 33.33%;
    }
}