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

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    text-align: center;
    padding: 20px;
    max-width: 800px;
    width: 100%;
}

h1 {
    margin-bottom: 20px;
    color: #e94560;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.game-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.game-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: #0f3460;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.hole {
    width: 100px;
    height: 100px;
    background: #16213e;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.hole::before {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 30px;
    background: #000;
    border-radius: 50%;
}

.mole {
    position: absolute;
    bottom: -100%;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="%238B4513"/><circle cx="35" cy="40" r="5" fill="%23000"/><circle cx="65" cy="40" r="5" fill="%23000"/><path d="M40 60 Q50 70 60 60" stroke="%23000" stroke-width="3" fill="none"/></svg>') center/contain no-repeat;
    transition: bottom 0.3s ease;
}

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

.controls {
    margin: 20px 0;
}

button, select {
    padding: 10px 20px;
    font-size: 1em;
    margin: 0 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: #e94560;
    color: white;
    transition: all 0.3s ease;
}

button:hover, select:hover {
    background: #c1121f;
    transform: translateY(-2px);
}

.message {
    margin: 20px 0;
    padding: 10px;
    border-radius: 5px;
    font-size: 1.2em;
    min-height: 40px;
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    background: #0f3460;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #16213e;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .grid {
        gap: 10px;
        padding: 10px;
    }
    
    .hole {
        width: 80px;
        height: 80px;
    }
    
    .game-info {
        flex-direction: column;
        gap: 10px;
    }
} 