* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #8bc34a;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    margin-bottom: 20px;
}

.logo img {
    max-width: 100%;
    height: auto;
    width: auto;
    max-height: 150px;
}

.score-board {
    background: #fff;
    padding: 15px 25px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.score-board span {
    margin: 0 15px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.score-board label {
    margin-left: 15px;
    color: #666;
    cursor: pointer;
}

.score-board label:hover {
    color: #333;
}

.score-board input[type="checkbox"] {
    margin-right: 5px;
    cursor: pointer;
}

.game-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 600px;
    margin: 0 auto 30px;
    padding: 20px;
    cursor: none;
}

.hole {
    background: #4a8f29;
    height: 120px;
    width: 120px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: none;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.4);
    border: 4px solid #3d7a1f;
}

.mole {
    width: 100px;
    height: 100px;
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    transition: bottom 0.2s ease-out;
    background: url('./images/mole.png') bottom center no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 2;
}

.hole.up .mole {
    bottom: -10px;
}

.mole.bonked {
    background-image: url('./images/mole-whacked.png');
}

.hammer {
    width: 60px;
    height: 60px;
    background: url('./images/chuzimoren.png') no-repeat center center;
    background-size: contain;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: background-image 0.1s;
    display: none;
}

.hammer.active {
    background-image: url('./images/chuiziluoxia.png');
}

.hit-effect {
    position: absolute;
    width: 100px;
    height: 100px;
    background: url('./images/fenwei.gif') no-repeat center center;
    background-size: contain;
    pointer-events: none;
    z-index: 3;
    display: none;
    transform: translate(-50%, -50%);
}

.controls {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
}

.controls button {
    padding: 12px 35px;
    font-size: 18px;
    margin: 0 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#startButton {
    background: #ff5722;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#startButton:hover {
    background: #f44336;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.2);
}

#pauseButton {
    background: #2196F3;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#pauseButton:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.2);
}

button:disabled {
    background: #ccc !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.7;
}

.footer {
    width: 100%;
    padding: 20px 0;
    background: transparent;
    margin-top: auto;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer p {
    color: #666;
    font-size: 10px;
    line-height: 2;
    margin: 0;
}

.footer a {
    color: #666;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .game-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .hit-effect {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .logo img {
        max-height: 100px;
    }

    .game-container {
        gap: 10px;
        padding: 10px;
    }

    .hole {
        height: 90px;
        width: 90px;
    }

    .mole {
        width: 70px;
        height: 70px;
    }

    .hammer {
        width: 50px;
        height: 50px;
    }

    .hit-effect {
        width: 60px;
        height: 60px;
    }

    .controls button {
        padding: 10px 25px;
        font-size: 16px;
    }

    .score-board {
        padding: 10px 15px;
    }

    .score-board span {
        margin: 0 10px;
        font-size: 16px;
    }

    .footer-content {
        padding: 0 20px;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .container {
        padding: 10px;
    }

    .logo img {
        max-height: 80px;
    }

    .game-container {
        gap: 10px;
    }

    .hole {
        height: 80px;
        width: 80px;
    }
}