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

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;
    padding: 20px;
}

.game-container {
    width: 100%;
    max-width: 700px;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.game-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 1.3em;
    font-weight: bold;
}

.game-info p {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.modal {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.birthday-message {
    color: #667eea;
    font-size: 2em;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

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

.modal h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 2em;
}

.modal p {
    color: #666;
    margin-bottom: 10px;
    font-size: 1.1em;
    line-height: 1.6;
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(102, 126, 234, 0.6);
}

.btn:active {
    transform: translateY(0);
}

.difficulty-selection {
    margin: 30px 0 20px 0;
    padding: 20px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
}

.difficulty-selection h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.difficulty-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
}

.difficulty-btn {
    background: white;
    color: #333;
    border: 3px solid #ddd;
    padding: 12px 25px;
    border-radius: 15px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.difficulty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.difficulty-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.difficulty-info {
    color: #666;
    font-size: 1em;
    font-style: italic;
}

.character-selection {
    margin: 30px 0 20px 0;
    padding: 20px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
}

.character-selection h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.character-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.character-btn {
    background: white;
    color: #333;
    border: 3px solid #ddd;
    padding: 12px 25px;
    border-radius: 15px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.character-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.character-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.hidden {
    display: none !important;
}

.game-area {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.holes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.hole {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 5px solid #654321;
}

.hole::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, #2c1810 0%, #1a0f0a 100%);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8) inset;
}

.mole {
    position: absolute;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    transition: bottom 0.2s ease-out;
    z-index: 10;
    cursor: pointer;
    user-select: none;
}

.mole.up {
    bottom: 10%;
    animation: pop 0.3s ease-out;
}

@keyframes pop {
    0% {
        bottom: -100%;
    }
    50% {
        bottom: 15%;
    }
    100% {
        bottom: 10%;
    }
}

.mole.whacked {
    animation: whack 0.3s ease-out forwards;
}

@keyframes whack {
    0% {
        bottom: 10%;
        transform: translateX(-50%) scale(1) rotate(0deg);
    }
    50% {
        transform: translateX(-50%) scale(1.2) rotate(10deg);
    }
    100% {
        bottom: -100%;
        transform: translateX(-50%) scale(0.5) rotate(20deg);
        opacity: 0;
    }
}

.final-score {
    font-size: 1.8em;
    font-weight: bold;
    color: #667eea;
    margin: 20px 0;
}

.new-high-score {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFD700;
    animation: pulse 1s infinite;
}

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

/* Particle effect for hits */
.particle {
    position: fixed;
    pointer-events: none;
    font-size: 2em;
    animation: particle-float 1s ease-out forwards;
    z-index: 1000;
}

@keyframes particle-float {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .header h1 {
        font-size: 2em;
    }

    .game-info {
        flex-direction: column;
        gap: 10px;
        font-size: 1.1em;
    }

    .holes-grid {
        gap: 15px;
    }

    .mole {
        font-size: 3em;
    }

    .modal {
        padding: 30px 20px;
    }

    .modal h2 {
        font-size: 1.5em;
    }

    .birthday-message {
        font-size: 1.5em;
    }
}
