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

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
    margin: 0;
}

.game-container {
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.game-title {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 2em;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.score, .time {
    font-size: 1.2em;
    color: #444;
}

#startBtn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

#startBtn:hover {
    background-color: #45a049;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
    position: relative;
}

.hole {
    background: url('images/hole.svg') no-repeat center center;
    background-size: contain;
    padding-top: 100%;
    position: relative;
    cursor: pointer;
}

.hole.active {
    cursor: pointer;
}

.hole.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/mole.png') no-repeat center center;
    background-size: 80%;
    animation: popUp 0.5s ease-out;
}

.hole.hit::after {
    background: url('images/mole-hit.png') no-repeat center center;
    background-size: 80%;
}

@keyframes popUp {
    0% { transform: translateY(100%); }
    100% { transform: translateY(0); }
}

.game-instructions {
    text-align: center;
    color: #666;
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.game-instructions p {
    margin: 5px 0;
}

@media (max-width: 600px) {
    body {
        padding: 5px;
    }
    
    .game-container {
        padding: 10px;
        border-radius: 10px;
    }

    .game-title {
        font-size: 1.3em;
        margin-bottom: 10px;
    }

    .game-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        margin-bottom: 10px;
        padding: 8px;
    }

    .score, .time {
        font-size: 1em;
    }

    #startBtn {
        padding: 8px 16px;
        font-size: 0.9em;
    }

    .game-board {
        gap: 5px;
        margin: 10px 0;
    }

    .hole {
        padding-top: 90%;
    }
}