:root {
    --bg-color: #f8fafc;
    --text-primary: #0f172a;
    --accent-color: #3b82f6;
    --accent-alt: #f472b6;
    --grid-bg: #e2e8f0;
    --hole-bg: #475569;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    cursor: crosshair;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 1rem;
}

.back-btn {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    background: transparent;
}

.back-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

h1 {
    font-size: 2.2rem;
    font-weight: 800;
}

h1 span {
    color: var(--accent-color);
}

.stats-container {
    display: flex;
    gap: 1rem;
}

.stat-box {
    background: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 800;
    min-width: 80px;
}

.stat-box span {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.game-board-container {
    position: relative;
    background: var(--grid-bg);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

#game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 30px;
}

.hole {
    width: 120px;
    height: 120px;
    background: var(--hole-bg);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 10px 20px rgba(0,0,0,0.5);
    border: 4px solid #cbd5e1;
}

.mole {
    width: 80px;
    height: 80px;
    background: #94a3b8;
    border-radius: 50% 50% 10% 10%;
    position: absolute;
    bottom: -80px; /* Hidden initially */
    left: 16px;
    transition: bottom 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: crosshair;
    pointer-events: none;
    border: 2px solid #64748b;
}

.mole::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 15px;
    width: 12px;
    height: 12px;
    background: #1e293b;
    border-radius: 50%;
    box-shadow: 35px 0 0 #1e293b;
}

.hole.up .mole {
    bottom: 10px;
    pointer-events: auto;
}

.mole:active {
    background: #ef4444;
    border-color: #b91c1c;
}

.game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    z-index: 10;
}

.game-over h2 {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.game-over button {
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: #fff;
    border: none;
    font-weight: 800;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.game-over button:hover {
    transform: scale(1.05);
    background: #2563eb;
}
