html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', sans-serif;
    background: #fafafa;
    display: flex;
    flex-direction: column;
}

#score-panel {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.5rem;
    color: #333;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
}

#grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 0.5rem;
    padding: 0.5rem;
    box-sizing: border-box;
}

.hole {
    position: relative;
    width: 100%;
    height: 100%;
    background: url('assets/images/agujero.png') no-repeat center / contain;
}

.mole {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10%;
    width: 70%;
    height: auto;
    cursor: pointer;
    user-select: none;
}

#overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

#overlay button {
    font-size: 1.2rem;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
}

#start-btn { background: #ff8c00; }
#restart-btn { background: #c71585; }

.hidden { display: none; }

.mole.hit {
    transition: transform 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
    transform: scale(0.85);
    filter: brightness(1.3) sepia(0.2) hue-rotate(-20deg);
    opacity: 0.8;
}
