@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}

body {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    max-width: 650px;
    width: 100%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    text-align: center;
}

h1 {
    font-family: 'Fredoka One', cursive;
    color: #434343;
    font-size: 3em;
    margin-bottom: 25px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.scoreboard {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.score-box {
    background: #fff;
    color: #333;
    padding: 15px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    flex: 1;
}

.score-box h3 {
    font-size: 1.1em;
    font-weight: 700;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score-box div {
    font-size: 2.2em;
    font-family: 'Fredoka One', cursive;
    color: #ff6b6b;
}

/* Action Buttons */
.start-btn, .control-btn {
    display: inline-block;
    width: 48%;
    padding: 15px;
    font-size: 1.4em;
    font-family: 'Fredoka One', cursive;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    margin: 5px 1%;
    margin-bottom: 25px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.start-btn {
    background: linear-gradient(135deg, #4ECDC4, #3bbbae);
    width: 98%;
}

.start-btn:hover:not(:disabled) {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(78, 205, 196, 0.3);
}

.control-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.control-btn:hover:not(:disabled) {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(255, 107, 107, 0.3);
}

.start-btn:disabled, .control-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Game Board */
.game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.hole {
    width: 100%;
    height: 140px;
    background: radial-gradient(circle at 50% 20%, #4a2f1d, #2d180d);
    border-radius: 50% 50% 10% 10% / 40% 40% 10% 10%;
    position: relative;
    overflow: hidden;
    cursor: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><text x="0" y="32" font-size="32">🔨</text></svg>'), pointer;
    border-bottom: 12px solid #5d4037;
    box-shadow: inset 0 15px 20px rgba(0,0,0,0.5);
    transition: transform 0.1s;
}

.hole:active {
    transform: scale(0.95);
}

.mole {
    width: 75%;
    height: 85%;
    background: #8e5c3e;
    border-radius: 50% 50% 0 0;
    position: absolute;
    bottom: -100%;
    left: 12.5%;
    transition: bottom 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    border: 3px solid #6b4026;
    border-bottom: none;
}

.mole::before {
    content: '🐹';
    font-size: 4em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mole.up {
    bottom: -5%;
    pointer-events: auto;
}

.mole.bonked {
    bottom: -100%;
    transition: bottom 0.1s;
}

.mole.bonked::before {
    content: '😵';
}

@media (max-width: 600px) {
    .game-board {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hole {
        height: 120px;
    }
    
    h1 {
        font-size: 2.2em;
    }
    
    .start-btn, .control-btn {
        width: 100%;
        margin: 5px 0;
    }
}