/* Connect dots game styles */
#connect-dots-stage {
    position: relative;
    width: 100%;
    height: calc(100vh - 120px);
    /* Fill most of screen */
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    touch-action: none;
}

#dots-instruction {
    background: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #4facfe;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    z-index: 10;
}

#dots-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    touch-action: none;
}

#dots-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.dot {
    position: absolute;
    width: 40px;
    height: 40px;
    background: white;
    border: 3px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: #555;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    transition: all 0.2s;
    user-select: none;
}

.dot.active {
    border-color: #4facfe;
    background-color: #e3f2fd;
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 5;
    animation: dotPulse 1.5s infinite;
}

.dot.next {
    border-color: #ff9800;
    border-style: dashed;
}

.dot.completed {
    background: #4facfe;
    border-color: #4facfe;
    color: white;
    opacity: 0.1;
    /* Fade out but keep place */
}

@keyframes dotPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(79, 172, 254, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(79, 172, 254, 0);
    }
}

@media (max-width: 600px) {
    .dot {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}